Safe Haskell | None |
---|

implementation of reduced ordered binary decision diagrams.

- data OBDD v
- size :: OBDD v -> Int
- null :: OBDD v -> Bool
- satisfiable :: OBDD v -> Bool
- number_of_models :: Ord v => Set v -> OBDD v -> Integer
- some_model :: Ord v => OBDD v -> IO (Maybe (Map v Bool))
- all_models :: Ord v => OBDD v -> [Map v Bool]
- data Node v i
- make :: State (OBDD v) Index -> OBDD v
- register :: Ord v => Node v Index -> State (OBDD v) Index
- cached :: Ord v => (Index, Index) -> State (OBDD v) Index -> State (OBDD v) Index
- top :: OBDD v -> Index
- access :: OBDD v -> Node v (OBDD v)

# the data type

# for external use

satisfiable :: OBDD v -> BoolSource

does the OBDD have any models?

number_of_models :: Ord v => Set v -> OBDD v -> IntegerSource

Number of satisfying assignments with given set of variables. The set of variables must be given since the current OBDD may not contain all variables that were used to construct it, since some nodes may have been removed because they had identical children.

some_model :: Ord v => OBDD v -> IO (Maybe (Map v Bool))Source

randomly select one model, if possible

all_models :: Ord v => OBDD v -> [Map v Bool]Source

list of all models (WARNING not using variables that had been deleted)