solidity/test/libsolidity/smtCheckerTests/functions/internal_call_inheritance_2.sol

25 lines
364 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
uint y;
function c(uint _y) public returns (uint) {
y = _y;
return y;
}
}
contract B is C {
function b() public returns (uint) { return c(42); }
}
contract A is B {
uint public x;
function a() public {
x = b();
assert(x < 40);
}
}
// ----
// Warning 4661: (274-288): Assertion violation happens here