Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vrindisbacher committed Feb 4, 2025
1 parent 2c148da commit 43c55bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Language/Fixpoint/Union.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{-# LANGUAGE BangPatterns #-}
module Language.Fixpoint.Union where
import Data.HashMap.Strict (lookup, insert, HashMap, empty)
import Prelude hiding (lookup)
import Language.Fixpoint.Types.Sorts (Sort(..))
import GHC.IO (unsafePerformIO)

unionSub :: UF -> Int -> Sort -> Sort -> UF
unionSub uf i s1 s2 = case (s1, s2) of
Expand Down Expand Up @@ -57,9 +55,7 @@ unionSafe u@(MkUF ufM) tyv s =
Nothing -> MkUF (insert tyv s ufM)
-- otherwise, unify the current sort with
-- the new one and insert that
Just (i, s') ->
let !_ = unsafePerformIO $ print ("Here with " ++ show s' ++ " and " ++ show s) in
unionVals u i s s'
Just (i, s') -> unionVals u i s s'


union :: UF -> Int -> Sort -> UF
Expand Down

0 comments on commit 43c55bf

Please sign in to comment.