Skip to content

Complementary of the (a >= x) and (a <= y) optimization

(a >= X) and (a <= Y) where X and Y are compile-time constants is transformed into unsigned(a - X) <= (Y - X). That's great.

But (a < X) or (a > Y) does not transform into the negation of the above.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information