mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
298 B
Solidity
26 lines
298 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
uint x;
|
|
|
|
modifier m {
|
|
require(x > 0);
|
|
require(x < 10000);
|
|
_;
|
|
}
|
|
|
|
modifier n {
|
|
x = x + 1;
|
|
_;
|
|
assert(x > 2);
|
|
assert(x > 8);
|
|
}
|
|
|
|
function f() m n public {
|
|
x = x + 1;
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (170-183): Assertion violation happens here
|