how can I get the weifgt of a Bitvec var #6377
Unanswered
1214465750
asked this question in
Q&A
Replies: 1 comment
-
You can create an expression that returns number of 1's. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
for example
c is a Bitvec('c',8)
c=0b11010001
I want to get the number of 1 appeard in c
here the weight of c is 4
so how can I do this
Beta Was this translation helpful? Give feedback.
All reactions