how to use bitVec as a list index #5658
Replies: 5 comments 1 reply
-
when I used BV2Int,it made a error: v11 = dword_405420[BV2Int(v9&0xff00)] ^ dword_405820[BV2Int(v8&0xff0000)] ^ dword_405C20[BV2Int(0xff000000&v7)] ^ dword_405020[BV2Int(0xff&i)] |
Beta Was this translation helpful? Give feedback.
-
What is Either |
Beta Was this translation helpful? Give feedback.
-
Oh.... |
Beta Was this translation helpful? Give feedback.
-
You really need to share a MWE if you want help. We have no idea what type you're using for Are you trying to access individual bits in another bit-vector? |
Beta Was this translation helpful? Give feedback.
-
The error message suggests you have created dword_405... as a python list. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
here are my code
f2 = BitVec('f2', 32) f3 = BitVec('f3', 32) f4 = BitVec('f4', 32) v11 = dword_405420[(v9&0xff00)] ^ dword_405820[(v8&0xff0000)] ^ dword_405C20[(0xff000000&v7)] ^ dword_405020[(0xff&i)]
it make a error that is:
TypeError: list indices must be integers or slices, not BitVecRef
I need to get the index by Z3,I used to use BV2Int ,but it can‘t work as well
Beta Was this translation helpful? Give feedback.
All reactions