solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_two_placeholders.sol

27 lines
327 B
Solidity
Raw Normal View History

2019-03-11 20:06:28 +00:00
pragma experimental SMTChecker;
contract C
{
uint x;
modifier m {
require(x > 0);
require(x < 10000);
_;
assert(x > 1);
_;
assert(x > 2);
assert(x > 10);
}
function f() m public {
x = x + 1;
}
function g(uint _x) public {
x = _x;
}
2019-03-11 20:06:28 +00:00
}
// ----
// Warning: (156-170): Assertion violation happens here