Skip to content

KNOWNBUG test for casting z/x to Boolean #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2024
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
14 changes: 14 additions & 0 deletions regression/verilog/SVA/sequence5.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
KNOWNBUG
sequence5.sv
--bound 0
^\[main\.p0\] 1: PROVED up to bound 0$
^\[main\.p1\] 0: REFUTED$
^\[main\.p2\] 1'bx: PROVED up to bound 0$
^\[main\.p3\] 1'bz: PROVED up to bound 0$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
x and z are recognized as 'true', but 'true' is defined as a "nonzero known
value" (1800-2017 12.4).
15 changes: 15 additions & 0 deletions regression/verilog/SVA/sequence5.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module main;

// passes, since 10 is true
initial p0: assert property (10);

// fails, since 0 isn't true
initial p1: assert property (0);

// fails, since 'x' isn't true
initial p2: assert property (1'bx);

// fails, since 'z' isn't true
initial p3: assert property (1'bz);

endmodule