package idd

  1. Overview
  2. Docs

Module Idd_.BddSource

Reduced Ordered Binary Decision Diagrams (BDDs).

Types

Sourcetype t = private Dd.t

A BDD is just a DD with two additional structural constraints:

  • Ordered: the variables along any root-leaf path of a BDD increase strictly monotonically.
  • Reduced: The hi and lo subtrees of any branch are distinct.
Sourceval equal : t -> t -> bool
Sourcetype manager
Sourceval manager : unit -> manager

Constructors

Sourceval ctrue : t
Sourceval cfalse : t

Boolean operations

Sourceval conj : manager -> t -> t -> t

boolean conjunction (logical and)

Sourceval disj : manager -> t -> t -> t

boolean disjunction (logical or)

Sourceval neg : manager -> t -> t

boolean negation (logical not)

Sourceval ite : manager -> Var.t -> t -> t -> t

ite mgr i u v behaves like u when variable i is true, and like v otherwise.

Sourcemodule Make () : Boolean.Algebra with type t = t

BDDs form a boolean algebra.

Semantics

Sourceval eval : t -> env:(Var.t -> bool) -> bool
OCaml

Innovation. Community. Security.