From 741d78b6e840c88b7b183010c812ad982b342da1 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Mon, 10 Aug 2026 11:11:18 -0700 Subject: Chapter 28a: Modules and Lazy Class Initialization Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Jun Kawasaki Co-authored-by: Claude Opus 5 --- .../java/com/seaofnodes/simple/SchedulerTest.java | 94 ---------------------- 1 file changed, 94 deletions(-) delete mode 100644 src/test/java/com/seaofnodes/simple/SchedulerTest.java (limited to 'src/test/java/com/seaofnodes/simple/SchedulerTest.java') diff --git a/src/test/java/com/seaofnodes/simple/SchedulerTest.java b/src/test/java/com/seaofnodes/simple/SchedulerTest.java deleted file mode 100644 index 6156700d..00000000 --- a/src/test/java/com/seaofnodes/simple/SchedulerTest.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.seaofnodes.simple; - -import com.seaofnodes.simple.codegen.CodeGen; -import com.seaofnodes.simple.evaluator.Evaluator; -import com.seaofnodes.simple.node.StopNode; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class SchedulerTest { - - @Test public void testMemoryPhiAcrossSiblingBranch() { - // The inner memory Phi defines the load's memory. The outer Phi's - // other input comes from a branch not dominated by that definition. - String src = """ - struct S { int x; }; !S !a=new S; !S !b=new S; - a.x=10; b.x=20; !S !p=a; if(arg>3) p=b; - int result=0; - if(arg>0) { - if(arg>2) p.x=30; else p.x=40; - result=a.x; - } - return result; - """; - var code = new CodeGen(src).driver(CodeGen.Phase.LocalSched); - long[] expected = {0,40,40,30,10,10}; - for( int arg=0; arg