smt2, btor: Use memory_map -rom-only to make ROMs usable for k-induction
authorJannis Harder <me@jix.one>
Fri, 17 Jun 2022 15:23:13 +0000 (17:23 +0200)
committerJannis Harder <me@jix.one>
Fri, 17 Jun 2022 15:23:13 +0000 (17:23 +0200)
This avoids provability regressions now that we infer more ROMs.

This fixes #3378

backends/btor/btor.cc
backends/smt2/smt2.cc

index 7de5deadd71b089d92a654dd6f7445113fdd4273..5be9bf324c33e18c96cb07e15f182a7c2062e1ea 100644 (file)
@@ -1402,6 +1402,7 @@ struct BtorBackend : public Backend {
                log_header(design, "Executing BTOR backend.\n");
 
                log_push();
+               Pass::call(design, "memory_map -rom-only");
                Pass::call(design, "bmuxmap");
                Pass::call(design, "demuxmap");
                log_pop();
index 7481e0510559dabfe6282f26c55aed0ca9b7ef8e..6e70f904311b72d6920f31c772fa7a7bdd686062 100644 (file)
@@ -1609,6 +1609,7 @@ struct Smt2Backend : public Backend {
                log_header(design, "Executing SMT2 backend.\n");
 
                log_push();
+               Pass::call(design, "memory_map -rom-only");
                Pass::call(design, "bmuxmap");
                Pass::call(design, "demuxmap");
                log_pop();