solidity/test/libsolidity/smtCheckerTests/operators/exp.sol

11 lines
415 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract D {
function f(uint x) public pure {
assert(x**2 == 4);
}
}
// ----
// Warning 5188: (88-92): Assertion checker does not yet implement this operator.
2021-01-06 15:06:15 +00:00
// Warning 6328: (81-98): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 0\n\nTransaction trace:\nD.constructor()\nD.f(0)
// Warning 5188: (88-92): Assertion checker does not yet implement this operator.