mirror of
https://github.com/Z3Prover/z3
synced 2025-07-20 19:32:04 +00:00
prepare revised primal phase
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
41ad1d50f9
commit
d45c7ce082
6 changed files with 411 additions and 96 deletions
|
@ -395,9 +395,30 @@ namespace smt {
|
|||
template<typename Ext>
|
||||
void theory_arith<Ext>::display_bound(std::ostream & out, bound * b, unsigned indent) const {
|
||||
for (unsigned i = 0; i < indent; i++) out << " ";
|
||||
theory_var v = b->get_var();
|
||||
enode * e = get_enode(v);
|
||||
out << "v" << v << " #" << e->get_owner_id() << " " << (b->get_bound_kind() == B_LOWER ? ">=" : "<=") << " " << b->get_value() << "\n";
|
||||
b->display(*this, out);
|
||||
out << "\n";
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
void theory_arith<Ext>::display_deps(std::ostream & out, v_dependency* dep) {
|
||||
ptr_vector<void> bounds;
|
||||
m_dep_manager.linearize(dep, bounds);
|
||||
m_tmp_lit_set.reset();
|
||||
m_tmp_eq_set.reset();
|
||||
ptr_vector<void>::const_iterator it = bounds.begin();
|
||||
ptr_vector<void>::const_iterator end = bounds.end();
|
||||
for (; it != end; ++it) {
|
||||
bound * b = static_cast<bound*>(*it);
|
||||
out << " ";
|
||||
b->display(*this, out);
|
||||
}
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
void theory_arith<Ext>::display_interval(std::ostream & out, interval const& i) {
|
||||
i.display(out);
|
||||
display_deps(out << " lo:", i.get_lower_dependencies());
|
||||
display_deps(out << " hi:", i.get_upper_dependencies());
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue