clingo
|
Base class for preprocessors working on clauses only. More...
#include <shared_context.h>
Classes | |
class | Clause |
A clause class optimized for preprocessing. More... | |
struct | Stats |
Public Types | |
typedef SatPreParams | Options |
Public Member Functions | |
SatPreprocessor () | |
virtual | ~SatPreprocessor () |
virtual SatPreprocessor * | clone ()=0 |
Creates a clone of this preprocessor. More... | |
uint32 | numClauses () const |
bool | addClause (const LitVec &cl) |
Adds a clause to the preprocessor. More... | |
bool | addClause (const Literal *clause, uint32 size) |
bool | preprocess (SharedContext &ctx, SatPreParams &opts) |
Runs the preprocessor on all clauses that were previously added. More... | |
bool | preprocess (SharedContext &ctx) |
void | cleanUp (bool discardEliminated=false) |
Force removal of state & clauses. More... | |
void | extendModel (ValueVec &m, LitVec &open) |
Extends the model in m with values for any eliminated variables. More... | |
Public Attributes | |
struct Clasp::SatPreprocessor::Stats | stats |
Protected Types | |
typedef PodVector< Clause * >::type | ClauseList |
Protected Member Functions | |
virtual bool | initPreprocess (SatPreParams &opts)=0 |
virtual bool | doPreprocess ()=0 |
virtual void | doExtendModel (ValueVec &m, LitVec &open)=0 |
virtual void | doCleanUp ()=0 |
Clause * | clause (uint32 clId) |
const Clause * | clause (uint32 clId) const |
void | freezeSeen () |
void | discardClauses (bool discardEliminated) |
void | setClause (uint32 clId, const LitVec &cl) |
void | destroyClause (uint32 clId) |
void | eliminateClause (uint32 id) |
Protected Attributes | |
SharedContext * | ctx_ |
Clause * | elimTop_ |
Base class for preprocessors working on clauses only.
|
protected |
|
inline |
|
virtual |
|
inline |
Adds a clause to the preprocessor.
bool Clasp::SatPreprocessor::addClause | ( | const Literal * | clause, |
uint32 | size | ||
) |
|
inlineprotected |
|
inlineprotected |
void Clasp::SatPreprocessor::cleanUp | ( | bool | discardEliminated = false | ) |
Force removal of state & clauses.
|
pure virtual |
Creates a clone of this preprocessor.
Implemented in Clasp::SatElite::SatElite.
|
inlineprotected |
|
protected |
|
protectedpure virtual |
Implemented in Clasp::SatElite::SatElite.
|
protectedpure virtual |
Implemented in Clasp::SatElite::SatElite.
|
protectedpure virtual |
Implemented in Clasp::SatElite::SatElite.
|
inlineprotected |
Extends the model in m with values for any eliminated variables.
|
protected |
|
protectedpure virtual |
Implemented in Clasp::SatElite::SatElite.
|
inline |
bool Clasp::SatPreprocessor::preprocess | ( | SharedContext & | ctx, |
SatPreParams & | opts | ||
) |
Runs the preprocessor on all clauses that were previously added.
bool Clasp::SatPreprocessor::preprocess | ( | SharedContext & | ctx | ) |
|
inlineprotected |
|
protected |
|
protected |
struct Clasp::SatPreprocessor::Stats Clasp::SatPreprocessor::stats |