-
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.
Merge pull request #883 from diffblue/or1
Verilog: KNOWNBUG for primitive gates with more than two inputs
- Loading branch information
Showing
2 changed files
with
26 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,10 @@ | ||
KNOWNBUG | ||
or1.sv | ||
--bound 0 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
This is a small version of a misencoding of the Verilog primitive gates | ||
reported as https://github.com/diffblue/hw-cbmc/issues/880 |
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,16 @@ | ||
module main(input or_in1, or_in2, or_in3); | ||
|
||
wire or_out; | ||
|
||
or o1(or_out, or_in1, or_in2, or_in3); | ||
|
||
// should pass | ||
or_ok: assert final ((or_in1 || or_in2 || or_in3)==or_out); | ||
|
||
// should fail | ||
or_not_ok1: assert final (or_out == (or_in1 || or_in2)); | ||
|
||
// should fail | ||
or_not_ok2: assert final (or_in1 || or_in2 || !or_in3); | ||
|
||
endmodule |