https://github.com/EasyCrypt/easycrypt
Revision 8f33b95ba4e89b25716ca2199a850370bcf5299e authored by Stephane Graham-Lengrand on 07 October 2020, 23:19:47 UTC, committed by Pierre-Yves Strub on 09 October 2020, 08:41:05 UTC
1 parent 3007982
Raw File
Tip revision: 8f33b95ba4e89b25716ca2199a850370bcf5299e authored by Stephane Graham-Lengrand on 07 October 2020, 23:19:47 UTC
First attempt at handling Why3 1.3.X
Tip revision: 8f33b95
ecTypeClass.mli
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2016 - IMDEA Software Institute
 * Copyright (c) - 2012--2018 - Inria
 * Copyright (c) - 2012--2018 - Ecole Polytechnique
 *
 * Distributed under the terms of the CeCILL-C-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
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