[SMTChecker] Fix ICE in BMC function inlining

This commit is contained in:
Leonardo Alt
2020-08-05 11:47:25 +02:00
parent c03ca195ac
commit 8df8c6e14f
7 changed files with 38 additions and 6 deletions
@@ -0,0 +1,16 @@
pragma experimental SMTChecker;
contract State {
C c;
function f() public returns (uint) {
while(true)
c.setOwner();
}
}
contract C {
address owner;
function setOwner() public {
owner = address(0);
}
}
// ----
// Warning 5084: (198-208): Type conversion is not yet fully supported and might yield false positives.
@@ -0,0 +1,16 @@
pragma experimental SMTChecker;
contract Other {
C c;
function h(bool b) public {
if (b)
c.setOwner(address(0));
}
}
contract C {
address owner;
function setOwner(address _owner) public {
owner = _owner;
}
}
// ----
// Warning 5084: (107-117): Type conversion is not yet fully supported and might yield false positives.