Class ConcurrentAbstractionPathBuilder
java.lang.Object
soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.ConcurrentAbstractionPathBuilder
- All Implemented Interfaces:
IAbstractionPathBuilder,IMemoryBoundedSolver
- Direct Known Subclasses:
ContextInsensitivePathBuilder,ContextInsensitiveSourceFinder,ContextSensitivePathBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface soot.jimple.infoflow.data.pathBuilders.IAbstractionPathBuilder
IAbstractionPathBuilder.OnPathBuilderResultAvailableNested classes/interfaces inherited from interface soot.jimple.infoflow.memory.IMemoryBoundedSolver
IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InterruptableExecutorprotected final InfoflowResultsFields inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
config, logger, manager, resultAvailableHandlers -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentAbstractionPathBuilder(InfoflowManager manager, InterruptableExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new listener that will be notified of status changes in the solvervoidComputes the path of tainted data between the source and the sinkvoidForces the solver to terminate its tasks and stop processing new tasks.Gets the constructed result pathsprotected abstract RunnableGets the task that computes the result paths for a single abstraction.In case this solver was killed before it could complete its task, this method returns the reason for the abortion.booleanisKilled()Checks whether this solver was killed before it could complete its tasksbooleanChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.voidreset()Resets the solver to its initial state after it has been forcefully terminated.protected voidSchedules the given task for executionprotected abstract booleanSpecifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sinkMethods inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
addResultAvailableHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.data.pathBuilders.IAbstractionPathBuilder
runIncrementalPathComputation
-
Field Details
-
results
-
executor
-
-
Constructor Details
-
ConcurrentAbstractionPathBuilder
-
-
Method Details
-
getTaintPathTask
Gets the task that computes the result paths for a single abstraction. If the concrete path building algorithm does not want to handle the given abstraction, it can return null to not execute anything.- Parameters:
abs- The abstraction for which to compute the result paths
-
computeTaintPaths
Description copied from interface:IAbstractionPathBuilderComputes the path of tainted data between the source and the sink- Parameters:
res- The data flow tracker results
-
triggerComputationForNeighbors
protected abstract boolean triggerComputationForNeighbors()Specifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sink- Returns:
- True if separate path reconstruction tasks shall be started for each neighbor of each abstraction that reaches a sink, false if only the abstraction itself shall trigger a path reconstruction task
-
forceTerminate
Description copied from interface:IMemoryBoundedSolverForces the solver to terminate its tasks and stop processing new tasks. This will kill the solver.- Parameters:
reason- The reason why the solver is terminated
-
scheduleDependentTask
Schedules the given task for execution- Parameters:
task- The task to execute
-
getResults
Description copied from interface:IAbstractionPathBuilderGets the constructed result paths- Returns:
- The constructed result paths
-
isTerminated
public boolean isTerminated()Description copied from interface:IMemoryBoundedSolverChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.- Returns:
- True if this solver is terminated, otherwise false
-
isKilled
public boolean isKilled()Description copied from interface:IMemoryBoundedSolverChecks whether this solver was killed before it could complete its tasks- Returns:
- True if this solver was killed before it could complete its tasks, otherwise false
-
reset
public void reset()Description copied from interface:IMemoryBoundedSolverResets the solver to its initial state after it has been forcefully terminated. After calling this method, the solver is expected to accept new tasks. -
getTerminationReason
Description copied from interface:IMemoryBoundedSolverIn case this solver was killed before it could complete its task, this method returns the reason for the abortion. Otherwise, this method returns null.- Returns:
- The reason for the abortion in case the solver was killed, otherwise null
-
addStatusListener
Description copied from interface:IMemoryBoundedSolverAdds a new listener that will be notified of status changes in the solver- Parameters:
listener- The listener that will be notified when the status of the solver changes
-