java.lang.Object
dev.civl.mc.analysis.IF.Analysis
Entry point of the module civl.analysis.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidanalyzeCall(List<CodeAnalyzer> analyzers, State state, int pid, CallOrSpawnStatement statement, dev.civl.sarl.IF.expr.SymbolicExpression[] arguments) Analyzes a call statement at a certain state.static List<CodeAnalyzer> getAnalyzers(CIVLConfiguration config, dev.civl.sarl.IF.SymbolicUniverse universe) gets all code analyzers as required in the configuration.static voidprintResults(List<CodeAnalyzer> analyzers, PrintStream out) prints the analysis result of each code analyzer.static voidstaticAnalysis(Statement statement, List<CodeAnalyzer> analyzers) performs static analysis on the given statement to decide if any code analysis provided by the specified code analyzers is needed.
-
Field Details
-
ABS
Name of the absolute value function.- See Also:
-
-
Constructor Details
-
Analysis
public Analysis()
-
-
Method Details
-
staticAnalysis
performs static analysis on the given statement to decide if any code analysis provided by the specified code analyzers is needed.- Parameters:
statement- the statement to be analyzedanalyzers- the list of analyzers that CIVL wants to use for statements
-
getAnalyzers
public static List<CodeAnalyzer> getAnalyzers(CIVLConfiguration config, dev.civl.sarl.IF.SymbolicUniverse universe) gets all code analyzers as required in the configuration.- Parameters:
config- the configuration which contains the information of what analyzers are requesteduniverse- the symbolic universe to be used by the analyzers- Returns:
- all code analyzers as required in the configuration
-
analyzeCall
public static void analyzeCall(List<CodeAnalyzer> analyzers, State state, int pid, CallOrSpawnStatement statement, dev.civl.sarl.IF.expr.SymbolicExpression[] arguments) Analyzes a call statement at a certain state.- Parameters:
analyzers- the list of analyzers to be applied to the statementstate- the state where the analysis happenspid- the PID of the process that executes the statementstatement- the call statement to be analyzedarguments- the evaluation of the arguments of the call statement
-
printResults
prints the analysis result of each code analyzer.- Parameters:
analyzers- the list of code analyzers, the result of which is to be printedout- the output stream
-