mirror of
https://github.com/Z3Prover/z3
synced 2025-07-23 04:38:53 +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
|
@ -1132,6 +1132,9 @@ namespace Microsoft.Z3
|
|||
[DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public extern static IntPtr Z3_param_descrs_get_name(Z3_context a0, Z3_param_descrs a1, uint a2);
|
||||
|
||||
[DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public extern static IntPtr Z3_param_descrs_to_string(Z3_context a0, Z3_param_descrs a1);
|
||||
|
||||
[DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public extern static void Z3_interrupt(Z3_context a0);
|
||||
|
||||
|
@ -4293,6 +4296,14 @@ namespace Microsoft.Z3
|
|||
return r;
|
||||
}
|
||||
|
||||
public static string Z3_param_descrs_to_string(Z3_context a0, Z3_param_descrs a1) {
|
||||
IntPtr r = LIB.Z3_param_descrs_to_string(a0, a1);
|
||||
Z3_error_code err = (Z3_error_code)LIB.Z3_get_error_code(a0);
|
||||
if (err != Z3_error_code.Z3_OK)
|
||||
throw new Z3Exception(Marshal.PtrToStringAnsi(LIB.Z3_get_error_msg_ex(a0, (uint)err)));
|
||||
return Marshal.PtrToStringAnsi(r);
|
||||
}
|
||||
|
||||
public static void Z3_interrupt(Z3_context a0) {
|
||||
LIB.Z3_interrupt(a0);
|
||||
Z3_error_code err = (Z3_error_code)LIB.Z3_get_error_code(a0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue