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

Solver factory: all solvers are stack_decision_proceduret #8408

Merged

Conversation

tautschnig
Copy link
Collaborator

There is no need for both get_decision_procedure and get_stack_decision_procedure where the latter uses dynamic_cast.

  • 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

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.

Project coverage is 77.94%. Comparing base (b87d38a) to head (72e8727).
Report is 2 commits behind head on develop.

Files Patch % Lines
src/goto-checker/multi_path_symex_checker.cpp 50.00% 1 Missing ⚠️
...-checker/single_loop_incremental_symex_checker.cpp 75.00% 1 Missing ⚠️
src/goto-checker/single_path_symex_checker.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8408      +/-   ##
===========================================
- Coverage    77.95%   77.94%   -0.02%     
===========================================
  Files         1726     1726              
  Lines       189601   189621      +20     
  Branches     18250    18247       -3     
===========================================
- Hits        147796   147792       -4     
- Misses       41805    41829      +24     

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

@kroening
Copy link
Member

kroening commented Aug 8, 2024

Approving, but as a reminder, stack-based interfaces are obsolete, and I'd like to get rid of stack_decision_proceduret.

@peterschrammel
Copy link
Member

stack-based interfaces are obsolete

Stack-based interfaces may be obsolete in the underlying solvers, but as a programming model to implement algorithms it is extremely convenient.

There is no need for both `get_decision_procedure` and
`get_stack_decision_procedure` where the latter uses `dynamic_cast`.
@tautschnig tautschnig force-pushed the solver-factory-no-dynamic_cast branch from 7072fd0 to 72e8727 Compare August 20, 2024 08:23
@tautschnig tautschnig merged commit 3877e0f into diffblue:develop Aug 20, 2024
39 of 40 checks passed
@tautschnig tautschnig deleted the solver-factory-no-dynamic_cast branch August 20, 2024 09:26
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.

3 participants