package alt-ergo-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Hconsing.MakeSource

Functor to create a hashconsing module from a module describing values.

Hashconsed values

This signature defines a hashconsing module, used to implement maximal sharing of hashconsed values.

Parameters

module H : HASHED

Signature

Sourcetype t = H.elt

The type of value used.

Sourceval make : t -> t

Hashcons a value t, either returning t, or a value equal to t that was hashconsed previously.

Sourceval elements : unit -> t list

Returns the list of all unique hashconsed elements.

OCaml

Innovation. Community. Security.