2020-09-29 08:21:52 +00:00
|
|
|
==== Source: C.sol ====
|
2020-09-02 08:45:47 +00:00
|
|
|
import "B.sol";
|
|
|
|
pragma experimental SMTChecker;
|
|
|
|
contract C is B {
|
|
|
|
function h(uint _x) public view {
|
|
|
|
assert(_x < x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: A.sol ====
|
|
|
|
contract A {
|
|
|
|
uint x;
|
|
|
|
function f(uint _x) public {
|
|
|
|
x = _x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: B.sol ====
|
|
|
|
import "A.sol";
|
|
|
|
contract B is A {
|
|
|
|
function g(uint _x) public view {
|
|
|
|
assert(_x > x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-10-27 08:24:32 +00:00
|
|
|
// Warning 6328: (B.sol:71-85): CHC: Assertion violation happens here.
|
2020-09-29 08:21:52 +00:00
|
|
|
// Warning 6328: (C.sol:103-117): CHC: Assertion violation happens here.
|