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

11 lines
354 B
Solidity

contract D {
function f(uint x) public pure {
assert(x**2 == 4);
}
}
// ====
// SMTEngine: all
// ----
// Warning 5188: (56-60='x**2'): Assertion checker does not yet implement this operator.
// Warning 6328: (49-66='assert(x**2 == 4)'): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 0\n\nTransaction trace:\nD.constructor()\nD.f(0)