From 833b54a12c31ba054cfafc1dfec5b379dc1b34a8 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Wed, 26 Feb 2020 09:44:21 -0800 Subject: [PATCH] fix dotnet build Signed-off-by: Nikolaj Bjorner --- scripts/update_api.py | 2 +- src/smt/smt_context_inv.cpp | 2 ++ src/smt/theory_lra.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/update_api.py b/scripts/update_api.py index 3e6c6001f..49b60437e 100755 --- a/scripts/update_api.py +++ b/scripts/update_api.py @@ -76,7 +76,7 @@ Type2PyStr = { VOID_PTR : 'ctypes.c_void_p', INT : 'ctypes.c_int', UINT : 'ctype # Mapping to .NET types Type2Dotnet = { VOID : 'void', VOID_PTR : 'IntPtr', INT : 'int', UINT : 'uint', INT64 : 'Int64', UINT64 : 'UInt64', DOUBLE : 'double', FLOAT : 'float', STRING : 'string', STRING_PTR : 'byte**', BOOL : 'byte', SYMBOL : 'IntPtr', - PRINT_MODE : 'uint', ERROR_CODE : 'uint', CHAR : 'char', CHAR_PTR : 'char*' } + PRINT_MODE : 'uint', ERROR_CODE : 'uint', CHAR : 'char', CHAR_PTR : 'IntPtr' } # Mapping to Java types Type2Java = { VOID : 'void', VOID_PTR : 'long', INT : 'int', UINT : 'int', INT64 : 'long', UINT64 : 'long', DOUBLE : 'double', diff --git a/src/smt/smt_context_inv.cpp b/src/smt/smt_context_inv.cpp index d56ba30ea..e26419829 100644 --- a/src/smt/smt_context_inv.cpp +++ b/src/smt/smt_context_inv.cpp @@ -32,10 +32,12 @@ namespace smt { bool context::check_clause(clause const * cls) const { SASSERT(is_watching_clause(~cls->get_literal(0), cls)); SASSERT(is_watching_clause(~cls->get_literal(1), cls)); +#if 0 for (literal l : *cls) { // holds, TBD re-enable when ready to re-check // SASSERT(!track_occs() || m_lit_occs[l.index()] > 0); } +#endif return true; } diff --git a/src/smt/theory_lra.cpp b/src/smt/theory_lra.cpp index 0c2f254a0..9b2177ac2 100644 --- a/src/smt/theory_lra.cpp +++ b/src/smt/theory_lra.cpp @@ -1134,6 +1134,7 @@ public: void apply_sort_cnstr(enode* n, sort*) { TRACE("arith", tout << "sort constraint: " << mk_pp(n->get_owner(), m) << "\n";); +#if 0 if (!th.is_attached_to_var(n)) { theory_var v = mk_var(n->get_owner(), false); auto vi = register_theory_var_in_lar_solver(v); @@ -1142,6 +1143,7 @@ public: // TBD: add a way to bind equality between vi and wi in m_solver } } +#endif } void push_scope_eh() {