-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Uncaught TBuilderTypeException: Operator SET_ENUM cannot be applied to arguments #2690
Comments
Thanks for the report, and apologies for the broken counter-example enumeration! Debugging notes: The culprit here is the decoding of Even though we could use Since the cell naming scheme @Kukovec I'm not sure how to fix the latter part, since we don't have a name for that |
@thpani Is it clear to you what part of the spec is actually causing the issue? It wasn't obvious to me from reading the error message or the stack trace. Just curious in case there might be a temporary workaround. |
One of the You can try to work around it by switching to --- AbstractStaticRaft.old.tla 2023-08-09 10:12:31
+++ AbstractStaticRaft.tla 2023-08-09 10:11:11
@@ -3,6 +3,7 @@
EXTENDS Naturals, Integers, FiniteSets, Sequences, TLC, Apalache
CONSTANTS
+ \* @typeAlias: SERVER = Str;
\* @type: Set(SERVER);
Server
@@ -249,7 +249,7 @@
/\ Primary = "P"
/\ Secondary = "S"
/\ Nil = "Nil"
- /\ Server = {"1_OF_SERVER", "2_OF_SERVER", "3_OF_SERVER"}
+ /\ Server = {"1", "2", "3"}
/\ MaxLogLen = 3
/\ MaxTerm = 3
/\ InitTerm = 0 Apalache will give you a warning about deprecated type alias syntax, but this should provide a workaround until we fix the issue. |
@thpani Great, thanks! I'll try that for now. |
So, I've tested it with the fix in |
Impact
Uncaught
TBuilderTypeException
exception terminates Apalache model checking unexpectedly.Input specification
The command line parameters used to run the tool
Expected behavior
Expected Apalache to complete model checking successfully. Note that, similar to #2683, removing the
--max-error=250 --view=vars
flags appears to avoid the exception.Log files
System information
0.41.3 build 6ffe450
Linux
17.0.8
Triage checklist (for maintainers)
The text was updated successfully, but these errors were encountered: