3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 04:28:17 +00:00

fix build break - by renaming tout to out

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-11-06 10:21:02 -08:00
commit 5ea2c22153
10 changed files with 70 additions and 39 deletions

View file

@ -75,7 +75,7 @@ VER_MAJOR=None
VER_MINOR=None VER_MINOR=None
VER_BUILD=None VER_BUILD=None
VER_REVISION=None VER_REVISION=None
PREFIX=os.path.split(os.path.split(os.path.split(PYTHON_PACKAGE_DIR)[0])[0])[0] PREFIX=sys.prefix
GMP=False GMP=False
FOCI2=False FOCI2=False
FOCI2LIB='' FOCI2LIB=''
@ -531,6 +531,7 @@ if os.name == 'nt':
elif os.name == 'posix': elif os.name == 'posix':
if os.uname()[0] == 'Darwin': if os.uname()[0] == 'Darwin':
IS_OSX=True IS_OSX=True
PREFIX="/usr/local"
elif os.uname()[0] == 'Linux': elif os.uname()[0] == 'Linux':
IS_LINUX=True IS_LINUX=True
elif os.uname()[0] == 'FreeBSD': elif os.uname()[0] == 'FreeBSD':
@ -1984,6 +1985,7 @@ def mk_config():
print('Prefix: %s' % PREFIX) print('Prefix: %s' % PREFIX)
print('64-bit: %s' % is64()) print('64-bit: %s' % is64())
print('FP math: %s' % FPMATH) print('FP math: %s' % FPMATH)
print("Python pkg dir: %s" % PYTHON_PACKAGE_DIR)
if GPROF: if GPROF:
print('gprof: enabled') print('gprof: enabled')
print('Python version: %s' % distutils.sysconfig.get_python_version()) print('Python version: %s' % distutils.sysconfig.get_python_version())
@ -2074,8 +2076,6 @@ def mk_makefile():
# Finalize # Finalize
if VERBOSE: if VERBOSE:
print("Makefile was successfully generated.") print("Makefile was successfully generated.")
if not IS_WINDOWS:
print(" python packages dir: %s" % PYTHON_PACKAGE_DIR)
if DEBUG_MODE: if DEBUG_MODE:
print(" compilation mode: Debug") print(" compilation mode: Debug")
else: else:

View file

@ -56,7 +56,7 @@ public class Model extends Z3Object
Native.getRange(getContext().nCtx(), f.getNativeObject())) == Z3_sort_kind.Z3_ARRAY_SORT Native.getRange(getContext().nCtx(), f.getNativeObject())) == Z3_sort_kind.Z3_ARRAY_SORT
.toInt()) .toInt())
throw new Z3Exception( throw new Z3Exception(
"Non-zero arity functions and arrays have FunctionInterpretations as a model. Use FuncInterp."); "Non-zero arity functions and arrays have FunctionInterpretations as a model. Use getFuncInterp.");
long n = Native.modelGetConstInterp(getContext().nCtx(), getNativeObject(), long n = Native.modelGetConstInterp(getContext().nCtx(), getNativeObject(),
f.getNativeObject()); f.getNativeObject());
@ -101,7 +101,7 @@ public class Model extends Z3Object
} else } else
{ {
throw new Z3Exception( throw new Z3Exception(
"Constant functions do not have a function interpretation; use ConstInterp"); "Constant functions do not have a function interpretation; use getConstInterp");
} }
} else } else
{ {

View file

@ -284,6 +284,9 @@ class AstRef(Z3PPObject):
def __repr__(self): def __repr__(self):
return obj_to_string(self) return obj_to_string(self)
def __hash__(self):
return self.hash()
def sexpr(self): def sexpr(self):
"""Return an string representing the AST node in s-expression notation. """Return an string representing the AST node in s-expression notation.

View file

@ -507,6 +507,8 @@ bool cmd_context::logic_has_arith_core(symbol const & s) const {
s == "QF_AUFLIRA" || s == "QF_AUFLIRA" ||
s == "QF_AUFNIA" || s == "QF_AUFNIA" ||
s == "QF_AUFNIRA" || s == "QF_AUFNIRA" ||
s == "QF_ANIA" ||
s == "QF_LIRA" ||
s == "QF_UFLIA" || s == "QF_UFLIA" ||
s == "QF_UFLRA" || s == "QF_UFLRA" ||
s == "QF_UFIDL" || s == "QF_UFIDL" ||
@ -518,6 +520,7 @@ bool cmd_context::logic_has_arith_core(symbol const & s) const {
s == "QF_UFNIA" || s == "QF_UFNIA" ||
s == "QF_UFNIRA" || s == "QF_UFNIRA" ||
s == "QF_BVRE" || s == "QF_BVRE" ||
s == "ALIA" ||
s == "AUFLIA" || s == "AUFLIA" ||
s == "AUFLIRA" || s == "AUFLIRA" ||
s == "AUFNIA" || s == "AUFNIA" ||
@ -526,9 +529,12 @@ bool cmd_context::logic_has_arith_core(symbol const & s) const {
s == "UFLRA" || s == "UFLRA" ||
s == "UFNRA" || s == "UFNRA" ||
s == "UFNIRA" || s == "UFNIRA" ||
s == "NIA" ||
s == "NRA" ||
s == "UFNIA" || s == "UFNIA" ||
s == "LIA" || s == "LIA" ||
s == "LRA" || s == "LRA" ||
s == "UFIDL" ||
s == "QF_FP" || s == "QF_FP" ||
s == "QF_FPBV" || s == "QF_FPBV" ||
s == "QF_BVFP" || s == "QF_BVFP" ||
@ -583,10 +589,12 @@ bool cmd_context::logic_has_array_core(symbol const & s) const {
return return
s == "QF_AX" || s == "QF_AX" ||
s == "QF_AUFLIA" || s == "QF_AUFLIA" ||
s == "QF_ANIA" ||
s == "QF_ALIA" || s == "QF_ALIA" ||
s == "QF_AUFLIRA" || s == "QF_AUFLIRA" ||
s == "QF_AUFNIA" || s == "QF_AUFNIA" ||
s == "QF_AUFNIRA" || s == "QF_AUFNIRA" ||
s == "ALIA" ||
s == "AUFLIA" || s == "AUFLIA" ||
s == "AUFLIRA" || s == "AUFLIRA" ||
s == "AUFNIA" || s == "AUFNIA" ||

View file

@ -25,4 +25,8 @@ class tactic;
tactic * mk_qfaufbv_tactic(ast_manager & m, params_ref const & p = params_ref()); tactic * mk_qfaufbv_tactic(ast_manager & m, params_ref const & p = params_ref());
/*
ADD_TACTIC("qfaufbv", "builtin strategy for solving QF_AUFBV problems.", "mk_qfaufbv_tactic(m, p)")
*/
#endif #endif

View file

@ -25,4 +25,8 @@ class tactic;
tactic * mk_qfauflia_tactic(ast_manager & m, params_ref const & p = params_ref()); tactic * mk_qfauflia_tactic(ast_manager & m, params_ref const & p = params_ref());
/*
ADD_TACTIC("qfauflia", "builtin strategy for solving QF_AUFLIA problems.", "mk_qfauflia_tactic(m, p)")
*/
#endif #endif

View file

@ -25,4 +25,8 @@ class tactic;
tactic * mk_qfidl_tactic(ast_manager & m, params_ref const & p = params_ref()); tactic * mk_qfidl_tactic(ast_manager & m, params_ref const & p = params_ref());
/*
ADD_TACTIC("qfidl", "builtin strategy for solving QF_IDL problems.", "mk_qfidl_tactic(m, p)")
*/
#endif #endif

View file

@ -26,4 +26,8 @@ class tactic;
tactic * mk_qfuf_tactic(ast_manager & m, params_ref const & p); tactic * mk_qfuf_tactic(ast_manager & m, params_ref const & p);
/*
ADD_TACTIC("qfuf", "builtin strategy for solving QF_UF problems.", "mk_qfuf_tactic(m, p)")
*/
#endif #endif

View file

@ -25,4 +25,8 @@ class tactic;
tactic * mk_qfufbv_tactic(ast_manager & m, params_ref const & p = params_ref()); tactic * mk_qfufbv_tactic(ast_manager & m, params_ref const & p = params_ref());
/*
ADD_TACTIC("qfufbv", "builtin strategy for solving QF_UFBV problems.", "mk_qfufbv_tactic(m, p)")
*/
#endif #endif