Skip to content

Enable usage of --show-symbol-table where the symbol table contains unrecognised modes. #6303

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 5 commits into from
Aug 18, 2021

Conversation

thomasspriggs
Copy link
Contributor

Enables usage of --show-symbol-table where the symbol table contains unrecognised modes. Relates to #6219

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

So that the reader can more easily see that each of the functions in
this file get the language in the same way and so that any future
changes to this functionality only need to be made in one place.
To confirm that the fix from the previous "use default language" commit
is worked as expected.
Copy link
Contributor

@TGWDB TGWDB left a comment

Choose a reason for hiding this comment

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

Looks good and tested with random and complex language names locally.

@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #6303 (21ac550) into develop (63203b1) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #6303   +/-   ##
========================================
  Coverage    75.98%   75.98%           
========================================
  Files         1510     1510           
  Lines       163465   163460    -5     
========================================
  Hits        124208   124208           
+ Misses       39257    39252    -5     
Impacted Files Coverage Δ
src/util/floatbv_expr.cpp 0.00% <0.00%> (ø)
src/util/floatbv_expr.h 73.58% <ø> (ø)
src/util/ieee_float.cpp 88.01% <0.00%> (ø)
src/util/ieee_float.h 85.71% <ø> (ø)
...yses/variable-sensitivity/abstract_environment.cpp 95.02% <100.00%> (ø)
src/goto-programs/show_symbol_table.cpp 96.07% <100.00%> (+4.41%) ⬆️
...-sensitivity/abstract_environment/to_predicate.cpp 100.00% <100.00%> (ø)
src/solvers/smt2/smt2_conv.cpp 66.50% <0.00%> (-0.20%) ⬇️
src/jsil/jsil_entry_point.cpp 0.00% <0.00%> (ø)
... and 14 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 be17ef4...21ac550. Read the comment docs.

@@ -24,6 +24,17 @@ Author: Daniel Kroening, [email protected]

#include "goto_model.h"

/// \brief Gets the language which should be used for showing the type and value
/// of the supplied \p symbol.
static std::unique_ptr<languaget>
Copy link
Member

Choose a reason for hiding this comment

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

Document the behaviour in the case of unknown or empty modes.

Because the behaviour could be surprising if the reader is not familiar
with the intended behaviour.
@thomasspriggs thomasspriggs merged commit bf70daa into diffblue:develop Aug 18, 2021
@thomasspriggs thomasspriggs deleted the tas/rust_mode branch August 18, 2021 14: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.

3 participants