solidity/test/libsolidity/smtCheckerTests/verification_target/simple_assert.sol
2021-04-08 21:03:39 +02:00

8 lines
242 B
Solidity

contract C {
function f(uint a) public pure { assert(a == 2); }
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (50-64): CHC: Assertion violation happens here.\nCounterexample:\n\na = 0\n\nTransaction trace:\nC.constructor()\nC.f(0)