aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz1.txt
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-11 10:04:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-11 10:04:33 -0800
commit3634b45c63e420910c77a631352ab257b8a6039f (patch)
treee43051c8b9b6339cddb57a7d8dd6929fbeedb56a /src/relooper/test_fuzz1.txt
parent795bcc6e76e59824d725acea1e9c2e1c553a6658 (diff)
add relooper sources
Diffstat (limited to 'src/relooper/test_fuzz1.txt')
-rw-r--r--src/relooper/test_fuzz1.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/relooper/test_fuzz1.txt b/src/relooper/test_fuzz1.txt
new file mode 100644
index 00000000..63bbee0c
--- /dev/null
+++ b/src/relooper/test_fuzz1.txt
@@ -0,0 +1,44 @@
+
+
+print('entry'); var label; var state; var decisions = [4, 1, 7, 2, 6, 6, 8]; var index = 0; function check() { if (index == decisions.length) throw 'HALT'; return decisions[index++] }
+print(5); state = check();
+print(6); state = check();
+do {
+ if (state == 7) {
+ print(7); state = check();
+ label = 3;
+ break;
+ } else {
+ label = 2;
+ }
+} while(0);
+L5: while(1) {
+ if (label == 2) {
+ label = 0;
+ print(1); state = check();
+ while(1) {
+ print(3); state = check();
+ if (!(state == 8)) {
+ label = 2;
+ continue L5;
+ }
+ print(8); state = check();
+ if (!(state == 4)) {
+ label = 3;
+ continue L5;
+ }
+ print(4); state = check();
+ if (!(state == 3)) {
+ label = 2;
+ continue L5;
+ }
+ }
+ }
+ else if (label == 3) {
+ label = 0;
+ print(2); state = check();
+ label = 2;
+ continue;
+ }
+}
+