Closed flo2702 closed 5 months ago
This pull request addresses #3407.
KeY now supports the type \TYPE, the subtype operator <:, and the function \type.
\TYPE
<:
\type
The following method contract illustrates their semantics:
class A { int f; //@ ghost \TYPE packed; //@ invariant packed <: \type(A) ==> f > 0; } class B extends A { //@ invariant packed <: \type(B) ==> f > 1; //@ requires this.packed == \type(B); //@ ensures f > 0; //@ ensures f > 1; void subtypes() {} }
The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.
Related Issue
This pull request addresses #3407.
Intended Change
KeY now supports the type
\TYPE
, the subtype operator<:
, and the function\type
.The following method contract illustrates their semantics:
Type of pull request
Ensuring quality
The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.