Package crypto.analysis
Class AnalysisSeedWithSpecification
- java.lang.Object
-
- crypto.analysis.IAnalysisSeed
-
- crypto.analysis.AnalysisSeedWithSpecification
-
public class AnalysisSeedWithSpecification extends IAnalysisSeed
-
-
Field Summary
-
Fields inherited from class crypto.analysis.IAnalysisSeed
analysisResults, errorCollection, LOGGER, predicateHandler, scanner
-
-
Constructor Summary
Constructors Constructor Description AnalysisSeedWithSpecification(CryptoScanner scanner, boomerang.scene.Statement statement, boomerang.scene.Val fact, boomerang.results.ForwardBoomerangResults<typestate.TransitionFunction> results, CrySLRule specification)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnsuredPredicate(EnsuredCrySLPredicate ensPred)Add an ensured predicate to the seed and implicitly rerun all constraint and predicate checksvoidaddHiddenPredicatesToError(RequiredPredicateError reqPredError)Collection<ISLConstraint>checkPredicates()Check, whether all required predicates are satisfied, and return a set with all predicates that are not satisfied.booleanequals(Object obj)voidexecute()Map<boomerang.scene.ControlFlowGraph.Edge,boomerang.scene.DeclaredMethod>getAllCallsOnObject()ExtractParameterAnalysisgetParameterAnalysis()CrySLRulegetSpecification()inthashCode()static AnalysisSeedWithSpecificationmakeSeedForComparison(CryptoScanner scanner, boomerang.scene.Statement statement, boomerang.scene.Val fact, CrySLRule rule)voidregisterResultsHandler(ResultsHandler handler)Collection<AbstractError>retrieveErrorsForPredCondition(CrySLPredicate pred)StringtoString()-
Methods inherited from class crypto.analysis.IAnalysisSeed
addError, getAnalysisResults, getErrors, getFact, getMethod, getObjectId, getOrigin, getScanner, getType, isSecure, setSecure
-
-
-
-
Constructor Detail
-
AnalysisSeedWithSpecification
public AnalysisSeedWithSpecification(CryptoScanner scanner, boomerang.scene.Statement statement, boomerang.scene.Val fact, boomerang.results.ForwardBoomerangResults<typestate.TransitionFunction> results, CrySLRule specification)
-
-
Method Detail
-
makeSeedForComparison
public static AnalysisSeedWithSpecification makeSeedForComparison(CryptoScanner scanner, boomerang.scene.Statement statement, boomerang.scene.Val fact, CrySLRule rule)
-
toString
public String toString()
- Overrides:
toStringin classIAnalysisSeed
-
execute
public void execute()
- Specified by:
executein classIAnalysisSeed
-
registerResultsHandler
public void registerResultsHandler(ResultsHandler handler)
-
addEnsuredPredicate
public void addEnsuredPredicate(EnsuredCrySLPredicate ensPred)
Add an ensured predicate to the seed and implicitly rerun all constraint and predicate checks- Parameters:
ensPred- the ensured predicate
-
checkPredicates
public Collection<ISLConstraint> checkPredicates()
Check, whether all required predicates are satisfied, and return a set with all predicates that are not satisfied. If the set is empty, all required predicate constraints are satisfied.- Returns:
- remainingPredicates predicates that are not satisfied
-
retrieveErrorsForPredCondition
public Collection<AbstractError> retrieveErrorsForPredCondition(CrySLPredicate pred)
-
addHiddenPredicatesToError
public void addHiddenPredicatesToError(RequiredPredicateError reqPredError)
-
getSpecification
public CrySLRule getSpecification()
-
getParameterAnalysis
public ExtractParameterAnalysis getParameterAnalysis()
-
getAllCallsOnObject
public Map<boomerang.scene.ControlFlowGraph.Edge,boomerang.scene.DeclaredMethod> getAllCallsOnObject()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIAnalysisSeed
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classIAnalysisSeed
-
-