Term mkBitVector(uint32_t size, uint64_t val) except +
Term mkBitVector(const string& s) except +
Term mkBitVector(const string& s, uint32_t base) except +
+ Term mkBitVector(uint32_t size, string& s, uint32_t base) except +
Term mkConstArray(Sort sort, Term val) except +
Term mkPosInf(uint32_t exp, uint32_t sig) except +
Term mkNegInf(uint32_t exp, uint32_t sig) except +
cdef Term term = Term(self)
if isinstance(size_or_str, int):
if val is None:
- term.cterm = self.csolver.mkBitVector(<int> size_or_str)
+ term.cterm = self.csolver.mkBitVector(<uint32_t> size_or_str)
else:
- term.cterm = self.csolver.mkBitVector(<int> size_or_str,
- <int> val)
+ term.cterm = self.csolver.mkBitVector(<uint32_t> size_or_str,
+ <const string &> str(val).encode(),
+ 10)
elif isinstance(size_or_str, str):
# handle default value
if val is None:
<const string &> size_or_str.encode())
else:
term.cterm = self.csolver.mkBitVector(
- <const string &> size_or_str.encode(), <int> val)
+ <const string &> size_or_str.encode(), <uint32_t> val)
else:
raise ValueError("Unexpected inputs {} to"
" mkBitVector".format((size_or_str, val)))