Skip to content

Commit 9ff879d

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 13fd4e7 commit 9ff879d

File tree

26 files changed

+29
-26
lines changed

26 files changed

+29
-26
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
@@ -45,7 +45,9 @@ void java_bytecode_languaget::get_language_options(const cmdlinet &cmd)
4545
{
4646
assume_inputs_non_null=cmd.isset("java-assume-inputs-non-null");
4747
string_refinement_enabled = !cmd.isset("no-refine-strings");
48-
throw_runtime_exceptions=cmd.isset("java-throw-runtime-exceptions");
48+
throw_runtime_exceptions =
49+
cmd.isset("java-throw-runtime-exceptions") || // will go away
50+
cmd.isset("throw-runtime-exceptions");
4951
assert_uncaught_exceptions = !cmd.isset("disable-uncaught-exception-check");
5052
throw_assertion_error = cmd.isset("throw-assertion-error");
5153
threading_support = cmd.isset("java-threading");

jbmc/src/java_bytecode/java_bytecode_language.h

+2-1
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 a away */ \
35+
"(throw-runtime-exceptions)" \
3536
"(java-max-input-array-length):" /* will go a away */ \
3637
"(max-nondet-array-length):" \
3738
"(java-max-input-tree-depth):" /* will go a away */ \

0 commit comments

Comments
 (0)