Skip to content

Conversation

@kroening
Copy link
Collaborator

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

kroening added 3 commits May 20, 2022 08:57
This adds a missing whitespace in the SMT2 output.  The SMT2 formula parses
correctly without the whitespace, so this is cosmetic.
This adds the missing conversion for "pointer - scalar" to the SMT2 backend.
It's not used by CBMC, which rewrites these to p+(-s) in the simplifier.
This enables type2id in the SMT2 backend to convert struct_tag types.
@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #6873 (862affb) into develop (78bcaf7) will decrease coverage by 0.00%.
The diff coverage is 63.33%.

@@             Coverage Diff             @@
##           develop    #6873      +/-   ##
===========================================
- Coverage    77.79%   77.79%   -0.01%     
===========================================
  Files         1567     1567              
  Lines       179750   179772      +22     
===========================================
+ Hits        139844   139857      +13     
- Misses       39906    39915       +9     
Impacted Files Coverage Δ
src/goto-instrument/contracts/contracts.h 100.00% <ø> (ø)
src/goto-instrument/nondet_static.cpp 96.92% <ø> (ø)
src/solvers/flattening/boolbv.cpp 86.36% <ø> (ø)
src/solvers/flattening/boolbv.h 62.50% <ø> (ø)
src/solvers/smt2/smt2_conv.cpp 67.28% <15.38%> (-0.21%) ⬇️
src/goto-instrument/contracts/contracts.cpp 94.46% <100.00%> (+0.04%) ⬆️
.../goto-instrument/goto_instrument_parse_options.cpp 71.12% <100.00%> (+0.20%) ⬆️

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 7b19f1d...862affb. Read the comment docs.

@kroening kroening marked this pull request as ready for review May 20, 2022 09:27
Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

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

Generally, it would be good to have tests that exercise these cases.

@kroening kroening merged commit 890e039 into develop May 21, 2022
@kroening kroening deleted the smt2_backend_tweaks branch May 21, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants