X.xml_nempty "PROD" ["type",sort]
[< List.fold_left
(fun i (id,binder,s) ->
- let sort = Hashtbl.find ids_to_inner_sorts id in
+ let sort =
+ Hashtbl.find ids_to_inner_sorts (Cic2acic.source_id_of_id id)
+ in
let attrs =
("id",id)::("type",sort)::
match binder with
X.xml_nempty "LAMBDA" ["sort",sort]
[< List.fold_left
(fun i (id,binder,s) ->
- let sort = Hashtbl.find ids_to_inner_sorts id in
+ let sort =
+ Hashtbl.find ids_to_inner_sorts (Cic2acic.source_id_of_id id)
+ in
let attrs =
("id",id)::("type",sort)::
match binder with
(fun id {C2A.annsynthesized = synty ; C2A.annexpected = expty} x ->
[< x ;
X.xml_nempty "TYPE" ["of",id]
- [< print_term ids_to_inner_sorts synty ;
- match expty with
- None -> [<>]
- | Some expty' -> print_term ids_to_inner_sorts expty'
+ [< X.xml_nempty "synthesized" []
+ [< print_term ids_to_inner_sorts synty >] ;
+ match expty with
+ None -> [<>]
+ | Some expty' -> X.xml_nempty "expected" [] [< print_term ids_to_inner_sorts expty' >]
>]
>]
) ids_to_inner_types [<>]