diff options
| author | XmiliaH <45106915+XmiliaH@users.noreply.github.com> | 2023-11-01 10:25:28 +0100 |
|---|---|---|
| committer | Dibyendu Majumdar <dibyendumajumdar@users.noreply.github.com> | 2023-11-01 18:56:50 +0000 |
| commit | 6181af431c47199a00c48af5350e362e6c423faa (patch) | |
| tree | e62b37124f30e0245e1ed121460b6d675b4d67f2 /chapter05/src/test/java/com/seaofnodes | |
| parent | d6cf7887eba77a629aaf1116c4b8364891895e55 (diff) | |
| download | Simple-6181af431c47199a00c48af5350e362e6c423faa.tar.gz Simple-6181af431c47199a00c48af5350e362e6c423faa.zip | |
Fix list of keywords and node index of merge (#27)
* Wrong input index used
* Then is currently not a keyword
* Some phis are now not created and ids shifted
Diffstat (limited to 'chapter05/src/test/java/com/seaofnodes')
| -rw-r--r-- | chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java | 2 |
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 95150f2e..ab956e9f 100644 --- a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java +++ b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java @@ -74,7 +74,7 @@ return c; public void testChapter5Merge4() { Parser parser = new Parser("int a=0;int b=0;if(arg)a=1;if(arg==0)b=2;return arg+a+b;#showGraph;", TypeInteger.BOT); StopNode stop = parser.parse(); - assertEquals("return ((arg+Phi(Region13,1,0))+Phi(Region23,2,0));", stop.toString()); + assertEquals("return ((arg+Phi(Region13,1,0))+Phi(Region22,2,0));", stop.toString()); } @Test |
