public class ProgramState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProgramState.Pop |
Modifier and Type | Field and Description |
---|---|
static ProgramState |
EMPTY_STATE |
public static final ProgramState EMPTY_STATE
public ProgramState stackValue(SymbolicValue sv)
public ProgramState.Pop unstackValue(int nbElements)
@CheckForNull public SymbolicValue peekValue()
public SymbolicValue peekValue(int i)
public List<SymbolicValue> peekValues(int n)
@CheckForNull public Symbol getLastEvaluated()
public ProgramState addConstraint(SymbolicValue symbolicValue, Constraint constraint)
public ProgramState addConstraints(SymbolicValue symbolicValue, PMap<Class<? extends Constraint>,Constraint> constraintsForSV)
public ProgramState removeConstraintsOnDomain(SymbolicValue sv, Class<? extends Constraint> domain)
public ProgramState put(Symbol symbol, SymbolicValue value)
public ProgramState cleanupDeadSymbols(Set<Symbol> liveVariables, Collection<SymbolicValue> protectedSymbolicValues)
public ProgramState cleanupConstraints(Collection<SymbolicValue> protectedSymbolicValues)
public ProgramState resetFieldValues(ConstraintManager constraintManager)
public static boolean isField(Symbol symbol)
public boolean canReach(SymbolicValue symbolicValue)
public ProgramState visitedPoint(ProgramPoint programPoint, int nbOfVisit)
@Nullable public PMap<Class<? extends Constraint>,Constraint> getConstraints(SymbolicValue sv)
@CheckForNull public <T extends Constraint> T getConstraint(SymbolicValue sv, Class<T> domain)
public int constraintsSize()
@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.