mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
remove calls to removed def constructor
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a703cf81b1
commit
b27a2aa7fc
src
ast/sls
muz/spacer
qe
sat/smt
smt
|
@ -536,9 +536,7 @@ namespace sls {
|
|||
|
||||
template<typename num_t>
|
||||
void arith_base<num_t>::add_update_idiv(op_def const& od, num_t const& delta) {
|
||||
num_t arg1 = value(od.m_arg1);
|
||||
num_t arg2 = value(od.m_arg2);
|
||||
|
||||
if (arg2 != 0) {
|
||||
if (arg2 > 0)
|
||||
add_update(od.m_arg1, delta * arg2);
|
||||
|
|
|
@ -414,7 +414,7 @@ namespace sls {
|
|||
return ev.val1.svalue;
|
||||
}
|
||||
case OP_SEQ_EXTRACT: {
|
||||
expr* x, * offset, * len;
|
||||
expr* x = nullptr, * offset = nullptr, * len = nullptr;
|
||||
VERIFY(seq.str.is_extract(e, x, offset, len));
|
||||
zstring r = strval0(x);
|
||||
expr_ref offset_e = ctx.get_value(offset);
|
||||
|
@ -449,7 +449,7 @@ namespace sls {
|
|||
}
|
||||
}
|
||||
case OP_SEQ_REPLACE: {
|
||||
expr* x, * y, * z;
|
||||
expr* x = nullptr, * y = nullptr, * z = nullptr;
|
||||
VERIFY(seq.str.is_replace(e, x, y, z));
|
||||
zstring r = strval0(x);
|
||||
zstring s = strval0(y);
|
||||
|
@ -458,7 +458,7 @@ namespace sls {
|
|||
return ev.val1.svalue;
|
||||
}
|
||||
case OP_SEQ_REPLACE_ALL: {
|
||||
expr* x, * y, * z;
|
||||
expr* x = nullptr, * y = nullptr, * z = nullptr;
|
||||
VERIFY(seq.str.is_replace_all(e, x, y, z));
|
||||
zstring s1 = strval0(x);
|
||||
zstring s2 = strval0(y);
|
||||
|
|
|
@ -1937,7 +1937,6 @@ class array_project_selects_util {
|
|||
todo.pop_back();
|
||||
continue;
|
||||
}
|
||||
unsigned num_args = a->get_num_args();
|
||||
bool all_done = true;
|
||||
for (auto arg : *a) {
|
||||
if (!done.is_marked(arg) && is_app(arg)) {
|
||||
|
@ -1945,13 +1944,13 @@ class array_project_selects_util {
|
|||
all_done = false;
|
||||
}
|
||||
}
|
||||
if (!all_done) continue;
|
||||
if (!all_done)
|
||||
continue;
|
||||
todo.pop_back();
|
||||
if (m_arr_u.is_select(a)) {
|
||||
expr *arr = a->get_arg(0);
|
||||
if (m_arr_test.is_marked(arr)) {
|
||||
ptr_vector<app> *lst = m_sel_terms.find(to_app(arr));
|
||||
;
|
||||
lst->push_back(a);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2472,7 +2472,7 @@ namespace qe {
|
|||
for_each_expr(p, fml);
|
||||
return false;
|
||||
}
|
||||
catch (found) {
|
||||
catch (found const&) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -487,7 +487,7 @@ public:
|
|||
val = model(var);
|
||||
sub.insert(var, val);
|
||||
if (defs)
|
||||
defs->push_back(mbp::def(expr_ref(var, m), val));
|
||||
defs->push_back({expr_ref(var, m), val});
|
||||
unsigned j = 0;
|
||||
for (expr* f : fmls) {
|
||||
sub(f, tmp);
|
||||
|
|
|
@ -367,7 +367,7 @@ namespace q {
|
|||
TRACE("euf", tout << "replaced model value " << term << "\nfrom\n" << val << "\n");
|
||||
rep.insert(v, term);
|
||||
if (ctx.use_drat())
|
||||
m_defs.push_back(mbp::def(expr_ref(v, m), term));
|
||||
m_defs.push_back({expr_ref(v, m), term});
|
||||
eqs.push_back(m.mk_eq(v, val));
|
||||
}
|
||||
rep(fmls);
|
||||
|
@ -569,7 +569,7 @@ namespace q {
|
|||
for (unsigned i = 0; i < binding.size(); ++i) {
|
||||
expr_ref v(qb.vars.get(i), m);
|
||||
expr_ref t(binding.get(i), m);
|
||||
m_defs.push_back(mbp::def(v, t));
|
||||
m_defs.push_back({v, t});
|
||||
}
|
||||
}
|
||||
add_instantiation(q, body);
|
||||
|
|
|
@ -1542,7 +1542,7 @@ void theory_seq::add_length(expr* l) {
|
|||
void theory_seq::init_length_limit_for_contains(expr* c) {
|
||||
if (ctx.is_searching())
|
||||
return;
|
||||
expr* x, *y;
|
||||
expr* x = nullptr, *y = nullptr;
|
||||
VERIFY(m_util.str.is_contains(c, x, y));
|
||||
unsigned min_y = m_util.str.min_length(y);
|
||||
if (min_y > 0) {
|
||||
|
|
Loading…
Reference in a new issue