aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz1.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-16 17:02:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-21 17:09:16 -0700
commitd705c37e34ad11b01ad33e7c985818a14623dff7 (patch)
treebb1a48ff1208f5a4efda08d6f2a5c1827e55a0b3 /src/relooper/test_fuzz1.cpp
parentab506b38dbb9acb2db4f1a1b8c1608cc57409a6b (diff)
emit switches in relooper1.5.6
Diffstat (limited to 'src/relooper/test_fuzz1.cpp')
-rw-r--r--src/relooper/test_fuzz1.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/relooper/test_fuzz1.cpp b/src/relooper/test_fuzz1.cpp
index 54205694..ef48ea93 100644
--- a/src/relooper/test_fuzz1.cpp
+++ b/src/relooper/test_fuzz1.cpp
@@ -8,15 +8,15 @@ int main() {
char *buffer = (char*)malloc(SIZE);
Relooper::SetOutputBuffer(buffer, SIZE);
- Block *b0 = new Block("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++] }");
- Block *b1 = new Block("print(1); state = check();");
- Block *b2 = new Block("print(2); state = check();");
- Block *b3 = new Block("print(3); state = check();");
- Block *b4 = new Block("print(4); state = check();");
- Block *b5 = new Block("print(5); state = check();");
- Block *b6 = new Block("print(6); state = check();");
- Block *b7 = new Block("print(7); state = check();");
- Block *b8 = new Block("print(8); state = check();");
+ Block *b0 = new Block("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++] }", "the_var");
+ Block *b1 = new Block("print(1); state = check();", "the_var");
+ Block *b2 = new Block("print(2); state = check();", "the_var");
+ Block *b3 = new Block("print(3); state = check();", "the_var");
+ Block *b4 = new Block("print(4); state = check();", "the_var");
+ Block *b5 = new Block("print(5); state = check();", "the_var");
+ Block *b6 = new Block("print(6); state = check();", "the_var");
+ Block *b7 = new Block("print(7); state = check();", "the_var");
+ Block *b8 = new Block("print(8); state = check();", "the_var");
b0->AddBranchTo(b5, NULL);
b1->AddBranchTo(b3, NULL);
b2->AddBranchTo(b1, NULL);