const std::string& s,
uint32_t base) const
{
+ CVC5_API_ARG_CHECK_EXPECTED(size > 0, size) << "a bit-width > 0";
CVC5_API_ARG_CHECK_EXPECTED(!s.empty(), s) << "a non-empty string";
CVC5_API_ARG_CHECK_EXPECTED(base == 2 || base == 10 || base == 16, base)
<< "base 2, 10, or 16";
if (val.strictlyNegative())
{
- CVC5_API_CHECK(val >= -Integer("2", 10).pow(size - 1))
+ CVC5_API_CHECK(val >= -Integer(2).pow(size - 1))
<< "Overflow in bitvector construction (specified bitvector size "
<< size << " too small to hold value " << s << ")";
}