X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic%2Fdeannotate.ml;h=21e591d4e20cbe4e39b1726296cb55769e57e0f6;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=289fe7db496afd9cee70b224616e6a6d2ff59e4e;hpb=e626927b4c1c77bdcd6b545203a0a9c17a9ff136;p=helm.git diff --git a/helm/ocaml/cic/deannotate.ml b/helm/ocaml/cic/deannotate.ml index 289fe7db4..21e591d4e 100644 --- a/helm/ocaml/cic/deannotate.ml +++ b/helm/ocaml/cic/deannotate.ml @@ -90,15 +90,15 @@ let deannotate_inductiveType (_, name, isinductive, arity, cons) = let deannotate_obj = let module C = Cic in function - C.AConstant (_, _, id, bo, ty, params) -> + C.AConstant (_, _, id, bo, ty, params, attrs) -> C.Constant (id, (match bo with None -> None | Some bo -> Some (deannotate_term bo)), - deannotate_term ty, params) - | C.AVariable (_, name, bo, ty, params) -> + deannotate_term ty, params, attrs) + | C.AVariable (_, name, bo, ty, params, attrs) -> C.Variable (name, (match bo with None -> None | Some bo -> Some (deannotate_term bo)), - deannotate_term ty, params) - | C.ACurrentProof (_, _, name, conjs, bo, ty, params) -> + deannotate_term ty, params, attrs) + | C.ACurrentProof (_, _, name, conjs, bo, ty, params, attrs) -> C.CurrentProof ( name, List.map @@ -116,9 +116,9 @@ let deannotate_obj = in (id,context,deannotate_term con) ) conjs, - deannotate_term bo,deannotate_term ty,params + deannotate_term bo,deannotate_term ty, params, attrs ) - | C.AInductiveDefinition (_, tys, params, parno) -> + | C.AInductiveDefinition (_, tys, params, parno, attrs) -> C.InductiveDefinition (List.map deannotate_inductiveType tys, - params, parno) + params, parno, attrs) ;;