Skip to content

Conversation

@tautschnig
Copy link
Collaborator

Whether we flatten or don't (when datatype support is not available) depends on the expression, but we may need to unflatten when the context expects an array.

Fixes: #8399

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

We may have `let var=expr in array` expressions, which SMT2 conversion
generates (and our in-tree SMT2 solver may have to consume).
Whether we flatten or don't (when datatype support is not available)
depends on the expression, but we may need to unflatten when the context
expects an array.

Fixes: diffblue#8399
@tautschnig tautschnig marked this pull request as ready for review August 1, 2024 11:09
@codecov
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 83.07692% with 11 lines in your changes missing coverage. Please review.

Project coverage is 78.02%. Comparing base (b335979) to head (af46479).
Report is 37 commits behind head on develop.

Files with missing lines Patch % Lines
src/solvers/smt2/smt2_conv.cpp 82.22% 8 Missing ⚠️
src/solvers/flattening/arrays.cpp 85.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8400   +/-   ##
========================================
  Coverage    78.02%   78.02%           
========================================
  Files         1726     1726           
  Lines       189442   189488   +46     
  Branches     18466    18493   +27     
========================================
+ Hits        147808   147850   +42     
- Misses       41634    41638    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tautschnig tautschnig assigned kroening and martin-cs and unassigned tautschnig Aug 1, 2024
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 ok, would have been nice to have a test from the original issue.

@rod-chapman
Copy link
Collaborator

Can we get this merged please? @kroening @martin-cs

@tautschnig tautschnig merged commit 59674e3 into diffblue:develop Sep 2, 2024
@tautschnig tautschnig deleted the bugfixes/smt2-8399 branch September 2, 2024 17:51
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.

Mal-formed SMT2 generated for Bitwuzla

5 participants