[SMTChecker] Fix internal error when array.push() is used as LHS of assignment

This commit is contained in:
Leonardo Alt
2020-11-02 13:32:53 +00:00
parent 1e812e7acc
commit e38d0db683
15 changed files with 245 additions and 15 deletions
@@ -0,0 +1,15 @@
pragma experimental SMTChecker;
contract C {
struct S {
int[] b;
}
S s;
struct T {
S s;
}
T t;
function f() public {
s.b.push() = t.s.b.push();
assert(s.b[s.b.length -1] == t.s.b[t.s.b.length - 1]);
}
}