Skip to content

Commit

Permalink
Reentrancy checker ran just once
Browse files Browse the repository at this point in the history
  • Loading branch information
VincenzoArceri committed Nov 4, 2024
1 parent 8a78c2a commit 9f49532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/java/it/unipr/EVMLiSA.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ else if (bytecode != null)
conf.interproceduralAnalysis = new ModularWorstCaseAnalysis<>();
JumpSolver checker = new JumpSolver();
conf.semanticChecks.add(checker);
conf.semanticChecks.add(new ReentrancyChecker());
conf.callGraph = new RTACallGraph();
conf.serializeResults = false;
conf.optimize = false;
Expand All @@ -241,6 +240,11 @@ else if (dumpDot)
// Print the results
finish = System.currentTimeMillis();


conf.semanticChecks.clear();
conf.semanticChecks.add(new ReentrancyChecker());
lisa.run(program);

jsonOptions.put("re-entrancy-warning", UniqueItemCollector.getInstance().size()); // TODO
// fix

Expand Down
1 change: 0 additions & 1 deletion src/main/java/it/unipr/frontend/EVMCFGGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import org.apache.commons.io.FilenameUtils;

/**
Expand Down

0 comments on commit 9f49532

Please sign in to comment.