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

1.8.0.tar.gz
md5=796ad26120b5c6b939a57e8623088aef
sha512=01a58ac6d928afead21c8a97af5865715114cd0562234d1d4aef9e4ac5d91415d040a15927c52cb896dbb39a53e915627f498ebe2d026a548c3ff597682041b2

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

Module UrefSource

Sourcetype '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.

Sourceval uref : 'a -> 'a uref

Create a new uref

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

Test whether two urefs share the same equivalence class

Sourceval deref : 'a uref -> 'a

Extract the contents of this reference

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

Update the value stored in this reference

Sourceval 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

Sourceval 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.