Merge pull request #10529 from blishko/compound_assignment

[SMTChecker] Remove assert that is not true for compound assignment with right shift
This commit is contained in:
Leonardo
2020-12-08 15:43:36 +01:00
committed by GitHub
2 changed files with 11 additions and 6 deletions
@@ -0,0 +1,11 @@
pragma experimental SMTChecker;
contract C {
function f(int a, uint b) public view {
a >>= tx.gasprice;
require(a == 16 && b == 2);
a >>= b;
assert(a == 4); // should hold
}
}
// ----