Skip to content

Commit 04fcc5b

Browse files
Check that string options are used with strings turned on
1 parent 0520732 commit 04fcc5b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,19 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
249249
if(cmdline.isset("string-printable"))
250250
options.set_option("string-printable", true);
251251

252+
if(cmdline.isset("no-refine-strings") && cmdline.isset("string-printable"))
253+
{
254+
warning() << "--string-printable ignored due to --no-refine-strings" << eom;
255+
}
256+
257+
if(
258+
cmdline.isset("no-refine-strings") &&
259+
cmdline.isset("max-nondet-string-length"))
260+
{
261+
warning() << "--max-nondet-string-length ignored due to "
262+
<< "--no-refine-strings" << eom;
263+
}
264+
252265
if(cmdline.isset("max-node-refinement"))
253266
options.set_option(
254267
"max-node-refinement",

0 commit comments

Comments
 (0)