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

[BUG] A bug in the renamer #429

Closed
konnov opened this issue Jan 12, 2021 · 0 comments · Fixed by #431
Closed

[BUG] A bug in the renamer #429

konnov opened this issue Jan 12, 2021 · 0 comments · Fixed by #431
Assignees
Labels

Comments

@konnov
Copy link
Collaborator

konnov commented Jan 12, 2021

The following example provokes a bug:

--------------- MODULE Ren ----------------
EXTENDS Integers
VARIABLE n

Foo(k) ==
    LET r(a) == a IN
    n' = r(3)

Init ==
    n = 0

Next ==
    Foo(5)
===========================================

Apparently, this is an artifact of a recent refactoring.

Describe the bug

PASS #7: PreprocessingPass                                        I@21:15:53.471
  > Before preprocessing: unique renaming                         I@21:15:53.471
 > Applying standard transformations:                             I@21:15:53.477
  > Desugarer                                                     I@21:15:53.477
  > UniqueRenamer                                                 I@21:15:53.483
(Please report an issue at: [https://github.com/informalsystems/apalache/issues],java.lang.IllegalArgumentException: Variable names should never contain more than one separator)
Unhandled exception                                               E@21:15:53.485
java.lang.IllegalArgumentException: Variable names should never contain more than one separator
	at at.forsyte.apalache.tla.lir.transformations.standard.IncrementalRenaming$.parseName(IncrementalRenaming.scala:39)
	at at.forsyte.apalache.tla.lir.transformations.standard.IncrementalRenaming$.nameCounterMapFromDecl(IncrementalRenaming.scala:90)
	at at.forsyte.apalache.tla.lir.transformations.standard.IncrementalRenaming$.$anonfun$nameCounterMapFromEx$3(IncrementalRenaming.scala:77)
...

To Reproduce

$ ~/devl/apalache/bin/apalache-mc check Ren.tla

Desktop (please complete the following information):

  • Version 0.8.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants