-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up the operator names (#726)
* closes #634: cleaning up the operator names * using qualified names in the test * add changelog entry * Update tlair/src/main/scala/at/forsyte/apalache/tla/lir/oper/TlaFunOper.scala Co-authored-by: Shon Feder <[email protected]> * Update tlair/src/main/scala/at/forsyte/apalache/tla/lir/oper/TlaTempOper.scala Co-authored-by: Shon Feder <[email protected]> * fix formatting Co-authored-by: Shon Feder <[email protected]>
- Loading branch information
Showing
16 changed files
with
252 additions
and
179 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,29 +13,29 @@ object TlaActionOper { | |
* The prime operator. By the TLA+ restrictions, we cannot apply it twice, e.g., (x')' is illegal. | ||
*/ | ||
object prime extends TlaActionOper { | ||
override val name: String = "'" | ||
override val name: String = "PRIME" | ||
|
||
override def arity: OperArity = FixedArity(1) | ||
|
||
override def precedence: (Int, Int) = (15, 15) | ||
} | ||
|
||
/** | ||
* The operator that executes an action or keeps the variable values. | ||
* The operator that executes an action or keeps the variable values. It has the form `[A]_e`. | ||
*/ | ||
object stutter extends TlaActionOper { | ||
override val name: String = "[A]_e" | ||
override val name: String = "STUTTER" | ||
|
||
override def arity: OperArity = FixedArity(2) | ||
|
||
override def precedence: (Int, Int) = (4, 15) | ||
} | ||
|
||
/** | ||
* The operator that executes an action and enforces the values to change. | ||
* The operator that executes an action and enforces the values to change. It has the form `<A>_e`. | ||
*/ | ||
object nostutter extends TlaActionOper { | ||
override val name: String = "<A>_e" | ||
override val name: String = "NO_STUTTER" | ||
|
||
override def arity: OperArity = FixedArity(2) | ||
|
||
|
@@ -65,13 +65,10 @@ object TlaActionOper { | |
} | ||
|
||
/** | ||
* The sequential composition of operators. | ||
* | ||
* [email protected]: Arity 2? | ||
* [email protected]: Arity 2. Fixed. | ||
* The sequential composition of operators, which usually has the name `\cdot`. | ||
*/ | ||
object composition extends TlaActionOper { | ||
override val name: String = "\\cdot" | ||
override val name: String = "COMPOSE" | ||
override def arity: OperArity = FixedArity(2) | ||
override def precedence: (Int, Int) = (13, 13) | ||
} | ||
|
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
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
Oops, something went wrong.