diff --git a/Microsoft.Z3/Enumerations.cs b/Microsoft.Z3/Enumerations.cs
index b8bbc3911..36f49005e 100644
--- a/Microsoft.Z3/Enumerations.cs
+++ b/Microsoft.Z3/Enumerations.cs
@@ -1,258 +1,258 @@
-// Automatically generated file, generator: mk_z3consts.py
-
-using System;
-
-#pragma warning disable 1591
-
-namespace Microsoft.Z3
-{
- /// Z3_lbool
- public enum Z3_lbool {
- Z3_L_TRUE = 1,
- Z3_L_UNDEF = 0,
- Z3_L_FALSE = -1,
- }
-
- /// Z3_symbol_kind
- public enum Z3_symbol_kind {
- Z3_INT_SYMBOL = 0,
- Z3_STRING_SYMBOL = 1,
- }
-
- /// Z3_parameter_kind
- public enum Z3_parameter_kind {
- Z3_PARAMETER_FUNC_DECL = 6,
- Z3_PARAMETER_DOUBLE = 1,
- Z3_PARAMETER_SYMBOL = 3,
- Z3_PARAMETER_INT = 0,
- Z3_PARAMETER_AST = 5,
- Z3_PARAMETER_SORT = 4,
- Z3_PARAMETER_RATIONAL = 2,
- }
-
- /// Z3_sort_kind
- public enum Z3_sort_kind {
- Z3_BV_SORT = 4,
- Z3_FINITE_DOMAIN_SORT = 8,
- Z3_ARRAY_SORT = 5,
- Z3_UNKNOWN_SORT = 1000,
- Z3_RELATION_SORT = 7,
- Z3_REAL_SORT = 3,
- Z3_INT_SORT = 2,
- Z3_UNINTERPRETED_SORT = 0,
- Z3_BOOL_SORT = 1,
- Z3_DATATYPE_SORT = 6,
- }
-
- /// Z3_ast_kind
- public enum Z3_ast_kind {
- Z3_VAR_AST = 2,
- Z3_SORT_AST = 4,
- Z3_QUANTIFIER_AST = 3,
- Z3_UNKNOWN_AST = 1000,
- Z3_FUNC_DECL_AST = 5,
- Z3_NUMERAL_AST = 0,
- Z3_APP_AST = 1,
- }
-
- /// Z3_decl_kind
- public enum Z3_decl_kind {
- Z3_OP_LABEL = 1792,
- Z3_OP_PR_REWRITE = 1294,
- Z3_OP_UNINTERPRETED = 2051,
- Z3_OP_SUB = 519,
- Z3_OP_ZERO_EXT = 1058,
- Z3_OP_ADD = 518,
- Z3_OP_IS_INT = 528,
- Z3_OP_BREDOR = 1061,
- Z3_OP_BNOT = 1051,
- Z3_OP_BNOR = 1054,
- Z3_OP_PR_CNF_STAR = 1315,
- Z3_OP_RA_JOIN = 1539,
- Z3_OP_LE = 514,
- Z3_OP_SET_UNION = 773,
- Z3_OP_PR_UNDEF = 1280,
- Z3_OP_BREDAND = 1062,
- Z3_OP_LT = 516,
- Z3_OP_RA_UNION = 1540,
- Z3_OP_BADD = 1028,
- Z3_OP_BUREM0 = 1039,
- Z3_OP_OEQ = 267,
- Z3_OP_PR_MODUS_PONENS = 1284,
- Z3_OP_RA_CLONE = 1548,
- Z3_OP_REPEAT = 1060,
- Z3_OP_RA_NEGATION_FILTER = 1544,
- Z3_OP_BSMOD0 = 1040,
- Z3_OP_BLSHR = 1065,
- Z3_OP_BASHR = 1066,
- Z3_OP_PR_UNIT_RESOLUTION = 1304,
- Z3_OP_ROTATE_RIGHT = 1068,
- Z3_OP_ARRAY_DEFAULT = 772,
- Z3_OP_PR_PULL_QUANT = 1296,
- Z3_OP_PR_APPLY_DEF = 1310,
- Z3_OP_PR_REWRITE_STAR = 1295,
- Z3_OP_IDIV = 523,
- Z3_OP_PR_GOAL = 1283,
- Z3_OP_PR_IFF_TRUE = 1305,
- Z3_OP_LABEL_LIT = 1793,
- Z3_OP_BOR = 1050,
- Z3_OP_PR_SYMMETRY = 1286,
- Z3_OP_TRUE = 256,
- Z3_OP_SET_COMPLEMENT = 776,
- Z3_OP_CONCAT = 1056,
- Z3_OP_PR_NOT_OR_ELIM = 1293,
- Z3_OP_IFF = 263,
- Z3_OP_BSHL = 1064,
- Z3_OP_PR_TRANSITIVITY = 1287,
- Z3_OP_SGT = 1048,
- Z3_OP_RA_WIDEN = 1541,
- Z3_OP_PR_DEF_INTRO = 1309,
- Z3_OP_NOT = 265,
- Z3_OP_PR_QUANT_INTRO = 1290,
- Z3_OP_UGT = 1047,
- Z3_OP_DT_RECOGNISER = 2049,
- Z3_OP_SET_INTERSECT = 774,
- Z3_OP_BSREM = 1033,
- Z3_OP_RA_STORE = 1536,
- Z3_OP_SLT = 1046,
- Z3_OP_ROTATE_LEFT = 1067,
- Z3_OP_PR_NNF_NEG = 1313,
- Z3_OP_PR_REFLEXIVITY = 1285,
- Z3_OP_ULEQ = 1041,
- Z3_OP_BIT1 = 1025,
- Z3_OP_BIT0 = 1026,
- Z3_OP_EQ = 258,
- Z3_OP_BMUL = 1030,
- Z3_OP_ARRAY_MAP = 771,
- Z3_OP_STORE = 768,
- Z3_OP_PR_HYPOTHESIS = 1302,
- Z3_OP_RA_RENAME = 1545,
- Z3_OP_AND = 261,
- Z3_OP_TO_REAL = 526,
- Z3_OP_PR_NNF_POS = 1312,
- Z3_OP_PR_AND_ELIM = 1292,
- Z3_OP_MOD = 525,
- Z3_OP_BUDIV0 = 1037,
- Z3_OP_PR_TRUE = 1281,
- Z3_OP_BNAND = 1053,
- Z3_OP_PR_ELIM_UNUSED_VARS = 1299,
- Z3_OP_RA_FILTER = 1543,
- Z3_OP_FD_LT = 1549,
- Z3_OP_RA_EMPTY = 1537,
- Z3_OP_DIV = 522,
- Z3_OP_ANUM = 512,
- Z3_OP_MUL = 521,
- Z3_OP_UGEQ = 1043,
- Z3_OP_BSREM0 = 1038,
- Z3_OP_PR_TH_LEMMA = 1318,
- Z3_OP_BXOR = 1052,
- Z3_OP_DISTINCT = 259,
- Z3_OP_PR_IFF_FALSE = 1306,
- Z3_OP_BV2INT = 1072,
- Z3_OP_EXT_ROTATE_LEFT = 1069,
- Z3_OP_PR_PULL_QUANT_STAR = 1297,
- Z3_OP_BSUB = 1029,
- Z3_OP_PR_ASSERTED = 1282,
- Z3_OP_BXNOR = 1055,
- Z3_OP_EXTRACT = 1059,
- Z3_OP_PR_DER = 1300,
- Z3_OP_DT_CONSTRUCTOR = 2048,
- Z3_OP_GT = 517,
- Z3_OP_BUREM = 1034,
- Z3_OP_IMPLIES = 266,
- Z3_OP_SLEQ = 1042,
- Z3_OP_GE = 515,
- Z3_OP_BAND = 1049,
- Z3_OP_ITE = 260,
- Z3_OP_AS_ARRAY = 778,
- Z3_OP_RA_SELECT = 1547,
- Z3_OP_CONST_ARRAY = 770,
- Z3_OP_BSDIV = 1031,
- Z3_OP_OR = 262,
- Z3_OP_PR_HYPER_RESOLVE = 1319,
- Z3_OP_AGNUM = 513,
- Z3_OP_PR_PUSH_QUANT = 1298,
- Z3_OP_BSMOD = 1035,
- Z3_OP_PR_IFF_OEQ = 1311,
- Z3_OP_PR_LEMMA = 1303,
- Z3_OP_SET_SUBSET = 777,
- Z3_OP_SELECT = 769,
- Z3_OP_RA_PROJECT = 1542,
- Z3_OP_BNEG = 1027,
- Z3_OP_UMINUS = 520,
- Z3_OP_REM = 524,
- Z3_OP_TO_INT = 527,
- Z3_OP_PR_QUANT_INST = 1301,
- Z3_OP_SGEQ = 1044,
- Z3_OP_POWER = 529,
- Z3_OP_XOR3 = 1074,
- Z3_OP_RA_IS_EMPTY = 1538,
- Z3_OP_CARRY = 1073,
- Z3_OP_DT_ACCESSOR = 2050,
- Z3_OP_PR_TRANSITIVITY_STAR = 1288,
- Z3_OP_PR_NNF_STAR = 1314,
- Z3_OP_PR_COMMUTATIVITY = 1307,
- Z3_OP_ULT = 1045,
- Z3_OP_BSDIV0 = 1036,
- Z3_OP_SET_DIFFERENCE = 775,
- Z3_OP_INT2BV = 1071,
- Z3_OP_XOR = 264,
- Z3_OP_PR_MODUS_PONENS_OEQ = 1317,
- Z3_OP_BNUM = 1024,
- Z3_OP_BUDIV = 1032,
- Z3_OP_PR_MONOTONICITY = 1289,
- Z3_OP_PR_DEF_AXIOM = 1308,
- Z3_OP_FALSE = 257,
- Z3_OP_EXT_ROTATE_RIGHT = 1070,
- Z3_OP_PR_DISTRIBUTIVITY = 1291,
- Z3_OP_SIGN_EXT = 1057,
- Z3_OP_PR_SKOLEMIZE = 1316,
- Z3_OP_BCOMP = 1063,
- Z3_OP_RA_COMPLEMENT = 1546,
- }
-
- /// Z3_param_kind
- public enum Z3_param_kind {
- Z3_PK_BOOL = 1,
- Z3_PK_SYMBOL = 3,
- Z3_PK_OTHER = 5,
- Z3_PK_INVALID = 6,
- Z3_PK_UINT = 0,
- Z3_PK_STRING = 4,
- Z3_PK_DOUBLE = 2,
- }
-
- /// Z3_ast_print_mode
- public enum Z3_ast_print_mode {
- Z3_PRINT_SMTLIB2_COMPLIANT = 3,
- Z3_PRINT_SMTLIB_COMPLIANT = 2,
- Z3_PRINT_SMTLIB_FULL = 0,
- Z3_PRINT_LOW_LEVEL = 1,
- }
-
- /// Z3_error_code
- public enum Z3_error_code {
- Z3_INVALID_PATTERN = 6,
- Z3_MEMOUT_FAIL = 7,
- Z3_NO_PARSER = 5,
- Z3_OK = 0,
- Z3_INVALID_ARG = 3,
- Z3_EXCEPTION = 12,
- Z3_IOB = 2,
- Z3_INTERNAL_FATAL = 9,
- Z3_INVALID_USAGE = 10,
- Z3_FILE_ACCESS_ERROR = 8,
- Z3_SORT_ERROR = 1,
- Z3_PARSER_ERROR = 4,
- Z3_DEC_REF_ERROR = 11,
- }
-
- /// Z3_goal_prec
- public enum Z3_goal_prec {
- Z3_GOAL_UNDER = 1,
- Z3_GOAL_PRECISE = 0,
- Z3_GOAL_UNDER_OVER = 3,
- Z3_GOAL_OVER = 2,
- }
-
-}
+// Automatically generated file, generator: update_api.py
+
+using System;
+
+#pragma warning disable 1591
+
+namespace Microsoft.Z3
+{
+ /// Z3_lbool
+ public enum Z3_lbool {
+ Z3_L_TRUE = 1,
+ Z3_L_UNDEF = 0,
+ Z3_L_FALSE = -1,
+ }
+
+ /// Z3_symbol_kind
+ public enum Z3_symbol_kind {
+ Z3_INT_SYMBOL = 0,
+ Z3_STRING_SYMBOL = 1,
+ }
+
+ /// Z3_parameter_kind
+ public enum Z3_parameter_kind {
+ Z3_PARAMETER_FUNC_DECL = 6,
+ Z3_PARAMETER_DOUBLE = 1,
+ Z3_PARAMETER_SYMBOL = 3,
+ Z3_PARAMETER_INT = 0,
+ Z3_PARAMETER_AST = 5,
+ Z3_PARAMETER_SORT = 4,
+ Z3_PARAMETER_RATIONAL = 2,
+ }
+
+ /// Z3_sort_kind
+ public enum Z3_sort_kind {
+ Z3_BV_SORT = 4,
+ Z3_FINITE_DOMAIN_SORT = 8,
+ Z3_ARRAY_SORT = 5,
+ Z3_UNKNOWN_SORT = 1000,
+ Z3_RELATION_SORT = 7,
+ Z3_REAL_SORT = 3,
+ Z3_INT_SORT = 2,
+ Z3_UNINTERPRETED_SORT = 0,
+ Z3_BOOL_SORT = 1,
+ Z3_DATATYPE_SORT = 6,
+ }
+
+ /// Z3_ast_kind
+ public enum Z3_ast_kind {
+ Z3_VAR_AST = 2,
+ Z3_SORT_AST = 4,
+ Z3_QUANTIFIER_AST = 3,
+ Z3_UNKNOWN_AST = 1000,
+ Z3_FUNC_DECL_AST = 5,
+ Z3_NUMERAL_AST = 0,
+ Z3_APP_AST = 1,
+ }
+
+ /// Z3_decl_kind
+ public enum Z3_decl_kind {
+ Z3_OP_LABEL = 1792,
+ Z3_OP_PR_REWRITE = 1294,
+ Z3_OP_UNINTERPRETED = 2051,
+ Z3_OP_SUB = 519,
+ Z3_OP_ZERO_EXT = 1058,
+ Z3_OP_ADD = 518,
+ Z3_OP_IS_INT = 528,
+ Z3_OP_BREDOR = 1061,
+ Z3_OP_BNOT = 1051,
+ Z3_OP_BNOR = 1054,
+ Z3_OP_PR_CNF_STAR = 1315,
+ Z3_OP_RA_JOIN = 1539,
+ Z3_OP_LE = 514,
+ Z3_OP_SET_UNION = 773,
+ Z3_OP_PR_UNDEF = 1280,
+ Z3_OP_BREDAND = 1062,
+ Z3_OP_LT = 516,
+ Z3_OP_RA_UNION = 1540,
+ Z3_OP_BADD = 1028,
+ Z3_OP_BUREM0 = 1039,
+ Z3_OP_OEQ = 267,
+ Z3_OP_PR_MODUS_PONENS = 1284,
+ Z3_OP_RA_CLONE = 1548,
+ Z3_OP_REPEAT = 1060,
+ Z3_OP_RA_NEGATION_FILTER = 1544,
+ Z3_OP_BSMOD0 = 1040,
+ Z3_OP_BLSHR = 1065,
+ Z3_OP_BASHR = 1066,
+ Z3_OP_PR_UNIT_RESOLUTION = 1304,
+ Z3_OP_ROTATE_RIGHT = 1068,
+ Z3_OP_ARRAY_DEFAULT = 772,
+ Z3_OP_PR_PULL_QUANT = 1296,
+ Z3_OP_PR_APPLY_DEF = 1310,
+ Z3_OP_PR_REWRITE_STAR = 1295,
+ Z3_OP_IDIV = 523,
+ Z3_OP_PR_GOAL = 1283,
+ Z3_OP_PR_IFF_TRUE = 1305,
+ Z3_OP_LABEL_LIT = 1793,
+ Z3_OP_BOR = 1050,
+ Z3_OP_PR_SYMMETRY = 1286,
+ Z3_OP_TRUE = 256,
+ Z3_OP_SET_COMPLEMENT = 776,
+ Z3_OP_CONCAT = 1056,
+ Z3_OP_PR_NOT_OR_ELIM = 1293,
+ Z3_OP_IFF = 263,
+ Z3_OP_BSHL = 1064,
+ Z3_OP_PR_TRANSITIVITY = 1287,
+ Z3_OP_SGT = 1048,
+ Z3_OP_RA_WIDEN = 1541,
+ Z3_OP_PR_DEF_INTRO = 1309,
+ Z3_OP_NOT = 265,
+ Z3_OP_PR_QUANT_INTRO = 1290,
+ Z3_OP_UGT = 1047,
+ Z3_OP_DT_RECOGNISER = 2049,
+ Z3_OP_SET_INTERSECT = 774,
+ Z3_OP_BSREM = 1033,
+ Z3_OP_RA_STORE = 1536,
+ Z3_OP_SLT = 1046,
+ Z3_OP_ROTATE_LEFT = 1067,
+ Z3_OP_PR_NNF_NEG = 1313,
+ Z3_OP_PR_REFLEXIVITY = 1285,
+ Z3_OP_ULEQ = 1041,
+ Z3_OP_BIT1 = 1025,
+ Z3_OP_BIT0 = 1026,
+ Z3_OP_EQ = 258,
+ Z3_OP_BMUL = 1030,
+ Z3_OP_ARRAY_MAP = 771,
+ Z3_OP_STORE = 768,
+ Z3_OP_PR_HYPOTHESIS = 1302,
+ Z3_OP_RA_RENAME = 1545,
+ Z3_OP_AND = 261,
+ Z3_OP_TO_REAL = 526,
+ Z3_OP_PR_NNF_POS = 1312,
+ Z3_OP_PR_AND_ELIM = 1292,
+ Z3_OP_MOD = 525,
+ Z3_OP_BUDIV0 = 1037,
+ Z3_OP_PR_TRUE = 1281,
+ Z3_OP_BNAND = 1053,
+ Z3_OP_PR_ELIM_UNUSED_VARS = 1299,
+ Z3_OP_RA_FILTER = 1543,
+ Z3_OP_FD_LT = 1549,
+ Z3_OP_RA_EMPTY = 1537,
+ Z3_OP_DIV = 522,
+ Z3_OP_ANUM = 512,
+ Z3_OP_MUL = 521,
+ Z3_OP_UGEQ = 1043,
+ Z3_OP_BSREM0 = 1038,
+ Z3_OP_PR_TH_LEMMA = 1318,
+ Z3_OP_BXOR = 1052,
+ Z3_OP_DISTINCT = 259,
+ Z3_OP_PR_IFF_FALSE = 1306,
+ Z3_OP_BV2INT = 1072,
+ Z3_OP_EXT_ROTATE_LEFT = 1069,
+ Z3_OP_PR_PULL_QUANT_STAR = 1297,
+ Z3_OP_BSUB = 1029,
+ Z3_OP_PR_ASSERTED = 1282,
+ Z3_OP_BXNOR = 1055,
+ Z3_OP_EXTRACT = 1059,
+ Z3_OP_PR_DER = 1300,
+ Z3_OP_DT_CONSTRUCTOR = 2048,
+ Z3_OP_GT = 517,
+ Z3_OP_BUREM = 1034,
+ Z3_OP_IMPLIES = 266,
+ Z3_OP_SLEQ = 1042,
+ Z3_OP_GE = 515,
+ Z3_OP_BAND = 1049,
+ Z3_OP_ITE = 260,
+ Z3_OP_AS_ARRAY = 778,
+ Z3_OP_RA_SELECT = 1547,
+ Z3_OP_CONST_ARRAY = 770,
+ Z3_OP_BSDIV = 1031,
+ Z3_OP_OR = 262,
+ Z3_OP_PR_HYPER_RESOLVE = 1319,
+ Z3_OP_AGNUM = 513,
+ Z3_OP_PR_PUSH_QUANT = 1298,
+ Z3_OP_BSMOD = 1035,
+ Z3_OP_PR_IFF_OEQ = 1311,
+ Z3_OP_PR_LEMMA = 1303,
+ Z3_OP_SET_SUBSET = 777,
+ Z3_OP_SELECT = 769,
+ Z3_OP_RA_PROJECT = 1542,
+ Z3_OP_BNEG = 1027,
+ Z3_OP_UMINUS = 520,
+ Z3_OP_REM = 524,
+ Z3_OP_TO_INT = 527,
+ Z3_OP_PR_QUANT_INST = 1301,
+ Z3_OP_SGEQ = 1044,
+ Z3_OP_POWER = 529,
+ Z3_OP_XOR3 = 1074,
+ Z3_OP_RA_IS_EMPTY = 1538,
+ Z3_OP_CARRY = 1073,
+ Z3_OP_DT_ACCESSOR = 2050,
+ Z3_OP_PR_TRANSITIVITY_STAR = 1288,
+ Z3_OP_PR_NNF_STAR = 1314,
+ Z3_OP_PR_COMMUTATIVITY = 1307,
+ Z3_OP_ULT = 1045,
+ Z3_OP_BSDIV0 = 1036,
+ Z3_OP_SET_DIFFERENCE = 775,
+ Z3_OP_INT2BV = 1071,
+ Z3_OP_XOR = 264,
+ Z3_OP_PR_MODUS_PONENS_OEQ = 1317,
+ Z3_OP_BNUM = 1024,
+ Z3_OP_BUDIV = 1032,
+ Z3_OP_PR_MONOTONICITY = 1289,
+ Z3_OP_PR_DEF_AXIOM = 1308,
+ Z3_OP_FALSE = 257,
+ Z3_OP_EXT_ROTATE_RIGHT = 1070,
+ Z3_OP_PR_DISTRIBUTIVITY = 1291,
+ Z3_OP_SIGN_EXT = 1057,
+ Z3_OP_PR_SKOLEMIZE = 1316,
+ Z3_OP_BCOMP = 1063,
+ Z3_OP_RA_COMPLEMENT = 1546,
+ }
+
+ /// Z3_param_kind
+ public enum Z3_param_kind {
+ Z3_PK_BOOL = 1,
+ Z3_PK_SYMBOL = 3,
+ Z3_PK_OTHER = 5,
+ Z3_PK_INVALID = 6,
+ Z3_PK_UINT = 0,
+ Z3_PK_STRING = 4,
+ Z3_PK_DOUBLE = 2,
+ }
+
+ /// Z3_ast_print_mode
+ public enum Z3_ast_print_mode {
+ Z3_PRINT_SMTLIB2_COMPLIANT = 3,
+ Z3_PRINT_SMTLIB_COMPLIANT = 2,
+ Z3_PRINT_SMTLIB_FULL = 0,
+ Z3_PRINT_LOW_LEVEL = 1,
+ }
+
+ /// Z3_error_code
+ public enum Z3_error_code {
+ Z3_INVALID_PATTERN = 6,
+ Z3_MEMOUT_FAIL = 7,
+ Z3_NO_PARSER = 5,
+ Z3_OK = 0,
+ Z3_INVALID_ARG = 3,
+ Z3_EXCEPTION = 12,
+ Z3_IOB = 2,
+ Z3_INTERNAL_FATAL = 9,
+ Z3_INVALID_USAGE = 10,
+ Z3_FILE_ACCESS_ERROR = 8,
+ Z3_SORT_ERROR = 1,
+ Z3_PARSER_ERROR = 4,
+ Z3_DEC_REF_ERROR = 11,
+ }
+
+ /// Z3_goal_prec
+ public enum Z3_goal_prec {
+ Z3_GOAL_UNDER = 1,
+ Z3_GOAL_PRECISE = 0,
+ Z3_GOAL_UNDER_OVER = 3,
+ Z3_GOAL_OVER = 2,
+ }
+
+}
diff --git a/Microsoft.Z3/Native.cs b/Microsoft.Z3/Native.cs
index 0c0349a78..687486085 100644
--- a/Microsoft.Z3/Native.cs
+++ b/Microsoft.Z3/Native.cs
@@ -1,5221 +1,5199 @@
-// Automatically generated file, generator: api.py
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Runtime.InteropServices;
-
-#pragma warning disable 1591
-
-namespace Microsoft.Z3
-{
- using Z3_config = System.IntPtr;
- using Z3_context = System.IntPtr;
- using Z3_ast = System.IntPtr;
- using Z3_app = System.IntPtr;
- using Z3_sort = System.IntPtr;
- using Z3_func_decl = System.IntPtr;
- using Z3_pattern = System.IntPtr;
- using Z3_model = System.IntPtr;
- using Z3_literals = System.IntPtr;
- using Z3_constructor = System.IntPtr;
- using Z3_constructor_list = System.IntPtr;
- using Z3_theory = System.IntPtr;
- using Z3_theory_data = System.IntPtr;
- using Z3_solver = System.IntPtr;
- using Z3_goal = System.IntPtr;
- using Z3_tactic = System.IntPtr;
- using Z3_params = System.IntPtr;
- using Z3_probe = System.IntPtr;
- using Z3_stats = System.IntPtr;
- using Z3_ast_vector = System.IntPtr;
- using Z3_ast_map = System.IntPtr;
- using Z3_apply_result = System.IntPtr;
- using Z3_func_interp = System.IntPtr;
- using Z3_func_entry = System.IntPtr;
- using Z3_fixedpoint = System.IntPtr;
- using Z3_param_descrs = System.IntPtr;
-
- public class Native
- {
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate void Z3_error_handler(Z3_context c, Z3_error_code e);
-
- public unsafe class LIB
- {
- #if DEBUG
- const string Z3_DLL_NAME = "z3_dbg.dll";
- #else
- const string Z3_DLL_NAME = "z3.dll";
- #endif
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_config Z3_mk_config();
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_config(Z3_config a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_set_param_value(Z3_config a0, string a1, string a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_context Z3_mk_context(Z3_config a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_context Z3_mk_context_rc(Z3_config a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_set_logic(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_context(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_inc_ref(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_dec_ref(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_toggle_warning_messages(int a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_update_param_value(Z3_context a0, string a1, string a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_param_value(Z3_context a0, string a1, out IntPtr a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_mk_int_symbol(Z3_context a0, int a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_mk_string_symbol(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_eq_sort(Z3_context a0, Z3_sort a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_uninterpreted_sort(Z3_context a0, IntPtr a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_bool_sort(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_int_sort(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_real_sort(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_bv_sort(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_array_sort(Z3_context a0, Z3_sort a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_tuple_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, [In, Out] ref Z3_func_decl a5, [Out] Z3_func_decl[] a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_enumeration_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [Out] Z3_func_decl[] a4, [Out] Z3_func_decl[] a5);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_list_sort(Z3_context a0, IntPtr a1, Z3_sort a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [In, Out] ref Z3_func_decl a5, [In, Out] ref Z3_func_decl a6, [In, Out] ref Z3_func_decl a7, [In, Out] ref Z3_func_decl a8);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_constructor Z3_mk_constructor(Z3_context a0, IntPtr a1, IntPtr a2, uint a3, [In] IntPtr[] a4, [In] Z3_sort[] a5, [In] uint[] a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_query_constructor(Z3_context a0, Z3_constructor a1, uint a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [Out] Z3_func_decl[] a5);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_constructor(Z3_context a0, Z3_constructor a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_datatype(Z3_context a0, IntPtr a1, uint a2, [In, Out] Z3_constructor[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_constructor_list Z3_mk_constructor_list(Z3_context a0, uint a1, [In] Z3_constructor[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_constructor_list(Z3_context a0, Z3_constructor_list a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_mk_datatypes(Z3_context a0, uint a1, [In] IntPtr[] a2, [Out] Z3_sort[] a3, [In, Out] Z3_constructor_list[] a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_eq_ast(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_eq_func_decl(Z3_context a0, Z3_func_decl a1, Z3_func_decl a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_mk_func_decl(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_app(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_const(Z3_context a0, IntPtr a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_label(Z3_context a0, IntPtr a1, int a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_mk_fresh_func_decl(Z3_context a0, string a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_fresh_const(Z3_context a0, string a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_true(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_false(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_eq(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_distinct(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_not(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_ite(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_iff(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_implies(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_xor(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_and(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_or(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_add(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_mul(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_sub(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_unary_minus(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_div(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_mod(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_rem(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_power(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_algebraic_number(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_algebraic_number_lower(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_algebraic_number_upper(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_lt(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_le(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_gt(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_ge(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_int2real(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_real2int(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_is_int(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvnot(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvredand(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvredor(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvand(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvor(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvxor(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvnand(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvnor(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvxnor(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvneg(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvadd(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsub(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvmul(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvudiv(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsdiv(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvurem(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsrem(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsmod(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvult(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvslt(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvule(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsle(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvuge(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsge(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvugt(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsgt(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_concat(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_extract(Z3_context a0, uint a1, uint a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_sign_ext(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_zero_ext(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_repeat(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvshl(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvlshr(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvashr(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_rotate_left(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_rotate_right(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_ext_rotate_left(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_ext_rotate_right(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_int2bv(Z3_context a0, uint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bv2int(Z3_context a0, Z3_ast a1, int a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvadd_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvadd_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsub_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsub_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvsdiv_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvneg_no_overflow(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvmul_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bvmul_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_select(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_store(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_const_array(Z3_context a0, Z3_sort a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_map(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_array_default(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_set_sort(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_empty_set(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_full_set(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_add(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_del(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_union(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_intersect(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_difference(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_complement(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_member(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_set_subset(Z3_context a0, Z3_ast a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_numeral(Z3_context a0, string a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_real(Z3_context a0, int a1, int a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_int(Z3_context a0, int a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_unsigned_int(Z3_context a0, uint a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_int64(Z3_context a0, Int64 a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_unsigned_int64(Z3_context a0, UInt64 a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_pattern Z3_mk_pattern(Z3_context a0, uint a1, [In] Z3_ast[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_bound(Z3_context a0, uint a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_forall(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_exists(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_quantifier(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_pattern[] a4, uint a5, [In] Z3_sort[] a6, [In] IntPtr[] a7, Z3_ast a8);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_quantifier_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_pattern[] a6, uint a7, [In] Z3_ast[] a8, uint a9, [In] Z3_sort[] a10, [In] IntPtr[] a11, Z3_ast a12);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_forall_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_exists_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_quantifier_const(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_app[] a4, uint a5, [In] Z3_pattern[] a6, Z3_ast a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_mk_quantifier_const_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_app[] a6, uint a7, [In] Z3_pattern[] a8, uint a9, [In] Z3_ast[] a10, Z3_ast a11);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_ast_id(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_func_decl_id(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_sort_id(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_well_sorted(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_symbol_kind(Z3_context a0, IntPtr a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_symbol_int(Z3_context a0, IntPtr a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_symbol_string(Z3_context a0, IntPtr a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_ast_kind(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_ast_hash(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_numeral_string(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_numeral_decimal_string(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_numerator(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_denominator(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_small(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_int(Z3_context a0, Z3_ast a1, [In, Out] ref int a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_uint(Z3_context a0, Z3_ast a1, [In, Out] ref uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_uint64(Z3_context a0, Z3_ast a1, [In, Out] ref UInt64 a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_numeral_rational_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_bool_value(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_app_decl(Z3_context a0, Z3_app a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_app_num_args(Z3_context a0, Z3_app a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_app_arg(Z3_context a0, Z3_app a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_index_value(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_quantifier_forall(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_quantifier_weight(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_quantifier_num_patterns(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_pattern Z3_get_quantifier_pattern_ast(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_quantifier_num_no_patterns(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_quantifier_no_pattern_ast(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_quantifier_bound_name(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_quantifier_bound_sort(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_quantifier_body(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_quantifier_num_bound(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_decl_name(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_decl_num_parameters(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_decl_parameter_kind(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_decl_int_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static double Z3_get_decl_double_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_decl_symbol_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_decl_sort_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_decl_ast_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_decl_func_decl_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_decl_rational_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_sort_name(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_sort(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_domain_size(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_domain(Z3_context a0, Z3_func_decl a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_range(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_sort_kind(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_bv_sort_size(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_array_sort_domain(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_array_sort_range(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_tuple_sort_mk_decl(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_decl_kind(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_tuple_sort_num_fields(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_tuple_sort_field_decl(Z3_context a0, Z3_sort a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_datatype_sort_num_constructors(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_datatype_sort_constructor(Z3_context a0, Z3_sort a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_datatype_sort_recognizer(Z3_context a0, Z3_sort a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_datatype_sort_constructor_accessor(Z3_context a0, Z3_sort a1, uint a2, uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_relation_arity(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_relation_column(Z3_context a0, Z3_sort a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_get_finite_domain_sort_size(Z3_context a0, Z3_sort a1, [In, Out] ref UInt64 a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_mk_finite_domain_sort(Z3_context a0, IntPtr a1, UInt64 a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_pattern_num_terms(Z3_context a0, Z3_pattern a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_pattern(Z3_context a0, Z3_pattern a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_simplify(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_simplify_ex(Z3_context a0, Z3_ast a1, Z3_params a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_simplify_get_help(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_param_descrs Z3_simplify_get_param_descrs(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_update_term(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_substitute(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3, [In] Z3_ast[] a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_substitute_vars(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_sort_to_ast(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_func_decl_to_ast(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_pattern_to_ast(Z3_context a0, Z3_pattern a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_app_to_ast(Z3_context a0, Z3_app a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_app Z3_to_app(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_to_func_decl(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_push(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_pop(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_num_scopes(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_persist_ast(Z3_context a0, Z3_ast a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_assert_cnstr(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_check_and_get_model(Z3_context a0, [In, Out] ref Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_check(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_check_assumptions(Z3_context a0, uint a1, [In] Z3_ast[] a2, [In, Out] ref Z3_model a3, [In, Out] ref Z3_ast a4, [In, Out] ref uint a5, [Out] Z3_ast[] a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_implied_equalities(Z3_context a0, uint a1, [In] Z3_ast[] a2, [Out] uint[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_model(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_soft_check_cancel(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_search_failure(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_literals Z3_get_relevant_labels(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_literals Z3_get_relevant_literals(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_literals Z3_get_guessed_literals(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_del_literals(Z3_context a0, Z3_literals a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_num_literals(Z3_context a0, Z3_literals a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_label_symbol(Z3_context a0, Z3_literals a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_literal(Z3_context a0, Z3_literals a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_disable_literal(Z3_context a0, Z3_literals a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_block_literals(Z3_context a0, Z3_literals a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_model_inc_ref(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_model_dec_ref(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_model_get_const_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_interp Z3_model_get_func_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_model_get_num_consts(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_model_get_const_decl(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_model_get_num_funcs(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_model_get_func_decl(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_model_eval(Z3_context a0, Z3_model a1, Z3_ast a2, int a3, [In, Out] ref Z3_ast a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_model_get_num_sorts(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_model_get_sort(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_model_get_sort_universe(Z3_context a0, Z3_model a1, Z3_sort a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_as_array(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_as_array_func_decl(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_func_interp_inc_ref(Z3_context a0, Z3_func_interp a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_func_interp_dec_ref(Z3_context a0, Z3_func_interp a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_func_interp_get_num_entries(Z3_context a0, Z3_func_interp a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_entry Z3_func_interp_get_entry(Z3_context a0, Z3_func_interp a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_func_interp_get_else(Z3_context a0, Z3_func_interp a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_func_interp_get_arity(Z3_context a0, Z3_func_interp a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_func_entry_inc_ref(Z3_context a0, Z3_func_entry a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_func_entry_dec_ref(Z3_context a0, Z3_func_entry a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_func_entry_get_value(Z3_context a0, Z3_func_entry a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_func_entry_get_num_args(Z3_context a0, Z3_func_entry a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_func_entry_get_arg(Z3_context a0, Z3_func_entry a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_model_num_constants(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_model_constant(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_eval_func_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, [In, Out] ref Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_get_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, uint a3, [Out] Z3_ast[] a4, [Out] Z3_ast[] a5, [In, Out] ref Z3_ast a6);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_model_num_funcs(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_model_func_decl(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_model_func_else(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_model_func_num_entries(Z3_context a0, Z3_model a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_model_func_entry_num_args(Z3_context a0, Z3_model a1, uint a2, uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_model_func_entry_arg(Z3_context a0, Z3_model a1, uint a2, uint a3, uint a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_model_func_entry_value(Z3_context a0, Z3_model a1, uint a2, uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_eval(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_eval_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, uint a3, [In] Z3_ast[] a4, [In, Out] ref Z3_ast a5);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_set_ast_print_mode(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_ast_to_string(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_pattern_to_string(Z3_context a0, Z3_pattern a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_sort_to_string(Z3_context a0, Z3_sort a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_func_decl_to_string(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_model_to_string(Z3_context a0, Z3_model a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_benchmark_to_smtlib_string(Z3_context a0, string a1, string a2, string a3, string a4, uint a5, [In] Z3_ast[] a6, Z3_ast a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_context_to_string(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_statistics_to_string(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_context_assignment(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_parse_smtlib_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_parse_smtlib_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_smtlib_num_formulas(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_smtlib_formula(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_smtlib_num_assumptions(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_get_smtlib_assumption(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_smtlib_num_decls(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_get_smtlib_decl(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_smtlib_num_sorts(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_sort Z3_get_smtlib_sort(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_smtlib_error(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_parse_z3_string(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_parse_z3_file(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_parse_smtlib2_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_parse_smtlib2_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_error_code(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_set_error(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_error_msg(uint a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_get_version([In, Out] ref uint a0, [In, Out] ref uint a1, [In, Out] ref uint a2, [In, Out] ref uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_reset_memory();
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_app(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_is_numeral_ast(Z3_context a0, Z3_ast a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_arity(Z3_context a0, Z3_func_decl a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_func_decl Z3_mk_injective_function(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_fixedpoint Z3_mk_fixedpoint(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_inc_ref(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_dec_ref(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_push(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_pop(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_register_relation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_assert(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_add_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_add_fact(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] uint[] a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_fixedpoint_query(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_fixedpoint_query_relations(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_func_decl[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_fixedpoint_get_answer(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_update_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_fixedpoint_get_num_levels(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_fixedpoint_get_cover_delta(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_add_cover(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3, Z3_ast a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_stats Z3_fixedpoint_get_statistics(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_fixedpoint_get_help(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_param_descrs Z3_fixedpoint_get_param_descrs(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_set_params(Z3_context a0, Z3_fixedpoint a1, Z3_params a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_fixedpoint_to_string(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_fixedpoint_get_reason_unknown(Z3_context a0, Z3_fixedpoint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_fixedpoint_set_predicate_representation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] IntPtr[] a4);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_fixedpoint_simplify_rules(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3, uint a4, [In] Z3_func_decl[] a5);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_params Z3_mk_params(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_inc_ref(Z3_context a0, Z3_params a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_dec_ref(Z3_context a0, Z3_params a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_set_bool(Z3_context a0, Z3_params a1, IntPtr a2, int a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_set_uint(Z3_context a0, Z3_params a1, IntPtr a2, uint a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_set_double(Z3_context a0, Z3_params a1, IntPtr a2, double a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_set_symbol(Z3_context a0, Z3_params a1, IntPtr a2, IntPtr a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_params_to_string(Z3_context a0, Z3_params a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_params_validate(Z3_context a0, Z3_params a1, Z3_param_descrs a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_param_descrs_inc_ref(Z3_context a0, Z3_param_descrs a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_param_descrs_dec_ref(Z3_context a0, Z3_param_descrs a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_param_descrs_get_kind(Z3_context a0, Z3_param_descrs a1, IntPtr a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_param_descrs_size(Z3_context a0, Z3_param_descrs a1);
-
- [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);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_error_msg_ex(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_translate(Z3_context a0, Z3_ast a1, Z3_context a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_goal Z3_mk_goal(Z3_context a0, int a1, int a2, int a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_goal_inc_ref(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_goal_dec_ref(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_goal_precision(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_goal_assert(Z3_context a0, Z3_goal a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_goal_inconsistent(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_goal_depth(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_goal_reset(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_goal_size(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_goal_formula(Z3_context a0, Z3_goal a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_goal_num_exprs(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_goal_is_decided_sat(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_goal_is_decided_unsat(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_goal Z3_goal_translate(Z3_context a0, Z3_goal a1, Z3_context a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_goal_to_string(Z3_context a0, Z3_goal a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_mk_tactic(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_mk_probe(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_tactic_inc_ref(Z3_context a0, Z3_tactic a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_tactic_dec_ref(Z3_context a0, Z3_tactic a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_probe_inc_ref(Z3_context a0, Z3_probe a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_probe_dec_ref(Z3_context a0, Z3_probe a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_or_else(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_par_or(Z3_context a0, uint a1, [In] Z3_tactic[] a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_par_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_try_for(Z3_context a0, Z3_tactic a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_when(Z3_context a0, Z3_probe a1, Z3_tactic a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_cond(Z3_context a0, Z3_probe a1, Z3_tactic a2, Z3_tactic a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_repeat(Z3_context a0, Z3_tactic a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_skip(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_fail(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_fail_if(Z3_context a0, Z3_probe a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_fail_if_not_decided(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_tactic Z3_tactic_using_params(Z3_context a0, Z3_tactic a1, Z3_params a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_const(Z3_context a0, double a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_lt(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_le(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_gt(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_ge(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_eq(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_and(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_or(Z3_context a0, Z3_probe a1, Z3_probe a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_probe Z3_probe_not(Z3_context a0, Z3_probe a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_num_tactics(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_tactic_name(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_get_num_probes(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_get_probe_name(Z3_context a0, uint a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_tactic_get_help(Z3_context a0, Z3_tactic a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_param_descrs Z3_tactic_get_param_descrs(Z3_context a0, Z3_tactic a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_tactic_get_descr(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_probe_get_descr(Z3_context a0, string a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static double Z3_probe_apply(Z3_context a0, Z3_probe a1, Z3_goal a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_apply_result Z3_tactic_apply(Z3_context a0, Z3_tactic a1, Z3_goal a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_apply_result Z3_tactic_apply_ex(Z3_context a0, Z3_tactic a1, Z3_goal a2, Z3_params a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_apply_result_inc_ref(Z3_context a0, Z3_apply_result a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_apply_result_dec_ref(Z3_context a0, Z3_apply_result a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_apply_result_to_string(Z3_context a0, Z3_apply_result a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_apply_result_get_num_subgoals(Z3_context a0, Z3_apply_result a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_goal Z3_apply_result_get_subgoal(Z3_context a0, Z3_apply_result a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_model Z3_apply_result_convert_model(Z3_context a0, Z3_apply_result a1, uint a2, Z3_model a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_solver Z3_mk_solver(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_solver Z3_mk_simple_solver(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_solver Z3_mk_solver_for_logic(Z3_context a0, IntPtr a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_solver Z3_mk_solver_from_tactic(Z3_context a0, Z3_tactic a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_solver_get_help(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_param_descrs Z3_solver_get_param_descrs(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_set_params(Z3_context a0, Z3_solver a1, Z3_params a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_inc_ref(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_dec_ref(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_push(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_pop(Z3_context a0, Z3_solver a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_reset(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_solver_get_num_scopes(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_solver_assert(Z3_context a0, Z3_solver a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_solver_get_assertions(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_solver_check(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_solver_check_assumptions(Z3_context a0, Z3_solver a1, uint a2, [In] Z3_ast[] a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_model Z3_solver_get_model(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_solver_get_proof(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_solver_get_unsat_core(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_solver_get_reason_unknown(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_stats Z3_solver_get_statistics(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_solver_to_string(Z3_context a0, Z3_solver a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_stats_to_string(Z3_context a0, Z3_stats a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_stats_inc_ref(Z3_context a0, Z3_stats a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_stats_dec_ref(Z3_context a0, Z3_stats a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_stats_size(Z3_context a0, Z3_stats a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_stats_get_key(Z3_context a0, Z3_stats a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_stats_is_uint(Z3_context a0, Z3_stats a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_stats_is_double(Z3_context a0, Z3_stats a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_stats_get_uint_value(Z3_context a0, Z3_stats a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static double Z3_stats_get_double_value(Z3_context a0, Z3_stats a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_mk_ast_vector(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_vector_inc_ref(Z3_context a0, Z3_ast_vector a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_vector_dec_ref(Z3_context a0, Z3_ast_vector a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_ast_vector_size(Z3_context a0, Z3_ast_vector a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_ast_vector_get(Z3_context a0, Z3_ast_vector a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_vector_set(Z3_context a0, Z3_ast_vector a1, uint a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_vector_resize(Z3_context a0, Z3_ast_vector a1, uint a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_vector_push(Z3_context a0, Z3_ast_vector a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_ast_vector_translate(Z3_context a0, Z3_ast_vector a1, Z3_context a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_ast_vector_to_string(Z3_context a0, Z3_ast_vector a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_map Z3_mk_ast_map(Z3_context a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_map_inc_ref(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_map_dec_ref(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_ast_map_contains(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast Z3_ast_map_find(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_map_insert(Z3_context a0, Z3_ast_map a1, Z3_ast a2, Z3_ast a3);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_map_erase(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static uint Z3_ast_map_size(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_ast_map_reset(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static Z3_ast_vector Z3_ast_map_keys(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static IntPtr Z3_ast_map_to_string(Z3_context a0, Z3_ast_map a1);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static int Z3_open_log(string a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_append_log(string a0);
-
- [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
- public extern static void Z3_close_log();
-
- }
-
- public static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1) {
- LIB.Z3_set_error_handler(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 static Z3_config Z3_mk_config() {
- Z3_config r = LIB.Z3_mk_config();
- return r;
- }
-
- public static void Z3_del_config(Z3_config a0) {
- LIB.Z3_del_config(a0);
- }
-
- public static void Z3_set_param_value(Z3_config a0, string a1, string a2) {
- LIB.Z3_set_param_value(a0, a1, a2);
- }
-
- public static Z3_context Z3_mk_context(Z3_config a0) {
- Z3_context r = LIB.Z3_mk_context(a0);
- return r;
- }
-
- public static Z3_context Z3_mk_context_rc(Z3_config a0) {
- Z3_context r = LIB.Z3_mk_context_rc(a0);
- return r;
- }
-
- public static void Z3_set_logic(Z3_context a0, string a1) {
- LIB.Z3_set_logic(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 static void Z3_del_context(Z3_context a0) {
- LIB.Z3_del_context(a0);
- }
-
- public static void Z3_inc_ref(Z3_context a0, Z3_ast a1) {
- LIB.Z3_inc_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 static void Z3_dec_ref(Z3_context a0, Z3_ast a1) {
- LIB.Z3_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 static void Z3_toggle_warning_messages(int a0) {
- LIB.Z3_toggle_warning_messages(a0);
- }
-
- public static void Z3_update_param_value(Z3_context a0, string a1, string a2) {
- LIB.Z3_update_param_value(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 static int Z3_get_param_value(Z3_context a0, string a1, out IntPtr a2) {
- int r = LIB.Z3_get_param_value(a0, a1, out 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 static IntPtr Z3_mk_int_symbol(Z3_context a0, int a1) {
- IntPtr r = LIB.Z3_mk_int_symbol(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 r;
- }
-
- public static IntPtr Z3_mk_string_symbol(Z3_context a0, string a1) {
- IntPtr r = LIB.Z3_mk_string_symbol(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 r;
- }
-
- public static int Z3_is_eq_sort(Z3_context a0, Z3_sort a1, Z3_sort a2) {
- int r = LIB.Z3_is_eq_sort(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 static Z3_sort Z3_mk_uninterpreted_sort(Z3_context a0, IntPtr a1) {
- Z3_sort r = LIB.Z3_mk_uninterpreted_sort(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 r;
- }
-
- public static Z3_sort Z3_mk_bool_sort(Z3_context a0) {
- Z3_sort r = LIB.Z3_mk_bool_sort(a0);
- 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_sort Z3_mk_int_sort(Z3_context a0) {
- Z3_sort r = LIB.Z3_mk_int_sort(a0);
- 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_sort Z3_mk_real_sort(Z3_context a0) {
- Z3_sort r = LIB.Z3_mk_real_sort(a0);
- 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_sort Z3_mk_bv_sort(Z3_context a0, uint a1) {
- Z3_sort r = LIB.Z3_mk_bv_sort(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 r;
- }
-
- public static Z3_sort Z3_mk_array_sort(Z3_context a0, Z3_sort a1, Z3_sort a2) {
- Z3_sort r = LIB.Z3_mk_array_sort(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 static Z3_sort Z3_mk_tuple_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, [In, Out] ref Z3_func_decl a5, [Out] Z3_func_decl[] a6) {
- Z3_sort r = LIB.Z3_mk_tuple_sort(a0, a1, a2, a3, a4, ref a5, a6);
- 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_sort Z3_mk_enumeration_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [Out] Z3_func_decl[] a4, [Out] Z3_func_decl[] a5) {
- Z3_sort r = LIB.Z3_mk_enumeration_sort(a0, a1, a2, a3, a4, a5);
- 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_sort Z3_mk_list_sort(Z3_context a0, IntPtr a1, Z3_sort a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [In, Out] ref Z3_func_decl a5, [In, Out] ref Z3_func_decl a6, [In, Out] ref Z3_func_decl a7, [In, Out] ref Z3_func_decl a8) {
- Z3_sort r = LIB.Z3_mk_list_sort(a0, a1, a2, ref a3, ref a4, ref a5, ref a6, ref a7, ref a8);
- 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_constructor Z3_mk_constructor(Z3_context a0, IntPtr a1, IntPtr a2, uint a3, [In] IntPtr[] a4, [In] Z3_sort[] a5, [In] uint[] a6) {
- Z3_constructor r = LIB.Z3_mk_constructor(a0, a1, a2, a3, a4, a5, a6);
- 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 void Z3_query_constructor(Z3_context a0, Z3_constructor a1, uint a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [Out] Z3_func_decl[] a5) {
- LIB.Z3_query_constructor(a0, a1, a2, ref a3, ref a4, a5);
- 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_del_constructor(Z3_context a0, Z3_constructor a1) {
- LIB.Z3_del_constructor(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 static Z3_sort Z3_mk_datatype(Z3_context a0, IntPtr a1, uint a2, [In, Out] Z3_constructor[] a3) {
- Z3_sort r = LIB.Z3_mk_datatype(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_constructor_list Z3_mk_constructor_list(Z3_context a0, uint a1, [In] Z3_constructor[] a2) {
- Z3_constructor_list r = LIB.Z3_mk_constructor_list(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 static void Z3_del_constructor_list(Z3_context a0, Z3_constructor_list a1) {
- LIB.Z3_del_constructor_list(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 static void Z3_mk_datatypes(Z3_context a0, uint a1, [In] IntPtr[] a2, [Out] Z3_sort[] a3, [In, Out] Z3_constructor_list[] a4) {
- LIB.Z3_mk_datatypes(a0, a1, a2, a3, 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)));
- }
-
- public static int Z3_is_eq_ast(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- int r = LIB.Z3_is_eq_ast(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 static int Z3_is_eq_func_decl(Z3_context a0, Z3_func_decl a1, Z3_func_decl a2) {
- int r = LIB.Z3_is_eq_func_decl(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 static Z3_func_decl Z3_mk_func_decl(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
- Z3_func_decl r = LIB.Z3_mk_func_decl(a0, a1, a2, a3, 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 static Z3_ast Z3_mk_app(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3) {
- Z3_ast r = LIB.Z3_mk_app(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_ast Z3_mk_const(Z3_context a0, IntPtr a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_const(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 static Z3_ast Z3_mk_label(Z3_context a0, IntPtr a1, int a2, Z3_ast a3) {
- Z3_ast r = LIB.Z3_mk_label(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_func_decl Z3_mk_fresh_func_decl(Z3_context a0, string a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
- Z3_func_decl r = LIB.Z3_mk_fresh_func_decl(a0, a1, a2, a3, 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 static Z3_ast Z3_mk_fresh_const(Z3_context a0, string a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_fresh_const(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 static Z3_ast Z3_mk_true(Z3_context a0) {
- Z3_ast r = LIB.Z3_mk_true(a0);
- 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_ast Z3_mk_false(Z3_context a0) {
- Z3_ast r = LIB.Z3_mk_false(a0);
- 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_ast Z3_mk_eq(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_eq(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 static Z3_ast Z3_mk_distinct(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_distinct(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 static Z3_ast Z3_mk_not(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_not(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 r;
- }
-
- public static Z3_ast Z3_mk_ite(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3) {
- Z3_ast r = LIB.Z3_mk_ite(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_ast Z3_mk_iff(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_iff(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 static Z3_ast Z3_mk_implies(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_implies(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 static Z3_ast Z3_mk_xor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_xor(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 static Z3_ast Z3_mk_and(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_and(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 static Z3_ast Z3_mk_or(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_or(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 static Z3_ast Z3_mk_add(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_add(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 static Z3_ast Z3_mk_mul(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_mul(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 static Z3_ast Z3_mk_sub(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_sub(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 static Z3_ast Z3_mk_unary_minus(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_unary_minus(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 r;
- }
-
- public static Z3_ast Z3_mk_div(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_div(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 static Z3_ast Z3_mk_mod(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_mod(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 static Z3_ast Z3_mk_rem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_rem(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 static Z3_ast Z3_mk_power(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_power(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 static int Z3_is_algebraic_number(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_algebraic_number(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 r;
- }
-
- public static Z3_ast Z3_get_algebraic_number_lower(Z3_context a0, Z3_ast a1, uint a2) {
- Z3_ast r = LIB.Z3_get_algebraic_number_lower(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 static Z3_ast Z3_get_algebraic_number_upper(Z3_context a0, Z3_ast a1, uint a2) {
- Z3_ast r = LIB.Z3_get_algebraic_number_upper(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 static Z3_ast Z3_mk_lt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_lt(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 static Z3_ast Z3_mk_le(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_le(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 static Z3_ast Z3_mk_gt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_gt(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 static Z3_ast Z3_mk_ge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_ge(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 static Z3_ast Z3_mk_int2real(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_int2real(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 r;
- }
-
- public static Z3_ast Z3_mk_real2int(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_real2int(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 r;
- }
-
- public static Z3_ast Z3_mk_is_int(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_is_int(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 r;
- }
-
- public static Z3_ast Z3_mk_bvnot(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_bvnot(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 r;
- }
-
- public static Z3_ast Z3_mk_bvredand(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_bvredand(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 r;
- }
-
- public static Z3_ast Z3_mk_bvredor(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_bvredor(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 r;
- }
-
- public static Z3_ast Z3_mk_bvand(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvand(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 static Z3_ast Z3_mk_bvor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvor(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 static Z3_ast Z3_mk_bvxor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvxor(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 static Z3_ast Z3_mk_bvnand(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvnand(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 static Z3_ast Z3_mk_bvnor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvnor(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 static Z3_ast Z3_mk_bvxnor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvxnor(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 static Z3_ast Z3_mk_bvneg(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_bvneg(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 r;
- }
-
- public static Z3_ast Z3_mk_bvadd(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvadd(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 static Z3_ast Z3_mk_bvsub(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsub(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 static Z3_ast Z3_mk_bvmul(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvmul(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 static Z3_ast Z3_mk_bvudiv(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvudiv(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 static Z3_ast Z3_mk_bvsdiv(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsdiv(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 static Z3_ast Z3_mk_bvurem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvurem(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 static Z3_ast Z3_mk_bvsrem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsrem(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 static Z3_ast Z3_mk_bvsmod(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsmod(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 static Z3_ast Z3_mk_bvult(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvult(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 static Z3_ast Z3_mk_bvslt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvslt(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 static Z3_ast Z3_mk_bvule(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvule(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 static Z3_ast Z3_mk_bvsle(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsle(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 static Z3_ast Z3_mk_bvuge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvuge(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 static Z3_ast Z3_mk_bvsge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsge(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 static Z3_ast Z3_mk_bvugt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvugt(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 static Z3_ast Z3_mk_bvsgt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsgt(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 static Z3_ast Z3_mk_concat(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_concat(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 static Z3_ast Z3_mk_extract(Z3_context a0, uint a1, uint a2, Z3_ast a3) {
- Z3_ast r = LIB.Z3_mk_extract(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_ast Z3_mk_sign_ext(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_sign_ext(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 static Z3_ast Z3_mk_zero_ext(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_zero_ext(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 static Z3_ast Z3_mk_repeat(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_repeat(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 static Z3_ast Z3_mk_bvshl(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvshl(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 static Z3_ast Z3_mk_bvlshr(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvlshr(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 static Z3_ast Z3_mk_bvashr(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvashr(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 static Z3_ast Z3_mk_rotate_left(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_rotate_left(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 static Z3_ast Z3_mk_rotate_right(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_rotate_right(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 static Z3_ast Z3_mk_ext_rotate_left(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_ext_rotate_left(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 static Z3_ast Z3_mk_ext_rotate_right(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_ext_rotate_right(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 static Z3_ast Z3_mk_int2bv(Z3_context a0, uint a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_int2bv(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 static Z3_ast Z3_mk_bv2int(Z3_context a0, Z3_ast a1, int a2) {
- Z3_ast r = LIB.Z3_mk_bv2int(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 static Z3_ast Z3_mk_bvadd_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
- Z3_ast r = LIB.Z3_mk_bvadd_no_overflow(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_ast Z3_mk_bvadd_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvadd_no_underflow(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 static Z3_ast Z3_mk_bvsub_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsub_no_overflow(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 static Z3_ast Z3_mk_bvsub_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
- Z3_ast r = LIB.Z3_mk_bvsub_no_underflow(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_ast Z3_mk_bvsdiv_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvsdiv_no_overflow(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 static Z3_ast Z3_mk_bvneg_no_overflow(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_bvneg_no_overflow(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 r;
- }
-
- public static Z3_ast Z3_mk_bvmul_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
- Z3_ast r = LIB.Z3_mk_bvmul_no_overflow(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_ast Z3_mk_bvmul_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_bvmul_no_underflow(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 static Z3_ast Z3_mk_select(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_select(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 static Z3_ast Z3_mk_store(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3) {
- Z3_ast r = LIB.Z3_mk_store(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_ast Z3_mk_const_array(Z3_context a0, Z3_sort a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_const_array(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 static Z3_ast Z3_mk_map(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3) {
- Z3_ast r = LIB.Z3_mk_map(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_ast Z3_mk_array_default(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_array_default(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 r;
- }
-
- public static Z3_sort Z3_mk_set_sort(Z3_context a0, Z3_sort a1) {
- Z3_sort r = LIB.Z3_mk_set_sort(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 r;
- }
-
- public static Z3_ast Z3_mk_empty_set(Z3_context a0, Z3_sort a1) {
- Z3_ast r = LIB.Z3_mk_empty_set(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 r;
- }
-
- public static Z3_ast Z3_mk_full_set(Z3_context a0, Z3_sort a1) {
- Z3_ast r = LIB.Z3_mk_full_set(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 r;
- }
-
- public static Z3_ast Z3_mk_set_add(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_set_add(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 static Z3_ast Z3_mk_set_del(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_set_del(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 static Z3_ast Z3_mk_set_union(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_set_union(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 static Z3_ast Z3_mk_set_intersect(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_ast r = LIB.Z3_mk_set_intersect(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 static Z3_ast Z3_mk_set_difference(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_set_difference(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 static Z3_ast Z3_mk_set_complement(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_mk_set_complement(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 r;
- }
-
- public static Z3_ast Z3_mk_set_member(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_set_member(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 static Z3_ast Z3_mk_set_subset(Z3_context a0, Z3_ast a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_mk_set_subset(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 static Z3_ast Z3_mk_numeral(Z3_context a0, string a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_numeral(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 static Z3_ast Z3_mk_real(Z3_context a0, int a1, int a2) {
- Z3_ast r = LIB.Z3_mk_real(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 static Z3_ast Z3_mk_int(Z3_context a0, int a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_int(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 static Z3_ast Z3_mk_unsigned_int(Z3_context a0, uint a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_unsigned_int(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 static Z3_ast Z3_mk_int64(Z3_context a0, Int64 a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_int64(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 static Z3_ast Z3_mk_unsigned_int64(Z3_context a0, UInt64 a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_unsigned_int64(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 static Z3_pattern Z3_mk_pattern(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
- Z3_pattern r = LIB.Z3_mk_pattern(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 static Z3_ast Z3_mk_bound(Z3_context a0, uint a1, Z3_sort a2) {
- Z3_ast r = LIB.Z3_mk_bound(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 static Z3_ast Z3_mk_forall(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7) {
- Z3_ast r = LIB.Z3_mk_forall(a0, a1, a2, a3, a4, a5, a6, a7);
- 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_ast Z3_mk_exists(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7) {
- Z3_ast r = LIB.Z3_mk_exists(a0, a1, a2, a3, a4, a5, a6, a7);
- 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_ast Z3_mk_quantifier(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_pattern[] a4, uint a5, [In] Z3_sort[] a6, [In] IntPtr[] a7, Z3_ast a8) {
- Z3_ast r = LIB.Z3_mk_quantifier(a0, a1, a2, a3, a4, a5, a6, a7, a8);
- 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_ast Z3_mk_quantifier_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_pattern[] a6, uint a7, [In] Z3_ast[] a8, uint a9, [In] Z3_sort[] a10, [In] IntPtr[] a11, Z3_ast a12) {
- Z3_ast r = LIB.Z3_mk_quantifier_ex(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
- 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_ast Z3_mk_forall_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6) {
- Z3_ast r = LIB.Z3_mk_forall_const(a0, a1, a2, a3, a4, a5, a6);
- 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_ast Z3_mk_exists_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6) {
- Z3_ast r = LIB.Z3_mk_exists_const(a0, a1, a2, a3, a4, a5, a6);
- 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_ast Z3_mk_quantifier_const(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_app[] a4, uint a5, [In] Z3_pattern[] a6, Z3_ast a7) {
- Z3_ast r = LIB.Z3_mk_quantifier_const(a0, a1, a2, a3, a4, a5, a6, a7);
- 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_ast Z3_mk_quantifier_const_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_app[] a6, uint a7, [In] Z3_pattern[] a8, uint a9, [In] Z3_ast[] a10, Z3_ast a11) {
- Z3_ast r = LIB.Z3_mk_quantifier_const_ex(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
- 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 uint Z3_get_ast_id(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_ast_id(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 r;
- }
-
- public static uint Z3_get_func_decl_id(Z3_context a0, Z3_func_decl a1) {
- uint r = LIB.Z3_get_func_decl_id(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 r;
- }
-
- public static uint Z3_get_sort_id(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_sort_id(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 r;
- }
-
- public static int Z3_is_well_sorted(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_well_sorted(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 r;
- }
-
- public static uint Z3_get_symbol_kind(Z3_context a0, IntPtr a1) {
- uint r = LIB.Z3_get_symbol_kind(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 r;
- }
-
- public static int Z3_get_symbol_int(Z3_context a0, IntPtr a1) {
- int r = LIB.Z3_get_symbol_int(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 r;
- }
-
- public static string Z3_get_symbol_string(Z3_context a0, IntPtr a1) {
- IntPtr r = LIB.Z3_get_symbol_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 uint Z3_get_ast_kind(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_ast_kind(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 r;
- }
-
- public static uint Z3_get_ast_hash(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_ast_hash(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 r;
- }
-
- public static string Z3_get_numeral_string(Z3_context a0, Z3_ast a1) {
- IntPtr r = LIB.Z3_get_numeral_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 string Z3_get_numeral_decimal_string(Z3_context a0, Z3_ast a1, uint a2) {
- IntPtr r = LIB.Z3_get_numeral_decimal_string(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 Marshal.PtrToStringAnsi(r);
- }
-
- public static Z3_ast Z3_get_numerator(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_get_numerator(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 r;
- }
-
- public static Z3_ast Z3_get_denominator(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_get_denominator(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 r;
- }
-
- public static int Z3_get_numeral_small(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3) {
- int r = LIB.Z3_get_numeral_small(a0, a1, ref a2, ref 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 int Z3_get_numeral_int(Z3_context a0, Z3_ast a1, [In, Out] ref int a2) {
- int r = LIB.Z3_get_numeral_int(a0, a1, ref 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 static int Z3_get_numeral_uint(Z3_context a0, Z3_ast a1, [In, Out] ref uint a2) {
- int r = LIB.Z3_get_numeral_uint(a0, a1, ref 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 static int Z3_get_numeral_uint64(Z3_context a0, Z3_ast a1, [In, Out] ref UInt64 a2) {
- int r = LIB.Z3_get_numeral_uint64(a0, a1, ref 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 static int Z3_get_numeral_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2) {
- int r = LIB.Z3_get_numeral_int64(a0, a1, ref 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 static int Z3_get_numeral_rational_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3) {
- int r = LIB.Z3_get_numeral_rational_int64(a0, a1, ref a2, ref 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 uint Z3_get_bool_value(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_bool_value(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 r;
- }
-
- public static Z3_func_decl Z3_get_app_decl(Z3_context a0, Z3_app a1) {
- Z3_func_decl r = LIB.Z3_get_app_decl(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 r;
- }
-
- public static uint Z3_get_app_num_args(Z3_context a0, Z3_app a1) {
- uint r = LIB.Z3_get_app_num_args(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 r;
- }
-
- public static Z3_ast Z3_get_app_arg(Z3_context a0, Z3_app a1, uint a2) {
- Z3_ast r = LIB.Z3_get_app_arg(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 static uint Z3_get_index_value(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_index_value(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 r;
- }
-
- public static int Z3_is_quantifier_forall(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_quantifier_forall(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 r;
- }
-
- public static uint Z3_get_quantifier_weight(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_quantifier_weight(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 r;
- }
-
- public static uint Z3_get_quantifier_num_patterns(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_quantifier_num_patterns(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 r;
- }
-
- public static Z3_pattern Z3_get_quantifier_pattern_ast(Z3_context a0, Z3_ast a1, uint a2) {
- Z3_pattern r = LIB.Z3_get_quantifier_pattern_ast(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 static uint Z3_get_quantifier_num_no_patterns(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_quantifier_num_no_patterns(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 r;
- }
-
- public static Z3_ast Z3_get_quantifier_no_pattern_ast(Z3_context a0, Z3_ast a1, uint a2) {
- Z3_ast r = LIB.Z3_get_quantifier_no_pattern_ast(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 static IntPtr Z3_get_quantifier_bound_name(Z3_context a0, Z3_ast a1, uint a2) {
- IntPtr r = LIB.Z3_get_quantifier_bound_name(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 static Z3_sort Z3_get_quantifier_bound_sort(Z3_context a0, Z3_ast a1, uint a2) {
- Z3_sort r = LIB.Z3_get_quantifier_bound_sort(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 static Z3_ast Z3_get_quantifier_body(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_get_quantifier_body(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 r;
- }
-
- public static uint Z3_get_quantifier_num_bound(Z3_context a0, Z3_ast a1) {
- uint r = LIB.Z3_get_quantifier_num_bound(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 r;
- }
-
- public static IntPtr Z3_get_decl_name(Z3_context a0, Z3_func_decl a1) {
- IntPtr r = LIB.Z3_get_decl_name(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 r;
- }
-
- public static uint Z3_get_decl_num_parameters(Z3_context a0, Z3_func_decl a1) {
- uint r = LIB.Z3_get_decl_num_parameters(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 r;
- }
-
- public static uint Z3_get_decl_parameter_kind(Z3_context a0, Z3_func_decl a1, uint a2) {
- uint r = LIB.Z3_get_decl_parameter_kind(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 static int Z3_get_decl_int_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- int r = LIB.Z3_get_decl_int_parameter(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 static double Z3_get_decl_double_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- double r = LIB.Z3_get_decl_double_parameter(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 static IntPtr Z3_get_decl_symbol_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- IntPtr r = LIB.Z3_get_decl_symbol_parameter(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 static Z3_sort Z3_get_decl_sort_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- Z3_sort r = LIB.Z3_get_decl_sort_parameter(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 static Z3_ast Z3_get_decl_ast_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- Z3_ast r = LIB.Z3_get_decl_ast_parameter(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 static Z3_func_decl Z3_get_decl_func_decl_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_decl_func_decl_parameter(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 static string Z3_get_decl_rational_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
- IntPtr r = LIB.Z3_get_decl_rational_parameter(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 Marshal.PtrToStringAnsi(r);
- }
-
- public static IntPtr Z3_get_sort_name(Z3_context a0, Z3_sort a1) {
- IntPtr r = LIB.Z3_get_sort_name(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 r;
- }
-
- public static Z3_sort Z3_get_sort(Z3_context a0, Z3_ast a1) {
- Z3_sort r = LIB.Z3_get_sort(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 r;
- }
-
- public static uint Z3_get_domain_size(Z3_context a0, Z3_func_decl a1) {
- uint r = LIB.Z3_get_domain_size(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 r;
- }
-
- public static Z3_sort Z3_get_domain(Z3_context a0, Z3_func_decl a1, uint a2) {
- Z3_sort r = LIB.Z3_get_domain(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 static Z3_sort Z3_get_range(Z3_context a0, Z3_func_decl a1) {
- Z3_sort r = LIB.Z3_get_range(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 r;
- }
-
- public static uint Z3_get_sort_kind(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_sort_kind(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 r;
- }
-
- public static uint Z3_get_bv_sort_size(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_bv_sort_size(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 r;
- }
-
- public static Z3_sort Z3_get_array_sort_domain(Z3_context a0, Z3_sort a1) {
- Z3_sort r = LIB.Z3_get_array_sort_domain(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 r;
- }
-
- public static Z3_sort Z3_get_array_sort_range(Z3_context a0, Z3_sort a1) {
- Z3_sort r = LIB.Z3_get_array_sort_range(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 r;
- }
-
- public static Z3_func_decl Z3_get_tuple_sort_mk_decl(Z3_context a0, Z3_sort a1) {
- Z3_func_decl r = LIB.Z3_get_tuple_sort_mk_decl(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 r;
- }
-
- public static uint Z3_get_decl_kind(Z3_context a0, Z3_func_decl a1) {
- uint r = LIB.Z3_get_decl_kind(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 r;
- }
-
- public static uint Z3_get_tuple_sort_num_fields(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_tuple_sort_num_fields(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 r;
- }
-
- public static Z3_func_decl Z3_get_tuple_sort_field_decl(Z3_context a0, Z3_sort a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_tuple_sort_field_decl(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 static uint Z3_get_datatype_sort_num_constructors(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_datatype_sort_num_constructors(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 r;
- }
-
- public static Z3_func_decl Z3_get_datatype_sort_constructor(Z3_context a0, Z3_sort a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_datatype_sort_constructor(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 static Z3_func_decl Z3_get_datatype_sort_recognizer(Z3_context a0, Z3_sort a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_datatype_sort_recognizer(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 static Z3_func_decl Z3_get_datatype_sort_constructor_accessor(Z3_context a0, Z3_sort a1, uint a2, uint a3) {
- Z3_func_decl r = LIB.Z3_get_datatype_sort_constructor_accessor(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 uint Z3_get_relation_arity(Z3_context a0, Z3_sort a1) {
- uint r = LIB.Z3_get_relation_arity(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 r;
- }
-
- public static Z3_sort Z3_get_relation_column(Z3_context a0, Z3_sort a1, uint a2) {
- Z3_sort r = LIB.Z3_get_relation_column(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 static int Z3_get_finite_domain_sort_size(Z3_context a0, Z3_sort a1, [In, Out] ref UInt64 a2) {
- int r = LIB.Z3_get_finite_domain_sort_size(a0, a1, ref 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 static Z3_sort Z3_mk_finite_domain_sort(Z3_context a0, IntPtr a1, UInt64 a2) {
- Z3_sort r = LIB.Z3_mk_finite_domain_sort(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 static uint Z3_get_pattern_num_terms(Z3_context a0, Z3_pattern a1) {
- uint r = LIB.Z3_get_pattern_num_terms(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 r;
- }
-
- public static Z3_ast Z3_get_pattern(Z3_context a0, Z3_pattern a1, uint a2) {
- Z3_ast r = LIB.Z3_get_pattern(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 static Z3_ast Z3_simplify(Z3_context a0, Z3_ast a1) {
- Z3_ast r = LIB.Z3_simplify(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 r;
- }
-
- public static Z3_ast Z3_simplify_ex(Z3_context a0, Z3_ast a1, Z3_params a2) {
- Z3_ast r = LIB.Z3_simplify_ex(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 static string Z3_simplify_get_help(Z3_context a0) {
- IntPtr r = LIB.Z3_simplify_get_help(a0);
- 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_param_descrs Z3_simplify_get_param_descrs(Z3_context a0) {
- Z3_param_descrs r = LIB.Z3_simplify_get_param_descrs(a0);
- 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_ast Z3_update_term(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3) {
- Z3_ast r = LIB.Z3_update_term(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_ast Z3_substitute(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3, [In] Z3_ast[] a4) {
- Z3_ast r = LIB.Z3_substitute(a0, a1, a2, a3, 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 static Z3_ast Z3_substitute_vars(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3) {
- Z3_ast r = LIB.Z3_substitute_vars(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_ast Z3_sort_to_ast(Z3_context a0, Z3_sort a1) {
- Z3_ast r = LIB.Z3_sort_to_ast(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 r;
- }
-
- public static Z3_ast Z3_func_decl_to_ast(Z3_context a0, Z3_func_decl a1) {
- Z3_ast r = LIB.Z3_func_decl_to_ast(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 r;
- }
-
- public static Z3_ast Z3_pattern_to_ast(Z3_context a0, Z3_pattern a1) {
- Z3_ast r = LIB.Z3_pattern_to_ast(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 r;
- }
-
- public static Z3_ast Z3_app_to_ast(Z3_context a0, Z3_app a1) {
- Z3_ast r = LIB.Z3_app_to_ast(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 r;
- }
-
- public static Z3_app Z3_to_app(Z3_context a0, Z3_ast a1) {
- Z3_app r = LIB.Z3_to_app(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 r;
- }
-
- public static Z3_func_decl Z3_to_func_decl(Z3_context a0, Z3_ast a1) {
- Z3_func_decl r = LIB.Z3_to_func_decl(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 r;
- }
-
- public static void Z3_push(Z3_context a0) {
- LIB.Z3_push(a0);
- 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_pop(Z3_context a0, uint a1) {
- LIB.Z3_pop(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 static uint Z3_get_num_scopes(Z3_context a0) {
- uint r = LIB.Z3_get_num_scopes(a0);
- 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 void Z3_persist_ast(Z3_context a0, Z3_ast a1, uint a2) {
- LIB.Z3_persist_ast(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 static void Z3_assert_cnstr(Z3_context a0, Z3_ast a1) {
- LIB.Z3_assert_cnstr(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 static int Z3_check_and_get_model(Z3_context a0, [In, Out] ref Z3_model a1) {
- int r = LIB.Z3_check_and_get_model(a0, ref 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 r;
- }
-
- public static int Z3_check(Z3_context a0) {
- int r = LIB.Z3_check(a0);
- 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 int Z3_check_assumptions(Z3_context a0, uint a1, [In] Z3_ast[] a2, [In, Out] ref Z3_model a3, [In, Out] ref Z3_ast a4, [In, Out] ref uint a5, [Out] Z3_ast[] a6) {
- int r = LIB.Z3_check_assumptions(a0, a1, a2, ref a3, ref a4, ref a5, a6);
- 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 uint Z3_get_implied_equalities(Z3_context a0, uint a1, [In] Z3_ast[] a2, [Out] uint[] a3) {
- uint r = LIB.Z3_get_implied_equalities(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 void Z3_del_model(Z3_context a0, Z3_model a1) {
- LIB.Z3_del_model(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 static void Z3_soft_check_cancel(Z3_context a0) {
- LIB.Z3_soft_check_cancel(a0);
- 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 uint Z3_get_search_failure(Z3_context a0) {
- uint r = LIB.Z3_get_search_failure(a0);
- 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_literals Z3_get_relevant_labels(Z3_context a0) {
- Z3_literals r = LIB.Z3_get_relevant_labels(a0);
- 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_literals Z3_get_relevant_literals(Z3_context a0) {
- Z3_literals r = LIB.Z3_get_relevant_literals(a0);
- 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_literals Z3_get_guessed_literals(Z3_context a0) {
- Z3_literals r = LIB.Z3_get_guessed_literals(a0);
- 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 void Z3_del_literals(Z3_context a0, Z3_literals a1) {
- LIB.Z3_del_literals(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 static uint Z3_get_num_literals(Z3_context a0, Z3_literals a1) {
- uint r = LIB.Z3_get_num_literals(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 r;
- }
-
- public static IntPtr Z3_get_label_symbol(Z3_context a0, Z3_literals a1, uint a2) {
- IntPtr r = LIB.Z3_get_label_symbol(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 static Z3_ast Z3_get_literal(Z3_context a0, Z3_literals a1, uint a2) {
- Z3_ast r = LIB.Z3_get_literal(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 static void Z3_disable_literal(Z3_context a0, Z3_literals a1, uint a2) {
- LIB.Z3_disable_literal(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 static void Z3_block_literals(Z3_context a0, Z3_literals a1) {
- LIB.Z3_block_literals(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 static void Z3_model_inc_ref(Z3_context a0, Z3_model a1) {
- LIB.Z3_model_inc_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 static void Z3_model_dec_ref(Z3_context a0, Z3_model a1) {
- LIB.Z3_model_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 static Z3_ast Z3_model_get_const_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2) {
- Z3_ast r = LIB.Z3_model_get_const_interp(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 static Z3_func_interp Z3_model_get_func_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2) {
- Z3_func_interp r = LIB.Z3_model_get_func_interp(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 static uint Z3_model_get_num_consts(Z3_context a0, Z3_model a1) {
- uint r = LIB.Z3_model_get_num_consts(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 r;
- }
-
- public static Z3_func_decl Z3_model_get_const_decl(Z3_context a0, Z3_model a1, uint a2) {
- Z3_func_decl r = LIB.Z3_model_get_const_decl(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 static uint Z3_model_get_num_funcs(Z3_context a0, Z3_model a1) {
- uint r = LIB.Z3_model_get_num_funcs(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 r;
- }
-
- public static Z3_func_decl Z3_model_get_func_decl(Z3_context a0, Z3_model a1, uint a2) {
- Z3_func_decl r = LIB.Z3_model_get_func_decl(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 static int Z3_model_eval(Z3_context a0, Z3_model a1, Z3_ast a2, int a3, [In, Out] ref Z3_ast a4) {
- int r = LIB.Z3_model_eval(a0, a1, a2, 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 static uint Z3_model_get_num_sorts(Z3_context a0, Z3_model a1) {
- uint r = LIB.Z3_model_get_num_sorts(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 r;
- }
-
- public static Z3_sort Z3_model_get_sort(Z3_context a0, Z3_model a1, uint a2) {
- Z3_sort r = LIB.Z3_model_get_sort(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 static Z3_ast_vector Z3_model_get_sort_universe(Z3_context a0, Z3_model a1, Z3_sort a2) {
- Z3_ast_vector r = LIB.Z3_model_get_sort_universe(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 static int Z3_is_as_array(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_as_array(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 r;
- }
-
- public static Z3_func_decl Z3_get_as_array_func_decl(Z3_context a0, Z3_ast a1) {
- Z3_func_decl r = LIB.Z3_get_as_array_func_decl(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 r;
- }
-
- public static void Z3_func_interp_inc_ref(Z3_context a0, Z3_func_interp a1) {
- LIB.Z3_func_interp_inc_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 static void Z3_func_interp_dec_ref(Z3_context a0, Z3_func_interp a1) {
- LIB.Z3_func_interp_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 static uint Z3_func_interp_get_num_entries(Z3_context a0, Z3_func_interp a1) {
- uint r = LIB.Z3_func_interp_get_num_entries(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 r;
- }
-
- public static Z3_func_entry Z3_func_interp_get_entry(Z3_context a0, Z3_func_interp a1, uint a2) {
- Z3_func_entry r = LIB.Z3_func_interp_get_entry(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 static Z3_ast Z3_func_interp_get_else(Z3_context a0, Z3_func_interp a1) {
- Z3_ast r = LIB.Z3_func_interp_get_else(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 r;
- }
-
- public static uint Z3_func_interp_get_arity(Z3_context a0, Z3_func_interp a1) {
- uint r = LIB.Z3_func_interp_get_arity(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 r;
- }
-
- public static void Z3_func_entry_inc_ref(Z3_context a0, Z3_func_entry a1) {
- LIB.Z3_func_entry_inc_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 static void Z3_func_entry_dec_ref(Z3_context a0, Z3_func_entry a1) {
- LIB.Z3_func_entry_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 static Z3_ast Z3_func_entry_get_value(Z3_context a0, Z3_func_entry a1) {
- Z3_ast r = LIB.Z3_func_entry_get_value(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 r;
- }
-
- public static uint Z3_func_entry_get_num_args(Z3_context a0, Z3_func_entry a1) {
- uint r = LIB.Z3_func_entry_get_num_args(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 r;
- }
-
- public static Z3_ast Z3_func_entry_get_arg(Z3_context a0, Z3_func_entry a1, uint a2) {
- Z3_ast r = LIB.Z3_func_entry_get_arg(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 static uint Z3_get_model_num_constants(Z3_context a0, Z3_model a1) {
- uint r = LIB.Z3_get_model_num_constants(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 r;
- }
-
- public static Z3_func_decl Z3_get_model_constant(Z3_context a0, Z3_model a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_model_constant(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 static int Z3_eval_func_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, [In, Out] ref Z3_ast a3) {
- int r = LIB.Z3_eval_func_decl(a0, a1, a2, ref 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 int Z3_is_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref uint a3) {
- int r = LIB.Z3_is_array_value(a0, a1, a2, ref 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 void Z3_get_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, uint a3, [Out] Z3_ast[] a4, [Out] Z3_ast[] a5, [In, Out] ref Z3_ast a6) {
- LIB.Z3_get_array_value(a0, a1, a2, a3, a4, a5, ref a6);
- 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 uint Z3_get_model_num_funcs(Z3_context a0, Z3_model a1) {
- uint r = LIB.Z3_get_model_num_funcs(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 r;
- }
-
- public static Z3_func_decl Z3_get_model_func_decl(Z3_context a0, Z3_model a1, uint a2) {
- Z3_func_decl r = LIB.Z3_get_model_func_decl(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 static Z3_ast Z3_get_model_func_else(Z3_context a0, Z3_model a1, uint a2) {
- Z3_ast r = LIB.Z3_get_model_func_else(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 static uint Z3_get_model_func_num_entries(Z3_context a0, Z3_model a1, uint a2) {
- uint r = LIB.Z3_get_model_func_num_entries(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 static uint Z3_get_model_func_entry_num_args(Z3_context a0, Z3_model a1, uint a2, uint a3) {
- uint r = LIB.Z3_get_model_func_entry_num_args(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_ast Z3_get_model_func_entry_arg(Z3_context a0, Z3_model a1, uint a2, uint a3, uint a4) {
- Z3_ast r = LIB.Z3_get_model_func_entry_arg(a0, a1, a2, a3, 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 static Z3_ast Z3_get_model_func_entry_value(Z3_context a0, Z3_model a1, uint a2, uint a3) {
- Z3_ast r = LIB.Z3_get_model_func_entry_value(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 int Z3_eval(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref Z3_ast a3) {
- int r = LIB.Z3_eval(a0, a1, a2, ref 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 int Z3_eval_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, uint a3, [In] Z3_ast[] a4, [In, Out] ref Z3_ast a5) {
- int r = LIB.Z3_eval_decl(a0, a1, a2, a3, a4, ref a5);
- 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 void Z3_set_ast_print_mode(Z3_context a0, uint a1) {
- LIB.Z3_set_ast_print_mode(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 static string Z3_ast_to_string(Z3_context a0, Z3_ast a1) {
- IntPtr r = LIB.Z3_ast_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 string Z3_pattern_to_string(Z3_context a0, Z3_pattern a1) {
- IntPtr r = LIB.Z3_pattern_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 string Z3_sort_to_string(Z3_context a0, Z3_sort a1) {
- IntPtr r = LIB.Z3_sort_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 string Z3_func_decl_to_string(Z3_context a0, Z3_func_decl a1) {
- IntPtr r = LIB.Z3_func_decl_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 string Z3_model_to_string(Z3_context a0, Z3_model a1) {
- IntPtr r = LIB.Z3_model_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 string Z3_benchmark_to_smtlib_string(Z3_context a0, string a1, string a2, string a3, string a4, uint a5, [In] Z3_ast[] a6, Z3_ast a7) {
- IntPtr r = LIB.Z3_benchmark_to_smtlib_string(a0, a1, a2, a3, a4, a5, a6, a7);
- 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 string Z3_context_to_string(Z3_context a0) {
- IntPtr r = LIB.Z3_context_to_string(a0);
- 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 string Z3_statistics_to_string(Z3_context a0) {
- IntPtr r = LIB.Z3_statistics_to_string(a0);
- 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_ast Z3_get_context_assignment(Z3_context a0) {
- Z3_ast r = LIB.Z3_get_context_assignment(a0);
- 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 void Z3_parse_smtlib_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
- LIB.Z3_parse_smtlib_string(a0, a1, a2, a3, a4, a5, a6, a7);
- 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_parse_smtlib_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
- LIB.Z3_parse_smtlib_file(a0, a1, a2, a3, a4, a5, a6, a7);
- 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 uint Z3_get_smtlib_num_formulas(Z3_context a0) {
- uint r = LIB.Z3_get_smtlib_num_formulas(a0);
- 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_ast Z3_get_smtlib_formula(Z3_context a0, uint a1) {
- Z3_ast r = LIB.Z3_get_smtlib_formula(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 r;
- }
-
- public static uint Z3_get_smtlib_num_assumptions(Z3_context a0) {
- uint r = LIB.Z3_get_smtlib_num_assumptions(a0);
- 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_ast Z3_get_smtlib_assumption(Z3_context a0, uint a1) {
- Z3_ast r = LIB.Z3_get_smtlib_assumption(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 r;
- }
-
- public static uint Z3_get_smtlib_num_decls(Z3_context a0) {
- uint r = LIB.Z3_get_smtlib_num_decls(a0);
- 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_func_decl Z3_get_smtlib_decl(Z3_context a0, uint a1) {
- Z3_func_decl r = LIB.Z3_get_smtlib_decl(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 r;
- }
-
- public static uint Z3_get_smtlib_num_sorts(Z3_context a0) {
- uint r = LIB.Z3_get_smtlib_num_sorts(a0);
- 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_sort Z3_get_smtlib_sort(Z3_context a0, uint a1) {
- Z3_sort r = LIB.Z3_get_smtlib_sort(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 r;
- }
-
- public static string Z3_get_smtlib_error(Z3_context a0) {
- IntPtr r = LIB.Z3_get_smtlib_error(a0);
- 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_ast Z3_parse_z3_string(Z3_context a0, string a1) {
- Z3_ast r = LIB.Z3_parse_z3_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 r;
- }
-
- public static Z3_ast Z3_parse_z3_file(Z3_context a0, string a1) {
- Z3_ast r = LIB.Z3_parse_z3_file(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 r;
- }
-
- public static Z3_ast Z3_parse_smtlib2_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
- Z3_ast r = LIB.Z3_parse_smtlib2_string(a0, a1, a2, a3, a4, a5, a6, a7);
- 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_ast Z3_parse_smtlib2_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
- Z3_ast r = LIB.Z3_parse_smtlib2_file(a0, a1, a2, a3, a4, a5, a6, a7);
- 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 uint Z3_get_error_code(Z3_context a0) {
- uint r = LIB.Z3_get_error_code(a0);
- 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 void Z3_set_error(Z3_context a0, uint a1) {
- LIB.Z3_set_error(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 static string Z3_get_error_msg(uint a0) {
- IntPtr r = LIB.Z3_get_error_msg(a0);
- return Marshal.PtrToStringAnsi(r);
- }
-
- public static void Z3_get_version([In, Out] ref uint a0, [In, Out] ref uint a1, [In, Out] ref uint a2, [In, Out] ref uint a3) {
- LIB.Z3_get_version(ref a0, ref a1, ref a2, ref a3);
- }
-
- public static void Z3_reset_memory() {
- LIB.Z3_reset_memory();
- }
-
- public static int Z3_is_app(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_app(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 r;
- }
-
- public static int Z3_is_numeral_ast(Z3_context a0, Z3_ast a1) {
- int r = LIB.Z3_is_numeral_ast(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 r;
- }
-
- public static uint Z3_get_arity(Z3_context a0, Z3_func_decl a1) {
- uint r = LIB.Z3_get_arity(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 r;
- }
-
- public static Z3_func_decl Z3_mk_injective_function(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
- Z3_func_decl r = LIB.Z3_mk_injective_function(a0, a1, a2, a3, 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 static Z3_fixedpoint Z3_mk_fixedpoint(Z3_context a0) {
- Z3_fixedpoint r = LIB.Z3_mk_fixedpoint(a0);
- 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 void Z3_fixedpoint_inc_ref(Z3_context a0, Z3_fixedpoint a1) {
- LIB.Z3_fixedpoint_inc_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 static void Z3_fixedpoint_dec_ref(Z3_context a0, Z3_fixedpoint a1) {
- LIB.Z3_fixedpoint_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 static void Z3_fixedpoint_push(Z3_context a0, Z3_fixedpoint a1) {
- LIB.Z3_fixedpoint_push(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 static void Z3_fixedpoint_pop(Z3_context a0, Z3_fixedpoint a1) {
- LIB.Z3_fixedpoint_pop(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 static void Z3_fixedpoint_register_relation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2) {
- LIB.Z3_fixedpoint_register_relation(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 static void Z3_fixedpoint_assert(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2) {
- LIB.Z3_fixedpoint_assert(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 static void Z3_fixedpoint_add_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3) {
- LIB.Z3_fixedpoint_add_rule(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_fixedpoint_add_fact(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] uint[] a4) {
- LIB.Z3_fixedpoint_add_fact(a0, a1, a2, a3, 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)));
- }
-
- public static int Z3_fixedpoint_query(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2) {
- int r = LIB.Z3_fixedpoint_query(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 static int Z3_fixedpoint_query_relations(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_func_decl[] a3) {
- int r = LIB.Z3_fixedpoint_query_relations(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_ast Z3_fixedpoint_get_answer(Z3_context a0, Z3_fixedpoint a1) {
- Z3_ast r = LIB.Z3_fixedpoint_get_answer(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 r;
- }
-
- public static void Z3_fixedpoint_update_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3) {
- LIB.Z3_fixedpoint_update_rule(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 uint Z3_fixedpoint_get_num_levels(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2) {
- uint r = LIB.Z3_fixedpoint_get_num_levels(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 static Z3_ast Z3_fixedpoint_get_cover_delta(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3) {
- Z3_ast r = LIB.Z3_fixedpoint_get_cover_delta(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 void Z3_fixedpoint_add_cover(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3, Z3_ast a4) {
- LIB.Z3_fixedpoint_add_cover(a0, a1, a2, a3, 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)));
- }
-
- public static Z3_stats Z3_fixedpoint_get_statistics(Z3_context a0, Z3_fixedpoint a1) {
- Z3_stats r = LIB.Z3_fixedpoint_get_statistics(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 r;
- }
-
- public static string Z3_fixedpoint_get_help(Z3_context a0, Z3_fixedpoint a1) {
- IntPtr r = LIB.Z3_fixedpoint_get_help(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_param_descrs Z3_fixedpoint_get_param_descrs(Z3_context a0, Z3_fixedpoint a1) {
- Z3_param_descrs r = LIB.Z3_fixedpoint_get_param_descrs(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 r;
- }
-
- public static void Z3_fixedpoint_set_params(Z3_context a0, Z3_fixedpoint a1, Z3_params a2) {
- LIB.Z3_fixedpoint_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 static string Z3_fixedpoint_to_string(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3) {
- IntPtr r = LIB.Z3_fixedpoint_to_string(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 Marshal.PtrToStringAnsi(r);
- }
-
- public static string Z3_fixedpoint_get_reason_unknown(Z3_context a0, Z3_fixedpoint a1) {
- IntPtr r = LIB.Z3_fixedpoint_get_reason_unknown(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_fixedpoint_set_predicate_representation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] IntPtr[] a4) {
- LIB.Z3_fixedpoint_set_predicate_representation(a0, a1, a2, a3, 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)));
- }
-
- public static Z3_ast_vector Z3_fixedpoint_simplify_rules(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3, uint a4, [In] Z3_func_decl[] a5) {
- Z3_ast_vector r = LIB.Z3_fixedpoint_simplify_rules(a0, a1, a2, a3, a4, a5);
- 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_params Z3_mk_params(Z3_context a0) {
- Z3_params r = LIB.Z3_mk_params(a0);
- 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 void Z3_params_inc_ref(Z3_context a0, Z3_params a1) {
- LIB.Z3_params_inc_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 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 static void Z3_params_set_bool(Z3_context a0, Z3_params a1, IntPtr a2, int a3) {
- LIB.Z3_params_set_bool(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_set_uint(Z3_context a0, Z3_params a1, IntPtr a2, uint a3) {
- LIB.Z3_params_set_uint(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_set_double(Z3_context a0, Z3_params a1, IntPtr a2, double a3) {
- LIB.Z3_params_set_double(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_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 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 void Z3_params_validate(Z3_context a0, Z3_params a1, Z3_param_descrs a2) {
- LIB.Z3_params_validate(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 static void Z3_param_descrs_inc_ref(Z3_context a0, Z3_param_descrs a1) {
- LIB.Z3_param_descrs_inc_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 static void Z3_param_descrs_dec_ref(Z3_context a0, Z3_param_descrs a1) {
- LIB.Z3_param_descrs_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 static uint Z3_param_descrs_get_kind(Z3_context a0, Z3_param_descrs a1, IntPtr a2) {
- uint r = LIB.Z3_param_descrs_get_kind(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 static uint Z3_param_descrs_size(Z3_context a0, Z3_param_descrs a1) {
- uint r = LIB.Z3_param_descrs_size(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 r;
- }
-
- public static IntPtr Z3_param_descrs_get_name(Z3_context a0, Z3_param_descrs a1, uint a2) {
- IntPtr r = LIB.Z3_param_descrs_get_name(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 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);
- if (err != Z3_error_code.Z3_OK)
- throw new Z3Exception(Marshal.PtrToStringAnsi(LIB.Z3_get_error_msg_ex(a0, (uint)err)));
- }
-
- public static string Z3_get_error_msg_ex(Z3_context a0, uint a1) {
- IntPtr r = LIB.Z3_get_error_msg_ex(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_ast Z3_translate(Z3_context a0, Z3_ast a1, Z3_context a2) {
- Z3_ast r = LIB.Z3_translate(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 static Z3_goal Z3_mk_goal(Z3_context a0, int a1, int a2, int a3) {
- Z3_goal r = LIB.Z3_mk_goal(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 void Z3_goal_inc_ref(Z3_context a0, Z3_goal a1) {
- LIB.Z3_goal_inc_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 static void Z3_goal_dec_ref(Z3_context a0, Z3_goal a1) {
- LIB.Z3_goal_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 static uint Z3_goal_precision(Z3_context a0, Z3_goal a1) {
- uint r = LIB.Z3_goal_precision(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 r;
- }
-
- public static void Z3_goal_assert(Z3_context a0, Z3_goal a1, Z3_ast a2) {
- LIB.Z3_goal_assert(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 static int Z3_goal_inconsistent(Z3_context a0, Z3_goal a1) {
- int r = LIB.Z3_goal_inconsistent(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 r;
- }
-
- public static uint Z3_goal_depth(Z3_context a0, Z3_goal a1) {
- uint r = LIB.Z3_goal_depth(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 r;
- }
-
- public static void Z3_goal_reset(Z3_context a0, Z3_goal a1) {
- LIB.Z3_goal_reset(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 static uint Z3_goal_size(Z3_context a0, Z3_goal a1) {
- uint r = LIB.Z3_goal_size(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 r;
- }
-
- public static Z3_ast Z3_goal_formula(Z3_context a0, Z3_goal a1, uint a2) {
- Z3_ast r = LIB.Z3_goal_formula(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 static uint Z3_goal_num_exprs(Z3_context a0, Z3_goal a1) {
- uint r = LIB.Z3_goal_num_exprs(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 r;
- }
-
- public static int Z3_goal_is_decided_sat(Z3_context a0, Z3_goal a1) {
- int r = LIB.Z3_goal_is_decided_sat(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 r;
- }
-
- public static int Z3_goal_is_decided_unsat(Z3_context a0, Z3_goal a1) {
- int r = LIB.Z3_goal_is_decided_unsat(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 r;
- }
-
- public static Z3_goal Z3_goal_translate(Z3_context a0, Z3_goal a1, Z3_context a2) {
- Z3_goal r = LIB.Z3_goal_translate(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 static string Z3_goal_to_string(Z3_context a0, Z3_goal a1) {
- IntPtr r = LIB.Z3_goal_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_mk_tactic(Z3_context a0, string a1) {
- Z3_tactic r = LIB.Z3_mk_tactic(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 r;
- }
-
- public static Z3_probe Z3_mk_probe(Z3_context a0, string a1) {
- Z3_probe r = LIB.Z3_mk_probe(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 r;
- }
-
- public static void Z3_tactic_inc_ref(Z3_context a0, Z3_tactic a1) {
- LIB.Z3_tactic_inc_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 static void Z3_tactic_dec_ref(Z3_context a0, Z3_tactic a1) {
- LIB.Z3_tactic_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 static void Z3_probe_inc_ref(Z3_context a0, Z3_probe a1) {
- LIB.Z3_probe_inc_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 static void Z3_probe_dec_ref(Z3_context a0, Z3_probe a1) {
- LIB.Z3_probe_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 static Z3_tactic Z3_tactic_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
- Z3_tactic r = LIB.Z3_tactic_and_then(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 static Z3_tactic Z3_tactic_or_else(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
- Z3_tactic r = LIB.Z3_tactic_or_else(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 static Z3_tactic Z3_tactic_par_or(Z3_context a0, uint a1, [In] Z3_tactic[] a2) {
- Z3_tactic r = LIB.Z3_tactic_par_or(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 static Z3_tactic Z3_tactic_par_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
- Z3_tactic r = LIB.Z3_tactic_par_and_then(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 static Z3_tactic Z3_tactic_try_for(Z3_context a0, Z3_tactic a1, uint a2) {
- Z3_tactic r = LIB.Z3_tactic_try_for(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 static Z3_tactic Z3_tactic_when(Z3_context a0, Z3_probe a1, Z3_tactic a2) {
- Z3_tactic r = LIB.Z3_tactic_when(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 static Z3_tactic Z3_tactic_cond(Z3_context a0, Z3_probe a1, Z3_tactic a2, Z3_tactic a3) {
- Z3_tactic r = LIB.Z3_tactic_cond(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_tactic Z3_tactic_repeat(Z3_context a0, Z3_tactic a1, uint a2) {
- Z3_tactic r = LIB.Z3_tactic_repeat(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 static Z3_tactic Z3_tactic_skip(Z3_context a0) {
- Z3_tactic r = LIB.Z3_tactic_skip(a0);
- 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_tactic Z3_tactic_fail(Z3_context a0) {
- Z3_tactic r = LIB.Z3_tactic_fail(a0);
- 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_tactic Z3_tactic_fail_if(Z3_context a0, Z3_probe a1) {
- Z3_tactic r = LIB.Z3_tactic_fail_if(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 r;
- }
-
- public static Z3_tactic Z3_tactic_fail_if_not_decided(Z3_context a0) {
- Z3_tactic r = LIB.Z3_tactic_fail_if_not_decided(a0);
- 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_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 static Z3_probe Z3_probe_const(Z3_context a0, double a1) {
- Z3_probe r = LIB.Z3_probe_const(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 r;
- }
-
- public static Z3_probe Z3_probe_lt(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_lt(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 static Z3_probe Z3_probe_le(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_le(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 static Z3_probe Z3_probe_gt(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_gt(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 static Z3_probe Z3_probe_ge(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_ge(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 static Z3_probe Z3_probe_eq(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_eq(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 static Z3_probe Z3_probe_and(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_and(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 static Z3_probe Z3_probe_or(Z3_context a0, Z3_probe a1, Z3_probe a2) {
- Z3_probe r = LIB.Z3_probe_or(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 static Z3_probe Z3_probe_not(Z3_context a0, Z3_probe a1) {
- Z3_probe r = LIB.Z3_probe_not(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 r;
- }
-
- public static uint Z3_get_num_tactics(Z3_context a0) {
- uint r = LIB.Z3_get_num_tactics(a0);
- 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 string Z3_get_tactic_name(Z3_context a0, uint a1) {
- IntPtr r = LIB.Z3_get_tactic_name(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 uint Z3_get_num_probes(Z3_context a0) {
- uint r = LIB.Z3_get_num_probes(a0);
- 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 string Z3_get_probe_name(Z3_context a0, uint a1) {
- IntPtr r = LIB.Z3_get_probe_name(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 string Z3_tactic_get_help(Z3_context a0, Z3_tactic a1) {
- IntPtr r = LIB.Z3_tactic_get_help(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_param_descrs Z3_tactic_get_param_descrs(Z3_context a0, Z3_tactic a1) {
- Z3_param_descrs r = LIB.Z3_tactic_get_param_descrs(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 r;
- }
-
- public static string Z3_tactic_get_descr(Z3_context a0, string a1) {
- IntPtr r = LIB.Z3_tactic_get_descr(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 string Z3_probe_get_descr(Z3_context a0, string a1) {
- IntPtr r = LIB.Z3_probe_get_descr(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 double Z3_probe_apply(Z3_context a0, Z3_probe a1, Z3_goal a2) {
- double r = LIB.Z3_probe_apply(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 static Z3_apply_result Z3_tactic_apply(Z3_context a0, Z3_tactic a1, Z3_goal a2) {
- Z3_apply_result r = LIB.Z3_tactic_apply(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 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 static void Z3_apply_result_inc_ref(Z3_context a0, Z3_apply_result a1) {
- LIB.Z3_apply_result_inc_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 static void Z3_apply_result_dec_ref(Z3_context a0, Z3_apply_result a1) {
- LIB.Z3_apply_result_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 static string Z3_apply_result_to_string(Z3_context a0, Z3_apply_result a1) {
- IntPtr r = LIB.Z3_apply_result_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 uint Z3_apply_result_get_num_subgoals(Z3_context a0, Z3_apply_result a1) {
- uint r = LIB.Z3_apply_result_get_num_subgoals(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 r;
- }
-
- public static Z3_goal Z3_apply_result_get_subgoal(Z3_context a0, Z3_apply_result a1, uint a2) {
- Z3_goal r = LIB.Z3_apply_result_get_subgoal(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 static Z3_model Z3_apply_result_convert_model(Z3_context a0, Z3_apply_result a1, uint a2, Z3_model a3) {
- Z3_model r = LIB.Z3_apply_result_convert_model(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_solver Z3_mk_solver(Z3_context a0) {
- Z3_solver r = LIB.Z3_mk_solver(a0);
- 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_solver Z3_mk_simple_solver(Z3_context a0) {
- Z3_solver r = LIB.Z3_mk_simple_solver(a0);
- 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_solver Z3_mk_solver_for_logic(Z3_context a0, IntPtr a1) {
- Z3_solver r = LIB.Z3_mk_solver_for_logic(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 r;
- }
-
- public static Z3_solver Z3_mk_solver_from_tactic(Z3_context a0, Z3_tactic a1) {
- Z3_solver r = LIB.Z3_mk_solver_from_tactic(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 r;
- }
-
- public static string Z3_solver_get_help(Z3_context a0, Z3_solver a1) {
- IntPtr r = LIB.Z3_solver_get_help(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_param_descrs Z3_solver_get_param_descrs(Z3_context a0, Z3_solver a1) {
- Z3_param_descrs r = LIB.Z3_solver_get_param_descrs(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 r;
- }
-
- 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 static void Z3_solver_inc_ref(Z3_context a0, Z3_solver a1) {
- LIB.Z3_solver_inc_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 static void Z3_solver_dec_ref(Z3_context a0, Z3_solver a1) {
- LIB.Z3_solver_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 static void Z3_solver_push(Z3_context a0, Z3_solver a1) {
- LIB.Z3_solver_push(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 static void Z3_solver_pop(Z3_context a0, Z3_solver a1, uint a2) {
- LIB.Z3_solver_pop(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 static void Z3_solver_reset(Z3_context a0, Z3_solver a1) {
- LIB.Z3_solver_reset(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 static uint Z3_solver_get_num_scopes(Z3_context a0, Z3_solver a1) {
- uint r = LIB.Z3_solver_get_num_scopes(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 r;
- }
-
- public static void Z3_solver_assert(Z3_context a0, Z3_solver a1, Z3_ast a2) {
- LIB.Z3_solver_assert(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 static Z3_ast_vector Z3_solver_get_assertions(Z3_context a0, Z3_solver a1) {
- Z3_ast_vector r = LIB.Z3_solver_get_assertions(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 r;
- }
-
- public static int Z3_solver_check(Z3_context a0, Z3_solver a1) {
- int r = LIB.Z3_solver_check(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 r;
- }
-
- public static int Z3_solver_check_assumptions(Z3_context a0, Z3_solver a1, uint a2, [In] Z3_ast[] a3) {
- int r = LIB.Z3_solver_check_assumptions(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_model Z3_solver_get_model(Z3_context a0, Z3_solver a1) {
- Z3_model r = LIB.Z3_solver_get_model(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 r;
- }
-
- public static Z3_ast Z3_solver_get_proof(Z3_context a0, Z3_solver a1) {
- Z3_ast r = LIB.Z3_solver_get_proof(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 r;
- }
-
- public static Z3_ast_vector Z3_solver_get_unsat_core(Z3_context a0, Z3_solver a1) {
- Z3_ast_vector r = LIB.Z3_solver_get_unsat_core(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 r;
- }
-
- public static string Z3_solver_get_reason_unknown(Z3_context a0, Z3_solver a1) {
- IntPtr r = LIB.Z3_solver_get_reason_unknown(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_stats Z3_solver_get_statistics(Z3_context a0, Z3_solver a1) {
- Z3_stats r = LIB.Z3_solver_get_statistics(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 r;
- }
-
- public static string Z3_solver_to_string(Z3_context a0, Z3_solver a1) {
- IntPtr r = LIB.Z3_solver_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 string Z3_stats_to_string(Z3_context a0, Z3_stats a1) {
- IntPtr r = LIB.Z3_stats_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_stats_inc_ref(Z3_context a0, Z3_stats a1) {
- LIB.Z3_stats_inc_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 static void Z3_stats_dec_ref(Z3_context a0, Z3_stats a1) {
- LIB.Z3_stats_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 static uint Z3_stats_size(Z3_context a0, Z3_stats a1) {
- uint r = LIB.Z3_stats_size(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 r;
- }
-
- public static string Z3_stats_get_key(Z3_context a0, Z3_stats a1, uint a2) {
- IntPtr r = LIB.Z3_stats_get_key(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 Marshal.PtrToStringAnsi(r);
- }
-
- public static int Z3_stats_is_uint(Z3_context a0, Z3_stats a1, uint a2) {
- int r = LIB.Z3_stats_is_uint(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 static int Z3_stats_is_double(Z3_context a0, Z3_stats a1, uint a2) {
- int r = LIB.Z3_stats_is_double(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 static uint Z3_stats_get_uint_value(Z3_context a0, Z3_stats a1, uint a2) {
- uint r = LIB.Z3_stats_get_uint_value(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 static double Z3_stats_get_double_value(Z3_context a0, Z3_stats a1, uint a2) {
- double r = LIB.Z3_stats_get_double_value(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 static Z3_ast_vector Z3_mk_ast_vector(Z3_context a0) {
- Z3_ast_vector r = LIB.Z3_mk_ast_vector(a0);
- 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 void Z3_ast_vector_inc_ref(Z3_context a0, Z3_ast_vector a1) {
- LIB.Z3_ast_vector_inc_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 static void Z3_ast_vector_dec_ref(Z3_context a0, Z3_ast_vector a1) {
- LIB.Z3_ast_vector_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 static uint Z3_ast_vector_size(Z3_context a0, Z3_ast_vector a1) {
- uint r = LIB.Z3_ast_vector_size(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 r;
- }
-
- public static Z3_ast Z3_ast_vector_get(Z3_context a0, Z3_ast_vector a1, uint a2) {
- Z3_ast r = LIB.Z3_ast_vector_get(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 static void Z3_ast_vector_set(Z3_context a0, Z3_ast_vector a1, uint a2, Z3_ast a3) {
- LIB.Z3_ast_vector_set(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_ast_vector_resize(Z3_context a0, Z3_ast_vector a1, uint a2) {
- LIB.Z3_ast_vector_resize(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 static void Z3_ast_vector_push(Z3_context a0, Z3_ast_vector a1, Z3_ast a2) {
- LIB.Z3_ast_vector_push(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 static Z3_ast_vector Z3_ast_vector_translate(Z3_context a0, Z3_ast_vector a1, Z3_context a2) {
- Z3_ast_vector r = LIB.Z3_ast_vector_translate(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 static string Z3_ast_vector_to_string(Z3_context a0, Z3_ast_vector a1) {
- IntPtr r = LIB.Z3_ast_vector_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_ast_map Z3_mk_ast_map(Z3_context a0) {
- Z3_ast_map r = LIB.Z3_mk_ast_map(a0);
- 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 void Z3_ast_map_inc_ref(Z3_context a0, Z3_ast_map a1) {
- LIB.Z3_ast_map_inc_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 static void Z3_ast_map_dec_ref(Z3_context a0, Z3_ast_map a1) {
- LIB.Z3_ast_map_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 static int Z3_ast_map_contains(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
- int r = LIB.Z3_ast_map_contains(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 static Z3_ast Z3_ast_map_find(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
- Z3_ast r = LIB.Z3_ast_map_find(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 static void Z3_ast_map_insert(Z3_context a0, Z3_ast_map a1, Z3_ast a2, Z3_ast a3) {
- LIB.Z3_ast_map_insert(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_ast_map_erase(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
- LIB.Z3_ast_map_erase(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 static uint Z3_ast_map_size(Z3_context a0, Z3_ast_map a1) {
- uint r = LIB.Z3_ast_map_size(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 r;
- }
-
- public static void Z3_ast_map_reset(Z3_context a0, Z3_ast_map a1) {
- LIB.Z3_ast_map_reset(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 static Z3_ast_vector Z3_ast_map_keys(Z3_context a0, Z3_ast_map a1) {
- Z3_ast_vector r = LIB.Z3_ast_map_keys(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 r;
- }
-
- public static string Z3_ast_map_to_string(Z3_context a0, Z3_ast_map a1) {
- IntPtr r = LIB.Z3_ast_map_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 int Z3_open_log(string a0) {
- int r = LIB.Z3_open_log(a0);
- return r;
- }
-
- public static void Z3_append_log(string a0) {
- LIB.Z3_append_log(a0);
- }
-
- public static void Z3_close_log() {
- LIB.Z3_close_log();
- }
-
- }
-
-}
-
+// Automatically generated file, generator: api.py
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Runtime.InteropServices;
+
+#pragma warning disable 1591
+
+namespace Microsoft.Z3
+{
+ using Z3_config = System.IntPtr;
+ using Z3_context = System.IntPtr;
+ using Z3_ast = System.IntPtr;
+ using Z3_app = System.IntPtr;
+ using Z3_sort = System.IntPtr;
+ using Z3_func_decl = System.IntPtr;
+ using Z3_pattern = System.IntPtr;
+ using Z3_model = System.IntPtr;
+ using Z3_literals = System.IntPtr;
+ using Z3_constructor = System.IntPtr;
+ using Z3_constructor_list = System.IntPtr;
+ using Z3_theory = System.IntPtr;
+ using Z3_theory_data = System.IntPtr;
+ using Z3_solver = System.IntPtr;
+ using Z3_goal = System.IntPtr;
+ using Z3_tactic = System.IntPtr;
+ using Z3_params = System.IntPtr;
+ using Z3_probe = System.IntPtr;
+ using Z3_stats = System.IntPtr;
+ using Z3_ast_vector = System.IntPtr;
+ using Z3_ast_map = System.IntPtr;
+ using Z3_apply_result = System.IntPtr;
+ using Z3_func_interp = System.IntPtr;
+ using Z3_func_entry = System.IntPtr;
+ using Z3_fixedpoint = System.IntPtr;
+ using Z3_param_descrs = System.IntPtr;
+
+ public class Native
+ {
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Z3_error_handler(Z3_context c, Z3_error_code e);
+
+ public unsafe class LIB
+ {
+ #if DEBUG
+ const string Z3_DLL_NAME = "z3_dbg.dll";
+ #else
+ const string Z3_DLL_NAME = "z3.dll";
+ #endif
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_config Z3_mk_config();
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_config(Z3_config a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_set_param_value(Z3_config a0, string a1, string a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_context Z3_mk_context(Z3_config a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_context Z3_mk_context_rc(Z3_config a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_context(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_inc_ref(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_dec_ref(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_update_param_value(Z3_context a0, string a1, string a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_param_value(Z3_context a0, string a1, out IntPtr a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_interrupt(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_params Z3_mk_params(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_inc_ref(Z3_context a0, Z3_params a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_dec_ref(Z3_context a0, Z3_params a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_set_bool(Z3_context a0, Z3_params a1, IntPtr a2, int a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_set_uint(Z3_context a0, Z3_params a1, IntPtr a2, uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_set_double(Z3_context a0, Z3_params a1, IntPtr a2, double a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_set_symbol(Z3_context a0, Z3_params a1, IntPtr a2, IntPtr a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_params_to_string(Z3_context a0, Z3_params a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_params_validate(Z3_context a0, Z3_params a1, Z3_param_descrs a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_param_descrs_inc_ref(Z3_context a0, Z3_param_descrs a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_param_descrs_dec_ref(Z3_context a0, Z3_param_descrs a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_param_descrs_get_kind(Z3_context a0, Z3_param_descrs a1, IntPtr a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_param_descrs_size(Z3_context a0, Z3_param_descrs a1);
+
+ [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 IntPtr Z3_mk_int_symbol(Z3_context a0, int a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_mk_string_symbol(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_uninterpreted_sort(Z3_context a0, IntPtr a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_bool_sort(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_int_sort(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_real_sort(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_bv_sort(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_finite_domain_sort(Z3_context a0, IntPtr a1, UInt64 a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_array_sort(Z3_context a0, Z3_sort a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_tuple_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, [In, Out] ref Z3_func_decl a5, [Out] Z3_func_decl[] a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_enumeration_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [Out] Z3_func_decl[] a4, [Out] Z3_func_decl[] a5);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_list_sort(Z3_context a0, IntPtr a1, Z3_sort a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [In, Out] ref Z3_func_decl a5, [In, Out] ref Z3_func_decl a6, [In, Out] ref Z3_func_decl a7, [In, Out] ref Z3_func_decl a8);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_constructor Z3_mk_constructor(Z3_context a0, IntPtr a1, IntPtr a2, uint a3, [In] IntPtr[] a4, [In] Z3_sort[] a5, [In] uint[] a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_constructor(Z3_context a0, Z3_constructor a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_datatype(Z3_context a0, IntPtr a1, uint a2, [In, Out] Z3_constructor[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_constructor_list Z3_mk_constructor_list(Z3_context a0, uint a1, [In] Z3_constructor[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_constructor_list(Z3_context a0, Z3_constructor_list a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_mk_datatypes(Z3_context a0, uint a1, [In] IntPtr[] a2, [Out] Z3_sort[] a3, [In, Out] Z3_constructor_list[] a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_query_constructor(Z3_context a0, Z3_constructor a1, uint a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [Out] Z3_func_decl[] a5);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_mk_func_decl(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_app(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_const(Z3_context a0, IntPtr a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_mk_fresh_func_decl(Z3_context a0, string a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_fresh_const(Z3_context a0, string a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_true(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_false(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_eq(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_distinct(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_not(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_ite(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_iff(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_implies(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_xor(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_and(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_or(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_add(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_mul(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_sub(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_unary_minus(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_div(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_mod(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_rem(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_power(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_lt(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_le(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_gt(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_ge(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_int2real(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_real2int(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_is_int(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvnot(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvredand(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvredor(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvand(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvor(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvxor(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvnand(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvnor(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvxnor(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvneg(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvadd(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsub(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvmul(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvudiv(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsdiv(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvurem(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsrem(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsmod(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvult(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvslt(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvule(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsle(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvuge(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsge(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvugt(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsgt(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_concat(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_extract(Z3_context a0, uint a1, uint a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_sign_ext(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_zero_ext(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_repeat(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvshl(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvlshr(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvashr(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_rotate_left(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_rotate_right(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_ext_rotate_left(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_ext_rotate_right(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_int2bv(Z3_context a0, uint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bv2int(Z3_context a0, Z3_ast a1, int a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvadd_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvadd_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsub_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsub_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvsdiv_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvneg_no_overflow(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvmul_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bvmul_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_select(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_store(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_const_array(Z3_context a0, Z3_sort a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_map(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_array_default(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_mk_set_sort(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_empty_set(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_full_set(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_add(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_del(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_union(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_intersect(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_difference(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_complement(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_member(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_set_subset(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_numeral(Z3_context a0, string a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_real(Z3_context a0, int a1, int a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_int(Z3_context a0, int a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_unsigned_int(Z3_context a0, uint a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_int64(Z3_context a0, Int64 a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_unsigned_int64(Z3_context a0, UInt64 a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_pattern Z3_mk_pattern(Z3_context a0, uint a1, [In] Z3_ast[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_bound(Z3_context a0, uint a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_forall(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_exists(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_quantifier(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_pattern[] a4, uint a5, [In] Z3_sort[] a6, [In] IntPtr[] a7, Z3_ast a8);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_quantifier_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_pattern[] a6, uint a7, [In] Z3_ast[] a8, uint a9, [In] Z3_sort[] a10, [In] IntPtr[] a11, Z3_ast a12);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_forall_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_exists_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_quantifier_const(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_app[] a4, uint a5, [In] Z3_pattern[] a6, Z3_ast a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_quantifier_const_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_app[] a6, uint a7, [In] Z3_pattern[] a8, uint a9, [In] Z3_ast[] a10, Z3_ast a11);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_symbol_kind(Z3_context a0, IntPtr a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_symbol_int(Z3_context a0, IntPtr a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_symbol_string(Z3_context a0, IntPtr a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_sort_name(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_sort_id(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_sort_to_ast(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_eq_sort(Z3_context a0, Z3_sort a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_sort_kind(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_bv_sort_size(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_finite_domain_sort_size(Z3_context a0, Z3_sort a1, [In, Out] ref UInt64 a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_array_sort_domain(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_array_sort_range(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_tuple_sort_mk_decl(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_tuple_sort_num_fields(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_tuple_sort_field_decl(Z3_context a0, Z3_sort a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_datatype_sort_num_constructors(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_datatype_sort_constructor(Z3_context a0, Z3_sort a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_datatype_sort_recognizer(Z3_context a0, Z3_sort a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_datatype_sort_constructor_accessor(Z3_context a0, Z3_sort a1, uint a2, uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_relation_arity(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_relation_column(Z3_context a0, Z3_sort a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_func_decl_to_ast(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_eq_func_decl(Z3_context a0, Z3_func_decl a1, Z3_func_decl a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_func_decl_id(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_decl_name(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_decl_kind(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_domain_size(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_arity(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_domain(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_range(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_decl_num_parameters(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_decl_parameter_kind(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_decl_int_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static double Z3_get_decl_double_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_decl_symbol_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_decl_sort_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_decl_ast_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_decl_func_decl_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_decl_rational_parameter(Z3_context a0, Z3_func_decl a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_app_to_ast(Z3_context a0, Z3_app a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_app_decl(Z3_context a0, Z3_app a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_app_num_args(Z3_context a0, Z3_app a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_app_arg(Z3_context a0, Z3_app a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_eq_ast(Z3_context a0, Z3_ast a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_ast_id(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_ast_hash(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_sort(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_well_sorted(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_bool_value(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_ast_kind(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_app(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_numeral_ast(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_algebraic_number(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_app Z3_to_app(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_to_func_decl(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_numeral_string(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_numeral_decimal_string(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_numerator(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_denominator(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_small(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_int(Z3_context a0, Z3_ast a1, [In, Out] ref int a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_uint(Z3_context a0, Z3_ast a1, [In, Out] ref uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_uint64(Z3_context a0, Z3_ast a1, [In, Out] ref UInt64 a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_get_numeral_rational_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_algebraic_number_lower(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_algebraic_number_upper(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_pattern_to_ast(Z3_context a0, Z3_pattern a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_pattern_num_terms(Z3_context a0, Z3_pattern a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_pattern(Z3_context a0, Z3_pattern a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_index_value(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_quantifier_forall(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_quantifier_weight(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_quantifier_num_patterns(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_pattern Z3_get_quantifier_pattern_ast(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_quantifier_num_no_patterns(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_quantifier_no_pattern_ast(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_quantifier_num_bound(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_quantifier_bound_name(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_quantifier_bound_sort(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_quantifier_body(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_simplify(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_simplify_ex(Z3_context a0, Z3_ast a1, Z3_params a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_simplify_get_help(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_param_descrs Z3_simplify_get_param_descrs(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_update_term(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_substitute(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3, [In] Z3_ast[] a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_substitute_vars(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_translate(Z3_context a0, Z3_ast a1, Z3_context a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_model_inc_ref(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_model_dec_ref(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_model_eval(Z3_context a0, Z3_model a1, Z3_ast a2, int a3, [In, Out] ref Z3_ast a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_model_get_const_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_interp Z3_model_get_func_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_model_get_num_consts(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_model_get_const_decl(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_model_get_num_funcs(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_model_get_func_decl(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_model_get_num_sorts(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_model_get_sort(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_model_get_sort_universe(Z3_context a0, Z3_model a1, Z3_sort a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_as_array(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_as_array_func_decl(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_func_interp_inc_ref(Z3_context a0, Z3_func_interp a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_func_interp_dec_ref(Z3_context a0, Z3_func_interp a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_func_interp_get_num_entries(Z3_context a0, Z3_func_interp a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_entry Z3_func_interp_get_entry(Z3_context a0, Z3_func_interp a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_func_interp_get_else(Z3_context a0, Z3_func_interp a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_func_interp_get_arity(Z3_context a0, Z3_func_interp a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_func_entry_inc_ref(Z3_context a0, Z3_func_entry a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_func_entry_dec_ref(Z3_context a0, Z3_func_entry a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_func_entry_get_value(Z3_context a0, Z3_func_entry a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_func_entry_get_num_args(Z3_context a0, Z3_func_entry a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_func_entry_get_arg(Z3_context a0, Z3_func_entry a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_toggle_warning_messages(int a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_set_ast_print_mode(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_ast_to_string(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_pattern_to_string(Z3_context a0, Z3_pattern a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_sort_to_string(Z3_context a0, Z3_sort a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_func_decl_to_string(Z3_context a0, Z3_func_decl a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_model_to_string(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_benchmark_to_smtlib_string(Z3_context a0, string a1, string a2, string a3, string a4, uint a5, [In] Z3_ast[] a6, Z3_ast a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_parse_smtlib2_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_parse_smtlib2_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_parse_smtlib_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_parse_smtlib_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_smtlib_num_formulas(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_smtlib_formula(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_smtlib_num_assumptions(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_smtlib_assumption(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_smtlib_num_decls(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_smtlib_decl(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_smtlib_num_sorts(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_sort Z3_get_smtlib_sort(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_smtlib_error(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_parse_z3_string(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_parse_z3_file(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_error_code(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_set_error(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_error_msg(uint a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_error_msg_ex(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_get_version([In, Out] ref uint a0, [In, Out] ref uint a1, [In, Out] ref uint a2, [In, Out] ref uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_reset_memory();
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_fixedpoint Z3_mk_fixedpoint(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_inc_ref(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_dec_ref(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_add_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_add_fact(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] uint[] a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_assert(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_fixedpoint_query(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_fixedpoint_query_relations(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_func_decl[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_fixedpoint_get_answer(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_fixedpoint_get_reason_unknown(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_update_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_fixedpoint_get_num_levels(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_fixedpoint_get_cover_delta(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_add_cover(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3, Z3_ast a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_stats Z3_fixedpoint_get_statistics(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_register_relation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_set_predicate_representation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] IntPtr[] a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_fixedpoint_simplify_rules(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3, uint a4, [In] Z3_func_decl[] a5);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_set_params(Z3_context a0, Z3_fixedpoint a1, Z3_params a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_fixedpoint_get_help(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_param_descrs Z3_fixedpoint_get_param_descrs(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_fixedpoint_to_string(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_push(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_fixedpoint_pop(Z3_context a0, Z3_fixedpoint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_mk_ast_vector(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_vector_inc_ref(Z3_context a0, Z3_ast_vector a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_vector_dec_ref(Z3_context a0, Z3_ast_vector a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_ast_vector_size(Z3_context a0, Z3_ast_vector a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_ast_vector_get(Z3_context a0, Z3_ast_vector a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_vector_set(Z3_context a0, Z3_ast_vector a1, uint a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_vector_resize(Z3_context a0, Z3_ast_vector a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_vector_push(Z3_context a0, Z3_ast_vector a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_ast_vector_translate(Z3_context a0, Z3_ast_vector a1, Z3_context a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_ast_vector_to_string(Z3_context a0, Z3_ast_vector a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_map Z3_mk_ast_map(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_map_inc_ref(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_map_dec_ref(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_ast_map_contains(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_ast_map_find(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_map_insert(Z3_context a0, Z3_ast_map a1, Z3_ast a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_map_erase(Z3_context a0, Z3_ast_map a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_ast_map_reset(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_ast_map_size(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_ast_map_keys(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_ast_map_to_string(Z3_context a0, Z3_ast_map a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_goal Z3_mk_goal(Z3_context a0, int a1, int a2, int a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_goal_inc_ref(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_goal_dec_ref(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_goal_precision(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_goal_assert(Z3_context a0, Z3_goal a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_goal_inconsistent(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_goal_depth(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_goal_reset(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_goal_size(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_goal_formula(Z3_context a0, Z3_goal a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_goal_num_exprs(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_goal_is_decided_sat(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_goal_is_decided_unsat(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_goal Z3_goal_translate(Z3_context a0, Z3_goal a1, Z3_context a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_goal_to_string(Z3_context a0, Z3_goal a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_mk_tactic(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_tactic_inc_ref(Z3_context a0, Z3_tactic a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_tactic_dec_ref(Z3_context a0, Z3_tactic a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_mk_probe(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_probe_inc_ref(Z3_context a0, Z3_probe a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_probe_dec_ref(Z3_context a0, Z3_probe a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_or_else(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_par_or(Z3_context a0, uint a1, [In] Z3_tactic[] a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_par_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_try_for(Z3_context a0, Z3_tactic a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_when(Z3_context a0, Z3_probe a1, Z3_tactic a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_cond(Z3_context a0, Z3_probe a1, Z3_tactic a2, Z3_tactic a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_repeat(Z3_context a0, Z3_tactic a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_skip(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_fail(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_fail_if(Z3_context a0, Z3_probe a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_fail_if_not_decided(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_tactic Z3_tactic_using_params(Z3_context a0, Z3_tactic a1, Z3_params a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_const(Z3_context a0, double a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_lt(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_gt(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_le(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_ge(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_eq(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_and(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_or(Z3_context a0, Z3_probe a1, Z3_probe a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_probe Z3_probe_not(Z3_context a0, Z3_probe a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_num_tactics(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_tactic_name(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_num_probes(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_probe_name(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_tactic_get_help(Z3_context a0, Z3_tactic a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_param_descrs Z3_tactic_get_param_descrs(Z3_context a0, Z3_tactic a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_tactic_get_descr(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_probe_get_descr(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static double Z3_probe_apply(Z3_context a0, Z3_probe a1, Z3_goal a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_apply_result Z3_tactic_apply(Z3_context a0, Z3_tactic a1, Z3_goal a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_apply_result Z3_tactic_apply_ex(Z3_context a0, Z3_tactic a1, Z3_goal a2, Z3_params a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_apply_result_inc_ref(Z3_context a0, Z3_apply_result a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_apply_result_dec_ref(Z3_context a0, Z3_apply_result a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_apply_result_to_string(Z3_context a0, Z3_apply_result a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_apply_result_get_num_subgoals(Z3_context a0, Z3_apply_result a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_goal Z3_apply_result_get_subgoal(Z3_context a0, Z3_apply_result a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_model Z3_apply_result_convert_model(Z3_context a0, Z3_apply_result a1, uint a2, Z3_model a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_solver Z3_mk_solver(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_solver Z3_mk_simple_solver(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_solver Z3_mk_solver_for_logic(Z3_context a0, IntPtr a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_solver Z3_mk_solver_from_tactic(Z3_context a0, Z3_tactic a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_solver_get_help(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_param_descrs Z3_solver_get_param_descrs(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_set_params(Z3_context a0, Z3_solver a1, Z3_params a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_inc_ref(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_dec_ref(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_push(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_pop(Z3_context a0, Z3_solver a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_reset(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_solver_get_num_scopes(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_solver_assert(Z3_context a0, Z3_solver a1, Z3_ast a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_solver_get_assertions(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_solver_check(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_solver_check_assumptions(Z3_context a0, Z3_solver a1, uint a2, [In] Z3_ast[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_model Z3_solver_get_model(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_solver_get_proof(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast_vector Z3_solver_get_unsat_core(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_solver_get_reason_unknown(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_stats Z3_solver_get_statistics(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_solver_to_string(Z3_context a0, Z3_solver a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_stats_to_string(Z3_context a0, Z3_stats a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_stats_inc_ref(Z3_context a0, Z3_stats a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_stats_dec_ref(Z3_context a0, Z3_stats a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_stats_size(Z3_context a0, Z3_stats a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_stats_get_key(Z3_context a0, Z3_stats a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_stats_is_uint(Z3_context a0, Z3_stats a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_stats_is_double(Z3_context a0, Z3_stats a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_stats_get_uint_value(Z3_context a0, Z3_stats a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static double Z3_stats_get_double_value(Z3_context a0, Z3_stats a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_mk_injective_function(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_set_logic(Z3_context a0, string a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_push(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_pop(Z3_context a0, uint a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_num_scopes(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_persist_ast(Z3_context a0, Z3_ast a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_assert_cnstr(Z3_context a0, Z3_ast a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_check_and_get_model(Z3_context a0, [In, Out] ref Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_check(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_check_assumptions(Z3_context a0, uint a1, [In] Z3_ast[] a2, [In, Out] ref Z3_model a3, [In, Out] ref Z3_ast a4, [In, Out] ref uint a5, [Out] Z3_ast[] a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_implied_equalities(Z3_context a0, uint a1, [In] Z3_ast[] a2, [Out] uint[] a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_model(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_soft_check_cancel(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_search_failure(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_mk_label(Z3_context a0, IntPtr a1, int a2, Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_literals Z3_get_relevant_labels(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_literals Z3_get_relevant_literals(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_literals Z3_get_guessed_literals(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_del_literals(Z3_context a0, Z3_literals a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_num_literals(Z3_context a0, Z3_literals a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_get_label_symbol(Z3_context a0, Z3_literals a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_literal(Z3_context a0, Z3_literals a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_disable_literal(Z3_context a0, Z3_literals a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_block_literals(Z3_context a0, Z3_literals a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_model_num_constants(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_model_constant(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_model_num_funcs(Z3_context a0, Z3_model a1);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_func_decl Z3_get_model_func_decl(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_eval_func_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, [In, Out] ref Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_is_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static void Z3_get_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, uint a3, [Out] Z3_ast[] a4, [Out] Z3_ast[] a5, [In, Out] ref Z3_ast a6);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_model_func_else(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_model_func_num_entries(Z3_context a0, Z3_model a1, uint a2);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static uint Z3_get_model_func_entry_num_args(Z3_context a0, Z3_model a1, uint a2, uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_model_func_entry_arg(Z3_context a0, Z3_model a1, uint a2, uint a3, uint a4);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_model_func_entry_value(Z3_context a0, Z3_model a1, uint a2, uint a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_eval(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref Z3_ast a3);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static int Z3_eval_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, uint a3, [In] Z3_ast[] a4, [In, Out] ref Z3_ast a5);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_context_to_string(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static IntPtr Z3_statistics_to_string(Z3_context a0);
+
+ [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
+ public extern static Z3_ast Z3_get_context_assignment(Z3_context a0);
+
+ }
+
+ public static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1) {
+ LIB.Z3_set_error_handler(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 static Z3_config Z3_mk_config() {
+ Z3_config r = LIB.Z3_mk_config();
+ return r;
+ }
+
+ public static void Z3_del_config(Z3_config a0) {
+ LIB.Z3_del_config(a0);
+ }
+
+ public static void Z3_set_param_value(Z3_config a0, string a1, string a2) {
+ LIB.Z3_set_param_value(a0, a1, a2);
+ }
+
+ public static Z3_context Z3_mk_context(Z3_config a0) {
+ Z3_context r = LIB.Z3_mk_context(a0);
+ return r;
+ }
+
+ public static Z3_context Z3_mk_context_rc(Z3_config a0) {
+ Z3_context r = LIB.Z3_mk_context_rc(a0);
+ return r;
+ }
+
+ public static void Z3_del_context(Z3_context a0) {
+ LIB.Z3_del_context(a0);
+ }
+
+ public static void Z3_inc_ref(Z3_context a0, Z3_ast a1) {
+ LIB.Z3_inc_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 static void Z3_dec_ref(Z3_context a0, Z3_ast a1) {
+ LIB.Z3_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 static void Z3_update_param_value(Z3_context a0, string a1, string a2) {
+ LIB.Z3_update_param_value(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 static int Z3_get_param_value(Z3_context a0, string a1, out IntPtr a2) {
+ int r = LIB.Z3_get_param_value(a0, a1, out 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 static void Z3_interrupt(Z3_context a0) {
+ LIB.Z3_interrupt(a0);
+ 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 Z3_params Z3_mk_params(Z3_context a0) {
+ Z3_params r = LIB.Z3_mk_params(a0);
+ 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 void Z3_params_inc_ref(Z3_context a0, Z3_params a1) {
+ LIB.Z3_params_inc_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 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 static void Z3_params_set_bool(Z3_context a0, Z3_params a1, IntPtr a2, int a3) {
+ LIB.Z3_params_set_bool(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_set_uint(Z3_context a0, Z3_params a1, IntPtr a2, uint a3) {
+ LIB.Z3_params_set_uint(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_set_double(Z3_context a0, Z3_params a1, IntPtr a2, double a3) {
+ LIB.Z3_params_set_double(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_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 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 void Z3_params_validate(Z3_context a0, Z3_params a1, Z3_param_descrs a2) {
+ LIB.Z3_params_validate(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 static void Z3_param_descrs_inc_ref(Z3_context a0, Z3_param_descrs a1) {
+ LIB.Z3_param_descrs_inc_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 static void Z3_param_descrs_dec_ref(Z3_context a0, Z3_param_descrs a1) {
+ LIB.Z3_param_descrs_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 static uint Z3_param_descrs_get_kind(Z3_context a0, Z3_param_descrs a1, IntPtr a2) {
+ uint r = LIB.Z3_param_descrs_get_kind(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 static uint Z3_param_descrs_size(Z3_context a0, Z3_param_descrs a1) {
+ uint r = LIB.Z3_param_descrs_size(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 r;
+ }
+
+ public static IntPtr Z3_param_descrs_get_name(Z3_context a0, Z3_param_descrs a1, uint a2) {
+ IntPtr r = LIB.Z3_param_descrs_get_name(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 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 IntPtr Z3_mk_int_symbol(Z3_context a0, int a1) {
+ IntPtr r = LIB.Z3_mk_int_symbol(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 r;
+ }
+
+ public static IntPtr Z3_mk_string_symbol(Z3_context a0, string a1) {
+ IntPtr r = LIB.Z3_mk_string_symbol(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 r;
+ }
+
+ public static Z3_sort Z3_mk_uninterpreted_sort(Z3_context a0, IntPtr a1) {
+ Z3_sort r = LIB.Z3_mk_uninterpreted_sort(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 r;
+ }
+
+ public static Z3_sort Z3_mk_bool_sort(Z3_context a0) {
+ Z3_sort r = LIB.Z3_mk_bool_sort(a0);
+ 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_sort Z3_mk_int_sort(Z3_context a0) {
+ Z3_sort r = LIB.Z3_mk_int_sort(a0);
+ 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_sort Z3_mk_real_sort(Z3_context a0) {
+ Z3_sort r = LIB.Z3_mk_real_sort(a0);
+ 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_sort Z3_mk_bv_sort(Z3_context a0, uint a1) {
+ Z3_sort r = LIB.Z3_mk_bv_sort(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 r;
+ }
+
+ public static Z3_sort Z3_mk_finite_domain_sort(Z3_context a0, IntPtr a1, UInt64 a2) {
+ Z3_sort r = LIB.Z3_mk_finite_domain_sort(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 static Z3_sort Z3_mk_array_sort(Z3_context a0, Z3_sort a1, Z3_sort a2) {
+ Z3_sort r = LIB.Z3_mk_array_sort(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 static Z3_sort Z3_mk_tuple_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, [In, Out] ref Z3_func_decl a5, [Out] Z3_func_decl[] a6) {
+ Z3_sort r = LIB.Z3_mk_tuple_sort(a0, a1, a2, a3, a4, ref a5, a6);
+ 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_sort Z3_mk_enumeration_sort(Z3_context a0, IntPtr a1, uint a2, [In] IntPtr[] a3, [Out] Z3_func_decl[] a4, [Out] Z3_func_decl[] a5) {
+ Z3_sort r = LIB.Z3_mk_enumeration_sort(a0, a1, a2, a3, a4, a5);
+ 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_sort Z3_mk_list_sort(Z3_context a0, IntPtr a1, Z3_sort a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [In, Out] ref Z3_func_decl a5, [In, Out] ref Z3_func_decl a6, [In, Out] ref Z3_func_decl a7, [In, Out] ref Z3_func_decl a8) {
+ Z3_sort r = LIB.Z3_mk_list_sort(a0, a1, a2, ref a3, ref a4, ref a5, ref a6, ref a7, ref a8);
+ 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_constructor Z3_mk_constructor(Z3_context a0, IntPtr a1, IntPtr a2, uint a3, [In] IntPtr[] a4, [In] Z3_sort[] a5, [In] uint[] a6) {
+ Z3_constructor r = LIB.Z3_mk_constructor(a0, a1, a2, a3, a4, a5, a6);
+ 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 void Z3_del_constructor(Z3_context a0, Z3_constructor a1) {
+ LIB.Z3_del_constructor(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 static Z3_sort Z3_mk_datatype(Z3_context a0, IntPtr a1, uint a2, [In, Out] Z3_constructor[] a3) {
+ Z3_sort r = LIB.Z3_mk_datatype(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_constructor_list Z3_mk_constructor_list(Z3_context a0, uint a1, [In] Z3_constructor[] a2) {
+ Z3_constructor_list r = LIB.Z3_mk_constructor_list(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 static void Z3_del_constructor_list(Z3_context a0, Z3_constructor_list a1) {
+ LIB.Z3_del_constructor_list(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 static void Z3_mk_datatypes(Z3_context a0, uint a1, [In] IntPtr[] a2, [Out] Z3_sort[] a3, [In, Out] Z3_constructor_list[] a4) {
+ LIB.Z3_mk_datatypes(a0, a1, a2, a3, 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)));
+ }
+
+ public static void Z3_query_constructor(Z3_context a0, Z3_constructor a1, uint a2, [In, Out] ref Z3_func_decl a3, [In, Out] ref Z3_func_decl a4, [Out] Z3_func_decl[] a5) {
+ LIB.Z3_query_constructor(a0, a1, a2, ref a3, ref a4, a5);
+ 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 Z3_func_decl Z3_mk_func_decl(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
+ Z3_func_decl r = LIB.Z3_mk_func_decl(a0, a1, a2, a3, 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 static Z3_ast Z3_mk_app(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3) {
+ Z3_ast r = LIB.Z3_mk_app(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_ast Z3_mk_const(Z3_context a0, IntPtr a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_const(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 static Z3_func_decl Z3_mk_fresh_func_decl(Z3_context a0, string a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
+ Z3_func_decl r = LIB.Z3_mk_fresh_func_decl(a0, a1, a2, a3, 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 static Z3_ast Z3_mk_fresh_const(Z3_context a0, string a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_fresh_const(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 static Z3_ast Z3_mk_true(Z3_context a0) {
+ Z3_ast r = LIB.Z3_mk_true(a0);
+ 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_ast Z3_mk_false(Z3_context a0) {
+ Z3_ast r = LIB.Z3_mk_false(a0);
+ 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_ast Z3_mk_eq(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_eq(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 static Z3_ast Z3_mk_distinct(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_distinct(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 static Z3_ast Z3_mk_not(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_not(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 r;
+ }
+
+ public static Z3_ast Z3_mk_ite(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3) {
+ Z3_ast r = LIB.Z3_mk_ite(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_ast Z3_mk_iff(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_iff(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 static Z3_ast Z3_mk_implies(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_implies(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 static Z3_ast Z3_mk_xor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_xor(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 static Z3_ast Z3_mk_and(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_and(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 static Z3_ast Z3_mk_or(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_or(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 static Z3_ast Z3_mk_add(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_add(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 static Z3_ast Z3_mk_mul(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_mul(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 static Z3_ast Z3_mk_sub(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_sub(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 static Z3_ast Z3_mk_unary_minus(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_unary_minus(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 r;
+ }
+
+ public static Z3_ast Z3_mk_div(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_div(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 static Z3_ast Z3_mk_mod(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_mod(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 static Z3_ast Z3_mk_rem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_rem(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 static Z3_ast Z3_mk_power(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_power(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 static Z3_ast Z3_mk_lt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_lt(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 static Z3_ast Z3_mk_le(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_le(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 static Z3_ast Z3_mk_gt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_gt(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 static Z3_ast Z3_mk_ge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_ge(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 static Z3_ast Z3_mk_int2real(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_int2real(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 r;
+ }
+
+ public static Z3_ast Z3_mk_real2int(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_real2int(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 r;
+ }
+
+ public static Z3_ast Z3_mk_is_int(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_is_int(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvnot(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_bvnot(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvredand(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_bvredand(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvredor(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_bvredor(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvand(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvand(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 static Z3_ast Z3_mk_bvor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvor(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 static Z3_ast Z3_mk_bvxor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvxor(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 static Z3_ast Z3_mk_bvnand(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvnand(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 static Z3_ast Z3_mk_bvnor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvnor(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 static Z3_ast Z3_mk_bvxnor(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvxnor(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 static Z3_ast Z3_mk_bvneg(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_bvneg(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvadd(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvadd(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 static Z3_ast Z3_mk_bvsub(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsub(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 static Z3_ast Z3_mk_bvmul(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvmul(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 static Z3_ast Z3_mk_bvudiv(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvudiv(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 static Z3_ast Z3_mk_bvsdiv(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsdiv(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 static Z3_ast Z3_mk_bvurem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvurem(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 static Z3_ast Z3_mk_bvsrem(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsrem(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 static Z3_ast Z3_mk_bvsmod(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsmod(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 static Z3_ast Z3_mk_bvult(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvult(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 static Z3_ast Z3_mk_bvslt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvslt(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 static Z3_ast Z3_mk_bvule(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvule(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 static Z3_ast Z3_mk_bvsle(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsle(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 static Z3_ast Z3_mk_bvuge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvuge(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 static Z3_ast Z3_mk_bvsge(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsge(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 static Z3_ast Z3_mk_bvugt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvugt(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 static Z3_ast Z3_mk_bvsgt(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsgt(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 static Z3_ast Z3_mk_concat(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_concat(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 static Z3_ast Z3_mk_extract(Z3_context a0, uint a1, uint a2, Z3_ast a3) {
+ Z3_ast r = LIB.Z3_mk_extract(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_ast Z3_mk_sign_ext(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_sign_ext(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 static Z3_ast Z3_mk_zero_ext(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_zero_ext(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 static Z3_ast Z3_mk_repeat(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_repeat(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 static Z3_ast Z3_mk_bvshl(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvshl(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 static Z3_ast Z3_mk_bvlshr(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvlshr(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 static Z3_ast Z3_mk_bvashr(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvashr(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 static Z3_ast Z3_mk_rotate_left(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_rotate_left(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 static Z3_ast Z3_mk_rotate_right(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_rotate_right(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 static Z3_ast Z3_mk_ext_rotate_left(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_ext_rotate_left(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 static Z3_ast Z3_mk_ext_rotate_right(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_ext_rotate_right(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 static Z3_ast Z3_mk_int2bv(Z3_context a0, uint a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_int2bv(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 static Z3_ast Z3_mk_bv2int(Z3_context a0, Z3_ast a1, int a2) {
+ Z3_ast r = LIB.Z3_mk_bv2int(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 static Z3_ast Z3_mk_bvadd_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
+ Z3_ast r = LIB.Z3_mk_bvadd_no_overflow(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_ast Z3_mk_bvadd_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvadd_no_underflow(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 static Z3_ast Z3_mk_bvsub_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsub_no_overflow(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 static Z3_ast Z3_mk_bvsub_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
+ Z3_ast r = LIB.Z3_mk_bvsub_no_underflow(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_ast Z3_mk_bvsdiv_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvsdiv_no_overflow(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 static Z3_ast Z3_mk_bvneg_no_overflow(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_bvneg_no_overflow(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 r;
+ }
+
+ public static Z3_ast Z3_mk_bvmul_no_overflow(Z3_context a0, Z3_ast a1, Z3_ast a2, int a3) {
+ Z3_ast r = LIB.Z3_mk_bvmul_no_overflow(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_ast Z3_mk_bvmul_no_underflow(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_bvmul_no_underflow(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 static Z3_ast Z3_mk_select(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_select(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 static Z3_ast Z3_mk_store(Z3_context a0, Z3_ast a1, Z3_ast a2, Z3_ast a3) {
+ Z3_ast r = LIB.Z3_mk_store(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_ast Z3_mk_const_array(Z3_context a0, Z3_sort a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_const_array(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 static Z3_ast Z3_mk_map(Z3_context a0, Z3_func_decl a1, uint a2, [In] Z3_ast[] a3) {
+ Z3_ast r = LIB.Z3_mk_map(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_ast Z3_mk_array_default(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_array_default(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 r;
+ }
+
+ public static Z3_sort Z3_mk_set_sort(Z3_context a0, Z3_sort a1) {
+ Z3_sort r = LIB.Z3_mk_set_sort(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 r;
+ }
+
+ public static Z3_ast Z3_mk_empty_set(Z3_context a0, Z3_sort a1) {
+ Z3_ast r = LIB.Z3_mk_empty_set(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 r;
+ }
+
+ public static Z3_ast Z3_mk_full_set(Z3_context a0, Z3_sort a1) {
+ Z3_ast r = LIB.Z3_mk_full_set(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 r;
+ }
+
+ public static Z3_ast Z3_mk_set_add(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_set_add(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 static Z3_ast Z3_mk_set_del(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_set_del(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 static Z3_ast Z3_mk_set_union(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_set_union(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 static Z3_ast Z3_mk_set_intersect(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_ast r = LIB.Z3_mk_set_intersect(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 static Z3_ast Z3_mk_set_difference(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_set_difference(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 static Z3_ast Z3_mk_set_complement(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_mk_set_complement(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 r;
+ }
+
+ public static Z3_ast Z3_mk_set_member(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_set_member(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 static Z3_ast Z3_mk_set_subset(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_mk_set_subset(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 static Z3_ast Z3_mk_numeral(Z3_context a0, string a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_numeral(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 static Z3_ast Z3_mk_real(Z3_context a0, int a1, int a2) {
+ Z3_ast r = LIB.Z3_mk_real(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 static Z3_ast Z3_mk_int(Z3_context a0, int a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_int(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 static Z3_ast Z3_mk_unsigned_int(Z3_context a0, uint a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_unsigned_int(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 static Z3_ast Z3_mk_int64(Z3_context a0, Int64 a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_int64(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 static Z3_ast Z3_mk_unsigned_int64(Z3_context a0, UInt64 a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_unsigned_int64(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 static Z3_pattern Z3_mk_pattern(Z3_context a0, uint a1, [In] Z3_ast[] a2) {
+ Z3_pattern r = LIB.Z3_mk_pattern(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 static Z3_ast Z3_mk_bound(Z3_context a0, uint a1, Z3_sort a2) {
+ Z3_ast r = LIB.Z3_mk_bound(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 static Z3_ast Z3_mk_forall(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7) {
+ Z3_ast r = LIB.Z3_mk_forall(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_ast Z3_mk_exists(Z3_context a0, uint a1, uint a2, [In] Z3_pattern[] a3, uint a4, [In] Z3_sort[] a5, [In] IntPtr[] a6, Z3_ast a7) {
+ Z3_ast r = LIB.Z3_mk_exists(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_ast Z3_mk_quantifier(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_pattern[] a4, uint a5, [In] Z3_sort[] a6, [In] IntPtr[] a7, Z3_ast a8) {
+ Z3_ast r = LIB.Z3_mk_quantifier(a0, a1, a2, a3, a4, a5, a6, a7, a8);
+ 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_ast Z3_mk_quantifier_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_pattern[] a6, uint a7, [In] Z3_ast[] a8, uint a9, [In] Z3_sort[] a10, [In] IntPtr[] a11, Z3_ast a12) {
+ Z3_ast r = LIB.Z3_mk_quantifier_ex(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
+ 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_ast Z3_mk_forall_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6) {
+ Z3_ast r = LIB.Z3_mk_forall_const(a0, a1, a2, a3, a4, a5, a6);
+ 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_ast Z3_mk_exists_const(Z3_context a0, uint a1, uint a2, [In] Z3_app[] a3, uint a4, [In] Z3_pattern[] a5, Z3_ast a6) {
+ Z3_ast r = LIB.Z3_mk_exists_const(a0, a1, a2, a3, a4, a5, a6);
+ 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_ast Z3_mk_quantifier_const(Z3_context a0, int a1, uint a2, uint a3, [In] Z3_app[] a4, uint a5, [In] Z3_pattern[] a6, Z3_ast a7) {
+ Z3_ast r = LIB.Z3_mk_quantifier_const(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_ast Z3_mk_quantifier_const_ex(Z3_context a0, int a1, uint a2, IntPtr a3, IntPtr a4, uint a5, [In] Z3_app[] a6, uint a7, [In] Z3_pattern[] a8, uint a9, [In] Z3_ast[] a10, Z3_ast a11) {
+ Z3_ast r = LIB.Z3_mk_quantifier_const_ex(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
+ 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 uint Z3_get_symbol_kind(Z3_context a0, IntPtr a1) {
+ uint r = LIB.Z3_get_symbol_kind(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 r;
+ }
+
+ public static int Z3_get_symbol_int(Z3_context a0, IntPtr a1) {
+ int r = LIB.Z3_get_symbol_int(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 r;
+ }
+
+ public static string Z3_get_symbol_string(Z3_context a0, IntPtr a1) {
+ IntPtr r = LIB.Z3_get_symbol_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 IntPtr Z3_get_sort_name(Z3_context a0, Z3_sort a1) {
+ IntPtr r = LIB.Z3_get_sort_name(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 r;
+ }
+
+ public static uint Z3_get_sort_id(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_sort_id(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 r;
+ }
+
+ public static Z3_ast Z3_sort_to_ast(Z3_context a0, Z3_sort a1) {
+ Z3_ast r = LIB.Z3_sort_to_ast(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 r;
+ }
+
+ public static int Z3_is_eq_sort(Z3_context a0, Z3_sort a1, Z3_sort a2) {
+ int r = LIB.Z3_is_eq_sort(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 static uint Z3_get_sort_kind(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_sort_kind(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 r;
+ }
+
+ public static uint Z3_get_bv_sort_size(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_bv_sort_size(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 r;
+ }
+
+ public static int Z3_get_finite_domain_sort_size(Z3_context a0, Z3_sort a1, [In, Out] ref UInt64 a2) {
+ int r = LIB.Z3_get_finite_domain_sort_size(a0, a1, ref 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 static Z3_sort Z3_get_array_sort_domain(Z3_context a0, Z3_sort a1) {
+ Z3_sort r = LIB.Z3_get_array_sort_domain(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 r;
+ }
+
+ public static Z3_sort Z3_get_array_sort_range(Z3_context a0, Z3_sort a1) {
+ Z3_sort r = LIB.Z3_get_array_sort_range(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_tuple_sort_mk_decl(Z3_context a0, Z3_sort a1) {
+ Z3_func_decl r = LIB.Z3_get_tuple_sort_mk_decl(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 r;
+ }
+
+ public static uint Z3_get_tuple_sort_num_fields(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_tuple_sort_num_fields(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_tuple_sort_field_decl(Z3_context a0, Z3_sort a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_tuple_sort_field_decl(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 static uint Z3_get_datatype_sort_num_constructors(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_datatype_sort_num_constructors(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_datatype_sort_constructor(Z3_context a0, Z3_sort a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_datatype_sort_constructor(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 static Z3_func_decl Z3_get_datatype_sort_recognizer(Z3_context a0, Z3_sort a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_datatype_sort_recognizer(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 static Z3_func_decl Z3_get_datatype_sort_constructor_accessor(Z3_context a0, Z3_sort a1, uint a2, uint a3) {
+ Z3_func_decl r = LIB.Z3_get_datatype_sort_constructor_accessor(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 uint Z3_get_relation_arity(Z3_context a0, Z3_sort a1) {
+ uint r = LIB.Z3_get_relation_arity(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 r;
+ }
+
+ public static Z3_sort Z3_get_relation_column(Z3_context a0, Z3_sort a1, uint a2) {
+ Z3_sort r = LIB.Z3_get_relation_column(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 static Z3_ast Z3_func_decl_to_ast(Z3_context a0, Z3_func_decl a1) {
+ Z3_ast r = LIB.Z3_func_decl_to_ast(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 r;
+ }
+
+ public static int Z3_is_eq_func_decl(Z3_context a0, Z3_func_decl a1, Z3_func_decl a2) {
+ int r = LIB.Z3_is_eq_func_decl(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 static uint Z3_get_func_decl_id(Z3_context a0, Z3_func_decl a1) {
+ uint r = LIB.Z3_get_func_decl_id(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 r;
+ }
+
+ public static IntPtr Z3_get_decl_name(Z3_context a0, Z3_func_decl a1) {
+ IntPtr r = LIB.Z3_get_decl_name(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 r;
+ }
+
+ public static uint Z3_get_decl_kind(Z3_context a0, Z3_func_decl a1) {
+ uint r = LIB.Z3_get_decl_kind(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 r;
+ }
+
+ public static uint Z3_get_domain_size(Z3_context a0, Z3_func_decl a1) {
+ uint r = LIB.Z3_get_domain_size(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 r;
+ }
+
+ public static uint Z3_get_arity(Z3_context a0, Z3_func_decl a1) {
+ uint r = LIB.Z3_get_arity(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 r;
+ }
+
+ public static Z3_sort Z3_get_domain(Z3_context a0, Z3_func_decl a1, uint a2) {
+ Z3_sort r = LIB.Z3_get_domain(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 static Z3_sort Z3_get_range(Z3_context a0, Z3_func_decl a1) {
+ Z3_sort r = LIB.Z3_get_range(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 r;
+ }
+
+ public static uint Z3_get_decl_num_parameters(Z3_context a0, Z3_func_decl a1) {
+ uint r = LIB.Z3_get_decl_num_parameters(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 r;
+ }
+
+ public static uint Z3_get_decl_parameter_kind(Z3_context a0, Z3_func_decl a1, uint a2) {
+ uint r = LIB.Z3_get_decl_parameter_kind(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 static int Z3_get_decl_int_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ int r = LIB.Z3_get_decl_int_parameter(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 static double Z3_get_decl_double_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ double r = LIB.Z3_get_decl_double_parameter(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 static IntPtr Z3_get_decl_symbol_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ IntPtr r = LIB.Z3_get_decl_symbol_parameter(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 static Z3_sort Z3_get_decl_sort_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ Z3_sort r = LIB.Z3_get_decl_sort_parameter(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 static Z3_ast Z3_get_decl_ast_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_decl_ast_parameter(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 static Z3_func_decl Z3_get_decl_func_decl_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_decl_func_decl_parameter(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 static string Z3_get_decl_rational_parameter(Z3_context a0, Z3_func_decl a1, uint a2) {
+ IntPtr r = LIB.Z3_get_decl_rational_parameter(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 Marshal.PtrToStringAnsi(r);
+ }
+
+ public static Z3_ast Z3_app_to_ast(Z3_context a0, Z3_app a1) {
+ Z3_ast r = LIB.Z3_app_to_ast(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_app_decl(Z3_context a0, Z3_app a1) {
+ Z3_func_decl r = LIB.Z3_get_app_decl(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 r;
+ }
+
+ public static uint Z3_get_app_num_args(Z3_context a0, Z3_app a1) {
+ uint r = LIB.Z3_get_app_num_args(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 r;
+ }
+
+ public static Z3_ast Z3_get_app_arg(Z3_context a0, Z3_app a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_app_arg(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 static int Z3_is_eq_ast(Z3_context a0, Z3_ast a1, Z3_ast a2) {
+ int r = LIB.Z3_is_eq_ast(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 static uint Z3_get_ast_id(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_ast_id(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 r;
+ }
+
+ public static uint Z3_get_ast_hash(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_ast_hash(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 r;
+ }
+
+ public static Z3_sort Z3_get_sort(Z3_context a0, Z3_ast a1) {
+ Z3_sort r = LIB.Z3_get_sort(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 r;
+ }
+
+ public static int Z3_is_well_sorted(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_well_sorted(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 r;
+ }
+
+ public static uint Z3_get_bool_value(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_bool_value(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 r;
+ }
+
+ public static uint Z3_get_ast_kind(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_ast_kind(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 r;
+ }
+
+ public static int Z3_is_app(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_app(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 r;
+ }
+
+ public static int Z3_is_numeral_ast(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_numeral_ast(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 r;
+ }
+
+ public static int Z3_is_algebraic_number(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_algebraic_number(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 r;
+ }
+
+ public static Z3_app Z3_to_app(Z3_context a0, Z3_ast a1) {
+ Z3_app r = LIB.Z3_to_app(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 r;
+ }
+
+ public static Z3_func_decl Z3_to_func_decl(Z3_context a0, Z3_ast a1) {
+ Z3_func_decl r = LIB.Z3_to_func_decl(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 r;
+ }
+
+ public static string Z3_get_numeral_string(Z3_context a0, Z3_ast a1) {
+ IntPtr r = LIB.Z3_get_numeral_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 string Z3_get_numeral_decimal_string(Z3_context a0, Z3_ast a1, uint a2) {
+ IntPtr r = LIB.Z3_get_numeral_decimal_string(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 Marshal.PtrToStringAnsi(r);
+ }
+
+ public static Z3_ast Z3_get_numerator(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_get_numerator(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 r;
+ }
+
+ public static Z3_ast Z3_get_denominator(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_get_denominator(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 r;
+ }
+
+ public static int Z3_get_numeral_small(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3) {
+ int r = LIB.Z3_get_numeral_small(a0, a1, ref a2, ref 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 int Z3_get_numeral_int(Z3_context a0, Z3_ast a1, [In, Out] ref int a2) {
+ int r = LIB.Z3_get_numeral_int(a0, a1, ref 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 static int Z3_get_numeral_uint(Z3_context a0, Z3_ast a1, [In, Out] ref uint a2) {
+ int r = LIB.Z3_get_numeral_uint(a0, a1, ref 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 static int Z3_get_numeral_uint64(Z3_context a0, Z3_ast a1, [In, Out] ref UInt64 a2) {
+ int r = LIB.Z3_get_numeral_uint64(a0, a1, ref 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 static int Z3_get_numeral_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2) {
+ int r = LIB.Z3_get_numeral_int64(a0, a1, ref 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 static int Z3_get_numeral_rational_int64(Z3_context a0, Z3_ast a1, [In, Out] ref Int64 a2, [In, Out] ref Int64 a3) {
+ int r = LIB.Z3_get_numeral_rational_int64(a0, a1, ref a2, ref 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_ast Z3_get_algebraic_number_lower(Z3_context a0, Z3_ast a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_algebraic_number_lower(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 static Z3_ast Z3_get_algebraic_number_upper(Z3_context a0, Z3_ast a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_algebraic_number_upper(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 static Z3_ast Z3_pattern_to_ast(Z3_context a0, Z3_pattern a1) {
+ Z3_ast r = LIB.Z3_pattern_to_ast(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 r;
+ }
+
+ public static uint Z3_get_pattern_num_terms(Z3_context a0, Z3_pattern a1) {
+ uint r = LIB.Z3_get_pattern_num_terms(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 r;
+ }
+
+ public static Z3_ast Z3_get_pattern(Z3_context a0, Z3_pattern a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_pattern(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 static uint Z3_get_index_value(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_index_value(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 r;
+ }
+
+ public static int Z3_is_quantifier_forall(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_quantifier_forall(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 r;
+ }
+
+ public static uint Z3_get_quantifier_weight(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_quantifier_weight(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 r;
+ }
+
+ public static uint Z3_get_quantifier_num_patterns(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_quantifier_num_patterns(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 r;
+ }
+
+ public static Z3_pattern Z3_get_quantifier_pattern_ast(Z3_context a0, Z3_ast a1, uint a2) {
+ Z3_pattern r = LIB.Z3_get_quantifier_pattern_ast(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 static uint Z3_get_quantifier_num_no_patterns(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_quantifier_num_no_patterns(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 r;
+ }
+
+ public static Z3_ast Z3_get_quantifier_no_pattern_ast(Z3_context a0, Z3_ast a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_quantifier_no_pattern_ast(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 static uint Z3_get_quantifier_num_bound(Z3_context a0, Z3_ast a1) {
+ uint r = LIB.Z3_get_quantifier_num_bound(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 r;
+ }
+
+ public static IntPtr Z3_get_quantifier_bound_name(Z3_context a0, Z3_ast a1, uint a2) {
+ IntPtr r = LIB.Z3_get_quantifier_bound_name(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 static Z3_sort Z3_get_quantifier_bound_sort(Z3_context a0, Z3_ast a1, uint a2) {
+ Z3_sort r = LIB.Z3_get_quantifier_bound_sort(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 static Z3_ast Z3_get_quantifier_body(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_get_quantifier_body(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 r;
+ }
+
+ public static Z3_ast Z3_simplify(Z3_context a0, Z3_ast a1) {
+ Z3_ast r = LIB.Z3_simplify(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 r;
+ }
+
+ public static Z3_ast Z3_simplify_ex(Z3_context a0, Z3_ast a1, Z3_params a2) {
+ Z3_ast r = LIB.Z3_simplify_ex(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 static string Z3_simplify_get_help(Z3_context a0) {
+ IntPtr r = LIB.Z3_simplify_get_help(a0);
+ 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_param_descrs Z3_simplify_get_param_descrs(Z3_context a0) {
+ Z3_param_descrs r = LIB.Z3_simplify_get_param_descrs(a0);
+ 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_ast Z3_update_term(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3) {
+ Z3_ast r = LIB.Z3_update_term(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_ast Z3_substitute(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3, [In] Z3_ast[] a4) {
+ Z3_ast r = LIB.Z3_substitute(a0, a1, a2, a3, 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 static Z3_ast Z3_substitute_vars(Z3_context a0, Z3_ast a1, uint a2, [In] Z3_ast[] a3) {
+ Z3_ast r = LIB.Z3_substitute_vars(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_ast Z3_translate(Z3_context a0, Z3_ast a1, Z3_context a2) {
+ Z3_ast r = LIB.Z3_translate(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 static void Z3_model_inc_ref(Z3_context a0, Z3_model a1) {
+ LIB.Z3_model_inc_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 static void Z3_model_dec_ref(Z3_context a0, Z3_model a1) {
+ LIB.Z3_model_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 static int Z3_model_eval(Z3_context a0, Z3_model a1, Z3_ast a2, int a3, [In, Out] ref Z3_ast a4) {
+ int r = LIB.Z3_model_eval(a0, a1, a2, 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 static Z3_ast Z3_model_get_const_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2) {
+ Z3_ast r = LIB.Z3_model_get_const_interp(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 static Z3_func_interp Z3_model_get_func_interp(Z3_context a0, Z3_model a1, Z3_func_decl a2) {
+ Z3_func_interp r = LIB.Z3_model_get_func_interp(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 static uint Z3_model_get_num_consts(Z3_context a0, Z3_model a1) {
+ uint r = LIB.Z3_model_get_num_consts(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 r;
+ }
+
+ public static Z3_func_decl Z3_model_get_const_decl(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_model_get_const_decl(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 static uint Z3_model_get_num_funcs(Z3_context a0, Z3_model a1) {
+ uint r = LIB.Z3_model_get_num_funcs(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 r;
+ }
+
+ public static Z3_func_decl Z3_model_get_func_decl(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_model_get_func_decl(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 static uint Z3_model_get_num_sorts(Z3_context a0, Z3_model a1) {
+ uint r = LIB.Z3_model_get_num_sorts(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 r;
+ }
+
+ public static Z3_sort Z3_model_get_sort(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_sort r = LIB.Z3_model_get_sort(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 static Z3_ast_vector Z3_model_get_sort_universe(Z3_context a0, Z3_model a1, Z3_sort a2) {
+ Z3_ast_vector r = LIB.Z3_model_get_sort_universe(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 static int Z3_is_as_array(Z3_context a0, Z3_ast a1) {
+ int r = LIB.Z3_is_as_array(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_as_array_func_decl(Z3_context a0, Z3_ast a1) {
+ Z3_func_decl r = LIB.Z3_get_as_array_func_decl(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 r;
+ }
+
+ public static void Z3_func_interp_inc_ref(Z3_context a0, Z3_func_interp a1) {
+ LIB.Z3_func_interp_inc_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 static void Z3_func_interp_dec_ref(Z3_context a0, Z3_func_interp a1) {
+ LIB.Z3_func_interp_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 static uint Z3_func_interp_get_num_entries(Z3_context a0, Z3_func_interp a1) {
+ uint r = LIB.Z3_func_interp_get_num_entries(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 r;
+ }
+
+ public static Z3_func_entry Z3_func_interp_get_entry(Z3_context a0, Z3_func_interp a1, uint a2) {
+ Z3_func_entry r = LIB.Z3_func_interp_get_entry(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 static Z3_ast Z3_func_interp_get_else(Z3_context a0, Z3_func_interp a1) {
+ Z3_ast r = LIB.Z3_func_interp_get_else(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 r;
+ }
+
+ public static uint Z3_func_interp_get_arity(Z3_context a0, Z3_func_interp a1) {
+ uint r = LIB.Z3_func_interp_get_arity(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 r;
+ }
+
+ public static void Z3_func_entry_inc_ref(Z3_context a0, Z3_func_entry a1) {
+ LIB.Z3_func_entry_inc_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 static void Z3_func_entry_dec_ref(Z3_context a0, Z3_func_entry a1) {
+ LIB.Z3_func_entry_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 static Z3_ast Z3_func_entry_get_value(Z3_context a0, Z3_func_entry a1) {
+ Z3_ast r = LIB.Z3_func_entry_get_value(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 r;
+ }
+
+ public static uint Z3_func_entry_get_num_args(Z3_context a0, Z3_func_entry a1) {
+ uint r = LIB.Z3_func_entry_get_num_args(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 r;
+ }
+
+ public static Z3_ast Z3_func_entry_get_arg(Z3_context a0, Z3_func_entry a1, uint a2) {
+ Z3_ast r = LIB.Z3_func_entry_get_arg(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 static void Z3_toggle_warning_messages(int a0) {
+ LIB.Z3_toggle_warning_messages(a0);
+ }
+
+ public static void Z3_set_ast_print_mode(Z3_context a0, uint a1) {
+ LIB.Z3_set_ast_print_mode(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 static string Z3_ast_to_string(Z3_context a0, Z3_ast a1) {
+ IntPtr r = LIB.Z3_ast_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 string Z3_pattern_to_string(Z3_context a0, Z3_pattern a1) {
+ IntPtr r = LIB.Z3_pattern_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 string Z3_sort_to_string(Z3_context a0, Z3_sort a1) {
+ IntPtr r = LIB.Z3_sort_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 string Z3_func_decl_to_string(Z3_context a0, Z3_func_decl a1) {
+ IntPtr r = LIB.Z3_func_decl_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 string Z3_model_to_string(Z3_context a0, Z3_model a1) {
+ IntPtr r = LIB.Z3_model_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 string Z3_benchmark_to_smtlib_string(Z3_context a0, string a1, string a2, string a3, string a4, uint a5, [In] Z3_ast[] a6, Z3_ast a7) {
+ IntPtr r = LIB.Z3_benchmark_to_smtlib_string(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_ast Z3_parse_smtlib2_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
+ Z3_ast r = LIB.Z3_parse_smtlib2_string(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_ast Z3_parse_smtlib2_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
+ Z3_ast r = LIB.Z3_parse_smtlib2_file(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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 void Z3_parse_smtlib_string(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
+ LIB.Z3_parse_smtlib_string(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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_parse_smtlib_file(Z3_context a0, string a1, uint a2, [In] IntPtr[] a3, [In] Z3_sort[] a4, uint a5, [In] IntPtr[] a6, [In] Z3_func_decl[] a7) {
+ LIB.Z3_parse_smtlib_file(a0, a1, a2, a3, a4, a5, a6, a7);
+ 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 uint Z3_get_smtlib_num_formulas(Z3_context a0) {
+ uint r = LIB.Z3_get_smtlib_num_formulas(a0);
+ 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_ast Z3_get_smtlib_formula(Z3_context a0, uint a1) {
+ Z3_ast r = LIB.Z3_get_smtlib_formula(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 r;
+ }
+
+ public static uint Z3_get_smtlib_num_assumptions(Z3_context a0) {
+ uint r = LIB.Z3_get_smtlib_num_assumptions(a0);
+ 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_ast Z3_get_smtlib_assumption(Z3_context a0, uint a1) {
+ Z3_ast r = LIB.Z3_get_smtlib_assumption(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 r;
+ }
+
+ public static uint Z3_get_smtlib_num_decls(Z3_context a0) {
+ uint r = LIB.Z3_get_smtlib_num_decls(a0);
+ 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_func_decl Z3_get_smtlib_decl(Z3_context a0, uint a1) {
+ Z3_func_decl r = LIB.Z3_get_smtlib_decl(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 r;
+ }
+
+ public static uint Z3_get_smtlib_num_sorts(Z3_context a0) {
+ uint r = LIB.Z3_get_smtlib_num_sorts(a0);
+ 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_sort Z3_get_smtlib_sort(Z3_context a0, uint a1) {
+ Z3_sort r = LIB.Z3_get_smtlib_sort(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 r;
+ }
+
+ public static string Z3_get_smtlib_error(Z3_context a0) {
+ IntPtr r = LIB.Z3_get_smtlib_error(a0);
+ 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_ast Z3_parse_z3_string(Z3_context a0, string a1) {
+ Z3_ast r = LIB.Z3_parse_z3_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 r;
+ }
+
+ public static Z3_ast Z3_parse_z3_file(Z3_context a0, string a1) {
+ Z3_ast r = LIB.Z3_parse_z3_file(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 r;
+ }
+
+ public static uint Z3_get_error_code(Z3_context a0) {
+ uint r = LIB.Z3_get_error_code(a0);
+ 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 void Z3_set_error(Z3_context a0, uint a1) {
+ LIB.Z3_set_error(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 static string Z3_get_error_msg(uint a0) {
+ IntPtr r = LIB.Z3_get_error_msg(a0);
+ return Marshal.PtrToStringAnsi(r);
+ }
+
+ public static string Z3_get_error_msg_ex(Z3_context a0, uint a1) {
+ IntPtr r = LIB.Z3_get_error_msg_ex(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_get_version([In, Out] ref uint a0, [In, Out] ref uint a1, [In, Out] ref uint a2, [In, Out] ref uint a3) {
+ LIB.Z3_get_version(ref a0, ref a1, ref a2, ref a3);
+ }
+
+ public static void Z3_reset_memory() {
+ LIB.Z3_reset_memory();
+ }
+
+ public static Z3_fixedpoint Z3_mk_fixedpoint(Z3_context a0) {
+ Z3_fixedpoint r = LIB.Z3_mk_fixedpoint(a0);
+ 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 void Z3_fixedpoint_inc_ref(Z3_context a0, Z3_fixedpoint a1) {
+ LIB.Z3_fixedpoint_inc_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 static void Z3_fixedpoint_dec_ref(Z3_context a0, Z3_fixedpoint a1) {
+ LIB.Z3_fixedpoint_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 static void Z3_fixedpoint_add_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3) {
+ LIB.Z3_fixedpoint_add_rule(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_fixedpoint_add_fact(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] uint[] a4) {
+ LIB.Z3_fixedpoint_add_fact(a0, a1, a2, a3, 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)));
+ }
+
+ public static void Z3_fixedpoint_assert(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2) {
+ LIB.Z3_fixedpoint_assert(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 static int Z3_fixedpoint_query(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2) {
+ int r = LIB.Z3_fixedpoint_query(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 static int Z3_fixedpoint_query_relations(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_func_decl[] a3) {
+ int r = LIB.Z3_fixedpoint_query_relations(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_ast Z3_fixedpoint_get_answer(Z3_context a0, Z3_fixedpoint a1) {
+ Z3_ast r = LIB.Z3_fixedpoint_get_answer(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 r;
+ }
+
+ public static string Z3_fixedpoint_get_reason_unknown(Z3_context a0, Z3_fixedpoint a1) {
+ IntPtr r = LIB.Z3_fixedpoint_get_reason_unknown(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_fixedpoint_update_rule(Z3_context a0, Z3_fixedpoint a1, Z3_ast a2, IntPtr a3) {
+ LIB.Z3_fixedpoint_update_rule(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 uint Z3_fixedpoint_get_num_levels(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2) {
+ uint r = LIB.Z3_fixedpoint_get_num_levels(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 static Z3_ast Z3_fixedpoint_get_cover_delta(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3) {
+ Z3_ast r = LIB.Z3_fixedpoint_get_cover_delta(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 void Z3_fixedpoint_add_cover(Z3_context a0, Z3_fixedpoint a1, int a2, Z3_func_decl a3, Z3_ast a4) {
+ LIB.Z3_fixedpoint_add_cover(a0, a1, a2, a3, 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)));
+ }
+
+ public static Z3_stats Z3_fixedpoint_get_statistics(Z3_context a0, Z3_fixedpoint a1) {
+ Z3_stats r = LIB.Z3_fixedpoint_get_statistics(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 r;
+ }
+
+ public static void Z3_fixedpoint_register_relation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2) {
+ LIB.Z3_fixedpoint_register_relation(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 static void Z3_fixedpoint_set_predicate_representation(Z3_context a0, Z3_fixedpoint a1, Z3_func_decl a2, uint a3, [In] IntPtr[] a4) {
+ LIB.Z3_fixedpoint_set_predicate_representation(a0, a1, a2, a3, 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)));
+ }
+
+ public static Z3_ast_vector Z3_fixedpoint_simplify_rules(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3, uint a4, [In] Z3_func_decl[] a5) {
+ Z3_ast_vector r = LIB.Z3_fixedpoint_simplify_rules(a0, a1, a2, a3, a4, a5);
+ 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 void Z3_fixedpoint_set_params(Z3_context a0, Z3_fixedpoint a1, Z3_params a2) {
+ LIB.Z3_fixedpoint_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 static string Z3_fixedpoint_get_help(Z3_context a0, Z3_fixedpoint a1) {
+ IntPtr r = LIB.Z3_fixedpoint_get_help(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_param_descrs Z3_fixedpoint_get_param_descrs(Z3_context a0, Z3_fixedpoint a1) {
+ Z3_param_descrs r = LIB.Z3_fixedpoint_get_param_descrs(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 r;
+ }
+
+ public static string Z3_fixedpoint_to_string(Z3_context a0, Z3_fixedpoint a1, uint a2, [In] Z3_ast[] a3) {
+ IntPtr r = LIB.Z3_fixedpoint_to_string(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 Marshal.PtrToStringAnsi(r);
+ }
+
+ public static void Z3_fixedpoint_push(Z3_context a0, Z3_fixedpoint a1) {
+ LIB.Z3_fixedpoint_push(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 static void Z3_fixedpoint_pop(Z3_context a0, Z3_fixedpoint a1) {
+ LIB.Z3_fixedpoint_pop(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 static Z3_ast_vector Z3_mk_ast_vector(Z3_context a0) {
+ Z3_ast_vector r = LIB.Z3_mk_ast_vector(a0);
+ 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 void Z3_ast_vector_inc_ref(Z3_context a0, Z3_ast_vector a1) {
+ LIB.Z3_ast_vector_inc_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 static void Z3_ast_vector_dec_ref(Z3_context a0, Z3_ast_vector a1) {
+ LIB.Z3_ast_vector_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 static uint Z3_ast_vector_size(Z3_context a0, Z3_ast_vector a1) {
+ uint r = LIB.Z3_ast_vector_size(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 r;
+ }
+
+ public static Z3_ast Z3_ast_vector_get(Z3_context a0, Z3_ast_vector a1, uint a2) {
+ Z3_ast r = LIB.Z3_ast_vector_get(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 static void Z3_ast_vector_set(Z3_context a0, Z3_ast_vector a1, uint a2, Z3_ast a3) {
+ LIB.Z3_ast_vector_set(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_ast_vector_resize(Z3_context a0, Z3_ast_vector a1, uint a2) {
+ LIB.Z3_ast_vector_resize(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 static void Z3_ast_vector_push(Z3_context a0, Z3_ast_vector a1, Z3_ast a2) {
+ LIB.Z3_ast_vector_push(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 static Z3_ast_vector Z3_ast_vector_translate(Z3_context a0, Z3_ast_vector a1, Z3_context a2) {
+ Z3_ast_vector r = LIB.Z3_ast_vector_translate(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 static string Z3_ast_vector_to_string(Z3_context a0, Z3_ast_vector a1) {
+ IntPtr r = LIB.Z3_ast_vector_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_ast_map Z3_mk_ast_map(Z3_context a0) {
+ Z3_ast_map r = LIB.Z3_mk_ast_map(a0);
+ 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 void Z3_ast_map_inc_ref(Z3_context a0, Z3_ast_map a1) {
+ LIB.Z3_ast_map_inc_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 static void Z3_ast_map_dec_ref(Z3_context a0, Z3_ast_map a1) {
+ LIB.Z3_ast_map_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 static int Z3_ast_map_contains(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
+ int r = LIB.Z3_ast_map_contains(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 static Z3_ast Z3_ast_map_find(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
+ Z3_ast r = LIB.Z3_ast_map_find(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 static void Z3_ast_map_insert(Z3_context a0, Z3_ast_map a1, Z3_ast a2, Z3_ast a3) {
+ LIB.Z3_ast_map_insert(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_ast_map_erase(Z3_context a0, Z3_ast_map a1, Z3_ast a2) {
+ LIB.Z3_ast_map_erase(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 static void Z3_ast_map_reset(Z3_context a0, Z3_ast_map a1) {
+ LIB.Z3_ast_map_reset(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 static uint Z3_ast_map_size(Z3_context a0, Z3_ast_map a1) {
+ uint r = LIB.Z3_ast_map_size(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 r;
+ }
+
+ public static Z3_ast_vector Z3_ast_map_keys(Z3_context a0, Z3_ast_map a1) {
+ Z3_ast_vector r = LIB.Z3_ast_map_keys(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 r;
+ }
+
+ public static string Z3_ast_map_to_string(Z3_context a0, Z3_ast_map a1) {
+ IntPtr r = LIB.Z3_ast_map_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_goal Z3_mk_goal(Z3_context a0, int a1, int a2, int a3) {
+ Z3_goal r = LIB.Z3_mk_goal(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 void Z3_goal_inc_ref(Z3_context a0, Z3_goal a1) {
+ LIB.Z3_goal_inc_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 static void Z3_goal_dec_ref(Z3_context a0, Z3_goal a1) {
+ LIB.Z3_goal_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 static uint Z3_goal_precision(Z3_context a0, Z3_goal a1) {
+ uint r = LIB.Z3_goal_precision(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 r;
+ }
+
+ public static void Z3_goal_assert(Z3_context a0, Z3_goal a1, Z3_ast a2) {
+ LIB.Z3_goal_assert(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 static int Z3_goal_inconsistent(Z3_context a0, Z3_goal a1) {
+ int r = LIB.Z3_goal_inconsistent(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 r;
+ }
+
+ public static uint Z3_goal_depth(Z3_context a0, Z3_goal a1) {
+ uint r = LIB.Z3_goal_depth(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 r;
+ }
+
+ public static void Z3_goal_reset(Z3_context a0, Z3_goal a1) {
+ LIB.Z3_goal_reset(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 static uint Z3_goal_size(Z3_context a0, Z3_goal a1) {
+ uint r = LIB.Z3_goal_size(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 r;
+ }
+
+ public static Z3_ast Z3_goal_formula(Z3_context a0, Z3_goal a1, uint a2) {
+ Z3_ast r = LIB.Z3_goal_formula(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 static uint Z3_goal_num_exprs(Z3_context a0, Z3_goal a1) {
+ uint r = LIB.Z3_goal_num_exprs(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 r;
+ }
+
+ public static int Z3_goal_is_decided_sat(Z3_context a0, Z3_goal a1) {
+ int r = LIB.Z3_goal_is_decided_sat(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 r;
+ }
+
+ public static int Z3_goal_is_decided_unsat(Z3_context a0, Z3_goal a1) {
+ int r = LIB.Z3_goal_is_decided_unsat(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 r;
+ }
+
+ public static Z3_goal Z3_goal_translate(Z3_context a0, Z3_goal a1, Z3_context a2) {
+ Z3_goal r = LIB.Z3_goal_translate(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 static string Z3_goal_to_string(Z3_context a0, Z3_goal a1) {
+ IntPtr r = LIB.Z3_goal_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_mk_tactic(Z3_context a0, string a1) {
+ Z3_tactic r = LIB.Z3_mk_tactic(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 r;
+ }
+
+ public static void Z3_tactic_inc_ref(Z3_context a0, Z3_tactic a1) {
+ LIB.Z3_tactic_inc_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 static void Z3_tactic_dec_ref(Z3_context a0, Z3_tactic a1) {
+ LIB.Z3_tactic_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 static Z3_probe Z3_mk_probe(Z3_context a0, string a1) {
+ Z3_probe r = LIB.Z3_mk_probe(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 r;
+ }
+
+ public static void Z3_probe_inc_ref(Z3_context a0, Z3_probe a1) {
+ LIB.Z3_probe_inc_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 static void Z3_probe_dec_ref(Z3_context a0, Z3_probe a1) {
+ LIB.Z3_probe_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 static Z3_tactic Z3_tactic_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
+ Z3_tactic r = LIB.Z3_tactic_and_then(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 static Z3_tactic Z3_tactic_or_else(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
+ Z3_tactic r = LIB.Z3_tactic_or_else(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 static Z3_tactic Z3_tactic_par_or(Z3_context a0, uint a1, [In] Z3_tactic[] a2) {
+ Z3_tactic r = LIB.Z3_tactic_par_or(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 static Z3_tactic Z3_tactic_par_and_then(Z3_context a0, Z3_tactic a1, Z3_tactic a2) {
+ Z3_tactic r = LIB.Z3_tactic_par_and_then(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 static Z3_tactic Z3_tactic_try_for(Z3_context a0, Z3_tactic a1, uint a2) {
+ Z3_tactic r = LIB.Z3_tactic_try_for(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 static Z3_tactic Z3_tactic_when(Z3_context a0, Z3_probe a1, Z3_tactic a2) {
+ Z3_tactic r = LIB.Z3_tactic_when(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 static Z3_tactic Z3_tactic_cond(Z3_context a0, Z3_probe a1, Z3_tactic a2, Z3_tactic a3) {
+ Z3_tactic r = LIB.Z3_tactic_cond(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_tactic Z3_tactic_repeat(Z3_context a0, Z3_tactic a1, uint a2) {
+ Z3_tactic r = LIB.Z3_tactic_repeat(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 static Z3_tactic Z3_tactic_skip(Z3_context a0) {
+ Z3_tactic r = LIB.Z3_tactic_skip(a0);
+ 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_tactic Z3_tactic_fail(Z3_context a0) {
+ Z3_tactic r = LIB.Z3_tactic_fail(a0);
+ 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_tactic Z3_tactic_fail_if(Z3_context a0, Z3_probe a1) {
+ Z3_tactic r = LIB.Z3_tactic_fail_if(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 r;
+ }
+
+ public static Z3_tactic Z3_tactic_fail_if_not_decided(Z3_context a0) {
+ Z3_tactic r = LIB.Z3_tactic_fail_if_not_decided(a0);
+ 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_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 static Z3_probe Z3_probe_const(Z3_context a0, double a1) {
+ Z3_probe r = LIB.Z3_probe_const(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 r;
+ }
+
+ public static Z3_probe Z3_probe_lt(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_lt(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 static Z3_probe Z3_probe_gt(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_gt(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 static Z3_probe Z3_probe_le(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_le(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 static Z3_probe Z3_probe_ge(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_ge(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 static Z3_probe Z3_probe_eq(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_eq(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 static Z3_probe Z3_probe_and(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_and(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 static Z3_probe Z3_probe_or(Z3_context a0, Z3_probe a1, Z3_probe a2) {
+ Z3_probe r = LIB.Z3_probe_or(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 static Z3_probe Z3_probe_not(Z3_context a0, Z3_probe a1) {
+ Z3_probe r = LIB.Z3_probe_not(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 r;
+ }
+
+ public static uint Z3_get_num_tactics(Z3_context a0) {
+ uint r = LIB.Z3_get_num_tactics(a0);
+ 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 string Z3_get_tactic_name(Z3_context a0, uint a1) {
+ IntPtr r = LIB.Z3_get_tactic_name(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 uint Z3_get_num_probes(Z3_context a0) {
+ uint r = LIB.Z3_get_num_probes(a0);
+ 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 string Z3_get_probe_name(Z3_context a0, uint a1) {
+ IntPtr r = LIB.Z3_get_probe_name(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 string Z3_tactic_get_help(Z3_context a0, Z3_tactic a1) {
+ IntPtr r = LIB.Z3_tactic_get_help(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_param_descrs Z3_tactic_get_param_descrs(Z3_context a0, Z3_tactic a1) {
+ Z3_param_descrs r = LIB.Z3_tactic_get_param_descrs(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 r;
+ }
+
+ public static string Z3_tactic_get_descr(Z3_context a0, string a1) {
+ IntPtr r = LIB.Z3_tactic_get_descr(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 string Z3_probe_get_descr(Z3_context a0, string a1) {
+ IntPtr r = LIB.Z3_probe_get_descr(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 double Z3_probe_apply(Z3_context a0, Z3_probe a1, Z3_goal a2) {
+ double r = LIB.Z3_probe_apply(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 static Z3_apply_result Z3_tactic_apply(Z3_context a0, Z3_tactic a1, Z3_goal a2) {
+ Z3_apply_result r = LIB.Z3_tactic_apply(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 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 static void Z3_apply_result_inc_ref(Z3_context a0, Z3_apply_result a1) {
+ LIB.Z3_apply_result_inc_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 static void Z3_apply_result_dec_ref(Z3_context a0, Z3_apply_result a1) {
+ LIB.Z3_apply_result_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 static string Z3_apply_result_to_string(Z3_context a0, Z3_apply_result a1) {
+ IntPtr r = LIB.Z3_apply_result_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 uint Z3_apply_result_get_num_subgoals(Z3_context a0, Z3_apply_result a1) {
+ uint r = LIB.Z3_apply_result_get_num_subgoals(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 r;
+ }
+
+ public static Z3_goal Z3_apply_result_get_subgoal(Z3_context a0, Z3_apply_result a1, uint a2) {
+ Z3_goal r = LIB.Z3_apply_result_get_subgoal(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 static Z3_model Z3_apply_result_convert_model(Z3_context a0, Z3_apply_result a1, uint a2, Z3_model a3) {
+ Z3_model r = LIB.Z3_apply_result_convert_model(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_solver Z3_mk_solver(Z3_context a0) {
+ Z3_solver r = LIB.Z3_mk_solver(a0);
+ 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_solver Z3_mk_simple_solver(Z3_context a0) {
+ Z3_solver r = LIB.Z3_mk_simple_solver(a0);
+ 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_solver Z3_mk_solver_for_logic(Z3_context a0, IntPtr a1) {
+ Z3_solver r = LIB.Z3_mk_solver_for_logic(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 r;
+ }
+
+ public static Z3_solver Z3_mk_solver_from_tactic(Z3_context a0, Z3_tactic a1) {
+ Z3_solver r = LIB.Z3_mk_solver_from_tactic(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 r;
+ }
+
+ public static string Z3_solver_get_help(Z3_context a0, Z3_solver a1) {
+ IntPtr r = LIB.Z3_solver_get_help(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_param_descrs Z3_solver_get_param_descrs(Z3_context a0, Z3_solver a1) {
+ Z3_param_descrs r = LIB.Z3_solver_get_param_descrs(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 r;
+ }
+
+ 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 static void Z3_solver_inc_ref(Z3_context a0, Z3_solver a1) {
+ LIB.Z3_solver_inc_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 static void Z3_solver_dec_ref(Z3_context a0, Z3_solver a1) {
+ LIB.Z3_solver_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 static void Z3_solver_push(Z3_context a0, Z3_solver a1) {
+ LIB.Z3_solver_push(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 static void Z3_solver_pop(Z3_context a0, Z3_solver a1, uint a2) {
+ LIB.Z3_solver_pop(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 static void Z3_solver_reset(Z3_context a0, Z3_solver a1) {
+ LIB.Z3_solver_reset(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 static uint Z3_solver_get_num_scopes(Z3_context a0, Z3_solver a1) {
+ uint r = LIB.Z3_solver_get_num_scopes(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 r;
+ }
+
+ public static void Z3_solver_assert(Z3_context a0, Z3_solver a1, Z3_ast a2) {
+ LIB.Z3_solver_assert(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 static Z3_ast_vector Z3_solver_get_assertions(Z3_context a0, Z3_solver a1) {
+ Z3_ast_vector r = LIB.Z3_solver_get_assertions(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 r;
+ }
+
+ public static int Z3_solver_check(Z3_context a0, Z3_solver a1) {
+ int r = LIB.Z3_solver_check(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 r;
+ }
+
+ public static int Z3_solver_check_assumptions(Z3_context a0, Z3_solver a1, uint a2, [In] Z3_ast[] a3) {
+ int r = LIB.Z3_solver_check_assumptions(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_model Z3_solver_get_model(Z3_context a0, Z3_solver a1) {
+ Z3_model r = LIB.Z3_solver_get_model(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 r;
+ }
+
+ public static Z3_ast Z3_solver_get_proof(Z3_context a0, Z3_solver a1) {
+ Z3_ast r = LIB.Z3_solver_get_proof(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 r;
+ }
+
+ public static Z3_ast_vector Z3_solver_get_unsat_core(Z3_context a0, Z3_solver a1) {
+ Z3_ast_vector r = LIB.Z3_solver_get_unsat_core(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 r;
+ }
+
+ public static string Z3_solver_get_reason_unknown(Z3_context a0, Z3_solver a1) {
+ IntPtr r = LIB.Z3_solver_get_reason_unknown(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_stats Z3_solver_get_statistics(Z3_context a0, Z3_solver a1) {
+ Z3_stats r = LIB.Z3_solver_get_statistics(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 r;
+ }
+
+ public static string Z3_solver_to_string(Z3_context a0, Z3_solver a1) {
+ IntPtr r = LIB.Z3_solver_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 string Z3_stats_to_string(Z3_context a0, Z3_stats a1) {
+ IntPtr r = LIB.Z3_stats_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_stats_inc_ref(Z3_context a0, Z3_stats a1) {
+ LIB.Z3_stats_inc_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 static void Z3_stats_dec_ref(Z3_context a0, Z3_stats a1) {
+ LIB.Z3_stats_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 static uint Z3_stats_size(Z3_context a0, Z3_stats a1) {
+ uint r = LIB.Z3_stats_size(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 r;
+ }
+
+ public static string Z3_stats_get_key(Z3_context a0, Z3_stats a1, uint a2) {
+ IntPtr r = LIB.Z3_stats_get_key(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 Marshal.PtrToStringAnsi(r);
+ }
+
+ public static int Z3_stats_is_uint(Z3_context a0, Z3_stats a1, uint a2) {
+ int r = LIB.Z3_stats_is_uint(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 static int Z3_stats_is_double(Z3_context a0, Z3_stats a1, uint a2) {
+ int r = LIB.Z3_stats_is_double(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 static uint Z3_stats_get_uint_value(Z3_context a0, Z3_stats a1, uint a2) {
+ uint r = LIB.Z3_stats_get_uint_value(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 static double Z3_stats_get_double_value(Z3_context a0, Z3_stats a1, uint a2) {
+ double r = LIB.Z3_stats_get_double_value(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 static Z3_func_decl Z3_mk_injective_function(Z3_context a0, IntPtr a1, uint a2, [In] Z3_sort[] a3, Z3_sort a4) {
+ Z3_func_decl r = LIB.Z3_mk_injective_function(a0, a1, a2, a3, 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 static void Z3_set_logic(Z3_context a0, string a1) {
+ LIB.Z3_set_logic(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 static void Z3_push(Z3_context a0) {
+ LIB.Z3_push(a0);
+ 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_pop(Z3_context a0, uint a1) {
+ LIB.Z3_pop(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 static uint Z3_get_num_scopes(Z3_context a0) {
+ uint r = LIB.Z3_get_num_scopes(a0);
+ 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 void Z3_persist_ast(Z3_context a0, Z3_ast a1, uint a2) {
+ LIB.Z3_persist_ast(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 static void Z3_assert_cnstr(Z3_context a0, Z3_ast a1) {
+ LIB.Z3_assert_cnstr(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 static int Z3_check_and_get_model(Z3_context a0, [In, Out] ref Z3_model a1) {
+ int r = LIB.Z3_check_and_get_model(a0, ref 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 r;
+ }
+
+ public static int Z3_check(Z3_context a0) {
+ int r = LIB.Z3_check(a0);
+ 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 int Z3_check_assumptions(Z3_context a0, uint a1, [In] Z3_ast[] a2, [In, Out] ref Z3_model a3, [In, Out] ref Z3_ast a4, [In, Out] ref uint a5, [Out] Z3_ast[] a6) {
+ int r = LIB.Z3_check_assumptions(a0, a1, a2, ref a3, ref a4, ref a5, a6);
+ 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 uint Z3_get_implied_equalities(Z3_context a0, uint a1, [In] Z3_ast[] a2, [Out] uint[] a3) {
+ uint r = LIB.Z3_get_implied_equalities(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 void Z3_del_model(Z3_context a0, Z3_model a1) {
+ LIB.Z3_del_model(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 static void Z3_soft_check_cancel(Z3_context a0) {
+ LIB.Z3_soft_check_cancel(a0);
+ 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 uint Z3_get_search_failure(Z3_context a0) {
+ uint r = LIB.Z3_get_search_failure(a0);
+ 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_ast Z3_mk_label(Z3_context a0, IntPtr a1, int a2, Z3_ast a3) {
+ Z3_ast r = LIB.Z3_mk_label(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_literals Z3_get_relevant_labels(Z3_context a0) {
+ Z3_literals r = LIB.Z3_get_relevant_labels(a0);
+ 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_literals Z3_get_relevant_literals(Z3_context a0) {
+ Z3_literals r = LIB.Z3_get_relevant_literals(a0);
+ 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_literals Z3_get_guessed_literals(Z3_context a0) {
+ Z3_literals r = LIB.Z3_get_guessed_literals(a0);
+ 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 void Z3_del_literals(Z3_context a0, Z3_literals a1) {
+ LIB.Z3_del_literals(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 static uint Z3_get_num_literals(Z3_context a0, Z3_literals a1) {
+ uint r = LIB.Z3_get_num_literals(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 r;
+ }
+
+ public static IntPtr Z3_get_label_symbol(Z3_context a0, Z3_literals a1, uint a2) {
+ IntPtr r = LIB.Z3_get_label_symbol(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 static Z3_ast Z3_get_literal(Z3_context a0, Z3_literals a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_literal(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 static void Z3_disable_literal(Z3_context a0, Z3_literals a1, uint a2) {
+ LIB.Z3_disable_literal(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 static void Z3_block_literals(Z3_context a0, Z3_literals a1) {
+ LIB.Z3_block_literals(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 static uint Z3_get_model_num_constants(Z3_context a0, Z3_model a1) {
+ uint r = LIB.Z3_get_model_num_constants(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_model_constant(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_model_constant(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 static uint Z3_get_model_num_funcs(Z3_context a0, Z3_model a1) {
+ uint r = LIB.Z3_get_model_num_funcs(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 r;
+ }
+
+ public static Z3_func_decl Z3_get_model_func_decl(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_func_decl r = LIB.Z3_get_model_func_decl(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 static int Z3_eval_func_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, [In, Out] ref Z3_ast a3) {
+ int r = LIB.Z3_eval_func_decl(a0, a1, a2, ref 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 int Z3_is_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref uint a3) {
+ int r = LIB.Z3_is_array_value(a0, a1, a2, ref 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 void Z3_get_array_value(Z3_context a0, Z3_model a1, Z3_ast a2, uint a3, [Out] Z3_ast[] a4, [Out] Z3_ast[] a5, [In, Out] ref Z3_ast a6) {
+ LIB.Z3_get_array_value(a0, a1, a2, a3, a4, a5, ref a6);
+ 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 Z3_ast Z3_get_model_func_else(Z3_context a0, Z3_model a1, uint a2) {
+ Z3_ast r = LIB.Z3_get_model_func_else(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 static uint Z3_get_model_func_num_entries(Z3_context a0, Z3_model a1, uint a2) {
+ uint r = LIB.Z3_get_model_func_num_entries(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 static uint Z3_get_model_func_entry_num_args(Z3_context a0, Z3_model a1, uint a2, uint a3) {
+ uint r = LIB.Z3_get_model_func_entry_num_args(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_ast Z3_get_model_func_entry_arg(Z3_context a0, Z3_model a1, uint a2, uint a3, uint a4) {
+ Z3_ast r = LIB.Z3_get_model_func_entry_arg(a0, a1, a2, a3, 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 static Z3_ast Z3_get_model_func_entry_value(Z3_context a0, Z3_model a1, uint a2, uint a3) {
+ Z3_ast r = LIB.Z3_get_model_func_entry_value(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 int Z3_eval(Z3_context a0, Z3_model a1, Z3_ast a2, [In, Out] ref Z3_ast a3) {
+ int r = LIB.Z3_eval(a0, a1, a2, ref 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 int Z3_eval_decl(Z3_context a0, Z3_model a1, Z3_func_decl a2, uint a3, [In] Z3_ast[] a4, [In, Out] ref Z3_ast a5) {
+ int r = LIB.Z3_eval_decl(a0, a1, a2, a3, a4, ref a5);
+ 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 string Z3_context_to_string(Z3_context a0) {
+ IntPtr r = LIB.Z3_context_to_string(a0);
+ 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 string Z3_statistics_to_string(Z3_context a0) {
+ IntPtr r = LIB.Z3_statistics_to_string(a0);
+ 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_ast Z3_get_context_assignment(Z3_context a0) {
+ Z3_ast r = LIB.Z3_get_context_assignment(a0);
+ 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;
+ }
+
+ }
+
+}
+
diff --git a/Microsoft.Z3/mk_z3consts.py b/Microsoft.Z3/mk_z3consts.py
deleted file mode 100644
index af0b51492..000000000
--- a/Microsoft.Z3/mk_z3consts.py
+++ /dev/null
@@ -1,86 +0,0 @@
-############################################
-# Copyright (c) 2012 Microsoft Corporation
-#
-# Extract enumeration types from z3_api.h
-#
-# Author: Leonardo de Moura (leonardo)
-# Christoph M. Wintersteiger (cwinter)
-############################################
-import re
-import os
-
-blank_pat = re.compile("^ *$")
-comment_pat = re.compile("^ *//.*$")
-typedef_pat = re.compile("typedef enum *")
-typedef2_pat = re.compile("typedef enum { *")
-openbrace_pat = re.compile("{ *")
-closebrace_pat = re.compile("}.*;")
-
-api = open('..%slib%sz3_api.h' % (os.sep, os.sep), 'r')
-
-DeprecatedEnums = { 'Z3_search_failure' }
-
-z3consts = open('Enumerations.cs', 'w')
-z3consts.write('// Automatically generated file, generator: mk_z3consts.py\n\n')
-z3consts.write('using System;\n\n'
- '#pragma warning disable 1591\n\n'
- 'namespace Microsoft.Z3\n'
- '{\n');
-
-SEARCHING = 0
-FOUND_ENUM = 1
-IN_ENUM = 2
-
-mode = SEARCHING
-decls = {}
-idx = 0
-
-linenum = 1
-for line in api:
- m1 = blank_pat.match(line)
- m2 = comment_pat.match(line)
- if m1 or m2:
- # skip blank lines and comments
- linenum = linenum + 1
- elif mode == SEARCHING:
- m = typedef_pat.match(line)
- if m:
- mode = FOUND_ENUM
- m = typedef2_pat.match(line)
- if m:
- mode = IN_ENUM
- decls = {}
- idx = 0
- elif mode == FOUND_ENUM:
- m = openbrace_pat.match(line)
- if m:
- mode = IN_ENUM
- decls = {}
- idx = 0
- else:
- assert False, "Invalid z3_api.h, line: %s" % linenum
- else:
- assert mode == IN_ENUM
- words = re.split('[^\-a-zA-Z0-9_]+', line)
- m = closebrace_pat.match(line)
- if m:
- name = words[1]
- if name not in DeprecatedEnums:
- z3consts.write(' /// %s\n' % name)
- z3consts.write(' public enum %s {\n' % name)
- z3consts.write
- for k, i in decls.iteritems():
- z3consts.write(' %s = %s,\n' % (k, i))
- z3consts.write(' }\n\n')
- mode = SEARCHING
- else:
- if words[2] != '':
- if len(words[2]) > 1 and words[2][1] == 'x':
- idx = int(words[2], 16)
- else:
- idx = int(words[2])
- decls[words[1]] = idx
- idx = idx + 1
- linenum = linenum + 1
-
-z3consts.write('}\n');
diff --git a/dll/mk_def.py b/dll/mk_def.py
deleted file mode 100644
index 2d0822eb0..000000000
--- a/dll/mk_def.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import re
-import os
-
-pat1 = re.compile(".*Z3_API.*")
-api = open('..%slib%sz3_api.h' % (os.sep, os.sep), 'r')
-
-z3def = open('z3.def', 'w')
-z3dbgdef = open('z3_dbg.def', 'w')
-
-z3def.write('LIBRARY "Z3"\nEXPORTS\n')
-z3dbgdef.write('LIBRARY "Z3_DBG"\nEXPORTS\n')
-
-num = 1
-for line in api:
- m = pat1.match(line)
- if m:
- words = re.split('\W+', line)
- i = 0
- for w in words:
- if w == 'Z3_API':
- f = words[i+1]
- z3def.write('\t%s @%s\n' % (f, num))
- z3dbgdef.write('\t%s @%s\n' % (f, num))
- i = i + 1
- num = num + 1
diff --git a/dll/z3.def b/dll/z3.def
index e65e8b225..efa434da3 100644
--- a/dll/z3.def
+++ b/dll/z3.def
@@ -1,522 +1,522 @@
-LIBRARY "Z3"
-EXPORTS
- Z3_mk_config @1
- Z3_del_config @2
- Z3_set_param_value @3
- Z3_mk_context @4
- Z3_mk_context_rc @5
- Z3_del_context @6
- Z3_inc_ref @7
- Z3_dec_ref @8
- Z3_update_param_value @9
- Z3_get_param_value @10
- Z3_interrupt @11
- Z3_mk_params @12
- Z3_params_inc_ref @13
- Z3_params_dec_ref @14
- Z3_params_set_bool @15
- Z3_params_set_uint @16
- Z3_params_set_double @17
- Z3_params_set_symbol @18
- Z3_params_to_string @19
- Z3_params_validate @20
- Z3_param_descrs_inc_ref @21
- Z3_param_descrs_dec_ref @22
- Z3_param_descrs_get_kind @23
- Z3_param_descrs_size @24
- Z3_param_descrs_get_name @25
- Z3_param_descrs_to_string @26
- Z3_mk_int_symbol @27
- Z3_mk_string_symbol @28
- Z3_mk_uninterpreted_sort @29
- Z3_mk_bool_sort @30
- Z3_mk_int_sort @31
- Z3_mk_real_sort @32
- Z3_mk_bv_sort @33
- Z3_mk_finite_domain_sort @34
- Z3_mk_array_sort @35
- Z3_mk_tuple_sort @36
- Z3_mk_enumeration_sort @37
- Z3_mk_list_sort @38
- Z3_mk_constructor @39
- Z3_del_constructor @40
- Z3_mk_datatype @41
- Z3_mk_constructor_list @42
- Z3_del_constructor_list @43
- Z3_mk_datatypes @44
- Z3_query_constructor @45
- Z3_mk_func_decl @46
- Z3_mk_app @47
- Z3_mk_const @48
- Z3_mk_fresh_func_decl @49
- Z3_mk_fresh_const @50
- Z3_mk_true @51
- Z3_mk_false @52
- Z3_mk_eq @53
- Z3_mk_distinct @54
- Z3_mk_not @55
- Z3_mk_ite @56
- Z3_mk_iff @57
- Z3_mk_implies @58
- Z3_mk_xor @59
- Z3_mk_and @60
- Z3_mk_or @61
- Z3_mk_add @62
- Z3_mk_mul @63
- Z3_mk_sub @64
- Z3_mk_unary_minus @65
- Z3_mk_div @66
- Z3_mk_mod @67
- Z3_mk_rem @68
- Z3_mk_power @69
- Z3_mk_lt @70
- Z3_mk_le @71
- Z3_mk_gt @72
- Z3_mk_ge @73
- Z3_mk_int2real @74
- Z3_mk_real2int @75
- Z3_mk_is_int @76
- Z3_mk_bvnot @77
- Z3_mk_bvredand @78
- Z3_mk_bvredor @79
- Z3_mk_bvand @80
- Z3_mk_bvor @81
- Z3_mk_bvxor @82
- Z3_mk_bvnand @83
- Z3_mk_bvnor @84
- Z3_mk_bvxnor @85
- Z3_mk_bvneg @86
- Z3_mk_bvadd @87
- Z3_mk_bvsub @88
- Z3_mk_bvmul @89
- Z3_mk_bvudiv @90
- Z3_mk_bvsdiv @91
- Z3_mk_bvurem @92
- Z3_mk_bvsrem @93
- Z3_mk_bvsmod @94
- Z3_mk_bvult @95
- Z3_mk_bvslt @96
- Z3_mk_bvule @97
- Z3_mk_bvsle @98
- Z3_mk_bvuge @99
- Z3_mk_bvsge @100
- Z3_mk_bvugt @101
- Z3_mk_bvsgt @102
- Z3_mk_concat @103
- Z3_mk_extract @104
- Z3_mk_sign_ext @105
- Z3_mk_zero_ext @106
- Z3_mk_repeat @107
- Z3_mk_bvshl @108
- Z3_mk_bvlshr @109
- Z3_mk_bvashr @110
- Z3_mk_rotate_left @111
- Z3_mk_rotate_right @112
- Z3_mk_ext_rotate_left @113
- Z3_mk_ext_rotate_right @114
- Z3_mk_int2bv @115
- Z3_mk_bv2int @116
- Z3_mk_bvadd_no_overflow @117
- Z3_mk_bvadd_no_underflow @118
- Z3_mk_bvsub_no_overflow @119
- Z3_mk_bvsub_no_underflow @120
- Z3_mk_bvsdiv_no_overflow @121
- Z3_mk_bvneg_no_overflow @122
- Z3_mk_bvmul_no_overflow @123
- Z3_mk_bvmul_no_underflow @124
- Z3_mk_select @125
- Z3_mk_store @126
- Z3_mk_const_array @127
- Z3_mk_map @128
- Z3_mk_array_default @129
- Z3_mk_set_sort @130
- Z3_mk_empty_set @131
- Z3_mk_full_set @132
- Z3_mk_set_add @133
- Z3_mk_set_del @134
- Z3_mk_set_union @135
- Z3_mk_set_intersect @136
- Z3_mk_set_difference @137
- Z3_mk_set_complement @138
- Z3_mk_set_member @139
- Z3_mk_set_subset @140
- Z3_mk_numeral @141
- Z3_mk_real @142
- Z3_mk_int @143
- Z3_mk_unsigned_int @144
- Z3_mk_int64 @145
- Z3_mk_unsigned_int64 @146
- Z3_mk_pattern @147
- Z3_mk_bound @148
- Z3_mk_forall @149
- Z3_mk_exists @150
- Z3_mk_quantifier @151
- Z3_mk_quantifier_ex @152
- Z3_mk_forall_const @153
- Z3_mk_exists_const @154
- Z3_mk_quantifier_const @155
- Z3_mk_quantifier_const_ex @156
- Z3_get_symbol_kind @157
- Z3_get_symbol_int @158
- Z3_get_symbol_string @159
- Z3_get_sort_name @160
- Z3_get_sort_id @161
- Z3_sort_to_ast @162
- Z3_is_eq_sort @163
- Z3_get_sort_kind @164
- Z3_get_bv_sort_size @165
- Z3_get_finite_domain_sort_size @166
- Z3_get_array_sort_domain @167
- Z3_get_array_sort_range @168
- Z3_get_tuple_sort_mk_decl @169
- Z3_get_tuple_sort_num_fields @170
- Z3_get_tuple_sort_field_decl @171
- Z3_get_datatype_sort_num_constructors @172
- Z3_get_datatype_sort_constructor @173
- Z3_get_datatype_sort_recognizer @174
- Z3_get_datatype_sort_constructor_accessor @175
- Z3_get_relation_arity @176
- Z3_get_relation_column @177
- Z3_func_decl_to_ast @178
- Z3_is_eq_func_decl @179
- Z3_get_func_decl_id @180
- Z3_get_decl_name @181
- Z3_get_decl_kind @182
- Z3_get_domain_size @183
- Z3_get_arity @184
- Z3_get_domain @185
- Z3_get_range @186
- Z3_get_decl_num_parameters @187
- Z3_get_decl_parameter_kind @188
- Z3_get_decl_int_parameter @189
- Z3_get_decl_double_parameter @190
- Z3_get_decl_symbol_parameter @191
- Z3_get_decl_sort_parameter @192
- Z3_get_decl_ast_parameter @193
- Z3_get_decl_func_decl_parameter @194
- Z3_get_decl_rational_parameter @195
- Z3_app_to_ast @196
- Z3_get_app_decl @197
- Z3_get_app_num_args @198
- Z3_get_app_arg @199
- Z3_is_eq_ast @200
- Z3_get_ast_id @201
- Z3_get_ast_hash @202
- Z3_get_sort @203
- Z3_is_well_sorted @204
- Z3_get_bool_value @205
- Z3_get_ast_kind @206
- Z3_is_app @207
- Z3_is_numeral_ast @208
- Z3_is_algebraic_number @209
- Z3_to_app @210
- Z3_to_func_decl @211
- Z3_get_numeral_string @212
- Z3_get_numeral_decimal_string @213
- Z3_get_numerator @214
- Z3_get_denominator @215
- Z3_get_numeral_small @216
- Z3_get_numeral_int @217
- Z3_get_numeral_uint @218
- Z3_get_numeral_uint64 @219
- Z3_get_numeral_int64 @220
- Z3_get_numeral_rational_int64 @221
- Z3_get_algebraic_number_lower @222
- Z3_get_algebraic_number_upper @223
- Z3_pattern_to_ast @224
- Z3_get_pattern_num_terms @225
- Z3_get_pattern @226
- Z3_get_index_value @227
- Z3_is_quantifier_forall @228
- Z3_get_quantifier_weight @229
- Z3_get_quantifier_num_patterns @230
- Z3_get_quantifier_pattern_ast @231
- Z3_get_quantifier_num_no_patterns @232
- Z3_get_quantifier_no_pattern_ast @233
- Z3_get_quantifier_num_bound @234
- Z3_get_quantifier_bound_name @235
- Z3_get_quantifier_bound_sort @236
- Z3_get_quantifier_body @237
- Z3_simplify @238
- Z3_simplify_ex @239
- Z3_simplify_get_help @240
- Z3_simplify_get_param_descrs @241
- Z3_update_term @242
- Z3_substitute @243
- Z3_substitute_vars @244
- Z3_translate @245
- Z3_model_inc_ref @246
- Z3_model_dec_ref @247
- Z3_model_eval @248
- Z3_model_get_const_interp @249
- Z3_model_get_func_interp @250
- Z3_model_get_num_consts @251
- Z3_model_get_const_decl @252
- Z3_model_get_num_funcs @253
- Z3_model_get_func_decl @254
- Z3_model_get_num_sorts @255
- Z3_model_get_sort @256
- Z3_model_get_sort_universe @257
- Z3_is_as_array @258
- Z3_get_as_array_func_decl @259
- Z3_func_interp_inc_ref @260
- Z3_func_interp_dec_ref @261
- Z3_func_interp_get_num_entries @262
- Z3_func_interp_get_entry @263
- Z3_func_interp_get_else @264
- Z3_func_interp_get_arity @265
- Z3_func_entry_inc_ref @266
- Z3_func_entry_dec_ref @267
- Z3_func_entry_get_value @268
- Z3_func_entry_get_num_args @269
- Z3_func_entry_get_arg @270
- Z3_open_log @271
- Z3_append_log @272
- Z3_close_log @273
- Z3_toggle_warning_messages @274
- Z3_set_ast_print_mode @275
- Z3_ast_to_string @276
- Z3_pattern_to_string @277
- Z3_sort_to_string @278
- Z3_func_decl_to_string @279
- Z3_model_to_string @280
- Z3_benchmark_to_smtlib_string @281
- Z3_parse_smtlib2_string @282
- Z3_parse_smtlib2_file @283
- Z3_parse_smtlib_string @284
- Z3_parse_smtlib_file @285
- Z3_get_smtlib_num_formulas @286
- Z3_get_smtlib_formula @287
- Z3_get_smtlib_num_assumptions @288
- Z3_get_smtlib_assumption @289
- Z3_get_smtlib_num_decls @290
- Z3_get_smtlib_decl @291
- Z3_get_smtlib_num_sorts @292
- Z3_get_smtlib_sort @293
- Z3_get_smtlib_error @294
- Z3_parse_z3_string @295
- Z3_parse_z3_file @296
- Z3_get_error_code @297
- Z3_set_error_handler @298
- Z3_set_error @299
- Z3_get_error_msg @300
- Z3_get_error_msg_ex @301
- Z3_get_version @302
- Z3_reset_memory @303
- Z3_mk_theory @304
- Z3_theory_get_ext_data @305
- Z3_theory_mk_sort @306
- Z3_theory_mk_value @307
- Z3_theory_mk_constant @308
- Z3_theory_mk_func_decl @309
- Z3_theory_get_context @310
- Z3_set_delete_callback @311
- Z3_set_reduce_app_callback @312
- Z3_set_reduce_eq_callback @313
- Z3_set_reduce_distinct_callback @314
- Z3_set_new_app_callback @315
- Z3_set_new_elem_callback @316
- Z3_set_init_search_callback @317
- Z3_set_push_callback @318
- Z3_set_pop_callback @319
- Z3_set_restart_callback @320
- Z3_set_reset_callback @321
- Z3_set_final_check_callback @322
- Z3_set_new_eq_callback @323
- Z3_set_new_diseq_callback @324
- Z3_set_new_assignment_callback @325
- Z3_set_new_relevant_callback @326
- Z3_theory_assert_axiom @327
- Z3_theory_assume_eq @328
- Z3_theory_enable_axiom_simplification @329
- Z3_theory_get_eqc_root @330
- Z3_theory_get_eqc_next @331
- Z3_theory_get_num_parents @332
- Z3_theory_get_parent @333
- Z3_theory_is_value @334
- Z3_theory_is_decl @335
- Z3_theory_get_num_elems @336
- Z3_theory_get_elem @337
- Z3_theory_get_num_apps @338
- Z3_theory_get_app @339
- Z3_mk_fixedpoint @340
- Z3_fixedpoint_inc_ref @341
- Z3_fixedpoint_dec_ref @342
- Z3_fixedpoint_add_rule @343
- Z3_fixedpoint_add_fact @344
- Z3_fixedpoint_assert @345
- Z3_fixedpoint_query @346
- Z3_fixedpoint_query_relations @347
- Z3_fixedpoint_get_answer @348
- Z3_fixedpoint_get_reason_unknown @349
- Z3_fixedpoint_update_rule @350
- Z3_fixedpoint_get_num_levels @351
- Z3_fixedpoint_get_cover_delta @352
- Z3_fixedpoint_add_cover @353
- Z3_fixedpoint_get_statistics @354
- Z3_fixedpoint_register_relation @355
- Z3_fixedpoint_set_predicate_representation @356
- Z3_fixedpoint_simplify_rules @357
- Z3_fixedpoint_set_params @358
- Z3_fixedpoint_get_help @359
- Z3_fixedpoint_get_param_descrs @360
- Z3_fixedpoint_to_string @361
- Z3_fixedpoint_push @362
- Z3_fixedpoint_pop @363
- Z3_fixedpoint_init @364
- Z3_fixedpoint_set_reduce_assign_callback @365
- Z3_fixedpoint_set_reduce_app_callback @366
- Z3_mk_ast_vector @367
- Z3_ast_vector_inc_ref @368
- Z3_ast_vector_dec_ref @369
- Z3_ast_vector_size @370
- Z3_ast_vector_get @371
- Z3_ast_vector_set @372
- Z3_ast_vector_resize @373
- Z3_ast_vector_push @374
- Z3_ast_vector_translate @375
- Z3_ast_vector_to_string @376
- Z3_mk_ast_map @377
- Z3_ast_map_inc_ref @378
- Z3_ast_map_dec_ref @379
- Z3_ast_map_contains @380
- Z3_ast_map_find @381
- Z3_ast_map_insert @382
- Z3_ast_map_erase @383
- Z3_ast_map_reset @384
- Z3_ast_map_size @385
- Z3_ast_map_keys @386
- Z3_ast_map_to_string @387
- Z3_mk_goal @388
- Z3_goal_inc_ref @389
- Z3_goal_dec_ref @390
- Z3_goal_precision @391
- Z3_goal_assert @392
- Z3_goal_inconsistent @393
- Z3_goal_depth @394
- Z3_goal_reset @395
- Z3_goal_size @396
- Z3_goal_formula @397
- Z3_goal_num_exprs @398
- Z3_goal_is_decided_sat @399
- Z3_goal_is_decided_unsat @400
- Z3_goal_translate @401
- Z3_goal_to_string @402
- Z3_mk_tactic @403
- Z3_tactic_inc_ref @404
- Z3_tactic_dec_ref @405
- Z3_mk_probe @406
- Z3_probe_inc_ref @407
- Z3_probe_dec_ref @408
- Z3_tactic_and_then @409
- Z3_tactic_or_else @410
- Z3_tactic_par_or @411
- Z3_tactic_par_and_then @412
- Z3_tactic_try_for @413
- Z3_tactic_when @414
- Z3_tactic_cond @415
- Z3_tactic_repeat @416
- Z3_tactic_skip @417
- Z3_tactic_fail @418
- Z3_tactic_fail_if @419
- Z3_tactic_fail_if_not_decided @420
- Z3_tactic_using_params @421
- Z3_probe_const @422
- Z3_probe_lt @423
- Z3_probe_gt @424
- Z3_probe_le @425
- Z3_probe_ge @426
- Z3_probe_eq @427
- Z3_probe_and @428
- Z3_probe_or @429
- Z3_probe_not @430
- Z3_get_num_tactics @431
- Z3_get_tactic_name @432
- Z3_get_num_probes @433
- Z3_get_probe_name @434
- Z3_tactic_get_help @435
- Z3_tactic_get_param_descrs @436
- Z3_tactic_get_descr @437
- Z3_probe_get_descr @438
- Z3_probe_apply @439
- Z3_tactic_apply @440
- Z3_tactic_apply_ex @441
- Z3_apply_result_inc_ref @442
- Z3_apply_result_dec_ref @443
- Z3_apply_result_to_string @444
- Z3_apply_result_get_num_subgoals @445
- Z3_apply_result_get_subgoal @446
- Z3_apply_result_convert_model @447
- Z3_mk_solver @448
- Z3_mk_simple_solver @449
- Z3_mk_solver_for_logic @450
- Z3_mk_solver_from_tactic @451
- Z3_solver_get_help @452
- Z3_solver_get_param_descrs @453
- Z3_solver_set_params @454
- Z3_solver_inc_ref @455
- Z3_solver_dec_ref @456
- Z3_solver_push @457
- Z3_solver_pop @458
- Z3_solver_reset @459
- Z3_solver_get_num_scopes @460
- Z3_solver_assert @461
- Z3_solver_get_assertions @462
- Z3_solver_check @463
- Z3_solver_check_assumptions @464
- Z3_solver_get_model @465
- Z3_solver_get_proof @466
- Z3_solver_get_unsat_core @467
- Z3_solver_get_reason_unknown @468
- Z3_solver_get_statistics @469
- Z3_solver_to_string @470
- Z3_stats_to_string @471
- Z3_stats_inc_ref @472
- Z3_stats_dec_ref @473
- Z3_stats_size @474
- Z3_stats_get_key @475
- Z3_stats_is_uint @476
- Z3_stats_is_double @477
- Z3_stats_get_uint_value @478
- Z3_stats_get_double_value @479
- Z3_mk_injective_function @480
- Z3_set_logic @481
- Z3_push @482
- Z3_pop @483
- Z3_get_num_scopes @484
- Z3_persist_ast @485
- Z3_assert_cnstr @486
- Z3_check_and_get_model @487
- Z3_check @488
- Z3_check_assumptions @489
- Z3_get_implied_equalities @490
- Z3_del_model @491
- Z3_soft_check_cancel @492
- Z3_get_search_failure @493
- Z3_mk_label @494
- Z3_get_relevant_labels @495
- Z3_get_relevant_literals @496
- Z3_get_guessed_literals @497
- Z3_del_literals @498
- Z3_get_num_literals @499
- Z3_get_label_symbol @500
- Z3_get_literal @501
- Z3_disable_literal @502
- Z3_block_literals @503
- Z3_get_model_num_constants @504
- Z3_get_model_constant @505
- Z3_get_model_num_funcs @506
- Z3_get_model_func_decl @507
- Z3_eval_func_decl @508
- Z3_is_array_value @509
- Z3_get_array_value @510
- Z3_get_model_func_else @511
- Z3_get_model_func_num_entries @512
- Z3_get_model_func_entry_num_args @513
- Z3_get_model_func_entry_arg @514
- Z3_get_model_func_entry_value @515
- Z3_eval @516
- Z3_eval_decl @517
- Z3_context_to_string @518
- Z3_statistics_to_string @519
- Z3_get_context_assignment @520
+LIBRARY "Z3"
+EXPORTS
+ Z3_mk_config @1
+ Z3_del_config @2
+ Z3_set_param_value @3
+ Z3_mk_context @4
+ Z3_mk_context_rc @5
+ Z3_del_context @6
+ Z3_inc_ref @7
+ Z3_dec_ref @8
+ Z3_update_param_value @9
+ Z3_get_param_value @10
+ Z3_interrupt @11
+ Z3_mk_params @12
+ Z3_params_inc_ref @13
+ Z3_params_dec_ref @14
+ Z3_params_set_bool @15
+ Z3_params_set_uint @16
+ Z3_params_set_double @17
+ Z3_params_set_symbol @18
+ Z3_params_to_string @19
+ Z3_params_validate @20
+ Z3_param_descrs_inc_ref @21
+ Z3_param_descrs_dec_ref @22
+ Z3_param_descrs_get_kind @23
+ Z3_param_descrs_size @24
+ Z3_param_descrs_get_name @25
+ Z3_param_descrs_to_string @26
+ Z3_mk_int_symbol @27
+ Z3_mk_string_symbol @28
+ Z3_mk_uninterpreted_sort @29
+ Z3_mk_bool_sort @30
+ Z3_mk_int_sort @31
+ Z3_mk_real_sort @32
+ Z3_mk_bv_sort @33
+ Z3_mk_finite_domain_sort @34
+ Z3_mk_array_sort @35
+ Z3_mk_tuple_sort @36
+ Z3_mk_enumeration_sort @37
+ Z3_mk_list_sort @38
+ Z3_mk_constructor @39
+ Z3_del_constructor @40
+ Z3_mk_datatype @41
+ Z3_mk_constructor_list @42
+ Z3_del_constructor_list @43
+ Z3_mk_datatypes @44
+ Z3_query_constructor @45
+ Z3_mk_func_decl @46
+ Z3_mk_app @47
+ Z3_mk_const @48
+ Z3_mk_fresh_func_decl @49
+ Z3_mk_fresh_const @50
+ Z3_mk_true @51
+ Z3_mk_false @52
+ Z3_mk_eq @53
+ Z3_mk_distinct @54
+ Z3_mk_not @55
+ Z3_mk_ite @56
+ Z3_mk_iff @57
+ Z3_mk_implies @58
+ Z3_mk_xor @59
+ Z3_mk_and @60
+ Z3_mk_or @61
+ Z3_mk_add @62
+ Z3_mk_mul @63
+ Z3_mk_sub @64
+ Z3_mk_unary_minus @65
+ Z3_mk_div @66
+ Z3_mk_mod @67
+ Z3_mk_rem @68
+ Z3_mk_power @69
+ Z3_mk_lt @70
+ Z3_mk_le @71
+ Z3_mk_gt @72
+ Z3_mk_ge @73
+ Z3_mk_int2real @74
+ Z3_mk_real2int @75
+ Z3_mk_is_int @76
+ Z3_mk_bvnot @77
+ Z3_mk_bvredand @78
+ Z3_mk_bvredor @79
+ Z3_mk_bvand @80
+ Z3_mk_bvor @81
+ Z3_mk_bvxor @82
+ Z3_mk_bvnand @83
+ Z3_mk_bvnor @84
+ Z3_mk_bvxnor @85
+ Z3_mk_bvneg @86
+ Z3_mk_bvadd @87
+ Z3_mk_bvsub @88
+ Z3_mk_bvmul @89
+ Z3_mk_bvudiv @90
+ Z3_mk_bvsdiv @91
+ Z3_mk_bvurem @92
+ Z3_mk_bvsrem @93
+ Z3_mk_bvsmod @94
+ Z3_mk_bvult @95
+ Z3_mk_bvslt @96
+ Z3_mk_bvule @97
+ Z3_mk_bvsle @98
+ Z3_mk_bvuge @99
+ Z3_mk_bvsge @100
+ Z3_mk_bvugt @101
+ Z3_mk_bvsgt @102
+ Z3_mk_concat @103
+ Z3_mk_extract @104
+ Z3_mk_sign_ext @105
+ Z3_mk_zero_ext @106
+ Z3_mk_repeat @107
+ Z3_mk_bvshl @108
+ Z3_mk_bvlshr @109
+ Z3_mk_bvashr @110
+ Z3_mk_rotate_left @111
+ Z3_mk_rotate_right @112
+ Z3_mk_ext_rotate_left @113
+ Z3_mk_ext_rotate_right @114
+ Z3_mk_int2bv @115
+ Z3_mk_bv2int @116
+ Z3_mk_bvadd_no_overflow @117
+ Z3_mk_bvadd_no_underflow @118
+ Z3_mk_bvsub_no_overflow @119
+ Z3_mk_bvsub_no_underflow @120
+ Z3_mk_bvsdiv_no_overflow @121
+ Z3_mk_bvneg_no_overflow @122
+ Z3_mk_bvmul_no_overflow @123
+ Z3_mk_bvmul_no_underflow @124
+ Z3_mk_select @125
+ Z3_mk_store @126
+ Z3_mk_const_array @127
+ Z3_mk_map @128
+ Z3_mk_array_default @129
+ Z3_mk_set_sort @130
+ Z3_mk_empty_set @131
+ Z3_mk_full_set @132
+ Z3_mk_set_add @133
+ Z3_mk_set_del @134
+ Z3_mk_set_union @135
+ Z3_mk_set_intersect @136
+ Z3_mk_set_difference @137
+ Z3_mk_set_complement @138
+ Z3_mk_set_member @139
+ Z3_mk_set_subset @140
+ Z3_mk_numeral @141
+ Z3_mk_real @142
+ Z3_mk_int @143
+ Z3_mk_unsigned_int @144
+ Z3_mk_int64 @145
+ Z3_mk_unsigned_int64 @146
+ Z3_mk_pattern @147
+ Z3_mk_bound @148
+ Z3_mk_forall @149
+ Z3_mk_exists @150
+ Z3_mk_quantifier @151
+ Z3_mk_quantifier_ex @152
+ Z3_mk_forall_const @153
+ Z3_mk_exists_const @154
+ Z3_mk_quantifier_const @155
+ Z3_mk_quantifier_const_ex @156
+ Z3_get_symbol_kind @157
+ Z3_get_symbol_int @158
+ Z3_get_symbol_string @159
+ Z3_get_sort_name @160
+ Z3_get_sort_id @161
+ Z3_sort_to_ast @162
+ Z3_is_eq_sort @163
+ Z3_get_sort_kind @164
+ Z3_get_bv_sort_size @165
+ Z3_get_finite_domain_sort_size @166
+ Z3_get_array_sort_domain @167
+ Z3_get_array_sort_range @168
+ Z3_get_tuple_sort_mk_decl @169
+ Z3_get_tuple_sort_num_fields @170
+ Z3_get_tuple_sort_field_decl @171
+ Z3_get_datatype_sort_num_constructors @172
+ Z3_get_datatype_sort_constructor @173
+ Z3_get_datatype_sort_recognizer @174
+ Z3_get_datatype_sort_constructor_accessor @175
+ Z3_get_relation_arity @176
+ Z3_get_relation_column @177
+ Z3_func_decl_to_ast @178
+ Z3_is_eq_func_decl @179
+ Z3_get_func_decl_id @180
+ Z3_get_decl_name @181
+ Z3_get_decl_kind @182
+ Z3_get_domain_size @183
+ Z3_get_arity @184
+ Z3_get_domain @185
+ Z3_get_range @186
+ Z3_get_decl_num_parameters @187
+ Z3_get_decl_parameter_kind @188
+ Z3_get_decl_int_parameter @189
+ Z3_get_decl_double_parameter @190
+ Z3_get_decl_symbol_parameter @191
+ Z3_get_decl_sort_parameter @192
+ Z3_get_decl_ast_parameter @193
+ Z3_get_decl_func_decl_parameter @194
+ Z3_get_decl_rational_parameter @195
+ Z3_app_to_ast @196
+ Z3_get_app_decl @197
+ Z3_get_app_num_args @198
+ Z3_get_app_arg @199
+ Z3_is_eq_ast @200
+ Z3_get_ast_id @201
+ Z3_get_ast_hash @202
+ Z3_get_sort @203
+ Z3_is_well_sorted @204
+ Z3_get_bool_value @205
+ Z3_get_ast_kind @206
+ Z3_is_app @207
+ Z3_is_numeral_ast @208
+ Z3_is_algebraic_number @209
+ Z3_to_app @210
+ Z3_to_func_decl @211
+ Z3_get_numeral_string @212
+ Z3_get_numeral_decimal_string @213
+ Z3_get_numerator @214
+ Z3_get_denominator @215
+ Z3_get_numeral_small @216
+ Z3_get_numeral_int @217
+ Z3_get_numeral_uint @218
+ Z3_get_numeral_uint64 @219
+ Z3_get_numeral_int64 @220
+ Z3_get_numeral_rational_int64 @221
+ Z3_get_algebraic_number_lower @222
+ Z3_get_algebraic_number_upper @223
+ Z3_pattern_to_ast @224
+ Z3_get_pattern_num_terms @225
+ Z3_get_pattern @226
+ Z3_get_index_value @227
+ Z3_is_quantifier_forall @228
+ Z3_get_quantifier_weight @229
+ Z3_get_quantifier_num_patterns @230
+ Z3_get_quantifier_pattern_ast @231
+ Z3_get_quantifier_num_no_patterns @232
+ Z3_get_quantifier_no_pattern_ast @233
+ Z3_get_quantifier_num_bound @234
+ Z3_get_quantifier_bound_name @235
+ Z3_get_quantifier_bound_sort @236
+ Z3_get_quantifier_body @237
+ Z3_simplify @238
+ Z3_simplify_ex @239
+ Z3_simplify_get_help @240
+ Z3_simplify_get_param_descrs @241
+ Z3_update_term @242
+ Z3_substitute @243
+ Z3_substitute_vars @244
+ Z3_translate @245
+ Z3_model_inc_ref @246
+ Z3_model_dec_ref @247
+ Z3_model_eval @248
+ Z3_model_get_const_interp @249
+ Z3_model_get_func_interp @250
+ Z3_model_get_num_consts @251
+ Z3_model_get_const_decl @252
+ Z3_model_get_num_funcs @253
+ Z3_model_get_func_decl @254
+ Z3_model_get_num_sorts @255
+ Z3_model_get_sort @256
+ Z3_model_get_sort_universe @257
+ Z3_is_as_array @258
+ Z3_get_as_array_func_decl @259
+ Z3_func_interp_inc_ref @260
+ Z3_func_interp_dec_ref @261
+ Z3_func_interp_get_num_entries @262
+ Z3_func_interp_get_entry @263
+ Z3_func_interp_get_else @264
+ Z3_func_interp_get_arity @265
+ Z3_func_entry_inc_ref @266
+ Z3_func_entry_dec_ref @267
+ Z3_func_entry_get_value @268
+ Z3_func_entry_get_num_args @269
+ Z3_func_entry_get_arg @270
+ Z3_open_log @271
+ Z3_append_log @272
+ Z3_close_log @273
+ Z3_toggle_warning_messages @274
+ Z3_set_ast_print_mode @275
+ Z3_ast_to_string @276
+ Z3_pattern_to_string @277
+ Z3_sort_to_string @278
+ Z3_func_decl_to_string @279
+ Z3_model_to_string @280
+ Z3_benchmark_to_smtlib_string @281
+ Z3_parse_smtlib2_string @282
+ Z3_parse_smtlib2_file @283
+ Z3_parse_smtlib_string @284
+ Z3_parse_smtlib_file @285
+ Z3_get_smtlib_num_formulas @286
+ Z3_get_smtlib_formula @287
+ Z3_get_smtlib_num_assumptions @288
+ Z3_get_smtlib_assumption @289
+ Z3_get_smtlib_num_decls @290
+ Z3_get_smtlib_decl @291
+ Z3_get_smtlib_num_sorts @292
+ Z3_get_smtlib_sort @293
+ Z3_get_smtlib_error @294
+ Z3_parse_z3_string @295
+ Z3_parse_z3_file @296
+ Z3_get_error_code @297
+ Z3_set_error_handler @298
+ Z3_set_error @299
+ Z3_get_error_msg @300
+ Z3_get_error_msg_ex @301
+ Z3_get_version @302
+ Z3_reset_memory @303
+ Z3_mk_theory @304
+ Z3_theory_get_ext_data @305
+ Z3_theory_mk_sort @306
+ Z3_theory_mk_value @307
+ Z3_theory_mk_constant @308
+ Z3_theory_mk_func_decl @309
+ Z3_theory_get_context @310
+ Z3_set_delete_callback @311
+ Z3_set_reduce_app_callback @312
+ Z3_set_reduce_eq_callback @313
+ Z3_set_reduce_distinct_callback @314
+ Z3_set_new_app_callback @315
+ Z3_set_new_elem_callback @316
+ Z3_set_init_search_callback @317
+ Z3_set_push_callback @318
+ Z3_set_pop_callback @319
+ Z3_set_restart_callback @320
+ Z3_set_reset_callback @321
+ Z3_set_final_check_callback @322
+ Z3_set_new_eq_callback @323
+ Z3_set_new_diseq_callback @324
+ Z3_set_new_assignment_callback @325
+ Z3_set_new_relevant_callback @326
+ Z3_theory_assert_axiom @327
+ Z3_theory_assume_eq @328
+ Z3_theory_enable_axiom_simplification @329
+ Z3_theory_get_eqc_root @330
+ Z3_theory_get_eqc_next @331
+ Z3_theory_get_num_parents @332
+ Z3_theory_get_parent @333
+ Z3_theory_is_value @334
+ Z3_theory_is_decl @335
+ Z3_theory_get_num_elems @336
+ Z3_theory_get_elem @337
+ Z3_theory_get_num_apps @338
+ Z3_theory_get_app @339
+ Z3_mk_fixedpoint @340
+ Z3_fixedpoint_inc_ref @341
+ Z3_fixedpoint_dec_ref @342
+ Z3_fixedpoint_add_rule @343
+ Z3_fixedpoint_add_fact @344
+ Z3_fixedpoint_assert @345
+ Z3_fixedpoint_query @346
+ Z3_fixedpoint_query_relations @347
+ Z3_fixedpoint_get_answer @348
+ Z3_fixedpoint_get_reason_unknown @349
+ Z3_fixedpoint_update_rule @350
+ Z3_fixedpoint_get_num_levels @351
+ Z3_fixedpoint_get_cover_delta @352
+ Z3_fixedpoint_add_cover @353
+ Z3_fixedpoint_get_statistics @354
+ Z3_fixedpoint_register_relation @355
+ Z3_fixedpoint_set_predicate_representation @356
+ Z3_fixedpoint_simplify_rules @357
+ Z3_fixedpoint_set_params @358
+ Z3_fixedpoint_get_help @359
+ Z3_fixedpoint_get_param_descrs @360
+ Z3_fixedpoint_to_string @361
+ Z3_fixedpoint_push @362
+ Z3_fixedpoint_pop @363
+ Z3_fixedpoint_init @364
+ Z3_fixedpoint_set_reduce_assign_callback @365
+ Z3_fixedpoint_set_reduce_app_callback @366
+ Z3_mk_ast_vector @367
+ Z3_ast_vector_inc_ref @368
+ Z3_ast_vector_dec_ref @369
+ Z3_ast_vector_size @370
+ Z3_ast_vector_get @371
+ Z3_ast_vector_set @372
+ Z3_ast_vector_resize @373
+ Z3_ast_vector_push @374
+ Z3_ast_vector_translate @375
+ Z3_ast_vector_to_string @376
+ Z3_mk_ast_map @377
+ Z3_ast_map_inc_ref @378
+ Z3_ast_map_dec_ref @379
+ Z3_ast_map_contains @380
+ Z3_ast_map_find @381
+ Z3_ast_map_insert @382
+ Z3_ast_map_erase @383
+ Z3_ast_map_reset @384
+ Z3_ast_map_size @385
+ Z3_ast_map_keys @386
+ Z3_ast_map_to_string @387
+ Z3_mk_goal @388
+ Z3_goal_inc_ref @389
+ Z3_goal_dec_ref @390
+ Z3_goal_precision @391
+ Z3_goal_assert @392
+ Z3_goal_inconsistent @393
+ Z3_goal_depth @394
+ Z3_goal_reset @395
+ Z3_goal_size @396
+ Z3_goal_formula @397
+ Z3_goal_num_exprs @398
+ Z3_goal_is_decided_sat @399
+ Z3_goal_is_decided_unsat @400
+ Z3_goal_translate @401
+ Z3_goal_to_string @402
+ Z3_mk_tactic @403
+ Z3_tactic_inc_ref @404
+ Z3_tactic_dec_ref @405
+ Z3_mk_probe @406
+ Z3_probe_inc_ref @407
+ Z3_probe_dec_ref @408
+ Z3_tactic_and_then @409
+ Z3_tactic_or_else @410
+ Z3_tactic_par_or @411
+ Z3_tactic_par_and_then @412
+ Z3_tactic_try_for @413
+ Z3_tactic_when @414
+ Z3_tactic_cond @415
+ Z3_tactic_repeat @416
+ Z3_tactic_skip @417
+ Z3_tactic_fail @418
+ Z3_tactic_fail_if @419
+ Z3_tactic_fail_if_not_decided @420
+ Z3_tactic_using_params @421
+ Z3_probe_const @422
+ Z3_probe_lt @423
+ Z3_probe_gt @424
+ Z3_probe_le @425
+ Z3_probe_ge @426
+ Z3_probe_eq @427
+ Z3_probe_and @428
+ Z3_probe_or @429
+ Z3_probe_not @430
+ Z3_get_num_tactics @431
+ Z3_get_tactic_name @432
+ Z3_get_num_probes @433
+ Z3_get_probe_name @434
+ Z3_tactic_get_help @435
+ Z3_tactic_get_param_descrs @436
+ Z3_tactic_get_descr @437
+ Z3_probe_get_descr @438
+ Z3_probe_apply @439
+ Z3_tactic_apply @440
+ Z3_tactic_apply_ex @441
+ Z3_apply_result_inc_ref @442
+ Z3_apply_result_dec_ref @443
+ Z3_apply_result_to_string @444
+ Z3_apply_result_get_num_subgoals @445
+ Z3_apply_result_get_subgoal @446
+ Z3_apply_result_convert_model @447
+ Z3_mk_solver @448
+ Z3_mk_simple_solver @449
+ Z3_mk_solver_for_logic @450
+ Z3_mk_solver_from_tactic @451
+ Z3_solver_get_help @452
+ Z3_solver_get_param_descrs @453
+ Z3_solver_set_params @454
+ Z3_solver_inc_ref @455
+ Z3_solver_dec_ref @456
+ Z3_solver_push @457
+ Z3_solver_pop @458
+ Z3_solver_reset @459
+ Z3_solver_get_num_scopes @460
+ Z3_solver_assert @461
+ Z3_solver_get_assertions @462
+ Z3_solver_check @463
+ Z3_solver_check_assumptions @464
+ Z3_solver_get_model @465
+ Z3_solver_get_proof @466
+ Z3_solver_get_unsat_core @467
+ Z3_solver_get_reason_unknown @468
+ Z3_solver_get_statistics @469
+ Z3_solver_to_string @470
+ Z3_stats_to_string @471
+ Z3_stats_inc_ref @472
+ Z3_stats_dec_ref @473
+ Z3_stats_size @474
+ Z3_stats_get_key @475
+ Z3_stats_is_uint @476
+ Z3_stats_is_double @477
+ Z3_stats_get_uint_value @478
+ Z3_stats_get_double_value @479
+ Z3_mk_injective_function @480
+ Z3_set_logic @481
+ Z3_push @482
+ Z3_pop @483
+ Z3_get_num_scopes @484
+ Z3_persist_ast @485
+ Z3_assert_cnstr @486
+ Z3_check_and_get_model @487
+ Z3_check @488
+ Z3_check_assumptions @489
+ Z3_get_implied_equalities @490
+ Z3_del_model @491
+ Z3_soft_check_cancel @492
+ Z3_get_search_failure @493
+ Z3_mk_label @494
+ Z3_get_relevant_labels @495
+ Z3_get_relevant_literals @496
+ Z3_get_guessed_literals @497
+ Z3_del_literals @498
+ Z3_get_num_literals @499
+ Z3_get_label_symbol @500
+ Z3_get_literal @501
+ Z3_disable_literal @502
+ Z3_block_literals @503
+ Z3_get_model_num_constants @504
+ Z3_get_model_constant @505
+ Z3_get_model_num_funcs @506
+ Z3_get_model_func_decl @507
+ Z3_eval_func_decl @508
+ Z3_is_array_value @509
+ Z3_get_array_value @510
+ Z3_get_model_func_else @511
+ Z3_get_model_func_num_entries @512
+ Z3_get_model_func_entry_num_args @513
+ Z3_get_model_func_entry_arg @514
+ Z3_get_model_func_entry_value @515
+ Z3_eval @516
+ Z3_eval_decl @517
+ Z3_context_to_string @518
+ Z3_statistics_to_string @519
+ Z3_get_context_assignment @520
diff --git a/dll/z3_dbg.def b/dll/z3_dbg.def
index e74292bd3..1de8e7e31 100644
--- a/dll/z3_dbg.def
+++ b/dll/z3_dbg.def
@@ -1,522 +1,522 @@
-LIBRARY "Z3_DBG"
-EXPORTS
- Z3_mk_config @1
- Z3_del_config @2
- Z3_set_param_value @3
- Z3_mk_context @4
- Z3_mk_context_rc @5
- Z3_del_context @6
- Z3_inc_ref @7
- Z3_dec_ref @8
- Z3_update_param_value @9
- Z3_get_param_value @10
- Z3_interrupt @11
- Z3_mk_params @12
- Z3_params_inc_ref @13
- Z3_params_dec_ref @14
- Z3_params_set_bool @15
- Z3_params_set_uint @16
- Z3_params_set_double @17
- Z3_params_set_symbol @18
- Z3_params_to_string @19
- Z3_params_validate @20
- Z3_param_descrs_inc_ref @21
- Z3_param_descrs_dec_ref @22
- Z3_param_descrs_get_kind @23
- Z3_param_descrs_size @24
- Z3_param_descrs_get_name @25
- Z3_param_descrs_to_string @26
- Z3_mk_int_symbol @27
- Z3_mk_string_symbol @28
- Z3_mk_uninterpreted_sort @29
- Z3_mk_bool_sort @30
- Z3_mk_int_sort @31
- Z3_mk_real_sort @32
- Z3_mk_bv_sort @33
- Z3_mk_finite_domain_sort @34
- Z3_mk_array_sort @35
- Z3_mk_tuple_sort @36
- Z3_mk_enumeration_sort @37
- Z3_mk_list_sort @38
- Z3_mk_constructor @39
- Z3_del_constructor @40
- Z3_mk_datatype @41
- Z3_mk_constructor_list @42
- Z3_del_constructor_list @43
- Z3_mk_datatypes @44
- Z3_query_constructor @45
- Z3_mk_func_decl @46
- Z3_mk_app @47
- Z3_mk_const @48
- Z3_mk_fresh_func_decl @49
- Z3_mk_fresh_const @50
- Z3_mk_true @51
- Z3_mk_false @52
- Z3_mk_eq @53
- Z3_mk_distinct @54
- Z3_mk_not @55
- Z3_mk_ite @56
- Z3_mk_iff @57
- Z3_mk_implies @58
- Z3_mk_xor @59
- Z3_mk_and @60
- Z3_mk_or @61
- Z3_mk_add @62
- Z3_mk_mul @63
- Z3_mk_sub @64
- Z3_mk_unary_minus @65
- Z3_mk_div @66
- Z3_mk_mod @67
- Z3_mk_rem @68
- Z3_mk_power @69
- Z3_mk_lt @70
- Z3_mk_le @71
- Z3_mk_gt @72
- Z3_mk_ge @73
- Z3_mk_int2real @74
- Z3_mk_real2int @75
- Z3_mk_is_int @76
- Z3_mk_bvnot @77
- Z3_mk_bvredand @78
- Z3_mk_bvredor @79
- Z3_mk_bvand @80
- Z3_mk_bvor @81
- Z3_mk_bvxor @82
- Z3_mk_bvnand @83
- Z3_mk_bvnor @84
- Z3_mk_bvxnor @85
- Z3_mk_bvneg @86
- Z3_mk_bvadd @87
- Z3_mk_bvsub @88
- Z3_mk_bvmul @89
- Z3_mk_bvudiv @90
- Z3_mk_bvsdiv @91
- Z3_mk_bvurem @92
- Z3_mk_bvsrem @93
- Z3_mk_bvsmod @94
- Z3_mk_bvult @95
- Z3_mk_bvslt @96
- Z3_mk_bvule @97
- Z3_mk_bvsle @98
- Z3_mk_bvuge @99
- Z3_mk_bvsge @100
- Z3_mk_bvugt @101
- Z3_mk_bvsgt @102
- Z3_mk_concat @103
- Z3_mk_extract @104
- Z3_mk_sign_ext @105
- Z3_mk_zero_ext @106
- Z3_mk_repeat @107
- Z3_mk_bvshl @108
- Z3_mk_bvlshr @109
- Z3_mk_bvashr @110
- Z3_mk_rotate_left @111
- Z3_mk_rotate_right @112
- Z3_mk_ext_rotate_left @113
- Z3_mk_ext_rotate_right @114
- Z3_mk_int2bv @115
- Z3_mk_bv2int @116
- Z3_mk_bvadd_no_overflow @117
- Z3_mk_bvadd_no_underflow @118
- Z3_mk_bvsub_no_overflow @119
- Z3_mk_bvsub_no_underflow @120
- Z3_mk_bvsdiv_no_overflow @121
- Z3_mk_bvneg_no_overflow @122
- Z3_mk_bvmul_no_overflow @123
- Z3_mk_bvmul_no_underflow @124
- Z3_mk_select @125
- Z3_mk_store @126
- Z3_mk_const_array @127
- Z3_mk_map @128
- Z3_mk_array_default @129
- Z3_mk_set_sort @130
- Z3_mk_empty_set @131
- Z3_mk_full_set @132
- Z3_mk_set_add @133
- Z3_mk_set_del @134
- Z3_mk_set_union @135
- Z3_mk_set_intersect @136
- Z3_mk_set_difference @137
- Z3_mk_set_complement @138
- Z3_mk_set_member @139
- Z3_mk_set_subset @140
- Z3_mk_numeral @141
- Z3_mk_real @142
- Z3_mk_int @143
- Z3_mk_unsigned_int @144
- Z3_mk_int64 @145
- Z3_mk_unsigned_int64 @146
- Z3_mk_pattern @147
- Z3_mk_bound @148
- Z3_mk_forall @149
- Z3_mk_exists @150
- Z3_mk_quantifier @151
- Z3_mk_quantifier_ex @152
- Z3_mk_forall_const @153
- Z3_mk_exists_const @154
- Z3_mk_quantifier_const @155
- Z3_mk_quantifier_const_ex @156
- Z3_get_symbol_kind @157
- Z3_get_symbol_int @158
- Z3_get_symbol_string @159
- Z3_get_sort_name @160
- Z3_get_sort_id @161
- Z3_sort_to_ast @162
- Z3_is_eq_sort @163
- Z3_get_sort_kind @164
- Z3_get_bv_sort_size @165
- Z3_get_finite_domain_sort_size @166
- Z3_get_array_sort_domain @167
- Z3_get_array_sort_range @168
- Z3_get_tuple_sort_mk_decl @169
- Z3_get_tuple_sort_num_fields @170
- Z3_get_tuple_sort_field_decl @171
- Z3_get_datatype_sort_num_constructors @172
- Z3_get_datatype_sort_constructor @173
- Z3_get_datatype_sort_recognizer @174
- Z3_get_datatype_sort_constructor_accessor @175
- Z3_get_relation_arity @176
- Z3_get_relation_column @177
- Z3_func_decl_to_ast @178
- Z3_is_eq_func_decl @179
- Z3_get_func_decl_id @180
- Z3_get_decl_name @181
- Z3_get_decl_kind @182
- Z3_get_domain_size @183
- Z3_get_arity @184
- Z3_get_domain @185
- Z3_get_range @186
- Z3_get_decl_num_parameters @187
- Z3_get_decl_parameter_kind @188
- Z3_get_decl_int_parameter @189
- Z3_get_decl_double_parameter @190
- Z3_get_decl_symbol_parameter @191
- Z3_get_decl_sort_parameter @192
- Z3_get_decl_ast_parameter @193
- Z3_get_decl_func_decl_parameter @194
- Z3_get_decl_rational_parameter @195
- Z3_app_to_ast @196
- Z3_get_app_decl @197
- Z3_get_app_num_args @198
- Z3_get_app_arg @199
- Z3_is_eq_ast @200
- Z3_get_ast_id @201
- Z3_get_ast_hash @202
- Z3_get_sort @203
- Z3_is_well_sorted @204
- Z3_get_bool_value @205
- Z3_get_ast_kind @206
- Z3_is_app @207
- Z3_is_numeral_ast @208
- Z3_is_algebraic_number @209
- Z3_to_app @210
- Z3_to_func_decl @211
- Z3_get_numeral_string @212
- Z3_get_numeral_decimal_string @213
- Z3_get_numerator @214
- Z3_get_denominator @215
- Z3_get_numeral_small @216
- Z3_get_numeral_int @217
- Z3_get_numeral_uint @218
- Z3_get_numeral_uint64 @219
- Z3_get_numeral_int64 @220
- Z3_get_numeral_rational_int64 @221
- Z3_get_algebraic_number_lower @222
- Z3_get_algebraic_number_upper @223
- Z3_pattern_to_ast @224
- Z3_get_pattern_num_terms @225
- Z3_get_pattern @226
- Z3_get_index_value @227
- Z3_is_quantifier_forall @228
- Z3_get_quantifier_weight @229
- Z3_get_quantifier_num_patterns @230
- Z3_get_quantifier_pattern_ast @231
- Z3_get_quantifier_num_no_patterns @232
- Z3_get_quantifier_no_pattern_ast @233
- Z3_get_quantifier_num_bound @234
- Z3_get_quantifier_bound_name @235
- Z3_get_quantifier_bound_sort @236
- Z3_get_quantifier_body @237
- Z3_simplify @238
- Z3_simplify_ex @239
- Z3_simplify_get_help @240
- Z3_simplify_get_param_descrs @241
- Z3_update_term @242
- Z3_substitute @243
- Z3_substitute_vars @244
- Z3_translate @245
- Z3_model_inc_ref @246
- Z3_model_dec_ref @247
- Z3_model_eval @248
- Z3_model_get_const_interp @249
- Z3_model_get_func_interp @250
- Z3_model_get_num_consts @251
- Z3_model_get_const_decl @252
- Z3_model_get_num_funcs @253
- Z3_model_get_func_decl @254
- Z3_model_get_num_sorts @255
- Z3_model_get_sort @256
- Z3_model_get_sort_universe @257
- Z3_is_as_array @258
- Z3_get_as_array_func_decl @259
- Z3_func_interp_inc_ref @260
- Z3_func_interp_dec_ref @261
- Z3_func_interp_get_num_entries @262
- Z3_func_interp_get_entry @263
- Z3_func_interp_get_else @264
- Z3_func_interp_get_arity @265
- Z3_func_entry_inc_ref @266
- Z3_func_entry_dec_ref @267
- Z3_func_entry_get_value @268
- Z3_func_entry_get_num_args @269
- Z3_func_entry_get_arg @270
- Z3_open_log @271
- Z3_append_log @272
- Z3_close_log @273
- Z3_toggle_warning_messages @274
- Z3_set_ast_print_mode @275
- Z3_ast_to_string @276
- Z3_pattern_to_string @277
- Z3_sort_to_string @278
- Z3_func_decl_to_string @279
- Z3_model_to_string @280
- Z3_benchmark_to_smtlib_string @281
- Z3_parse_smtlib2_string @282
- Z3_parse_smtlib2_file @283
- Z3_parse_smtlib_string @284
- Z3_parse_smtlib_file @285
- Z3_get_smtlib_num_formulas @286
- Z3_get_smtlib_formula @287
- Z3_get_smtlib_num_assumptions @288
- Z3_get_smtlib_assumption @289
- Z3_get_smtlib_num_decls @290
- Z3_get_smtlib_decl @291
- Z3_get_smtlib_num_sorts @292
- Z3_get_smtlib_sort @293
- Z3_get_smtlib_error @294
- Z3_parse_z3_string @295
- Z3_parse_z3_file @296
- Z3_get_error_code @297
- Z3_set_error_handler @298
- Z3_set_error @299
- Z3_get_error_msg @300
- Z3_get_error_msg_ex @301
- Z3_get_version @302
- Z3_reset_memory @303
- Z3_mk_theory @304
- Z3_theory_get_ext_data @305
- Z3_theory_mk_sort @306
- Z3_theory_mk_value @307
- Z3_theory_mk_constant @308
- Z3_theory_mk_func_decl @309
- Z3_theory_get_context @310
- Z3_set_delete_callback @311
- Z3_set_reduce_app_callback @312
- Z3_set_reduce_eq_callback @313
- Z3_set_reduce_distinct_callback @314
- Z3_set_new_app_callback @315
- Z3_set_new_elem_callback @316
- Z3_set_init_search_callback @317
- Z3_set_push_callback @318
- Z3_set_pop_callback @319
- Z3_set_restart_callback @320
- Z3_set_reset_callback @321
- Z3_set_final_check_callback @322
- Z3_set_new_eq_callback @323
- Z3_set_new_diseq_callback @324
- Z3_set_new_assignment_callback @325
- Z3_set_new_relevant_callback @326
- Z3_theory_assert_axiom @327
- Z3_theory_assume_eq @328
- Z3_theory_enable_axiom_simplification @329
- Z3_theory_get_eqc_root @330
- Z3_theory_get_eqc_next @331
- Z3_theory_get_num_parents @332
- Z3_theory_get_parent @333
- Z3_theory_is_value @334
- Z3_theory_is_decl @335
- Z3_theory_get_num_elems @336
- Z3_theory_get_elem @337
- Z3_theory_get_num_apps @338
- Z3_theory_get_app @339
- Z3_mk_fixedpoint @340
- Z3_fixedpoint_inc_ref @341
- Z3_fixedpoint_dec_ref @342
- Z3_fixedpoint_add_rule @343
- Z3_fixedpoint_add_fact @344
- Z3_fixedpoint_assert @345
- Z3_fixedpoint_query @346
- Z3_fixedpoint_query_relations @347
- Z3_fixedpoint_get_answer @348
- Z3_fixedpoint_get_reason_unknown @349
- Z3_fixedpoint_update_rule @350
- Z3_fixedpoint_get_num_levels @351
- Z3_fixedpoint_get_cover_delta @352
- Z3_fixedpoint_add_cover @353
- Z3_fixedpoint_get_statistics @354
- Z3_fixedpoint_register_relation @355
- Z3_fixedpoint_set_predicate_representation @356
- Z3_fixedpoint_simplify_rules @357
- Z3_fixedpoint_set_params @358
- Z3_fixedpoint_get_help @359
- Z3_fixedpoint_get_param_descrs @360
- Z3_fixedpoint_to_string @361
- Z3_fixedpoint_push @362
- Z3_fixedpoint_pop @363
- Z3_fixedpoint_init @364
- Z3_fixedpoint_set_reduce_assign_callback @365
- Z3_fixedpoint_set_reduce_app_callback @366
- Z3_mk_ast_vector @367
- Z3_ast_vector_inc_ref @368
- Z3_ast_vector_dec_ref @369
- Z3_ast_vector_size @370
- Z3_ast_vector_get @371
- Z3_ast_vector_set @372
- Z3_ast_vector_resize @373
- Z3_ast_vector_push @374
- Z3_ast_vector_translate @375
- Z3_ast_vector_to_string @376
- Z3_mk_ast_map @377
- Z3_ast_map_inc_ref @378
- Z3_ast_map_dec_ref @379
- Z3_ast_map_contains @380
- Z3_ast_map_find @381
- Z3_ast_map_insert @382
- Z3_ast_map_erase @383
- Z3_ast_map_reset @384
- Z3_ast_map_size @385
- Z3_ast_map_keys @386
- Z3_ast_map_to_string @387
- Z3_mk_goal @388
- Z3_goal_inc_ref @389
- Z3_goal_dec_ref @390
- Z3_goal_precision @391
- Z3_goal_assert @392
- Z3_goal_inconsistent @393
- Z3_goal_depth @394
- Z3_goal_reset @395
- Z3_goal_size @396
- Z3_goal_formula @397
- Z3_goal_num_exprs @398
- Z3_goal_is_decided_sat @399
- Z3_goal_is_decided_unsat @400
- Z3_goal_translate @401
- Z3_goal_to_string @402
- Z3_mk_tactic @403
- Z3_tactic_inc_ref @404
- Z3_tactic_dec_ref @405
- Z3_mk_probe @406
- Z3_probe_inc_ref @407
- Z3_probe_dec_ref @408
- Z3_tactic_and_then @409
- Z3_tactic_or_else @410
- Z3_tactic_par_or @411
- Z3_tactic_par_and_then @412
- Z3_tactic_try_for @413
- Z3_tactic_when @414
- Z3_tactic_cond @415
- Z3_tactic_repeat @416
- Z3_tactic_skip @417
- Z3_tactic_fail @418
- Z3_tactic_fail_if @419
- Z3_tactic_fail_if_not_decided @420
- Z3_tactic_using_params @421
- Z3_probe_const @422
- Z3_probe_lt @423
- Z3_probe_gt @424
- Z3_probe_le @425
- Z3_probe_ge @426
- Z3_probe_eq @427
- Z3_probe_and @428
- Z3_probe_or @429
- Z3_probe_not @430
- Z3_get_num_tactics @431
- Z3_get_tactic_name @432
- Z3_get_num_probes @433
- Z3_get_probe_name @434
- Z3_tactic_get_help @435
- Z3_tactic_get_param_descrs @436
- Z3_tactic_get_descr @437
- Z3_probe_get_descr @438
- Z3_probe_apply @439
- Z3_tactic_apply @440
- Z3_tactic_apply_ex @441
- Z3_apply_result_inc_ref @442
- Z3_apply_result_dec_ref @443
- Z3_apply_result_to_string @444
- Z3_apply_result_get_num_subgoals @445
- Z3_apply_result_get_subgoal @446
- Z3_apply_result_convert_model @447
- Z3_mk_solver @448
- Z3_mk_simple_solver @449
- Z3_mk_solver_for_logic @450
- Z3_mk_solver_from_tactic @451
- Z3_solver_get_help @452
- Z3_solver_get_param_descrs @453
- Z3_solver_set_params @454
- Z3_solver_inc_ref @455
- Z3_solver_dec_ref @456
- Z3_solver_push @457
- Z3_solver_pop @458
- Z3_solver_reset @459
- Z3_solver_get_num_scopes @460
- Z3_solver_assert @461
- Z3_solver_get_assertions @462
- Z3_solver_check @463
- Z3_solver_check_assumptions @464
- Z3_solver_get_model @465
- Z3_solver_get_proof @466
- Z3_solver_get_unsat_core @467
- Z3_solver_get_reason_unknown @468
- Z3_solver_get_statistics @469
- Z3_solver_to_string @470
- Z3_stats_to_string @471
- Z3_stats_inc_ref @472
- Z3_stats_dec_ref @473
- Z3_stats_size @474
- Z3_stats_get_key @475
- Z3_stats_is_uint @476
- Z3_stats_is_double @477
- Z3_stats_get_uint_value @478
- Z3_stats_get_double_value @479
- Z3_mk_injective_function @480
- Z3_set_logic @481
- Z3_push @482
- Z3_pop @483
- Z3_get_num_scopes @484
- Z3_persist_ast @485
- Z3_assert_cnstr @486
- Z3_check_and_get_model @487
- Z3_check @488
- Z3_check_assumptions @489
- Z3_get_implied_equalities @490
- Z3_del_model @491
- Z3_soft_check_cancel @492
- Z3_get_search_failure @493
- Z3_mk_label @494
- Z3_get_relevant_labels @495
- Z3_get_relevant_literals @496
- Z3_get_guessed_literals @497
- Z3_del_literals @498
- Z3_get_num_literals @499
- Z3_get_label_symbol @500
- Z3_get_literal @501
- Z3_disable_literal @502
- Z3_block_literals @503
- Z3_get_model_num_constants @504
- Z3_get_model_constant @505
- Z3_get_model_num_funcs @506
- Z3_get_model_func_decl @507
- Z3_eval_func_decl @508
- Z3_is_array_value @509
- Z3_get_array_value @510
- Z3_get_model_func_else @511
- Z3_get_model_func_num_entries @512
- Z3_get_model_func_entry_num_args @513
- Z3_get_model_func_entry_arg @514
- Z3_get_model_func_entry_value @515
- Z3_eval @516
- Z3_eval_decl @517
- Z3_context_to_string @518
- Z3_statistics_to_string @519
- Z3_get_context_assignment @520
+LIBRARY "Z3_DBG"
+EXPORTS
+ Z3_mk_config @1
+ Z3_del_config @2
+ Z3_set_param_value @3
+ Z3_mk_context @4
+ Z3_mk_context_rc @5
+ Z3_del_context @6
+ Z3_inc_ref @7
+ Z3_dec_ref @8
+ Z3_update_param_value @9
+ Z3_get_param_value @10
+ Z3_interrupt @11
+ Z3_mk_params @12
+ Z3_params_inc_ref @13
+ Z3_params_dec_ref @14
+ Z3_params_set_bool @15
+ Z3_params_set_uint @16
+ Z3_params_set_double @17
+ Z3_params_set_symbol @18
+ Z3_params_to_string @19
+ Z3_params_validate @20
+ Z3_param_descrs_inc_ref @21
+ Z3_param_descrs_dec_ref @22
+ Z3_param_descrs_get_kind @23
+ Z3_param_descrs_size @24
+ Z3_param_descrs_get_name @25
+ Z3_param_descrs_to_string @26
+ Z3_mk_int_symbol @27
+ Z3_mk_string_symbol @28
+ Z3_mk_uninterpreted_sort @29
+ Z3_mk_bool_sort @30
+ Z3_mk_int_sort @31
+ Z3_mk_real_sort @32
+ Z3_mk_bv_sort @33
+ Z3_mk_finite_domain_sort @34
+ Z3_mk_array_sort @35
+ Z3_mk_tuple_sort @36
+ Z3_mk_enumeration_sort @37
+ Z3_mk_list_sort @38
+ Z3_mk_constructor @39
+ Z3_del_constructor @40
+ Z3_mk_datatype @41
+ Z3_mk_constructor_list @42
+ Z3_del_constructor_list @43
+ Z3_mk_datatypes @44
+ Z3_query_constructor @45
+ Z3_mk_func_decl @46
+ Z3_mk_app @47
+ Z3_mk_const @48
+ Z3_mk_fresh_func_decl @49
+ Z3_mk_fresh_const @50
+ Z3_mk_true @51
+ Z3_mk_false @52
+ Z3_mk_eq @53
+ Z3_mk_distinct @54
+ Z3_mk_not @55
+ Z3_mk_ite @56
+ Z3_mk_iff @57
+ Z3_mk_implies @58
+ Z3_mk_xor @59
+ Z3_mk_and @60
+ Z3_mk_or @61
+ Z3_mk_add @62
+ Z3_mk_mul @63
+ Z3_mk_sub @64
+ Z3_mk_unary_minus @65
+ Z3_mk_div @66
+ Z3_mk_mod @67
+ Z3_mk_rem @68
+ Z3_mk_power @69
+ Z3_mk_lt @70
+ Z3_mk_le @71
+ Z3_mk_gt @72
+ Z3_mk_ge @73
+ Z3_mk_int2real @74
+ Z3_mk_real2int @75
+ Z3_mk_is_int @76
+ Z3_mk_bvnot @77
+ Z3_mk_bvredand @78
+ Z3_mk_bvredor @79
+ Z3_mk_bvand @80
+ Z3_mk_bvor @81
+ Z3_mk_bvxor @82
+ Z3_mk_bvnand @83
+ Z3_mk_bvnor @84
+ Z3_mk_bvxnor @85
+ Z3_mk_bvneg @86
+ Z3_mk_bvadd @87
+ Z3_mk_bvsub @88
+ Z3_mk_bvmul @89
+ Z3_mk_bvudiv @90
+ Z3_mk_bvsdiv @91
+ Z3_mk_bvurem @92
+ Z3_mk_bvsrem @93
+ Z3_mk_bvsmod @94
+ Z3_mk_bvult @95
+ Z3_mk_bvslt @96
+ Z3_mk_bvule @97
+ Z3_mk_bvsle @98
+ Z3_mk_bvuge @99
+ Z3_mk_bvsge @100
+ Z3_mk_bvugt @101
+ Z3_mk_bvsgt @102
+ Z3_mk_concat @103
+ Z3_mk_extract @104
+ Z3_mk_sign_ext @105
+ Z3_mk_zero_ext @106
+ Z3_mk_repeat @107
+ Z3_mk_bvshl @108
+ Z3_mk_bvlshr @109
+ Z3_mk_bvashr @110
+ Z3_mk_rotate_left @111
+ Z3_mk_rotate_right @112
+ Z3_mk_ext_rotate_left @113
+ Z3_mk_ext_rotate_right @114
+ Z3_mk_int2bv @115
+ Z3_mk_bv2int @116
+ Z3_mk_bvadd_no_overflow @117
+ Z3_mk_bvadd_no_underflow @118
+ Z3_mk_bvsub_no_overflow @119
+ Z3_mk_bvsub_no_underflow @120
+ Z3_mk_bvsdiv_no_overflow @121
+ Z3_mk_bvneg_no_overflow @122
+ Z3_mk_bvmul_no_overflow @123
+ Z3_mk_bvmul_no_underflow @124
+ Z3_mk_select @125
+ Z3_mk_store @126
+ Z3_mk_const_array @127
+ Z3_mk_map @128
+ Z3_mk_array_default @129
+ Z3_mk_set_sort @130
+ Z3_mk_empty_set @131
+ Z3_mk_full_set @132
+ Z3_mk_set_add @133
+ Z3_mk_set_del @134
+ Z3_mk_set_union @135
+ Z3_mk_set_intersect @136
+ Z3_mk_set_difference @137
+ Z3_mk_set_complement @138
+ Z3_mk_set_member @139
+ Z3_mk_set_subset @140
+ Z3_mk_numeral @141
+ Z3_mk_real @142
+ Z3_mk_int @143
+ Z3_mk_unsigned_int @144
+ Z3_mk_int64 @145
+ Z3_mk_unsigned_int64 @146
+ Z3_mk_pattern @147
+ Z3_mk_bound @148
+ Z3_mk_forall @149
+ Z3_mk_exists @150
+ Z3_mk_quantifier @151
+ Z3_mk_quantifier_ex @152
+ Z3_mk_forall_const @153
+ Z3_mk_exists_const @154
+ Z3_mk_quantifier_const @155
+ Z3_mk_quantifier_const_ex @156
+ Z3_get_symbol_kind @157
+ Z3_get_symbol_int @158
+ Z3_get_symbol_string @159
+ Z3_get_sort_name @160
+ Z3_get_sort_id @161
+ Z3_sort_to_ast @162
+ Z3_is_eq_sort @163
+ Z3_get_sort_kind @164
+ Z3_get_bv_sort_size @165
+ Z3_get_finite_domain_sort_size @166
+ Z3_get_array_sort_domain @167
+ Z3_get_array_sort_range @168
+ Z3_get_tuple_sort_mk_decl @169
+ Z3_get_tuple_sort_num_fields @170
+ Z3_get_tuple_sort_field_decl @171
+ Z3_get_datatype_sort_num_constructors @172
+ Z3_get_datatype_sort_constructor @173
+ Z3_get_datatype_sort_recognizer @174
+ Z3_get_datatype_sort_constructor_accessor @175
+ Z3_get_relation_arity @176
+ Z3_get_relation_column @177
+ Z3_func_decl_to_ast @178
+ Z3_is_eq_func_decl @179
+ Z3_get_func_decl_id @180
+ Z3_get_decl_name @181
+ Z3_get_decl_kind @182
+ Z3_get_domain_size @183
+ Z3_get_arity @184
+ Z3_get_domain @185
+ Z3_get_range @186
+ Z3_get_decl_num_parameters @187
+ Z3_get_decl_parameter_kind @188
+ Z3_get_decl_int_parameter @189
+ Z3_get_decl_double_parameter @190
+ Z3_get_decl_symbol_parameter @191
+ Z3_get_decl_sort_parameter @192
+ Z3_get_decl_ast_parameter @193
+ Z3_get_decl_func_decl_parameter @194
+ Z3_get_decl_rational_parameter @195
+ Z3_app_to_ast @196
+ Z3_get_app_decl @197
+ Z3_get_app_num_args @198
+ Z3_get_app_arg @199
+ Z3_is_eq_ast @200
+ Z3_get_ast_id @201
+ Z3_get_ast_hash @202
+ Z3_get_sort @203
+ Z3_is_well_sorted @204
+ Z3_get_bool_value @205
+ Z3_get_ast_kind @206
+ Z3_is_app @207
+ Z3_is_numeral_ast @208
+ Z3_is_algebraic_number @209
+ Z3_to_app @210
+ Z3_to_func_decl @211
+ Z3_get_numeral_string @212
+ Z3_get_numeral_decimal_string @213
+ Z3_get_numerator @214
+ Z3_get_denominator @215
+ Z3_get_numeral_small @216
+ Z3_get_numeral_int @217
+ Z3_get_numeral_uint @218
+ Z3_get_numeral_uint64 @219
+ Z3_get_numeral_int64 @220
+ Z3_get_numeral_rational_int64 @221
+ Z3_get_algebraic_number_lower @222
+ Z3_get_algebraic_number_upper @223
+ Z3_pattern_to_ast @224
+ Z3_get_pattern_num_terms @225
+ Z3_get_pattern @226
+ Z3_get_index_value @227
+ Z3_is_quantifier_forall @228
+ Z3_get_quantifier_weight @229
+ Z3_get_quantifier_num_patterns @230
+ Z3_get_quantifier_pattern_ast @231
+ Z3_get_quantifier_num_no_patterns @232
+ Z3_get_quantifier_no_pattern_ast @233
+ Z3_get_quantifier_num_bound @234
+ Z3_get_quantifier_bound_name @235
+ Z3_get_quantifier_bound_sort @236
+ Z3_get_quantifier_body @237
+ Z3_simplify @238
+ Z3_simplify_ex @239
+ Z3_simplify_get_help @240
+ Z3_simplify_get_param_descrs @241
+ Z3_update_term @242
+ Z3_substitute @243
+ Z3_substitute_vars @244
+ Z3_translate @245
+ Z3_model_inc_ref @246
+ Z3_model_dec_ref @247
+ Z3_model_eval @248
+ Z3_model_get_const_interp @249
+ Z3_model_get_func_interp @250
+ Z3_model_get_num_consts @251
+ Z3_model_get_const_decl @252
+ Z3_model_get_num_funcs @253
+ Z3_model_get_func_decl @254
+ Z3_model_get_num_sorts @255
+ Z3_model_get_sort @256
+ Z3_model_get_sort_universe @257
+ Z3_is_as_array @258
+ Z3_get_as_array_func_decl @259
+ Z3_func_interp_inc_ref @260
+ Z3_func_interp_dec_ref @261
+ Z3_func_interp_get_num_entries @262
+ Z3_func_interp_get_entry @263
+ Z3_func_interp_get_else @264
+ Z3_func_interp_get_arity @265
+ Z3_func_entry_inc_ref @266
+ Z3_func_entry_dec_ref @267
+ Z3_func_entry_get_value @268
+ Z3_func_entry_get_num_args @269
+ Z3_func_entry_get_arg @270
+ Z3_open_log @271
+ Z3_append_log @272
+ Z3_close_log @273
+ Z3_toggle_warning_messages @274
+ Z3_set_ast_print_mode @275
+ Z3_ast_to_string @276
+ Z3_pattern_to_string @277
+ Z3_sort_to_string @278
+ Z3_func_decl_to_string @279
+ Z3_model_to_string @280
+ Z3_benchmark_to_smtlib_string @281
+ Z3_parse_smtlib2_string @282
+ Z3_parse_smtlib2_file @283
+ Z3_parse_smtlib_string @284
+ Z3_parse_smtlib_file @285
+ Z3_get_smtlib_num_formulas @286
+ Z3_get_smtlib_formula @287
+ Z3_get_smtlib_num_assumptions @288
+ Z3_get_smtlib_assumption @289
+ Z3_get_smtlib_num_decls @290
+ Z3_get_smtlib_decl @291
+ Z3_get_smtlib_num_sorts @292
+ Z3_get_smtlib_sort @293
+ Z3_get_smtlib_error @294
+ Z3_parse_z3_string @295
+ Z3_parse_z3_file @296
+ Z3_get_error_code @297
+ Z3_set_error_handler @298
+ Z3_set_error @299
+ Z3_get_error_msg @300
+ Z3_get_error_msg_ex @301
+ Z3_get_version @302
+ Z3_reset_memory @303
+ Z3_mk_theory @304
+ Z3_theory_get_ext_data @305
+ Z3_theory_mk_sort @306
+ Z3_theory_mk_value @307
+ Z3_theory_mk_constant @308
+ Z3_theory_mk_func_decl @309
+ Z3_theory_get_context @310
+ Z3_set_delete_callback @311
+ Z3_set_reduce_app_callback @312
+ Z3_set_reduce_eq_callback @313
+ Z3_set_reduce_distinct_callback @314
+ Z3_set_new_app_callback @315
+ Z3_set_new_elem_callback @316
+ Z3_set_init_search_callback @317
+ Z3_set_push_callback @318
+ Z3_set_pop_callback @319
+ Z3_set_restart_callback @320
+ Z3_set_reset_callback @321
+ Z3_set_final_check_callback @322
+ Z3_set_new_eq_callback @323
+ Z3_set_new_diseq_callback @324
+ Z3_set_new_assignment_callback @325
+ Z3_set_new_relevant_callback @326
+ Z3_theory_assert_axiom @327
+ Z3_theory_assume_eq @328
+ Z3_theory_enable_axiom_simplification @329
+ Z3_theory_get_eqc_root @330
+ Z3_theory_get_eqc_next @331
+ Z3_theory_get_num_parents @332
+ Z3_theory_get_parent @333
+ Z3_theory_is_value @334
+ Z3_theory_is_decl @335
+ Z3_theory_get_num_elems @336
+ Z3_theory_get_elem @337
+ Z3_theory_get_num_apps @338
+ Z3_theory_get_app @339
+ Z3_mk_fixedpoint @340
+ Z3_fixedpoint_inc_ref @341
+ Z3_fixedpoint_dec_ref @342
+ Z3_fixedpoint_add_rule @343
+ Z3_fixedpoint_add_fact @344
+ Z3_fixedpoint_assert @345
+ Z3_fixedpoint_query @346
+ Z3_fixedpoint_query_relations @347
+ Z3_fixedpoint_get_answer @348
+ Z3_fixedpoint_get_reason_unknown @349
+ Z3_fixedpoint_update_rule @350
+ Z3_fixedpoint_get_num_levels @351
+ Z3_fixedpoint_get_cover_delta @352
+ Z3_fixedpoint_add_cover @353
+ Z3_fixedpoint_get_statistics @354
+ Z3_fixedpoint_register_relation @355
+ Z3_fixedpoint_set_predicate_representation @356
+ Z3_fixedpoint_simplify_rules @357
+ Z3_fixedpoint_set_params @358
+ Z3_fixedpoint_get_help @359
+ Z3_fixedpoint_get_param_descrs @360
+ Z3_fixedpoint_to_string @361
+ Z3_fixedpoint_push @362
+ Z3_fixedpoint_pop @363
+ Z3_fixedpoint_init @364
+ Z3_fixedpoint_set_reduce_assign_callback @365
+ Z3_fixedpoint_set_reduce_app_callback @366
+ Z3_mk_ast_vector @367
+ Z3_ast_vector_inc_ref @368
+ Z3_ast_vector_dec_ref @369
+ Z3_ast_vector_size @370
+ Z3_ast_vector_get @371
+ Z3_ast_vector_set @372
+ Z3_ast_vector_resize @373
+ Z3_ast_vector_push @374
+ Z3_ast_vector_translate @375
+ Z3_ast_vector_to_string @376
+ Z3_mk_ast_map @377
+ Z3_ast_map_inc_ref @378
+ Z3_ast_map_dec_ref @379
+ Z3_ast_map_contains @380
+ Z3_ast_map_find @381
+ Z3_ast_map_insert @382
+ Z3_ast_map_erase @383
+ Z3_ast_map_reset @384
+ Z3_ast_map_size @385
+ Z3_ast_map_keys @386
+ Z3_ast_map_to_string @387
+ Z3_mk_goal @388
+ Z3_goal_inc_ref @389
+ Z3_goal_dec_ref @390
+ Z3_goal_precision @391
+ Z3_goal_assert @392
+ Z3_goal_inconsistent @393
+ Z3_goal_depth @394
+ Z3_goal_reset @395
+ Z3_goal_size @396
+ Z3_goal_formula @397
+ Z3_goal_num_exprs @398
+ Z3_goal_is_decided_sat @399
+ Z3_goal_is_decided_unsat @400
+ Z3_goal_translate @401
+ Z3_goal_to_string @402
+ Z3_mk_tactic @403
+ Z3_tactic_inc_ref @404
+ Z3_tactic_dec_ref @405
+ Z3_mk_probe @406
+ Z3_probe_inc_ref @407
+ Z3_probe_dec_ref @408
+ Z3_tactic_and_then @409
+ Z3_tactic_or_else @410
+ Z3_tactic_par_or @411
+ Z3_tactic_par_and_then @412
+ Z3_tactic_try_for @413
+ Z3_tactic_when @414
+ Z3_tactic_cond @415
+ Z3_tactic_repeat @416
+ Z3_tactic_skip @417
+ Z3_tactic_fail @418
+ Z3_tactic_fail_if @419
+ Z3_tactic_fail_if_not_decided @420
+ Z3_tactic_using_params @421
+ Z3_probe_const @422
+ Z3_probe_lt @423
+ Z3_probe_gt @424
+ Z3_probe_le @425
+ Z3_probe_ge @426
+ Z3_probe_eq @427
+ Z3_probe_and @428
+ Z3_probe_or @429
+ Z3_probe_not @430
+ Z3_get_num_tactics @431
+ Z3_get_tactic_name @432
+ Z3_get_num_probes @433
+ Z3_get_probe_name @434
+ Z3_tactic_get_help @435
+ Z3_tactic_get_param_descrs @436
+ Z3_tactic_get_descr @437
+ Z3_probe_get_descr @438
+ Z3_probe_apply @439
+ Z3_tactic_apply @440
+ Z3_tactic_apply_ex @441
+ Z3_apply_result_inc_ref @442
+ Z3_apply_result_dec_ref @443
+ Z3_apply_result_to_string @444
+ Z3_apply_result_get_num_subgoals @445
+ Z3_apply_result_get_subgoal @446
+ Z3_apply_result_convert_model @447
+ Z3_mk_solver @448
+ Z3_mk_simple_solver @449
+ Z3_mk_solver_for_logic @450
+ Z3_mk_solver_from_tactic @451
+ Z3_solver_get_help @452
+ Z3_solver_get_param_descrs @453
+ Z3_solver_set_params @454
+ Z3_solver_inc_ref @455
+ Z3_solver_dec_ref @456
+ Z3_solver_push @457
+ Z3_solver_pop @458
+ Z3_solver_reset @459
+ Z3_solver_get_num_scopes @460
+ Z3_solver_assert @461
+ Z3_solver_get_assertions @462
+ Z3_solver_check @463
+ Z3_solver_check_assumptions @464
+ Z3_solver_get_model @465
+ Z3_solver_get_proof @466
+ Z3_solver_get_unsat_core @467
+ Z3_solver_get_reason_unknown @468
+ Z3_solver_get_statistics @469
+ Z3_solver_to_string @470
+ Z3_stats_to_string @471
+ Z3_stats_inc_ref @472
+ Z3_stats_dec_ref @473
+ Z3_stats_size @474
+ Z3_stats_get_key @475
+ Z3_stats_is_uint @476
+ Z3_stats_is_double @477
+ Z3_stats_get_uint_value @478
+ Z3_stats_get_double_value @479
+ Z3_mk_injective_function @480
+ Z3_set_logic @481
+ Z3_push @482
+ Z3_pop @483
+ Z3_get_num_scopes @484
+ Z3_persist_ast @485
+ Z3_assert_cnstr @486
+ Z3_check_and_get_model @487
+ Z3_check @488
+ Z3_check_assumptions @489
+ Z3_get_implied_equalities @490
+ Z3_del_model @491
+ Z3_soft_check_cancel @492
+ Z3_get_search_failure @493
+ Z3_mk_label @494
+ Z3_get_relevant_labels @495
+ Z3_get_relevant_literals @496
+ Z3_get_guessed_literals @497
+ Z3_del_literals @498
+ Z3_get_num_literals @499
+ Z3_get_label_symbol @500
+ Z3_get_literal @501
+ Z3_disable_literal @502
+ Z3_block_literals @503
+ Z3_get_model_num_constants @504
+ Z3_get_model_constant @505
+ Z3_get_model_num_funcs @506
+ Z3_get_model_func_decl @507
+ Z3_eval_func_decl @508
+ Z3_is_array_value @509
+ Z3_get_array_value @510
+ Z3_get_model_func_else @511
+ Z3_get_model_func_num_entries @512
+ Z3_get_model_func_entry_num_args @513
+ Z3_get_model_func_entry_arg @514
+ Z3_get_model_func_entry_value @515
+ Z3_eval @516
+ Z3_eval_decl @517
+ Z3_context_to_string @518
+ Z3_statistics_to_string @519
+ Z3_get_context_assignment @520
diff --git a/lib/api.py b/lib/api.py
deleted file mode 100644
index 746d52cef..000000000
--- a/lib/api.py
+++ /dev/null
@@ -1,1236 +0,0 @@
-# Copyright (c) 2011 Microsoft Corporation
-#
-# Module Name:
-#
-# api.py
-#
-# Abstract:
-#
-# Generate code for logging Z3 APIs.
-# It also generate bindings for the z3_replayer interpreter.
-#
-# Generated files:
-# - z3_api_log.h, z3_api_log.cpp: logging support for Z3 api.
-# - z3_api_commands.cpp: bindings for z3_replayer.
-#
-# Author:
-#
-# Leonardo de Moura (leonardo) 2011-09-23
-import sys
-import os
-from sets import Set
-log_h = open('api_log_macros.h', 'w')
-log_c = open('api_log_macros.cpp', 'w')
-exe_c = open('api_commands.cpp', 'w')
-core_py = open('..%spython%sz3core.py' % (os.sep, os.sep), 'w')
-dotnet_fileout = '..%sMicrosoft.Z3%sNative.cs' % (os.sep, os.sep)
-##
-log_h.write('// Automatically generated file, generator: api.py\n')
-log_h.write('#include\"z3.h\"\n')
-##
-log_c.write('// Automatically generated file, generator: api.py\n')
-log_c.write('#include\n')
-log_c.write('#include\"z3.h\"\n')
-log_c.write('#include\"api_log_macros.h\"\n')
-log_c.write('#include\"z3_logger.h\"\n')
-##
-exe_c.write('// Automatically generated file, generator: api.py\n')
-exe_c.write('#include\"z3.h\"\n')
-exe_c.write('#include\"z3_replayer.h\"\n')
-##
-log_h.write('extern std::ostream * g_z3_log;\n')
-log_h.write('extern bool g_z3_log_enabled;\n')
-log_h.write('class z3_log_ctx { bool m_prev; public: z3_log_ctx():m_prev(g_z3_log_enabled) { g_z3_log_enabled = false; } ~z3_log_ctx() { g_z3_log_enabled = m_prev; } bool enabled() const { return m_prev; } };\n')
-log_h.write('inline void SetR(void * obj) { *g_z3_log << "= " << obj << "\\n"; }\ninline void SetO(void * obj, unsigned pos) { *g_z3_log << "* " << obj << " " << pos << "\\n"; } \ninline void SetAO(void * obj, unsigned pos, unsigned idx) { *g_z3_log << "@ " << obj << " " << pos << " " << idx << "\\n"; }\n')
-log_h.write('#define RETURN_Z3(Z3RES) if (_LOG_CTX.enabled()) { SetR(Z3RES); } return Z3RES\n')
-log_h.write('void _Z3_append_log(char const * msg);\n')
-##
-exe_c.write('void Z3_replacer_error_handler(Z3_context ctx, Z3_error_code c) { printf("[REPLAYER ERROR HANDLER]: %s\\n", Z3_get_error_msg_ex(ctx, c)); }\n')
-##
-core_py.write('# Automatically generated file, generator: api.py\n')
-core_py.write('import sys, os\n')
-core_py.write('import ctypes\n')
-core_py.write('from z3types import *\n')
-core_py.write('from z3consts import *\n')
-core_py.write("""
-def _find_lib():
- _dir = os.path.dirname(os.path.abspath(__file__))
- libs = ['z3.dll', 'libz3.so', 'libz3.dylib']
- if sys.maxsize > 2**32:
- locs = [_dir, '%s%s..%sx64%sexternal' % (_dir, os.sep, os.sep, os.sep), '%s%s..%sbin%sexternal' % (_dir, os.sep, os.sep, os.sep)]
- else:
- locs = [_dir, '%s%s..%sexternal' % (_dir, os.sep, os.sep), '%s%s..%sbin%sexternal' % (_dir, os.sep, os.sep, os.sep)]
- for loc in locs:
- for lib in libs:
- f = '%s%s%s' % (loc, os.sep, lib)
- if os.path.exists(f):
- return f
- return None
-
-_lib = None
-def lib():
- if _lib == None:
- l = _find_lib()
- if l == None:
- raise Z3Exception("init(Z3_LIBRARY_PATH) must be invoked before using Z3-python")
- init(l)
- assert _lib != None
- return _lib
-
-def init(PATH):
- global _lib
- _lib = ctypes.CDLL(PATH)
-""")
-
-next_id = 0
-API2Id = {}
-
-VOID = 0
-VOID_PTR = 1
-INT = 2
-UINT = 3
-INT64 = 4
-UINT64 = 5
-STRING = 6
-STRING_PTR = 7
-BOOL = 8
-SYMBOL = 9
-PRINT_MODE = 10
-ERROR_CODE = 11
-DOUBLE = 12
-
-CONFIG = 100
-CONTEXT = 101
-AST = 102
-APP = 103
-SORT = 104
-FUNC_DECL = 105
-PATTERN = 106
-MODEL = 107
-LITERALS = 108
-CONSTRUCTOR = 109
-CONSTRUCTOR_LIST = 110
-THEORY = 111
-THEORY_DATA = 112
-SOLVER = 113
-GOAL = 114
-TACTIC = 115
-PARAMS = 117
-PROBE = 118
-STATS = 119
-AST_VECTOR = 120
-AST_MAP = 121
-APPLY_RESULT = 122
-FUNC_INTERP = 123
-FUNC_ENTRY = 124
-FIXEDPOINT = 125
-PARAM_DESCRS = 126
-
-def is_obj(ty):
- return ty >= 100
-
-IN = 0
-OUT = 1
-INOUT = 2
-IN_ARRAY = 3
-OUT_ARRAY = 4
-INOUT_ARRAY = 5
-
-Type2Str = { VOID : 'void', VOID_PTR : 'void*', INT : 'int', UINT : 'unsigned', INT64 : '__int64', UINT64 : '__uint64', DOUBLE : 'double',
- STRING : 'Z3_string', STRING_PTR : 'Z3_string_ptr', BOOL : 'Z3_bool', SYMBOL : 'Z3_symbol',
- PRINT_MODE : 'Z3_ast_print_mode', ERROR_CODE : 'Z3_error_code',
- CONFIG : 'Z3_config', CONTEXT : 'Z3_context', AST : 'Z3_ast', APP : 'Z3_app', SORT : 'Z3_sort',
- FUNC_DECL : 'Z3_func_decl', PATTERN : 'Z3_pattern', MODEL : 'Z3_model', LITERALS : 'Z3_literals',
- CONSTRUCTOR : 'Z3_constructor', CONSTRUCTOR_LIST : 'Z3_constructor_list', THEORY : 'Z3_theory',
- THEORY_DATA : 'Z3_theory_data', SOLVER : 'Z3_solver', GOAL : 'Z3_goal', TACTIC : 'Z3_tactic',
- FIXEDPOINT : 'Z3_fixedpoint',
- PARAMS : 'Z3_params', PROBE : 'Z3_probe', STATS : 'Z3_stats', AST_VECTOR : 'Z3_ast_vector',
- AST_MAP : 'Z3_ast_map', APPLY_RESULT : 'Z3_apply_result', FUNC_INTERP : 'Z3_func_interp', FUNC_ENTRY : 'Z3_func_entry',
- PARAM_DESCRS : 'Z3_param_descrs'
- }
-
-Type2PyStr = { VOID_PTR : 'ctypes.c_void_p', INT : 'ctypes.c_int', UINT : 'ctypes.c_uint', INT64 : 'ctypes.c_longlong',
- UINT64 : 'ctypes.c_ulonglong', DOUBLE : 'ctypes.c_double',
- STRING : 'ctypes.c_char_p', STRING_PTR : 'ctypes.POINTER(ctypes.c_char_p)', BOOL : 'ctypes.c_bool', SYMBOL : 'Symbol',
- PRINT_MODE : 'ctypes.c_uint', ERROR_CODE : 'ctypes.c_uint', CONFIG : 'Config', CONTEXT : 'ContextObj',
- AST : 'Ast', APP : 'Ast', SORT: 'Sort', FUNC_DECL : 'FuncDecl', PATTERN : 'Pattern',
- MODEL : 'Model', LITERALS : 'Literals', CONSTRUCTOR : 'Constructor', CONSTRUCTOR_LIST : 'ConstructorList',
- THEORY : 'ctypes.c_void_p', THEORY_DATA : 'ctypes.c_void_p', SOLVER : 'SolverObj', GOAL : 'GoalObj', TACTIC : 'TacticObj',
- FIXEDPOINT : 'FixedpointObj',
- PARAMS : 'Params', PROBE : 'ProbeObj', STATS : 'StatsObj', AST_VECTOR : 'AstVectorObj', AST_MAP : 'AstMapObj',
- APPLY_RESULT : 'ApplyResultObj', FUNC_INTERP : 'FuncInterpObj', FUNC_ENTRY : 'FuncEntryObj',
- PARAM_DESCRS : 'ParamDescrs'
- }
-
-# Mapping to .NET types
-Type2Dotnet = { VOID : 'void', VOID_PTR : 'IntPtr', INT : 'int', UINT : 'uint', INT64 : 'Int64', UINT64 : 'UInt64', DOUBLE : 'double',
- STRING : 'string', STRING_PTR : 'byte**', BOOL : 'int', SYMBOL : 'IntPtr',
- PRINT_MODE : 'uint', ERROR_CODE : 'uint' }
-
-for k, v in Type2Str.iteritems():
- if is_obj(k):
- Type2Dotnet[k] = v
-
-def type2str(ty):
- global Type2Str
- return Type2Str[ty]
-
-def type2pystr(ty):
- global Type2PyStr
- return Type2PyStr[ty]
-
-def type2dotnet(ty):
- global Type2Dotnet
- return Type2Dotnet[ty]
-
-def _in(ty):
- return (IN, ty);
-
-def _in_array(sz, ty):
- return (IN_ARRAY, ty, sz);
-
-def _out(ty):
- return (OUT, ty);
-
-def _out_array(sz, ty):
- return (OUT_ARRAY, ty, sz, sz);
-
-# cap contains the position of the argument that stores the capacity of the array
-# sz contains the position of the output argument that stores the (real) size of the array
-def _out_array2(cap, sz, ty):
- return (OUT_ARRAY, ty, cap, sz)
-
-def _inout_array(sz, ty):
- return (INOUT_ARRAY, ty, sz, sz);
-
-def param_kind(p):
- return p[0]
-
-def param_type(p):
- return p[1]
-
-def param_array_capacity_pos(p):
- return p[2]
-
-def param_array_size_pos(p):
- return p[3]
-
-def param2str(p):
- if param_kind(p) == IN_ARRAY:
- return "%s const *" % type2str(param_type(p))
- elif param_kind(p) == OUT_ARRAY or param_kind(p) == IN_ARRAY or param_kind(p) == INOUT_ARRAY:
- return "%s*" % type2str(param_type(p))
- elif param_kind(p) == OUT:
- return "%s*" % type2str(param_type(p))
- else:
- return type2str(param_type(p))
-
-
-def param2dotnet(p):
- k = param_kind(p)
- if k == OUT:
- if param_type(p) == STRING:
- return "out IntPtr"
- else:
- return "[In, Out] ref %s" % type2dotnet(param_type(p))
- if k == IN_ARRAY:
- return "[In] %s[]" % type2dotnet(param_type(p))
- if k == INOUT_ARRAY:
- return "[In, Out] %s[]" % type2dotnet(param_type(p))
- if k == OUT_ARRAY:
- return "[Out] %s[]" % type2dotnet(param_type(p))
- else:
- return type2dotnet(param_type(p))
-
-def param2pystr(p):
- if param_kind(p) == IN_ARRAY or param_kind(p) == OUT_ARRAY or param_kind(p) == IN_ARRAY or param_kind(p) == INOUT_ARRAY or param_kind(p) == OUT:
- return "ctypes.POINTER(%s)" % type2pystr(param_type(p))
- else:
- return type2pystr(param_type(p))
-
-# Save name, result, params to generate wrapper
-_API2PY = []
-
-def mk_py_binding(name, result, params):
- global core_py
- global _API2PY
- _API2PY.append((name, result, params))
- if result != VOID:
- core_py.write(" _lib.%s.restype = %s\n" % (name, type2pystr(result)))
- core_py.write(" _lib.%s.argtypes = [" % name)
- first = True
- for p in params:
- if first:
- first = False
- else:
- core_py.write(", ")
- core_py.write(param2pystr(p))
- core_py.write("]\n")
-
-def extra_API(name, result, params):
- mk_py_binding(name, result, params)
- reg_dotnet(name, result, params)
-
-def display_args(num):
- for i in range(num):
- if i > 0:
- core_py.write(", ")
- core_py.write("a%s" % i)
-
-def mk_py_wrappers():
- core_py.write("\n")
- for sig in _API2PY:
- name = sig[0]
- result = sig[1]
- params = sig[2]
- num = len(params)
- core_py.write("def %s(" % name)
- display_args(num)
- core_py.write("):\n")
- if result != VOID:
- core_py.write(" r = lib().%s(" % name)
- else:
- core_py.write(" lib().%s(" % name)
- display_args(num)
- core_py.write(")\n")
- if len(params) > 0 and param_type(params[0]) == CONTEXT:
- core_py.write(" err = lib().Z3_get_error_code(a0)\n")
- core_py.write(" if err != Z3_OK:\n")
- core_py.write(" raise Z3Exception(lib().Z3_get_error_msg_ex(a0, err))\n")
- if result != VOID:
- core_py.write(" return r\n")
- core_py.write("\n")
-
-
-## .NET API native interface
-_dotnet_decls = []
-def reg_dotnet(name, result, params):
- global _dotnet_decls
- _dotnet_decls.append((name, result, params))
-
-def mk_dotnet():
- global Type2Str
- global dotnet_fileout
- dotnet = open(dotnet_fileout, 'w')
- dotnet.write('// Automatically generated file, generator: api.py\n')
- dotnet.write('using System;\n')
- dotnet.write('using System.Collections.Generic;\n')
- dotnet.write('using System.Text;\n')
- dotnet.write('using System.Runtime.InteropServices;\n\n')
- dotnet.write('#pragma warning disable 1591\n\n');
- dotnet.write('namespace Microsoft.Z3\n')
- dotnet.write('{\n')
- for k, v in Type2Str.iteritems():
- if is_obj(k):
- dotnet.write(' using %s = System.IntPtr;\n' % v)
- dotnet.write('\n');
- dotnet.write(' public class Native\n')
- dotnet.write(' {\n\n')
- dotnet.write(' [UnmanagedFunctionPointer(CallingConvention.Cdecl)]\n')
- dotnet.write(' public delegate void Z3_error_handler(Z3_context c, Z3_error_code e);\n\n')
- dotnet.write(' public unsafe class LIB\n')
- dotnet.write(' {\n')
- dotnet.write(' #if DEBUG\n'
- ' const string Z3_DLL_NAME = \"z3_dbg.dll\";\n'
- ' #else\n'
- ' const string Z3_DLL_NAME = \"z3.dll\";\n'
- ' #endif\n\n');
- dotnet.write(' [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]\n')
- dotnet.write(' public extern static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1);\n\n')
- for name, result, params in _dotnet_decls:
- dotnet.write(' [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]\n')
- dotnet.write(' ')
- if result == STRING:
- dotnet.write('public extern static IntPtr %s(' % (name))
- else:
- dotnet.write('public extern static %s %s(' % (type2dotnet(result), name))
- first = True
- i = 0;
- for param in params:
- if first:
- first = False
- else:
- dotnet.write(', ')
- dotnet.write('%s a%d' % (param2dotnet(param), i))
- i = i + 1
- dotnet.write(');\n\n')
- dotnet.write(' }\n')
-
-
-DotnetUnwrapped = { 'Z3_del_context' }
-
-def mk_dotnet_wrappers():
- global Type2Str
- global dotnet_fileout
- dotnet = open(dotnet_fileout, 'a')
- dotnet.write("\n")
- dotnet.write(" public static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1) {\n")
- dotnet.write(" LIB.Z3_set_error_handler(a0, a1);\n")
- dotnet.write(" Z3_error_code err = (Z3_error_code)LIB.Z3_get_error_code(a0);\n")
- dotnet.write(" if (err != Z3_error_code.Z3_OK)\n")
- dotnet.write(" throw new Z3Exception(Marshal.PtrToStringAnsi(LIB.Z3_get_error_msg_ex(a0, (uint)err)));\n")
- dotnet.write(" }\n\n")
- for name, result, params in _dotnet_decls:
- if result == STRING:
- dotnet.write(' public static string %s(' % (name))
- else:
- dotnet.write(' public static %s %s(' % (type2dotnet(result), name))
- first = True
- i = 0;
- for param in params:
- if first:
- first = False
- else:
- dotnet.write(', ')
- dotnet.write('%s a%d' % (param2dotnet(param), i))
- i = i + 1
- dotnet.write(') {\n')
- dotnet.write(' ')
- if result == STRING:
- dotnet.write('IntPtr r = ');
- elif result != VOID:
- dotnet.write('%s r = ' % type2dotnet(result));
- dotnet.write('LIB.%s(' % (name))
- first = True
- i = 0
- for param in params:
- if first:
- first = False
- else:
- dotnet.write(', ')
- if param_kind(param) == OUT:
- if param_type(param) == STRING:
- dotnet.write('out ');
- else:
- dotnet.write('ref ')
- dotnet.write('a%d' % i)
- i = i + 1
- dotnet.write(');\n');
- if name not in DotnetUnwrapped:
- if len(params) > 0 and param_type(params[0]) == CONTEXT:
- dotnet.write(" Z3_error_code err = (Z3_error_code)LIB.Z3_get_error_code(a0);\n")
- dotnet.write(" if (err != Z3_error_code.Z3_OK)\n")
- dotnet.write(" throw new Z3Exception(Marshal.PtrToStringAnsi(LIB.Z3_get_error_msg_ex(a0, (uint)err)));\n")
- if result == STRING:
- dotnet.write(" return Marshal.PtrToStringAnsi(r);\n")
- elif result != VOID:
- dotnet.write(" return r;\n")
- dotnet.write(" }\n\n")
- dotnet.write(" }\n\n")
- dotnet.write("}\n\n")
-
-def mk_log_header(file, name, params):
- file.write("void log_%s(" % name)
- i = 0
- for p in params:
- if i > 0:
- file.write(", ");
- file.write("%s a%s" % (param2str(p), i))
- i = i + 1
- file.write(")");
-
-def log_param(p):
- kind = param_kind(p)
- ty = param_type(p)
- return is_obj(ty) and (kind == OUT or kind == INOUT or kind == OUT_ARRAY or kind == INOUT_ARRAY)
-
-def log_result(result, params):
- for p in params:
- if log_param(p):
- return True
- return False
-
-def mk_log_macro(file, name, params):
- file.write("#define LOG_%s(" % name)
- i = 0
- for p in params:
- if i > 0:
- file.write(", ")
- file.write("_ARG%s" % i)
- i = i + 1
- file.write(") z3_log_ctx _LOG_CTX; ")
- auxs = Set([])
- i = 0
- for p in params:
- if log_param(p):
- kind = param_kind(p)
- if kind == OUT_ARRAY or kind == INOUT_ARRAY:
- cap = param_array_capacity_pos(p)
- if cap not in auxs:
- auxs.add(cap)
- file.write("unsigned Z3ARG%s; " % cap)
- sz = param_array_size_pos(p)
- if sz not in auxs:
- auxs.add(sz)
- file.write("unsigned * Z3ARG%s; " % sz)
- file.write("%s Z3ARG%s; " % (param2str(p), i))
- i = i + 1
- file.write("if (_LOG_CTX.enabled()) { log_%s(" % name)
- i = 0
- for p in params:
- if (i > 0):
- file.write(', ')
- file.write("_ARG%s" %i)
- i = i + 1
- file.write("); ")
- auxs = Set([])
- i = 0
- for p in params:
- if log_param(p):
- kind = param_kind(p)
- if kind == OUT_ARRAY or kind == INOUT_ARRAY:
- cap = param_array_capacity_pos(p)
- if cap not in auxs:
- auxs.add(cap)
- file.write("Z3ARG%s = _ARG%s; " % (cap, cap))
- sz = param_array_size_pos(p)
- if sz not in auxs:
- auxs.add(sz)
- file.write("Z3ARG%s = _ARG%s; " % (sz, sz))
- file.write("Z3ARG%s = _ARG%s; " % (i, i))
- i = i + 1
- file.write("}\n")
-
-def mk_log_result_macro(file, name, result, params):
- file.write("#define RETURN_%s" % name)
- if is_obj(result):
- file.write("(Z3RES)")
- file.write(" ")
- file.write("if (_LOG_CTX.enabled()) { ")
- if is_obj(result):
- file.write("SetR(Z3RES); ")
- i = 0
- for p in params:
- if log_param(p):
- kind = param_kind(p)
- if kind == OUT_ARRAY or kind == INOUT_ARRAY:
- cap = param_array_capacity_pos(p)
- sz = param_array_size_pos(p)
- if cap == sz:
- file.write("for (unsigned i = 0; i < Z3ARG%s; i++) { SetAO(Z3ARG%s[i], %s, i); } " % (sz, i, i))
- else:
- file.write("for (unsigned i = 0; Z3ARG%s && i < *Z3ARG%s; i++) { SetAO(Z3ARG%s[i], %s, i); } " % (sz, sz, i, i))
- if kind == OUT or kind == INOUT:
- file.write("SetO((Z3ARG%s == 0 ? 0 : *Z3ARG%s), %s); " % (i, i, i))
- i = i + 1
- file.write("} ")
- if is_obj(result):
- file.write("return Z3RES\n")
- else:
- file.write("return\n")
-
-def mk_exec_header(file, name):
- file.write("void exec_%s(z3_replayer & in)" % name)
-
-def error(msg):
- sys.stderr.write(msg)
- exit(-1)
-
-def API(name, result, params):
- global API2Id, next_id
- global log_h, log_c
- # print "generating ", name
- mk_py_binding(name, result, params)
- reg_dotnet(name, result, params)
- API2Id[next_id] = name
- mk_log_header(log_h, name, params)
- log_h.write(';\n')
- mk_log_header(log_c, name, params)
- log_c.write(' {\n R();\n')
- mk_exec_header(exe_c, name)
- exe_c.write(' {\n')
- # Create Log function & Function call
- i = 0
- exe_c.write(" ")
- if is_obj(result):
- exe_c.write("%s result = " % type2str(result))
- exe_c.write("%s(\n " % name)
- for p in params:
- kind = param_kind(p)
- ty = param_type(p)
- if (i > 0):
- exe_c.write(",\n ")
- if kind == IN:
- if is_obj(ty):
- log_c.write(" P(a%s);\n" % i)
- exe_c.write("reinterpret_cast<%s>(in.get_obj(%s))" % (param2str(p), i))
- elif ty == STRING:
- log_c.write(" S(a%s);\n" % i)
- exe_c.write("in.get_str(%s)" % i)
- elif ty == SYMBOL:
- log_c.write(" Sy(a%s);\n" % i)
- exe_c.write("in.get_symbol(%s)" % i)
- elif ty == UINT:
- log_c.write(" U(a%s);\n" % i)
- exe_c.write("in.get_uint(%s)" % i)
- elif ty == UINT64:
- log_c.write(" U(a%s);\n" % i)
- exe_c.write("in.get_uint64(%s)" % i)
- elif ty == INT:
- log_c.write(" I(a%s);\n" % i)
- exe_c.write("in.get_int(%s)" % i)
- elif ty == INT64:
- log_c.write(" I(a%s);\n" % i)
- exe_c.write("in.get_int64(%s)" % i)
- elif ty == DOUBLE:
- log_c.write(" D(a%s);\n" % i)
- exe_c.write("in.get_double(%s)" % i)
- elif ty == BOOL:
- log_c.write(" I(a%s);\n" % i)
- exe_c.write("in.get_bool(%s)" % i)
- elif ty == PRINT_MODE or ty == ERROR_CODE:
- log_c.write(" U(static_cast(a%s));\n" % i);
- exe_c.write("static_cast<%s>(in.get_uint(%s))" % (type2str(ty), i))
- else:
- error("unsupported parameter for %s, %s" % (name, p))
- elif kind == INOUT:
- error("unsupported parameter for %s, %s" % (name, p))
- elif kind == OUT:
- if is_obj(ty):
- log_c.write(" P(0);\n")
- exe_c.write("reinterpret_cast<%s>(in.get_obj_addr(%s))" % (param2str(p), i))
- elif ty == STRING:
- log_c.write(" S(\"\");\n")
- exe_c.write("in.get_str_addr(%s)" % i)
- elif ty == UINT:
- log_c.write(" U(0);\n")
- exe_c.write("in.get_uint_addr(%s)" % i)
- elif ty == UINT64:
- log_c.write(" U(0);\n")
- exe_c.write("in.get_uint64_addr(%s)" % i)
- elif ty == INT:
- log_c.write(" I(0);\n")
- exe_c.write("in.get_int_addr(%s)" % i)
- elif ty == INT64:
- log_c.write(" I(0);\n")
- exe_c.write("in.get_int64_addr(%s)" % i)
- else:
- error("unsupported parameter for %s, %s" % (name, p))
- elif kind == IN_ARRAY or kind == INOUT_ARRAY:
- sz = param_array_capacity_pos(p)
- log_c.write(" for (unsigned i = 0; i < a%s; i++) { " % sz)
- if is_obj(ty):
- log_c.write("P(a%s[i]);" % i)
- log_c.write(" }\n")
- log_c.write(" Ap(a%s);\n" % sz)
- exe_c.write("reinterpret_cast<%s*>(in.get_obj_array(%s))" % (type2str(ty), i))
- elif ty == SYMBOL:
- log_c.write("Sy(a%s[i]);" % i)
- log_c.write(" }\n")
- log_c.write(" Asy(a%s);\n" % sz)
- exe_c.write("in.get_symbol_array(%s)" % i)
- elif ty == UINT:
- log_c.write("U(a%s[i]);" % i)
- log_c.write(" }\n")
- log_c.write(" Au(a%s);\n" % sz)
- exe_c.write("in.get_uint_array(%s)" % i)
- else:
- error ("unsupported parameter for %s, %s" % (name, p))
- elif kind == OUT_ARRAY:
- sz = param_array_capacity_pos(p)
- log_c.write(" for (unsigned i = 0; i < a%s; i++) { " % sz)
- if is_obj(ty):
- log_c.write("P(0);")
- log_c.write(" }\n")
- log_c.write(" Ap(a%s);\n" % sz)
- exe_c.write("reinterpret_cast<%s*>(in.get_obj_array(%s))" % (type2str(ty), i))
- elif ty == UINT:
- log_c.write("U(0);")
- log_c.write(" }\n")
- log_c.write(" Au(a%s);\n" % sz)
- exe_c.write("in.get_uint_array(%s)" % i)
- else:
- error ("unsupported parameter for %s, %s" % (name, p))
- else:
- error ("unsupported parameter for %s, %s" % (name, p))
- i = i + 1
- log_c.write(" C(%s);\n" % next_id)
- exe_c.write(");\n")
- if is_obj(result):
- exe_c.write(" in.store_result(result);\n")
- if name == 'Z3_mk_context' or name == 'Z3_mk_context_rc':
- exe_c.write(" Z3_set_error_handler(result, Z3_replacer_error_handler);")
- log_c.write('}\n')
- exe_c.write('}\n')
- mk_log_macro(log_h, name, params)
- if log_result(result, params):
- mk_log_result_macro(log_h, name, result, params)
- next_id = next_id + 1
-
-def mk_bindings():
- exe_c.write("void register_z3_replayer_cmds(z3_replayer & in) {\n")
- for key, val in API2Id.items():
- exe_c.write(" in.register_cmd(%s, exec_%s);\n" % (key, val))
- exe_c.write("}\n")
-
-def mk_defs():
- z3_def = open('..\dll\z3.def', 'w')
- z3_dbg_def = open('..\dll\z3_dbg.def', 'w')
- z3_def.write('LIBRARY "Z3"\n')
- z3_def.write('EXPORTS\n')
- z3_dbg_def.write('LIBRARY "Z3_DBG"\n')
- z3_dbg_def.write('EXPORTS\n')
- i = 1
- for key, val in API2Id.items():
- z3_def.write("\t%s @%s\n" % (val, i))
- z3_dbg_def.write("\t%s @%s\n" % (val, i))
- i = i + 1
-
-API('Z3_mk_config', CONFIG, ())
-API('Z3_del_config', VOID, (_in(CONFIG),))
-API('Z3_set_param_value', VOID, (_in(CONFIG), _in(STRING), _in(STRING)))
-API('Z3_mk_context', CONTEXT, (_in(CONFIG),))
-API('Z3_mk_context_rc', CONTEXT, (_in(CONFIG),))
-API('Z3_set_logic', VOID, (_in(CONTEXT), _in(STRING)))
-API('Z3_del_context', VOID, (_in(CONTEXT),))
-API('Z3_inc_ref', VOID, (_in(CONTEXT), _in(AST)))
-API('Z3_dec_ref', VOID, (_in(CONTEXT), _in(AST)))
-API('Z3_toggle_warning_messages', VOID, (_in(BOOL),))
-API('Z3_update_param_value', VOID, (_in(CONTEXT), _in(STRING), _in(STRING)))
-API('Z3_get_param_value', BOOL, (_in(CONTEXT), _in(STRING), _out(STRING)))
-API('Z3_mk_int_symbol', SYMBOL, (_in(CONTEXT), _in(INT)))
-API('Z3_mk_string_symbol', SYMBOL, (_in(CONTEXT), _in(STRING)))
-API('Z3_is_eq_sort', BOOL, (_in(CONTEXT), _in(SORT), _in(SORT)))
-API('Z3_mk_uninterpreted_sort', SORT, (_in(CONTEXT), _in(SYMBOL)))
-API('Z3_mk_bool_sort', SORT, (_in(CONTEXT), ))
-API('Z3_mk_int_sort', SORT, (_in(CONTEXT), ))
-API('Z3_mk_real_sort', SORT, (_in(CONTEXT), ))
-API('Z3_mk_bv_sort', SORT, (_in(CONTEXT), _in(UINT)))
-API('Z3_mk_array_sort', SORT, (_in(CONTEXT), _in(SORT), _in(SORT)))
-API('Z3_mk_tuple_sort', SORT, (_in(CONTEXT), _in(SYMBOL), _in(UINT),
- _in_array(2, SYMBOL),
- _in_array(2, SORT),
- _out(FUNC_DECL),
- _out_array(2, FUNC_DECL)))
-
-API('Z3_mk_enumeration_sort', SORT, (_in(CONTEXT), _in(SYMBOL), _in(UINT),
- _in_array(2, SYMBOL),
- _out_array(2, FUNC_DECL),
- _out_array(2, FUNC_DECL)))
-
-API('Z3_mk_list_sort', SORT, (_in(CONTEXT), _in(SYMBOL), _in(SORT), _out(FUNC_DECL), _out(FUNC_DECL), _out(FUNC_DECL), _out(FUNC_DECL), _out(FUNC_DECL), _out(FUNC_DECL)))
-
-API('Z3_mk_constructor', CONSTRUCTOR, (_in(CONTEXT), _in(SYMBOL), _in(SYMBOL), _in(UINT), _in_array(3, SYMBOL), _in_array(3, SORT), _in_array(3, UINT)))
-API('Z3_query_constructor', VOID, (_in(CONTEXT), _in(CONSTRUCTOR), _in(UINT), _out(FUNC_DECL), _out(FUNC_DECL), _out_array(2, FUNC_DECL)))
-API('Z3_del_constructor', VOID, (_in(CONTEXT), _in(CONSTRUCTOR)))
-API('Z3_mk_datatype', SORT, (_in(CONTEXT), _in(SYMBOL), _in(UINT), _inout_array(2, CONSTRUCTOR)))
-API('Z3_mk_constructor_list', CONSTRUCTOR_LIST, (_in(CONTEXT), _in(UINT), _in_array(1, CONSTRUCTOR)))
-API('Z3_del_constructor_list', VOID, (_in(CONTEXT), _in(CONSTRUCTOR_LIST)))
-API('Z3_mk_datatypes', VOID, (_in(CONTEXT), _in(UINT), _in_array(1, SYMBOL), _out_array(1, SORT), _inout_array(1, CONSTRUCTOR_LIST)))
-
-API('Z3_is_eq_ast', BOOL, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_is_eq_func_decl', BOOL, (_in(CONTEXT), _in(FUNC_DECL), _in(FUNC_DECL)))
-API('Z3_mk_func_decl', FUNC_DECL, (_in(CONTEXT), _in(SYMBOL), _in(UINT), _in_array(2, SORT), _in(SORT)))
-API('Z3_mk_app', AST, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT), _in_array(2, AST)))
-API('Z3_mk_const', AST, (_in(CONTEXT), _in(SYMBOL), _in(SORT)))
-API('Z3_mk_label', AST, (_in(CONTEXT), _in(SYMBOL), _in(BOOL), _in(AST)))
-API('Z3_mk_fresh_func_decl', FUNC_DECL, (_in(CONTEXT), _in(STRING), _in(UINT), _in_array(2, SORT), _in(SORT)))
-API('Z3_mk_fresh_const', AST, (_in(CONTEXT), _in(STRING), _in(SORT)))
-API('Z3_mk_true', AST, (_in(CONTEXT), ))
-API('Z3_mk_false', AST, (_in(CONTEXT), ))
-API('Z3_mk_eq', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_distinct', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_not', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_ite', AST, (_in(CONTEXT), _in(AST), _in(AST), _in(AST)))
-API('Z3_mk_iff', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_implies', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_xor', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_and', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_or', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_add', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_mul', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_sub', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_unary_minus', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_div', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_mod', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_rem', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_power', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_is_algebraic_number', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_get_algebraic_number_lower', AST, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_algebraic_number_upper', AST, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_mk_lt', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_le', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_gt', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_ge', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_int2real', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_real2int', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_is_int', AST, (_in(CONTEXT), _in(AST)))
-
-API('Z3_mk_bvnot', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_bvredand', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_bvredor', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_bvand', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvor', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvxor', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvnand', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvnor', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvxnor', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvneg', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_bvadd', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsub', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvmul', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvudiv', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsdiv', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvurem', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsrem', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsmod', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvult', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvslt', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvule', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsle', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvuge', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsge', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvugt', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsgt', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_concat', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_extract', AST, (_in(CONTEXT), _in(UINT), _in(UINT), _in(AST)))
-API('Z3_mk_sign_ext', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_zero_ext', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_repeat', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_bvshl', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvlshr', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvashr', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_rotate_left', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_rotate_right', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_ext_rotate_left', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_ext_rotate_right', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_int2bv', AST, (_in(CONTEXT), _in(UINT), _in(AST)))
-API('Z3_mk_bv2int', AST, (_in(CONTEXT), _in(AST), _in(BOOL)))
-API('Z3_mk_bvadd_no_overflow', AST, (_in(CONTEXT), _in(AST), _in(AST), _in(BOOL)))
-API('Z3_mk_bvadd_no_underflow', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsub_no_overflow', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvsub_no_underflow', AST, (_in(CONTEXT), _in(AST), _in(AST), _in(BOOL)))
-API('Z3_mk_bvsdiv_no_overflow', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_bvneg_no_overflow', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_bvmul_no_overflow', AST, (_in(CONTEXT), _in(AST), _in(AST), _in(BOOL)))
-API('Z3_mk_bvmul_no_underflow', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-
-API('Z3_mk_select', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_store', AST, (_in(CONTEXT), _in(AST), _in(AST), _in(AST)))
-API('Z3_mk_const_array', AST, (_in(CONTEXT), _in(SORT), _in(AST)))
-API('Z3_mk_map', AST, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT), _in_array(2, AST)))
-API('Z3_mk_array_default', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_set_sort', SORT, (_in(CONTEXT), _in(SORT)))
-API('Z3_mk_empty_set', AST, (_in(CONTEXT), _in(SORT)))
-API('Z3_mk_full_set', AST, (_in(CONTEXT), _in(SORT)))
-API('Z3_mk_set_add', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_set_del', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_set_union', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_set_intersect', AST, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_set_difference', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_set_complement', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_mk_set_member', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-API('Z3_mk_set_subset', AST, (_in(CONTEXT), _in(AST), _in(AST)))
-
-API('Z3_mk_numeral', AST, (_in(CONTEXT), _in(STRING), _in(SORT)))
-API('Z3_mk_real', AST, (_in(CONTEXT), _in(INT), _in(INT)))
-API('Z3_mk_int', AST, (_in(CONTEXT), _in(INT), _in(SORT)))
-API('Z3_mk_unsigned_int', AST, (_in(CONTEXT), _in(UINT), _in(SORT)))
-API('Z3_mk_int64', AST, (_in(CONTEXT), _in(INT64), _in(SORT)))
-API('Z3_mk_unsigned_int64', AST, (_in(CONTEXT), _in(UINT64), _in(SORT)))
-
-API('Z3_mk_pattern', PATTERN, (_in(CONTEXT), _in(UINT), _in_array(1, AST)))
-API('Z3_mk_bound', AST, (_in(CONTEXT), _in(UINT), _in(SORT)))
-API('Z3_mk_forall', AST, (_in(CONTEXT), _in(UINT),
- _in(UINT), _in_array(2, PATTERN),
- _in(UINT), _in_array(4, SORT), _in_array(4, SYMBOL),
- _in(AST)))
-API('Z3_mk_exists', AST, (_in(CONTEXT), _in(UINT),
- _in(UINT), _in_array(2, PATTERN),
- _in(UINT), _in_array(4, SORT), _in_array(4, SYMBOL),
- _in(AST)))
-API('Z3_mk_quantifier', AST, (_in(CONTEXT), _in(BOOL), _in(UINT),
- _in(UINT), _in_array(3, PATTERN),
- _in(UINT), _in_array(5, SORT), _in_array(5, SYMBOL),
- _in(AST)))
-API('Z3_mk_quantifier_ex', AST, (_in(CONTEXT), _in(BOOL), _in(UINT), _in(SYMBOL), _in(SYMBOL),
- _in(UINT), _in_array(5, PATTERN),
- _in(UINT), _in_array(7, AST),
- _in(UINT), _in_array(9, SORT), _in_array(9, SYMBOL),
- _in(AST)))
-API('Z3_mk_forall_const', AST, (_in(CONTEXT), _in(UINT), _in(UINT), _in_array(2, APP),
- _in(UINT), _in_array(4, PATTERN),
- _in(AST)))
-API('Z3_mk_exists_const', AST, (_in(CONTEXT), _in(UINT), _in(UINT), _in_array(2, APP),
- _in(UINT), _in_array(4, PATTERN),
- _in(AST)))
-API('Z3_mk_quantifier_const', AST, (_in(CONTEXT), _in(BOOL), _in(UINT), _in(UINT), _in_array(3, APP),
- _in(UINT), _in_array(5, PATTERN),
- _in(AST)))
-API('Z3_mk_quantifier_const_ex', AST, (_in(CONTEXT), _in(BOOL), _in(UINT), _in(SYMBOL), _in(SYMBOL),
- _in(UINT), _in_array(5, APP),
- _in(UINT), _in_array(7, PATTERN),
- _in(UINT), _in_array(9, AST),
- _in(AST)))
-
-
-API('Z3_get_ast_id', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_func_decl_id', UINT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_sort_id', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_is_well_sorted', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_get_symbol_kind', UINT, (_in(CONTEXT), _in(SYMBOL)))
-API('Z3_get_symbol_int', INT, (_in(CONTEXT), _in(SYMBOL)))
-API('Z3_get_symbol_string', STRING, (_in(CONTEXT), _in(SYMBOL)))
-API('Z3_get_ast_kind', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_ast_hash', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_numeral_string', STRING, (_in(CONTEXT), _in(AST)))
-API('Z3_get_numeral_decimal_string', STRING, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_numerator', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_get_denominator', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_get_numeral_small', BOOL, (_in(CONTEXT), _in(AST), _out(INT64), _out(INT64)))
-API('Z3_get_numeral_int', BOOL, (_in(CONTEXT), _in(AST), _out(INT)))
-API('Z3_get_numeral_uint', BOOL, (_in(CONTEXT), _in(AST), _out(UINT)))
-API('Z3_get_numeral_uint64', BOOL, (_in(CONTEXT), _in(AST), _out(UINT64)))
-API('Z3_get_numeral_int64', BOOL, (_in(CONTEXT), _in(AST), _out(INT64)))
-API('Z3_get_numeral_rational_int64', BOOL, (_in(CONTEXT), _in(AST), _out(INT64), _out(INT64)))
-API('Z3_get_bool_value', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_app_decl', FUNC_DECL, (_in(CONTEXT), _in(APP)))
-API('Z3_get_app_num_args', UINT, (_in(CONTEXT), _in(APP)))
-API('Z3_get_app_arg', AST, (_in(CONTEXT), _in(APP), _in(UINT)))
-API('Z3_get_index_value', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_is_quantifier_forall', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_get_quantifier_weight', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_quantifier_num_patterns', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_quantifier_pattern_ast', PATTERN, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_quantifier_num_no_patterns', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_quantifier_no_pattern_ast', AST, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_quantifier_bound_name', SYMBOL, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_quantifier_bound_sort', SORT, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_get_quantifier_body', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_get_quantifier_num_bound', UINT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_decl_name', SYMBOL, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_decl_num_parameters', UINT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_decl_parameter_kind', UINT, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_int_parameter', INT, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_double_parameter', DOUBLE, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_symbol_parameter', SYMBOL, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_sort_parameter', SORT, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_ast_parameter', AST, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_func_decl_parameter', FUNC_DECL, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_decl_rational_parameter', STRING, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_sort_name', SYMBOL, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_sort', SORT, (_in(CONTEXT), _in(AST)))
-API('Z3_get_domain_size', UINT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_domain', SORT, (_in(CONTEXT), _in(FUNC_DECL), _in(UINT)))
-API('Z3_get_range', SORT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_sort_kind', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_bv_sort_size', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_array_sort_domain', SORT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_array_sort_range', SORT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_tuple_sort_mk_decl', FUNC_DECL, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_decl_kind', UINT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_get_tuple_sort_num_fields', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_tuple_sort_field_decl', FUNC_DECL, (_in(CONTEXT), _in(SORT), _in(UINT)))
-API('Z3_get_datatype_sort_num_constructors', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_datatype_sort_constructor', FUNC_DECL, (_in(CONTEXT), _in(SORT), _in(UINT)))
-API('Z3_get_datatype_sort_recognizer', FUNC_DECL, (_in(CONTEXT), _in(SORT), _in(UINT)))
-API('Z3_get_datatype_sort_constructor_accessor', FUNC_DECL, (_in(CONTEXT), _in(SORT), _in(UINT), _in(UINT)))
-API('Z3_get_relation_arity', UINT, (_in(CONTEXT), _in(SORT)))
-API('Z3_get_relation_column', SORT, (_in(CONTEXT), _in(SORT), _in(UINT)))
-API('Z3_get_finite_domain_sort_size', BOOL, (_in(CONTEXT), _in(SORT), _out(UINT64)))
-API('Z3_mk_finite_domain_sort', SORT, (_in(CONTEXT), _in(SYMBOL), _in(UINT64)))
-API('Z3_get_pattern_num_terms', UINT, (_in(CONTEXT), _in(PATTERN)))
-API('Z3_get_pattern', AST, (_in(CONTEXT), _in(PATTERN), _in(UINT)))
-
-API('Z3_simplify', AST, (_in(CONTEXT), _in(AST)))
-API('Z3_simplify_ex', AST, (_in(CONTEXT), _in(AST), _in(PARAMS)))
-API('Z3_simplify_get_help', STRING, (_in(CONTEXT),))
-API('Z3_simplify_get_param_descrs', PARAM_DESCRS, (_in(CONTEXT),))
-
-API('Z3_update_term', AST, (_in(CONTEXT), _in(AST), _in(UINT), _in_array(2, AST)))
-API('Z3_substitute', AST, (_in(CONTEXT), _in(AST), _in(UINT), _in_array(2, AST), _in_array(2, AST)))
-API('Z3_substitute_vars', AST, (_in(CONTEXT), _in(AST), _in(UINT), _in_array(2, AST)))
-
-API('Z3_sort_to_ast', AST, (_in(CONTEXT), _in(SORT)))
-API('Z3_func_decl_to_ast', AST, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_pattern_to_ast', AST, (_in(CONTEXT), _in(PATTERN)))
-API('Z3_app_to_ast', AST, (_in(CONTEXT), _in(APP)))
-API('Z3_to_app', APP, (_in(CONTEXT), _in(AST)))
-API('Z3_to_func_decl', FUNC_DECL, (_in(CONTEXT), _in(AST)))
-
-API('Z3_push', VOID, (_in(CONTEXT),))
-API('Z3_pop', VOID, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_num_scopes', UINT, (_in(CONTEXT),))
-API('Z3_persist_ast', VOID, (_in(CONTEXT), _in(AST), _in(UINT)))
-API('Z3_assert_cnstr', VOID, (_in(CONTEXT), _in(AST)))
-API('Z3_check_and_get_model', INT, (_in(CONTEXT), _out(MODEL)))
-API('Z3_check', INT, (_in(CONTEXT),))
-API('Z3_check_assumptions', INT, (_in(CONTEXT), _in(UINT), _in_array(1, AST), _out(MODEL), _out(AST), _out(UINT), _out_array2(1, 5, AST)))
-API('Z3_get_implied_equalities', UINT, (_in(CONTEXT), _in(UINT), _in_array(1, AST), _out_array(1, UINT)))
-API('Z3_del_model', VOID, (_in(CONTEXT), _in(MODEL)))
-
-API('Z3_soft_check_cancel', VOID, (_in(CONTEXT), ))
-API('Z3_get_search_failure', UINT, (_in(CONTEXT), ))
-
-API('Z3_get_relevant_labels', LITERALS, (_in(CONTEXT), ))
-API('Z3_get_relevant_literals', LITERALS, (_in(CONTEXT), ))
-API('Z3_get_guessed_literals', LITERALS, (_in(CONTEXT), ))
-API('Z3_del_literals', VOID, (_in(CONTEXT), _in(LITERALS)))
-API('Z3_get_num_literals', UINT, (_in(CONTEXT), _in(LITERALS)))
-API('Z3_get_label_symbol', SYMBOL, (_in(CONTEXT), _in(LITERALS), _in(UINT)))
-API('Z3_get_literal', AST, (_in(CONTEXT), _in(LITERALS), _in(UINT)))
-API('Z3_disable_literal', VOID, (_in(CONTEXT), _in(LITERALS), _in(UINT)))
-API('Z3_block_literals', VOID, (_in(CONTEXT), _in(LITERALS)))
-
-API('Z3_model_inc_ref', VOID, (_in(CONTEXT), _in(MODEL)))
-API('Z3_model_dec_ref', VOID, (_in(CONTEXT), _in(MODEL)))
-API('Z3_model_get_const_interp', AST, (_in(CONTEXT), _in(MODEL), _in(FUNC_DECL)))
-API('Z3_model_get_func_interp', FUNC_INTERP, (_in(CONTEXT), _in(MODEL), _in(FUNC_DECL)))
-API('Z3_model_get_num_consts', UINT, (_in(CONTEXT), _in(MODEL)))
-API('Z3_model_get_const_decl', FUNC_DECL, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_model_get_num_funcs', UINT, (_in(CONTEXT), _in(MODEL)))
-API('Z3_model_get_func_decl', FUNC_DECL, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_model_eval', BOOL, (_in(CONTEXT), _in(MODEL), _in(AST), _in(BOOL), _out(AST)))
-API('Z3_model_get_num_sorts', UINT, (_in(CONTEXT), _in(MODEL)))
-API('Z3_model_get_sort', SORT, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_model_get_sort_universe', AST_VECTOR, (_in(CONTEXT), _in(MODEL), _in(SORT)))
-API('Z3_is_as_array', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_get_as_array_func_decl', FUNC_DECL, (_in(CONTEXT), _in(AST)))
-API('Z3_func_interp_inc_ref', VOID, (_in(CONTEXT), _in(FUNC_INTERP)))
-API('Z3_func_interp_dec_ref', VOID, (_in(CONTEXT), _in(FUNC_INTERP)))
-API('Z3_func_interp_get_num_entries', UINT, (_in(CONTEXT), _in(FUNC_INTERP)))
-API('Z3_func_interp_get_entry', FUNC_ENTRY, (_in(CONTEXT), _in(FUNC_INTERP), _in(UINT)))
-API('Z3_func_interp_get_else', AST, (_in(CONTEXT), _in(FUNC_INTERP)))
-API('Z3_func_interp_get_arity', UINT, (_in(CONTEXT), _in(FUNC_INTERP)))
-API('Z3_func_entry_inc_ref', VOID, (_in(CONTEXT), _in(FUNC_ENTRY)))
-API('Z3_func_entry_dec_ref', VOID, (_in(CONTEXT), _in(FUNC_ENTRY)))
-API('Z3_func_entry_get_value', AST, (_in(CONTEXT), _in(FUNC_ENTRY)))
-API('Z3_func_entry_get_num_args', UINT, (_in(CONTEXT), _in(FUNC_ENTRY)))
-API('Z3_func_entry_get_arg', AST, (_in(CONTEXT), _in(FUNC_ENTRY), _in(UINT)))
-
-API('Z3_get_model_num_constants', UINT, (_in(CONTEXT), _in(MODEL)))
-API('Z3_get_model_constant', FUNC_DECL, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_eval_func_decl', BOOL, (_in(CONTEXT), _in(MODEL), _in(FUNC_DECL), _out(AST)))
-API('Z3_is_array_value', BOOL, (_in(CONTEXT), _in(MODEL), _in(AST), _out(UINT)))
-API('Z3_get_array_value', VOID, (_in(CONTEXT), _in(MODEL), _in(AST),
- _in(UINT), _out_array(3, AST), _out_array(3, AST),
- _out (AST)))
-API('Z3_get_model_num_funcs', UINT, (_in(CONTEXT), _in(MODEL)))
-API('Z3_get_model_func_decl', FUNC_DECL, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_get_model_func_else', AST, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_get_model_func_num_entries', UINT, (_in(CONTEXT), _in(MODEL), _in(UINT)))
-API('Z3_get_model_func_entry_num_args', UINT, (_in(CONTEXT), _in(MODEL), _in(UINT), _in(UINT)))
-API('Z3_get_model_func_entry_arg', AST, (_in(CONTEXT), _in(MODEL), _in(UINT), _in(UINT), _in(UINT)))
-API('Z3_get_model_func_entry_value', AST, (_in(CONTEXT), _in(MODEL), _in(UINT), _in(UINT)))
-API('Z3_eval', BOOL, (_in(CONTEXT), _in(MODEL), _in(AST), _out(AST)))
-API('Z3_eval_decl', BOOL, (_in(CONTEXT), _in(MODEL), _in(FUNC_DECL), _in(UINT), _in_array(3, AST), _out(AST)))
-
-API('Z3_set_ast_print_mode', VOID, (_in(CONTEXT), _in(PRINT_MODE)))
-API('Z3_ast_to_string', STRING, (_in(CONTEXT), _in(AST)))
-API('Z3_pattern_to_string', STRING, (_in(CONTEXT), _in(PATTERN)))
-API('Z3_sort_to_string', STRING, (_in(CONTEXT), _in(SORT)))
-API('Z3_func_decl_to_string', STRING, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_model_to_string', STRING, (_in(CONTEXT), _in(MODEL)))
-API('Z3_benchmark_to_smtlib_string', STRING, (_in(CONTEXT), _in(STRING), _in(STRING), _in(STRING), _in(STRING), _in(UINT), _in_array(5, AST), _in(AST)))
-API('Z3_context_to_string', STRING, (_in(CONTEXT),))
-API('Z3_statistics_to_string', STRING, (_in(CONTEXT),))
-
-API('Z3_get_context_assignment', AST, (_in(CONTEXT),))
-
-API('Z3_parse_smtlib_string', VOID, (_in(CONTEXT), _in(STRING), _in(UINT), _in_array(2, SYMBOL), _in_array(2, SORT),
- _in(UINT), _in_array(5, SYMBOL), _in_array(5, FUNC_DECL)))
-API('Z3_parse_smtlib_file', VOID, (_in(CONTEXT), _in(STRING), _in(UINT), _in_array(2, SYMBOL), _in_array(2, SORT),
- _in(UINT), _in_array(5, SYMBOL), _in_array(5, FUNC_DECL)))
-API('Z3_get_smtlib_num_formulas', UINT, (_in(CONTEXT), ))
-API('Z3_get_smtlib_formula', AST, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_smtlib_num_assumptions', UINT, (_in(CONTEXT), ))
-API('Z3_get_smtlib_assumption', AST, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_smtlib_num_decls', UINT, (_in(CONTEXT), ))
-API('Z3_get_smtlib_decl', FUNC_DECL, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_smtlib_num_sorts', UINT, (_in(CONTEXT), ))
-API('Z3_get_smtlib_sort', SORT, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_smtlib_error', STRING, (_in(CONTEXT), ))
-
-API('Z3_parse_z3_string', AST, (_in(CONTEXT), _in(STRING)))
-API('Z3_parse_z3_file', AST, (_in(CONTEXT), _in(STRING)))
-
-API('Z3_parse_smtlib2_string', AST, (_in(CONTEXT), _in(STRING), _in(UINT), _in_array(2, SYMBOL), _in_array(2, SORT),
- _in(UINT), _in_array(5, SYMBOL), _in_array(5, FUNC_DECL)))
-API('Z3_parse_smtlib2_file', AST, (_in(CONTEXT), _in(STRING), _in(UINT), _in_array(2, SYMBOL), _in_array(2, SORT),
- _in(UINT), _in_array(5, SYMBOL), _in_array(5, FUNC_DECL)))
-
-API('Z3_get_error_code', UINT, (_in(CONTEXT), ))
-API('Z3_set_error', VOID, (_in(CONTEXT), _in(ERROR_CODE)))
-API('Z3_get_error_msg', STRING, (_in(ERROR_CODE),))
-
-API('Z3_get_version', VOID, (_out(UINT), _out(UINT), _out(UINT), _out(UINT)))
-API('Z3_reset_memory', VOID, ())
-API('Z3_is_app', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_is_numeral_ast', BOOL, (_in(CONTEXT), _in(AST)))
-API('Z3_get_arity', UINT, (_in(CONTEXT), _in(FUNC_DECL)))
-API('Z3_mk_injective_function', FUNC_DECL, (_in(CONTEXT), _in(SYMBOL), _in(UINT), _in_array(2, SORT), _in(SORT)))
-
-API('Z3_mk_fixedpoint', FIXEDPOINT, (_in(CONTEXT), ))
-API('Z3_fixedpoint_inc_ref', VOID, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_dec_ref', VOID, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_push', VOID, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_pop', VOID, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_register_relation', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(FUNC_DECL)))
-API('Z3_fixedpoint_assert', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(AST)))
-API('Z3_fixedpoint_add_rule', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(AST), _in(SYMBOL)))
-API('Z3_fixedpoint_add_fact', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(FUNC_DECL), _in(UINT), _in_array(3, UINT)))
-API('Z3_fixedpoint_query', INT, (_in(CONTEXT), _in(FIXEDPOINT), _in(AST)))
-API('Z3_fixedpoint_query_relations', INT, (_in(CONTEXT), _in(FIXEDPOINT), _in(UINT), _in_array(2, FUNC_DECL)))
-API('Z3_fixedpoint_get_answer', AST, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_update_rule', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(AST), _in(SYMBOL)))
-API('Z3_fixedpoint_get_num_levels', UINT, (_in(CONTEXT), _in(FIXEDPOINT), _in(FUNC_DECL)))
-API('Z3_fixedpoint_get_cover_delta', AST, (_in(CONTEXT), _in(FIXEDPOINT), _in(INT), _in(FUNC_DECL)))
-API('Z3_fixedpoint_add_cover', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(INT), _in(FUNC_DECL), _in(AST)))
-API('Z3_fixedpoint_get_statistics', STATS, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_get_help', STRING, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_get_param_descrs', PARAM_DESCRS, (_in(CONTEXT), _in(FIXEDPOINT)))
-API('Z3_fixedpoint_set_params', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(PARAMS)))
-API('Z3_fixedpoint_to_string', STRING, (_in(CONTEXT), _in(FIXEDPOINT), _in(UINT), _in_array(2, AST)))
-API('Z3_fixedpoint_get_reason_unknown', STRING, (_in(CONTEXT), _in(FIXEDPOINT) ))
-API('Z3_fixedpoint_set_predicate_representation', VOID, (_in(CONTEXT), _in(FIXEDPOINT), _in(FUNC_DECL), _in(UINT), _in_array(3, SYMBOL)))
-API('Z3_fixedpoint_simplify_rules', AST_VECTOR, (_in(CONTEXT), _in(FIXEDPOINT), _in(UINT), _in_array(2,AST), _in(UINT), _in_array(4,FUNC_DECL)))
-# Parameter set support
-API('Z3_mk_params', PARAMS, (_in(CONTEXT),))
-API('Z3_params_inc_ref', VOID, (_in(CONTEXT), _in(PARAMS)))
-API('Z3_params_dec_ref', VOID, (_in(CONTEXT), _in(PARAMS)))
-API('Z3_params_set_bool', VOID, (_in(CONTEXT), _in(PARAMS), _in(SYMBOL), _in(BOOL)))
-API('Z3_params_set_uint', VOID, (_in(CONTEXT), _in(PARAMS), _in(SYMBOL), _in(UINT)))
-API('Z3_params_set_double', VOID, (_in(CONTEXT), _in(PARAMS), _in(SYMBOL), _in(DOUBLE)))
-API('Z3_params_set_symbol', VOID, (_in(CONTEXT), _in(PARAMS), _in(SYMBOL), _in(SYMBOL)))
-API('Z3_params_to_string', STRING, (_in(CONTEXT), _in(PARAMS)))
-API('Z3_params_validate', VOID, (_in(CONTEXT), _in(PARAMS), _in(PARAM_DESCRS)))
-# Parameter description
-API('Z3_param_descrs_inc_ref', VOID, (_in(CONTEXT), _in(PARAM_DESCRS)))
-API('Z3_param_descrs_dec_ref', VOID, (_in(CONTEXT), _in(PARAM_DESCRS)))
-API('Z3_param_descrs_get_kind', UINT, (_in(CONTEXT), _in(PARAM_DESCRS), _in(SYMBOL)))
-API('Z3_param_descrs_size', UINT, (_in(CONTEXT), _in(PARAM_DESCRS)))
-API('Z3_param_descrs_get_name', SYMBOL, (_in(CONTEXT), _in(PARAM_DESCRS), _in(UINT)))
-API('Z3_param_descrs_to_string', STRING, (_in(CONTEXT), _in(PARAM_DESCRS)))
-# New APIs
-API('Z3_interrupt', VOID, (_in(CONTEXT),))
-API('Z3_get_error_msg_ex', STRING, (_in(CONTEXT), _in(ERROR_CODE)))
-API('Z3_translate', AST, (_in(CONTEXT), _in(AST), _in(CONTEXT)))
-# Goal support
-API('Z3_mk_goal', GOAL, (_in(CONTEXT), _in(BOOL), _in(BOOL), _in(BOOL)))
-API('Z3_goal_inc_ref', VOID, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_dec_ref', VOID, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_precision', UINT, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_assert', VOID, (_in(CONTEXT), _in(GOAL), _in(AST)))
-API('Z3_goal_inconsistent', BOOL, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_depth', UINT, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_reset', VOID, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_size', UINT, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_formula', AST, (_in(CONTEXT), _in(GOAL), _in(UINT)))
-API('Z3_goal_num_exprs', UINT, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_is_decided_sat', BOOL, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_is_decided_unsat', BOOL, (_in(CONTEXT), _in(GOAL)))
-API('Z3_goal_translate', GOAL, (_in(CONTEXT), _in(GOAL), _in(CONTEXT)))
-API('Z3_goal_to_string', STRING, (_in(CONTEXT), _in(GOAL)))
-# Tactics and Goals
-API('Z3_mk_tactic', TACTIC, (_in(CONTEXT), _in(STRING)))
-API('Z3_mk_probe', PROBE, (_in(CONTEXT), _in(STRING)))
-API('Z3_tactic_inc_ref', VOID, (_in(CONTEXT), _in(TACTIC)))
-API('Z3_tactic_dec_ref', VOID, (_in(CONTEXT), _in(TACTIC)))
-API('Z3_probe_inc_ref', VOID, (_in(CONTEXT), _in(PROBE)))
-API('Z3_probe_dec_ref', VOID, (_in(CONTEXT), _in(PROBE)))
-API('Z3_tactic_and_then', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(TACTIC)))
-API('Z3_tactic_or_else', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(TACTIC)))
-API('Z3_tactic_par_or', TACTIC, (_in(CONTEXT), _in(UINT), _in_array(1, TACTIC)))
-API('Z3_tactic_par_and_then', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(TACTIC)))
-API('Z3_tactic_try_for', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(UINT)))
-API('Z3_tactic_when', TACTIC, (_in(CONTEXT), _in(PROBE), _in(TACTIC)))
-API('Z3_tactic_cond', TACTIC, (_in(CONTEXT), _in(PROBE), _in(TACTIC), _in(TACTIC)))
-API('Z3_tactic_repeat', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(UINT)))
-API('Z3_tactic_skip', TACTIC, (_in(CONTEXT),))
-API('Z3_tactic_fail', TACTIC, (_in(CONTEXT),))
-API('Z3_tactic_fail_if', TACTIC, (_in(CONTEXT), _in(PROBE)))
-API('Z3_tactic_fail_if_not_decided', TACTIC, (_in(CONTEXT),))
-API('Z3_tactic_using_params', TACTIC, (_in(CONTEXT), _in(TACTIC), _in(PARAMS)))
-API('Z3_probe_const', PROBE, (_in(CONTEXT), _in(DOUBLE)))
-API('Z3_probe_lt', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_le', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_gt', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_ge', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_eq', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_and', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_or', PROBE, (_in(CONTEXT), _in(PROBE), _in(PROBE)))
-API('Z3_probe_not', PROBE, (_in(CONTEXT), _in(PROBE)))
-API('Z3_get_num_tactics', UINT, (_in(CONTEXT),))
-API('Z3_get_tactic_name', STRING, (_in(CONTEXT), _in(UINT)))
-API('Z3_get_num_probes', UINT, (_in(CONTEXT),))
-API('Z3_get_probe_name', STRING, (_in(CONTEXT), _in(UINT)))
-API('Z3_tactic_get_help', STRING, (_in(CONTEXT), _in(TACTIC)))
-API('Z3_tactic_get_param_descrs', PARAM_DESCRS, (_in(CONTEXT), _in(TACTIC)))
-API('Z3_tactic_get_descr', STRING, (_in(CONTEXT), _in(STRING)))
-API('Z3_probe_get_descr', STRING, (_in(CONTEXT), _in(STRING)))
-API('Z3_probe_apply', DOUBLE, (_in(CONTEXT), _in(PROBE), _in(GOAL)))
-API('Z3_tactic_apply', APPLY_RESULT, (_in(CONTEXT), _in(TACTIC), _in(GOAL)))
-API('Z3_tactic_apply_ex', APPLY_RESULT, (_in(CONTEXT), _in(TACTIC), _in(GOAL), _in(PARAMS)))
-API('Z3_apply_result_inc_ref', VOID, (_in(CONTEXT), _in(APPLY_RESULT)))
-API('Z3_apply_result_dec_ref', VOID, (_in(CONTEXT), _in(APPLY_RESULT)))
-API('Z3_apply_result_to_string', STRING, (_in(CONTEXT), _in(APPLY_RESULT)))
-API('Z3_apply_result_get_num_subgoals', UINT, (_in(CONTEXT), _in(APPLY_RESULT)))
-API('Z3_apply_result_get_subgoal', GOAL, (_in(CONTEXT), _in(APPLY_RESULT), _in(UINT)))
-API('Z3_apply_result_convert_model', MODEL, (_in(CONTEXT), _in(APPLY_RESULT), _in(UINT), _in(MODEL)))
-# Solver API
-API('Z3_mk_solver', SOLVER, (_in(CONTEXT),))
-API('Z3_mk_simple_solver', SOLVER, (_in(CONTEXT),))
-API('Z3_mk_solver_for_logic', SOLVER, (_in(CONTEXT), _in(SYMBOL)))
-API('Z3_mk_solver_from_tactic', SOLVER, (_in(CONTEXT), _in(TACTIC)))
-API('Z3_solver_get_help', STRING, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_param_descrs', PARAM_DESCRS, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_set_params', VOID, (_in(CONTEXT), _in(SOLVER), _in(PARAMS)))
-API('Z3_solver_inc_ref', VOID, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_dec_ref', VOID, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_push', VOID, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_pop', VOID, (_in(CONTEXT), _in(SOLVER), _in(UINT)))
-API('Z3_solver_reset', VOID, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_num_scopes', UINT, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_assert', VOID, (_in(CONTEXT), _in(SOLVER), _in(AST)))
-API('Z3_solver_get_assertions', AST_VECTOR, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_check', INT, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_check_assumptions', INT, (_in(CONTEXT), _in(SOLVER), _in(UINT), _in_array(2, AST)))
-API('Z3_solver_get_model', MODEL, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_proof', AST, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_unsat_core', AST_VECTOR, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_reason_unknown', STRING, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_get_statistics', STATS, (_in(CONTEXT), _in(SOLVER)))
-API('Z3_solver_to_string', STRING, (_in(CONTEXT), _in(SOLVER)))
-# Statistics API
-API('Z3_stats_to_string', STRING, (_in(CONTEXT), _in(STATS)))
-API('Z3_stats_inc_ref', VOID, (_in(CONTEXT), _in(STATS)))
-API('Z3_stats_dec_ref', VOID, (_in(CONTEXT), _in(STATS)))
-API('Z3_stats_size', UINT, (_in(CONTEXT), _in(STATS)))
-API('Z3_stats_get_key', STRING, (_in(CONTEXT), _in(STATS), _in(UINT)))
-API('Z3_stats_is_uint', BOOL, (_in(CONTEXT), _in(STATS), _in(UINT)))
-API('Z3_stats_is_double', BOOL, (_in(CONTEXT), _in(STATS), _in(UINT)))
-API('Z3_stats_get_uint_value', UINT, (_in(CONTEXT), _in(STATS), _in(UINT)))
-API('Z3_stats_get_double_value', DOUBLE, (_in(CONTEXT), _in(STATS), _in(UINT)))
-# AST Vectors
-API('Z3_mk_ast_vector', AST_VECTOR, (_in(CONTEXT),))
-API('Z3_ast_vector_inc_ref', VOID, (_in(CONTEXT), _in(AST_VECTOR)))
-API('Z3_ast_vector_dec_ref', VOID, (_in(CONTEXT), _in(AST_VECTOR)))
-API('Z3_ast_vector_size', UINT, (_in(CONTEXT), _in(AST_VECTOR)))
-API('Z3_ast_vector_get', AST, (_in(CONTEXT), _in(AST_VECTOR), _in(UINT)))
-API('Z3_ast_vector_set', VOID, (_in(CONTEXT), _in(AST_VECTOR), _in(UINT), _in(AST)))
-API('Z3_ast_vector_resize', VOID, (_in(CONTEXT), _in(AST_VECTOR), _in(UINT)))
-API('Z3_ast_vector_push', VOID, (_in(CONTEXT), _in(AST_VECTOR), _in(AST)))
-API('Z3_ast_vector_translate', AST_VECTOR, (_in(CONTEXT), _in(AST_VECTOR), _in(CONTEXT)))
-API('Z3_ast_vector_to_string', STRING, (_in(CONTEXT), _in(AST_VECTOR)))
-# AST Maps
-API('Z3_mk_ast_map', AST_MAP, (_in(CONTEXT),))
-API('Z3_ast_map_inc_ref', VOID, (_in(CONTEXT), _in(AST_MAP)))
-API('Z3_ast_map_dec_ref', VOID, (_in(CONTEXT), _in(AST_MAP)))
-API('Z3_ast_map_contains', BOOL, (_in(CONTEXT), _in(AST_MAP), _in(AST)))
-API('Z3_ast_map_find', AST, (_in(CONTEXT), _in(AST_MAP), _in(AST)))
-API('Z3_ast_map_insert', VOID, (_in(CONTEXT), _in(AST_MAP), _in(AST), _in(AST)))
-API('Z3_ast_map_erase', VOID, (_in(CONTEXT), _in(AST_MAP), _in(AST)))
-API('Z3_ast_map_size', UINT, (_in(CONTEXT), _in(AST_MAP)))
-API('Z3_ast_map_reset', VOID, (_in(CONTEXT), _in(AST_MAP)))
-API('Z3_ast_map_keys', AST_VECTOR, (_in(CONTEXT), _in(AST_MAP)))
-API('Z3_ast_map_to_string', STRING, (_in(CONTEXT), _in(AST_MAP)))
-# WARNING: we do not support logging for the theory plugin API
-extra_API('Z3_open_log', INT, (_in(STRING),))
-extra_API('Z3_append_log', VOID, (_in(STRING),))
-extra_API('Z3_close_log', VOID, ())
-
-mk_bindings()
-mk_py_wrappers()
-mk_dotnet()
-mk_dotnet_wrappers()
-# mk_defs()
diff --git a/lib/api_commands.cpp b/lib/api_commands.cpp
index 342b25155..4b6cd61c5 100644
--- a/lib/api_commands.cpp
+++ b/lib/api_commands.cpp
@@ -1,3484 +1,3484 @@
-// Automatically generated file, generator: api.py
-#include"z3.h"
-#include"z3_replayer.h"
-void Z3_replacer_error_handler(Z3_context ctx, Z3_error_code c) { printf("[REPLAYER ERROR HANDLER]: %s\n", Z3_get_error_msg_ex(ctx, c)); }
-void exec_Z3_mk_config(z3_replayer & in) {
- Z3_config result = Z3_mk_config(
- );
- in.store_result(result);
-}
-void exec_Z3_del_config(z3_replayer & in) {
- Z3_del_config(
- reinterpret_cast(in.get_obj(0)));
-}
-void exec_Z3_set_param_value(z3_replayer & in) {
- Z3_set_param_value(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1),
- in.get_str(2));
-}
-void exec_Z3_mk_context(z3_replayer & in) {
- Z3_context result = Z3_mk_context(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
- Z3_set_error_handler(result, Z3_replacer_error_handler);}
-void exec_Z3_mk_context_rc(z3_replayer & in) {
- Z3_context result = Z3_mk_context_rc(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
- Z3_set_error_handler(result, Z3_replacer_error_handler);}
-void exec_Z3_set_logic(z3_replayer & in) {
- Z3_set_logic(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1));
-}
-void exec_Z3_del_context(z3_replayer & in) {
- Z3_del_context(
- reinterpret_cast(in.get_obj(0)));
-}
-void exec_Z3_inc_ref(z3_replayer & in) {
- Z3_inc_ref(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
-}
-void exec_Z3_dec_ref(z3_replayer & in) {
- Z3_dec_ref(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
-}
-void exec_Z3_toggle_warning_messages(z3_replayer & in) {
- Z3_toggle_warning_messages(
- in.get_bool(0));
-}
-void exec_Z3_update_param_value(z3_replayer & in) {
- Z3_update_param_value(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1),
- in.get_str(2));
-}
-void exec_Z3_get_param_value(z3_replayer & in) {
- Z3_get_param_value(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1),
- in.get_str_addr(2));
-}
-void exec_Z3_mk_int_symbol(z3_replayer & in) {
- Z3_mk_int_symbol(
- reinterpret_cast(in.get_obj(0)),
- in.get_int(1));
-}
-void exec_Z3_mk_string_symbol(z3_replayer & in) {
- Z3_mk_string_symbol(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1));
-}
-void exec_Z3_is_eq_sort(z3_replayer & in) {
- Z3_is_eq_sort(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
-}
-void exec_Z3_mk_uninterpreted_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_uninterpreted_sort(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1));
- in.store_result(result);
-}
-void exec_Z3_mk_bool_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_bool_sort(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
-}
-void exec_Z3_mk_int_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_int_sort(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
-}
-void exec_Z3_mk_real_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_real_sort(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
-}
-void exec_Z3_mk_bv_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_bv_sort(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1));
- in.store_result(result);
-}
-void exec_Z3_mk_array_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_array_sort(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_tuple_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_tuple_sort(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_uint(2),
- in.get_symbol_array(3),
- reinterpret_cast(in.get_obj_array(4)),
- reinterpret_cast(in.get_obj_addr(5)),
- reinterpret_cast(in.get_obj_array(6)));
- in.store_result(result);
-}
-void exec_Z3_mk_enumeration_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_enumeration_sort(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_uint(2),
- in.get_symbol_array(3),
- reinterpret_cast(in.get_obj_array(4)),
- reinterpret_cast(in.get_obj_array(5)));
- in.store_result(result);
-}
-void exec_Z3_mk_list_sort(z3_replayer & in) {
- Z3_sort result = Z3_mk_list_sort(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- reinterpret_cast(in.get_obj(2)),
- reinterpret_cast(in.get_obj_addr(3)),
- reinterpret_cast(in.get_obj_addr(4)),
- reinterpret_cast(in.get_obj_addr(5)),
- reinterpret_cast(in.get_obj_addr(6)),
- reinterpret_cast(in.get_obj_addr(7)),
- reinterpret_cast(in.get_obj_addr(8)));
- in.store_result(result);
-}
-void exec_Z3_mk_constructor(z3_replayer & in) {
- Z3_constructor result = Z3_mk_constructor(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_symbol(2),
- in.get_uint(3),
- in.get_symbol_array(4),
- reinterpret_cast(in.get_obj_array(5)),
- in.get_uint_array(6));
- in.store_result(result);
-}
-void exec_Z3_query_constructor(z3_replayer & in) {
- Z3_query_constructor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- in.get_uint(2),
- reinterpret_cast(in.get_obj_addr(3)),
- reinterpret_cast(in.get_obj_addr(4)),
- reinterpret_cast(in.get_obj_array(5)));
-}
-void exec_Z3_del_constructor(z3_replayer & in) {
- Z3_del_constructor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
-}
-void exec_Z3_mk_datatype(z3_replayer & in) {
- Z3_sort result = Z3_mk_datatype(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_uint(2),
- reinterpret_cast(in.get_obj_array(3)));
- in.store_result(result);
-}
-void exec_Z3_mk_constructor_list(z3_replayer & in) {
- Z3_constructor_list result = Z3_mk_constructor_list(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_del_constructor_list(z3_replayer & in) {
- Z3_del_constructor_list(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
-}
-void exec_Z3_mk_datatypes(z3_replayer & in) {
- Z3_mk_datatypes(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- in.get_symbol_array(2),
- reinterpret_cast(in.get_obj_array(3)),
- reinterpret_cast(in.get_obj_array(4)));
-}
-void exec_Z3_is_eq_ast(z3_replayer & in) {
- Z3_is_eq_ast(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
-}
-void exec_Z3_is_eq_func_decl(z3_replayer & in) {
- Z3_is_eq_func_decl(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
-}
-void exec_Z3_mk_func_decl(z3_replayer & in) {
- Z3_func_decl result = Z3_mk_func_decl(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_uint(2),
- reinterpret_cast(in.get_obj_array(3)),
- reinterpret_cast(in.get_obj(4)));
- in.store_result(result);
-}
-void exec_Z3_mk_app(z3_replayer & in) {
- Z3_ast result = Z3_mk_app(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- in.get_uint(2),
- reinterpret_cast(in.get_obj_array(3)));
- in.store_result(result);
-}
-void exec_Z3_mk_const(z3_replayer & in) {
- Z3_ast result = Z3_mk_const(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_label(z3_replayer & in) {
- Z3_ast result = Z3_mk_label(
- reinterpret_cast(in.get_obj(0)),
- in.get_symbol(1),
- in.get_bool(2),
- reinterpret_cast(in.get_obj(3)));
- in.store_result(result);
-}
-void exec_Z3_mk_fresh_func_decl(z3_replayer & in) {
- Z3_func_decl result = Z3_mk_fresh_func_decl(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1),
- in.get_uint(2),
- reinterpret_cast(in.get_obj_array(3)),
- reinterpret_cast(in.get_obj(4)));
- in.store_result(result);
-}
-void exec_Z3_mk_fresh_const(z3_replayer & in) {
- Z3_ast result = Z3_mk_fresh_const(
- reinterpret_cast(in.get_obj(0)),
- in.get_str(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_true(z3_replayer & in) {
- Z3_ast result = Z3_mk_true(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
-}
-void exec_Z3_mk_false(z3_replayer & in) {
- Z3_ast result = Z3_mk_false(
- reinterpret_cast(in.get_obj(0)));
- in.store_result(result);
-}
-void exec_Z3_mk_eq(z3_replayer & in) {
- Z3_ast result = Z3_mk_eq(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_distinct(z3_replayer & in) {
- Z3_ast result = Z3_mk_distinct(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_not(z3_replayer & in) {
- Z3_ast result = Z3_mk_not(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_ite(z3_replayer & in) {
- Z3_ast result = Z3_mk_ite(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)),
- reinterpret_cast(in.get_obj(3)));
- in.store_result(result);
-}
-void exec_Z3_mk_iff(z3_replayer & in) {
- Z3_ast result = Z3_mk_iff(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_implies(z3_replayer & in) {
- Z3_ast result = Z3_mk_implies(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_xor(z3_replayer & in) {
- Z3_ast result = Z3_mk_xor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_and(z3_replayer & in) {
- Z3_ast result = Z3_mk_and(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_or(z3_replayer & in) {
- Z3_ast result = Z3_mk_or(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_add(z3_replayer & in) {
- Z3_ast result = Z3_mk_add(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_mul(z3_replayer & in) {
- Z3_ast result = Z3_mk_mul(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_sub(z3_replayer & in) {
- Z3_ast result = Z3_mk_sub(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj_array(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_unary_minus(z3_replayer & in) {
- Z3_ast result = Z3_mk_unary_minus(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_div(z3_replayer & in) {
- Z3_ast result = Z3_mk_div(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_mod(z3_replayer & in) {
- Z3_ast result = Z3_mk_mod(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_rem(z3_replayer & in) {
- Z3_ast result = Z3_mk_rem(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_power(z3_replayer & in) {
- Z3_ast result = Z3_mk_power(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_is_algebraic_number(z3_replayer & in) {
- Z3_is_algebraic_number(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
-}
-void exec_Z3_get_algebraic_number_lower(z3_replayer & in) {
- Z3_ast result = Z3_get_algebraic_number_lower(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- in.get_uint(2));
- in.store_result(result);
-}
-void exec_Z3_get_algebraic_number_upper(z3_replayer & in) {
- Z3_ast result = Z3_get_algebraic_number_upper(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- in.get_uint(2));
- in.store_result(result);
-}
-void exec_Z3_mk_lt(z3_replayer & in) {
- Z3_ast result = Z3_mk_lt(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_le(z3_replayer & in) {
- Z3_ast result = Z3_mk_le(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_gt(z3_replayer & in) {
- Z3_ast result = Z3_mk_gt(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_ge(z3_replayer & in) {
- Z3_ast result = Z3_mk_ge(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_int2real(z3_replayer & in) {
- Z3_ast result = Z3_mk_int2real(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_real2int(z3_replayer & in) {
- Z3_ast result = Z3_mk_real2int(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_is_int(z3_replayer & in) {
- Z3_ast result = Z3_mk_is_int(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvnot(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvnot(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvredand(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvredand(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvredor(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvredor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvand(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvand(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvor(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvxor(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvxor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvnand(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvnand(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvnor(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvnor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvxnor(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvxnor(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvneg(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvneg(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvadd(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvadd(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsub(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsub(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvmul(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvmul(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvudiv(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvudiv(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsdiv(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsdiv(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvurem(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvurem(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsrem(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsrem(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsmod(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsmod(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvult(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvult(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvslt(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvslt(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvule(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvule(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsle(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsle(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvuge(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvuge(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsge(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsge(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvugt(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvugt(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvsgt(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvsgt(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_concat(z3_replayer & in) {
- Z3_ast result = Z3_mk_concat(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_extract(z3_replayer & in) {
- Z3_ast result = Z3_mk_extract(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- in.get_uint(2),
- reinterpret_cast(in.get_obj(3)));
- in.store_result(result);
-}
-void exec_Z3_mk_sign_ext(z3_replayer & in) {
- Z3_ast result = Z3_mk_sign_ext(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_zero_ext(z3_replayer & in) {
- Z3_ast result = Z3_mk_zero_ext(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_repeat(z3_replayer & in) {
- Z3_ast result = Z3_mk_repeat(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvshl(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvshl(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvlshr(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvlshr(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_bvashr(z3_replayer & in) {
- Z3_ast result = Z3_mk_bvashr(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_rotate_left(z3_replayer & in) {
- Z3_ast result = Z3_mk_rotate_left(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_rotate_right(z3_replayer & in) {
- Z3_ast result = Z3_mk_rotate_right(
- reinterpret_cast(in.get_obj(0)),
- in.get_uint(1),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_ext_rotate_left(z3_replayer & in) {
- Z3_ast result = Z3_mk_ext_rotate_left(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast(in.get_obj(2)));
- in.store_result(result);
-}
-void exec_Z3_mk_ext_rotate_right(z3_replayer & in) {
- Z3_ast result = Z3_mk_ext_rotate_right(
- reinterpret_cast(in.get_obj(0)),
- reinterpret_cast(in.get_obj(1)),
- reinterpret_cast