private void SetParam(Action <Z3_params> setter) { Z3_params p = Native.Z3_mk_params(nCtx); Native.Z3_params_inc_ref(nCtx, p); setter(p); Native.Z3_solver_set_params(nCtx, z3solver, p); Native.Z3_params_dec_ref(nCtx, p); }
public static void Z3_params_set_symbol(Z3_context a0, Z3_params a1, IntPtr a2, IntPtr a3) { LIB.Z3_params_set_symbol(a0, a1, a2, a3); 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))); }
public static void Z3_params_dec_ref(Z3_context a0, Z3_params a1) { LIB.Z3_params_dec_ref(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))); }
public extern static int Z3_compute_interpolant(Z3_context a0, Z3_ast a1, Z3_params a2, [In, Out] ref Z3_ast_vector a3, [In, Out] ref Z3_model a4);
public extern static void Z3_params_set_uint(Z3_context a0, Z3_params a1, IntPtr a2, uint a3);
public extern static Z3_ast Z3_simplify_ex(Z3_context a0, Z3_ast a1, Z3_params a2);
public static Z3_ast_vector Z3_get_interpolant(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_params a3) { Z3_ast_vector r = LIB.Z3_get_interpolant(a0, a1, a2, a3); 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 r; }
public static Z3_apply_result Z3_tactic_apply_ex(Z3_context a0, Z3_tactic a1, Z3_goal a2, Z3_params a3) { Z3_apply_result r = LIB.Z3_tactic_apply_ex(a0, a1, a2, a3); 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 r; }
public extern static void Z3_params_validate(Z3_context a0, Z3_params a1, Z3_param_descrs a2);
public extern static IntPtr Z3_params_to_string(Z3_context a0, Z3_params a1);
public extern static void Z3_optimize_set_params(Z3_context a0, Z3_optimize a1, Z3_params a2);
public extern static void Z3_params_set_symbol(Z3_context a0, Z3_params a1, IntPtr a2, IntPtr a3);
public extern static void Z3_params_set_double(Z3_context a0, Z3_params a1, IntPtr a2, double a3);
public extern static void Z3_fixedpoint_set_params(Z3_context a0, Z3_fixedpoint a1, Z3_params a2);
public static string Z3_params_to_string(Z3_context a0, Z3_params a1) { IntPtr r = LIB.Z3_params_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 Z3_tactic Z3_tactic_using_params(Z3_context a0, Z3_tactic a1, Z3_params a2) { Z3_tactic r = LIB.Z3_tactic_using_params(a0, a1, a2); 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 r; }
public extern static Z3_tactic Z3_tactic_using_params(Z3_context a0, Z3_tactic a1, Z3_params a2);
public static void Z3_solver_set_params(Z3_context a0, Z3_solver a1, Z3_params a2) { LIB.Z3_solver_set_params(a0, a1, a2); 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))); }
public extern static Z3_apply_result Z3_tactic_apply_ex(Z3_context a0, Z3_tactic a1, Z3_goal a2, Z3_params a3);
public static int Z3_compute_interpolant(Z3_context a0, Z3_ast a1, Z3_params a2, [In, Out] ref Z3_ast_vector a3, [In, Out] ref Z3_model a4) { int r = LIB.Z3_compute_interpolant(a0, a1, a2, ref a3, ref a4); 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 r; }
public extern static void Z3_solver_set_params(Z3_context a0, Z3_solver a1, Z3_params a2);
public extern static void Z3_params_dec_ref(Z3_context a0, Z3_params a1);
public extern static Z3_ast_vector Z3_get_interpolant(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_params a3);