Class VCChecker
java.lang.Object
liquidjava.processor.refinement_checker.VCChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancanProcessSubtyping(Predicate type, Predicate expectedType, List<GhostState> list, spoon.reflect.cu.SourcePosition position, spoon.reflect.factory.Factory f) voidprocessSubtyping(Predicate expectedType, List<GhostState> list, spoon.reflect.declaration.CtElement element, spoon.reflect.factory.Factory f) voidprocessSubtyping(Predicate type, Predicate expectedType, List<GhostState> list, spoon.reflect.declaration.CtElement element, spoon.reflect.factory.Factory f) Check that type is a subtype of expectedType Throws RefinementError otherwisevoidbooleanChecks the expected against the found constraintprotected voidthrowRefinementError(spoon.reflect.cu.SourcePosition position, Predicate expected, Predicate found) protected voidthrowStateConflictError(spoon.reflect.cu.SourcePosition position, Predicate expected) protected voidthrowStateRefinementError(spoon.reflect.cu.SourcePosition position, Predicate found, Predicate expected)
-
Constructor Details
-
VCChecker
public VCChecker()
-
-
Method Details
-
processSubtyping
public void processSubtyping(Predicate expectedType, List<GhostState> list, spoon.reflect.declaration.CtElement element, spoon.reflect.factory.Factory f) throws LJError - Throws:
LJError
-
processSubtyping
public void processSubtyping(Predicate type, Predicate expectedType, List<GhostState> list, spoon.reflect.declaration.CtElement element, spoon.reflect.factory.Factory f) throws LJError Check that type is a subtype of expectedType Throws RefinementError otherwise- Parameters:
type-expectedType-list-element-f-- Throws:
LJError
-
smtChecks
-
canProcessSubtyping
-
addPathVariable
-
removePathVariable
-
throwRefinementError
protected void throwRefinementError(spoon.reflect.cu.SourcePosition position, Predicate expected, Predicate found) throws RefinementError - Throws:
RefinementError
-
throwStateRefinementError
protected void throwStateRefinementError(spoon.reflect.cu.SourcePosition position, Predicate found, Predicate expected) throws StateRefinementError - Throws:
StateRefinementError
-
throwStateConflictError
protected void throwStateConflictError(spoon.reflect.cu.SourcePosition position, Predicate expected) throws StateConflictError - Throws:
StateConflictError
-