mirror of https://github.com/YosysHQ/yosys.git
read_xaiger to cope with optional '\n' after 'c'
This commit is contained in:
parent
e82a9bc642
commit
0875a07871
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue