IPG: verify that the root log vars appear in the same positions

This commit is contained in:
Tiago Gomes
2012-11-06 23:35:14 +00:00
parent 1e38743462
commit 06a59ad659
4 changed files with 52 additions and 26 deletions

View File

@@ -34,6 +34,8 @@ class Literal
LogVars logVars (void) const { return logVars_; }
LogVarSet logVarSet (void) const { return LogVarSet (logVars_); }
size_t nrLogVars (void) const { return logVars_.size(); }
void negate (void) { negated_ = !negated_; }
@@ -42,6 +44,8 @@ class Literal
bool isNegative (void) const { return negated_; }
bool isGround (ConstraintTree constr, LogVarSet ipgLogVars) const;
size_t indexOfLogVar (LogVar X) const;
string toString (LogVarSet ipgLogVars = LogVarSet(),
LogVarSet posCountedLvs = LogVarSet(),