public class StaticBranchChoiceGenerator extends StaticPCChoiceGenerator
StaticPCChoiceGenerator.Kind| Modifier and Type | Field and Description |
|---|---|
static int |
ELSE_CHOICE |
static int |
HEURISTICS_ELSE_CHOICE |
static int |
HEURISTICS_THEN_CHOICE |
static boolean |
heuristicsCountingMode |
static int |
RETURN_CHOICE |
static int |
STATIC_CHOICE |
static int |
THEN_CHOICE |
currentTopFrame, region| Constructor and Description |
|---|
StaticBranchChoiceGenerator(DynamicRegion region,
gov.nasa.jpf.vm.Instruction instruction) |
StaticBranchChoiceGenerator(DynamicRegion region,
gov.nasa.jpf.vm.Instruction instruction,
boolean heuristicsOn) |
| Modifier and Type | Method and Description |
|---|---|
static gov.nasa.jpf.symbc.numeric.PathCondition |
createPC(gov.nasa.jpf.symbc.numeric.PathCondition pc,
za.ac.sun.cs.green.expr.Expression regionSummary,
za.ac.sun.cs.green.expr.Expression constraint) |
gov.nasa.jpf.vm.Instruction |
execute(gov.nasa.jpf.vm.ThreadInfo ti,
gov.nasa.jpf.vm.Instruction instructionToExecute,
int choice) |
private gov.nasa.jpf.vm.Instruction |
executeBinaryIf(gov.nasa.jpf.vm.Instruction instruction,
int choice) |
gov.nasa.jpf.vm.Instruction |
executeNullIf(gov.nasa.jpf.vm.Instruction instruction) |
gov.nasa.jpf.vm.Instruction |
executeUnaryIf(gov.nasa.jpf.vm.Instruction instruction,
int choice) |
static int |
getNumSatChoices(DynamicRegion region) |
static boolean |
isOnlyStaticChoiceSat(DynamicRegion region) |
void |
makeVeritestingCG(gov.nasa.jpf.vm.ThreadInfo ti,
gov.nasa.jpf.vm.Instruction instructionToExecute,
java.lang.String key) |
getKind, getRegiongetCurrentPC, getMethodName, getOffset, isReverseOrder, randomize, setCurrentPC, setMethodName, setNextChoice, setOffset, setPCadvance, getChoice, getChoices, getChoiceType, getNextChoice, getProcessedNumberOfChoices, getTotalNumberOfChoices, hasMoreChoices, isAscending, reorder, reset, reverse, supportsReordering, toStringaddAttr, advance, attrIterator, attrIterator, clone, deepClone, getAll, getAllChoices, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getNumberOfParents, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getProcessedChoices, getSourceLocation, getStateId, getThreadInfo, getUnprocessedChoices, hasAttr, hasAttr, hasAttrValue, init, isCascaded, isDone, isProcessed, isSchedulingPoint, removeAttr, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, useRandomizationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttr, advance, attrIterator, attrIterator, clone, deepClone, getAll, getAllChoices, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getNumberOfParents, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getProcessedChoices, getSourceLocation, getStateId, getThreadInfo, getUnprocessedChoices, hasAttr, hasAttr, isCascaded, isDone, isProcessed, isSchedulingPoint, removeAttr, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfopublic static int STATIC_CHOICE
public static int THEN_CHOICE
public static int ELSE_CHOICE
public static int RETURN_CHOICE
public static int HEURISTICS_THEN_CHOICE
public static int HEURISTICS_ELSE_CHOICE
public static boolean heuristicsCountingMode
public StaticBranchChoiceGenerator(DynamicRegion region, gov.nasa.jpf.vm.Instruction instruction)
public StaticBranchChoiceGenerator(DynamicRegion region, gov.nasa.jpf.vm.Instruction instruction, boolean heuristicsOn)
public gov.nasa.jpf.vm.Instruction execute(gov.nasa.jpf.vm.ThreadInfo ti,
gov.nasa.jpf.vm.Instruction instructionToExecute,
int choice)
throws StaticRegionException
execute in class StaticPCChoiceGeneratorStaticRegionExceptionprivate gov.nasa.jpf.vm.Instruction executeBinaryIf(gov.nasa.jpf.vm.Instruction instruction,
int choice)
throws StaticRegionException
StaticRegionExceptionpublic gov.nasa.jpf.vm.Instruction executeNullIf(gov.nasa.jpf.vm.Instruction instruction)
public gov.nasa.jpf.vm.Instruction executeUnaryIf(gov.nasa.jpf.vm.Instruction instruction,
int choice)
throws StaticRegionException
StaticRegionExceptionpublic static gov.nasa.jpf.symbc.numeric.PathCondition createPC(gov.nasa.jpf.symbc.numeric.PathCondition pc,
za.ac.sun.cs.green.expr.Expression regionSummary,
za.ac.sun.cs.green.expr.Expression constraint)
public void makeVeritestingCG(gov.nasa.jpf.vm.ThreadInfo ti,
gov.nasa.jpf.vm.Instruction instructionToExecute,
java.lang.String key)
throws StaticRegionException
makeVeritestingCG in class StaticPCChoiceGeneratorStaticRegionExceptionpublic static int getNumSatChoices(DynamicRegion region)
public static boolean isOnlyStaticChoiceSat(DynamicRegion region)