From d340f302f6255b6aedcf8351a6374b34889edbbc Mon Sep 17 00:00:00 2001 From: Claire Xenia Wolf Date: Fri, 11 Mar 2022 14:21:12 +0100 Subject: [PATCH] Fix handling of some formal cells in btor back-end Signed-off-by: Claire Xenia Wolf --- backends/btor/btor.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backends/btor/btor.cc b/backends/btor/btor.cc index e0283da8a..73e88c049 100644 --- a/backends/btor/btor.cc +++ b/backends/btor/btor.cc @@ -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); } -- 2.30.2