public class PreciseRaceDetector extends PropertyListenerAdapter
Modifier and Type | Field and Description |
---|---|
protected StringSetMatcher |
excludes |
protected StringSetMatcher |
includes |
protected gov.nasa.jpf.listener.PreciseRaceDetector.Race |
race |
Constructor and Description |
---|
PreciseRaceDetector(Config conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(Search search,
VM vm)
return true if property is NOT violated
|
protected boolean |
checkRace(ThreadInfo[] threads) |
void |
choiceGeneratorSet(VM vm,
ChoiceGenerator<?> newCG)
a new ChoiceGenerator was set, which means we are at the beginning of a new transition.
|
void |
executeInstruction(VM vm,
ThreadInfo ti,
Instruction insnToExecute)
VM is about to execute the next instruction
|
java.lang.String |
getErrorMessage() |
void |
reset() |
choiceGeneratorAdvanced, choiceGeneratorProcessed, choiceGeneratorRegistered, classLoaded, clone, exceptionBailout, exceptionHandled, exceptionThrown, gcBegin, gcEnd, instructionExecuted, loadClass, methodEntered, methodExited, objectCreated, objectExposed, objectLocked, objectNotify, objectNotifyAll, objectReleased, objectShared, objectUnlocked, objectWait, propertyViolated, publishConstraintHit, publishFinished, publishProbe, publishPropertyViolation, publishStart, publishTransition, searchConstraintHit, searchFinished, searchProbed, searchStarted, stateAdvanced, stateBacktracked, stateProcessed, statePurged, stateRestored, stateStored, threadBlocked, threadInterrupted, threadNotified, threadScheduled, threadStarted, threadTerminated, threadWaiting, vmInitialized
getExplanation, printOn
protected gov.nasa.jpf.listener.PreciseRaceDetector.Race race
protected StringSetMatcher includes
protected StringSetMatcher excludes
public PreciseRaceDetector(Config conf)
public boolean check(Search search, VM vm)
Property
check
in interface Property
check
in class PropertyListenerAdapter
public void reset()
reset
in interface Property
reset
in class PropertyListenerAdapter
public java.lang.String getErrorMessage()
getErrorMessage
in interface Property
getErrorMessage
in class GenericProperty
protected boolean checkRace(ThreadInfo[] threads)
public void choiceGeneratorSet(VM vm, ChoiceGenerator<?> newCG)
VMListener
choiceGeneratorSet
in interface VMListener
choiceGeneratorSet
in class PropertyListenerAdapter
public void executeInstruction(VM vm, ThreadInfo ti, Instruction insnToExecute)
VMListener
executeInstruction
in interface VMListener
executeInstruction
in class PropertyListenerAdapter