forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
eb9e3bb
commit 39bc7ea
Showing
20 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../regression/jbmc/lazyloading_synthetic_method_cleanup1/check_clinit_normally_present.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../regression/jbmc/lazyloading_synthetic_method_cleanup2/check_clinit_normally_present.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../regression/jbmc/lazyloading_synthetic_method_cleanup3/check_clinit_normally_present.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
jbmc/regression/strings-smoke-tests/java_append_string/test_substring.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ Author: Daniel Kroening, [email protected] | |
void java_bytecode_languaget::get_language_options(const cmdlinet &cmd) | ||
{ | ||
assume_inputs_non_null=cmd.isset("java-assume-inputs-non-null"); | ||
string_refinement_enabled=cmd.isset("refine-strings"); | ||
string_refinement_enabled = !cmd.isset("no-refine-strings"); | ||
throw_runtime_exceptions=cmd.isset("java-throw-runtime-exceptions"); | ||
assert_uncaught_exceptions = !cmd.isset("disable-uncaught-exception-check"); | ||
throw_assertion_error = cmd.isset("throw-assertion-error"); | ||
|
@@ -70,7 +70,7 @@ void java_bytecode_languaget::get_language_options(const cmdlinet &cmd) | |
safe_string2size_t(cmd.get_value("java-max-vla-length")); | ||
if(cmd.isset("symex-driven-lazy-loading")) | ||
lazy_methods_mode=LAZY_METHODS_MODE_EXTERNAL_DRIVER; | ||
else if(cmd.isset("lazy-methods")) | ||
else if(!cmd.isset("no-lazy-methods")) | ||
lazy_methods_mode=LAZY_METHODS_MODE_CONTEXT_INSENSITIVE; | ||
else | ||
lazy_methods_mode=LAZY_METHODS_MODE_EAGER; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ Author: Daniel Kroening, [email protected] | |
"(java-max-input-tree-depth):" \ | ||
"(java-max-vla-length):" \ | ||
"(java-cp-include-files):" \ | ||
"(lazy-methods)" \ | ||
"(lazy-methods)" /* will go away */ \ | ||
"(no-lazy-methods)" \ | ||
"(lazy-methods-extra-entry-point):" \ | ||
"(java-load-class):" \ | ||
"(java-no-load-class):" | ||
|
@@ -55,10 +56,12 @@ Author: Daniel Kroening, [email protected] | |
" the object\n" /* NOLINT(*) */ \ | ||
" --java-max-vla-length limit the length of user-code-created arrays\n" /* NOLINT(*) */ \ | ||
" --java-cp-include-files regexp or JSON list of files to load (with '@' prefix)\n" /* NOLINT(*) */ \ | ||
" --lazy-methods only translate methods that appear to be reachable from\n" /* NOLINT(*) */ \ | ||
" the --function entry point or main class\n" /* NOLINT(*) */ \ | ||
" --no-lazy-methods load and translate all methods given on the command line\n" /* NOLINT(*) */ \ | ||
" and in --classpath\n" /* NOLINT(*) */ \ | ||
" Default is to load methods that appear to be\n" /* NOLINT(*) */ \ | ||
" reachable from the --function entry point or main class\n" /* NOLINT(*) */ \ | ||
" Note --show-symbol-table/goto-functions/properties output\n"/* NOLINT(*) */ \ | ||
" will be restricted to loaded methods in this case\n" /* NOLINT(*) */ \ | ||
" are restricted to loaded methods by default\n" /* NOLINT(*) */ \ | ||
" --lazy-methods-extra-entry-point METHODNAME\n" /* NOLINT(*) */ \ | ||
" treat METHODNAME as a possible program entry point for\n" /* NOLINT(*) */ \ | ||
" the purpose of lazy method loading\n" /* NOLINT(*) */ \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters