3
0
Fork 0
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:
Jakob Rath 2022-09-30 12:59:23 +02:00
parent 9b907d709f
commit 5e54cd3e44
4 changed files with 81 additions and 36 deletions

View file

@ -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.
*/