mirror of
https://github.com/Z3Prover/z3
synced 2025-08-13 14:40:55 +00:00
fix divergence reported by Guido Martinez
This commit is contained in:
parent
6afed0819c
commit
4d1d067d42
4 changed files with 22 additions and 0 deletions
|
@ -611,4 +611,19 @@ void emonics::set_propagated(monic const& m) {
|
|||
m_u_f_stack.push(set_unpropagated(*this, m.var()));
|
||||
}
|
||||
|
||||
void emonics::set_bound_propagated(monic const& m) {
|
||||
struct set_bound_unpropagated : public trail {
|
||||
emonics& em;
|
||||
unsigned var;
|
||||
public:
|
||||
set_bound_unpropagated(emonics& em, unsigned var): em(em), var(var) {}
|
||||
void undo() override {
|
||||
em[var].set_bound_propagated(false);
|
||||
}
|
||||
};
|
||||
SASSERT(!m.is_bound_propagated());
|
||||
(*this)[m.var()].set_bound_propagated(true);
|
||||
m_u_f_stack.push(set_bound_unpropagated(*this, m.var()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue