packages feed

obdd-0.8.2: obdd.cabal

Name:                obdd
Version:             0.8.2
Cabal-Version:       >= 1.8
Build-type: Simple
Synopsis:            Ordered Reduced Binary Decision Diagrams
Description:
  Construct, combine and query OBDDs;
  an efficient representation for formulas in propositional logic.
  .
  This is mostly educational.
  The BDDs do not share nodes (there is no persistent BDD base) and this might introduce inefficiencies.
  .
  An important (for me, in teaching) feature is
  that I can immediately draw the BDD to an X11 window (via graphviz).
  For example, to show the effect of different variable orderings,
  try this in ghci (type 'q' to close the drawing windows).
  .
  > import Prelude hiding (not,(&&),(||),and,or,any,all)
  > import OBDD
  > let f [] = false; f (x:y:zs) = x && y || f zs
  > display $ f $ map variable [1,2,3,4,5,6]
  > display $ f $ map variable [1,4,2,5,3,6]
  .
  'OBDD' implements 'Ersatz.Boolean' which re-defines
  Boolean operations from the Prelude. The recommended way of using this
  is shown in the previous example.
  .
  If you want better performance, use a library with a persistent BDD base,
  e.g., <http://vlsi.colorado.edu/%7Efabio/CUDD/ CUDD>
  <https://hackage.haskell.org/package/cudd Haskell bindings>,
  see <https://gitlab.imn.htwk-leipzig.de/waldmann/min-comp-sort this example>.

category:            Logic
License:             GPL
License-file:        LICENSE
Author:              Johannes Waldmann
Maintainer:          Johannes Waldmann
Homepage:            https://github.com/jwaldmann/haskell-obdd

Source-Repository head
    Type: git
    Location: git://github.com/jwaldmann/haskell-obdd.git

Library
    Build-Depends:       base==4.*, random, mtl, containers>=0.5, array, process-extras, ersatz, text
    Hs-Source-Dirs:          src
    Exposed-Modules:     OBDD OBDD.Data OBDD.Make OBDD.Operation OBDD.Property, OBDD.Display, OBDD.Linopt, OBDD.Cube
    Other-Modules:           OBDD.IntIntMap, OBDD.VarIntIntMap
    ghc-options: -funbox-strict-fields

test-suite obdd-placement
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Placement.hs
    Build-Depends: base, containers, obdd

test-suite obdd-domino
    Hs-Source-Dirs: examples
    Type: exitcode-stdio-1.0
    Main-Is: Domino.hs
    Build-Depends: base, containers, obdd

test-suite obdd-cubism
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Cubism.hs
    Build-Depends: base, containers, obdd

test-suite obdd-queens
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Queens.hs
    ghc-options: -threaded -rtsopts
    Build-Depends: base, containers, obdd, text

test-suite obdd-queens2
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Queens2.hs
    Build-Depends: base, containers, obdd

test-suite obdd-weight
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Weight.hs
    Build-Depends: base, containers, obdd
    
test-suite obdd-sort
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: Sort.hs
    Build-Depends: base, containers, obdd
    Ghc-Options: -rtsopts    

test-suite obdd-mm0916
    Hs-Source-Dirs : examples
    Type: exitcode-stdio-1.0
    Main-Is: MM0916.hs
    Build-Depends: base, containers, obdd, array
    Ghc-Options: -rtsopts