Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions regression/verilog/primitive_gates/or1.desc
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
16 changes: 16 additions & 0 deletions regression/verilog/primitive_gates/or1.sv
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
Loading