solidity/test/libsolidity/smtCheckerTests/verification_target/simple_assert.sol

8 lines
242 B
Solidity
Raw Normal View History

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