[SMTChecker] Fix ICE on array.pop nested inside 1-tuple

This commit is contained in:
Martin Blicha
2021-03-09 20:00:51 +01:00
parent ad5d34df74
commit 4285c2803b
5 changed files with 16 additions and 4 deletions
@@ -19,5 +19,3 @@ contract C {
}
}
// ----
// Warning 6031: (289-292): Internal error: Expression undefined for SMT solver.
// Warning 6031: (289-292): Internal error: Expression undefined for SMT solver.
@@ -0,0 +1,10 @@
pragma experimental SMTChecker;
contract C {
int[]data;
function f() public {
(data.pop)();
}
}
// ----
// Warning 2529: (95-107): CHC: Empty array "pop" happens here.\nCounterexample:\ndata = []\n\nTransaction trace:\nC.constructor()\nState: data = []\nC.f()