Fixes #492 incorrect simplification for tMax

This commit is contained in:
Iavor Diatchki 2018-01-03 09:56:47 -08:00
parent 989e5734ef
commit bc45e751d1

View File

@ -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 =