3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-10 09:48:05 +00:00

move into separate component

This commit is contained in:
Jakob Rath 2022-03-10 16:10:56 +01:00
parent d4a28d4553
commit afc711d6ec
7 changed files with 98 additions and 34 deletions

View file

@ -25,34 +25,9 @@ Notes:
#include "sat/smt/bv_solver.h"
#include "sat/smt/euf_solver.h"
#include "math/polysat/solver.h"
#include "math/polysat/univariate_solver.h"
namespace bv {
class univariate_bitblast_solver : public polysat::univariate_solver {
public:
univariate_bitblast_solver() {};
~univariate_bitblast_solver() override = default;
void push() override {}
void pop(unsigned n) override {}
lbool check() override { return l_undef; }
dep_vector unsat_core() override { return {}; }
rational model() override { return {}; }
void add_ule(univariate lhs, univariate rhs, bool sign, dep_t dep) override {}
void add_umul_ovfl(univariate lhs, univariate rhs, bool sign, dep_t dep) override {}
void add_smul_ovfl(univariate lhs, univariate rhs, bool sign, dep_t dep) override {}
void add_smul_udfl(univariate lhs, univariate rhs, bool sign, dep_t dep) override {}
};
class univariate_bitblast_factory : public polysat::univariate_solver_factory {
public:
~univariate_bitblast_factory() override = default;
scoped_ptr<polysat::univariate_solver> create() override {
return alloc(univariate_bitblast_solver);
}
};
typedef polysat::pdd pdd;
void solver::internalize_polysat(app* a) {