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

Parse ASSUME declarations names #2808

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Conversation

fan-tom
Copy link
Contributor

@fan-tom fan-tom commented Jan 20, 2024

Closes #1835

  • 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

@@ -348,7 +348,7 @@ trait IrGenerators extends TlaType1Gen {
for {
ex <- exGen
tt <- genTypeTag
} yield TlaAssumeDecl(ex).withTag(tt)
} yield TlaAssumeDecl(None, ex).withTag(tt)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we generate named version?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, let's not worry about it for now. We can allow add that in a follow up. The generators are do for an overhaul at some point any how.

.unreleased/features/01.md Outdated Show resolved Hide resolved
@fan-tom fan-tom marked this pull request as ready for review January 20, 2024 00:49
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (99fb4d2) 78.82% compared to head (880d1c3) 78.90%.

Files Patch % Lines
...ansformations/standard/ModuleByExTransformer.scala 0.00% 2 Missing ⚠️
...he/tla/lir/transformations/standard/DeepCopy.scala 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2808      +/-   ##
==========================================
+ Coverage   78.82%   78.90%   +0.08%     
==========================================
  Files         467      467              
  Lines       15932    15942      +10     
  Branches     2588     2589       +1     
==========================================
+ Hits        12558    12579      +21     
+ Misses       3374     3363      -11     

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

@fan-tom
Copy link
Contributor Author

fan-tom commented Jan 21, 2024

I added additional tests to increase code coverage based on the Codecov report, but these tests look ad-hoc, @shonfeder please advise whether I should preserve them or replace with something else, or just drop and ignore Codecov warnings

Copy link
Contributor

@shonfeder shonfeder left a comment

Choose a reason for hiding this comment

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

Awesome work! It was a pleasure to review. Thanks so much for picking this up :)

I have a few small change requests, and a suggestion or two, but they are all minor nits.

@shonfeder shonfeder self-assigned this Jan 22, 2024
@shonfeder
Copy link
Contributor

shonfeder commented Jan 22, 2024

I added additional tests to increase code coverage based on the Codecov report, but these tests look ad-hoc, @shonfeder please advise whether I should preserve them or replace with something else, or just drop and ignore Codecov warnings

I think the tests look OK :) In the future, if you don't think a test is meaningful, no need to add it just to get the coverage metrics, but since they are already here, let's keep 'em.

@shonfeder shonfeder assigned fan-tom and shonfeder and unassigned shonfeder Jan 22, 2024
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.

Thanks for taking care of this!

@shonfeder shonfeder merged commit 9deaf3d into apalache-mc:main Jan 22, 2024
10 checks passed
@apalache-bot apalache-bot mentioned this pull request Jan 23, 2024
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.

Names of assumptions with ASSUME are not parsed into the IR
4 participants