mirror of https://github.com/crytic/echidna
parent
43690ef302
commit
917ae45429
@ -1,15 +1,19 @@ |
||||
pragma solidity ^0.4.16; |
||||
|
||||
contract Test { |
||||
bool private flag=true; |
||||
bool private flag0=true; |
||||
bool private flag1=true; |
||||
|
||||
function set(int val) returns (bool){ |
||||
if (val % 100 == 0) {flag = false;} |
||||
function set0(int val) returns (bool){ |
||||
if (val % 10 == 0) {flag0 = false;} |
||||
} |
||||
function set1(int val) returns (bool){ |
||||
if (val % 10 == 0 && flag0) {flag1 = false;} |
||||
} |
||||
function echidna_alwaystrue() returns (bool){ |
||||
return(true); |
||||
} |
||||
function echidna_sometimesfalse() returns (bool){ |
||||
return(flag); |
||||
return(flag0 || flag1); |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue