Update backends/btor/btor.cc; credit @boqwxp

Co-Authored-By: Alberto Gonzalez <[email protected]>
This commit is contained in:
Eddie Hung
2020-04-02 07:14:08 -07:00
co-authored by Alberto Gonzalez
parent 6d4f01c3fa
commit dde3dfd72e
+1 -2
View File
@@ -433,8 +433,7 @@ struct BtorWorker
if (cell->type == "$neg") btor_op = "neg";
log_assert(!btor_op.empty());
int width = GetSize(cell->getPort(ID::Y));
width = std::max(width, GetSize(cell->getPort(ID::A)));
int width = std::max(GetSize(cell->getPort(ID::A)), GetSize(cell->getPort(ID::Y)));
bool a_signed = cell->hasParam("\\A_SIGNED") ? cell->getParam("\\A_SIGNED").as_bool() : false;