Skip to content

Commit 497d1a8

Browse files
Guillermo PérezGuillermo Pérez
authored andcommitted
changes
1 parent 5abf243 commit 497d1a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/aig.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,13 @@ std::vector<BDD> BDDAIG::mergeSomeSignals(BDD cube,
962962
dep_next += 2;
963963
bdd_next += 2;
964964
}
965+
// if dep_it is not dep_vector.end() and yet we're here, the number of
966+
// subgames was odd and we need to add the last game back into the list
967+
if (dep_it != dep_vector.end()) {
968+
new_dep_vector.push_back(*dep_it);
969+
new_bdd_vector.push_back(*bdd_it);
970+
}
971+
// now we update our vectors/lists
965972
dep_vector = new_dep_vector;
966973
bdd_vector = new_bdd_vector;
967974
}

0 commit comments

Comments
 (0)