mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fixes to cuts
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7d8b56027f
commit
dcd4fff284
18 changed files with 75 additions and 50 deletions
|
@ -20,7 +20,7 @@ Revision History:
|
|||
#include "ast.h"
|
||||
#include "display_dimacs.h"
|
||||
|
||||
std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls) {
|
||||
std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls, bool include_names) {
|
||||
ast_manager& m = fmls.m();
|
||||
unsigned_vector expr2var;
|
||||
ptr_vector<expr> exprs;
|
||||
|
@ -113,7 +113,7 @@ std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls) {
|
|||
}
|
||||
out << "0\n";
|
||||
}
|
||||
if (!is_from_dimacs) {
|
||||
if (include_names && !is_from_dimacs) {
|
||||
for (expr* e : exprs) {
|
||||
if (e && is_app(e)) {
|
||||
symbol const& n = to_app(e)->get_decl()->get_name();
|
||||
|
|
|
@ -21,6 +21,6 @@ Revision History:
|
|||
|
||||
#include "ast.h"
|
||||
|
||||
std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls);
|
||||
std::ostream& display_dimacs(std::ostream& out, expr_ref_vector const& fmls, bool include_names);
|
||||
|
||||
#endif /* DISPLAY_DIMACS_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue