This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
/
s3_srvr_1b_true-unreach-call_false-termination.cil.c
141 lines (131 loc) · 7.47 KB
/
s3_srvr_1b_true-unreach-call_false-termination.cil.c
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
132
133
134
135
136
137
138
139
140
141
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern char __VERIFIER_nondet_char(void);
extern int __VERIFIER_nondet_int(void);
extern long __VERIFIER_nondet_long(void);
extern void *__VERIFIER_nondet_pointer(void);
extern int __VERIFIER_nondet_int();
// This is a further simplified version of s3_srvr_1a.cil.c
int main() {
int s__state ;
int s__hit = __VERIFIER_nondet_int() ;
int blastFlag ;
int tmp___1;
s__state = 8466;
blastFlag = 0;
while (1) {
if (s__state <= 8512 && blastFlag > 2) { goto ERROR; }
{
{
{
{
{
if (s__state == 8466) {
goto switch_1_8466;
} else {
{
{
if (s__state == 8512) {
goto switch_1_8512;
} else {
{
{
{
{
{
{
{
{
{
{
{
{
{
if (s__state == 8640) {
goto switch_1_8640;
} else {
{
if (s__state == 8656) {
goto switch_1_8656;
} else {
{
{
goto end;
switch_1_8466:
if (blastFlag == 0) {
blastFlag = 2;
}
if (s__hit) {
s__state = 8656;
} else {
s__state = 8512;
}
goto switch_1_break;
switch_1_8512:
tmp___1 = __VERIFIER_nondet_int();
if (tmp___1) {
s__state = 8466;
} else {
s__state = 8640;
}
goto switch_1_break;
switch_1_8640:
if (blastFlag == 3) {
blastFlag = 4;
}
if (s__hit) {
goto end;
} else {
s__state = 8656;
}
goto switch_1_break;
switch_1_8656:
if (blastFlag == 2) {
blastFlag = 3;
}
if (blastFlag == 4) {
blastFlag = 5;
} else {
if (blastFlag == 5) {
goto ERROR;
}
}
if (s__hit) {
s__state = 8640;
} else {
goto end;
}
goto switch_1_break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
switch_1_break: ;
}
end:
return (-1);
ERROR: __VERIFIER_error();
return (-1);
}