package goblint-cil

  1. Overview
  2. Docs
A front-end for the C programming language that facilitates program analysis and transformation

Install

Dune Dependency

Authors

Maintainers

Sources

goblint-cil-1.8.2.tbz
sha256=f4711e3fa53c482cdef2d7ed62b287d859ce55ef8b4ddfdc6071e81034c3bc89
sha512=8a861aa04aed7684a7c86207cfd5b63503984917fe53ae4866890242cb0db38d2c4f7bd5a5565fd094da064fb290e67071bae6874377e10d2005330c71cc13a2

doc/goblint-cil.pta/Uref/index.html

Module Uref

type 'a uref

Union-find with union by rank and path compression

This is an implementation of Tarjan's union-find data structure using generics. The interface is analagous to standard references, with the addition of a union operation which makes two references indistinguishable.

val uref : 'a -> 'a uref

Create a new uref

val equal : ('a uref * 'a uref) -> bool

Test whether two urefs share the same equivalence class

val deref : 'a uref -> 'a

Extract the contents of this reference

val update : ('a uref * 'a) -> unit

Update the value stored in this reference

val unify : (('a * 'a) -> 'a) -> ('a uref * 'a uref) -> unit

unify f (p,q) unifies references p and q, making them indistinguishable. The contents of the reference are the result of f

val union : ('a uref * 'a uref) -> unit

unify (p,q) unifies references p and q, making them indistinguishable. The contents of the reference are the contents of one of the first or second arguments (unspecified)

OCaml

Innovation. Community. Security.