mirror of
https://github.com/Z3Prover/z3
synced 2025-07-27 06:27:56 +00:00
Added API Z3_param_descrs_to_string
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
42c27b7a46
commit
f7bcd40137
11 changed files with 1281 additions and 1232 deletions
|
@ -696,6 +696,8 @@ def init(PATH):
|
|||
_lib.Z3_param_descrs_size.argtypes = [ContextObj, ParamDescrs]
|
||||
_lib.Z3_param_descrs_get_name.restype = Symbol
|
||||
_lib.Z3_param_descrs_get_name.argtypes = [ContextObj, ParamDescrs, ctypes.c_uint]
|
||||
_lib.Z3_param_descrs_to_string.restype = ctypes.c_char_p
|
||||
_lib.Z3_param_descrs_to_string.argtypes = [ContextObj, ParamDescrs]
|
||||
_lib.Z3_interrupt.argtypes = [ContextObj]
|
||||
_lib.Z3_get_error_msg_ex.restype = ctypes.c_char_p
|
||||
_lib.Z3_get_error_msg_ex.argtypes = [ContextObj, ctypes.c_uint]
|
||||
|
@ -3341,6 +3343,13 @@ def Z3_param_descrs_get_name(a0, a1, a2):
|
|||
raise Z3Exception(lib().Z3_get_error_msg_ex(a0, err))
|
||||
return r
|
||||
|
||||
def Z3_param_descrs_to_string(a0, a1):
|
||||
r = lib().Z3_param_descrs_to_string(a0, a1)
|
||||
err = lib().Z3_get_error_code(a0)
|
||||
if err != Z3_OK:
|
||||
raise Z3Exception(lib().Z3_get_error_msg_ex(a0, err))
|
||||
return r
|
||||
|
||||
def Z3_interrupt(a0):
|
||||
lib().Z3_interrupt(a0)
|
||||
err = lib().Z3_get_error_code(a0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue