-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopcode_conditions.act
131 lines (120 loc) · 3.1 KB
/
opcode_conditions.act
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
defproc bundled_is_halt_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].f & ~v0[2].f & ~v0[3].f & ~_gor -> out.t+
(~v0[0].t | ~v0[1].t | ~v0[2].t | ~v0[3].t) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_pushc_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].t & ~v0[2].t & ~v0[3].t & ~_gor -> out.t+
(~v0[0].t | ~v0[1].f | ~v0[2].f | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_pop_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].t & ~v0[1].f & ~v0[2].t & ~v0[3].t & ~_gor -> out.t+
(~v0[0].f | ~v0[1].t | ~v0[2].f | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_popout_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].f & ~v0[2].t & ~v0[3].t & ~_gor -> out.t+
(~v0[0].t | ~v0[1].t | ~v0[2].f | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_pushreg_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].t & ~v0[1].t & ~v0[2].f & ~v0[3].t & ~_gor -> out.t+
(~v0[0].f | ~v0[1].f | ~v0[2].t | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_popreg_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].t & ~v0[2].f & ~v0[3].t & ~_gor -> out.t+
(~v0[0].t | ~v0[1].f | ~v0[2].t | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_add_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].t & ~v0[1].f & ~v0[2].f & ~v0[3].t & ~_gor -> out.t+
(~v0[0].f | ~v0[1].t | ~v0[2].t | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_sub_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].f & ~v0[2].f & ~v0[3].t & ~_gor -> out.t+
(~v0[0].t | ~v0[1].t | ~v0[2].t | ~v0[3].f) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_jmp_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].t & ~v0[1].t & ~v0[2].t & ~v0[3].f & ~_gor -> out.t+
(~v0[0].f | ~v0[1].f | ~v0[2].f | ~v0[3].t) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_brz_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].f & ~v0[1].t & ~v0[2].t & ~v0[3].f & ~_gor -> out.t+
(~v0[0].t | ~v0[1].f | ~v0[2].f | ~v0[3].t) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_brlz_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[0].t & ~v0[1].f & ~v0[2].t & ~v0[3].f & ~_gor -> out.t+
(~v0[0].f | ~v0[1].t | ~v0[2].f | ~v0[3].t) & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}
defproc bundled_is_branch_1(bool go_r; dualrail v0[4]; dualrail out) {
bool _gor;
prs {
go_r => _gor-
~v0[3].f & ~_gor -> out.t+
~v0[3].t & ~_gor -> out.f+
_gor -> out.t-
_gor -> out.f-
}
}