read_xaiger to cope with optional '\n' after 'c'

This commit is contained in:
Eddie Hung 2019-12-17 15:43:21 -08:00
parent e82a9bc642
commit 0875a07871
1 changed files with 2 additions and 2 deletions

View File

@ -379,8 +379,8 @@ void AigerReader::parse_xaiger(const dict<int,IdString> &box_lookup)
int c = f.get();
if (c != 'c')
log_error("Line %u: cannot interpret first character '%c'!\n", line_count, c);
c = f.get();
log_assert(c == '\n');
if (f.peek() == '\n')
f.get();
// Parse footer (symbol table, comments, etc.)
std::string s;