Skip to content

Improve solver factory #3588

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

Conversation

peterschrammel
Copy link
Member

  • 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.
  • 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).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

{
}

solver_factoryt::solvert::solvert()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use = default?

return get_default();
}

solver_factoryt::~solver_factoryt()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use = default?

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.

🚫
This PR failed Diffblue compatibility checks (cbmc commit: ae24500).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95015757
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@smowton
Copy link
Contributor

smowton commented Dec 18, 2018

Why? A lot of these seem like the kind of one-liner ideally suited to inline definition

@tautschnig
Copy link
Collaborator

Why? A lot of these seem like the kind of one-liner ideally suited to inline definition

  1. I'm mainly worried about compilation time, and those "one-liners" require a lot of non-trivial header files.
  2. Even if you just wanted to understand the interface, you are forced to read all the implementation.

To be honest, most of our inline definitions seem to be driven by laziness rather than conscious decisions about what to inline for performance or other data-driven reasons. And now that some cleanup is happening, we might as well take a look at those aspects as well. I'm ok with a rule like "you may define any function with up to N statements inline without providing performance data," but right now it seems entirely arbitrary.

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: 33daefe).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95102698

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: 0471a5a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95188405

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: b76cd5f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95419536

@peterschrammel peterschrammel merged commit 375b5e0 into diffblue:develop Dec 20, 2018
@peterschrammel peterschrammel deleted the improve-solver-factory branch December 20, 2018 20:13
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.

4 participants