solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_overflow.sol
2021-10-26 11:30:30 +02:00

19 lines
214 B
Solidity

contract C
{
uint x;
modifier m {
require(x > 0);
_;
}
function f() m public {
assert(x > 0);
x = x + 1;
}
}
// ====
// SMTEngine: all
// ----
// Info 1180: Contract invariant(s) for :C:\n(x <= 0)\n