-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14988 from pgebal/smt_chcecker_fix_internal_error…
…_on_bitwise SMTChecker: Fix internal error when using bitwise operators with an array as argument
- Loading branch information
Showing
3 changed files
with
20 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
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
17 changes: 17 additions & 0 deletions
17
test/libsolidity/smtCheckerTests/operators/bitwise_and_array.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,17 @@ | ||
contract C { | ||
function bitwiseXor(int[10] memory p) public pure { | ||
1 ^ p[0]; | ||
} | ||
|
||
function bitwiseAnd(int[10] memory p) public pure { | ||
1 & p[0]; | ||
} | ||
|
||
function bitwiseOr(int[10] memory p) public pure { | ||
1 | p[0]; | ||
} | ||
} | ||
// ==== | ||
// SMTEngine: all | ||
// ---- | ||
// Info 1391: CHC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them. |