Drive-by modernization in sat.cc

Signed-off-by: Claire Wolf <claire@symbioticeda.com>
This commit is contained in:
Claire Wolf 2020-06-09 21:49:43 +02:00
parent 3c7122c378
commit 0bd70e8222
1 changed files with 4 additions and 4 deletions

View File

@ -256,13 +256,13 @@ struct SatHelper
{
RTLIL::SigSpec big_lhs, big_rhs;
for (auto &it : module->wires_)
for (auto wire : module->wires())
{
if (it.second->attributes.count(ID::init) == 0)
if (wire->attributes.count(ID::init) == 0)
continue;
RTLIL::SigSpec lhs = sigmap(it.second);
RTLIL::SigSpec rhs = it.second->attributes.at(ID::init);
RTLIL::SigSpec lhs = sigmap(wire);
RTLIL::SigSpec rhs = wire->attributes.at(ID::init);
log_assert(lhs.size() == rhs.size());
RTLIL::SigSpec removed_bits;