Skip to content

Commit

Permalink
ebmc: test for k-induction with both refuted and proved property
Browse files Browse the repository at this point in the history
  • Loading branch information
kroening committed Dec 9, 2023
1 parent 6806280 commit 945b699
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions regression/ebmc/k-induction/k-induction5.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CORE
k-induction5.v
--module main --bound 1 --k-induction
^EXIT=10$
^SIGNAL=0$
^\[main.property.property1\] .* SUCCESS$
^\[main.property.property2\] .* FAILURE$
--
^warning: ignoring
21 changes: 21 additions & 0 deletions regression/ebmc/k-induction/k-induction5.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module main();

reg [31:0] x, y;
wire clk;

initial x=1;
initial y=1;

always @(posedge clk)
if(x<1000) begin
x<=x+1;
y<=y+1;
end

// true, and 1-inductive
always assert property1: x<=1000;

// false, bound 1 suffices
always assert property2: x!=2;

endmodule

0 comments on commit 945b699

Please sign in to comment.