File tree 3 files changed +30
-0
lines changed
regression/jbmc-strings/StringEquals
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ public class Test {
2
+ public static void check (int i , String s ) {
3
+ String t = "Hello World" ;
4
+ Integer x = new Integer (2 );
5
+ if (i ==0 )
6
+ assert ("Hello World" .equals (t ));
7
+ else if (i ==1 )
8
+ assert (! "Hello World" .equals (s ));
9
+ else if (i ==2 )
10
+ assert (! "Hello World" .equals (x ));
11
+ else if (i ==3 )
12
+ assert ("Hello World" .equals (x ));
13
+ else if (i ==4 )
14
+ assert (! s .equals (x ));
15
+ else if (i ==5 )
16
+ assert (s .equals (x ));
17
+ }
18
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ Test.class
3
+ --refine-strings --string-max-length 1000 --function Test.check
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ assertion at file Test.java line 6 .* SUCCESS
7
+ assertion at file Test.java line 8 .* FAILURE
8
+ assertion at file Test.java line 10 .* SUCCESS
9
+ assertion at file Test.java line 12 .* FAILURE
10
+ assertion at file Test.java line 14 .* SUCCESS
11
+ assertion at file Test.java line 16 .* FAILURE
12
+ --
You can’t perform that action at this time.
0 commit comments