Skip to content

Commit

Permalink
Simplify inf - x to inf
Browse files Browse the repository at this point in the history
  • Loading branch information
yav committed Sep 3, 2024
1 parent 0985325 commit 2103ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cryptol/TypeCheck/SimpType.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ tSub :: Type -> Type -> Type
tSub x y
| Just t <- tOp TCSub (op2 nSub) [x,y] = t
| tIsInf y = tError (tf2 TCSub x y)
| tIsInf x = x
| Just 0 <- yNum = x
| Just k <- yNum
, TCon (TF TCAdd) [a,b] <- tNoUser x
Expand Down

0 comments on commit 2103ce3

Please sign in to comment.