Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 committed Aug 4, 2023
1 parent acf5394 commit 5106bde
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 @@ -573,7 +573,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 Solver solver
def __cinit__(self, Solver solver):
Expand All @@ -597,10 +606,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 5106bde

Please sign in to comment.