3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-12 20:04:08 +00:00

remove a few copies

This commit is contained in:
Nuno Lopes 2026-02-10 09:52:03 +00:00
parent 617c621cc0
commit 915ad35012
8 changed files with 42 additions and 24 deletions

View file

@ -60,7 +60,7 @@ namespace smt {
else {
justify(lit, s);
}
m_antecedents.insert(lit.var(), s);
m_antecedents.insert(lit.var(), std::move(s));
bool found = false;
if (m_var2val.contains(e)) {
found = true;
@ -478,7 +478,6 @@ namespace smt {
else {
justify(lit, s);
}
m_antecedents.insert(lit.var(), s);
if (_nasms.contains(lit.index())) {
expr_ref_vector core(m);
for (auto v : s)
@ -487,6 +486,7 @@ namespace smt {
cores.push_back(core);
min_core_size = std::min(min_core_size, core.size());
}
m_antecedents.insert(lit.var(), std::move(s));
}
}