Cleaned up some code in ArrayUsageCheck that is uncommented when bugs appear
This commit is contained in:
parent
c9da4a7eaf
commit
ca8c6f14ce
|
@ -105,10 +105,11 @@ checkArrayUsage (m,p) = mapM_ (checkIndexes m) $ Map.toList $
|
|||
cx <- showCode (fst lx)
|
||||
cy <- showCode (fst ly)
|
||||
prob <- formatProblem varMapping problem
|
||||
-- debug $ "Found solution for problem: " ++ prob
|
||||
-- liftIO $ putStrLn $ "Found solution for problem: " ++ prob
|
||||
-- ++ show p
|
||||
-- liftIO $ putStrLn $ "Succeeded on problem: " ++ prob
|
||||
-- allProbs <- concatMapM (\(_,_,p) -> formatProblem varMapping p >>* (++ "\n#\n")) problems
|
||||
-- svm <- mapM showFlattenedExp $ Map.keys varMapping
|
||||
-- svm <- mapM (showFlattenedExp showCode) $ Map.keys varMapping
|
||||
-- liftIO $ putStrLn $ "All problems: " ++ allProbs ++ "\n" ++ (concat $ intersperse " ; " $ svm)
|
||||
dieP m $ "Indexes of array \"" ++ userArrName ++ "\" "
|
||||
++ "(\"" ++ cx ++ "\" and \"" ++ cy ++ "\") could overlap"
|
||||
|
|
Loading…
Reference in New Issue
Block a user