mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 15:55:46 +00:00
improve parser error message over API, streamline names of statistics for arithmetic solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c44dd01292
commit
2bd29548da
8 changed files with 54 additions and 25 deletions
|
@ -350,8 +350,10 @@ namespace opt {
|
|||
for (unsigned i = 0; i < m_soft_constraints.size(); ++i) {
|
||||
expr* e = m_soft_constraints[i];
|
||||
bool is_not = m.is_not(e, e);
|
||||
out << mk_pp(e, m)
|
||||
<< ((is_not != get_assignment(i))?" |-> true\n":" |-> false\n");
|
||||
out << m_weights[i] << ": " << mk_pp(e, m)
|
||||
<< ((is_not != get_assignment(i))?" |-> true ":" |-> false ")
|
||||
<< "\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue