mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 12:35:59 +00:00
Add basic support for not, or, xor, nand, nor via rewriting
This commit is contained in:
parent
9b907d709f
commit
5e54cd3e44
4 changed files with 81 additions and 36 deletions
|
@ -294,15 +294,40 @@ namespace polysat {
|
|||
std::tuple<pdd, pdd> quot_rem(pdd const& a, pdd const& b);
|
||||
|
||||
/**
|
||||
* Create expression for the logical right shift of p by q.
|
||||
*/
|
||||
* Create expression for the logical right shift of p by q.
|
||||
*/
|
||||
pdd lshr(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise and of p by q.
|
||||
* Create expression for the bit-wise negation of p.
|
||||
*/
|
||||
pdd bnot(pdd const& p);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise and of p, q.
|
||||
*/
|
||||
pdd band(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise or of p, q.
|
||||
*/
|
||||
pdd bor(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise xor of p, q.
|
||||
*/
|
||||
pdd bxor(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise nand of p, q.
|
||||
*/
|
||||
pdd bnand(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create expression for bit-wise nor of p, q.
|
||||
*/
|
||||
pdd bnor(pdd const& p, pdd const& q);
|
||||
|
||||
/**
|
||||
* Create polynomial constant.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue