lift restriction on torpedoing finite-count loops
authoradam <adam@megacz.com>
Mon, 3 Nov 2008 10:21:31 +0000 (11:21 +0100)
committeradam <adam@megacz.com>
Mon, 3 Nov 2008 10:21:31 +0000 (11:21 +0100)
src/edu/berkeley/fleet/ir/Context.java

index a5a3e09..c7463fc 100644 (file)
@@ -184,7 +184,7 @@ public class Context {
         /** must be followed immediately by a move-based instruction */
         public void abortLoopIfTorpedoPresent() {
             flush_pending();
-            if (count!=0) throw new RuntimeException("currently, only forever-loops may be sensitive to torpedoes");
+            //if (count!=0) throw new RuntimeException("currently, only forever-loops may be sensitive to torpedoes");
             pending_interruptible = true;
         }