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();
|
int c = f.get();
|
||||||
if (c != 'c')
|
if (c != 'c')
|
||||||
log_error("Line %u: cannot interpret first character '%c'!\n", line_count, c);
|
log_error("Line %u: cannot interpret first character '%c'!\n", line_count, c);
|
||||||
c = f.get();
|
if (f.peek() == '\n')
|
||||||
log_assert(c == '\n');
|
f.get();
|
||||||
|
|
||||||
// Parse footer (symbol table, comments, etc.)
|
// Parse footer (symbol table, comments, etc.)
|
||||||
std::string s;
|
std::string s;
|
||||||
|
|
Loading…
Reference in New Issue