Closed tobiasgrosser closed 2 weeks ago
Using BitVec.ofNat is fine, right?
In which way? Why do you need it?
When you write op2 >= n
in lshr
, you're comparing a BitVec with a Nat
I don't think this works properly
But I may be wrong
This should work in bv_decide
.
What is your concern?
This should work in
bv_decide
.
oh okay, then there is no issue indeed I'll do that and open a PR
Several LLVM functions use toNat, while they can use a bit-vector level comparison which would allow them to be bitblasted.
We should transform this code:
into
and while at it, clean it up to sth like: