aboutsummaryrefslogtreecommitdiff
path: root/src/relooper/test_fuzz3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/relooper/test_fuzz3.cpp')
-rw-r--r--src/relooper/test_fuzz3.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/relooper/test_fuzz3.cpp b/src/relooper/test_fuzz3.cpp
index 3f39f5da..cb37d50f 100644
--- a/src/relooper/test_fuzz3.cpp
+++ b/src/relooper/test_fuzz3.cpp
@@ -8,11 +8,11 @@ int main() {
char *buffer = (char*)malloc(SIZE);
Relooper::SetOutputBuffer(buffer, SIZE);
- Block *b0 = new Block("print('entry'); var label; var state; var decisions = [3, 3, 4, 1, 2, 1, 2, 4, 4, 4, 2, 3, 3, 1, 2]; 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 *b0 = new Block("print('entry'); var label; var state; var decisions = [3, 3, 4, 1, 2, 1, 2, 4, 4, 4, 2, 3, 3, 1, 2]; 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");
b0->AddBranchTo(b1, NULL);
b1->AddBranchTo(b3, NULL);
b2->AddBranchTo(b1, NULL);