mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
// ----
|
||||
Reference in New Issue
Block a user