Skip to content

Make constant_propagation_08 test platform agnostic #7912

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 26, 2023

Conversation

tautschnig
Copy link
Collaborator

We had a varying number of simplifications as platforms with sizeof(int) != sizeof(long) would yield 2 simplifications, and those with matching bit widths only a single one. The extra simplification referred to the cast in the index operand (on platforms with sizeof(int) != sizeof(long)), which we can avoid by making the index a long-type constant in the first place.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a 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.

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e02fd74) 78.94% compared to head (7b3e39e) 79.01%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7912      +/-   ##
===========================================
+ Coverage    78.94%   79.01%   +0.07%     
===========================================
  Files         1697     1697              
  Lines       195379   195379              
===========================================
+ Hits        154242   154386     +144     
+ Misses       41137    40993     -144     

see 8 files with indirect coverage changes

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

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

Thanks!

@tautschnig tautschnig requested a review from a team as a code owner September 26, 2023 09:17
@tautschnig tautschnig force-pushed the cleanup/test-platform-indep branch 3 times, most recently from bdb09b0 to 9882b88 Compare September 26, 2023 11:25
@tautschnig tautschnig self-assigned this Sep 26, 2023
We had a varying number of simplifications as platforms with sizeof(int)
!= sizeof(ssize_t) would yield 2 simplifications, and those with
matching bit widths only a single one. The extra simplification referred
to the cast in the index operand (on platforms with sizeof(int) !=
sizeof(ssize_t)), which we can avoid by making the index a long-type
constant in the first place.
@tautschnig tautschnig force-pushed the cleanup/test-platform-indep branch from 9882b88 to 7b3e39e Compare September 26, 2023 18:41
@tautschnig tautschnig merged commit 45860b6 into diffblue:develop Sep 26, 2023
@tautschnig tautschnig deleted the cleanup/test-platform-indep branch September 26, 2023 20:31
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