-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add exception patterns case study & re-enable elect.pvl #635
Conversation
Previously all usages of String were resolved to java.lang.String, while Exception#getMessage was resolved with return type PrimitiveSort.String. By resolving imported methods with return type String to java.lang.String, and converting java.lang.String to PrimitiveSort.String after all necessary external classes have been loaded, the problem is resolved, as the import and type resolution is now consistent.
Previously return values were not coerced to the return type of the method. This caused "return null" not to be converted into "return VCTNone", because the return type wasn't coerced to VCTOption, but was just left as-is. Now return values are type-coerced to the method return type, similarly as values that are being assigned to a variable.
PropagateInvariants did not rewrite signals clauses. Enabling this caused several examples to fail because the semantics of context_everywhere changed. This change required extra permission annotations.
First an explicit folder structure was needed for jstar, but this is no longer necessary. Additionally, the abstract keyword is also no longer needed in one of the tests.
Kudos, SonarCloud Quality Gate passed! |
// -*- tab-width:2 ; indent-tabs-mode:nil -*- | ||
//:: case LeaderElect | ||
//:: tool silicon | ||
//:: suite problem-fail | ||
//:: option --check-history |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this example is missing a Verdict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. Except for a missing verdict.
Kudos, SonarCloud Quality Gate passed! |
Add tests made for an exception patterns case study, and fix any bugs related to those tests. Also re-enable elect.pvl, as it is no longer broken.