Skip to content

Commit

Permalink
read_aiger: Fix incorrect read of binary Aiger without outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Apr 26, 2024
1 parent 34d9a74 commit 3dbc520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontends/aiger/aigerparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ void AigerReader::parse_aiger_binary()
module->connect(wire, createWireIfNotExists(module, l1));
outputs.push_back(wire);
}
std::getline(f, line); // Ignore up to start of next line
if (O > 0)
std::getline(f, line); // Ignore up to start of next line

// Parse bad properties
for (unsigned i = 0; i < B; ++i, ++line_count) {
Expand Down

0 comments on commit 3dbc520

Please sign in to comment.