public class ProgramState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProgramState.Pop |
static class |
ProgramState.SymbolicValueSymbol
This class is used to keep on stack symbolic value together with symbol which was used to evaluate this value.
|
Modifier and Type | Field and Description |
---|---|
static ProgramState |
EMPTY_STATE |
public static final ProgramState EMPTY_STATE
public ProgramState stackValue(SymbolicValue sv)
public ProgramState stackValue(SymbolicValue sv, @Nullable Symbol symbol)
public ProgramState.Pop unstackValue(int nbElements)
@CheckForNull public SymbolicValue peekValue()
public ProgramState.SymbolicValueSymbol peekValueSymbol()
public SymbolicValue peekValue(int i)
public List<SymbolicValue> peekValues(int n)
public List<ProgramState.SymbolicValueSymbol> peekValuesAndSymbols(int n)
public int numberOfTimeVisited(ProgramPoint programPoint)
public ProgramState addConstraintTransitively(SymbolicValue symbolicValue, Constraint constraint)
public Set<RelationalSymbolicValue> knownRelations()
public ProgramState addConstraint(SymbolicValue symbolicValue, Constraint constraint)
public ProgramState addConstraints(SymbolicValue symbolicValue, ConstraintsByDomain constraintsForSV)
public ProgramState removeConstraintsOnDomain(SymbolicValue sv, Class<? extends Constraint> domain)
public ProgramState put(int index, SymbolicValue value)
public ProgramState put(Symbol symbol, SymbolicValue value)
public ProgramState cleanupDeadSymbols(Set<Symbol> liveVariables, Collection<SymbolicValue> protectedSymbolicValues)
public ProgramState cleanupConstraints(Collection<SymbolicValue> protectedSymbolicValues)
public static boolean isField(Symbol symbol)
public boolean canReach(SymbolicValue symbolicValue)
public ProgramState visitedPoint(ProgramPoint programPoint, int nbOfVisit)
@Nullable public ConstraintsByDomain getConstraints(SymbolicValue sv)
@CheckForNull public <T extends Constraint> T getConstraint(SymbolicValue sv, Class<T> domain)
public int constraintsSize()
@CheckForNull public SymbolicValue getValue(int index)
@CheckForNull public SymbolicValue getValue(Symbol symbol)
public List<SymbolicValue> getValuesWithConstraints(Constraint constraint)
public void storeExitValue()
@CheckForNull public SymbolicValue exitValue()
public boolean exitingOnRuntimeException()
Copyright © 2012–2017 SonarSource. All rights reserved.