-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ebmc: --ranking-function now honors --property
The ranking function facility now allows selecting a specific property using the --property command-line option.
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
regression/ebmc/ranking-function/counter_with_reset1.fail.desc
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,7 @@ | ||
CORE | ||
counter_with_reset1.sv | ||
--property main.property.p0 --ranking-function 10-counter | ||
^\[main\.property\.p0\] always \(eventually main.counter == 10\): UNKNOWN$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- |
7 changes: 7 additions & 0 deletions
7
regression/ebmc/ranking-function/counter_with_reset1.pass.desc
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,7 @@ | ||
CORE | ||
counter_with_reset1.sv | ||
--property main.property.p1 --ranking-function 10-counter | ||
^\[main\.property\.p1\] always \(eventually main.reset \|\| main.counter == 10\): SUCCESS$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- |
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 @@ | ||
// count up from 0 to 10 | ||
|
||
module main(input clk, input reset); | ||
|
||
reg [3:0] counter; | ||
|
||
initial counter = 0; | ||
|
||
always @(posedge clk) | ||
if(reset) | ||
counter = 0; | ||
else if(counter != 10) | ||
counter = counter + 1; | ||
|
||
// expected to fail, owing to reset | ||
p0: assert property (eventually counter == 10); | ||
|
||
// expected to pass | ||
p1: assert property (eventually (reset || counter == 10)); | ||
|
||
endmodule |
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