Module BddSource

Propositional formulas

Sourcetype variable = int

A variable is an integer, ranging from 1 to max_var (within a BDD module).

Sourcemodule BddVarMap : Map.S with type key = variable

Module providing general-purpose map data structures indexed by BDD variables.

Sourcetype formula =
  1. | Ffalse
  2. | Ftrue
  3. | Fvar of variable
  4. | Fand of formula * formula
  5. | For of formula * formula
  6. | Fimp of formula * formula
  7. | Fiff of formula * formula
  8. | Fnot of formula
  9. | Fite of formula * formula * formula
Sourcemodule type BDD = sig ... end

Binary Decision Diagrams (BDDs)

Sourcemodule Make (X : sig ... end) : BDD

Binary Decision Diagrams (BDDs)

Sourceval make : ?print_var:(Format.formatter -> variable -> unit) -> ?size:int -> int -> (module BDD)

Creates a BDD module with a given maximum number of variables. Additionally, the size of the internal nodes table for each variable can be specified. Each table has a default size (7001) and is resized when necessary (i.e. when too many collisions occur). The print_var argument can be used to associate names with variables (by default it gives "x1", "x2", ...).