functor
  (G : sig
         type t
         module V :
           sig
             type t
             val id : Service_graph.Make.V.t -> int
             val name : Service_graph.Make.V.t -> string
             val attributes :
               Service_graph.Make.V.t ->
               Graph.Graphviz.DotAttributes.vertex list
           end
         val iter_vertex :
           (Service_graph.Make.V.t -> unit) -> Service_graph.Make.t -> unit
         val callees :
           Service_graph.Make.t ->
           Service_graph.Make.V.t -> Service_graph.Make.V.t list
         val callers :
           Service_graph.Make.t ->
           Service_graph.Make.V.t -> Service_graph.Make.V.t list
         val name : string
       end->
  sig
    type m = private Nothing | Service of int | JustMet of int
    type vertex = private {
      node : G.V.t;
      mutable mark : Service_graph.Make.m;
      mutable visited : bool;
      is_service : bool;
    }
    module CallG :
      sig
        type t
        module V :
          sig
            type t = vertex
            val compare : t -> t -> int
            val hash : t -> int
            val equal : t -> t -> bool
            type label
            val create : label -> t
            val label : t -> label
          end
        type vertex = V.t
        module E :
          sig
            type t
            val compare : t -> t -> int
            type vertex = vertex
            val src : t -> vertex
            val dst : t -> vertex
            type label
            val create : vertex -> label -> vertex -> t
            val label : t -> label
          end
        type edge = E.t
        val is_directed : bool
        val is_empty : t -> bool
        val nb_vertex : t -> int
        val nb_edges : t -> int
        val out_degree : t -> vertex -> int
        val in_degree : t -> vertex -> int
        val mem_vertex : t -> vertex -> bool
        val mem_edge : t -> vertex -> vertex -> bool
        val mem_edge_e : t -> edge -> bool
        val find_edge : t -> vertex -> vertex -> edge
        val succ : t -> vertex -> vertex list
        val pred : t -> vertex -> vertex list
        val succ_e : t -> vertex -> edge list
        val pred_e : t -> vertex -> edge list
        val iter_vertex : (vertex -> unit) -> t -> unit
        val fold_vertex : (vertex -> '-> 'a) -> t -> '-> 'a
        val iter_edges : (vertex -> vertex -> unit) -> t -> unit
        val fold_edges : (vertex -> vertex -> '-> 'a) -> t -> '-> 'a
        val iter_edges_e : (edge -> unit) -> t -> unit
        val fold_edges_e : (edge -> '-> 'a) -> t -> '-> 'a
        val map_vertex : (vertex -> vertex) -> t -> t
        val iter_succ : (vertex -> unit) -> t -> vertex -> unit
        val iter_pred : (vertex -> unit) -> t -> vertex -> unit
        val fold_succ : (vertex -> '-> 'a) -> t -> vertex -> '-> 'a
        val fold_pred : (vertex -> '-> 'a) -> t -> vertex -> '-> 'a
        val iter_succ_e : (edge -> unit) -> t -> vertex -> unit
        val fold_succ_e : (edge -> '-> 'a) -> t -> vertex -> '-> 'a
        val iter_pred_e : (edge -> unit) -> t -> vertex -> unit
        val fold_pred_e : (edge -> '-> 'a) -> t -> vertex -> '-> 'a
        val create : ?size:int -> unit -> t
        val copy : t -> t
        val add_vertex : t -> vertex -> unit
        val remove_vertex : t -> vertex -> unit
        val add_edge : t -> vertex -> vertex -> unit
        val add_edge_e : t -> edge -> unit
        val remove_edge : t -> vertex -> vertex -> unit
        val remove_edge_e : t -> edge -> unit
        type tt = t
        module Datatype :
          sig
            type t = tt
            val rehash : t -> t
            val descr : Unmarshal.t
            val copy : t -> t
            val name : string
            val register_comparable :
              ?compare:(t -> t -> int) ->
              ?equal:(t -> t -> bool) ->
              ?hash:(t -> int) -> ?physical_hash:(t -> int) -> unit -> unit
            val is_comparable_set : unit -> bool
            val hash : t -> int
            val physical_hash : t -> int
            val equal : t -> t -> bool
            val compare : t -> t -> int
            val contain_project : (Project.project -> t -> bool) option ref
          end
      end
    val output_graph :
      Pervasives.out_channel -> Service_graph.Make.CallG.t -> unit
    val compute : G.t -> Cilutil.StringSet.t -> Service_graph.Make.CallG.t
    module SS :
      sig
        type elt = G.V.t
        type t
        val empty : t
        val is_empty : t -> bool
        val mem : elt -> t -> bool
        val add : elt -> t -> t
        val singleton : elt -> t
        val remove : elt -> t -> t
        val union : t -> t -> t
        val inter : t -> t -> t
        val diff : t -> t -> t
        val compare : t -> t -> int
        val equal : t -> t -> bool
        val subset : t -> t -> bool
        val iter : (elt -> unit) -> t -> unit
        val fold : (elt -> '-> 'a) -> t -> '-> 'a
        val for_all : (elt -> bool) -> t -> bool
        val exists : (elt -> bool) -> t -> bool
        val filter : (elt -> bool) -> t -> t
        val partition : (elt -> bool) -> t -> t * t
        val cardinal : t -> int
        val elements : t -> elt list
        val min_elt : t -> elt
        val max_elt : t -> elt
        val choose : t -> elt
        val split : elt -> t -> t * bool * t
      end
    type service_vertex = private {
      service : int;
      mutable root : G.V.t;
      mutable nodes : Service_graph.Make.SS.t;
    }
    module SG :
      sig
        type t
        module V :
          sig
            type t = service_vertex
            val compare : t -> t -> int
            val hash : t -> int
            val equal : t -> t -> bool
            type label
            val create : label -> t
            val label : t -> label
          end
        type vertex = V.t
        module E :
          sig
            type t
            val compare : t -> t -> int
            type vertex = vertex
            val src : t -> vertex
            val dst : t -> vertex
            type label
            val create : vertex -> label -> vertex -> t
            val label : t -> label
          end
        type edge = E.t
        val is_directed : bool
        val is_empty : t -> bool
        val nb_vertex : t -> int
        val nb_edges : t -> int
        val out_degree : t -> vertex -> int
        val in_degree : t -> vertex -> int
        val mem_vertex : t -> vertex -> bool
        val mem_edge : t -> vertex -> vertex -> bool
        val mem_edge_e : t -> edge -> bool
        val find_edge : t -> vertex -> vertex -> edge
        val succ : t -> vertex -> vertex list
        val pred : t -> vertex -> vertex list
        val succ_e : t -> vertex -> edge list
        val pred_e : t -> vertex -> edge list
        val iter_vertex : (vertex -> unit) -> t -> unit
        val fold_vertex : (vertex -> '-> 'a) -> t -> '-> 'a
        val iter_edges : (vertex -> vertex -> unit) -> t -> unit
        val fold_edges : (vertex -> vertex -> '-> 'a) -> t -> '-> 'a
        val iter_edges_e : (edge -> unit) -> t -> unit
        val fold_edges_e : (edge -> '-> 'a) -> t -> '-> 'a
        val map_vertex : (vertex -> vertex) -> t -> t
        val iter_succ : (vertex -> unit) -> t -> vertex -> unit
        val iter_pred : (vertex -> unit) -> t -> vertex -> unit
        val fold_succ : (vertex -> '-> 'a) -> t -> vertex -> '-> 'a
        val fold_pred : (vertex -> '-> 'a) -> t -> vertex -> '-> 'a
        val iter_succ_e : (edge -> unit) -> t -> vertex -> unit
        val fold_succ_e : (edge -> '-> 'a) -> t -> vertex -> '-> 'a
        val iter_pred_e : (edge -> unit) -> t -> vertex -> unit
        val fold_pred_e : (edge -> '-> 'a) -> t -> vertex -> '-> 'a
        type tt = t
        module Datatype :
          sig
            type t = tt
            val rehash : t -> t
            val descr : Unmarshal.t
            val copy : t -> t
            val name : string
            val register_comparable :
              ?compare:(t -> t -> int) ->
              ?equal:(t -> t -> bool) ->
              ?hash:(t -> int) -> ?physical_hash:(t -> int) -> unit -> unit
            val is_comparable_set : unit -> bool
            val hash : t -> int
            val physical_hash : t -> int
            val equal : t -> t -> bool
            val compare : t -> t -> int
            val contain_project : (Project.project -> t -> bool) option ref
          end
      end
    val compute_services :
      Service_graph.Make.CallG.t -> Service_graph.Make.SG.t
    val output_services :
      Pervasives.out_channel -> Service_graph.Make.SG.t -> unit
  end