@@ -29,6 +29,7 @@ Author: Daniel Kroening, kroening@kroening.com
2929// clang-format off
3030#define JAVA_BYTECODE_LANGUAGE_OPTIONS /* NOLINT*/ \
3131 " (disable-uncaught-exception-check)" \
32+ " (throw-assertion-error)" \
3233 " (java-assume-inputs-non-null)" \
3334 " (java-throw-runtime-exceptions)" \
3435 " (java-max-input-array-length):" \
@@ -43,6 +44,9 @@ Author: Daniel Kroening, kroening@kroening.com
4344#define JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP /* NOLINT*/ \
4445 " --disable-uncaught-exception-check" \
4546 " ignore uncaught exceptions and errors\n " \
47+ " --throw-assertion-error throw java.lang.AssertionError on violated\n " /* NOLINT(*) */ \
48+ " assert statements instead of failing\n " \
49+ " at the location of the assert statement\n " /* NOLINT(*) */ \
4650 " --java-assume-inputs-non-null never initialize reference-typed parameter to the\n " /* NOLINT(*) */ \
4751 " entry point with null\n " /* NOLINT(*) */ \
4852 " --java-throw-runtime-exceptions make implicit runtime exceptions explicit\n " /* NOLINT(*) */ \
@@ -173,6 +177,7 @@ class java_bytecode_languaget:public languaget
173177 bool string_refinement_enabled;
174178 bool throw_runtime_exceptions;
175179 bool assert_uncaught_exceptions;
180+ bool throw_assertion_error;
176181 java_string_library_preprocesst string_preprocess;
177182 std::string java_cp_include_files;
178183
0 commit comments