Skip to content

Commit 9348087

Browse files
committed
Merge branch 'weigl/key-javaparser3' of https://github.com/KeYProject/key into weigl/key-javaparser3
2 parents 34d1df2 + 8c619d3 commit 9348087

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

key.core/src/test/resources/testcase/classpath/classpath.key

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
\classpath "classpath";
44
\javaSource "javaSource";
55

6+
\programVariables {
7+
cp.E x;
8+
}
69

710
// referencing both classpath and javaSource classes
811
\problem {
912

10-
\[{ cp.C1.m_C(); cp.C1.m_C1(); }\]true
11-
& \[{ js.C2.m_C2(); js.C2.m_C1(); js.C2.m_C();}\]true
12-
& \[{ cp.E x = cp.E.e2; }\]true
13+
wellFormed(heap)
14+
==>
15+
\<{ cp.C1.field = 42; }\>cp.C1.field = 42
16+
& \<{ js.C2.m_C2(); cp.C1.m_C1(); cp.C.m_C(); }\>true
17+
& \<{ x = cp.E.e4; }\> x = cp.E.e4
1318

1419
}

key.core/src/test/resources/testcase/classpath/classpath/C.jml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package cp;
33

44
class C {
55

6+
/*@ public normal_behaviour
7+
@ ensures true;
8+
@*/
69
public static void m_C();
710

811
}

key.core/src/test/resources/testcase/classpath/classpath/C1.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33

44
public class C1 extends C {
55

6+
public static int field; // should not be removed
7+
8+
/*@ public normal_behaviour
9+
@ ensures true;
10+
@*/
611
public static void m_C1() {
7-
that.is.going.to.be.discarded();
12+
// that.is.going.to.be.discarded();
813
}
914

1015
}

key.core/src/test/resources/testcase/classpath/classpath/E.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
enum E {
77
e1(1), e2(20), e3(300);
8-
public static final E e4 = e2;
8+
public static E e4 = e2;
99
E(int i) { }
1010
}
1111

0 commit comments

Comments
 (0)