constraint bug fix

This commit is contained in:
aarne
2004-10-26 11:53:22 +00:00
parent 2b9e31455d
commit 8be82a3936
2 changed files with 4 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ def
ImplE _ _ (ImplI _ _ b) a = b a ;
NegE _ (NegI _ b) a = b a ;
UnivE _ _ (UnivI _ _ b) a = b a ;
ExistE _ _ _ (ExistI A B a b) d = d a b ;
ExistE _ _ _ (ExistI _ _ a b) d = d a b ;
-- Hypo and Pron are identities
Hypo _ a = a ;

View File

@@ -75,9 +75,9 @@ computeVal gr v = case v of
splitConstraints :: Constraints -> (Constraints,MetaSubst)
splitConstraints cs = csmsu where
csmsu = (nub [(a,b) | (a,b) <- csf,a /= b],msf)
csmsu0 = unif (csf,msf) -- alternative: filter first
(csf,msf) = foldr mkOne ([],[]) cs
csmsu = (nub [(a,b) | (a,b) <- csf1,a /= b],msf1)
(csf1,msf1) = unif (csf,msf) -- alternative: filter first
(csf,msf) = foldr mkOne ([],[]) cs
csmsf = foldr mkOne ([],msu) csu
(csu,msu) = unif (cs,[]) -- alternative: unify first