From 23c4728d684141b53b25d4236ef47870786e331a Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 23 Dec 2024 16:28:10 -0800 Subject: [PATCH] remove some platform specific behavior --- src/ast/rewriter/bool_rewriter.cpp | 4 ++-- src/ast/rewriter/th_rewriter.cpp | 4 ++-- src/smt/qi_queue.cpp | 3 +-- src/smt/smt_quantifier.cpp | 2 +- src/smt/smt_theory.cpp | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ast/rewriter/bool_rewriter.cpp b/src/ast/rewriter/bool_rewriter.cpp index 2176ff129..2732bd7e0 100644 --- a/src/ast/rewriter/bool_rewriter.cpp +++ b/src/ast/rewriter/bool_rewriter.cpp @@ -272,7 +272,7 @@ br_status bool_rewriter::mk_nflat_or_core(unsigned num_args, expr * const * args if (s) { if (m_sort_disjunctions) { ast_lt lt; - std::sort(buffer.begin(), buffer.end(), lt); + std::stable_sort(buffer.begin(), buffer.end(), lt); } result = m().mk_or(sz, buffer.data()); return BR_DONE; @@ -311,7 +311,7 @@ br_status bool_rewriter::mk_flat_or_core(unsigned num_args, expr * const * args, if (mk_nflat_or_core(flat_args.size(), flat_args.data(), result) == BR_FAILED) { if (m_sort_disjunctions && !ordered) { ast_lt lt; - std::sort(flat_args.begin(), flat_args.end(), lt); + std::stable_sort(flat_args.begin(), flat_args.end(), lt); } result = mk_or_app(flat_args.size(), flat_args.data()); } diff --git a/src/ast/rewriter/th_rewriter.cpp b/src/ast/rewriter/th_rewriter.cpp index 3af887008..10bc8ce8f 100644 --- a/src/ast/rewriter/th_rewriter.cpp +++ b/src/ast/rewriter/th_rewriter.cpp @@ -598,9 +598,9 @@ struct th_rewriter_cfg : public default_rewriter_cfg { } app_ref tmp(m()); tmp = m().mk_app(f, num, args); - m().trace_stream() << "[inst-discovered] theory-solving " << static_cast(nullptr) << " " << m().get_family_name(fid) << "# ; #" << tmp->get_id() << "\n"; + m().trace_stream() << "[inst-discovered] theory-solving 0x0 " << m().get_family_name(fid) << "# ; #" << tmp->get_id() << "\n"; tmp = m().mk_eq(tmp, result); - m().trace_stream() << "[instance] " << static_cast(nullptr) << " #" << tmp->get_id() << "\n"; + m().trace_stream() << "[instance] 0x0 #" << tmp->get_id() << "\n"; // Make sure that both the result term and equality were newly introduced. if (tmp->get_ref_count() == 1) { diff --git a/src/smt/qi_queue.cpp b/src/smt/qi_queue.cpp index 1de60e69a..ff602ba92 100644 --- a/src/smt/qi_queue.cpp +++ b/src/smt/qi_queue.cpp @@ -188,8 +188,7 @@ namespace smt { void qi_queue::display_instance_profile(fingerprint * f, quantifier * q, unsigned num_bindings, enode * const * bindings, unsigned proof_id, unsigned generation) { if (m.has_trace_stream()) { - m.trace_stream() << "[instance] "; - m.trace_stream() << static_cast(f); + m.trace_stream() << "[instance] 0x0"; if (m.proofs_enabled()) m.trace_stream() << " #" << proof_id; m.trace_stream() << " ; " << generation; diff --git a/src/smt/smt_quantifier.cpp b/src/smt/smt_quantifier.cpp index a9daff7f6..a8863414c 100644 --- a/src/smt/smt_quantifier.cpp +++ b/src/smt/smt_quantifier.cpp @@ -240,7 +240,7 @@ namespace smt { vector> & used_enodes) { if (pat == nullptr) { - trace_stream() << "[inst-discovered] MBQI " << " #" << q->get_id(); + trace_stream() << "[inst-discovered] MBQI 0x0 #" << q->get_id(); for (unsigned i = 0; i < num_bindings; ++i) { trace_stream() << " #" << bindings[num_bindings - i - 1]->get_owner_id(); } diff --git a/src/smt/smt_theory.cpp b/src/smt/smt_theory.cpp index 8773b7b89..a182887f4 100644 --- a/src/smt/smt_theory.cpp +++ b/src/smt/smt_theory.cpp @@ -211,7 +211,7 @@ namespace smt { symbol const & family_name = m.get_family_name(get_family_id()); if (pattern_id == UINT_MAX) { - out << "[inst-discovered] theory-solving " << " " << family_name << "#"; + out << "[inst-discovered] theory-solving 0x0 " << family_name << "#"; if (axiom_id != UINT_MAX) out << axiom_id; for (unsigned i = 0; i < num_bindings; ++i) {