mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix ICE in BMC function inlining
This commit is contained in:
+16
@@ -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.
|
||||
+16
@@ -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.
|
||||
Reference in New Issue
Block a user