summaryrefslogtreecommitdiff
path: root/src/api/python/cvc5.pxi
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2021-11-03 15:04:34 -0700
committerGitHub <noreply@github.com>2021-11-03 22:04:34 +0000
commita517a9127e0ef70424364d093bb21be64891dd0d (patch)
tree424d74c9509459dbb8b7b15a8e6856581e3c8be6 /src/api/python/cvc5.pxi
parent79cbac66b3676cfcaeb9739ad046084f6328ac74 (diff)
api: Rename some separation logic functions for consistency. (#7564)
This renames Solver::getSeparationHeap to Solver::getValueSepHeap, Solver::getSeparationNilTerm to Solver::getSepNil and Solver::declareSeparationHeap to Solver::declareSepHeap. @mudathirmahgoub @alex-ozdemir @yoni206
Diffstat (limited to 'src/api/python/cvc5.pxi')
-rw-r--r--src/api/python/cvc5.pxi12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/python/cvc5.pxi b/src/api/python/cvc5.pxi
index 6f50b8401..05138e9bc 100644
--- a/src/api/python/cvc5.pxi
+++ b/src/api/python/cvc5.pxi
@@ -2047,25 +2047,25 @@ cdef class Solver:
"""
return self.csolver.isModelCoreSymbol(v.cterm)
- def getSeparationHeap(self):
+ def getValueSepHeap(self):
"""When using separation logic, obtain the term for the heap.
:return: The term for the heap
"""
cdef Term term = Term(self)
- term.cterm = self.csolver.getSeparationHeap()
+ term.cterm = self.csolver.getValueSepHeap()
return term
- def getSeparationNilTerm(self):
+ def getValueSepNil(self):
"""When using separation logic, obtain the term for nil.
:return: The term for nil
"""
cdef Term term = Term(self)
- term.cterm = self.csolver.getSeparationNilTerm()
+ term.cterm = self.csolver.getValueSepNil()
return term
- def declareSeparationHeap(self, Sort locType, Sort dataType):
+ def declareSepHeap(self, Sort locType, Sort dataType):
"""
When using separation logic, this sets the location sort and the
datatype sort to the given ones. This method should be invoked exactly
@@ -2074,7 +2074,7 @@ cdef class Solver:
:param locSort: The location sort of the heap
:param dataSort: The data sort of the heap
"""
- self.csolver.declareSeparationHeap(locType.csort, dataType.csort)
+ self.csolver.declareSepHeap(locType.csort, dataType.csort)
def declarePool(self, str symbol, Sort sort, initValue):
"""Declare a symbolic pool of terms with the given initial value.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback