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
fadac632
Commit
fadac632
authored
Nov 22, 2019
by
Joachim Müssig
Browse files
create newest version of false positiv example 'nested'
parent
76480379
Changes
5
Hide whitespace changes
Inline
Side-by-side
testdata/FalsePositiveExamples/nested/SDG/Nested.pdg
View file @
fadac632
...
...
@@ -14,7 +14,7 @@ HE 5;
HE 6;
HE 9;
HE 15;
HE 11
8
;
HE 11
9
;
PS 3;
PS 4;
CF 4;
...
...
@@ -25,7 +25,7 @@ CD 15;
CE 2;
CE 3;
CE 4;
CE 11
8
;
CE 11
9
;
}
EXIT 2 {
O exit;
...
...
@@ -44,7 +44,7 @@ T "Ljava/lang/Exception";
P 4;
S "Nested.java":0,0-0,0;
B "<exception>":-2;
CF 11
8
: "exc";
CF 11
9
: "exc";
PO 36;
}
FRMI 4 {
...
...
@@ -56,7 +56,7 @@ S "Nested.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
LD ["null"];
PS 11
8
;
PS 11
9
;
CF 5;
}
NORM 5 {
...
...
@@ -81,13 +81,13 @@ B "Nested.main([Ljava/lang/String;)V":4;
Z 0;
HE 7;
HE 8;
HE 1
19
;
HE 1
20
;
PS 7;
PS 8;
CF 128;
CE 7;
CE 8;
CE 1
19
;
CE 1
20
;
CE 128;
CL 37: "virtual";
}
...
...
@@ -99,11 +99,11 @@ P 4;
S "Nested.java":5,0-5,0;
B "<param> 0":-2;
Z 0;
PS 1
19
;
PS 1
20
;
CF 6;
CD 6;
SU 8;
SU 1
19
;
SU 1
20
;
PI 40;
}
ACTO 8 {
...
...
@@ -212,7 +212,7 @@ P 4;
S "Nested.java":6,0-6,0;
B "Nested.main([Ljava/lang/String;)V":13;
Z 0;
CF 11
8
;
CF 11
9
;
}
ENTR 20 {
O entry;
...
...
@@ -261,13 +261,13 @@ Z 0;
U "com.ibm.wala.FakeRootClass.fakeWorldClinit()V";
HE 24;
HE 25;
HE 1
20
;
HE 1
16
;
HE 125;
PS 24;
CF 125;
CD 25;
CE 24;
CE 1
20
;
CE 1
16
;
CE 125;
}
ACTO 24 {
...
...
@@ -381,7 +381,7 @@ U "java.lang.Object.<init>()V";
HE 32;
HE 33;
HE 34;
HE 1
2
1;
HE 11
7
;
HE 123;
HE 126;
PS 32;
...
...
@@ -390,7 +390,7 @@ CF 126;
CD 34;
CE 32;
CE 33;
CE 1
2
1;
CE 11
7
;
CE 123;
CE 126;
}
...
...
@@ -402,7 +402,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
PS 1
2
1;
PS 11
7
;
CF 31;
CD 31;
DD 126;
...
...
@@ -429,13 +429,13 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
HE 35;
HE 36;
HE 1
22
;
HE 1
18
;
PS 35;
PS 36;
CF 130;
CE 35;
CE 36;
CE 1
22
;
CE 1
18
;
CE 130;
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 1
22
;
PS 1
18
;
CF 34;
PI 4;
}
...
...
@@ -475,7 +475,7 @@ HE 38;
HE 39;
HE 40;
HE 41;
HE 11
6
;
HE 1
2
1;
PS 39;
PS 40;
CF 40;
...
...
@@ -483,7 +483,7 @@ CD 41;
CE 38;
CE 39;
CE 40;
CE 11
6
;
CE 1
2
1;
}
EXIT 38 {
O exit;
...
...
@@ -503,7 +503,7 @@ P 6;
S "Nested.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 11
6
: "exc";
CF 1
2
1: "exc";
PO 8;
}
FRMI 40 {
...
...
@@ -515,7 +515,7 @@ S "Nested.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
LD ["null"];
PS 11
6
;
PS 1
2
1;
CF 42;
DD 42;
}
...
...
@@ -531,7 +531,7 @@ U "java.lang.Object.<init>()V";
HE 42;
HE 43;
HE 44;
HE 1
17
;
HE 1
22
;
HE 124;
HE 127;
PS 42;
...
...
@@ -540,7 +540,7 @@ CF 127;
CD 44;
CE 42;
CE 43;
CE 1
17
;
CE 1
22
;
CE 124;
CE 127;
}
...
...
@@ -552,7 +552,7 @@ P 6;
S "Nested.java":1,0-1,0;
B "<param> 0":-2;
Z 0;
PS 1
17
;
PS 1
22
;
CF 41;
CD 41;
DD 127;
...
...
@@ -577,7 +577,7 @@ P 6;
S "Nested.java":1,0-1,0;
B "Nested.<init>()V":4;
Z 0;
CF 11
6
;
CF 1
2
1;
}
ENTR 46 {
O entry;
...
...
@@ -1251,85 +1251,85 @@ Z 0;
CF 105;
DD 105;
}
FRM
O 116 {
O
form
-out;
ACT
O 116 {
O
act
-out;
V "[M] |0|UNIQ(code)";
T "I";
P
6
;
S "
Nested
.java":0,0-0,0;
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF
38
;
PO 119
;
CF
24: "exc"
;
CF 25
;
}
ACTO 117 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P
6
;
S "
Nested
.java":
1
,0-
1
,0;
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":
0
,0-
0
,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 43: "exc";
CF 44;
DD 124;
DH 116;
CF 33: "exc";
CF 35;
DD 123;
}
FRM
O 118 {
O
form
-out;
ACT
O 118 {
O
act
-out;
V "[M] |0|UNIQ(code)";
T "I";
P
4
;
S "
Nested
.java":0,0-0,0;
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 2;
PO 122
;
CF 2
1
;
CF 36: "exc"
;
}
ACT
O 119 {
O
act
-out;
FRM
O 119 {
O
form
-out;
V "[M] |0|UNIQ(code)";
T "I";
P 4;
S "Nested.java":
5
,0-
5
,0;
S "Nested.java":
0
,0-
0
,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF
8
;
DH
118;
CF
2
;
PO
118;
}
ACTO 120 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":
0
,0-
0
,0;
P
4
;
S "
Nested
.java":
5
,0-
5
,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF
24: "exc"
;
CF 25
;
CF
8
;
DH 119
;
}
ACT
O 121 {
O
act
-out;
FRM
O 121 {
O
form
-out;
V "[M] |0|UNIQ(code)";
T "I";
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":0,0-0,0;
P
6
;
S "
Nested
.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 33: "exc";
CF 35;
DD 123;
CF 38;
PO 120;
}
ACTO 122 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P
5
;
S "
com/ibm/wala/FakeRootClass
.java":
0
,0-
0
,0;
P
6
;
S "
Nested
.java":
1
,0-
1
,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 21;
CF 36: "exc";
CF 43: "exc";
CF 44;
DD 124;
DH 121;
}
NORM 123 {
O compound;
...
...
@@ -1338,7 +1338,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
2
1;
CF 11
7
;
DD 25;
}
NORM 124 {
...
...
@@ -1348,7 +1348,7 @@ P 6;
S "Nested.java":0,0-0,0;
B "Nested.<init>()V":-1;
Z 0;
CF 1
17
;
CF 1
22
;
DD 40;
}
NORM 125 {
...
...
@@ -1358,9 +1358,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
20
;
CF 1
16
;
DD 24;
DD 1
20
;
DD 1
16
;
}
NORM 126 {
O compound;
...
...
@@ -1371,7 +1371,7 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 123;
DD 33;
DD 1
2
1;
DD 11
7
;
}
NORM 127 {
O compound;
...
...
@@ -1382,7 +1382,7 @@ B "Nested.<init>()V":-1;
Z 0;
CF 124;
DD 43;
DD 1
17
;
DD 1
22
;
}
NORM 128 {
O compound;
...
...
@@ -1391,7 +1391,7 @@ P 4;
S "Nested.java":5,0-5,0;
B "Nested.main([Ljava/lang/String;)V":-9;
Z 0;
CF 1
19
;
CF 1
20
;
}
NORM 129 {
O compound;
...
...
@@ -1409,7 +1409,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-9;
Z 0;
CF 1
22
;
CF 1
18
;
}
NORM 131 {
O compound;
...
...
testdata/FalsePositiveExamples/nested/nestedNew.joak
0 → 100644
View file @
fadac632
directoryPath : "/home/joachim/git/KeYJoana/keyjoana/testdata/FalsePositiveExamples/nested",
pathKeY : "dependencies/Key/KeY.jar",
javaClass : "",
pathToJar : "testdata/build/src.jar",
pathToJavaFile : "src/",
pathToSDG : "SDG/Nested.pdg",
entryMethod : "Nested",
annotationPath : "",
fullyAutomatic : true,
pathToSaver : "SDG/Nested.dispro",
sources : [{securityLevel : "high", description : {from : "programPart", programPart : "parameter <param> 1 of method int Nested.testMethod(int, int)"}}],
sinks : [{securityLevel : "low", description : {from : "programPart", programPart : "exit of method int Nested.testMethod(int, int)"}}]
\ No newline at end of file
testdata/FalsePositiveExamples/nested/slices/sliceSource50Sink47/src/Nested.java
View file @
fadac632
public
class
Nested
{
public
static
void
main
(
String
[
]
args
)
{
new
Nested
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
nested
(
high
,
low
)
;
return
l
;
}
public
int
nested
(
int
high
,
int
low
)
{
low
=
plusMinus
(
low
,
high
)
;
return
low
;
}
private
int
plusMinus
(
int
low
,
int
high
)
{
low
=
low
+
high
;
low
=
minus
(
low
,
high
)
;
return
low
;
}
private
int
minus
(
int
low
,
int
high
)
{
low
=
low
-
high
;
return
low
;
}
public
static
void
main
(
String
[
]
args
)
{
new
Nested
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
nested
(
high
,
low
)
;
return
l
;
}
public
int
nested
(
int
high
,
int
low
)
{
low
=
plusMinus
(
low
,
high
)
;
return
low
;
}
private
int
plusMinus
(
int
low
,
int
high
)
{
low
=
low
+
high
;
low
=
minus
(
low
,
high
)
;
return
low
;
}
private
int
minus
(
int
low
,
int
high
)
{
low
=
low
-
high
;
return
low
;
}
/*@
@ requires true;
@ ensures b;
...
...
testdata/FalsePositiveExamples/nested/src/Nested.java
View file @
fadac632
public
class
Nested
{
public
static
void
main
(
String
[
]
args
)
{
new
Nested
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
nested
(
high
,
low
)
;
return
l
;
}
public
int
nested
(
int
high
,
int
low
)
{
low
=
plusMinus
(
low
,
high
)
;
return
low
;
}
private
int
plusMinus
(
int
low
,
int
high
)
{
low
=
low
+
high
;
low
=
minus
(
low
,
high
)
;
return
low
;
}
private
int
minus
(
int
low
,
int
high
)
{
low
=
low
-
high
;
return
low
;
}
public
static
void
main
(
String
[
]
args
)
{
new
Nested
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
nested
(
high
,
low
)
;
return
l
;
}
public
int
nested
(
int
high
,
int
low
)
{
low
=
plusMinus
(
low
,
high
)
;
return
low
;
}
private
int
plusMinus
(
int
low
,
int
high
)
{
low
=
low
+
high
;
low
=
minus
(
low
,
high
)
;
return
low
;
}
private
int
minus
(
int
low
,
int
high
)
{
low
=
low
-
high
;
return
low
;
}
}
testdata/FalsePositiveExamples/nested/testdata/build/src.jar
View file @
fadac632
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment