Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type CBool = Word8
- type Literal = Int32
- type Atom = Word32
- type Identifier = Word32
- type Weight = Int32
- type Logger a = ClingoWarning -> Ptr CChar -> Ptr a -> IO ()
- mkCallbackLogger :: Logger a -> IO (FunPtr (Logger a))
- data Location = Location {}
- type Signature = Word64
- type Symbol = Word64
- data SymbolicLiteral = SymbolicLiteral {}
- newtype Model = Model (Ptr Model)
- newtype SolveHandle = SolveHandle (Ptr SolveHandle)
- newtype SolveControl = SolveControl (Ptr SolveControl)
- newtype SymbolicAtoms = SymbolicAtoms (Ptr SymbolicAtoms)
- type SymbolicAtomIterator = Word64
- newtype TheoryAtoms = TheoryAtoms (Ptr TheoryAtoms)
- newtype PropagateInit = PropagateInit (Ptr PropagateInit)
- newtype Assignment = Assignment (Ptr Assignment)
- newtype PropagateControl = PropagateControl (Ptr PropagateControl)
- type CallbackPropagatorInit a = PropagateInit -> Ptr a -> IO CBool
- mkCallbackPropagatorInit :: CallbackPropagatorInit a -> IO (FunPtr (CallbackPropagatorInit a))
- type CallbackPropagatorPropagate a = PropagateControl -> Ptr Literal -> CSize -> Ptr a -> IO CBool
- mkCallbackPropagatorPropagate :: CallbackPropagatorPropagate a -> IO (FunPtr (CallbackPropagatorPropagate a))
- type CallbackPropagatorUndo a = PropagateControl -> Ptr Literal -> CSize -> Ptr a -> IO CBool
- mkCallbackPropagatorUndo :: CallbackPropagatorUndo a -> IO (FunPtr (CallbackPropagatorUndo a))
- type CallbackPropagatorCheck a = PropagateControl -> Ptr a -> IO CBool
- mkCallbackPropagatorCheck :: CallbackPropagatorCheck a -> IO (FunPtr (CallbackPropagatorCheck a))
- data Propagator a = Propagator {}
- data WeightedLiteral = WeightedLiteral {}
- newtype Backend = Backend (Ptr Backend)
- newtype ProgramBuilder = ProgramBuilder (Ptr ProgramBuilder)
- newtype Configuration = Configuration (Ptr Configuration)
- newtype Statistics = Statistics (Ptr Statistics)
- data GroundProgramObserver a = GroundProgramObserver {
- gpoInitProgram :: FunPtr (CBool -> Ptr a -> IO CBool)
- gpoBeginStep :: FunPtr (Ptr a -> IO CBool)
- gpoEndStep :: FunPtr (Ptr a -> IO CBool)
- gpoRule :: FunPtr (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool)
- gpoWeightRule :: FunPtr (CBool -> Ptr Atom -> CSize -> Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool)
- gpoMinimize :: FunPtr (Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool)
- gpoProject :: FunPtr (Ptr Atom -> CSize -> Ptr a -> IO CBool)
- gpoExternal :: FunPtr (Atom -> ExternalType -> Ptr a -> IO CBool)
- gpoAssume :: FunPtr (Ptr Literal -> CSize -> Ptr a -> IO CBool)
- gpoHeuristic :: FunPtr (Atom -> HeuristicType -> CInt -> CUInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool)
- gpoAcycEdge :: FunPtr (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool)
- gpoTheoryTermNum :: FunPtr (Identifier -> CInt -> Ptr a -> IO CBool)
- gpoTheoryTermStr :: FunPtr (Identifier -> Ptr CChar -> Ptr a -> IO CBool)
- gpoTheoryTermCmp :: FunPtr (Identifier -> CInt -> Ptr Identifier -> CSize -> Ptr a -> IO CBool)
- gpoTheoryElement :: FunPtr (Identifier -> Ptr Identifier -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool)
- gpoTheoryAtom :: FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> IO CBool)
- gpoTheoryAtomGrd :: FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> Identifier -> Identifier -> Ptr a -> IO CBool)
- mkGpoInitProgram :: (CBool -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr a -> IO CBool))
- mkGpoBeginStep :: (Ptr a -> IO CBool) -> IO (FunPtr (Ptr a -> IO CBool))
- mkGpoEndStep :: (Ptr a -> IO CBool) -> IO (FunPtr (Ptr a -> IO CBool))
- mkGpoRule :: (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool))
- mkGpoWeightRule :: (CBool -> Ptr Atom -> CSize -> Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr Atom -> CSize -> Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool))
- mkGpoMinimize :: (Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool))
- mkGpoProject :: (Ptr Atom -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Ptr Atom -> CSize -> Ptr a -> IO CBool))
- mkGpoExternal :: (Atom -> ExternalType -> Ptr a -> IO CBool) -> IO (FunPtr (Atom -> ExternalType -> Ptr a -> IO CBool))
- mkGpoAssume :: (Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Ptr Literal -> CSize -> Ptr a -> IO CBool))
- mkGpoHeuristic :: (Atom -> HeuristicType -> CInt -> CUInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Atom -> HeuristicType -> CInt -> CUInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool))
- mkGpoAcycEdge :: (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool))
- mkGpoTheoryTermNum :: (Identifier -> CInt -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> CInt -> Ptr a -> IO CBool))
- mkGpoTheoryTermStr :: (Identifier -> Ptr CChar -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Ptr CChar -> Ptr a -> IO CBool))
- mkGpoTheoryTermCmp :: (Identifier -> CInt -> Ptr Identifier -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> CInt -> Ptr Identifier -> CSize -> Ptr a -> IO CBool))
- mkGpoTheoryElement :: (Identifier -> Ptr Identifier -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Ptr Identifier -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool))
- mkGpoTheoryAtom :: (Identifier -> Identifier -> Ptr Identifier -> CSize -> IO CBool) -> IO (FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> IO CBool))
- mkGpoTheoryAtomGrd :: (Identifier -> Identifier -> Ptr Identifier -> CSize -> Identifier -> Identifier -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> Identifier -> Identifier -> Ptr a -> IO CBool))
- newtype Control = Control (Ptr Control)
- data Part = Part {}
- type CallbackSymbol a = Ptr Symbol -> CSize -> Ptr a -> IO CBool
- mkCallbackSymbol :: CallbackSymbol a -> IO (FunPtr (CallbackSymbol a))
- getCallbackSymbol :: FunPtr (CallbackSymbol a) -> CallbackSymbol a
- type CallbackGround a = Ptr Location -> Ptr CChar -> Ptr Symbol -> CSize -> Ptr a -> FunPtr (CallbackSymbol a) -> Ptr a -> IO CBool
- mkCallbackGround :: CallbackGround a -> IO (FunPtr (CallbackGround a))
- type CallbackEvent a = SolveEvent -> Ptr Model -> Ptr a -> Ptr CBool -> IO CBool
- mkCallbackEvent :: CallbackEvent a -> IO (FunPtr (CallbackEvent a))
- type CallbackFinish a = SolveResult -> Ptr a -> IO CBool
- mkCallbackFinish :: CallbackFinish a -> IO (FunPtr (CallbackFinish a))
Documentation
Basic types
type Identifier = Word32 Source #
Location | |
|
Symbols
data SymbolicLiteral Source #
Model and Solving
Symbolic and Theory Atoms
type SymbolicAtomIterator = Word64 Source #
Propagators
newtype PropagateControl Source #
type CallbackPropagatorInit a = PropagateInit -> Ptr a -> IO CBool Source #
mkCallbackPropagatorInit :: CallbackPropagatorInit a -> IO (FunPtr (CallbackPropagatorInit a)) Source #
type CallbackPropagatorPropagate a = PropagateControl -> Ptr Literal -> CSize -> Ptr a -> IO CBool Source #
mkCallbackPropagatorPropagate :: CallbackPropagatorPropagate a -> IO (FunPtr (CallbackPropagatorPropagate a)) Source #
type CallbackPropagatorUndo a = PropagateControl -> Ptr Literal -> CSize -> Ptr a -> IO CBool Source #
mkCallbackPropagatorUndo :: CallbackPropagatorUndo a -> IO (FunPtr (CallbackPropagatorUndo a)) Source #
type CallbackPropagatorCheck a = PropagateControl -> Ptr a -> IO CBool Source #
mkCallbackPropagatorCheck :: CallbackPropagatorCheck a -> IO (FunPtr (CallbackPropagatorCheck a)) Source #
Program Builder
data WeightedLiteral Source #
Configuration & Statistics
Program Inspection
data GroundProgramObserver a Source #
mkGpoInitProgram :: (CBool -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr a -> IO CBool)) Source #
mkGpoRule :: (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoWeightRule :: (CBool -> Ptr Atom -> CSize -> Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr Atom -> CSize -> Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoMinimize :: (Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Weight -> Ptr WeightedLiteral -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoProject :: (Ptr Atom -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Ptr Atom -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoExternal :: (Atom -> ExternalType -> Ptr a -> IO CBool) -> IO (FunPtr (Atom -> ExternalType -> Ptr a -> IO CBool)) Source #
mkGpoAssume :: (Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoHeuristic :: (Atom -> HeuristicType -> CInt -> CUInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Atom -> HeuristicType -> CInt -> CUInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoAcycEdge :: (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoTheoryTermNum :: (Identifier -> CInt -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> CInt -> Ptr a -> IO CBool)) Source #
mkGpoTheoryTermStr :: (Identifier -> Ptr CChar -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Ptr CChar -> Ptr a -> IO CBool)) Source #
mkGpoTheoryTermCmp :: (Identifier -> CInt -> Ptr Identifier -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> CInt -> Ptr Identifier -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoTheoryElement :: (Identifier -> Ptr Identifier -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Ptr Identifier -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #
mkGpoTheoryAtom :: (Identifier -> Identifier -> Ptr Identifier -> CSize -> IO CBool) -> IO (FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> IO CBool)) Source #
mkGpoTheoryAtomGrd :: (Identifier -> Identifier -> Ptr Identifier -> CSize -> Identifier -> Identifier -> Ptr a -> IO CBool) -> IO (FunPtr (Identifier -> Identifier -> Ptr Identifier -> CSize -> Identifier -> Identifier -> Ptr a -> IO CBool)) Source #
Control
mkCallbackSymbol :: CallbackSymbol a -> IO (FunPtr (CallbackSymbol a)) Source #
getCallbackSymbol :: FunPtr (CallbackSymbol a) -> CallbackSymbol a Source #
type CallbackGround a = Ptr Location -> Ptr CChar -> Ptr Symbol -> CSize -> Ptr a -> FunPtr (CallbackSymbol a) -> Ptr a -> IO CBool Source #
mkCallbackGround :: CallbackGround a -> IO (FunPtr (CallbackGround a)) Source #
mkCallbackEvent :: CallbackEvent a -> IO (FunPtr (CallbackEvent a)) Source #
type CallbackFinish a = SolveResult -> Ptr a -> IO CBool Source #
mkCallbackFinish :: CallbackFinish a -> IO (FunPtr (CallbackFinish a)) Source #