[SMTChecker] Fix ICE when reporting cex concerning state vars from different source files

This commit is contained in:
Leonardo Alt
2019-08-10 20:56:52 +02:00
parent 67c855e93e
commit 4214cd1354
11 changed files with 29 additions and 23 deletions
+6 -2
View File
@@ -257,8 +257,11 @@ BOOST_AUTO_TEST_CASE(import_base)
pragma solidity >=0.0;
contract Base {
uint x;
function f() internal {
address a;
function f() internal returns (uint) {
a = address(this);
++x;
return 2;
}
}
)"},
@@ -268,7 +271,7 @@ BOOST_AUTO_TEST_CASE(import_base)
import "base";
contract Der is Base {
function g(uint y) public {
f();
x += f();
assert(y > x);
}
}
@@ -328,6 +331,7 @@ BOOST_AUTO_TEST_CASE(import_library)
}
BOOST_AUTO_TEST_SUITE_END()
}