Ethereum smart contract fuzzer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
echidna/solidity/revert.sol

15 lines
207 B

pragma solidity ^0.4.16;
contract C {
int private state = 0;
function f(int x) public {
state = x;
}
function echidna_revert() public returns (bool) {
if (state < 0)
revert();
}
}