* (distinct t min)
* where
* min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node scl = nm->mkNode(DISTINCT, min, t);
Node scr = nm->mkNode(k, x, t);
sc = nm->mkNode(IMPLIES, scl, scr);
* (distinct t max)
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node scl = nm->mkNode(DISTINCT, t, max);
Node scr = nm->mkNode(k, x, t);
sc = nm->mkNode(IMPLIES, scl, scr);
* (bvsge (bvand (bvor (bvneg s) s) max) t)
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node o = nm->mkNode(BITVECTOR_OR, nm->mkNode(BITVECTOR_NEG, s), s);
Node a = nm->mkNode(BITVECTOR_AND, o, max);
scl = nm->mkNode(BITVECTOR_SGE, a, t);
* where
* z = 0 with getSize(z) = w
* and max is the maximum signed value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node nt = nm->mkNode(BITVECTOR_NOT, nm->mkNode(BITVECTOR_NEG, s));
Node i1 = nm->mkNode(IMPLIES,
nm->mkNode(BITVECTOR_SGT, s, z), nm->mkNode(BITVECTOR_SLT, t, nt));
* (or (bvult t min) (bvsge t s))
* where
* min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node o1 = nm->mkNode(BITVECTOR_ULT, t, min);
Node o2 = nm->mkNode(BITVECTOR_SGE, t, s);
scl = nm->mkNode(OR, o1, o2);
* where
* z = 0 with getSize(z) = w
* and min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node sle = nm->mkNode(BITVECTOR_SLE, t, z);
Node div = nm->mkNode(BITVECTOR_UDIV_TOTAL, min, s);
Node slt = nm->mkNode(BITVECTOR_SLT, div, t);
* where
* ones = ~0 with getSize(ones) = w
* and max is the maximum signed value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node ones = bv::utils::mkOnes(w);
Node udiv1 = nm->mkNode(BITVECTOR_UDIV_TOTAL, ones, s);
Node udiv2 = nm->mkNode(BITVECTOR_UDIV_TOTAL, max, s);
* where
* ones = ~0 with getSize(ones) = w
* and max is the maximum signed value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node ones = bv::utils::mkOnes(w);
Node div1 = nm->mkNode(BITVECTOR_UDIV_TOTAL, ones, s);
Node sgt1 = nm->mkNode(BITVECTOR_SGT, div1, t);
Node mul = nm->mkNode(BITVECTOR_MULT, s, t);
Node div1 = nm->mkNode(BITVECTOR_UDIV_TOTAL, mul, s);
Node o1 = nm->mkNode(EQUAL, div1, t);
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node sle = nm->mkNode(BITVECTOR_SLE, t, z);
Node div2 = nm->mkNode(BITVECTOR_UDIV_TOTAL, min, s);
Node slt = nm->mkNode(BITVECTOR_SLT, div2, t);
* (bvslt t (bvor s max))
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
scl = nm->mkNode(BITVECTOR_SLT, t, nm->mkNode(k, s, max));
}
else
* (bvuge s (bvand t min))
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
scl = nm->mkNode(BITVECTOR_UGE, s, nm->mkNode(BITVECTOR_AND, t, min));
}
else
* (bvsge t (bvor s min))
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
scl = nm->mkNode(BITVECTOR_SGE, t, nm->mkNode(BITVECTOR_OR, s, min));
}
}
* (bvslt t (bvlshr (bvshl max s) s))
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node shl = nm->mkNode(BITVECTOR_SHL, max, s);
Node lshr = nm->mkNode(BITVECTOR_LSHR, shl, s);
scl = nm->mkNode(BITVECTOR_SLT, t, lshr);
* (or (bvult t min) (bvsge t s))
* where
* min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node ult = nm->mkNode(BITVECTOR_ULT, t, min);
Node sge = nm->mkNode(BITVECTOR_SGE, t, s);
scl = ult.orNode(sge);
* (or (bvult s min) (bvuge t s))
* where
* min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node ult = nm->mkNode(BITVECTOR_ULT, s, min);
Node uge = nm->mkNode(BITVECTOR_UGE, t, s);
scl = ult.orNode(uge);
* (bvslt (bvashr min s) t)
* where
* min is the minimum signed value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
scl = nm->mkNode(BITVECTOR_SLT, nm->mkNode(BITVECTOR_ASHR, min, s), t);
}
else
* (bvsge (bvlshr max s) t)
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
scl = nm->mkNode(BITVECTOR_SGE, nm->mkNode(BITVECTOR_LSHR, max, s), t);
}
}
else
{
Assert(litk == BITVECTOR_SGT);
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
if (idx == 0)
{
Node lshr = nm->mkNode(BITVECTOR_LSHR, max, s);
* (bvslt (bvshl (bvlshr min s) s) t)
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node lshr = nm->mkNode(BITVECTOR_LSHR, min, s);
Node shl = nm->mkNode(BITVECTOR_SHL, lshr, s);
scl = nm->mkNode(BITVECTOR_SLT, shl, t);
* (bvsge (bvand (bvshl max s) max) t)
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node shl = nm->mkNode(BITVECTOR_SHL, max, s);
scl = nm->mkNode(BITVECTOR_SGE, nm->mkNode(BITVECTOR_AND, shl, max), t);
}
* (bvult (bvshl min s) (bvadd t min))
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node shl = nm->mkNode(BITVECTOR_SHL, min, s);
Node add = nm->mkNode(BITVECTOR_PLUS, t, min);
scl = nm->mkNode(BITVECTOR_ULT, shl, add);
* (bvslt t (bvand (bvshl max s) max))
* where
* max is the signed maximum value with getSize(max) = w */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w));
+ Node max = bv::utils::mkMaxSigned(w);
Node shl = nm->mkNode(BITVECTOR_SHL, max, s);
scl = nm->mkNode(BITVECTOR_SLT, t, nm->mkNode(BITVECTOR_AND, shl, max));
}
* (bvult (bvlshr t (bvlshr t s)) min)
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
Node ts = nm->mkNode(BITVECTOR_LSHR, t, s);
scl = nm->mkNode(BITVECTOR_ULT, nm->mkNode(BITVECTOR_LSHR, t, ts), min);
}
* (bvult (bvlshr t s) min)
* where
* min is the signed minimum value with getSize(min) = w */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w));
+ Node min = bv::utils::mkMinSigned(w);
scl = nm->mkNode(BITVECTOR_ULT, nm->mkNode(BITVECTOR_LSHR, t, s), min);
}
}
* (=> (= tx min) (bvult s2 t2))
* where
* min is the signed minimum value with getSize(min) = wx */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(wx));
+ Node min = bv::utils::mkMinSigned(wx);
Node ult = nm->mkNode(BITVECTOR_ULT, s2, t2);
scl = nm->mkNode(IMPLIES, tx.eqNode(min), ult);
}
* (=> (= tx max) (bvuge s2 t2))
* where
* max is the signed maximum value with getSize(max) = wx */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(wx));
+ Node max = bv::utils::mkMaxSigned(wx);
Node uge = nm->mkNode(BITVECTOR_UGE, s2, t2);
scl = nm->mkNode(IMPLIES, tx.eqNode(max), uge);
}
* (=> (= tx max) (bvugt s2 t2))
* where
* max is the signed maximum value with getSize(max) = wx */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(wx));
+ Node max = bv::utils::mkMaxSigned(wx);
Node ugt = nm->mkNode(BITVECTOR_UGT, s2, t2);
scl = nm->mkNode(IMPLIES, tx.eqNode(max), ugt);
}
* (=> (= tx min) (bvule s2 t2))
* where
* min is the signed minimum value with getSize(min) = wx */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(wx));
+ Node min = bv::utils::mkMinSigned(wx);
Node ule = nm->mkNode(BITVECTOR_ULE, s2, t2);
scl = nm->mkNode(IMPLIES, tx.eqNode(min), ule);
}
* (bvslt ((_ sign_extend ws) min) t)
* where
* min is the signed minimum value with getSize(min) = w - ws */
- Node min = bv::utils::mkConst(bv::utils::mkBitVectorMinSigned(w - ws));
+ Node min = bv::utils::mkMinSigned(w - ws);
Node ext = bv::utils::mkSignExtend(min, ws);
scl = nm->mkNode(BITVECTOR_SLT, ext, t);
}
Node z = bv::utils::mkZero(ws + 1);
Node n = bv::utils::mkOnes(ws + 1);
Node o1 = nm->mkNode(OR, ext1.eqNode(z), ext1.eqNode(n));
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w - ws));
+ Node max = bv::utils::mkMaxSigned(w - ws);
Node ext2 = bv::utils::mkConcat(bv::utils::mkZero(ws), max);
Node o2 = nm->mkNode(BITVECTOR_SLT, t, ext2);
scl = nm->mkNode(OR, o1, o2);
* (bvslt t ((_ zero_extend ws) max))
* where
* max is the signed maximum value with getSize(max) = w - ws */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w - ws));
+ Node max = bv::utils::mkMaxSigned(w - ws);
Node ext = bv::utils::mkConcat(bv::utils::mkZero(ws), max);
scl = nm->mkNode(BITVECTOR_SLT, t, ext);
}
* (bvsge t (bvnot ((_ zero_extend ws) max)))
* where
* max is the signed maximum value with getSize(max) = w - ws */
- Node max = bv::utils::mkConst(bv::utils::mkBitVectorMaxSigned(w - ws));
+ Node max = bv::utils::mkMaxSigned(w - ws);
Node ext = bv::utils::mkConcat(bv::utils::mkZero(ws), max);
scl = nm->mkNode(BITVECTOR_SGE, t, nm->mkNode(BITVECTOR_NOT, ext));
}