-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ebmc: two KNOWNBUG tests for k-induction
The test is one file that has two properties, one to be refuted and one to be proved.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
KNOWNBUG | ||
k-induction5.v | ||
--module main --bound 1 --k-induction | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^\[main.property.property1\] .* PROVED$ | ||
^\[main.property.property2\] .* INCONCLUSIVE$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
The result for property2 should be REFUTED. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |