Skip to content

Set base_name member for __CPROVER_start #6784

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

tautschnig
Copy link
Collaborator

The (un)reachable functions output uses the base_name in the output,
which previously resulted in the surprising behaviour that an empty
function name was printed. While falling back to the symbol's name may
be possible, there could well be other places that try to use the
base_name.

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

@tautschnig tautschnig assigned tautschnig and unassigned kroening Apr 6, 2022
The (un)reachable functions output uses the base_name in the output,
which previously resulted in the surprising behaviour that an empty
function name was printed. While falling back to the symbol's name may
be possible, there could well be other places that try to use the
`base_name`.
@tautschnig tautschnig force-pushed the bugfixes/reachable-functions branch from 07b825d to f0502d2 Compare April 9, 2022 18:29
@tautschnig tautschnig removed their assignment Apr 9, 2022
@codecov
Copy link

codecov bot commented Apr 9, 2022

Codecov Report

Merging #6784 (f0502d2) into develop (b7c6692) will increase coverage by 0.07%.
The diff coverage is 89.20%.

@@             Coverage Diff             @@
##           develop    #6784      +/-   ##
===========================================
+ Coverage    76.90%   76.97%   +0.07%     
===========================================
  Files         1590     1593       +3     
  Lines       183969   184114     +145     
===========================================
+ Hits        141486   141730     +244     
+ Misses       42483    42384      -99     
Impacted Files Coverage Δ
src/jsil/jsil_entry_point.cpp 0.00% <0.00%> (ø)
..._incremental/smt2_incremental_decision_procedure.h 75.00% <ø> (ø)
...c/solvers/smt2_incremental/convert_expr_to_smt.cpp 84.87% <76.74%> (+12.78%) ⬆️
src/solvers/smt2_incremental/object_tracking.cpp 97.87% <97.87%> (ø)
jbmc/src/java_bytecode/java_entry_point.cpp 89.65% <100.00%> (+0.03%) ⬆️
src/ansi-c/ansi_c_entry_point.cpp 89.06% <100.00%> (+0.04%) ⬆️
src/goto-programs/goto_function.cpp 100.00% <100.00%> (ø)
src/solvers/smt2_incremental/object_tracking.h 100.00% <100.00%> (ø)
...ncremental/smt2_incremental_decision_procedure.cpp 94.15% <100.00%> (+0.14%) ⬆️
src/statement-list/statement_list_entry_point.cpp 85.14% <100.00%> (+0.14%) ⬆️
... and 9 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 1a4c66e...f0502d2. Read the comment docs.

@tautschnig tautschnig added aws Bugs or features of importance to AWS CBMC users aws-medium labels May 6, 2022
@@ -535,6 +535,7 @@ bool generate_ansi_c_start_function(
symbolt new_symbol;
Copy link
Member

Choose a reason for hiding this comment

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

💡 Maybe a proper constructor could help.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We'd just need to get #6591 approved (@kroening ?), which not only adds constructors, but also changes this line of code to use one of those constructors!

@peterschrammel peterschrammel removed their assignment May 17, 2022
@tautschnig tautschnig merged commit ca064fc into diffblue:develop May 17, 2022
@tautschnig tautschnig deleted the bugfixes/reachable-functions branch May 17, 2022 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users aws-medium bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants