mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
parent
321329d77c
commit
be95ea121b
3 changed files with 4 additions and 4 deletions
|
@ -2284,7 +2284,6 @@ void ast_manager::check_args(func_decl* f, unsigned n, expr* const* es) {
|
||||||
<< " for function " << mk_pp(f,*this)
|
<< " for function " << mk_pp(f,*this)
|
||||||
<< " supplied sort is "
|
<< " supplied sort is "
|
||||||
<< mk_pp(actual_sort, *this);
|
<< mk_pp(actual_sort, *this);
|
||||||
SASSERT(false);
|
|
||||||
throw ast_exception(buffer.str());
|
throw ast_exception(buffer.str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -444,7 +444,7 @@ namespace smt {
|
||||||
if (!gate_ctx) {
|
if (!gate_ctx) {
|
||||||
mk_enode(n, true, true, false);
|
mk_enode(n, true, true, false);
|
||||||
set_enode_flag(v, true);
|
set_enode_flag(v, true);
|
||||||
SASSERT(get_assignment(v) == l_undef);
|
SASSERT(get_assignment(v) == l_undef || get_assignment(l_def) != l_undef);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1541,10 +1541,10 @@ expr * theory_arith<Ext>::cross_nested(sbuffer<coeff_expr> & p, expr * var) {
|
||||||
rational a, b;
|
rational a, b;
|
||||||
unsigned n = UINT_MAX;
|
unsigned n = UINT_MAX;
|
||||||
unsigned nm = UINT_MAX;
|
unsigned nm = UINT_MAX;
|
||||||
if (in_monovariate_monomials(p, var, i1, a, n, i2, b, nm)) {
|
if (in_monovariate_monomials(p, var, i1, a, n, i2, b, nm)) {
|
||||||
CTRACE("in_monovariate_monomials", n == nm,
|
CTRACE("in_monovariate_monomials", n == nm,
|
||||||
for (unsigned i = 0; i < p.size(); i++) {
|
for (unsigned i = 0; i < p.size(); i++) {
|
||||||
if (i > 0) tout << " + "; tout << p[i].first << "*" << mk_pp(p[i].second, get_manager());
|
if (i > 0) tout << " + "; tout << p[i].first << "*" << mk_pp(p[i].second, get_manager());
|
||||||
}
|
}
|
||||||
tout << "\n";
|
tout << "\n";
|
||||||
tout << "var: " << mk_pp(var, get_manager()) << "\n";
|
tout << "var: " << mk_pp(var, get_manager()) << "\n";
|
||||||
|
@ -1554,6 +1554,7 @@ expr * theory_arith<Ext>::cross_nested(sbuffer<coeff_expr> & p, expr * var) {
|
||||||
tout << "i2: " << i2 << "\n";
|
tout << "i2: " << i2 << "\n";
|
||||||
tout << "b: " << b << "\n";
|
tout << "b: " << b << "\n";
|
||||||
tout << "nm: " << nm << "\n";);
|
tout << "nm: " << nm << "\n";);
|
||||||
|
if (n == nm) return horner(p, var);
|
||||||
SASSERT(n != nm);
|
SASSERT(n != nm);
|
||||||
expr * new_expr = nullptr;
|
expr * new_expr = nullptr;
|
||||||
if (nm < n) {
|
if (nm < n) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue