src/HOL/Tools/Sledgehammer/sledgehammer.ML
changeset 40471 2269544b6457
parent 40439 fb6ee11e776a
child 40553 1264c9172338
equal deleted inserted replaced
40470:2878445aa7d5 40471:2269544b6457
   447       | SOME SMT_Failure.Out_Of_Memory => true
   447       | SOME SMT_Failure.Out_Of_Memory => true
   448       | SOME _ => true
   448       | SOME _ => true
   449     val timeout = Time.- (timeout, Timer.checkRealTimer timer)
   449     val timeout = Time.- (timeout, Timer.checkRealTimer timer)
   450   in
   450   in
   451     if too_many_facts_perhaps andalso iter < smt_max_iter andalso
   451     if too_many_facts_perhaps andalso iter < smt_max_iter andalso
   452        not (null facts) andalso timeout > Time.zeroTime then
   452        not (null facts) andalso Time.> (timeout, Time.zeroTime) then
   453       let val facts = take (length facts div smt_iter_fact_divisor) facts in
   453       let val facts = take (length facts div smt_iter_fact_divisor) facts in
   454         smt_filter_loop (iter + 1) outcome0 msecs_so_far remote timeout state
   454         smt_filter_loop (iter + 1) outcome0 msecs_so_far remote timeout state
   455                         facts i
   455                         facts i
   456       end
   456       end
   457     else
   457     else