Cosmetic fixes

This commit is contained in:
Tiago Gomes
2012-12-27 12:54:58 +00:00
parent 8bdcb65907
commit cbea630fbf
39 changed files with 106 additions and 138 deletions

View File

@@ -3,8 +3,6 @@
#include <cassert>
#include <iostream>
#include "Util.h"
#include "Horus.h"
@@ -14,7 +12,8 @@ using namespace std;
struct VarInfo
{
VarInfo (string l, const States& sts) : label(l), states(sts) { }
VarInfo (string l, const States& sts)
: label(l), states(sts) { }
string label;
States states;
};
@@ -55,8 +54,7 @@ class Var
bool operator!= (const Var& var) const
{
assert (!(varId_ == var.varId() && range_ != var.range()));
return varId_ != var.varId();
return !(*this == var);
}
bool isValidState (int);
@@ -86,7 +84,7 @@ class Var
static bool varsHaveInfo (void)
{
return varsInfo_.size() != 0;
return varsInfo_.empty() == false;
}
static void clearVarsInfo (void)