Skip to content

Commit d0545ca

Browse files
committed
Handle VarType
1 parent 0af69a7 commit d0545ca

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

key.core/src/main/java/de/uka/ilkd/key/java/loader/JP2KeYConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,8 @@ public Object visit(ReceiverParameter n, Void arg) {
21582158

21592159
@Override
21602160
public Object visit(VarType n, Void arg) {
2161-
return getKeYJavaType(n.resolve());
2161+
var kjt = getKeYJavaType(n.resolve());
2162+
return new TypeRef(kjt);
21622163
}
21632164

21642165
@Override

key.core/src/main/resources/de/uka/ilkd/key/proof/rules/javaRules.key

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -433,20 +433,6 @@
433433
\displayname "variableDeclaration"
434434
};
435435

436-
variableDeclarationAssignVar {
437-
\find(\modality{#allmodal}{.. var #v0 = #vi; ...}\endmodality (post))
438-
\replacewith(\modality{#allmodal}{.. #typeof(#v0) #v0; #v0 = #vi ...}\endmodality (post))
439-
\heuristics(simplify_prog, simplify_prog_subset)
440-
\displayname "variableDeclaration"
441-
};
442-
443-
variableDeclarationFinalAssignVar {
444-
\find(\modality{#allmodal}{.. final var #v0 = #vi; ...}\endmodality (post))
445-
\replacewith(\modality{#allmodal}{.. final #typeof(#v0) #v0; #v0 = #vi ...}\endmodality (post))
446-
\heuristics(simplify_prog, simplify_prog_subset)
447-
\displayname "variableDeclaration"
448-
};
449-
450436
/*
451437
variableDeclarationNullable {
452438
\find(\modality{#allmodal}{.. nullable #t #v0; ...}\endmodality (post))

key.core/src/test/java/de/uka/ilkd/key/proof/runallproofs/ProofCollections.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ public static ProofCollection automaticJavaDL() throws IOException {
653653
g.provable("../../key.core/src/test/resources/testcase/classpath/classpath.key");
654654
g.notprovable("heap/inconsistent_represents/MyClass_m.key");
655655
g.notprovable("heap/inconsistent_represents/MyClass_n.key");
656+
g.provable("standard_key/java_dl/typeInference.key");
656657

657658

658659
g = c.group("FOL");

key.ui/examples/standard_key/java_dl/typeInference.key

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
}
77

88
\problem {
9-
_a + _b + 3 = m(_a, _b)
9+
_a + _b + 3 = TypeInference.m(_a, _b)
1010
}

0 commit comments

Comments
 (0)