Fix handling of some formal cells in btor back-end
authorClaire Xenia Wolf <claire@clairexen.net>
Fri, 11 Mar 2022 13:21:12 +0000 (14:21 +0100)
committerClaire Xenia Wolf <claire@clairexen.net>
Fri, 11 Mar 2022 13:21:12 +0000 (14:21 +0100)
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
backends/btor/btor.cc

index e0283da8aea318842e712951d66296494dd3974b..73e88c049b69cfe2555d2b2910a6cae1003dce07 100644 (file)
@@ -678,11 +678,7 @@ struct BtorWorker
                        int sid = get_bv_sid(GetSize(sig_y));
                        int nid = next_nid++;
 
-                       btorf("%d state %d", nid, sid);
-                       if (sig_y.is_wire() && sig_y.as_wire()->name.c_str()[0]!='$')
-                               btorf(" %s\n", log_id(sig_y.as_wire()));
-                       else
-                               btorf("\n");
+                       btorf("%d state %d%s\n", nid, sid, getinfo(cell).c_str());
 
                        if (cell->type == ID($anyconst)) {
                                int nid2 = next_nid++;
@@ -703,7 +699,7 @@ struct BtorWorker
                                int one_nid = get_sig_nid(State::S1);
                                int zero_nid = get_sig_nid(State::S0);
                                initstate_nid = next_nid++;
-                               btorf("%d state %d\n", initstate_nid, sid);
+                               btorf("%d state %d%s\n", initstate_nid, sid, getinfo(cell).c_str());
                                btorf("%d init %d %d %d\n", next_nid++, sid, initstate_nid, one_nid);
                                btorf("%d next %d %d %d\n", next_nid++, sid, initstate_nid, zero_nid);
                        }