theory::bv::BitblastMode OptionsHandler::stringToBitblastMode(
std::string option, std::string optarg)
{
- if(optarg == "lazy") {
- if (!options::bitvectorPropagate.wasSetByUser()) {
+ if (optarg == "lazy")
+ {
+ if (!options::bitvectorPropagate.wasSetByUser())
+ {
options::bitvectorPropagate.set(true);
}
- if (!options::bitvectorEqualitySolver.wasSetByUser()) {
+ if (!options::bitvectorEqualitySolver.wasSetByUser())
+ {
options::bitvectorEqualitySolver.set(true);
}
- if (!options::bitvectorEqualitySlicer.wasSetByUser()) {
- if (options::incrementalSolving() ||
- options::produceModels()) {
+ if (!options::bitvectorEqualitySlicer.wasSetByUser())
+ {
+ if (options::incrementalSolving() || options::produceModels())
+ {
options::bitvectorEqualitySlicer.set(theory::bv::BITVECTOR_SLICER_OFF);
- } else {
+ }
+ else
+ {
options::bitvectorEqualitySlicer.set(theory::bv::BITVECTOR_SLICER_AUTO);
}
}
- if (!options::bitvectorInequalitySolver.wasSetByUser()) {
+ if (!options::bitvectorInequalitySolver.wasSetByUser())
+ {
options::bitvectorInequalitySolver.set(true);
}
- if (!options::bitvectorAlgebraicSolver.wasSetByUser()) {
+ if (!options::bitvectorAlgebraicSolver.wasSetByUser())
+ {
options::bitvectorAlgebraicSolver.set(true);
}
if (options::bvSatSolver() != theory::bv::SAT_SOLVER_MINISAT)
throwLazyBBUnsupported(options::bvSatSolver());
}
return theory::bv::BITBLAST_MODE_LAZY;
- } else if(optarg == "eager") {
- if (!options::bitvectorToBool.wasSetByUser()) {
+ }
+ else if (optarg == "eager")
+ {
+ if (!options::bitvectorToBool.wasSetByUser())
+ {
options::bitvectorToBool.set(true);
}
-
- if (!options::bvAbstraction.wasSetByUser() &&
- !options::skolemizeArguments.wasSetByUser()) {
- options::bvAbstraction.set(true);
- options::skolemizeArguments.set(true);
- }
return theory::bv::BITBLAST_MODE_EAGER;
- } else if(optarg == "help") {
+ }
+ else if (optarg == "help")
+ {
puts(s_bitblastingModeHelp.c_str());
exit(1);
- } else {
- throw OptionException(std::string("unknown option for --bitblast: `") +
- optarg + "'. Try --bitblast=help.");
+ }
+ else
+ {
+ throw OptionException(std::string("unknown option for --bitblast: `")
+ + optarg + "'. Try --bitblast=help.");
}
}