qlogic-0.9: A Haskell Library for Propositional Logic.

Safe HaskellNone

Qlogic.IntSat

Synopsis

Documentation

data Size

Constructors

Bits Int 
Bound Int Int 

intToBits :: Int -> Int

calculates the necessary length of a list of Top/Bot values for representing the given integer

bits :: Size -> Int

bound :: Size -> (Int, Int)

padFrontM :: (Eq l, Solver s l) => Int -> NatFormula l -> NatMonad s l (NatFormula l)

mNegate :: (Ord l, Solver s l) => NatFormula l -> NatMonad s l (NatFormula l)

mAdd :: (Ord l, Solver s l) => NatFormula l -> NatFormula l -> NatMonad s l (NatFormula l)

mTimes :: (Ord l, Solver s l) => NatFormula l -> NatFormula l -> NatMonad s l (NatFormula l)

mGrt :: (Solver s l, Eq l) => NatFormula l -> NatFormula l -> NatMonad s l (PropFormula l)

performs greater than comparisons of integers in the representation as a list of propositional formulas

mGeq :: (Solver s l, Eq l) => NatFormula l -> NatFormula l -> NatMonad s l (PropFormula l)

performs greater or equal comparisons of integers in the representation as a list of propositional formulas

mEqu :: (Solver s l, Eq l) => NatFormula l -> NatFormula l -> NatMonad s l (PropFormula l)

performs equality comparisons of integers in the representation as a list of propositional formulas

natAtomM :: (PropAtom a, Eq l, Solver s l) => Size -> a -> NatMonad s l (NatFormula l)

eval :: Ord l => NatFormula l -> Assign l -> Int