* http://cs.unibo.it/helm/.
*)
+module UM = UriManager
module C = Cic
module D = Deannotate
module I = CicInspect
type dependence = I.S.t * bool
-type conclusion = (int * int) option
+type conclusion = (int * int * UM.uri * int) option
(* debugging ****************************************************************)
let to_string (classes, rc) =
let linearize = String.concat " " (List.map string_of_entry classes) in
match rc with
- | None -> linearize
- | Some (i, j) -> Printf.sprintf "%s %u %u" linearize i j
+ | None -> linearize
+ | Some (i, j, _, _) -> Printf.sprintf "%s %u %u" linearize i j
let out_table b =
let map i (_, inverse) =
let inside i = i > 1 && i <= List.length vs in
match vs with
| v0 :: v1 :: _ ->
- let hd0, argsno0 = get_argsno v0 in
- let hd1, argsno1 = get_argsno v1 in
+ let hd0, a0 = get_argsno v0 in
+ let hd1, a1 = get_argsno v1 in
begin match hd0, hd1 with
- | C.Rel i, C.MutInd _ when inside i -> Some (i, argsno0)
- | _ -> None
+ | C.Rel i, C.MutInd (u, n, _) when inside i -> Some (i, a0, u, n)
+ | _ -> None
end
| _ -> None