You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In modular arithmetic we add range assumption preconditions for variables appearing in the postcondition. However, we should not do this for the return values because Boogie cannot access them in preconditions:
$ solc-verify.py Test.sol --arithmetic mod
Error while running verifier, details:
Parsing /tmp/tmp1ijaey2i/Test.sol.bpl
/tmp/tmp1ijaey2i/Test.sol.bpl(16,219): Error: undeclared identifier: x#4
/tmp/tmp1ijaey2i/Test.sol.bpl(16,228): Error: undeclared identifier: x#4
2 name resolution errors detected in /tmp/tmp1ijaey2i/Test.sol.bpl
I think we can just skip these preconditions and instead add them as assumes in the beginning of the function. Or it might even not be needed if return values are properly initialized to default value (see #116).
The text was updated successfully, but these errors were encountered:
In modular arithmetic we add range assumption preconditions for variables appearing in the postcondition. However, we should not do this for the return values because Boogie cannot access them in preconditions:
I think we can just skip these preconditions and instead add them as assumes in the beginning of the function. Or it might even not be needed if return values are properly initialized to default value (see #116).
The text was updated successfully, but these errors were encountered: