3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

deal with build errors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-12-10 10:03:43 -08:00
parent 7ba5d2024d
commit b56a8fa264
3 changed files with 6 additions and 16 deletions

View file

@ -21,6 +21,7 @@ Author:
#include "sat/smt/sat_smt.h"
#include "sat/smt/pb_solver.h"
#include "sat/smt/bv_solver.h"
#include "sat/smt/polysat_solver.h"
#include "sat/smt/euf_solver.h"
#include "sat/smt/array_solver.h"
#include "sat/smt/arith_solver.h"
@ -134,8 +135,11 @@ namespace euf {
special_relations_util sp(m);
if (pb.get_family_id() == fid)
ext = alloc(pb::solver, *this, fid);
else if (bvu.get_family_id() == fid)
else if (bvu.get_family_id() == fid) {
ext = alloc(bv::solver, *this, fid);
dealloc(ext);
ext = alloc(polysat::solver, *this, fid);
}
else if (au.get_family_id() == fid)
ext = alloc(array::solver, *this, fid);
else if (fpa.get_family_id() == fid)

View file

@ -12,6 +12,7 @@ Author:
--*/
#include <utility>
#include "sat/smt/polysat/polysat_assignment.h"
#include "sat/smt/polysat/polysat_core.h"
@ -43,18 +44,6 @@ namespace polysat {
assignment::assignment(core& s)
: m_core(s) { }
assignment assignment::clone() const {
assignment a(s());
a.m_pairs = m_pairs;
a.m_subst.reserve(m_subst.size());
for (unsigned i = m_subst.size(); i-- > 0; )
if (m_subst[i])
a.m_subst.set(i, alloc(substitution, *m_subst[i]));
a.m_subst_trail = m_subst_trail;
return a;
}
bool assignment::contains(pvar var) const {
return subst(s().size(var)).contains(var);
}

View file

@ -91,9 +91,6 @@ namespace polysat {
// prevent implicit copy, use clone() if you do need a copy
assignment(assignment const&) = delete;
assignment& operator=(assignment const&) = delete;
assignment(assignment&&) = default;
assignment& operator=(assignment&&) = default;
assignment clone() const;
void push(pvar var, rational const& value);
void pop();