status = doCommand(smt, *subcmd) && status;
}
} else {
+ // by default, symmetry breaker is on only for QF_UF
+ if(! options.ufSymmetryBreakerSetByUser) {
+ SetBenchmarkLogicCommand *logic = dynamic_cast<SetBenchmarkLogicCommand*>(cmd);
+ if(logic != NULL) {
+ options.ufSymmetryBreaker = (logic->getLogic() == "QF_UF");
+ }
+ }
+
if(options.verbosity > 0) {
*options.out << "Invoking: " << *cmd << endl;
}
}
void SmtEngine::setLogic(const std::string& s) throw(ModalException) {
+ NodeManagerScope nms(d_nodeManager);
+
if(d_logic != "") {
throw ModalException("logic already set");
}
+
if(Dump.isOn("benchmark")) {
Dump("benchmark") << SetBenchmarkLogicCommand(s) << endl;
}
+
d_logic = s;
d_theoryEngine->setLogic(s);
// If in arrays, set the UF handler to arrays
- if (s == "QF_AX") {
+ if(s == "QF_AX") {
theory::Theory::setUninterpretedSortOwner(theory::THEORY_ARRAY);
}
}
pivotRule(MINIMUM),
arithPivotThreshold(16),
arithPropagateMaxLength(16),
- ufSymmetryBreaker(true),
+ ufSymmetryBreaker(false),
+ ufSymmetryBreakerSetByUser(false),
dioSolver(true)
{
}
--random-seed=S sets the random seed for the sat solver\n\
--disable-variable-removal enable permanent removal of variables in arithmetic (UNSAFE! experts only)\n\
--disable-arithmetic-propagation turns on arithmetic propagation\n\
- --disable-symmetry-breaker turns off UF symmetry breaker (Deharbe et al., CADE 2011)\n\
+ --enable-symmetry-breaker turns on UF symmetry breaker (Deharbe et al., CADE 2011) [on by default only for QF_UF]\n\
+ --disable-symmetry-breaker turns off UF symmetry breaker\n\
--disable-dio-solver turns off Linear Diophantine Equation solver (Griggio, JSAT 2012)\n\
";
ARITHMETIC_PIVOT_THRESHOLD,
ARITHMETIC_PROP_MAX_LENGTH,
ARITHMETIC_DIO_SOLVER,
+ ENABLE_SYMMETRY_BREAKER,
DISABLE_SYMMETRY_BREAKER,
TIME_LIMIT,
TIME_LIMIT_PER,
{ "disable-variable-removal", no_argument, NULL, ARITHMETIC_VARIABLE_REMOVAL },
{ "disable-arithmetic-propagation", no_argument, NULL, ARITHMETIC_PROPAGATION },
{ "disable-dio-solver", no_argument, NULL, ARITHMETIC_DIO_SOLVER },
+ { "enable-symmetry-breaker", no_argument, NULL, ENABLE_SYMMETRY_BREAKER },
{ "disable-symmetry-breaker", no_argument, NULL, DISABLE_SYMMETRY_BREAKER },
{ "tlimit" , required_argument, NULL, TIME_LIMIT },
{ "tlimit-per" , required_argument, NULL, TIME_LIMIT_PER },
dioSolver = false;
break;
+ case ENABLE_SYMMETRY_BREAKER:
+ ufSymmetryBreaker = true;
+ ufSymmetryBreakerSetByUser = true;
+ break;
case DISABLE_SYMMETRY_BREAKER:
ufSymmetryBreaker = false;
+ ufSymmetryBreakerSetByUser = true;
break;
case TIME_LIMIT: