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 command adds superfluous EXTENDS statement #2796

Open
lemmy opened this issue Dec 13, 2023 · 2 comments
Open

parse command adds superfluous EXTENDS statement #2796

lemmy opened this issue Dec 13, 2023 · 2 comments

Comments

@lemmy
Copy link
Contributor

lemmy commented Dec 13, 2023

-> % cat EWD840AP.tla                                                            
------------------------------- MODULE EWD840AP -------------------------------

CONSTANT
    N

VARIABLES
    active,
    color,
    tpos,
    tcolor
=============================================================================
-> % ../../apalache/bin/apalache-mc parse --output=EWD840APparse.tla EWD840AP.tla
10:44:26.684 [main] INFO at.forsyte.apalache.tla.tooling.opt.ParseCmd -- Loading configuration
Output directory: _apalache-out/EWD840AP.tla/2023-12-13T10-44-26_4479875307421951542
# APALACHE version: 0.44.2 | build: 3360796                       I@10:44:26.888
Parse EWD840AP.tla                                                I@10:44:26.899
PASS #0: SanyParser                                               I@10:44:27.010
Parsing file specifications/ewd840/EWD840AP.tla
Parsed successfully
Root module: EWD840AP with 5 declarations.    I@10:44:27.141
It took me 0 days  0 hours  0 min  0 sec                          I@10:44:27.142
Total time: 0.252 sec                                             I@10:44:27.142
EXITCODE: OK
-> % cat EWD840APparse.tla                                                       
----------------------------- MODULE EWD840APparse -----------------------------

EXTENDS Integers, Sequences, FiniteSets, TLC, Apalache   \*  <- Where does this come from?

CONSTANT N

VARIABLE tpos

VARIABLE active

VARIABLE tcolor

VARIABLE color

================================================================================
@lemmy lemmy added the bug label Dec 13, 2023
@shonfeder
Copy link
Contributor

Hy, @lemmy. Thanks for the issue.

We add those extends by automatically.

Could you describe what kind of negative impact this is having for to help us triage?

@shonfeder shonfeder removed the bug label Dec 19, 2023
@lemmy
Copy link
Contributor Author

lemmy commented Dec 20, 2023

The EXTENDS introduces a dependency on Apalache where there was no dependency on any specific tool before. For example, TLAPS won't parse the spec unless the Apalache and TLC module are on its library path.

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

No branches or pull requests

2 participants