diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-11 12:22:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-11 12:22:49 -0800 |
commit | 6545bd5cb7dbbe22067a7688854d33ff7b513763 (patch) | |
tree | 4e7446712c8d92230763fc5aa8cf0d7cdc855094 /src/relooper/test.cpp | |
parent | b328775c6402e477a03abfb3b9c61968c8f5ee6a (diff) |
optimize unbalanced 2-multiple shapes in relooper, prevent unnecessary nesting when the smaller is a dead end
Diffstat (limited to 'src/relooper/test.cpp')
-rw-r--r-- | src/relooper/test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/relooper/test.cpp b/src/relooper/test.cpp index 0d029216..4275941b 100644 --- a/src/relooper/test.cpp +++ b/src/relooper/test.cpp @@ -160,7 +160,7 @@ int main() { puts(buffer); } -/* + if (1) { Relooper::SetOutputBuffer(buffer, sizeof(buffer)); @@ -168,11 +168,11 @@ int main() { Block *b_a = new Block("// block A\n"); Block *b_b = new Block("// block B\n"); - Block *b_c = new Block("// block C\n"); + Block *b_c = new Block("return C;\n"); Block *b_d = new Block("// block D\n"); b_a->AddBranchTo(b_b, "check == 10"); - b_a->AddBranchTo(b_c, NULL); + b_a->AddBranchTo(b_c, NULL); // c is a dead end b_b->AddBranchTo(b_d, NULL); @@ -190,6 +190,5 @@ int main() { puts(buffer); } -*/ } |