HasCacBDD

Haskell bindings for CacBDD, a Binary Decision Diagram (BDD) package with dynamic cache management. Original C++ code from http://kailesu.net/CacBDD and a C wrapper are included.


Keywords
gpl, library, Propose Tags, http://kailesu.net/CacBDD, Skip to Readme, , Index, Quick Jump, Data.HasCacBDD, Data.HasCacBDD.Visuals, HasCacBDD-0.2.0.0.tar.gz, browse, Package description, Package maintainers, m4lvin, edit package information , binary-decision-diagrams, ffi, haskell-bindings
License
GPL-2.0-only
Install
cabal install HasCacBDD-0.1.0.3

Documentation

HasCacBDD

Release Hackage GitLab CI Test Coverage

Haskell bindings for CacBDD, a Binary Decision Diagram (BDD) package with dynamic cache management.

Original C++ code from http://kailesu.net/CacBDD and a C wrapper are included.

Getting Started

  1. Install C compilers and stack if necessary:

    apt install build-essential git
    curl -sSL https://get.haskellstack.org/ | sh
    
  2. Download, build and load the lastest version:

    git clone https://github.com/m4lvin/HasCacBDD.git
    cd HasCacBDD
    stack setup
    stack build
    stack exec ghci
    

    Note: stack ghci apparently does not work with the shared library. You really need stack build and then stack exec ghci.

    To use cabal instead of stack: cabal build, then cabal exec ghci and then :set -package HasCacBDD.

  3. Now you can play with Boolean functions :-)

    位> import Data.HasCacBDD
    位> var 5
    Var 5 Top Bot
    位> neg (var 5)
    Var 5 Bot Top
    位> dis (neg (var 3)) (var 3)
    Top