@@ -268,22 +268,15 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
268
268
cmdline.get_value (" max-node-refinement" ));
269
269
270
270
// SMT Options
271
- bool version_set=false ;
272
271
273
272
if (cmdline.isset (" smt1" ))
274
273
{
275
- options.set_option (" smt1" , true );
276
- options.set_option (" smt2" , false );
277
- version_set=true ;
274
+ error () << " --smt1 is no longer supported" << eom;
275
+ exit (CPROVER_EXIT_USAGE_ERROR);
278
276
}
279
277
280
278
if (cmdline.isset (" smt2" ))
281
- {
282
- // If both are given, smt2 takes precedence
283
- options.set_option (" smt1" , false );
284
279
options.set_option (" smt2" , true );
285
- version_set=true ;
286
- }
287
280
288
281
if (cmdline.isset (" fpa" ))
289
282
options.set_option (" fpa" , true );
@@ -293,76 +286,47 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
293
286
if (cmdline.isset (" boolector" ))
294
287
{
295
288
options.set_option (" boolector" , true ), solver_set=true ;
296
- if (!version_set)
297
- options.set_option (" smt2" , true ), version_set=true ;
289
+ options.set_option (" smt2" , true );
298
290
}
299
291
300
292
if (cmdline.isset (" mathsat" ))
301
293
{
302
294
options.set_option (" mathsat" , true ), solver_set=true ;
303
- if (!version_set)
304
- options.set_option (" smt2" , true ), version_set=true ;
305
- }
306
-
307
- if (cmdline.isset (" cvc3" ))
308
- {
309
- options.set_option (" cvc3" , true ), solver_set=true ;
310
- if (!version_set)
311
- options.set_option (" smt1" , true ), version_set=true ;
295
+ options.set_option (" smt2" , true );
312
296
}
313
297
314
298
if (cmdline.isset (" cvc4" ))
315
299
{
316
300
options.set_option (" cvc4" , true ), solver_set=true ;
317
- if (!version_set)
318
- options.set_option (" smt2" , true ), version_set=true ;
301
+ options.set_option (" smt2" , true );
319
302
}
320
303
321
304
if (cmdline.isset (" yices" ))
322
305
{
323
306
options.set_option (" yices" , true ), solver_set=true ;
324
- if (!version_set)
325
- options.set_option (" smt2" , true ), version_set=true ;
307
+ options.set_option (" smt2" , true );
326
308
}
327
309
328
310
if (cmdline.isset (" z3" ))
329
311
{
330
312
options.set_option (" z3" , true ), solver_set=true ;
331
- if (!version_set)
332
- options.set_option (" smt2" , true ), version_set=true ;
333
- }
334
-
335
- if (cmdline.isset (" opensmt" ))
336
- {
337
- options.set_option (" opensmt" , true ), solver_set=true ;
338
- if (!version_set)
339
- options.set_option (" smt1" , true ), version_set=true ;
313
+ options.set_option (" smt2" , true );
340
314
}
341
315
342
- if (version_set && !solver_set)
316
+ if (cmdline. isset ( " smt2 " ) && !solver_set)
343
317
{
344
318
if (cmdline.isset (" outfile" ))
345
319
{
346
320
// outfile and no solver should give standard compliant SMT-LIB
347
- options.set_option (" generic" , true ), solver_set= true ;
321
+ options.set_option (" generic" , true );
348
322
}
349
323
else
350
324
{
351
- if (options.get_bool_option (" smt1" ))
352
- {
353
- options.set_option (" boolector" , true ), solver_set=true ;
354
- }
355
- else
356
- {
357
- INVARIANT (options.get_bool_option (" smt2" ), " smt2 set" );
358
- options.set_option (" z3" , true ), solver_set=true ;
359
- }
325
+ // the default smt2 solver
326
+ options.set_option (" z3" , true );
360
327
}
361
328
}
362
329
363
- // Either have solver and standard version set, or neither.
364
- INVARIANT (version_set==solver_set, " solver and version set" );
365
-
366
330
if (cmdline.isset (" beautify" ))
367
331
options.set_option (" beautify" , true );
368
332
0 commit comments