btor: Use is_mem_cell in one more place.
authorMarcelina Kościelnicka <mwk@0x04.net>
Sun, 23 May 2021 16:08:34 +0000 (18:08 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Sun, 23 May 2021 18:34:52 +0000 (20:34 +0200)
backends/btor/btor.cc

index 936cb20fb63e519c35d88dfdb8b64e86eed2274d..bc0504d6479d4b6ddcba10b65f9b14cbb7ba98f5 100644 (file)
@@ -1083,7 +1083,7 @@ struct BtorWorker
                for (auto &mem : memories)
                        mem_dict[mem.memid] = &mem;
                for (auto cell : module->cells())
-                       if (cell->type.in(ID($mem), ID($memwr), ID($memrd), ID($meminit)))
+                       if (cell->is_mem_cell())
                                mem_cells[cell] = mem_dict[cell->parameters.at(ID::MEMID).decode_string()];
 
                btorf_push("inputs");