mirror of
https://github.com/YosysHQ/sby.git
synced 2026-06-30 00:28:54 +00:00
catch subprocess crash as error
This commit is contained in:
parent
c4ed754ff8
commit
29650804c1
2 changed files with 8 additions and 0 deletions
|
|
@ -138,6 +138,11 @@ def run(mode, task, engine_idx, engine):
|
|||
proc_status = "FAIL"
|
||||
return None
|
||||
|
||||
if solver_args[0] == "rIC3":
|
||||
match = re.match(r".*all workers unexpectedly exited.*", line)
|
||||
if match:
|
||||
proc_status = "ERROR"
|
||||
|
||||
if proc_status is not None:
|
||||
if not end_of_cex and not produced_cex and line.isdigit():
|
||||
produced_cex = True
|
||||
|
|
|
|||
|
|
@ -287,6 +287,9 @@ def run(mode, task, engine_idx, engine):
|
|||
match = re.match(r".*bmc found counter-example in depth (\d+).*", line)
|
||||
if match:
|
||||
common_state.current_step = int(match[1])
|
||||
match = re.match(r".*all workers unexpectedly exited.*", line)
|
||||
if match:
|
||||
common_state.solver_status = "error"
|
||||
if line == "UNSAT":
|
||||
if common_state.solver_status is None:
|
||||
common_state.solver_status = "unsat"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue