Skip to content

Commit fb61109

Browse files
Make --lazy-methods and --refine-strings default
These options are always required in practical use cases. They can be disabled with --no-lazy-methods and --no-refine-strings if needed for regression tests.
1 parent 8f6dab8 commit fb61109

File tree

16 files changed

+40
-27
lines changed

16 files changed

+40
-27
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Test.class
33
--refine-strings --function Test.test --cover location --trace --json-ui
44
^EXIT=0$
55
^SIGNAL=0$
6-
20 of 23 covered \(87.0%\)|30 of 44 covered \(68.2%\)
6+
20 of 22 covered \(90.9%\)|30 of 44 covered \(68.2%\)

jbmc/regression/jbmc/annotations1/show_annotation_symbol.desc

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

jbmc/regression/jbmc/generic_class_bound1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
Gn.class
3-
--cover location
3+
--cover location --no-lazy-methods --no-refine-strings
44
^EXIT=0$
55
^SIGNAL=0$
66
.*file Gn.java line 6 function java::Gn.\<init\>:\(\)V bytecode-index 1 block .: FAILED

jbmc/regression/jbmc/lambda2/test_no_crash.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
SymStream.class
3-
--verbosity 10 --show-goto-functions
3+
--no-lazy-methods --verbosity 10 --show-goto-functions
44
^EXIT=0
55
^SIGNAL=0
66
--

jbmc/regression/jbmc/lazyloading_synthetic_method_cleanup1/check_clinit_normally_present.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
Test.class
3-
--show-goto-functions --function Test.main
3+
--no-lazy-methods --show-goto-functions --function Test.main
44
java::Unused::clinit_wrapper
55
Unused\.<clinit>\(\)
66
^EXIT=0$

jbmc/regression/jbmc/lazyloading_synthetic_method_cleanup2/check_clinit_normally_present.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
Test.class
3-
--show-goto-functions --function Test.main
3+
--no-lazy-methods --show-goto-functions --function Test.main
44
java::Unused1::clinit_wrapper
55
java::Unused2::clinit_wrapper
66
Unused2\.<clinit>\(\)

jbmc/regression/jbmc/lazyloading_synthetic_method_cleanup3/check_clinit_normally_present.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
Test.class
3-
--show-goto-functions --function Test.main
3+
--no-lazy-methods --show-goto-functions --function Test.main
44
java::Opaque\.<clinit>:\(\)V
55
java::Opaque::clinit_wrapper
66
^EXIT=0$

jbmc/regression/jbmc/lvt-groovy/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
DetectSplitPackagesTask.class
3-
--show-symbol-table
3+
--show-symbol-table --no-lazy-methods --no-refine-strings
44
^EXIT=0$
55
^SIGNAL=0$
66
--

jbmc/regression/jbmc/provide_object_implementation/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE symex-driven-lazy-loading-expected-failure
22
java/lang/Object.class
3-
3+
--no-lazy-methods
44
^EXIT=6$
55
^SIGNAL=0$
66
^the program has no entry point$

jbmc/src/java_bytecode/java_bytecode_language.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Author: Daniel Kroening, [email protected]
4545
void java_bytecode_languaget::get_language_options(const cmdlinet &cmd)
4646
{
4747
assume_inputs_non_null=cmd.isset("java-assume-inputs-non-null");
48-
string_refinement_enabled=cmd.isset("refine-strings");
48+
string_refinement_enabled = !cmd.isset("no-refine-strings");
4949
throw_runtime_exceptions=cmd.isset("java-throw-runtime-exceptions");
5050
assert_uncaught_exceptions = !cmd.isset("disable-uncaught-exception-check");
5151
throw_assertion_error = cmd.isset("throw-assertion-error");
@@ -69,7 +69,7 @@ void java_bytecode_languaget::get_language_options(const cmdlinet &cmd)
6969
max_user_array_length=std::stoi(cmd.get_value("java-max-vla-length"));
7070
if(cmd.isset("symex-driven-lazy-loading"))
7171
lazy_methods_mode=LAZY_METHODS_MODE_EXTERNAL_DRIVER;
72-
else if(cmd.isset("lazy-methods"))
72+
else if(!cmd.isset("no-lazy-methods"))
7373
lazy_methods_mode=LAZY_METHODS_MODE_CONTEXT_INSENSITIVE;
7474
else
7575
lazy_methods_mode=LAZY_METHODS_MODE_EAGER;

0 commit comments

Comments
 (0)