Skip to content

Commit dac6154

Browse files
Merge pull request #93 from danpoe/function-nondet-structs
--function with nondet structs for Java
2 parents cd40222 + 022b14b commit dac6154

File tree

17 files changed

+433
-42
lines changed

17 files changed

+433
-42
lines changed
281 Bytes
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
class Other
3+
{
4+
public void fail()
5+
{
6+
assert i == 0;
7+
}
8+
9+
private int i;
10+
}
11+
12+
public class Main
13+
{
14+
public static void main(String[] args)
15+
{
16+
Other o = new Other();
17+
}
18+
}
19+
524 Bytes
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Main.class
3+
--function "java::Other.fail:()V"
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring
195 Bytes
Binary file not shown.
180 Bytes
Binary file not shown.
180 Bytes
Binary file not shown.
598 Bytes
Binary file not shown.
277 Bytes
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
class A
3+
{
4+
public int i;
5+
}
6+
7+
class B extends A
8+
{
9+
public int j;
10+
}
11+
12+
class C extends B
13+
{
14+
public int k;
15+
}
16+
17+
class D
18+
{
19+
protected C c;
20+
21+
public void fail()
22+
{
23+
assert c.i == 0 || c.j == 0 || c.k == 0;
24+
}
25+
}
26+
27+
public class Main
28+
{
29+
public static void main(String[] args)
30+
{
31+
D d = new D();
32+
}
33+
}
34+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Main.class
3+
--function "java::D.fail:()V"
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring
244 Bytes
Binary file not shown.
197 Bytes
Binary file not shown.
277 Bytes
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
class A
3+
{
4+
public void dummy() {}
5+
6+
public B b;
7+
}
8+
9+
class B
10+
{
11+
public A a;
12+
}
13+
14+
15+
public class Main
16+
{
17+
public static void main(String[] args)
18+
{
19+
B B = new B();
20+
}
21+
}
22+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Main.class
3+
--function "java::A.dummy:()V"
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)