Commit 584aadd2 authored by Joachim Müssig's avatar Joachim Müssig

create newest version of false positiv example 'precondition' and 'singleFlow'

parent f4852f80
......@@ -14,7 +14,7 @@ HE 5;
HE 6;
HE 9;
HE 15;
HE 82;
HE 81;
PS 3;
PS 4;
CF 4;
......@@ -25,7 +25,7 @@ CD 15;
CE 2;
CE 3;
CE 4;
CE 82;
CE 81;
}
EXIT 2 {
O exit;
......@@ -44,7 +44,7 @@ T "Ljava/lang/Exception";
P 4;
S "Precondition.java":0,0-0,0;
B "<exception>":-2;
CF 82: "exc";
CF 81: "exc";
PO 36;
}
FRMI 4 {
......@@ -56,7 +56,7 @@ S "Precondition.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
LD ["null"];
PS 82;
PS 81;
CF 5;
}
NORM 5 {
......@@ -81,13 +81,13 @@ B "Precondition.main([Ljava/lang/String;)V":4;
Z 0;
HE 7;
HE 8;
HE 83;
HE 82;
PS 7;
PS 8;
CF 91;
CE 7;
CE 8;
CE 83;
CE 82;
CE 91;
CL 37: "virtual";
}
......@@ -99,11 +99,11 @@ P 4;
S "Precondition.java":5,0-5,0;
B "<param> 0":-2;
Z 0;
PS 83;
PS 82;
CF 6;
CD 6;
SU 8;
SU 83;
SU 82;
PI 40;
}
ACTO 8 {
......@@ -212,7 +212,7 @@ P 4;
S "Precondition.java":6,0-6,0;
B "Precondition.main([Ljava/lang/String;)V":13;
Z 0;
CF 82;
CF 81;
}
ENTR 20 {
O entry;
......@@ -261,13 +261,13 @@ Z 0;
U "com.ibm.wala.FakeRootClass.fakeWorldClinit()V";
HE 24;
HE 25;
HE 79;
HE 83;
HE 88;
PS 24;
CF 88;
CD 25;
CE 24;
CE 79;
CE 83;
CE 88;
}
ACTO 24 {
......@@ -381,7 +381,7 @@ U "java.lang.Object.<init>()V";
HE 32;
HE 33;
HE 34;
HE 80;
HE 84;
HE 86;
HE 89;
PS 32;
......@@ -390,7 +390,7 @@ CF 89;
CD 34;
CE 32;
CE 33;
CE 80;
CE 84;
CE 86;
CE 89;
}
......@@ -402,7 +402,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
PS 80;
PS 84;
CF 31;
CD 31;
DD 89;
......@@ -429,13 +429,13 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
HE 35;
HE 36;
HE 81;
HE 85;
PS 35;
PS 36;
CF 93;
CE 35;
CE 36;
CE 81;
CE 85;
CE 93;
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 81;
PS 85;
CF 34;
PI 4;
}
......@@ -475,7 +475,7 @@ HE 38;
HE 39;
HE 40;
HE 41;
HE 84;
HE 79;
PS 39;
PS 40;
CF 40;
......@@ -483,7 +483,7 @@ CD 41;
CE 38;
CE 39;
CE 40;
CE 84;
CE 79;
}
EXIT 38 {
O exit;
......@@ -503,7 +503,7 @@ P 6;
S "Precondition.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 84: "exc";
CF 79: "exc";
PO 8;
}
FRMI 40 {
......@@ -515,7 +515,7 @@ S "Precondition.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
LD ["null"];
PS 84;
PS 79;
CF 42;
DD 42;
}
......@@ -531,7 +531,7 @@ U "java.lang.Object.<init>()V";
HE 42;
HE 43;
HE 44;
HE 85;
HE 80;
HE 87;
HE 90;
PS 42;
......@@ -540,7 +540,7 @@ CF 90;
CD 44;
CE 42;
CE 43;
CE 85;
CE 80;
CE 87;
CE 90;
}
......@@ -552,7 +552,7 @@ P 6;
S "Precondition.java":1,0-1,0;
B "<param> 0":-2;
Z 0;
PS 85;
PS 80;
CF 41;
CD 41;
DD 90;
......@@ -577,7 +577,7 @@ P 6;
S "Precondition.java":1,0-1,0;
B "Precondition.<init>()V":4;
Z 0;
CF 84;
CF 79;
}
ENTR 46 {
O entry;
......@@ -881,41 +881,31 @@ Z 0;
CF 65;
DD 65;
}
ACTO 79 {
O act-out;
FRMO 79 {
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 "Precondition.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 24: "exc";
CF 25;
CF 38;
PO 82;
}
ACTO 80 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 33: "exc";
CF 35;
DD 86;
}
ACTO 81 {
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 "Precondition.java":1,0-1,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 21;
CF 36: "exc";
CF 43: "exc";
CF 44;
DD 87;
DH 79;
}
FRMO 82 {
FRMO 81 {
O form-out;
V "[M] |0|UNIQ(code)";
T "I";
......@@ -924,9 +914,9 @@ S "Precondition.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 2;
PO 81;
PO 85;
}
ACTO 83 {
ACTO 82 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
......@@ -935,31 +925,41 @@ S "Precondition.java":5,0-5,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 8;
DH 82;
DH 81;
}
FRMO 84 {
O form-out;
ACTO 83 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 6;
S "Precondition.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 83;
CF 24: "exc";
CF 25;
}
ACTO 84 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "Ljava/lang/Object.code":-4;
Z 0;
CF 33: "exc";
CF 35;
DD 86;
}
ACTO 85 {
O act-out;
V "[M] |0|UNIQ(code)";
T "I";
P 6;
S "Precondition.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 87;
DH 84;
CF 21;
CF 36: "exc";
}
NORM 86 {
O compound;
......@@ -968,7 +968,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 80;
CF 84;
DD 25;
}
NORM 87 {
......@@ -978,7 +978,7 @@ P 6;
S "Precondition.java":0,0-0,0;
B "Precondition.<init>()V":-1;
Z 0;
CF 85;
CF 80;
DD 40;
}
NORM 88 {
......@@ -988,9 +988,9 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 79;
CF 83;
DD 24;
DD 79;
DD 83;
}
NORM 89 {
O compound;
......@@ -1001,7 +1001,7 @@ B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-1;
Z 0;
CF 86;
DD 33;
DD 80;
DD 84;
}
NORM 90 {
O compound;
......@@ -1012,7 +1012,7 @@ B "Precondition.<init>()V":-1;
Z 0;
CF 87;
DD 43;
DD 85;
DD 80;
}
NORM 91 {
O compound;
......@@ -1021,7 +1021,7 @@ P 4;
S "Precondition.java":5,0-5,0;
B "Precondition.main([Ljava/lang/String;)V":-9;
Z 0;
CF 83;
CF 82;
}
NORM 92 {
O compound;
......@@ -1039,7 +1039,7 @@ P 5;
S "com/ibm/wala/FakeRootClass.java":0,0-0,0;
B "com.ibm.wala.FakeRootClass.fakeRootMethod()V":-9;
Z 0;
CF 81;
CF 85;
}
NORM 94 {
O compound;
......
directoryPath : "/home/joachim/git/KeYJoana/keyjoana/testdata/FalsePositiveExamples/precondition",
pathKeY : "dependencies/Key/KeY.jar",
javaClass : "",
pathToJar : "testdata/build/src.jar",
pathToJavaFile : "src/",
pathToSDG : "SDG/Precondition.pdg",
entryMethod : "Precondition",
annotationPath : "",
fullyAutomatic : true,
pathToSaver : "SDG/Precondition.dispro",
sources : [{securityLevel : "high", description : {from : "programPart", programPart : "parameter <param> 1 of method int Precondition.testMethod(int, int)"}}],
sinks : [{securityLevel : "low", description : {from : "programPart", programPart : "exit of method int Precondition.testMethod(int, int)"}}]
\ No newline at end of file
public class Precondition
{
public static void main ( String [ ] args )
{
new Precondition ( ) . testMethod ( 1 , 2 ) ;
}
public int testMethod ( int high , int low )
{
int l = precondition ( low , high ) ;
return l ;
}
public int precondition ( int l , int h )
{
int x = 0 ;
if ( x > 0 )
{
l = h ;
}
return l ;
}
public static void main ( String [ ] args )
{
new Precondition ( ) . testMethod ( 1 , 2 ) ;
}
public int testMethod ( int high , int low )
{
int l = precondition ( low , high ) ;
return l ;
}
public int precondition ( int l , int h )
{
int x = 0 ;
if ( x > 0 )
{
l = h ;
}
return l ;
}
/*@
@ requires true;
@ ensures b;
......
public class Precondition
{
public static void main ( String [ ] args )
{
new Precondition ( ) . testMethod ( 1 , 2 ) ;
}
public int testMethod ( int high , int low )
{
int l = precondition ( low , high ) ;
return l ;
}
public int precondition ( int l , int h )
{
int x = 0 ;
if ( x > 0 )
{
l = h ;
}
return l ;
}
public static void main ( String [ ] args )
{
new Precondition ( ) . testMethod ( 1 , 2 ) ;
}
public int testMethod ( int high , int low )
{
int l = precondition ( low , high ) ;
return l ;
}
public int precondition ( int l , int h )
{
int x = 0 ;
if ( x > 0 )
{
l = h ;
}
return l ;
}
}
......@@ -14,7 +14,7 @@ HE 5;
HE 6;
HE 9;
HE 15;
HE 119;
HE 116;
PS 3;
PS 4;
CF 4;
......@@ -25,7 +25,7 @@ CD 15;
CE 2;
CE 3;
CE 4;
CE 119;
CE 116;
}
EXIT 2 {
O exit;
......@@ -44,7 +44,7 @@ T "Ljava/lang/Exception";
P 4;
S "SingleFlow.java":0,0-0,0;
B "<exception>":-2;
CF 119: "exc";
CF 116: "exc";
PO 36;
}
FRMI 4 {
......@@ -56,7 +56,7 @@ S "SingleFlow.java":0,0-0,0;
B "<param> 1":-2;
Z 0;
LD ["null"];
PS 119;
PS 116;
CF 5;
}
NORM 5 {
......@@ -81,13 +81,13 @@ B "SingleFlow.main([Ljava/lang/String;)V":4;
Z 0;
HE 7;
HE 8;
HE 120;
HE 117;
PS 7;
PS 8;
CF 128;
CE 7;
CE 8;
CE 120;
CE 117;
CE 128;
CL 37: "virtual";
}
......@@ -99,11 +99,11 @@ P 4;
S "SingleFlow.java":5,0-5,0;
B "<param> 0":-2;
Z 0;
PS 120;
PS 117;
CF 6;
CD 6;
SU 8;
SU 120;
SU 117;
PI 40;
}
ACTO 8 {
......@@ -212,7 +212,7 @@ P 4;
S "SingleFlow.java":6,0-6,0;
B "SingleFlow.main([Ljava/lang/String;)V":13;
Z 0;
CF 119;
CF 116;
}
ENTR 20 {
O entry;
......@@ -261,13 +261,13 @@ Z 0;
U "com.ibm.wala.FakeRootClass.fakeWorldClinit()V";
HE 24;
HE 25;
HE 116;
HE 120;
HE 125;
PS 24;
CF 125;
CD 25;
CE 24;
CE 116;
CE 120;
CE 125;
}
ACTO 24 {
......@@ -381,7 +381,7 @@ U "java.lang.Object.<init>()V";
HE 32;
HE 33;
HE 34;
HE 117;
HE 121;
HE 123;
HE 126;
PS 32;
......@@ -390,7 +390,7 @@ CF 126;
CD 34;
CE 32;
CE 33;
CE 117;
CE 121;
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 117;
PS 121;
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 118;
HE 122;
PS 35;
PS 36;
CF 130;
CE 35;
CE 36;
CE 118;
CE 122;
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 118;
PS 122;
CF 34;
PI 4;
}
......@@ -475,7 +475,7 @@ HE 38;
HE 39;
HE 40;
HE 41;
HE 121;
HE 118;
PS 39;
PS 40;
CF 40;
......@@ -483,7 +483,7 @@ CD 41;
CE 38;
CE 39;
CE 40;
CE 121;
CE 118;
}
EXIT 38 {
O exit;
......@@ -503,7 +503,7 @@ P 6;
S "SingleFlow.java":0,0-0,0;
B "<exception>":-2;
Z 0;
CF 121: "exc";
CF 118: "exc";
PO 8;
}
FRMI 40 {
......@@ -515,7 +515,7 @@ S "SingleFlow.java":0,0-0,0;
B "<param> 0":-2;
Z 0;
LD ["null"];
PS 121;
PS 118;
CF 42;
DD 42;
}
......@@ -531,7 +531,7 @@ U "java.lang.Object.<init>()V";
HE 42;
HE 43;
HE 44;
HE 122;
HE 119;