Skip to content

Commit ac0788c

Browse files
committed
Updated SequentialEdge to CrossChainEdge in cross chain analysis
1 parent 016edc5 commit ac0788c

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

src/main/java/it/unipr/crossChainAnalysis/CrossChainAnalysis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private Set<Edge> addEdges(Set<Statement> sources, Set<Statement> targets) {
244244

245245
for (Statement source : sources)
246246
for (Statement target : targets)
247-
edges.add(new SequentialEdge(source, target));
247+
edges.add(new CrossChainEdge(source, target));
248248

249249
return edges;
250250
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package it.unipr.crossChainAnalysis;
2+
3+
import it.unive.lisa.program.cfg.edge.SequentialEdge;
4+
import it.unive.lisa.program.cfg.statement.Statement;
5+
6+
public class CrossChainEdge extends SequentialEdge {
7+
/**
8+
* Builds an "empty" cross chain edge, meaning that it does not have endpoints.
9+
*/
10+
public CrossChainEdge() {
11+
super();
12+
}
13+
14+
/**
15+
* Builds the cross chain edge.
16+
*
17+
* @param source the source statement
18+
* @param destination the destination statement
19+
*/
20+
public CrossChainEdge(
21+
Statement source,
22+
Statement destination) {
23+
super(source, destination);
24+
}
25+
}

0 commit comments

Comments
 (0)