mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
240 B
Solidity
18 lines
240 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
uint s;
|
|
modifier m(uint a) {
|
|
// Condition is always true for m(2).
|
|
require(a > 0);
|
|
_;
|
|
}
|
|
|
|
function f(uint x) m(x) m(2) m(s) public view {
|
|
assert(x > 0);
|
|
assert(s > 0);
|
|
}
|
|
}
|
|
// ----
|