Skip to content

Commit

Permalink
catch another mesage: time out: time limit reached
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Mar 11, 2024
1 parent bf1e079 commit 22fb0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Conjure/UI/SolveStats.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ mkSolveStats Solve {..} (exitCodeSR, stdoutSR, stderrSR) rawInfo = do
let combinedSR = T.unlines [stdoutSR, stderrSR]
let info = M.fromList [(k, v) | [k, v] <- map (splitOn ":") (lines rawInfo)]
status
| T.isInfixOf "type error: undefined identifier" combinedSR = Error
| T.isInfixOf "java.lang.OutOfMemoryError" combinedSR = MemOut
| T.isInfixOf "Out of Memory" combinedSR = MemOut
| T.isInfixOf "Savile Row timed out." combinedSR = TimeOut
| T.isInfixOf "type error: undefined identifier" combinedSR = Error
| T.isInfixOf "time out: time limit reached" combinedSR = TimeOut
| M.lookup "SavileRowTimeOut" info == Just "1" = TimeOut
| M.lookup "SavileRowClauseOut" info == Just "1" = TimeOut
| M.lookup "SolverTimeOut" info == Just "1" = TimeOut
Expand Down

0 comments on commit 22fb0f1

Please sign in to comment.