mirror of
https://github.com/Z3Prover/z3
synced 2025-08-08 04:01:22 +00:00
change lt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7c9d2e0d75
commit
5177cc4a9a
2 changed files with 8 additions and 2 deletions
|
@ -234,7 +234,8 @@ br_status bool_rewriter::mk_nflat_or_core(unsigned num_args, expr * const * args
|
|||
return BR_DONE;
|
||||
}
|
||||
if (s) {
|
||||
std::sort(buffer.begin(), buffer.end(), ast_to_lt());
|
||||
ast_lt lt;
|
||||
std::sort(buffer.begin(), buffer.end(), lt);
|
||||
result = m().mk_or(sz, buffer.c_ptr());
|
||||
return BR_DONE;
|
||||
}
|
||||
|
@ -272,7 +273,8 @@ br_status bool_rewriter::mk_flat_or_core(unsigned num_args, expr * const * args,
|
|||
}
|
||||
if (mk_nflat_or_core(flat_args.size(), flat_args.c_ptr(), result) == BR_FAILED) {
|
||||
if (!ordered) {
|
||||
std::sort(flat_args.begin(), flat_args.end(), ast_to_lt());
|
||||
ast_lt lt;
|
||||
std::sort(flat_args.begin(), flat_args.end(), lt);
|
||||
}
|
||||
result = m().mk_or(flat_args.size(), flat_args.c_ptr());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue