mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-11 00:23:26 +00:00
Replace assert in xaiger with more useful error message
This commit is contained in:
parent
26e01a67db
commit
83fc5cc28b
1 changed files with 2 additions and 1 deletions
|
@ -432,7 +432,8 @@ struct XAigerWriter
|
||||||
// that has been padded to its full width
|
// that has been padded to its full width
|
||||||
if (bit == State::Sx)
|
if (bit == State::Sx)
|
||||||
continue;
|
continue;
|
||||||
log_assert(!aig_map.count(bit));
|
if (aig_map.count(bit))
|
||||||
|
log_error("Visited AIG node more than once; this could be a combinatorial loop that has not been broken - see Yosys bug 2530\n");
|
||||||
aig_map[bit] = 2*aig_m;
|
aig_map[bit] = 2*aig_m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue