Skip to content

Commit

Permalink
Merge pull request #3889 from povik/cellaigs-fix-gcc9-build
Browse files Browse the repository at this point in the history
cellaigs: Drop initializer list in call to `IdString::in`
  • Loading branch information
mmicko authored Aug 14, 2023
2 parents 008b725 + 6d9cd16 commit 3162004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/cellaigs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,17 @@ Aig::Aig(Cell *cell)
goto optimize;
}

if (cell->type.in({ID($lt), ID($gt), ID($le), ID($ge)}))
if (cell->type.in(ID($lt), ID($gt), ID($le), ID($ge)))
{
int width = std::max(GetSize(cell->getPort(ID::A)),
GetSize(cell->getPort(ID::B))) + 1;
vector<int> A = mk.inport_vec(ID::A, width);
vector<int> B = mk.inport_vec(ID::B, width);

if (cell->type.in({ID($gt), ID($ge)}))
if (cell->type.in(ID($gt), ID($ge)))
std::swap(A, B);

int carry = mk.bool_node(!cell->type.in({ID($le), ID($ge)}));
int carry = mk.bool_node(!cell->type.in(ID($le), ID($ge)));
for (auto &n : B)
n = mk.not_gate(n);
vector<int> Y = mk.adder(A, B, carry);
Expand Down

0 comments on commit 3162004

Please sign in to comment.