Skip to content

Commit 5fde05a

Browse files
Use string-max-length as default max input-length
Having input string longer than string-max-length does not make sense as the solver will not know how to analyse them. So when string-max-input-length is not specified we can use string-max-length instead.
1 parent b0c6528 commit 5fde05a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/java_bytecode/java_bytecode_language.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ void java_bytecode_languaget::get_language_options(const cmdlinet &cmd)
5555
if(cmd.isset("string-max-input-length"))
5656
object_factory_parameters.max_nondet_string_length=
5757
std::stoi(cmd.get_value("string-max-input-length"));
58+
else if(cmd.isset("string-max-length"))
59+
object_factory_parameters.max_nondet_string_length =
60+
std::stoi(cmd.get_value("string-max-length"));
61+
5862
object_factory_parameters.string_printable = cmd.isset("string-printable");
5963
if(cmd.isset("java-max-vla-length"))
6064
max_user_array_length=std::stoi(cmd.get_value("java-max-vla-length"));

0 commit comments

Comments
 (0)