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

20 lines
239 B
Solidity

contract C
{
uint x;
modifier m {
// Condition is always true for the second invocation.
require(x > 0);
require(x < 10000);
_;
assert(x > 1);
}
function f() m m public {
x = x + 1;
}
}
// ====
// SMTEngine: all
// ----