Skip to content
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

unary_exprt::check and nullary_exprt::check #8151

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Conversation

kroening
Copy link
Member

@kroening kroening commented Jan 6, 2024

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

This adds unary_exprt::check(expr), which checks that the expression is
indeed unary.  This follows the same pattern as binary_exprt::check and
ternary_exprt::check.
Three wrongly hand-crafted bit-vector constants are fixed.  Bit-vector
constants are hex, and must not use leading zeros.
This adds nullary_exprt::check(expr), which checks that the expression is
indeed nullary.  This follows the same pattern as binary_exprt::check and
ternary_exprt::check.
@kroening kroening marked this pull request as ready for review January 6, 2024 18:31
Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ba46166) 79.10% compared to head (550251b) 79.09%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8151      +/-   ##
===========================================
- Coverage    79.10%   79.09%   -0.01%     
===========================================
  Files         1695     1695              
  Lines       196596   196578      -18     
===========================================
- Hits        155517   155488      -29     
- Misses       41079    41090      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tautschnig tautschnig merged commit 78a90e0 into develop Jan 8, 2024
37 of 40 checks passed
@tautschnig tautschnig deleted the unary_exprt_check branch January 8, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants