mirror of https://github.com/YosysHQ/abc.git
up stream changes
This commit is contained in:
parent
161963a32b
commit
34c2ed73a2
|
|
@ -780,10 +780,34 @@ namespace NewBdd {
|
||||||
for(size_t i = 0; i < vLits.size(); i++)
|
for(size_t i = 0; i < vLits.size(); i++)
|
||||||
IncRef(vLits[i]);
|
IncRef(vLits[i]);
|
||||||
}
|
}
|
||||||
|
void RemoveRefIfUnused() {
|
||||||
|
if(!nGbc && nReo == BvarMax())
|
||||||
|
vRefs.clear();
|
||||||
|
}
|
||||||
|
void TurnOnReo(int nReo_ = 0, std::vector<lit> const *vLits = NULL) {
|
||||||
|
if(nReo_)
|
||||||
|
nReo = nReo_;
|
||||||
|
else
|
||||||
|
nReo = nObjs << 1;
|
||||||
|
if((lit)nReo > (lit)BvarMax())
|
||||||
|
nReo = BvarMax();
|
||||||
|
if(vRefs.empty()) {
|
||||||
|
if(vLits)
|
||||||
|
SetRef(*vLits);
|
||||||
|
else
|
||||||
|
vRefs.resize(nObjsAlloc);
|
||||||
|
}
|
||||||
|
}
|
||||||
void TurnOffReo() {
|
void TurnOffReo() {
|
||||||
nReo = BvarMax();
|
nReo = BvarMax();
|
||||||
if(!nGbc)
|
}
|
||||||
vRefs.clear();
|
var GetNumVars() const {
|
||||||
|
return nVars;
|
||||||
|
}
|
||||||
|
void GetOrdering(std::vector<int> &Var2Level_) {
|
||||||
|
Var2Level_.resize(nVars);
|
||||||
|
for(var v = 0; v < nVars; v++)
|
||||||
|
Var2Level_[v] = Var2Level[v];
|
||||||
}
|
}
|
||||||
bvar CountNodes() {
|
bvar CountNodes() {
|
||||||
bvar count = 1;
|
bvar count = 1;
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ namespace NewTt {
|
||||||
bool fCountOnes;
|
bool fCountOnes;
|
||||||
int nGbc;
|
int nGbc;
|
||||||
int nReo; // dummy
|
int nReo; // dummy
|
||||||
|
std::vector<int> *pVar2Level; // dummy
|
||||||
Param() {
|
Param() {
|
||||||
nObjsAllocLog = 15;
|
nObjsAllocLog = 15;
|
||||||
nObjsMaxLog = 20;
|
nObjsMaxLog = 20;
|
||||||
|
|
@ -261,10 +262,14 @@ namespace NewTt {
|
||||||
for(size_t i = 0; i < vLits.size(); i++)
|
for(size_t i = 0; i < vLits.size(); i++)
|
||||||
IncRef(vLits[i]);
|
IncRef(vLits[i]);
|
||||||
}
|
}
|
||||||
void TurnOffReo() {
|
void RemoveRefIfUnused() {
|
||||||
if(!nGbc)
|
if(!nGbc)
|
||||||
vRefs.clear();
|
vRefs.clear();
|
||||||
}
|
}
|
||||||
|
void TurnOffReo() {}
|
||||||
|
int GetNumVars() const {
|
||||||
|
return nVars;
|
||||||
|
}
|
||||||
void PrintNode(lit x) const {
|
void PrintNode(lit x) const {
|
||||||
bvar a = Lit2Bvar(x);
|
bvar a = Lit2Bvar(x);
|
||||||
word c = LitIsCompl(x)? one(): 0;
|
word c = LitIsCompl(x)? one(): 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue