clingo
|
Preprocesses (i.e. simplifies) a logic program. More...
#include <asp_preprocessor.h>
Public Types | |
enum | EqType { no_eq, full_eq } |
Possible eq-preprocessing types. More... | |
Public Member Functions | |
Preprocessor () | |
const LogicProgram * | program () const |
LogicProgram * | program () |
bool | preprocess (LogicProgram &prg, EqType t, uint32 maxIters, bool dfs=true) |
Starts preprocessing of the logic program. More... | |
bool | eq () const |
Var | getRootAtom (Literal p) const |
void | setRootAtom (Literal p, uint32 atomId) |
Preprocesses (i.e. simplifies) a logic program.
Preprocesses (i.e. simplifies) a logic program and associates variables with the nodes of the simplified logic program.
|
inline |
|
inline |
|
inline |
Starts preprocessing of the logic program.
Computes the maximum consequences of prg and associates a variable with each supported atom and body.
prg | The logic program to preprocess. |
t | Type of eq-preprocessing. |
maxIters | If t == full_eq, maximal number of iterations during eq preprocessing. |
dfs | If t == full_eq, classify in df-order (true) or bf-order (false). |
|
inline |
|
inline |
|
inline |