Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 committed Nov 21, 2024
1 parent 7a007c6 commit 1df0e73
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/api/python/cvc5.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,16 @@ cdef class DatatypeSelector:
# ----------------------------------------------------------------------------

cdef class Op:
"""Wrapper class for :cpp:class:`cvc5::api::Op`."""
"""
A cvc5 operator.
An operator is a term that represents certain operators,
instantiated with its required parameters, e.g.,
a term of kind
:py:obj:`BITVECTOR_EXTRACT <Kind.BITVECTOR_EXTRACT>`.
Wrapper class for :cpp:class:`cvc5::Op`.
"""
cdef c_Op cop
cdef TermManager tm

Expand All @@ -918,10 +927,10 @@ cdef class Op:

def getKind(self):
"""
:return: the kind of this operator.
:return: The kind of this operator.
"""
return kind(<int> self.cop.getKind())
return Kind(<int> self.cop.getKind())

def isIndexed(self):
"""
:return: True iff this operator is indexed.
Expand Down

0 comments on commit 1df0e73

Please sign in to comment.