mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-16 20:03:27 +03:00
Fix upper bound on the interval derived from k >= width x
This commit is contained in:
parent
8a4eadfdac
commit
f018522b31
@ -130,7 +130,7 @@ propInterval varInts prop = catMaybes
|
||||
-- record the exact upper bound when it produces values within 128
|
||||
-- bits
|
||||
ub = case iUpper int of
|
||||
Just (Nat val) | val < 128 -> Just (Nat (2 ^ val))
|
||||
Just (Nat val) | val < 128 -> Just (Nat (2 ^ val - 1))
|
||||
| otherwise -> Nothing
|
||||
_ -> iUpper int
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user