1234567891011121314151617181920212223242526272829303132333435363738394041424344(************************************************************************)(* * The Coq Proof Assistant / The Coq Development Team *)(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)(* <O___,, * (see CREDITS file for the list of authors) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)(************************************************************************)(* Coq serialization API/Plugin *)(* Copyright 2016-2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3+ *)(* Written by: Emilio J. Gallego Arias *)(************************************************************************)(* Status: Very Experimental *)(************************************************************************)openSexplib.ConvmoduletypeExtS=sigincludeCSig.MapS(* module SSet : Ser_cSet.ExtS *)includeSerType.S1withtype'at:='atendmoduleMake(M:CSig.MapS)(S:SerType.Swithtypet:=M.key)=structincludeM(* module SSet = Ser_cSet.Make(M.Set)(S) *)letsexp_of_tfcst=sexp_of_list(Sexplib.Conv.sexp_of_pairS.sexp_of_tf)M.(bindingscst)lett_of_sexpfsexp=List.fold_left(fune(k,s)->M.addkse)M.empty(list_of_sexp(pair_of_sexpS.t_of_sexpf)sexp)end