3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-13 10:44:43 +00:00

updates to sorting networks

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-09-23 22:36:19 -05:00
parent 3c4ac9aee5
commit edb3569599
18 changed files with 2070 additions and 170 deletions

View file

@ -1396,7 +1396,7 @@ namespace smt {
th(th),
pb(m) {}
literal fresh() {
literal fresh(char const* ) {
app_ref y(m);
y = pb.mk_fresh_bool();
return literal(ctx.mk_bool_var(y));
@ -1441,7 +1441,8 @@ namespace smt {
theory_pb_params p;
theory_pb th(ctx.get_manager(), p);
psort_expr ps(ctx, th);
psort_nw<psort_expr> sort(ps);
sorting_network_config cfg;
psort_nw<psort_expr> sort(ps, cfg);
return sort.ge(false, k, n, xs);
}
@ -1577,7 +1578,8 @@ namespace smt {
psort_expr ps(ctx, *this);
psort_nw<psort_expr> sortnw(ps);
sorting_network_config cfg;
psort_nw<psort_expr> sortnw(ps, cfg);
sortnw.m_stats.reset();
if (ctx.get_assignment(thl) == l_true &&