https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: 8ce5c7ad9c68d55e67c96c46a7fc35746c3e6710 authored by Pierre Boutry on 02 September 2022, 14:10:48 UTC
Merge branch 'deploy-oldlibs-cleanup' of github.com:EasyCrypt/easycrypt into deploy-oldlibs-cleanup
Tip revision: 8ce5c7a
ecTypeClass.mli
(* -------------------------------------------------------------------- *)
open EcPath

type node = path

type graph
type nodes

exception CycleDetected

module Graph : sig
  val empty : graph
  val add : src:node -> dst:node -> graph -> graph
  val has_path : src:node -> dst:node -> graph -> bool
  val dump : graph -> string
end

module Nodes : sig
  val empty : graph -> nodes
  val add : node -> nodes -> nodes
  val toset : nodes -> Sp.t
  val reduce : Sp.t -> graph -> Sp.t
end
back to top