Commit 3b4dfbcc authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

Merge branch 'disl_2.2.x' of gitlab.ow2.org:disl/disl into disl_2.2.x

parents f47ae5d1 1e67628f
public class Main {
public void empty() {
}
public static void main(String[] args) {
System.out.println("app: main");
Main m = new Main();
m.empty();
}
}
public class Main {
public void empty() {
}
public static void main(String[] args) {
System.out.println("app: main");
Main m = new Main();
m.empty();
}
}
import java.util.LinkedList;
import ch.usi.dag.disl.annotation.After;
import ch.usi.dag.disl.marker.BasicBlockMarker;
import ch.usi.dag.disl.marker.BodyMarker;
public class DiSLClass {
@After(marker = BasicBlockMarker.class, scope = "Main.*")
public static void invokedInstr(final CodeLengthSC clsc) {
CodeExecutedRE.bytecodesExecuted(clsc.codeSize());
}
@After(marker = BodyMarker.class, scope = "Main.main")
public static void testing() {
CodeExecutedRE.testingBasic(true, (byte) 125, 's', (short) 50000, 100000, 10000000000L);
CodeExecutedRE.testingAdvanced("Corect transfer of String", "test", Object.class, Thread.currentThread());
CodeExecutedRE.testingAdvanced2(new LinkedList<String>(),
new LinkedList<Integer>(), new LinkedList[0], new int[0],
int[].class, int.class, LinkedList.class,
LinkedList.class.getClass());
CodeExecutedRE.testingNull(null, null, null);
}
}
import java.util.LinkedList;
import ch.usi.dag.disl.annotation.After;
import ch.usi.dag.disl.marker.BasicBlockMarker;
import ch.usi.dag.disl.marker.BodyMarker;
public class DiSLClass {
@After(marker = BasicBlockMarker.class, scope = "Main.*")
public static void invokedInstr(final CodeLengthSC clsc) {
CodeExecutedRE.bytecodesExecuted(clsc.codeSize());
}
@After(marker = BodyMarker.class, scope = "Main.main")
public static void testing() {
CodeExecutedRE.testingBasic(true, (byte) 125, 's', (short) 50000, 100000, 10000000000L);
CodeExecutedRE.testingAdvanced("Corect transfer of String", "test", Object.class, Thread.currentThread());
CodeExecutedRE.testingAdvanced2(new LinkedList<String>(),
new LinkedList<Integer>(), new LinkedList[0], new int[0],
int[].class, int.class, LinkedList.class,
LinkedList.class.getClass());
CodeExecutedRE.testingNull(null, null, null);
}
}
Supports Markdown
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