Skip to content

Factor out charAt() and startsWith() simplification into separate functions #4898

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
Jul 16, 2019

Conversation

danpoe
Copy link
Contributor

@danpoe danpoe commented Jul 12, 2019

The diff for this PR is a bit unhelpful. The PR simply moves the code that implements simplification of charAt() and startsWith() from simplify_function_application() to simplify_string_char_at() and simplify_string_startswith(), respectively.

  • 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.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 9503c49).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/118970054

@codecov-io
Copy link

codecov-io commented Jul 12, 2019

Codecov Report

Merging #4898 into develop will increase coverage by <.01%.
The diff coverage is 91.11%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4898      +/-   ##
===========================================
+ Coverage    69.19%   69.19%   +<.01%     
===========================================
  Files         1307     1307              
  Lines       107951   107955       +4     
===========================================
+ Hits         74696    74700       +4     
  Misses       33255    33255
Impacted Files Coverage Δ
src/util/simplify_expr.cpp 87.28% <91.11%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6c0eff...ca203b9. Read the comment docs.

@tautschnig
Copy link
Collaborator

@danpoe Could you please rebase this one so that the spurious CI failure (failure to parse an APT key, should be transient) is resolved?

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Not particularly easy to review, because the diff is so weird, but it looks basically alright.

@danpoe danpoe force-pushed the refactor/string-simplification branch from 9503c49 to ca203b9 Compare July 16, 2019 21:37
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: ca203b9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/119392278

@danpoe danpoe merged commit 0e356c2 into diffblue:develop Jul 16, 2019
@danpoe danpoe deleted the refactor/string-simplification branch June 2, 2020 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants