aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz4.txt
blob: 2e2f2c6f621272785c63066f114504b27ef71d19 (plain)
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
print('entry'); var label; var state; var decisions = [2, 2, 1, 3, 2, 2, 1, 3, 2, 3, 3, 1, 3, 2, 1]; var index = 0; function check() { if (index == decisions.length) throw 'HALT'; return decisions[index++] }
switch (the_var) {
state == 2 {
 while(1) {
  print(2); state = check();
  switch (the_var) {
  default: {
  }
  }
 }
 break;
}
default: {
}
}
L4: while(1) {
 print(4); state = check();
 switch (the_var) {
 state == 4 {
  break;
 }
 default: {
  break L4;
 }
 }
}
print(3); state = check();
switch (the_var) {
default: {
}
}
while(1) {
 print(1); state = check();
 switch (the_var) {
 default: {
 }
 }
}