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

Update TLC cfg file syntax #2752

Merged
merged 3 commits into from
Oct 9, 2023
Merged

Conversation

heidihoward
Copy link
Contributor

Action constraints in cfg files are labelled with ACTION_CONSTRAINT or ACTION_CONSTRAINTS, not ACTION-CONSTRAINT or ACTION-CONSTRAINTS (underscore instead of a hyphen).

Based on this comment in the TLC source code, I believe it changed from a hyphen to an underscore in 2009 https://github.com/tlaplus/tlaplus/blob/a41cbafc66b1dd225156aaca38ad35ec330f4ae9/toolbox/org.lamport.tla.toolbox.tool.tlc/src/org/lamport/tla/toolbox/tool/tlc/launch/TLCModelLaunchDelegate.java#L588

@lemmy
Copy link
Contributor

lemmy commented Oct 3, 2023

TLCModelLaunchDelegate is Toolbox code. I don't think that TLC ever accepted the hyphenated variants; at least not within the last 15 years: https://github.com/tlaplus/tlaplus/blob/a401ad39044e5014cb07a9588611041c1d55596d/tlatools/src/tlc2/tool/ModelConfig.java#L43-L44

@heidihoward
Copy link
Contributor Author

Thanks @lemmy for clarifying. Perhaps, this is based on the grammar from the specifying systems books which uses the hyphenated version

@shonfeder
Copy link
Contributor

Thanks for the update @heidihoward ! 🙏

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

Merging #2752 (2a56032) into main (e7420e2) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2752   +/-   ##
=======================================
  Coverage   78.88%   78.88%           
=======================================
  Files         464      464           
  Lines       15876    15876           
  Branches     2550     2550           
=======================================
+ Hits        12523    12524    +1     
+ Misses       3353     3352    -1     

see 1 file with indirect coverage changes

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

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.

Thanks @heidihoward for taking care of it! It may be that I've copied this definition from the book.

@shonfeder shonfeder merged commit ec4cc94 into apalache-mc:main Oct 9, 2023
10 checks passed
@heidihoward heidihoward deleted the ACTION-CONSTRAINT branch October 9, 2023 15:48
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.

6 participants