@@ -251,34 +251,27 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
251
251
if (cmdline.isset (" no-refine-strings" ))
252
252
options.set_option (" refine-strings" , false );
253
253
254
- if (cmdline.isset (" string-printable" ))
254
+ if (cmdline.isset (" string-printable" ) && cmdline. isset ( " no-refine-strings " ) )
255
255
{
256
- if (cmdline.isset (" no-refine-strings" ))
257
- {
258
- warning () << " --string-printable ignored due to --no-refine-strings"
259
- << eom;
260
- }
261
- options.set_option (" string-printable" , true );
256
+ throw invalid_command_line_argument_exceptiont (
257
+ " cannot use --string-printable with --no-refine-strings" ,
258
+ " --string-printable" );
262
259
}
263
260
264
- if (cmdline.isset (" string-input-value" ))
261
+ if (cmdline.isset (" string-input-value" ) && cmdline. isset ( " no-refine-strings " ) )
265
262
{
266
- if (cmdline.isset (" no-refine-strings" ))
267
- {
268
- warning () << " --string-input-value ignored due to --no-refine-strings"
269
- << eom;
270
- }
271
- options.set_option (
272
- " string-input-value" ,
273
- cmdline.get_values (" string-input-value" ));
263
+ throw invalid_command_line_argument_exceptiont (
264
+ " cannot use --string-input-value with --no-refine-strings" ,
265
+ " --string-input-value" );
274
266
}
275
267
276
268
if (
277
269
cmdline.isset (" no-refine-strings" ) &&
278
270
cmdline.isset (" max-nondet-string-length" ))
279
271
{
280
- warning () << " --max-nondet-string-length ignored due to "
281
- << " --no-refine-strings" << eom;
272
+ throw invalid_command_line_argument_exceptiont (
273
+ " cannot use --max-nondet-string-length with --no-refine-strings" ,
274
+ " --max-nondet-string-length" );
282
275
}
283
276
284
277
if (cmdline.isset (" max-node-refinement" ))
0 commit comments