Skip to content
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

Fix bug in cardinality optimization #1613

Merged

Conversation

p-offtermatt
Copy link
Collaborator

Changed the behaviour and modified the corresponding unit test

@p-offtermatt p-offtermatt requested a review from konnov April 8, 2022 12:08
@p-offtermatt p-offtermatt linked an issue Apr 8, 2022 that may be closed by this pull request
@p-offtermatt p-offtermatt self-assigned this Apr 8, 2022
Copy link
Collaborator

@konnov konnov 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!

Co-authored-by: Igor Konnov <igor@informal.systems>
@codecov-commenter
Copy link

Codecov Report

Merging #1613 (d7f3a29) into unstable (4f14fb8) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           unstable    #1613      +/-   ##
============================================
- Coverage     74.99%   74.99%   -0.01%     
============================================
  Files           361      361              
  Lines         11627    11630       +3     
  Branches        524      543      +19     
============================================
+ Hits           8720     8722       +2     
- Misses         2907     2908       +1     
Impacted Files Coverage Δ
...ala/at/forsyte/apalache/tla/pp/ExprOptimizer.scala 89.70% <100.00%> (+0.47%) ⬆️
.../forsyte/apalache/tla/pp/ConstSimplifierBase.scala 96.47% <0.00%> (-1.18%) ⬇️

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 4f14fb8...d7f3a29. Read the comment docs.

@p-offtermatt p-offtermatt merged commit 0072050 into unstable Apr 8, 2022
@p-offtermatt p-offtermatt deleted the 1606-unsound-optimization-of-cardinalityab-when-a->-b branch April 8, 2022 14:12
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.

Unsound optimization of Cardinality(a..b) when a > b
3 participants