satchmo-1.8.0: SAT encoding monad

Satchmo.Integer

Synopsis

Documentation

number :: MonadSAT m => Int -> m NumberSource

declare a number variable (bit width)

constantSource

Arguments

:: MonadSAT m 
=> Int

bit width

-> Integer

value

-> m Number 

declare a number constant

bits :: Number -> [Boolean]Source

lsb first, using two's complement

negate :: MonadSAT m => Number -> m NumberSource

negate. Unsatisfiable if value is lowest negatve.