Revert "Only xaig if GetSize(output_bits) > 0"

This reverts commit 7b646101e9.
This commit is contained in:
Eddie Hung 2019-08-20 21:22:38 -07:00
parent 7b646101e9
commit 4d123b7638
1 changed files with 151 additions and 153 deletions

View File

@ -575,7 +575,6 @@ struct XAigerWriter
f << "c";
if (GetSize(output_bits) > 0) {
auto write_buffer = [](std::stringstream &buffer, int i32) {
int32_t i32_be = to_big_endian(i32);
buffer.write(reinterpret_cast<const char*>(&i32_be), sizeof(i32_be));
@ -745,7 +744,6 @@ struct XAigerWriter
//buffer_size_be = to_big_endian(buffer_str.size());
//f.write(reinterpret_cast<const char*>(&buffer_size_be), sizeof(buffer_size_be));
//f.write(buffer_str.data(), buffer_str.size());
}
f << stringf("Generated by %s\n", yosys_version_str);
}