Skip to content

remove uses of typet::subtype() const #6618

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 1 commit into from
May 24, 2022
Merged

Conversation

kroening
Copy link
Member

@kroening kroening commented Feb 1, 2022

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

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

I certainly approve of this in spirit (this doesn't compile just yet and needs a proper commit message).

@kroening kroening force-pushed the typet_subtype_const2 branch from 8a969cb to 8e2f8dc Compare February 17, 2022 22:05
@kroening kroening force-pushed the typet_subtype_const2 branch from 8e2f8dc to 9d85740 Compare March 1, 2022 20:47
@kroening kroening force-pushed the typet_subtype_const2 branch from 9d85740 to 7b2eea4 Compare March 26, 2022 15:00
@kroening kroening force-pushed the typet_subtype_const2 branch 3 times, most recently from 86d1bd2 to 41d0418 Compare April 25, 2022 14:32
@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #6618 (9073968) into develop (f9456fe) will increase coverage by 0.00%.
The diff coverage is 79.16%.

@@           Coverage Diff            @@
##           develop    #6618   +/-   ##
========================================
  Coverage    77.79%   77.79%           
========================================
  Files         1567     1567           
  Lines       179818   179841   +23     
========================================
+ Hits        139895   139913   +18     
- Misses       39923    39928    +5     
Impacted Files Coverage Δ
...goto-harness/memory_snapshot_harness_generator.cpp 76.17% <0.00%> (ø)
src/goto-programs/string_instrumentation.cpp 25.11% <0.00%> (-0.06%) ⬇️
src/cpp/expr2cpp.cpp 42.97% <33.33%> (+0.28%) ⬆️
src/cpp/cpp_typecheck_conversions.cpp 84.97% <52.94%> (-0.18%) ⬇️
src/pointer-analysis/value_set_fi.cpp 69.82% <71.42%> (-0.02%) ⬇️
jbmc/src/java_bytecode/ci_lazy_methods_needed.cpp 98.41% <100.00%> (ø)
jbmc/src/java_bytecode/convert_java_nondet.cpp 79.72% <100.00%> (+0.27%) ⬆️
jbmc/src/java_bytecode/expr2java.cpp 86.25% <100.00%> (ø)
...bmc/src/java_bytecode/java_bytecode_parse_tree.cpp 9.90% <100.00%> (ø)
jbmc/src/java_bytecode/java_bytecode_parser.cpp 90.32% <100.00%> (ø)
... and 6 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 bd45729...9073968. Read the comment docs.

This commit replaces uses of typet::subtype() const by casting the type to
the applicable subtype, and then using the appropriate accessor method.
@kroening kroening force-pushed the typet_subtype_const2 branch from 41d0418 to 9073968 Compare May 24, 2022 08:19
@kroening kroening marked this pull request as ready for review May 24, 2022 08:19
@kroening kroening assigned peterschrammel and unassigned kroening May 24, 2022
@peterschrammel peterschrammel removed their assignment May 24, 2022
@kroening kroening merged commit a702e77 into develop May 24, 2022
@kroening kroening deleted the typet_subtype_const2 branch May 24, 2022 10:43
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