mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-16 11:22:33 +03:00
Fixes #492 incorrect simplification for tMax
This commit is contained in:
parent
989e5734ef
commit
bc45e751d1
@ -260,7 +260,7 @@ tMax x y
|
||||
| TCon (TF TCAdd) [a,b] <- t'
|
||||
, Just n <- tIsNum a = if k <= n
|
||||
then t
|
||||
else tMax (tNum (k - n)) b
|
||||
else tAdd (tNum n) (tMax (tNum (k - n)) b)
|
||||
|
||||
| TCon (TF TCSub) [a,b] <- t'
|
||||
, Just n <- tIsNat' a =
|
||||
|
Loading…
Reference in New Issue
Block a user