mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
remove some platform specific behavior
This commit is contained in:
parent
554191885e
commit
23c4728d68
5 changed files with 7 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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<void *>(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<void *>(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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue