-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMTChecker: Fix parsing bv2int expression from solver's response
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/libsolidity/smtCheckerTests/invariants/solver_response_involves_bv2int.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Taken from issue #15770 | ||
contract c { | ||
function f(uint len) public pure returns (bytes memory) { | ||
bytes memory x = new bytes(len); | ||
for (uint i = 0; i < len; i++) { | ||
x[i] = bytes1(uint8(i)); | ||
} | ||
return x; | ||
} | ||
} | ||
// ==== | ||
// SMTEngine: chc | ||
// SMTIgnoreInv: no | ||
// SMTSolvers: z3 | ||
// ---- | ||
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them. |