2018-10-10 12:31:49 +00:00
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function h(uint x) public pure returns (uint) {
|
|
|
|
return k(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
function k(uint x) public pure returns (uint) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
function g() public pure {
|
|
|
|
uint x;
|
|
|
|
x = h(0);
|
|
|
|
assert(x > 0);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2023-07-24 16:33:43 +00:00
|
|
|
// SMTIgnoreCex: no
|
2018-10-10 12:31:49 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6328: (197-210): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 0\n\nTransaction trace:\nC.constructor()\nC.g()\n C.h(0) -- internal call\n C.k(0) -- internal call
|