Skip to content

Commit

Permalink
Fix build for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jan 8, 2025
1 parent a6e2267 commit 831f857
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backends/aiger2/aiger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {
int64_t nvars = 1;
int64_t ngates = 0;

mfp<Lit> mfp;
mfp<Lit> mfp_;

Lit emit_gate(Lit a, Lit b)
{
Expand All @@ -1488,8 +1488,8 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {

ngates++;
Lit ret = ++nvars;
mfp.merge(ret, a);
mfp.merge(ret, b);
mfp_.merge(ret, a);
mfp_.merge(ret, b);
return ret;
}

Expand Down Expand Up @@ -1528,8 +1528,8 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {

dict<Lit, int> partition_sizes;

for (Lit var : mfp)
partition_sizes[mfp.lookup(var)]++;
for (Lit var : mfp_)
partition_sizes[mfp_.lookup(var)]++;

std::vector<int> sorted;
for (auto pair : partition_sizes)
Expand Down

0 comments on commit 831f857

Please sign in to comment.