3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-01 14:09:40 -08:00
parent abbee32ddc
commit a9d22d7409
2 changed files with 6 additions and 1 deletions

View file

@ -298,7 +298,7 @@ public:
mpq t = abs(ceil(p.coeff()));
if (t > m_abs_max) m_abs_max = t;
}
m_big_number = m_abs_max; // .expt(2);
m_big_number = m_abs_max.expt(2);
#endif
mpq one_min_m_f = 1 - m_f;
for (const auto & p : m_row) {

View file

@ -142,6 +142,11 @@ struct goal2sat::imp {
else if (m.is_false(t)) {
l = sign ? mk_true() : ~mk_true();
}
else if (!is_app(t)) {
std::ostringstream strm;
strm << mk_ismt2_pp(t, m);
throw_op_not_handled(strm.str());
}
else {
bool ext = m_default_external || !is_uninterp_const(t) || m_interface_vars.contains(t);
sat::bool_var v = m_solver.add_var(ext);