Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mihai.herda
keyjoana
Commits
5f94a7d1
Commit
5f94a7d1
authored
Nov 22, 2019
by
Joachim Müssig
Browse files
create newest version of false positiv examples
parent
8fefd96b
Changes
10
Hide whitespace changes
Inline
Side-by-side
testdata/FalsePositiveExamples/array/SDG/ArrayAccess.pdg
View file @
5f94a7d1
...
...
@@ -13,7 +13,7 @@ HE 4;
HE 5;
HE 6;
HE 9;
HE 1
06
;
HE 1
11
;
PS 3;
PS 4;
CF 4;
...
...
@@ -23,7 +23,7 @@ CD 9;
CE 2;
CE 3;
CE 4;
CE 1
06
;
CE 1
11
;
}
EXIT 2 {
O exit;
...
...
@@ -43,7 +43,7 @@ P 4;
S "ArrayAccess.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 1
06
: "exc";
CF 1
11
: "exc";
PO 36;
}
FRMI 4 {
...
...
@@ -55,7 +55,7 @@ S "ArrayAccess.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
LD ["null"];
PS 1
06
;
PS 1
11
;
CF 5;
}
NORM 5 {
...
...
@@ -80,13 +80,13 @@ B "ArrayAccess.main([Ljava/lang/String;)V":4;
Z 0;
HE 7;
HE 8;
HE 1
07
;
HE 1
12
;
PS 7;
PS 8;
CF 118;
CE 7;
CE 8;
CE 1
07
;
CE 1
12
;
CE 118;
CL 37: "virtual";
}
...
...
@@ -98,11 +98,11 @@ P 4;
S "ArrayAccess.java":5,0-5,0;
B "<param> 0":-2;
Z 0;
PS 1
07
;
PS 1
12
;
CF 6;
CD 6;
SU 8;
SU 1
07
;
SU 1
12
;
PI 40;
}
ACTO 8 {
...
...
@@ -214,7 +214,7 @@ P 4;
S "ArrayAccess.java":6,0-6,0;
B "ArrayAccess.main([Ljava/lang/String;)V":13;
Z 0;
CF 1
06
;
CF 1
11
;
}
ENTR 20 {
O entry;
...
...
@@ -263,13 +263,13 @@ Z 0;
U "com.ibm.wala.FakeRootClass.fakeWorldClinit()V";
HE 24;
HE 25;
HE 1
1
0;
HE 10
8
;
HE 115;
PS 24;
CF 115;
CD 25;
CE 24;
CE 1
1
0;
CE 10
8
;
CE 115;
}
ACTO 24 {
...
...
@@ -383,7 +383,7 @@ U "java.lang.Object.<init>()V";
HE 32;
HE 33;
HE 34;
HE 1
11
;
HE 1
09
;
HE 113;
HE 116;
PS 32;
...
...
@@ -392,7 +392,7 @@ CF 116;
CD 34;
CE 32;
CE 33;
CE 1
11
;
CE 1
09
;
CE 113;
CE 116;
}
...
...
@@ -404,7 +404,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
PS 1
11
;
PS 1
09
;
CF 31;
CD 31;
DD 116;
...
...
@@ -431,13 +431,13 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
HE 35;
HE 36;
HE 11
2
;
HE 11
0
;
PS 35;
PS 36;
CF 120;
CE 35;
CE 36;
CE 11
2
;
CE 11
0
;
CE 120;
CL 1: "virtual";
}
...
...
@@ -449,7 +449,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
PS 11
2
;
PS 11
0
;
CF 34;
PI 4;
}
...
...
@@ -478,7 +478,7 @@ HE 38;
HE 39;
HE 40;
HE 41;
HE 10
8
;
HE 10
6
;
PS 39;
PS 40;
CF 40;
...
...
@@ -486,7 +486,7 @@ CD 41;
CE 38;
CE 39;
CE 40;
CE 10
8
;
CE 10
6
;
}
EXIT 38 {
O exit;
...
...
@@ -506,7 +506,7 @@ P 6;
S "ArrayAccess.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 10
8
: "exc";
CF 10
6
: "exc";
PO 8;
}
FRMI 40 {
...
...
@@ -518,7 +518,7 @@ S "ArrayAccess.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
LD ["null"];
PS 10
8
;
PS 10
6
;
CF 42;
DD 42;
}
...
...
@@ -534,7 +534,7 @@ U "java.lang.Object.<init>()V";
HE 42;
HE 43;
HE 44;
HE 10
9
;
HE 10
7
;
HE 114;
HE 117;
PS 42;
...
...
@@ -543,7 +543,7 @@ CF 117;
CD 44;
CE 42;
CE 43;
CE 10
9
;
CE 10
7
;
CE 114;
CE 117;
}
...
...
@@ -555,7 +555,7 @@ P 6;
S "ArrayAccess.java":1,0-1,0;
B "<param> 0":-2;
Z 0;
PS 10
9
;
PS 10
7
;
CF 41;
CD 41;
DD 117;
...
...
@@ -580,7 +580,7 @@ P 6;
S "ArrayAccess.java":1,0-1,0;
B "ArrayAccess.<init>()V":4;
Z 0;
CF 10
8
;
CF 10
6
;
}
ENTR 46 {
O entry;
...
...
@@ -1169,36 +1169,14 @@ FRMO 106 {
O form-out;
V "[M] |0|UNIQ(code)";
T "I";
P 4;
S "ArrayAccess.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 2;
PO 112;
}
ACTO 107 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 4;
S "ArrayAccess.java":5,0-5,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 8;
DH 106;
}
FRMO 108 {
O form-out;
V "[M] |0|UNIQ(code)";
T "I";
P 6;
S "ArrayAccess.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 38;
PO 1
07
;
PO 1
12
;
}
ACTO 10
9
{
ACTO 10
7
{
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
...
...
@@ -1209,9 +1187,9 @@ Z 0;
CF 43: "exc";
CF 44;
DD 114;
DH 10
8
;
DH 10
6
;
}
ACTO 1
1
0 {
ACTO 10
8
{
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
...
...
@@ -1222,7 +1200,7 @@ Z 0;
CF 24: "exc";
CF 25;
}
ACTO 1
11
{
ACTO 1
09
{
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
...
...
@@ -1234,7 +1212,7 @@ CF 33: "exc";
CF 35;
DD 113;
}
ACTO 11
2
{
ACTO 11
0
{
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
...
...
@@ -1245,6 +1223,28 @@ Z 0;
CF 21;
CF 36: "exc";
}
FRMO 111 {
O form-out;
V "[M] |0|UNIQ(code)";
T "I";
P 4;
S "ArrayAccess.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 2;
PO 110;
}
ACTO 112 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 4;
S "ArrayAccess.java":5,0-5,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 8;
DH 111;
}
NORM 113 {
O compound;
V "immutable";
...
...
@@ -1252,7 +1252,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 1
11
;
CF 1
09
;
DD 25;
}
NORM 114 {
...
...
@@ -1262,7 +1262,7 @@ P 6;
S "ArrayAccess.java":0,0-0,0;
B "ArrayAccess.<init>()V":-1;
Z 0;
CF 10
9
;
CF 10
7
;
DD 40;
}
NORM 115 {
...
...
@@ -1272,9 +1272,9 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 1
1
0;
CF 10
8
;
DD 24;
DD 1
1
0;
DD 10
8
;
}
NORM 116 {
O compound;
...
...
@@ -1285,7 +1285,7 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 113;
DD 33;
DD 1
11
;
DD 1
09
;
}
NORM 117 {
O compound;
...
...
@@ -1296,7 +1296,7 @@ B "ArrayAccess.<init>()V":-1;
Z 0;
CF 114;
DD 43;
DD 10
9
;
DD 10
7
;
}
NORM 118 {
O compound;
...
...
@@ -1305,7 +1305,7 @@ P 4;
S "ArrayAccess.java":5,0-5,0;
B "ArrayAccess.main([Ljava/lang/String;)V":-9;
Z 0;
CF 1
07
;
CF 1
12
;
}
NORM 119 {
O compound;
...
...
@@ -1325,7 +1325,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-9;
Z 0;
CF 11
2
;
CF 11
0
;
}
NORM 121 {
O compound;
...
...
testdata/FalsePositiveExamples/array/array.joak
View file @
5f94a7d1
directoryPath : "",
pathKeY : "dependencies/Key/KeY.jar",
javaClass : "",
pathToJar : "
/home/mihai/workspace/keyjoana/diss/array/
testdata/build/src.jar",
pathToJavaFile : "
/home/mihai/workspace/keyjoana/diss/array/
src/",
pathToSDG : "
/home/mihai/workspace/keyjoana/diss/array/
SDG/ArrayAccess.pdg",
pathToJar : "testdata/build/src.jar",
pathToJavaFile : "src/",
pathToSDG : "SDG/ArrayAccess.pdg",
entryMethod : "ArrayAccess",
annotationPath : "",
fullyAutomatic : true,
pathToSaver : "
/home/mihai/workspace/keyjoana/diss/array/
SDG/ArrayAccess.dispro",
pathToSaver : "SDG/ArrayAccess.dispro",
sources : [{securityLevel : "high", description : {from : "programPart", programPart : "parameter <param> 1 of method int ArrayAccess.testMethod(int, int)"}}],
sinks : [{securityLevel : "low", description : {from : "programPart", programPart : "exit of method int ArrayAccess.testMethod(int, int)"}}]
\ No newline at end of file
testdata/FalsePositiveExamples/array/slices/sliceSource50Sink47/src/ArrayAccess.java
View file @
5f94a7d1
public
class
ArrayAccess
{
public
static
void
main
(
String
[
]
args
)
{
new
ArrayAccess
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
arrayAccess
(
low
,
high
)
;
return
l
;
}
private
int
arrayAccess
(
int
l
,
int
h
)
{
int
[
]
array
=
new
int
[
3
]
;
array
[
0
]
=
l
;
array
[
1
]
=
h
;
array
[
2
]
=
array
[
1
]
;
return
array
[
0
]
;
}
public
static
void
main
(
String
[
]
args
)
{
new
ArrayAccess
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
arrayAccess
(
low
,
high
)
;
return
l
;
}
private
int
arrayAccess
(
int
l
,
int
h
)
{
int
[
]
array
=
new
int
[
3
]
;
array
[
0
]
=
l
;
array
[
1
]
=
h
;
array
[
2
]
=
array
[
1
]
;
return
array
[
0
]
;
}
/*@
@ requires true;
@ ensures b;
...
...
testdata/FalsePositiveExamples/array/src/ArrayAccess.java
View file @
5f94a7d1
public
class
ArrayAccess
{
public
static
void
main
(
String
[
]
args
)
{
new
ArrayAccess
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
arrayAccess
(
low
,
high
)
;
return
l
;
}
private
int
arrayAccess
(
int
l
,
int
h
)
{
int
[
]
array
=
new
int
[
3
]
;
array
[
0
]
=
l
;
array
[
1
]
=
h
;
array
[
2
]
=
array
[
1
]
;
return
array
[
0
]
;
}
public
static
void
main
(
String
[
]
args
)
{
new
ArrayAccess
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
arrayAccess
(
low
,
high
)
;
return
l
;
}
private
int
arrayAccess
(
int
l
,
int
h
)
{
int
[
]
array
=
new
int
[
3
]
;
array
[
0
]
=
l
;
array
[
1
]
=
h
;
array
[
2
]
=
array
[
1
]
;
return
array
[
0
]
;
}
}
testdata/FalsePositiveExamples/array/testdata/build/src.jar
View file @
5f94a7d1
No preview for this file type
testdata/FalsePositiveExamples/branching/SDG/Branching.pdg
View file @
5f94a7d1
...
...
@@ -14,7 +14,7 @@ HE 5;
HE 6;
HE 9;
HE 15;
HE 11
8
;
HE 1
2
1;
PS 3;
PS 4;
CF 4;
...
...
@@ -25,7 +25,7 @@ CD 15;
CE 2;
CE 3;
CE 4;
CE 11
8
;
CE 1
2
1;
}
EXIT 2 {
O exit;
...
...
@@ -44,7 +44,7 @@ T "Ljava/lang/Exception";
P 4;
S "Branching.java":0,0-0,0;
B "<exception>":-2;
CF 11
8
: "exc";
CF 1
2
1: "exc";
PO 36;
}
FRMI 4 {
...
...
@@ -56,7 +56,7 @@ S "Branching.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
LD ["null"];
PS 11
8
;
PS 1
2
1;
CF 5;
}
NORM 5 {
...
...
@@ -81,13 +81,13 @@ B "Branching.main([Ljava/lang/String;)V":4;
Z 0;
HE 7;
HE 8;
HE 1
19
;
HE 1
22
;
PS 7;
PS 8;
CF 130;
CE 7;
CE 8;
CE 1
19
;
CE 1
22
;
CE 130;
CL 37: "virtual";
}
...
...
@@ -99,11 +99,11 @@ P 4;
S "Branching.java":5,0-5,0;
B "<param> 0":-2;
Z 0;
PS 1
19
;
PS 1
22
;
CF 6;
CD 6;
SU 8;
SU 1
19
;
SU 1
22
;
PI 40;
}
ACTO 8 {
...
...
@@ -212,7 +212,7 @@ P 4;
S "Branching.java":6,0-6,0;
B "Branching.main([Ljava/lang/String;)V":13;
Z 0;
CF 11
8
;
CF 1
2
1;
}
ENTR 20 {
O entry;
...
...
@@ -261,13 +261,13 @@ Z 0;
U "com.ibm.wala.FakeRootClass.fakeWorldClinit()V";
HE 24;
HE 25;
HE 1
22
;
HE 1
18
;
HE 127;
PS 24;
CF 127;
CD 25;
CE 24;
CE 1
22
;
CE 1
18
;
CE 127;
}
ACTO 24 {
...
...
@@ -381,7 +381,7 @@ U "java.lang.Object.<init>()V";
HE 32;
HE 33;
HE 34;
HE 1
23
;
HE 1
19
;
HE 125;
HE 128;
PS 32;
...
...
@@ -390,7 +390,7 @@ CF 128;
CD 34;
CE 32;
CE 33;
CE 1
23
;
CE 1
19
;
CE 125;
CE 128;
}
...
...
@@ -402,7 +402,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
PS 1
23
;
PS 1
19
;
CF 31;
CD 31;
DD 128;
...
...
@@ -429,13 +429,13 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
HE 35;
HE 36;
HE 12
4
;
HE 12
0
;
PS 35;
PS 36;
CF 132;
CE 35;
CE 36;
CE 12
4
;
CE 12
0
;
CE 132;
CL 1: "virtual";
}
...
...
@@ -447,7 +447,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
PS 12
4
;
PS 12
0
;
CF 34;
PI 4;
}
...
...
@@ -475,7 +475,7 @@ HE 38;
HE 39;
HE 40;
HE 41;
HE 12
0
;
HE 12
3
;
PS 39;
PS 40;
CF 40;
...
...
@@ -483,7 +483,7 @@ CD 41;
CE 38;
CE 39;
CE 40;
CE 12
0
;
CE 12
3
;
}
EXIT 38 {
O exit;
...
...
@@ -503,7 +503,7 @@ P 6;
S "Branching.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 12
0
: "exc";
CF 12
3
: "exc";
PO 8;
}
FRMI 40 {
...
...
@@ -515,7 +515,7 @@ S "Branching.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
LD ["null"];
PS 12
0
;
PS 12
3
;
CF 42;
DD 42;
}
...
...
@@ -531,7 +531,7 @@ U "java.lang.Object.<init>()V";
HE 42;
HE 43;
HE 44;
HE 12
1
;
HE 12
4
;
HE 126;