fast track -- avoid domain error in 0 case
authorblanchet
Thu, 17 Oct 2013 01:03:59 +0200
changeset 55576d3c0cf737b55
parent 55575 271a8377656f
child 55577 420b876ff1e2
fast track -- avoid domain error in 0 case
src/HOL/Tools/Sledgehammer/sledgehammer_mepo.ML
     1.1 --- a/src/HOL/Tools/Sledgehammer/sledgehammer_mepo.ML	Thu Oct 17 01:03:59 2013 +0200
     1.2 +++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mepo.ML	Thu Oct 17 01:03:59 2013 +0200
     1.3 @@ -570,7 +570,7 @@
     1.4      trace_msg ctxt (fn () => "Considering " ^ string_of_int (length facts) ^ " facts");
     1.5      (if thres1 < 0.0 then
     1.6         facts
     1.7 -     else if thres0 > 1.0 orelse thres0 > thres1 then
     1.8 +     else if thres0 > 1.0 orelse thres0 > thres1 orelse max_facts <= 0 then
     1.9         []
    1.10       else
    1.11         relevance_filter ctxt thres0 decay max_facts fudge facts hyp_ts