Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
keyjoana
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mihai.herda
keyjoana
Commits
1c7a655c
Commit
1c7a655c
authored
Nov 22, 2019
by
Joachim Müssig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create newest version of false positiv examples 'excluding'
parent
5f94a7d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
46 deletions
+58
-46
testdata/FalsePositiveExamples/excluding/excludingNew.joak
testdata/FalsePositiveExamples/excluding/excludingNew.joak
+12
-0
testdata/FalsePositiveExamples/excluding/slices/sliceSource50Sink47/src/ExcludingStatements.java
...g/slices/sliceSource50Sink47/src/ExcludingStatements.java
+23
-23
testdata/FalsePositiveExamples/excluding/src/ExcludingStatements.java
...sePositiveExamples/excluding/src/ExcludingStatements.java
+23
-23
testdata/FalsePositiveExamples/excluding/testdata/build/src.jar
...ta/FalsePositiveExamples/excluding/testdata/build/src.jar
+0
-0
No files found.
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