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

Satchmo.Unary.Op.Fixed

Synopsis

Documentation

maximum :: MonadSAT m => [Number] -> m Number Source #

maximum (x:xs) = foldM max x xs

minimum :: MonadSAT m => [Number] -> m Number Source #

minimum (x:xs) = foldM min x xs

select :: MonadSAT m => Boolean -> Number -> m Number Source #

when f is False, switch off all bits

antiselect :: MonadSAT m => Boolean -> Number -> m Number Source #

when p is True, switch ON all bits