Closed zgrannan closed 6 months ago
If an expression old(E) is used within an assert statement, and E contains a local variable, then the fold-unfold algorithm will raise an error. This PR changes Prusti to detect such patterns and present a user-friendly error instead.
old(E)
assert
E
If an expression
old(E)
is used within anassert
statement, andE
contains a local variable, then the fold-unfold algorithm will raise an error. This PR changes Prusti to detect such patterns and present a user-friendly error instead.