mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
add bounded-int and pb2bv solvers to fd_solver, use sorting networks for pb2bv rewriter when applicable, hoist to pb2bv_rewriter module and remove it from the pb2bv_tactic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6d3430c689
commit
3778048eb4
26 changed files with 1424 additions and 700 deletions
|
@ -226,7 +226,12 @@ Notes:
|
|||
m_t = EQ;
|
||||
card(k+1, n, xs, out);
|
||||
SASSERT(out.size() >= k+1);
|
||||
return ctx.mk_min(out[k-1], ctx.mk_not(out[k]));
|
||||
if (k == 0) {
|
||||
return ctx.mk_not(out[k]);
|
||||
}
|
||||
else {
|
||||
return ctx.mk_min(out[k-1], ctx.mk_not(out[k]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue