Verifying a parameterized property yields Runtime Exception
See original GitHub issueHello
I have a model and I want to check some properties (model attached).
NeverZone(z) == [] (sigma[varloc["PId"]] # { z }
NeverZ3 == [] (sigma[varloc["PId"]] # {"f3”})
In the toolbox, when I check NeverZ3 (in properties) it works (the model verifies the property). However, when I check NeverZone(“f3”) I get:
TLC threw an unexpected exception.
This was probably caused by an error in the spec or model.
See the User Output or TLC Console for clues to what happened.
The exception was a java.lang.RuntimeException
:
In evaluation, the identifier sigma is either undefined or not an operator.
line 15, col 43 to line 15, col 47 of module PWSSemantics
(I ended up with this error trying to find the cause of another same message on sigma being erroneous)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
c# - Resolving a parameter name at runtime - Stack Overflow
Basically the code works by defining a new Anonymous Type with a single Property consisting of the parameter who's name you want.
Read more >Creating and Throwing Exceptions | Microsoft Learn
Learn about creating and throwing exceptions. Exceptions are used to indicate that an error has occurred while running a program.
Read more >Resolve template validation or template format errors in ...
This returns the following error: "Template validation error: Invalid template property or properties [Bucket]." This error is caused because ...
Read more >Fixing common type problems - Dart
These errors typically occur when a subclass tightens up a method's parameter types by specifying a subclass of the original class. Note: This...
Read more >Error - JavaScript - MDN Web Docs - Mozilla
Custom error types can also use the cause property, provided the subclasses' constructor passes the options parameter when calling super() . The Error()...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
With #317 fixed, TLC now reports the following for this spec:
Better error reporting will be added as part of #317