Package io.github.cvc5
Class Proof
java.lang.Object
io.github.cvc5.Proof
A cvc5 Proof.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Free the native resource associated with this pointer.protected void
deletePointer
(long pointer) Delete the native resource associated with the specified pointer.boolean
Referential equality operator.Term[]
Get the arguments of the root step of the proof as a vector of terms.Proof[]
Get the premises of the root step of the proof.long
Return the raw native pointer.Get the conclusion of the root step of the proof.Get the proof rewrite rule used by the root step of the proof.getRule()
Get the proof rule used by the root step of the proof.int
hashCode()
Get the hash value of a proof.toString()
Return a string representation of the pointer.protected String
toString
(long pointer) Return a string representation of the specified native pointer.
-
Field Details
-
pointer
protected long pointerThe raw native pointer value.
-
-
Constructor Details
-
Proof
public Proof()Null proof
-
-
Method Details
-
deletePointer
protected void deletePointer(long pointer) Delete the native resource associated with the specified pointer.Subclasses must implement this method to provide resource-specific cleanup logic.
- Parameters:
pointer
- the native pointer to delete
-
toString
Return a string representation of the specified native pointer.Subclasses must implement this method to convert the native pointer into a meaningful string.
- Parameters:
pointer
- the native pointer- Returns:
- a string representation of the pointer
-
getRule
Get the proof rule used by the root step of the proof.- Returns:
- The proof rule used by the root step of the proof.
- Throws:
CVC5ApiException
- on error
-
getRewriteRule
Get the proof rewrite rule used by the root step of the proof.- Returns:
- The proof rewrite rule used by the root step of the proof.
- Throws:
CVC5ApiException
- if `getRule()` does not return `DSL_REWRITE` or `THEORY_REWRITE`.
-
getResult
Get the conclusion of the root step of the proof.- Returns:
- The conclusion of the root step of the proof.
-
getChildren
Get the premises of the root step of the proof.- Returns:
- The premises of the root step of the proof.
-
getArguments
Get the arguments of the root step of the proof as a vector of terms.- Returns:
- The arguments of the root step of the proof as a vector of terms. Some of those terms might be strings.
-
equals
Referential equality operator. -
hashCode
public int hashCode()Get the hash value of a proof. -
getPointer
public long getPointer()Return the raw native pointer.- Returns:
- the pointer value
-
deletePointer
public void deletePointer()Free the native resource associated with this pointer.This method should be called to explicitly clean up the underlying native resource. It removes this instance from the
Context
, then invokes the subclass-defineddeletePointer(long)
method to perform the actual cleanup. -
toString
Return a string representation of the pointer.
-