2020-04-06 23:09:03 +00:00
|
|
|
contract C {
|
|
|
|
function c() public pure returns (uint) { return 42; }
|
|
|
|
}
|
|
|
|
|
|
|
|
contract B is C {
|
|
|
|
function b() public pure returns (uint) { return c(); }
|
|
|
|
}
|
|
|
|
|
|
|
|
contract A is B {
|
|
|
|
uint public x;
|
|
|
|
|
|
|
|
function a() public {
|
|
|
|
x = b();
|
|
|
|
assert(x < 40);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-04-06 23:09:03 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6328: (221-235): CHC: Assertion violation happens here.\nCounterexample:\nx = 42\n\nTransaction trace:\nA.constructor()\nState: x = 0\nA.a()\n B.b() -- internal call\n C.c() -- internal call
|