mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
fix a few build regressions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e355123e37
commit
bc8ddedc54
|
@ -536,7 +536,6 @@ extern "C" {
|
|||
init_solver(c, s);
|
||||
expr_ref_vector _assumptions(m), _consequences(m), _variables(m);
|
||||
ast_ref_vector const& __assumptions = to_ast_vector_ref(assumptions);
|
||||
unsigned sz = __assumptions.size();
|
||||
for (ast* e : __assumptions) {
|
||||
if (!is_expr(e)) {
|
||||
_assumptions.finalize(); _consequences.finalize(); _variables.finalize();
|
||||
|
@ -546,7 +545,6 @@ extern "C" {
|
|||
_assumptions.push_back(to_expr(e));
|
||||
}
|
||||
ast_ref_vector const& __variables = to_ast_vector_ref(variables);
|
||||
sz = __variables.size();
|
||||
for (ast* a : __variables) {
|
||||
if (!is_expr(a)) {
|
||||
_assumptions.finalize(); _consequences.finalize(); _variables.finalize();
|
||||
|
|
|
@ -401,6 +401,7 @@ inline decl_kind arith_decl_plugin::fix_kind(decl_kind k, unsigned arity) {
|
|||
|
||||
app * arith_decl_plugin::mk_numeral(rational const & val, bool is_int) {
|
||||
if (is_int && !val.is_int()) {
|
||||
SASSERT(false);
|
||||
m_manager->raise_exception("invalid rational value passed as an integer");
|
||||
}
|
||||
if (val.is_unsigned()) {
|
||||
|
|
|
@ -80,8 +80,8 @@ namespace qe {
|
|||
bool sign = todo.back().first;
|
||||
todo.pop_back();
|
||||
if (a.is_add(e)) {
|
||||
for (expr* e : *to_app(e)) {
|
||||
todo.push_back(std::make_pair(sign, e));
|
||||
for (expr* arg : *to_app(e)) {
|
||||
todo.push_back(std::make_pair(sign, arg));
|
||||
}
|
||||
}
|
||||
else if (a.is_sub(e)) {
|
||||
|
|
|
@ -730,8 +730,8 @@ namespace smt {
|
|||
}
|
||||
|
||||
void setup::setup_i_arith() {
|
||||
m_context.register_plugin(alloc(smt::theory_lra, m_manager, m_params));
|
||||
// m_context.register_plugin(alloc(smt::theory_i_arith, m_manager, m_params));
|
||||
// m_context.register_plugin(alloc(smt::theory_lra, m_manager, m_params));
|
||||
m_context.register_plugin(alloc(smt::theory_i_arith, m_manager, m_params));
|
||||
}
|
||||
|
||||
void setup::setup_r_arith() {
|
||||
|
|
Loading…
Reference in a new issue