Clean a bit LiftedWCNF class

This commit is contained in:
Tiago Gomes
2013-02-08 12:12:45 +00:00
parent bff56c75ca
commit 264ef7a067
2 changed files with 27 additions and 19 deletions

View File

@@ -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)
{