Skip to content

Commit

Permalink
a-normalize all literals..
Browse files Browse the repository at this point in the history
  • Loading branch information
gridaphobe committed Jul 13, 2015
1 parent 82dcf7d commit 18d264f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Language/Haskell/Liquid/ANFTransform.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ normalizeName :: VarEnv Id -> CoreExpr -> DsMW CoreExpr
-- normalizeNameDebug γ e
-- = liftM (tracePpr ("normalizeName" ++ showPpr e)) $ normalizeName γ e

normalizeName _ e@(Lit (LitInteger _ _))
normalizeName _ e@(Lit _)
= normalizeLiteral e

normalizeName _ e@(Tick _ (Lit (LitInteger _ _)))
normalizeName _ e@(Tick _ (Lit _))
= normalizeLiteral e

normalizeName γ (Var x)
Expand All @@ -137,9 +137,6 @@ normalizeName γ (Var x)
normalizeName _ e@(Type _)
= return e

normalizeName _ e@(Lit _)
= return e

normalizeName _ e@(Coercion _)
= do x <- lift $ freshNormalVar $ exprType e
add [NonRec x e]
Expand Down

0 comments on commit 18d264f

Please sign in to comment.