mirror of
https://github.com/YosysHQ/sby.git
synced 2025-10-07 02:01:57 +00:00
Merge pull request #340 from YosysHQ/krys/fix_338
This commit is contained in:
commit
dbbc25a139
2 changed files with 41 additions and 2 deletions
|
@ -203,7 +203,7 @@ def run(mode, task, engine_idx, engine):
|
||||||
match = re.match(r"^Proved output +([0-9]+) in frame +-?[0-9]+", line)
|
match = re.match(r"^Proved output +([0-9]+) in frame +-?[0-9]+", line)
|
||||||
if match:
|
if match:
|
||||||
output = int(match[1])
|
output = int(match[1])
|
||||||
prop = aiger_props[output]
|
prop = aiger_props[output] if aiger_props else None
|
||||||
if prop:
|
if prop:
|
||||||
prop.status = "PASS"
|
prop.status = "PASS"
|
||||||
task.summary.add_event(
|
task.summary.add_event(
|
||||||
|
@ -232,7 +232,7 @@ def run(mode, task, engine_idx, engine):
|
||||||
disproved_count = int(match[3])
|
disproved_count = int(match[3])
|
||||||
undecided_count = int(match[4])
|
undecided_count = int(match[4])
|
||||||
if (
|
if (
|
||||||
all_count != len(aiger_props) or
|
(aiger_props and all_count != len(aiger_props)) or
|
||||||
all_count != proved_count + disproved_count + undecided_count or
|
all_count != proved_count + disproved_count + undecided_count or
|
||||||
disproved_count != len(disproved) or
|
disproved_count != len(disproved) or
|
||||||
proved_count != len(proved)
|
proved_count != len(proved)
|
||||||
|
@ -246,6 +246,9 @@ def run(mode, task, engine_idx, engine):
|
||||||
else:
|
else:
|
||||||
proc_status = "FAIL"
|
proc_status = "FAIL"
|
||||||
|
|
||||||
|
match = re.match("Error: (Does not work|Only works) for (sequential|combinational) networks.", line)
|
||||||
|
if match: proc_status = "ERROR"
|
||||||
|
|
||||||
return line
|
return line
|
||||||
|
|
||||||
def exit_callback(retcode):
|
def exit_callback(retcode):
|
||||||
|
|
36
tests/unsorted/no_props.sby
Normal file
36
tests/unsorted/no_props.sby
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
[tasks]
|
||||||
|
abc prove
|
||||||
|
abc_keepgoing prove
|
||||||
|
btor_cover cover
|
||||||
|
|
||||||
|
# "Error: Does not work for combinational networks."
|
||||||
|
abc_bmc3 bmc error
|
||||||
|
# "Error: Only works for sequential networks."
|
||||||
|
abc_sim3 bmc error
|
||||||
|
# "Property index 0 is greater than the number of properties in file model/design_btor_single.btor (0)"
|
||||||
|
btor_pono bmc error
|
||||||
|
|
||||||
|
[options]
|
||||||
|
prove: mode prove
|
||||||
|
bmc: mode bmc
|
||||||
|
cover: mode cover
|
||||||
|
error: expect ERROR
|
||||||
|
|
||||||
|
[engines]
|
||||||
|
abc: abc pdr
|
||||||
|
abc_keepgoing: abc --keep-going pdr
|
||||||
|
btor_pono: btor pono
|
||||||
|
btor_cover: btor btormc
|
||||||
|
abc_bmc3: abc bmc3
|
||||||
|
abc_sim3: abc sim3
|
||||||
|
|
||||||
|
[script]
|
||||||
|
read -sv test.sv
|
||||||
|
prep -top top
|
||||||
|
|
||||||
|
[file test.sv]
|
||||||
|
module top(input i, output o);
|
||||||
|
|
||||||
|
assign o = ~i;
|
||||||
|
|
||||||
|
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue