Package io.github.cvc5
Class SynthResult
- java.lang.Object
-
- io.github.cvc5.SynthResult
-
public class SynthResult extends java.lang.ObjectEncapsulation of a solver synth result. This is the return value of the API methods: -Solver.checkSynth()-Solver.checkSynthNext()which we call synthesis queries. This class indicates whether the synthesis query has a solution, has no solution, or is unknown.
-
-
Field Summary
Fields Modifier and Type Field Description protected longpointer
-
Constructor Summary
Constructors Constructor Description SynthResult()Null synthResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeletePointer()protected voiddeletePointer(long pointer)booleanequals(java.lang.Object r)Operator overloading for equality of two synthesis results.longgetPointer()inthashCode()Get the hash value of a synthesis result.booleanhasNoSolution()booleanhasSolution()booleanisNull()booleanisUnknown()java.lang.StringtoString()protected java.lang.StringtoString(long pointer)
-
-
-
Method Detail
-
deletePointer
protected void deletePointer(long pointer)
-
equals
public boolean equals(java.lang.Object r)
Operator overloading for equality of two synthesis results.- Overrides:
equalsin classjava.lang.Object- Parameters:
r- The synthesis result to compare to for equality.- Returns:
- True if the synthesis results are equal.
-
isNull
public boolean isNull()
- Returns:
- True if SynthResult is empty, i.e., a nullary SynthResult, and not an actual result returned from a synthesis query.
-
hasSolution
public boolean hasSolution()
- Returns:
- True if the synthesis query has a solution.
-
hasNoSolution
public boolean hasNoSolution()
- Returns:
- True if the synthesis query has no solution. In this case, it was determined there was no solution.
-
isUnknown
public boolean isUnknown()
- Returns:
- True if the result of the synthesis query could not be determined.
-
toString
protected java.lang.String toString(long pointer)
- Returns:
- A string representation of this result.
-
hashCode
public int hashCode()
Get the hash value of a synthesis result.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash value.
-
getPointer
public long getPointer()
-
deletePointer
public void deletePointer()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-