Skip to content

Commit

Permalink
Merge branch 'main' into run_regression_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 authored Sep 12, 2023
2 parents 89a44ff + 167b88a commit 6a1af9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/python/cvc5.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ cdef class Solver:
"Invalid second argument to mkBitVector '{}', "
"expected integer value".format(size))
term.cterm = self.csolver.mkBitVector(
<uint32_t> size, <uint32_t> val)
<uint32_t> size, <const string&> str(val).encode(), 10)
elif len(args) == 2:
val = args[0]
base = args[1]
Expand Down
1 change: 1 addition & 0 deletions test/unit/api/python/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def test_mk_tuple_sort(solver):
def test_mk_bit_vector(solver):
solver.mkBitVector(8, 2)
solver.mkBitVector(32, 2)
solver.mkBitVector(64, 2**33)

solver.mkBitVector(4, "1010", 2)
solver.mkBitVector(8, "0101", 2)
Expand Down

0 comments on commit 6a1af9a

Please sign in to comment.