mirror of
https://github.com/Z3Prover/z3
synced 2025-08-20 10:10:21 +00:00
fix #4447, or mask it
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
af90992858
commit
743573aac5
3 changed files with 14 additions and 21 deletions
|
@ -4483,9 +4483,9 @@ namespace smt {
|
|||
return false;
|
||||
}
|
||||
|
||||
void context::get_model(model_ref & m) {
|
||||
if (inconsistent())
|
||||
m = nullptr;
|
||||
void context::get_model(model_ref & mdl) {
|
||||
if (inconsistent() || !m.inc())
|
||||
mdl = nullptr;
|
||||
else {
|
||||
mk_proto_model();
|
||||
if (!m_model && m_proto_model) {
|
||||
|
@ -4497,7 +4497,7 @@ namespace smt {
|
|||
// no op
|
||||
}
|
||||
}
|
||||
m = m_model.get();
|
||||
mdl = m_model.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -507,8 +507,6 @@ bool theory_seq::fixed_length(expr* len_e, bool is_zero) {
|
|||
m_fixed.contains(e)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
m_trail_stack.push(insert_obj_trail<theory_seq, expr>(m_fixed, e));
|
||||
m_fixed.insert(e);
|
||||
|
@ -520,8 +518,7 @@ bool theory_seq::fixed_length(expr* len_e, bool is_zero) {
|
|||
}
|
||||
else if (!is_zero) {
|
||||
unsigned _lo = lo.get_unsigned();
|
||||
expr_ref_vector elems(m);
|
||||
|
||||
expr_ref_vector elems(m);
|
||||
for (unsigned j = 0; j < _lo; ++j) {
|
||||
m_sk.decompose(seq, head, tail);
|
||||
elems.push_back(head);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue