From 9be4a28daa683d6fad406dfb12000f509a2e7896 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 27 Oct 2023 16:49:37 -0700 Subject: 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. --- chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter05/src/test/java') 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(); } -- cgit v1.2.3