mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix ICE when reporting cex concerning state vars from different source files
This commit is contained in:
@@ -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()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user