Skip to content

Commit 1fd30cd

Browse files
committed
ebmc: add two basic tests for CEGAR
1 parent 6ff76ea commit 1fd30cd

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

regression/ebmc/cegar/basic1.desc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
basic1.sv
3+
--cegar
4+
^VERIFICATION SUCCESSFUL -- PROPERTY HOLDS$
5+
^EXIT=0$
6+
^SIGNAL=0$

regression/ebmc/cegar/basic1.sv

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module top(input clk);
2+
3+
reg important;
4+
reg not_important;
5+
6+
initial important = 1;
7+
always @(posedge clk)
8+
important = important;
9+
10+
assert property (important == 1);
11+
12+
endmodule

regression/ebmc/cegar/basic2.desc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
KNOWNBUG
2+
basic2.sv
3+
--cegar
4+
^VERIFICATION FAILED -- PROPERTY REFUTED$
5+
^EXIT=0$
6+
^SIGNAL=0$

regression/ebmc/cegar/basic2.sv

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module top(input clk);
2+
3+
reg important;
4+
reg not_important;
5+
6+
initial important = 1;
7+
always @(posedge clk)
8+
important = 0;
9+
10+
// should fail after one transition
11+
assert property (important == 1);
12+
13+
endmodule

0 commit comments

Comments
 (0)