Clean a bit LiftedWCNF class
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <sstream>
|
||||
|
||||
#include "LiftedWCNF.h"
|
||||
#include "ParfactorList.h"
|
||||
#include "ConstraintTree.h"
|
||||
#include "Indexer.h"
|
||||
|
||||
@@ -11,7 +12,9 @@
|
||||
namespace horus {
|
||||
|
||||
bool
|
||||
Literal::isGround (ConstraintTree constr, LogVarSet ipgLogVars) const
|
||||
Literal::isGround (
|
||||
ConstraintTree constr,
|
||||
const LogVarSet& ipgLogVars) const
|
||||
{
|
||||
if (logVars_.empty()) {
|
||||
return true;
|
||||
@@ -392,6 +395,14 @@ operator<< (std::ostream& os, const LitLvTypes& lit)
|
||||
|
||||
|
||||
|
||||
void
|
||||
LitLvTypes::setAllFullLogVars (void)
|
||||
{
|
||||
std::fill (lvTypes_.begin(), lvTypes_.end(), LogVarType::FULL_LV);
|
||||
}
|
||||
|
||||
|
||||
|
||||
LiftedWCNF::LiftedWCNF (const ParfactorList& pfList)
|
||||
: freeLiteralId_(0), pfList_(pfList)
|
||||
{
|
||||
|
Reference in New Issue
Block a user