mirror of
https://github.com/crytic/echidna.git
synced 2026-10-12 02:12:32 +00:00
24 lines
416 B
Solidity
24 lines
416 B
Solidity
contract C {
|
|
uint fd;
|
|
uint ft;
|
|
uint gd;
|
|
uint gt;
|
|
|
|
function f() public {
|
|
fd = block.number;
|
|
ft = block.timestamp;
|
|
}
|
|
function g() payable public {
|
|
gd = block.number;
|
|
gt = block.timestamp;
|
|
}
|
|
|
|
function echidna_block_number() public returns (bool) {
|
|
return (fd - gd) != 42;
|
|
}
|
|
|
|
function echidna_timestamp() public returns (bool) {
|
|
return (ft - gt) != 43;
|
|
}
|
|
}
|