Package io.github.cvc5
Class SynthResult
- java.lang.Object
-
- io.github.cvc5.SynthResult
-
public class SynthResult extends java.lang.Object
Encapsulation 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 long
pointer
-
Constructor Summary
Constructors Constructor Description SynthResult()
Null synthResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deletePointer()
protected void
deletePointer(long pointer)
boolean
equals(java.lang.Object r)
Operator overloading for equality of two synthesis results.long
getPointer()
int
hashCode()
Get the hash value of a synthesis result.boolean
hasNoSolution()
boolean
hasSolution()
boolean
isNull()
boolean
isUnknown()
java.lang.String
toString()
protected java.lang.String
toString(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:
equals
in 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:
hashCode
in classjava.lang.Object
- Returns:
- The hash value.
-
getPointer
public long getPointer()
-
deletePointer
public void deletePointer()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-