Corrected a small omission in the cases for testing array indices (if there are no problems to work with)

This commit is contained in:
Neil Brown 2008-01-16 03:29:13 +00:00
parent b3216c4870
commit 1c0434cc47

View File

@ -57,6 +57,7 @@ checkArrayUsage tree = (mapM_ checkPar $ listify (const True) tree) >> return tr
= -- liftIO (putStr $ "Checking: " ++ show (arrName, indexes)) >>
case makeEquations indexes (makeConstant emptyMeta 1000000) of
Left err -> die $ "Could not work with array indexes for array \"" ++ arrName ++ "\": " ++ err
Right [] -> return () -- No problems to work with
Right problems ->
case mapM (\(vm,p) -> seqPair (return vm,uncurry solveProblem p)) problems of
-- No solutions; no worries!