Commit 52e49b10 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

Make slices interprocedural (part 2)

- Add flag to EDGFactory to enable the creation of interprocedural edges.
parent e9d7c3e5
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -15,12 +15,16 @@ import edg.graph.LAST;
public class EDGFactory {
	private final LAST last;
	private EDG edg;
	private boolean interproceduralGraph = false; // CHANGE THIS ONE TO TRUE IN SETB
	private boolean interproceduralGraph;
	private boolean summarisedGraph = false;

	public EDGFactory(LAST last)
	{
	public EDGFactory(LAST last) {
		this(last, true);
	}

	public EDGFactory(LAST last, boolean interprocedural) {
		this.last = last;
		this.interproceduralGraph = interprocedural;
	}

	// Required Configuration Parameters (Questions made to the users in order to decide the dependencies built on the graph)
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public class EKnife {

	private static void run(Args a) {
		final LAST last = LASTFactory.createLAST(Language.Erlang, a.inputPath, true);
		final EDG edg = new EDGFactory(last).createEDG();
		final EDG edg = new EDGFactory(last, !a.intraproceduralAlgorithm).createEDG();

		final SlicingCriterion slicingCriterion = new SlicingCriterion(a.file, a.line, a.name, a.occurrence);
		final Node SC;