mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 04:28:17 +00:00
reorder template definition
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6dec943b29
commit
b170f10148
|
@ -123,6 +123,11 @@ namespace {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template class rewriter_tpl<app_const_arr_rewriter>;
|
||||||
|
template class rewriter_tpl<rd_over_wr_rewriter>;
|
||||||
|
|
||||||
|
|
||||||
void rewrite_as_const_arr(expr* in, model& mdl, expr_ref& out) {
|
void rewrite_as_const_arr(expr* in, model& mdl, expr_ref& out) {
|
||||||
app_const_arr_rewriter cfg(out.m(), mdl);
|
app_const_arr_rewriter cfg(out.m(), mdl);
|
||||||
rewriter_tpl<app_const_arr_rewriter> rw(out.m(), false, cfg);
|
rewriter_tpl<app_const_arr_rewriter> rw(out.m(), false, cfg);
|
||||||
|
@ -675,6 +680,8 @@ public:
|
||||||
vars.reset();
|
vars.reset();
|
||||||
vars.append(other_vars);
|
vars.append(other_vars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mbproj::mbproj(ast_manager& m, params_ref const& p) {
|
mbproj::mbproj(ast_manager& m, params_ref const& p) {
|
||||||
|
@ -715,5 +722,4 @@ opt::inf_eps mbproj::maximize(expr_ref_vector const& fmls, model& mdl, app* t, e
|
||||||
scoped_no_proof _sp(fmls.get_manager());
|
scoped_no_proof _sp(fmls.get_manager());
|
||||||
return m_impl->maximize(fmls, mdl, t, ge, gt);
|
return m_impl->maximize(fmls, mdl, t, ge, gt);
|
||||||
}
|
}
|
||||||
template class rewriter_tpl<app_const_arr_rewriter>;
|
|
||||||
template class rewriter_tpl<rd_over_wr_rewriter>;
|
|
||||||
|
|
|
@ -324,7 +324,7 @@ namespace arith {
|
||||||
|
|
||||||
|
|
||||||
void solver::mk_bv_axiom(app* n) {
|
void solver::mk_bv_axiom(app* n) {
|
||||||
unsigned sz;
|
unsigned sz = 0;
|
||||||
expr* _x = nullptr, * _y = nullptr;
|
expr* _x = nullptr, * _y = nullptr;
|
||||||
VERIFY(a.is_band(n, sz, _x, _y) || a.is_shl(n, sz, _x, _y) || a.is_ashr(n, sz, _x, _y) || a.is_lshr(n, sz, _x, _y));
|
VERIFY(a.is_band(n, sz, _x, _y) || a.is_shl(n, sz, _x, _y) || a.is_ashr(n, sz, _x, _y) || a.is_lshr(n, sz, _x, _y));
|
||||||
rational N = rational::power_of_two(sz);
|
rational N = rational::power_of_two(sz);
|
||||||
|
|
Loading…
Reference in a new issue