/**
* A cvc5 operator.
+ *
* An operator is a term that represents certain operators, instantiated
- * with its required parameters, e.g., a term of kind BITVECTOR_EXTRACT.
+ * with its required parameters, e.g., a Term of kind #BITVECTOR_EXTRACT.
*/
class CVC5_EXPORT Op
{
/**
* Syntactic equality operator.
- * Return true if both operators are syntactically identical.
- * Both operators must belong to the same solver object.
+ *
+ * @note Both operators must belong to the same solver object.
+ *
* @param t The operator to compare to for equality.
- * @return True if the operators are equal.
+ * @return True if both operators are syntactically identical.
*/
bool operator==(const Op& t) const;
/**
* Syntactic disequality operator.
- * Return true if both operators differ syntactically.
- * Both terms must belong to the same solver object.
+ *
+ * @note Both terms must belong to the same solver object.
+ *
* @param t The operator to compare to for disequality.
- * @return True if operators are disequal.
+ * @return True if operators differ syntactically.
*/
bool operator!=(const Op& t) const;
size_t getNumIndices() const;
/**
- * Get the index at position i.
+ * Get the index at position `i`.
* @param i The position of the index to return.
* @return The index at position i.
*/
/**
* A cvc5 operator.
+ *
* An operator is a term that represents certain operators, instantiated
- * with its required parameters, e.g., a term of kind {@link Kind#BITVECTOR_EXTRACT}.
+ * with its required parameters, e.g., a Term of kind
+ * {@link Kind#BITVECTOR_EXTRACT}.
*/
public class Op extends AbstractPointer
{
/**
* Syntactic equality operator.
- * Return true if both operators are syntactically identical.
- * Both operators must belong to the same solver object.
- * @param t the operator to compare to for equality
- * @return true if the operators are equal
+ * @api.note Both operators must belong to the same solver object.
+ * @param t The operator to compare to for equality.
+ * @return True If the operators are syntactically identical.
*/
@Override
public boolean equals(Object t)
private native boolean equals(long pointer1, long pointer2);
/**
- * @return the kind of this operator
+ * @return The Kind of this operator.
*/
public Kind getKind()
{
private native int getKind(long pointer);
/**
- * @return true if this operator is a null term
+ * @return True If this operator is a null term.
*/
public boolean isNull()
{
private native boolean isNull(long pointer);
/**
- * @return true iff this operator is indexed
+ * @return True Iff this operator is indexed.
*/
public boolean isIndexed()
{
private native boolean isIndexed(long pointer);
/**
- * @return the number of indices of this op
+ * @return The Number of indices of this op.
*/
public int getNumIndices()
{
private native int getNumIndices(long pointer);
/**
- * Get the index at position i.
- * @param i the position of the index to return
- * @return the index at position i
+ * Get the index at position {@code i}.
+ * @param i The position of the index to return.
+ * @return The Index at position i.
*/
public Term get(int i) throws CVC5ApiException
{
private native long get(long pointer, int i);
/**
- * @return a string representation of this operator
+ * @return A String representation of this operator.
*/
protected native String toString(long pointer);
}