mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
27 lines
541 B
Solidity
27 lines
541 B
Solidity
==== Source: C.sol ====
|
|
import "A.sol";
|
|
pragma experimental SMTChecker;
|
|
contract C is A {
|
|
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";
|
|
pragma experimental SMTChecker;
|
|
contract B is A {
|
|
function g(uint _x) public view {
|
|
assert(_x > x);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (B.sol:103-117): CHC: Assertion violation happens here.
|
|
// Warning 6328: (C.sol:103-117): CHC: Assertion violation happens here.
|