Skip to content

Introduce code_frontend_returnt #6403

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 3 commits into from
Oct 21, 2021
Merged

Introduce code_frontend_returnt #6403

merged 3 commits into from
Oct 21, 2021

Conversation

kroening
Copy link
Member

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

The codet class is currently shared between the front-end code classes and
the classes that represent goto-instructions.  This commit moves this class
into a separate header file so it can be consumed by both without including
everything else.
After introducing code_frontend_declt, code_declt is now used exclusively by
goto instructions, and thus belongs into goto_instruction_code.h.
@kroening kroening force-pushed the code_frontend_returnt branch from b5b6a7c to d66b7c5 Compare October 20, 2021 18:54
This splits the classes that represent return statements in the frontends
and the return instructions in goto instructions.

They differ in semantics and in the invariants that they maintain.  The goto
instruction variant always has a return value.  The constructors for
creating that class without return value are removed.
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #6403 (47a3277) into develop (a55f5ae) will increase coverage by 0.01%.
The diff coverage is 76.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6403      +/-   ##
===========================================
+ Coverage    75.97%   75.98%   +0.01%     
===========================================
  Files         1523     1524       +1     
  Lines       164201   164294      +93     
===========================================
+ Hits        124758   124847      +89     
- Misses       39443    39447       +4     
Impacted Files Coverage Δ
src/analyses/custom_bitvector_analysis.cpp 54.77% <0.00%> (ø)
src/analyses/dependence_graph.cpp 89.26% <0.00%> (ø)
src/analyses/interval_analysis.cpp 0.00% <0.00%> (ø)
src/analyses/local_bitvector_analysis.cpp 74.70% <0.00%> (ø)
src/analyses/local_may_alias.cpp 62.96% <0.00%> (ø)
src/analyses/static_analysis.cpp 46.73% <0.00%> (ø)
src/ansi-c/c_typecheck_base.h 100.00% <ø> (ø)
src/ansi-c/expr2c_class.h 100.00% <ø> (ø)
src/cpp/cpp_typecheck_initializer.cpp 29.26% <0.00%> (ø)
src/goto-cc/linker_script_merge.cpp 0.00% <0.00%> (ø)
... and 163 more

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 268a0d0...47a3277. Read the comment docs.

@kroening kroening force-pushed the code_frontend_returnt branch from 3856af3 to 47a3277 Compare October 21, 2021 07:23
@kroening kroening merged commit 8dfeb1a into develop Oct 21, 2021
@kroening kroening deleted the code_frontend_returnt branch October 21, 2021 18:17
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.

4 participants