From 0c0784b6bfa41274d6b9fcd64c4fb061489dd798 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 4 Feb 2017 18:17:08 +0100 Subject: Partially implement cover() support in yosys-smtbmc --- backends/smt2/smtio.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backends/smt2/smtio.py') diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index 3946c3423..dda804efb 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -42,6 +42,7 @@ class SmtModInfo: self.wsize = dict() self.cells = dict() self.asserts = dict() + self.covers = dict() self.anyconsts = dict() @@ -331,6 +332,9 @@ class SmtIo: if fields[1] == "yosys-smt2-assert": self.modinfo[self.curmod].asserts[fields[2]] = fields[3] + if fields[1] == "yosys-smt2-cover": + self.modinfo[self.curmod].covers[fields[2]] = fields[3] + if fields[1] == "yosys-smt2-anyconst": self.modinfo[self.curmod].anyconsts[fields[2]] = fields[3] -- cgit v1.2.3