solidity/test/libsolidity/smtCheckerTests/file_level/constant_easy.sol
2022-04-01 23:41:18 -05:00

13 lines
292 B
Solidity

uint constant x = 42;
contract C {
function f() public pure {
uint z = x;
assert(z == 41);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (80-95='assert(z == 41)'): CHC: Assertion violation happens here.\nCounterexample:\n\nz = 42\n\nTransaction trace:\nC.constructor()\nC.f()