3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2018-06-27 11:25:04 -07:00
commit 91ef84b8c9
6 changed files with 49 additions and 71 deletions

View file

@ -66,7 +66,7 @@ public:
TRACE("qe_verbose",
tout << mk_pp(fml, m) << "\n";
tout << mk_pp(result, m) << "\n";);
fml = result;
fml = std::move(result);
}
void extract_quantifier(quantifier* q, app_ref_vector& vars, expr_ref& result, bool use_fresh) {

View file

@ -448,7 +448,7 @@ void rewriter_tpl<Config>::process_app(app * t, frame & fr) {
m_r = result_stack().back();
if (!is_ground(m_r)) {
m_inv_shifter(m_r, num_args, tmp);
m_r = tmp;
m_r = std::move(tmp);
}
result_stack().shrink(fr.m_spos);
result_stack().push_back(m_r);

View file

@ -776,7 +776,7 @@ void th_rewriter::reset() {
void th_rewriter::operator()(expr_ref & term) {
expr_ref result(term.get_manager());
m_imp->operator()(term, result);
term = result;
term = std::move(result);
}
void th_rewriter::operator()(expr * t, expr_ref & result) {