Commit 50317a3a authored by MARCHE Claude's avatar MARCHE Claude
Browse files

fix issue #61

proof nodes are not anymore marked obsolete when they are detached
parent 5cf1554d
......@@ -534,7 +534,7 @@ let empty_session ?from dir =
exception AlreadyExist
let add_proof_attempt session prover limit state obsolete edit parentID =
let add_proof_attempt session prover limit state ~obsolete edit parentID =
let pn = get_proofNode session parentID in
let _ = Hprover.find pn.proofn_attempts prover in
......@@ -564,7 +564,7 @@ let graft_proof_attempt ?file (s : session) (id : proofNodeID) (pr :
Hint.replace s.proofAttempt_table id pa;
with Not_found ->
add_proof_attempt s pr limit None false file id
add_proof_attempt s pr limit None ~obsolete:false file id
(* [mk_proof_node s n t p id] register in the session [s] a proof node
......@@ -1034,7 +1034,7 @@ and load_proof_or_transf session old_provers pid a =
Call_provers.limit_mem = memlimit;
Call_provers.limit_steps = steplimit; }
ignore(add_proof_attempt session p limit (Some res) obsolete edit pid)
ignore(add_proof_attempt session p limit (Some res) ~obsolete edit pid)
with Failure _ | Not_found ->
Warning.emit "[Error] prover id not listed in header '%s'@." prover;
raise (LoadError (a,"prover not listing in header"))
......@@ -1318,7 +1318,7 @@ let found_detached = ref false
let save_detached_proof s parent old_pa_n =
let old_pa = old_pa_n in
ignore (add_proof_attempt s old_pa.prover old_pa.limit
old_pa.proof_state true old_pa.proof_script
old_pa.proof_state ~obsolete:false old_pa.proof_script
let rec save_detached_goal old_s s parent detached_goal_id id =
......@@ -1369,7 +1369,7 @@ let merge_proof new_s ~goal_obsolete new_goal _ old_pa_n =
let obsolete = goal_obsolete || old_pa.proof_obsolete in
found_obsolete := obsolete || !found_obsolete;
ignore (add_proof_attempt new_s old_pa.prover old_pa.limit
old_pa.proof_state obsolete old_pa.proof_script
old_pa.proof_state ~obsolete old_pa.proof_script
exception NoProgress
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment