Add a 5 second time-out to calls to z3

This commit is contained in:
Iavor Diatchki 2017-09-25 11:41:20 -07:00
parent ccc4b828c2
commit 9f3f592a2f

View File

@ -623,7 +623,7 @@ userOptions = mkOptionMap
setModuleEnv me { M.meMonoBinds = b }
_ -> return ()
, OptionDescr "tc-solver" (EnvProg "z3" [ "-smt2", "-in" ])
, OptionDescr "tc-solver" (EnvProg "z3" [ "-smt2", "-t:5000", "-in" ])
(const (return Nothing)) -- TODO: check for the program in the path
"The solver that will be used by the type checker" $
\case EnvProg prog args -> do me <- getModuleEnv