Skip to content

Commit 1c6e928

Browse files
Fix up AIG::eval
1 parent 548b30b commit 1c6e928

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

models/abc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace ecolab {
101101
assert(numOutputs()==1);
102102
std::vector<I> workspace(Abc_NtkObjNumMax(aig));
103103
for (unsigned i=0; i<numInputs(); ++i)
104-
workspace[abc::Abc_ObjId(&input(i))]=input[i];
104+
workspace[abc::Abc_ObjId(&this->input(i))]=input[i];
105105
AbcNodes orderedNodes(aig);
106106
for (auto obj: orderedNodes)
107107
if (obj)
@@ -113,7 +113,7 @@ namespace ecolab {
113113
if (abc::Abc_ObjFaninC1(obj)) v1 = ~v1;
114114
workspace[abc::Abc_ObjId(obj)] = v0 & v1;
115115
}
116-
auto r=workspace[abc::Abc_ObjId(&output(0))];
116+
auto r=workspace[abc::Abc_ObjFaninId0(&output(0))];
117117
return abc::Abc_ObjFaninC0(&output(0))? ~r: r;
118118
}
119119
};

0 commit comments

Comments
 (0)