codegen: handle exceptions of a method
[mate.git] / Mate / RegisterAllocation.hs
index 7f220aabbac52570e955152691402ebc6291bfd2..8c4e040371868adc20c6324408226e872b26a0fe 100644 (file)
@@ -1,9 +1,5 @@
-{-# LANGUAGE CPP #-}
 module Mate.RegisterAllocation where
 
-
-#include "debug.h"
-
 import Data.List
 import Data.Maybe
 
@@ -27,9 +23,10 @@ edgeEq (from,to) (from',to') = from == from' && to == to'
 -- TODO: find combinator do match try semantics here
 -- Solution: use list because list is MonadPlus instance
 -- other solution add maybe monadplus implementation
-conflicts (IGraph xs) (label,anotherLabel) = let comparison  = edgeEq (label,anotherLabel)
-                                                 comparison' = edgeEq (anotherLabel,label) 
-                                             in isJust (find comparison xs) || isJust (find comparison' xs) 
+conflicts (IGraph xs) (label,anotherLabel) =
+  let comparison  = edgeEq (label,anotherLabel)
+      comparison' = edgeEq (anotherLabel,label)
+  in isJust (find comparison xs) || isJust (find comparison' xs)
 
 
 isParticipiant label (from,to) = from == label || to == label