summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/Chapter05Test.java
diff options
context:
space:
mode:
authorDibyendu Majumdar <mobile@majumdar.org.uk>2023-12-03 23:23:04 +0000
committerDibyendu Majumdar <mobile@majumdar.org.uk>2024-10-23 17:51:09 -0700
commit48ce51174de5636232ad642d1080c8872d245f93 (patch)
treebafdc1700a4bc80c4e272cb59fb82c1f66cb8c17 /src/test/java/com/seaofnodes/simple/Chapter05Test.java
parentff11dd42bb845ad4a979b8924c678addb8681801 (diff)
downloadSimple-linear-chapter07.tar.gz
Simple-linear-chapter07.zip
Chapter 7: While Statementlinear-chapter07
Co-authored-by: Cliff Click <cliffc@acm.org> Co-authored-by: Thalia Archibald <thalia@archibald.dev> Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com> Co-authored-by: Robert Obkircher <robert.obkircher@gmail.com>
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter05Test.java')
-rw-r--r--src/test/java/com/seaofnodes/simple/Chapter05Test.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/com/seaofnodes/simple/Chapter05Test.java b/src/test/java/com/seaofnodes/simple/Chapter05Test.java
index 134a8be2..5bb67817 100644
--- a/src/test/java/com/seaofnodes/simple/Chapter05Test.java
+++ b/src/test/java/com/seaofnodes/simple/Chapter05Test.java
@@ -19,7 +19,7 @@ else {
a = arg-3;
}
return a;""");
- StopNode ret = parser.parse(false);
+ StopNode ret = parser.parse();
assertEquals("return Phi(Region17,(arg+2),(arg-3));", ret.toString());
}
@@ -34,7 +34,7 @@ if (arg == 1) {
c = 4;
}
return c;""", TypeInteger.BOT);
- StopNode ret = parser.parse(false);
+ StopNode ret = parser.parse();
assertEquals("return Phi(Region16,4,3);", ret.toString());
}
@@ -62,7 +62,7 @@ if( arg==1 )
else
b=a+1;
return a+b;""");
- StopNode ret = parser.parse(false);
+ StopNode ret = parser.parse();
assertEquals("return ((arg*2)+Phi(Region20,2,3));", ret.toString());
}
@@ -77,8 +77,8 @@ if( arg==1 )
else
a=b+1;
return a+b;""");
- StopNode ret = parser.parse(false);
- assertEquals("return ((Phi(Region31,(arg*2),arg)+arg)+Phi(Region31,4,5));", ret.toString());
+ StopNode ret = parser.parse();
+ assertEquals("return ((Phi(Region31,(arg*2),arg)+arg)+Phi(Region,4,5));", ret.toString());
}
@Test
@@ -127,7 +127,7 @@ if( arg==1 )
a=arg==3;
}
return a;""");
- StopNode ret = parser.parse(false);
+ StopNode ret = parser.parse();
assertEquals("return (arg==Phi(Region16,3,2));", ret.toString());
}