mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
add documentation methods to param_descrs, add C++ API and example for param_descrs. Issue #443
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9ed7dadc02
commit
8d61d36c3f
7 changed files with 91 additions and 0 deletions
|
@ -4649,6 +4649,11 @@ class ParamDescrsRef:
|
|||
"""
|
||||
return Z3_param_descrs_get_kind(self.ctx.ref(), self.descr, to_symbol(n, self.ctx))
|
||||
|
||||
def get_documentation(self, n):
|
||||
"""Return the documentation string of the parameter named `n`.
|
||||
"""
|
||||
return Z3_param_descrs_get_documentation(self.ctx.ref(), self.descr, to_symbol(n, self.ctx))
|
||||
|
||||
def __getitem__(self, arg):
|
||||
if _is_int(arg):
|
||||
return self.get_name(arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue