3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +00:00

Dedup quot_rem and lshr too

This commit is contained in:
Jakob Rath 2022-11-07 15:25:05 +01:00
parent 2953b1c093
commit e7c77a22ab
4 changed files with 71 additions and 40 deletions

View file

@ -305,12 +305,10 @@ namespace polysat {
* ~ovfl(b*quot)
* rem < b or b = 0
*/
std::tuple<pdd, pdd> quot_rem(pdd const& a, pdd const& b);
std::pair<pdd, pdd> quot_rem(pdd const& a, pdd const& b) { return m_constraints.quot_rem(a, b); }
/**
* Create expression for the logical right shift of p by q.
*/
pdd lshr(pdd const& p, pdd const& q);
/** Create expression for the logical right shift of p by q. */
pdd lshr(pdd const& p, pdd const& q) { return m_constraints.lshr(p, q); }
/** Create expression for the bit-wise negation of p. */
pdd bnot(pdd const& p) { return m_constraints.bnot(p); }