Safe Haskell | None |
---|---|
Language | Haskell98 |
operations from this module cannot overflow. instead they increase the bit width.
- add :: MonadSAT m => Number -> Number -> m Number
- times :: MonadSAT m => Number -> Number -> m Number
- dot_product :: MonadSAT m => [Number] -> [Number] -> m Number
- add_with_carry :: MonadSAT m => Boolean -> Booleans -> Booleans -> m (Booleans, Boolean)
- times1 :: MonadSAT m => Boolean -> Number -> m Number
- shift :: MonadSAT m => Number -> m Number
- data Number
- bits :: Number -> [Boolean]
- make :: [Boolean] -> Number
- width :: Number -> Int
- number :: MonadSAT m => Int -> m Number
- constant :: MonadSAT m => Integer -> m Number
- constantWidth :: MonadSAT m => Int -> Integer -> m Number
- fromBinary :: [Bool] -> Integer
- toBinary :: Integer -> [Bool]
- toBinaryWidth :: Int -> Integer -> [Bool]
- module Satchmo.Binary.Op.Common
Documentation
constantWidth :: MonadSAT m => Int -> Integer -> m Number Source
constantWidth w
declares a number constant using at least w
bits
fromBinary :: [Bool] -> Integer Source
toBinaryWidth :: Int -> Integer -> [Bool] Source
toBinaryWidth w
converts to binary using at least w
bits
module Satchmo.Binary.Op.Common