[SMTChecker] Fix ICEs with tuples

This commit is contained in:
Leonardo Alt
2020-03-03 11:35:58 +01:00
parent b65a165da1
commit 96a230af50
7 changed files with 59 additions and 4 deletions
@@ -0,0 +1,10 @@
pragma experimental SMTChecker;
contract K {
function f() public pure {
(abi.encode, 2);
}
}
// ----
// Warning: (76-91): Statement has no effect.
// Warning: (77-80): Assertion checker does not yet implement type abi
@@ -0,0 +1,10 @@
pragma experimental SMTChecker;
contract K {
function f() public pure {
(abi.encode, "");
}
}
// ----
// Warning: (76-92): Statement has no effect.
// Warning: (77-80): Assertion checker does not yet implement type abi
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract C {
function f() public pure {
(("", 2));
}
}
// ----
// Warning: (76-85): Statement has no effect.
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract C {
function f() public pure {
(("", ""));
}
}
// ----
// Warning: (76-86): Statement has no effect.
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract C {
function f() public pure {
(2);
}
}
// ----
// Warning: (76-79): Statement has no effect.