Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mihai.herda
keyjoana
Commits
1761487e
Commit
1761487e
authored
Nov 22, 2019
by
Joachim Müssig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create newest version of false positiv example 'plusminus'
parent
fadac632
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
30 deletions
+42
-30
testdata/FalsePositiveExamples/plusminus/plusminusNew.joak
testdata/FalsePositiveExamples/plusminus/plusminusNew.joak
+12
-0
testdata/FalsePositiveExamples/plusminus/slices/sliceSource50Sink47/src/PlusMinusFalsePos.java
...nus/slices/sliceSource50Sink47/src/PlusMinusFalsePos.java
+15
-15
testdata/FalsePositiveExamples/plusminus/src/PlusMinusFalsePos.java
...alsePositiveExamples/plusminus/src/PlusMinusFalsePos.java
+15
-15
testdata/FalsePositiveExamples/plusminus/testdata/build/src.jar
...ta/FalsePositiveExamples/plusminus/testdata/build/src.jar
+0
-0
No files found.
testdata/FalsePositiveExamples/plusminus/plusminusNew.joak
0 → 100644
View file @
1761487e
directoryPath : "/home/joachim/git/KeYJoana/keyjoana/testdata/FalsePositiveExamples/plusminus",
pathKeY : "dependencies/Key/KeY.jar",
javaClass : "",
pathToJar : "testdata/build/src.jar",
pathToJavaFile : "src/",
pathToSDG : "SDG/PlusMinusFalsePos.pdg",
entryMethod : "PlusMinusFalsePos",
annotationPath : "",
fullyAutomatic : true,
pathToSaver : "SDG/PlusMinusFalsePos.dispro",
sources : [{securityLevel : "high", description : {from : "programPart", programPart : "parameter <param> 1 of method int PlusMinusFalsePos.test(int, int)"}}],
sinks : [{securityLevel : "low", description : {from : "programPart", programPart : "exit of method int PlusMinusFalsePos.test(int, int)"}}]
\ No newline at end of file
testdata/FalsePositiveExamples/plusminus/slices/sliceSource50Sink47/src/PlusMinusFalsePos.java
View file @
1761487e
public
class
PlusMinusFalsePos
{
public
static
void
main
(
String
args
[
]
)
{
new
PlusMinusFalsePos
(
)
.
test
(
0
,
1
)
;
}
public
int
test
(
int
high
,
int
low
)
{
int
result
=
identity
(
high
,
low
)
;
return
result
;
}
public
int
identity
(
int
high
,
int
low
)
{
low
=
low
+
high
;
low
=
low
-
high
;
return
low
;
}
public
static
void
main
(
String
args
[
]
)
{
new
PlusMinusFalsePos
(
)
.
test
(
0
,
1
)
;
}
public
int
test
(
int
high
,
int
low
)
{
int
result
=
identity
(
high
,
low
)
;
return
result
;
}
public
int
identity
(
int
high
,
int
low
)
{
low
=
low
+
high
;
low
=
low
-
high
;
return
low
;
}
/*@
@ requires true;
@ ensures b;
...
...
testdata/FalsePositiveExamples/plusminus/src/PlusMinusFalsePos.java
View file @
1761487e
public
class
PlusMinusFalsePos
{
public
static
void
main
(
String
args
[
]
)
{
new
PlusMinusFalsePos
(
)
.
test
(
0
,
1
)
;
}
public
int
test
(
int
high
,
int
low
)
{
int
result
=
identity
(
high
,
low
)
;
return
result
;
}
public
int
identity
(
int
high
,
int
low
)
{
low
=
low
+
high
;
low
=
low
-
high
;
return
low
;
}
public
static
void
main
(
String
args
[
]
)
{
new
PlusMinusFalsePos
(
)
.
test
(
0
,
1
)
;
}
public
int
test
(
int
high
,
int
low
)
{
int
result
=
identity
(
high
,
low
)
;
return
result
;
}
public
int
identity
(
int
high
,
int
low
)
{
low
=
low
+
high
;
low
=
low
-
high
;
return
low
;
}
}
testdata/FalsePositiveExamples/plusminus/testdata/build/src.jar
View file @
1761487e
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