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
1c7a655c
Commit
1c7a655c
authored
Nov 22, 2019
by
Joachim Müssig
Browse files
create newest version of false positiv examples 'excluding'
parent
5f94a7d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
testdata/FalsePositiveExamples/excluding/excludingNew.joak
0 → 100644
View file @
1c7a655c
directoryPath : "/home/joachim/git/KeYJoana/keyjoana/testdata/FalsePositiveExamples/excluding",
pathKeY : "dependencies/Key/KeY.jar",
javaClass : "",
pathToJar : "testdata/build/src.jar",
pathToJavaFile : "src/",
pathToSDG : "SDG/ExcludingStatements.pdg",
entryMethod : "ExcludingStatements",
annotationPath : "",
fullyAutomatic : true,
pathToSaver : "SDG/ExcludingStatements.dispro",
sources : [{securityLevel : "high", description : {from : "programPart", programPart : "parameter <param> 1 of method int ExcludingStatements.testMethod(int, int)"}}],
sinks : [{securityLevel : "low", description : {from : "programPart", programPart : "exit of method int ExcludingStatements.testMethod(int, int)"}}]
\ No newline at end of file
testdata/FalsePositiveExamples/excluding/slices/sliceSource50Sink47/src/ExcludingStatements.java
View file @
1c7a655c
public
class
ExcludingStatements
{
public
static
void
main
(
String
[
]
args
)
{
new
ExcludingStatements
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
excludingStatements
(
3
,
low
,
high
)
;
return
l
;
}
public
int
excludingStatements
(
int
x
,
int
l
,
int
h
)
{
int
z
=
0
;
if
(
x
==
3
)
{
z
=
h
;
}
if
(
x
!=
3
)
{
l
=
z
;
}
z
=
0
;
return
l
;
}
public
static
void
main
(
String
[
]
args
)
{
new
ExcludingStatements
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
excludingStatements
(
3
,
low
,
high
)
;
return
l
;
}
public
int
excludingStatements
(
int
x
,
int
l
,
int
h
)
{
int
z
=
0
;
if
(
x
==
3
)
{
z
=
h
;
}
if
(
x
!=
3
)
{
l
=
z
;
}
z
=
0
;
return
l
;
}
/*@
@ requires true;
@ ensures b;
...
...
testdata/FalsePositiveExamples/excluding/src/ExcludingStatements.java
View file @
1c7a655c
public
class
ExcludingStatements
{
public
static
void
main
(
String
[
]
args
)
{
new
ExcludingStatements
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
excludingStatements
(
3
,
low
,
high
)
;
return
l
;
}
public
int
excludingStatements
(
int
x
,
int
l
,
int
h
)
{
int
z
=
0
;
if
(
x
==
3
)
{
z
=
h
;
}
if
(
x
!=
3
)
{
l
=
z
;
}
z
=
0
;
return
l
;
}
public
static
void
main
(
String
[
]
args
)
{
new
ExcludingStatements
(
)
.
testMethod
(
1
,
2
)
;
}
public
int
testMethod
(
int
high
,
int
low
)
{
int
l
=
excludingStatements
(
3
,
low
,
high
)
;
return
l
;
}
public
int
excludingStatements
(
int
x
,
int
l
,
int
h
)
{
int
z
=
0
;
if
(
x
==
3
)
{
z
=
h
;
}
if
(
x
!=
3
)
{
l
=
z
;
}
z
=
0
;
return
l
;
}
}
testdata/FalsePositiveExamples/excluding/testdata/build/src.jar
View file @
1c7a655c
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