-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote Desugarer to be the first pass (#536)
closes #531
- Loading branch information
Showing
10 changed files
with
427 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-------------------------------- MODULE Fix531 -------------------------------- | ||
EXTENDS Integers | ||
|
||
VARIABLE f | ||
|
||
Init == | ||
f = [<<a, b>> \in { <<1, 3>>, <<2, 4>> } |-> a + b] | ||
|
||
Next == | ||
UNCHANGED f | ||
|
||
=============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tla-pp/src/main/scala/at/forsyte/apalache/tla/pp/passes/DesugarerPass.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package at.forsyte.apalache.tla.pp.passes | ||
|
||
import at.forsyte.apalache.infra.passes.{Pass, TlaModuleMixin} | ||
|
||
/** | ||
* A pass that does TLA+ desugaring. | ||
* | ||
* @author Igor Konnov | ||
*/ | ||
trait DesugarerPass extends Pass with TlaModuleMixin |
Oops, something went wrong.