Skip to content

expr2smv: enum for precedence #708

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 20, 2024
Merged

expr2smv: enum for precedence #708

merged 1 commit into from
Sep 20, 2024

Conversation

kroening
Copy link
Member

This replaces the use of unsigned and assorted integer literals for the expression precedence by an enum type.

@kroening kroening marked this pull request as ready for review September 19, 2024 21:30
UNION = 10, // union
IN = 9, // in
REL = 8, // = != < > <= >=
TEMP = 7, // AX, AF, etc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps spell out "TEMPORAL" on this occasion? When reading the code I found myself thinking "wait, is there some sort of temporary precedence?"

@kroening kroening force-pushed the smv-prec branch 3 times, most recently from 55e10d0 to 2a8f28f Compare September 20, 2024 14:50
This replaces the use of 'unsigned' and assorted integer literals for the
expression precedence by an enum type.
@kroening kroening merged commit db8c89a into main Sep 20, 2024
8 checks passed
@kroening kroening deleted the smv-prec branch September 20, 2024 14:52
@kroening kroening added the SMV label Sep 20, 2024
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