Skip to content

Commit 9b19015

Browse files
Fix tests with incorrect main methods
1 parent b047091 commit 9b19015

File tree

124 files changed

+116
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+116
-118
lines changed

jbmc/regression/jbmc-strings/bug-test-gen-119-2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringValueOfLong.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function StringValueOfLong.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc-strings/bug-test-gen-119/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringValueOfBool.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function StringValueOfBool.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc-strings/java_case/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_case.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_case.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_case/test_case.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_case
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = new String("Ab");
66
String l = s.toLowerCase();

jbmc/regression/jbmc-strings/java_char_array/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_char_array.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_char_array.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 9.* FAILURE$

jbmc/regression/jbmc-strings/java_char_array/test_char_array.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_char_array
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = "abc";
66
char [] str = s.toCharArray();

jbmc/regression/jbmc-strings/java_char_at/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_char_at.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_char_at.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 5.* FAILURE$

jbmc/regression/jbmc-strings/java_char_at/test_char_at.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_char_at {
22

3-
public static void main(/*String[] argv*/) {
3+
public static void main() {
44
String s = new String("abc");
55
assert(s.charAt(2)!='c');
66
}

jbmc/regression/jbmc-strings/java_code_point/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_code_point.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_code_point.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_code_point/test_code_point.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_code_point
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = "!𐤇𐤄𐤋𐤋𐤅";
66
StringBuilder sb = new StringBuilder();

jbmc/regression/jbmc-strings/java_compare/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_compare.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_compare.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 7.* FAILURE$

jbmc/regression/jbmc-strings/java_compare/test_compare.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_compare
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s1 = "ab";
66
String s2 = "aa";

jbmc/regression/jbmc-strings/java_concat/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_concat.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_concat.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 10.* SUCCESS$

jbmc/regression/jbmc-strings/java_concat/test_concat.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_concat
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = new String("pi");
66
int i = s.length();

jbmc/regression/jbmc-strings/java_contains/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_contains.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_contains.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 7.* FAILURE$

jbmc/regression/jbmc-strings/java_contains/test_contains.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_contains
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = new String("Abc");
66
String u = "bc";

jbmc/regression/jbmc-strings/java_delete/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_delete.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_delete.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_delete/test_delete.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_delete
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder s = new StringBuilder("Abc");
66
org.cprover.CProverString.delete(s,1,2);

jbmc/regression/jbmc-strings/java_delete_char_at/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_delete_char_at.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_delete_char_at.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 9.* FAILURE$

jbmc/regression/jbmc-strings/java_delete_char_at/test_delete_char_at.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_delete_char_at
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder s = new StringBuilder();
66
s.append("Abc");

jbmc/regression/jbmc-strings/java_empty/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_empty.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_empty.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 6.* FAILURE$

jbmc/regression/jbmc-strings/java_empty/test_empty.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_empty
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String empty = "";
66
assert(!empty.isEmpty());

jbmc/regression/jbmc-strings/java_endswith/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_endswith.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_endswith.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 7.* FAILURE$

jbmc/regression/jbmc-strings/java_endswith/test_endswith.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_endswith
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = new String("Abcd");
66
String suff = "cd";

jbmc/regression/jbmc-strings/java_hash_code/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_hash_code.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_hash_code.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 7.* FAILURE$

jbmc/regression/jbmc-strings/java_hash_code/test_hash_code.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_hash_code
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s1 = "ab";
66
String s2 = "ab";

jbmc/regression/jbmc-strings/java_index_of/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_index_of.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_index_of.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_index_of/test_index_of.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_index_of
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = "Abc";
66
String bc = "bc";

jbmc/regression/jbmc-strings/java_index_of_char/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_index_of_char.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_index_of_char.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_index_of_char/test_index_of_char.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_index_of_char
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
String s = "Abc";
66
char c = 'c';

jbmc/regression/jbmc-strings/java_insert_char/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_insert_char.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_insert_char.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_insert_char/test_insert_char.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_insert_char
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder sb = new StringBuilder("ac");
66
org.cprover.CProverString.insert(sb, 1, 'b');

jbmc/regression/jbmc-strings/java_insert_int/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_insert_int.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_insert_int.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_insert_int/test_insert_int.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_insert_int
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder sb = new StringBuilder("ac");
66
org.cprover.CProverString.insert(sb, 1, 42);

jbmc/regression/jbmc-strings/java_insert_multiple/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_insert_multiple.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_insert_multiple.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 9.* FAILURE$

jbmc/regression/jbmc-strings/java_insert_multiple/test_insert_multiple.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_insert_multiple
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder sb = new StringBuilder("ad");
66
org.cprover.CProverString.insert(sb, 1, 'c');

jbmc/regression/jbmc-strings/java_insert_string/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_insert_string.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --string-max-length 1000 --function test_insert_string.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion\.1\].* line 8.* FAILURE$

jbmc/regression/jbmc-strings/java_insert_string/test_insert_string.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class test_insert_string
22
{
3-
public static void main(/*String[] argv*/)
3+
public static void main()
44
{
55
StringBuilder sb = new StringBuilder("ad");
66
org.cprover.CProverString.insert(sb, 1, "bc");

jbmc/regression/jbmc/NondetCharSequence/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NondetCharSequence.class
3-
3+
--function NondetCharSequence.main
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

jbmc/regression/jbmc/NondetString/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NondetString.class
3-
3+
--function NondetString.main
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

jbmc/regression/jbmc/NondetStringBuffer/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NondetStringBuffer.class
3-
3+
--function NondetStringBuffer.main
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

jbmc/regression/jbmc/NondetStringBuilder/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NondetStringBuilder.class
3-
3+
--function NondetStringBuilder.main
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

jbmc/regression/jbmc/annotations1/show_annotation_symbol.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
annotations.class
3-
--verbosity 10 --show-symbol-table
3+
--verbosity 10 --show-symbol-table --function annotations.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^Type\.\.\.\.\.\.\.\.: @java::ClassAnnotation struct annotations

jbmc/regression/jbmc/class-fields/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
3+
--function Test.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^VERIFICATION FAILED$

jbmc/regression/jbmc/class-literals/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
3+
--function Test.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc/class-literals/test_lazy.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
Test.class
3-
--lazy-methods
3+
--lazy-methods --function Test.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
0 Bytes
Binary file not shown.

jbmc/regression/jbmc/classtest1/classtest1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class classtest1
22
{
3-
static void main(String[] args)
3+
public static void main(String[] args)
44
{
55
g(classtest1.class);
66
}

jbmc/regression/jbmc/exceptions23/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.class
3-
--java-throw-runtime-exceptions
3+
--java-throw-runtime-exceptions --function test.main
44
^EXIT=10$
55
^SIGNAL=0$
66
VERIFICATION FAILED

jbmc/regression/jbmc/exceptions24/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.class
3-
--java-throw-runtime-exceptions
3+
--java-throw-runtime-exceptions --function test.main
44
^EXIT=10$
55
^SIGNAL=0$
66
VERIFICATION FAILED

jbmc/regression/jbmc/finally1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.class
3-
3+
--function test.main
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion at file test\.java line 7 function java::test\.main:\(\)V bytecode-index 9: FAILURE

0 commit comments

Comments
 (0)