You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cryptol prelude has a function toInteger that can convert a bitvector of type [n] to a non-negative integer in the range 0 to 2^^n-1. We need a signed variant of this function that converts a signed bitvector to an integer in the range -2^^(n-1) to 2^^(n-1)-1. Such a function exists in the saw prelude (called sbvToInt), but not in Cryptol.
The text was updated successfully, but these errors were encountered:
The Cryptol prelude has a function
toInteger
that can convert a bitvector of type[n]
to a non-negative integer in the range 0 to2^^n-1
. We need a signed variant of this function that converts a signed bitvector to an integer in the range-2^^(n-1)
to2^^(n-1)-1
. Such a function exists in thesaw
prelude (calledsbvToInt
), but not in Cryptol.The text was updated successfully, but these errors were encountered: