Commit 4fbc59f1 authored by Andrei Paskevich's avatar Andrei Paskevich
Browse files

Termcode: add (commented out) optimistic pairing

Certain modifications in Why3 change tasks but not the propositional
structure of the goal. In this case, it is sometimes easier to use
"optimistic pairing": as long as the number of subgoals is the same
as in the old session, match them in the existing order, without
comparing shapes. This should be used only for repairing sessions
after changes in Why3.
parent 726c66b0
......@@ -593,4 +593,9 @@ module Pairing(Old: S)(New: S) = struct
Array.to_list result
let associate oldgoals newgoals =
try List.map2 (fun o n -> n, Some (o, true)) oldgoals newgoals
with Invalid_argument _ -> associate oldgoals newgoals
Supports Markdown
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