mirror of
https://github.com/Z3Prover/z3
synced 2025-05-14 03:04:44 +00:00
add first test for band
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8f8d88bc9d
commit
c1d5111159
6 changed files with 81 additions and 27 deletions
|
@ -237,6 +237,10 @@ namespace polysat {
|
|||
return { dedup(alloc(op_constraint, *this, op_constraint::code::lshr_op, p, q, r)), true };
|
||||
}
|
||||
|
||||
signed_constraint constraint_manager::band(pdd const& p, pdd const& q, pdd const& r) {
|
||||
return { dedup(alloc(op_constraint, *this, op_constraint::code::and_op, p, q, r)), true };
|
||||
}
|
||||
|
||||
// To do signed comparison of bitvectors, flip the msb and do unsigned comparison:
|
||||
//
|
||||
// x <=s y <=> x + 2^(w-1) <=u y + 2^(w-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue