Skip to content

Commit

Permalink
test: c1 works with bitwuzla, not with yices
Browse files Browse the repository at this point in the history
(because returned witnesses are not deterministic accross solvers)
  • Loading branch information
ekiwi committed Apr 16, 2024
1 parent 6896413 commit cafdeec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ def test_s2(self):

def test_c1(self):
""" SD-SPI driver from ZipCPU. Missing condition in `if`. Fails after 101 cycles. """
# TODO: why does this fail now?
# fails with yices
self.synth_cannot_repair(zip_cpu_sdspi_dir, "c1", solver="yices2", init="zero", incremental=True, timeout=120)
#changes = self.synth_success(zip_cpu_sdspi_dir, "c1", solver="yices2", init="zero", incremental=True, timeout=120)
#self.assertEqual(changes, 1)
# succeeds with bitwuzla
changes = self.synth_success(zip_cpu_sdspi_dir, "c1", solver="bitwuzla", init="zero", incremental=True, timeout=120)
self.assertEqual(changes, 1)

def test_c3(self):
""" SD-SPI driver from ZipCPU. Missing delay register. Fails after 6 cycles. """
Expand Down

0 comments on commit cafdeec

Please sign in to comment.