mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-15 14:11:29 +00:00
Only allow "sat" and "unsat" smt solver responses in yosys-smtbmc
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
This commit is contained in:
parent
be6638e55b
commit
a207cb362c
2 changed files with 4 additions and 4 deletions
|
@ -1275,10 +1275,10 @@ def smt_pop():
|
|||
asserts_consequent_cache.pop()
|
||||
smt.write("(pop 1)")
|
||||
|
||||
def smt_check_sat():
|
||||
def smt_check_sat(expected=["sat", "unsat"]):
|
||||
if asserts_cache_dirty:
|
||||
smt_forall_assert()
|
||||
return smt.check_sat()
|
||||
return smt.check_sat(expected=expected)
|
||||
|
||||
if tempind:
|
||||
retstatus = "FAILED"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue