handle state names of $anyconst and $anyseq
authorMiodrag Milanovic <mmicko@gmail.com>
Fri, 11 Mar 2022 13:04:02 +0000 (14:04 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 11 Mar 2022 13:04:02 +0000 (14:04 +0100)
backends/btor/btor.cc

index d62cc4c3dfb5956f21ddc39d292a57f3456d32e6..e0283da8aea318842e712951d66296494dd3974b 100644 (file)
@@ -678,7 +678,11 @@ struct BtorWorker
                        int sid = get_bv_sid(GetSize(sig_y));
                        int nid = next_nid++;
 
-                       btorf("%d state %d\n", nid, sid);
+                       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");
 
                        if (cell->type == ID($anyconst)) {
                                int nid2 = next_nid++;