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 conversion of quint indices operator #2510

Merged
merged 3 commits into from Mar 29, 2023
Merged

Conversation

shonfeder
Copy link
Contributor

@shonfeder shonfeder commented Mar 29, 2023

Closes #2509

Since quint lists are 0-indexed, we need to adjust the indices produced by
DOMAIN.


  • Tests added for any new code
  • Ran make fmt-fix (or had formatting run automatically on all files edited)
  • Documentation added for any new functionality
  • Entries added to ./unreleased/ for any new functionality

@shonfeder
Copy link
Contributor Author

I've tested this in quint integration tests to ensure the logic is correct too.

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2023

Codecov Report

Merging #2510 (1ae5754) into main (b866a1d) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
- Coverage   78.48%   78.48%   -0.01%     
==========================================
  Files         441      441              
  Lines       15484    15493       +9     
  Branches     2498     2486      -12     
==========================================
+ Hits        12152    12159       +7     
- Misses       3332     3334       +2     
Impacted Files Coverage Δ
...ain/scala/at/forsyte/apalache/io/quint/Quint.scala 87.81% <100.00%> (+0.47%) ⬆️

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shonfeder
Copy link
Contributor Author

Found a bug with empty lists. addressing now.

Shon Feder added 2 commits March 29, 2023 14:15
I was forgetting to special case construction of empty lists.
@shonfeder
Copy link
Contributor Author

Fixed empty lists.

Copy link
Collaborator

@bugarela bugarela left a comment

Choose a reason for hiding this comment

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

LGTM

@shonfeder
Copy link
Contributor Author

Thanks!

@shonfeder shonfeder merged commit 8c5e157 into main Mar 29, 2023
10 checks passed
@shonfeder shonfeder deleted the 2509/quint/fix-indices branch March 29, 2023 18:53
@apalache-bot apalache-bot mentioned this pull request Apr 1, 2023
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.

Conversion of quint indices operator has indices off by one
3 participants