mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 20:33:38 +00:00
improved SLS
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
272399bebc
commit
8cbe257434
1 changed files with 3 additions and 1 deletions
|
@ -244,8 +244,10 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void display(std::ostream& out, clause const& cls) {
|
void display(std::ostream& out, clause const& cls) {
|
||||||
|
scoped_mpz w(mgr);
|
||||||
for (unsigned i = 0; i < cls.m_lits.size(); ++i) {
|
for (unsigned i = 0; i < cls.m_lits.size(); ++i) {
|
||||||
out << cls.m_weights[i] << "*" << cls.m_lits[i] << " ";
|
w = cls.m_weights[i];
|
||||||
|
out << w << "*" << cls.m_lits[i] << " ";
|
||||||
if (i + 1 < cls.m_lits.size()) {
|
if (i + 1 < cls.m_lits.size()) {
|
||||||
out << "+ ";
|
out << "+ ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue