aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz2.txt
blob: 02b2c83be98d7c32f07bea930f37df70c3526720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
print('entry'); var label; var state; var decisions = [4, 1, 4, 3, 4, 1, 2, 5, 1, 3, 5, 5, 1, 5, 2, 4, 4, 3]; var index = 0; function check() { if (index == decisions.length) throw 'HALT'; return decisions[index++] }
if (state == 1) {
 while(1) {
  print(1); state = check();
 }
}
while(1) {
 print(3); state = check();
 print(2); state = check();
}