Merge pull request #9716 from ethereum/smt_fix_tuple_2

[SMTChecker] Fix ICE on tuple assignment
This commit is contained in:
Leonardo
2020-09-01 10:44:34 +02:00
committed by GitHub
4 changed files with 27 additions and 3 deletions
@@ -0,0 +1,11 @@
pragma experimental SMTChecker;
contract C {
function f() public pure returns(int) {
int a;
(,, a) = ((((((1, 3, (((((2)))))))))));
assert(a == 2);
assert(a == 3);
}
}
// ----
// Warning 6328: (157-171): Assertion violation happens here
@@ -0,0 +1,11 @@
pragma experimental SMTChecker;
contract C {
function f() public pure returns(int) {
int a;
((,, a)) = ((((((1, 3, (((((2)))))))))));
assert(a == 2);
assert(a == 3);
}
}
// ----
// Warning 6328: (159-173): Assertion violation happens here