throw OptionException(ss.str());
}
#endif /* CVC5_STATISTICS_ON */
- Assert(option.substr(0, 2) == "--");
- std::string opt = option.substr(2);
+ std::string opt = option;
+ if (option.substr(0, 2) == "--")
+ {
+ opt = opt.substr(2);
+ }
if (value)
{
- if (option == options::base::statisticsAll__name)
+ if (opt == options::base::statisticsAll__name)
{
d_options->base.statistics = true;
}
- else if (option == options::base::statisticsEveryQuery__name)
+ else if (opt == options::base::statisticsEveryQuery__name)
{
d_options->base.statistics = true;
}
- else if (option == options::base::statisticsExpert__name)
+ else if (opt == options::base::statisticsExpert__name)
{
d_options->base.statistics = true;
}
}
else
{
- if (option == options::base::statistics__name)
+ if (opt == options::base::statistics__name)
{
d_options->base.statisticsAll = false;
d_options->base.statisticsEveryQuery = false;
regress0/options/ast-and-sexpr.smt2
regress0/options/invalid_dump.smt2
regress0/options/set-and-get-options.smt2
+ regress0/options/statistics.smt2
regress0/parallel-let.smt2
regress0/parser/as.smt2
regress0/parser/bv_arity_smt2.6.smt2
--- /dev/null
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: true
+; EXPECT: true
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: false
+; EXPECT: true
+; EXPECT: false
+; EXPECT: false
+; EXPECT: true
+(set-logic QF_UF)
+(get-option :stats)
+(get-option :stats-all)
+(get-option :stats-every-query)
+(get-option :stats-expert)
+
+(set-option :stats-all true)
+
+(get-option :stats)
+(get-option :stats-all)
+(get-option :stats-every-query)
+(get-option :stats-expert)
+
+(set-option :stats false)
+
+(get-option :stats)
+(get-option :stats-all)
+(get-option :stats-every-query)
+(get-option :stats-expert)
+
+(set-option :stats-expert true)
+
+(get-option :stats)
+(get-option :stats-all)
+(get-option :stats-every-query)
+(get-option :stats-expert)
\ No newline at end of file