summaryrefslogtreecommitdiff
path: root/chapter05/src/test/java
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2023-10-27 16:49:37 -0700
committerDibyendu Majumdar <dibyendumajumdar@users.noreply.github.com>2023-11-01 18:56:50 +0000
commit9be4a28daa683d6fad406dfb12000f509a2e7896 (patch)
treea61c0642ed67fd1d9ed8f5c0d9032f59a9508be6 /chapter05/src/test/java
parentbb76f85f0e2d1f2c47443143e0b96d608be7820d (diff)
downloadSimple-9be4a28daa683d6fad406dfb12000f509a2e7896.tar.gz
Simple-9be4a28daa683d6fad406dfb12000f509a2e7896.zip
Some initial Ch 5 cleanup
Drop Control interface, not flexible enough. Use isCFG() call, overloaded in child classes. Projections have a more complex test. Missing some printouts in Bool children, If, Region, Phi. IfNode type is a tuple. Region is TypeControl.
Diffstat (limited to 'chapter05/src/test/java')
-rw-r--r--chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java
index 858e2470..0604e9c6 100644
--- a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java
+++ b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java
@@ -15,7 +15,7 @@ public class Chapter05Test {
@Test
public void testChapter5IfStmt() {
- Parser parser = new Parser("int a = 1; if (arg == 1) a = arg+2; else a = arg-3; return a;", TypeInteger.BOT);
+ Parser parser = new Parser("int a = 1; if (arg == 1) a = arg+2; else a = arg-3; return a; #showGraph;", TypeInteger.BOT);
ReturnNode ret = parser.parse();
}