} else if(key == "name") {
d_filename = value.getValue();
return;
- } else if(key == "smt-lib-version") {
+ }
+ else if (key == "smt-lib-version" && !options::inputLanguage.wasSetByUser())
+ {
language::input::Language ilang = language::input::LANG_AUTO;
if( (value.isInteger() && value.getIntegerValue() == Integer(2)) ||
(value.isRational() && value.getRationalValue() == Rational(2)) ||
regress0/bv/bug734.smt2 \
regress0/bv/bv-int-collapse1.smt2 \
regress0/bv/bv-int-collapse2.smt2 \
- regress0/bv/bv-to-bool.smt \
regress0/bv/bv-options1.smt2 \
regress0/bv/bv-options2.smt2 \
regress0/bv/bv-options3.smt2 \
regress0/bv/bv-options4.smt2 \
+ regress0/bv/bv-to-bool.smt \
regress0/bv/bv2nat-ground-c.smt2 \
regress0/bv/bv2nat-simp-range.smt2 \
regress0/bv/bvmul-pow2-only.smt2 \
regress0/ite4.smt2 \
regress0/ite_real_int_type.smt \
regress0/ite_real_valid.smt \
+ regress0/lang_opts_2_5.smt2 \
+ regress0/lang_opts_2_6_1.smt2 \
regress0/lemmas/clocksynchro_5clocks.main_invar.base.model.smt \
regress0/lemmas/fs_not_sc_seen.induction.smt \
regress0/lemmas/mode_cntrl.induction.smt \
regress0/quantifiers/ex3.smt2 \
regress0/quantifiers/ex6.smt2 \
regress0/quantifiers/floor.smt2 \
- regress0/quantifiers/issue1805.smt2 \
regress0/quantifiers/is-even-pred.smt2 \
regress0/quantifiers/is-int.smt2 \
+ regress0/quantifiers/issue1805.smt2 \
regress0/quantifiers/lra-triv-gn.smt2 \
regress0/quantifiers/macros-int-real.smt2 \
regress0/quantifiers/macros-real-arg.smt2 \
--- /dev/null
+; Check that the language set in the command line options has higher priority
+; than the language specified in the input file.
+;
+; COMMAND-LINE: --lang=smt2.5
+; EXPECT: "LANG_SMTLIB_V2_5"
+(set-info :smt-lib-version 2.6)
+(get-option :input-language)
--- /dev/null
+; Check that the language set in the command line options has higher priority
+; than the language specified in the input file.
+;
+; COMMAND-LINE: --lang=smt2.6.1
+; EXPECT: "LANG_SMTLIB_V2_6_1"
+(set-info :smt-lib-version 2.6)
+(get-option :input-language)