mirror of https://github.com/YosysHQ/yosys.git
read_xaiger2: Fix detecting the end of extensions
This commit is contained in:
parent
2b1b5652f1
commit
8d12492610
|
@ -219,6 +219,8 @@ struct Xaiger2Frontend : public Frontend {
|
||||||
log_assert(pi_num + ci_counter == ci_num);
|
log_assert(pi_num + ci_counter == ci_num);
|
||||||
} else if (c == '\n') {
|
} else if (c == '\n') {
|
||||||
break;
|
break;
|
||||||
|
} else if (c == 'c') {
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
uint32_t len = read_be32(*f);
|
uint32_t len = read_be32(*f);
|
||||||
f->ignore(len);
|
f->ignore(len);
|
||||||
|
@ -283,6 +285,8 @@ struct Xaiger2Frontend : public Frontend {
|
||||||
}
|
}
|
||||||
} else if (c == '\n') {
|
} else if (c == '\n') {
|
||||||
break;
|
break;
|
||||||
|
} else if (c == 'c') {
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
uint32_t len = read_be32(*f);
|
uint32_t len = read_be32(*f);
|
||||||
f->ignore(len);
|
f->ignore(len);
|
||||||
|
@ -354,6 +358,8 @@ struct Xaiger2Frontend : public Frontend {
|
||||||
log_assert(po_num + co_counter == co_num);
|
log_assert(po_num + co_counter == co_num);
|
||||||
} else if (c == '\n') {
|
} else if (c == '\n') {
|
||||||
break;
|
break;
|
||||||
|
} else if (c == 'c') {
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
uint32_t len = read_be32(*f);
|
uint32_t len = read_be32(*f);
|
||||||
f->ignore(len);
|
f->ignore(len);
|
||||||
|
|
Loading…
Reference in New Issue