mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-11 13:40:53 +00:00
Fix build for gcc
This commit is contained in:
parent
a6e22671bb
commit
831f857681
1 changed files with 5 additions and 5 deletions
|
@ -1476,7 +1476,7 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {
|
||||||
int64_t nvars = 1;
|
int64_t nvars = 1;
|
||||||
int64_t ngates = 0;
|
int64_t ngates = 0;
|
||||||
|
|
||||||
mfp<Lit> mfp;
|
mfp<Lit> mfp_;
|
||||||
|
|
||||||
Lit emit_gate(Lit a, Lit b)
|
Lit emit_gate(Lit a, Lit b)
|
||||||
{
|
{
|
||||||
|
@ -1488,8 +1488,8 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {
|
||||||
|
|
||||||
ngates++;
|
ngates++;
|
||||||
Lit ret = ++nvars;
|
Lit ret = ++nvars;
|
||||||
mfp.merge(ret, a);
|
mfp_.merge(ret, a);
|
||||||
mfp.merge(ret, b);
|
mfp_.merge(ret, b);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1528,8 +1528,8 @@ struct Partitioning : Index<Partitioning, int64_t, -1, 1> {
|
||||||
|
|
||||||
dict<Lit, int> partition_sizes;
|
dict<Lit, int> partition_sizes;
|
||||||
|
|
||||||
for (Lit var : mfp)
|
for (Lit var : mfp_)
|
||||||
partition_sizes[mfp.lookup(var)]++;
|
partition_sizes[mfp_.lookup(var)]++;
|
||||||
|
|
||||||
std::vector<int> sorted;
|
std::vector<int> sorted;
|
||||||
for (auto pair : partition_sizes)
|
for (auto pair : partition_sizes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue