satchmo-2.9.9.4: SAT encoding monad
Safe HaskellSafe-Inferred
LanguageHaskell2010

Satchmo.Integer

Synopsis

Documentation

data Number Source #

Instances

Instances details
(Monad m, Decode m Boolean Bool) => Decode m Number Integer Source # 
Instance details

Defined in Satchmo.Integer.Data

Methods

decode :: Number -> m Integer Source #

number :: MonadSAT m => Int -> m Number Source #

declare a number variable (bit width)

constant Source #

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 Number Source #

negate. Unsatisfiable if value is lowest negatve.