Skip to content
Snippets Groups Projects
Commit 870596db authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[wp] limit strategy depth

parent de2cec5e
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,11 @@ let iteri f tree =
let k = ref 0 in
walk (fun node -> f !k node ; incr k) r
let rec depth node =
match node.parent with
| None -> 0
| Some p -> depth p
(* -------------------------------------------------------------------------- *)
(* --- Consolidating --- *)
(* -------------------------------------------------------------------------- *)
......
......@@ -73,6 +73,7 @@ val proved : node -> bool
val pending : node -> int
val stats : node -> Stats.stats
val parent : node -> node option
val depth : node -> int
val children : node -> (string * node) list
val tactical : node -> ProofScript.jtactic option
val get_strategies : node -> int * Strategy.t array (* current index *)
......
......@@ -374,12 +374,14 @@ and explore_fallback env process a node =
| Some s -> explore_strategie env process s node
let explore_hint env process node =
match ProofEngine.get_hint node with
| None -> failed
| Some s ->
match ProofStrategy.find s with
if ProofEngine.depth node > env.Env.depth then failed
else
match ProofEngine.get_hint node with
| None -> failed
| Some s -> explore_strategie env process s node
| Some s ->
match ProofStrategy.find s with
| None -> failed
| Some s -> explore_strategie env process s node
let explore_further env process strategy node =
let marked =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment