mirror of https://github.com/YosysHQ/yosys.git
smtbmc: Make cover mode respect --keep-going
As cover mode by default stops looking for further traces when an assertion fails, it should respect --keep-going.
This commit is contained in:
parent
f9257d3192
commit
f9744fdfcd
|
@ -174,6 +174,8 @@ def help():
|
|||
further failed assertions. To output multiple traces
|
||||
covering all found failed assertions, the character '%' is
|
||||
replaced in all dump filenames with an increasing number.
|
||||
In cover mode, don't stop when a cover trace contains a failed
|
||||
assertion.
|
||||
|
||||
--check-witness
|
||||
check that the used witness file contains sufficient
|
||||
|
@ -1739,7 +1741,7 @@ elif covermode:
|
|||
smt_pop()
|
||||
smt.write("(define-fun covers_%d ((state |%s_s|)) (_ BitVec %d) (bvand (covers_%d state) #b%s))" % (coveridx, topmod, len(cover_desc), coveridx-1, cover_mask))
|
||||
|
||||
if found_failed_assert:
|
||||
if found_failed_assert and not keep_going:
|
||||
break
|
||||
|
||||
if "1" not in cover_mask:
|
||||
|
|
Loading…
Reference in New Issue