Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
This is a simple implementation of a BDD library for OCaml, mostly for teaching and quick experiment purposes.
You need dune on your system. If you don't have it, install opam then try opam install dune.
To build everything:
makeIt will build these libraries:
bdd: the main library - lib/bdd.mli should be self-explanatoryprop: propositional logic, with a parser, used to test the main library - see check for examplebench_prop: various ways of generating valid propositional formulaeMany executables:
test: tests producing graphical output - you'll need the graphviz and gv packages from your distributiontilingbdd_sat: a propositional tautology checker using bddquant_elim: simple tests for quantifier eliminationqueen: computes the number of solutions to the n-queens problem, using a propositional formula (this is not an efficient way to solve this problem, simply another way to test the bdd library)pathcheck: a quick checkbench_prop_cli: generate valide propositional formulae from command lineTo run any of them, let's say check, do:
dune exec test/check.exeYou can combine some of them, e.g.:
dune exec test/bench_prop_cli -pigeon-p 7 | dune exec test/bdd_sat.exeYou can run tests using:
make testmake install