read_xaiger2: Fix detecting the end of extensions

This commit is contained in:
Martin Povišer 2024-10-04 10:03:30 +02:00
parent 2b1b5652f1
commit 8d12492610
1 changed files with 6 additions and 0 deletions

View File

@ -219,6 +219,8 @@ struct Xaiger2Frontend : public Frontend {
log_assert(pi_num + ci_counter == ci_num);
} else if (c == '\n') {
break;
} else if (c == 'c') {
break;
} else {
uint32_t len = read_be32(*f);
f->ignore(len);
@ -283,6 +285,8 @@ struct Xaiger2Frontend : public Frontend {
}
} else if (c == '\n') {
break;
} else if (c == 'c') {
break;
} else {
uint32_t len = read_be32(*f);
f->ignore(len);
@ -354,6 +358,8 @@ struct Xaiger2Frontend : public Frontend {
log_assert(po_num + co_counter == co_num);
} else if (c == '\n') {
break;
} else if (c == 'c') {
break;
} else {
uint32_t len = read_be32(*f);
f->ignore(len);