aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz4.txt
blob: 5bb219f4af6bec1c0f1b07e00d9a187f50622120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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++] }
if (state == 2) {
  while(1) {
    print(2); state = check();
  }
} else {
  while(1) {
    print(4); state = check();
    if (!(state == 4)) {
      break;
    }
  }
  print(3); state = check();
  while(1) {
    print(1); state = check();
  }
}