mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
403 B
Solidity
24 lines
403 B
Solidity
contract A {
|
|
uint x;
|
|
function h() public view {
|
|
assert(x == 0);
|
|
}
|
|
}
|
|
|
|
contract B is A {
|
|
function g() public view {
|
|
assert(x == 0);
|
|
}
|
|
}
|
|
|
|
contract C is B {
|
|
function f() public view {
|
|
assert(x == 0);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// SMTSolvers: z3
|
|
// ----
|
|
// Info 1180: Contract invariant(s) for :A:\n(x <= 0)\nContract invariant(s) for :C:\n(x <= 0)\nContract invariant(s) for :B:\n(x <= 0)\n
|