Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Byte-operator lowering: do not unconditionally insert bv cast
In 848e633 a cast to bv was inserted to block interpreting floatbv type casts from taking place. It was unnecessarily inserted for all bitvector types. While this does not result in wrong semantics, it may block simplification for happening when we end up (via other simplifier rules) creating a bv (and not (un)signed bv) typed constant. All of these transformations are correct, but we may end up with an equality over pointer-typed constants where the underlying constant is a(n) (un)signed bv on one side, and a bv on the other side. The bit patterns match, so the back-end will correctly solve this, but the simplifier cannot. Observed when studying model-checking/kani#1978.
- Loading branch information