Commit bba93b65 authored by Yudi Zheng's avatar Yudi Zheng

Revised test case for loop.

parent 2a40171d
......@@ -2,13 +2,13 @@ package ch.usi.dag.disl.test.loop;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.BasicBlockMarker;
import ch.usi.dag.disl.staticcontext.BasicBlockStaticContext;
import ch.usi.dag.disl.staticcontext.LoopStaticContext;
public class DiSLClass {
@Before(marker = BasicBlockMarker.class, scope = "TargetClass.print()", order = 2)
public static void precondition(BasicBlockStaticContext bba) {
System.out.println("Enter basic block ! index: " + bba.getBBindex()
+ " loopstart? " + (bba.isFirstOfLoop() ? "true" : "false"));
public static void precondition(LoopStaticContext lsc) {
System.out.println("Enter basic block ! index: " + lsc.getBBindex()
+ " loopstart? " + (lsc.isFirstOfLoop() ? "true" : "false"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment