Skip to content

Commit 0a10bf3

Browse files
Drop java prefix from throw-runtime-exceptions option
The 'java' prefix is not required anymore since JBMC and CBMC do not share the same command line interface anymore.
1 parent 548baea commit 0a10bf3

File tree

26 files changed

+30
-27
lines changed

26 files changed

+30
-27
lines changed

jbmc/regression/jbmc-strings/StringEquals/test_verify.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
KNOWNBUG
22
Test.class
3-
--refine-strings --string-max-input-length 5 --string-max-length 100 --unwind 10 --function Test.verify --java-throw-runtime-exceptions
3+
--refine-strings --string-max-input-length 5 --string-max-length 100 --unwind 10 --function Test.verify --throw-runtime-exceptions
44
^EXIT=0$
55
^SIGNAL=0$
66
assertion at file Test.java line 60 .* SUCCESS

jbmc/regression/jbmc/ArithmeticException1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ArithmeticException2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 9 function.*: FAILURE$

jbmc/regression/jbmc/ArithmeticException3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ArithmeticException4/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 9 function.*: FAILURE$

jbmc/regression/jbmc/ArithmeticException5/test.desc

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

jbmc/regression/jbmc/ArithmeticException6/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions --function ArithmeticExceptionTest.main
3+
--throw-runtime-exceptions --function ArithmeticExceptionTest.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 7 function.*: FAILURE$

jbmc/regression/jbmc/ArithmeticException7/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ArrayIndexOutOfBoundsException1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArrayIndexOutOfBoundsExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArrayIndexOutOfBoundsExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ArrayIndexOutOfBoundsException2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArrayIndexOutOfBoundsExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArrayIndexOutOfBoundsExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ArrayIndexOutOfBoundsException3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArrayIndexOutOfBoundsExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArrayIndexOutOfBoundsExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ClassCastException1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ClassCastExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ClassCastExceptionTest.java line 8 function.*: FAILURE$

jbmc/regression/jbmc/ClassCastException2/test.desc

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

jbmc/regression/jbmc/ClassCastException3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ClassCastExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ClassCastExceptionTest.java line 12 function.*: FAILURE$

jbmc/regression/jbmc/NegativeArraySizeException1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NegativeArraySizeExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file NegativeArraySizeExceptionTest.java line 7 function.*: FAILURE$

jbmc/regression/jbmc/NegativeArraySizeException2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
NegativeArraySizeExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file NegativeArraySizeExceptionTest.java line 7 function.*: FAILURE$

jbmc/regression/jbmc/NullPointerException2/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+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file Test.java line 14 function.*: FAILURE$

jbmc/regression/jbmc/NullPointerException3/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+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file Test.java line 14 function.*: FAILURE$

jbmc/regression/jbmc/NullPointerException4/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+
--throw-runtime-exceptions
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file Test.java line 12 function.*: FAILURE$

jbmc/regression/jbmc/cast_null2/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 --function test.main
3+
--throw-runtime-exceptions --function test.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc/exceptions21/test.desc

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

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 --function test.main
3+
--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 --function test.main
3+
--throw-runtime-exceptions --function test.main
44
^EXIT=10$
55
^SIGNAL=0$
66
VERIFICATION FAILED

jbmc/regression/jbmc/no-main-int-array-maybe-null1/test.desc

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

jbmc/src/java_bytecode/java_bytecode_language.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ void java_bytecode_languaget::get_language_options(const cmdlinet &cmd)
4646
{
4747
assume_inputs_non_null=cmd.isset("java-assume-inputs-non-null");
4848
string_refinement_enabled = !cmd.isset("no-refine-strings");
49-
throw_runtime_exceptions=cmd.isset("java-throw-runtime-exceptions");
49+
throw_runtime_exceptions =
50+
cmd.isset("java-throw-runtime-exceptions") || // will go away
51+
cmd.isset("throw-runtime-exceptions");
5052
assert_uncaught_exceptions = !cmd.isset("disable-uncaught-exception-check");
5153
throw_assertion_error = cmd.isset("throw-assertion-error");
5254
threading_support = cmd.isset("java-threading");

jbmc/src/java_bytecode/java_bytecode_language.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Author: Daniel Kroening, [email protected]
3131
"(disable-uncaught-exception-check)" \
3232
"(throw-assertion-error)" \
3333
"(java-assume-inputs-non-null)" \
34-
"(java-throw-runtime-exceptions)" \
34+
"(java-throw-runtime-exceptions)" /* will go away */ \
35+
"(throw-runtime-exceptions)" \
3536
"(java-max-input-array-length):" /* will go away */ \
3637
"(max-nondet-array-length):" \
3738
"(java-max-input-tree-depth):" /* will go away */ \
@@ -52,7 +53,7 @@ Author: Daniel Kroening, [email protected]
5253
" at the location of the assert statement\n" /* NOLINT(*) */ \
5354
" --java-assume-inputs-non-null never initialize reference-typed parameter to the\n" /* NOLINT(*) */ \
5455
" entry point with null\n" /* NOLINT(*) */ \
55-
" --java-throw-runtime-exceptions make implicit runtime exceptions explicit\n" /* NOLINT(*) */ \
56+
" --throw-runtime-exceptions make implicit runtime exceptions explicit\n" /* NOLINT(*) */ \
5657
" --max-nondet-array-length N limit nondet (e.g. input) array size to <= N\n" /* NOLINT(*) */ \
5758
" --max-nondet-tree-depth N limit size of nondet (e.g. input) object tree;\n" /* NOLINT(*) */ \
5859
" at level N references are set to null\n" /* NOLINT(*) */ \

0 commit comments

Comments
 (0)