Skip to content

Commit

Permalink
small rework of symbolic traverser
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullinAM committed Sep 18, 2023
1 parent 3a3ffab commit 6bf3156
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,20 +209,18 @@ abstract class AbstractCrashReproductionChecker<T>(
}
}

final override suspend fun traverseInstruction(inst: Instruction) {
final override suspend fun traverseInstruction(state: TraverserState, inst: Instruction): TraverserState? {
if (preconditionReceiver.stoppedReceiving) {
currentState = null
preconditionProvider.stopProviding()
return
return null
}

checkNewPreconditions()
if (inst in targetInstructions) {
val traverserState = currentState ?: return
checkSetOfPreconditions(inst, traverserState, preconditionProvider.getPreconditions(inst, traverserState))
checkSetOfPreconditions(inst, state, preconditionProvider.getPreconditions(inst, state))
}

super.traverseInstruction(inst)
return super.traverseInstruction(state, inst)
}

final override suspend fun checkIncremental(
Expand Down
Loading

0 comments on commit 6bf3156

Please sign in to comment.