Skip to content
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

Merged
merged 9 commits into from
Jul 7, 2021

Conversation

bobismijnnaam
Copy link
Contributor

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.

@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 07:11 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 07:18 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 07:18 Inactive
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.
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 08:11 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 08:11 Inactive
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.
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 09:13 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 09:13 Inactive
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.
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 13:17 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 13:17 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 15:20 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 7, 2021 15:20 Inactive
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.
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 10, 2021 12:23 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 10, 2021 12:23 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 11, 2021 13:14 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default May 11, 2021 13:14 Inactive
@sonarcloud
Copy link

sonarcloud bot commented May 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Comment on lines 1 to 4
// -*- tab-width:2 ; indent-tabs-mode:nil -*-
//:: case LeaderElect
//:: tool silicon
//:: suite problem-fail
//:: option --check-history
Copy link
Contributor

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.

Copy link
Contributor

@Vescatur Vescatur left a 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.

@bobismijnnaam bobismijnnaam temporarily deployed to Default July 7, 2021 08:51 Inactive
@bobismijnnaam bobismijnnaam temporarily deployed to Default July 7, 2021 08:51 Inactive
@sonarcloud
Copy link

sonarcloud bot commented Jul 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@bobismijnnaam bobismijnnaam merged commit 03538e5 into dev Jul 7, 2021
@bobismijnnaam bobismijnnaam deleted the add-exceptions-patterns-case-study branch July 7, 2021 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants