Skip to content

Conversation

kroening
Copy link
Member

== and != return x when either operand contains x or z. This lowers the operator to the aval/bval encoding.

@kroening kroening force-pushed the verilog_equality_lowering branch 3 times, most recently from 4d7e284 to fcffffa Compare September 1, 2024 12:57
@kroening kroening marked this pull request as ready for review September 1, 2024 13:00
exprt make_x()
{
auto type = verilog_unsignedbv_typet{1};
return lower_to_aval_bval(constant_exprt{"x", type});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we have ID_x for this?

== and != return 'x' when either operand contains x or z.  This lowers the
operator to the aval/bval encoding.
@kroening kroening force-pushed the verilog_equality_lowering branch from fcffffa to 15b9299 Compare September 4, 2024 14:18
@kroening kroening merged commit f25aad5 into main Sep 4, 2024
7 of 8 checks passed
@kroening kroening deleted the verilog_equality_lowering branch September 4, 2024 14:35
Romy15200 pushed a commit to Romy15200/nws that referenced this pull request Aug 19, 2025
aval/bval lowering for Verilog logical equality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants