def assertRepr(self, obj, repr_str):
if isinstance(obj, list):
obj = Statement.cast(obj)
+
def prepare_repr(repr_str):
repr_str = re.sub(r"\s+", " ", repr_str)
repr_str = re.sub(r"\( (?=\()", "(", repr_str)
# A mix of BMC and k-induction, as per personal
# communication with Clifford Wolf.
script = "setattr -unset init w:* a:nmigen.sample_reg %d"
- mode = "bmc"
+ mode = "bmc"
else:
script = ""
stdout, stderr = proc.communicate(config)
if proc.returncode != 0:
self.fail("Formal verification failed:\n" + stdout)
-