-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
230 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
lisa/lisa-sdk/src/test/java/it/unive/lisa/TestInterproceduralAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package it.unive.lisa; | ||
|
||
import it.unive.lisa.analysis.AbstractState; | ||
import it.unive.lisa.analysis.AnalysisState; | ||
import it.unive.lisa.analysis.AnalyzedCFG; | ||
import it.unive.lisa.analysis.SemanticException; | ||
import it.unive.lisa.analysis.StatementStore; | ||
import it.unive.lisa.analysis.lattices.ExpressionSet; | ||
import it.unive.lisa.analysis.symbols.SymbolAliasing; | ||
import it.unive.lisa.conf.FixpointConfiguration; | ||
import it.unive.lisa.interprocedural.FixpointResults; | ||
import it.unive.lisa.interprocedural.InterproceduralAnalysis; | ||
import it.unive.lisa.interprocedural.InterproceduralAnalysisException; | ||
import it.unive.lisa.interprocedural.OpenCallPolicy; | ||
import it.unive.lisa.interprocedural.callgraph.CallGraph; | ||
import it.unive.lisa.interprocedural.callgraph.CallResolutionException; | ||
import it.unive.lisa.program.Application; | ||
import it.unive.lisa.program.cfg.CFG; | ||
import it.unive.lisa.program.cfg.statement.Statement; | ||
import it.unive.lisa.program.cfg.statement.call.CFGCall; | ||
import it.unive.lisa.program.cfg.statement.call.Call; | ||
import it.unive.lisa.program.cfg.statement.call.OpenCall; | ||
import it.unive.lisa.program.cfg.statement.call.UnresolvedCall; | ||
import it.unive.lisa.type.Type; | ||
import it.unive.lisa.util.collections.workset.WorkingSet; | ||
import it.unive.lisa.util.datastructures.graph.algorithms.FixpointException; | ||
import java.util.Collection; | ||
import java.util.Set; | ||
|
||
public class TestInterproceduralAnalysis<A extends AbstractState<A>> implements InterproceduralAnalysis<A> { | ||
|
||
@Override | ||
public boolean needsCallGraph() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void init( | ||
Application app, | ||
CallGraph callgraph, | ||
OpenCallPolicy policy) | ||
throws InterproceduralAnalysisException { | ||
} | ||
|
||
@Override | ||
public void fixpoint( | ||
AnalysisState<A> entryState, | ||
Class<? extends WorkingSet<Statement>> fixpointWorkingSet, | ||
FixpointConfiguration conf) | ||
throws FixpointException { | ||
} | ||
|
||
@Override | ||
public Collection<AnalyzedCFG<A>> getAnalysisResultsOf( | ||
CFG cfg) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public AnalysisState<A> getAbstractResultOf( | ||
CFGCall call, | ||
AnalysisState<A> entryState, | ||
ExpressionSet[] parameters, | ||
StatementStore<A> expressions) | ||
throws SemanticException { | ||
return null; | ||
} | ||
|
||
@Override | ||
public AnalysisState<A> getAbstractResultOf( | ||
OpenCall call, | ||
AnalysisState<A> entryState, | ||
ExpressionSet[] parameters, | ||
StatementStore<A> expressions) | ||
throws SemanticException { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Call resolve( | ||
UnresolvedCall call, | ||
Set<Type>[] types, | ||
SymbolAliasing aliasing) | ||
throws CallResolutionException { | ||
return null; | ||
} | ||
|
||
@Override | ||
public FixpointResults<A> getFixpointResults() { | ||
return null; | ||
} | ||
} |
Oops, something went wrong.