mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6c24a70c44
commit
2e441e38c9
|
@ -315,13 +315,13 @@ func_decl * array_decl_plugin::mk_store(unsigned arity, sort * const * domain) {
|
|||
|
||||
func_decl * array_decl_plugin::mk_array_ext(unsigned arity, sort * const * domain, unsigned i) {
|
||||
if (arity != 2 || domain[0] != domain[1]) {
|
||||
UNREACHABLE();
|
||||
m_manager->raise_exception("incorrect arguments passed to array-ext");
|
||||
return nullptr;
|
||||
}
|
||||
sort * s = domain[0];
|
||||
unsigned num_parameters = s->get_num_parameters();
|
||||
if (num_parameters == 0 || i >= num_parameters - 1) {
|
||||
UNREACHABLE();
|
||||
m_manager->raise_exception("incorrect arguments passed to array-ext");
|
||||
return nullptr;
|
||||
}
|
||||
sort * r = to_sort(s->get_parameter(i).get_ast());
|
||||
|
|
|
@ -81,7 +81,7 @@ void dependent_expr_state::freeze_recfun() {
|
|||
ast_mark visited;
|
||||
for (func_decl* f : rec.get_rec_funs()) {
|
||||
auto& d = rec.get_def(f);
|
||||
if (!d.is_macro())
|
||||
if (!d.is_macro() && d.get_rhs())
|
||||
freeze_terms(d.get_rhs(), false, visited);
|
||||
}
|
||||
m_trail.push(value_trail(m_num_recfun));
|
||||
|
|
|
@ -892,6 +892,7 @@ bool theory_arith<Ext>::propagate_linear_monomial(theory_var v) {
|
|||
}
|
||||
tout << "\n";);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue