Added constraint generation after a branch is not taken in an IF

This commit is contained in:
Neil Brown 2009-02-09 22:46:08 +00:00
parent 33d18f07c2
commit 84568cfbdd

View File

@ -207,6 +207,8 @@ findConstraints graph startNode
valFilt = filter (not . overlapsWithWritten) $
nub $ nodeVal ++ (case e of
ESeq (Just (n, Just True)) -> maybeToList (fmap ((,) n) $ nodeCond u)
ESeq (Just (n, Just False)) -> maybeToList
(fmap ((,) n . A.Monadic emptyMeta A.MonadicNot) (nodeCond u))
_ -> [])
removeOld = case e of
ESeq (Just (n, Nothing)) -> filter ((/= n) . fst)