Skip to content

Commit eac3a72

Browse files
authored
Merge pull request #256 from diffblue/k-induction4
ebmc: add a test for 1-induction
2 parents 27c385e + d39ccaa commit eac3a72

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
k-induction4.sv
3+
--module main --bound 1 --k-induction
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\[main.property.p1] .* UNKNOWN$
7+
--
8+
^warning: ignoring
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module main(input clk);
2+
3+
reg [31:0] x;
4+
5+
initial x=0;
6+
7+
always @(posedge clk)
8+
if(x != 10)
9+
x<=x+1;
10+
11+
// true but not inductive
12+
p1: assert property (x[31] == 0);
13+
14+
endmodule

0 commit comments

Comments
 (0)