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

18 lines
158 B
Solidity

contract C
{
uint x;
modifier m {
require(x > 0);
_;
}
function f() m public {
assert(x > 0);
x = x + 1;
}
}
// ====
// SMTEngine: all
// ----