Skip to content

additional tests for the SVA->Büchi flow #1174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions regression/ebmc-spot/sva-buechi/cycle_delay_star1.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KNOWNBUG
../../verilog/SVA/cycle_delay_star1.sv
--buechi --bdd
^\[main.p0\] ##\[\*\] main\.x == 2 ##1 main\.x == 3: PROVED$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
This gives the wrong answer.
10 changes: 10 additions & 0 deletions regression/ebmc-spot/sva-buechi/cycle_delay_star1.bmc.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KNOWNBUG
../../verilog/SVA/cycle_delay_star1.sv
--buechi --bound 10
^\[main.p0\] ##\[\*\] main\.x == 2 ##1 main\.x == 3: PROVED up to bound 10$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
This gives the wrong answer.
13 changes: 13 additions & 0 deletions regression/ebmc-spot/sva-buechi/disable_iff1.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
KNOWNBUG
../../verilog/SVA/disable_iff1.sv
--buechi --module main --bdd --numbered-trace
^\[main\.p0\] always \(disable iff \(main.counter == 0\) main\.counter != 0\): PROVED$
^\[main\.p1\] always \(disable iff \(1\) 0\): PROVED$
^\[main\.p2\] always \(disable iff \(main\.counter == 1\) main\.counter == 0\): REFUTED$
^Counterexample with 3 states:$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
The trace is missing.
10 changes: 10 additions & 0 deletions regression/ebmc-spot/sva-buechi/if1.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CORE
../../verilog/SVA/if1.sv
--buechi --bdd
^\[main\.p0\] always \(if\(main\.counter == 0\) nexttime main\.counter == 1\): PROVED$
^\[main\.p1\] always \(if\(main\.counter == 0\) nexttime main\.counter == 1 else nexttime main\.counter == 3\): REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
17 changes: 17 additions & 0 deletions regression/ebmc-spot/sva-buechi/issue669.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CORE
../../verilog/SVA/issue669.sv
--buechi --bound 5 --top top
\[top\.assert\.1\] always not s_eventually 0: PROVED up to bound 5$
\[top\.assert\.2\] always \(\(top\.a until_with top\.b\) implies \(not \(\(not top\.b\) s_until \(not top\.a\)\)\)\): PROVED up to bound 5$
\[top\.assert\.3\] always \(\(not \(\(not top\.b\) s_until \(not top\.a\)\)\) implies \(top\.a until_with top\.b\)\): PROVED up to bound 5$
\[top\.assert\.4\] always \(\(top\.a until_with top\.b\) implies \(top\.a until \(top\.a and top\.b\)\)\): PROVED up to bound 5$
\[top\.assert\.5\] always \(\(top\.a until \(top\.a and top\.b\)\) implies \(top\.a until_with top\.b\)\): PROVED up to bound 5$
\[top\.assert\.6\] always \(\(s_eventually top\.a\) implies \(1 s_until top\.a\)\): PROVED up to bound 5$
\[top\.assert\.7\] always \(\(1 s_until top\.a\) implies \(s_eventually top\.a\)\): PROVED up to bound 5$
\[top\.assert\.8\] always \(\(top\.a s_until top\.b\) implies \(\(s_eventually top\.b\) and \(top\.a until top\.b\)\)\): PROVED up to bound 5$
\[top\.assert\.9\] always \(\(\(s_eventually top\.b\) and \(top\.a until top\.b\)\) implies \(top\.a s_until top\.b\)\): PROVED up to bound 5$
^EXIT=0$
^SIGNAL=0$
--
--
https://github.com/diffblue/hw-cbmc/issues/669
11 changes: 11 additions & 0 deletions regression/ebmc-spot/sva-buechi/s_eventually2.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
KNOWNBUG
../../verilog/SVA/s_eventually2.sv
--buechi --module main --bdd
^\[main\.p0\] always s_eventually main.reset \|\| main\.counter == 10: PROVED up to bound 20$
^\[main\.p1\] always \(s_eventually \[0:2\] main.reset \|\| main\.counter == 10\): REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
This gives the wrong answer for main.p0.
11 changes: 11 additions & 0 deletions regression/ebmc-spot/sva-buechi/s_eventually2.bmc.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
KNOWNBUG
../../verilog/SVA/s_eventually2.sv
--buechi --module main --bound 20
^\[main\.p0\] always s_eventually main.reset \|\| main\.counter == 10: PROVED up to bound 20$
^\[main\.p1\] always \(s_eventually \[0:2\] main.reset \|\| main\.counter == 10\): REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
This gives the wrong answer for main.p0.
8 changes: 8 additions & 0 deletions regression/ebmc-spot/sva-buechi/s_until1.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CORE
../../verilog/SVA/s_until1.sv
--buechi --bdd
^\[.*\] \$past\(main\.counter\) <= main\.counter s_until main\.counter == 10: PROVED$
^\[.*\] 1 s_until main\.counter == 11: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
11 changes: 11 additions & 0 deletions regression/ebmc-spot/sva-buechi/sequence_and2.bmc.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CORE
../../verilog/SVA/sequence_and2.sv
--buechi
\[.*\] \(1 and \(##2 1\)\) \|-> main\.x == 2: PROVED up to bound 5$
\[.*\] \(\(##2 1\) and 1\) \|-> main\.x == 2: PROVED up to bound 5$
\[.*\] \(\(##2 1\) and 1\) #-# main\.x == 2: PROVED up to bound 5$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
10 changes: 10 additions & 0 deletions regression/ebmc-spot/sva-buechi/sequence_repetition4.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CORE
../../verilog/SVA/sequence_repetition4.sv
--buechi --bdd
^\[main\.p0\] \(main\.x == 0 ##1 main\.x == 1\) \[\*2\]: PROVED$
^\[main\.p1\] \(main\.x == 0 ##1 main\.x == 1 ##1 main\.x == 0\) \[\*2\]: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
9 changes: 9 additions & 0 deletions regression/ebmc-spot/sva-buechi/sequence_repetition7.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CORE
../../verilog/SVA/sequence_repetition7.sv
--buechi --bdd
^\[.*\] \(main\.a ##1 main\.b\) \[\*5\]: PROVED$
^\[.*\] \(\!main\.b ##1 \!main\.a\) \[\*5\]: PROVED$
^EXIT=0$
^SIGNAL=0$
--
--
13 changes: 13 additions & 0 deletions regression/ebmc-spot/sva-buechi/sva_abort1.bdd.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CORE
../../verilog/SVA/sva_abort1.sv
--buechi --module main --bdd
^\[main\.p0\] always \(accept_on \(main\.counter == 0\) main\.counter != 0\): PROVED$
^\[main\.p1\] always \(accept_on \(1\) 0\): PROVED$
^\[main\.p2\] always \(accept_on \(main\.counter == 1\) main\.counter == 0\): REFUTED$
^\[main\.p3\] always \(reject_on \(main\.counter != 0\) 1\): REFUTED$
^\[main\.p4\] always \(reject_on \(1\) 1\): REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
Loading