Skip to content

Fix SMT object tracking test #7015

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

thomasspriggs
Copy link
Contributor

A unit test was removed in #6949 . This PR adds the test back and fixes it.

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

This test was removed due to incompatibility with new INVARIANT in the
constuctor of member_exprt, which now checks that member is being
accessed on a struct/union typed operand. This commit adds the test back
as a precursor to making it compatible with the new INVARIANT.
To fix this test, more appropriate type information needs to be added.
This will result in differing object_base types for each check. This
will be simpler to write in sections rather than `GENERATE` rows.
So that it is compatible with the new INVARIANT in the constructor of
`member_exprt`.
To make the intention of each test section clearer.
@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #7015 (de250f9) into develop (55fc192) will increase coverage by 0.00%.
The diff coverage is 93.87%.

@@           Coverage Diff            @@
##           develop    #7015   +/-   ##
========================================
  Coverage    77.86%   77.87%           
========================================
  Files         1569     1569           
  Lines       180821   180903   +82     
========================================
+ Hits        140801   140882   +81     
- Misses       40020    40021    +1     
Impacted Files Coverage Δ
src/goto-instrument/dump_c.cpp 80.86% <ø> (+0.09%) ⬆️
src/goto-programs/process_goto_program.cpp 100.00% <ø> (ø)
src/goto-programs/system_library_symbols.h 100.00% <ø> (ø)
src/goto-symex/goto_symex_state.h 100.00% <ø> (ø)
src/goto-programs/system_library_symbols.cpp 94.06% <70.00%> (-1.31%) ⬇️
src/goto-symex/symex_goto.cpp 97.13% <100.00%> (+0.01%) ⬆️
src/goto-symex/symex_main.cpp 87.04% <100.00%> (+0.03%) ⬆️
src/goto-symex/symex_start_thread.cpp 100.00% <100.00%> (ø)
unit/solvers/smt2_incremental/object_tracking.cpp 100.00% <100.00%> (ø)

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 d69761e...de250f9. Read the comment docs.

@thomasspriggs thomasspriggs merged commit a96dea4 into diffblue:develop Jul 19, 2022
@thomasspriggs thomasspriggs deleted the tas/fix_object_tracking_test branch July 19, 2022 16:13
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