-
Notifications
You must be signed in to change notification settings - Fork 10
/
multi_simple_9.sol
77 lines (64 loc) · 1.41 KB
/
multi_simple_9.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
pragma solidity ^0.7;
contract multi_simple_9 {
bool state1 = false;
bool state2 = false;
bool state3 = false;
bool state4 = false;
bool state5 = false;
bool state6 = false;
bool state7 = false;
bool state8 = false;
bool state9 = false;
constructor() payable {}
function f1() public {
require(!state1);
state1 = true;
}
function f2() public {
require(state1);
require(!state2);
state2 = true;
}
function f3() public {
require(state2);
require(!state3);
state3 = true;
}
function f4() public {
require(state3);
require(!state4);
state4 = true;
}
function f5() public {
require(state4);
require(!state5);
state5 = true;
}
function f6() public {
require(state5);
require(!state6);
state6 = true;
}
function f7() public {
require(state6);
require(!state7);
state7 = true;
}
function f8() public {
require(state7);
require(!state8);
state8 = true;
}
function f9() public {
require(state7);
require(!state9);
state9 = true;
}
function echidna_oracle() public view returns (bool) {
return (!state9);
}
function ether_oracle() public {
require(state9);
selfdestruct(msg.sender);
}
}