* src/Configuration.cc (registerAlgorithm): Do not complain about
a missing path for disabled algorithms.
This commit is contained in:
Alexandre Duret-Lutz 2009-11-25 18:07:55 +01:00
parent 1e19aa3a5f
commit c95eb21ecf
2 changed files with 18 additions and 13 deletions

View file

@ -1,3 +1,8 @@
2009-11-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/Configuration.cc (registerAlgorithm): Do not complain about
a missing path for disabled algorithms.
2009-06-12 Guillaume Sadegh <sadegh@lrde.epita.fr> 2009-06-12 Guillaume Sadegh <sadegh@lrde.epita.fr>
Adjust to support the Intel compiler (icpc). Adjust to support the Intel compiler (icpc).

View file

@ -40,25 +40,25 @@
* Definitions for ranges of certain integer-valued configuration options. * Definitions for ranges of certain integer-valued configuration options.
* *
*****************************************************************************/ *****************************************************************************/
const struct Configuration::IntegerRange Configuration::DEFAULT_RANGE const struct Configuration::IntegerRange Configuration::DEFAULT_RANGE
= {0, ULONG_MAX, "value out of range"}; = {0, ULONG_MAX, "value out of range"};
const struct Configuration::IntegerRange Configuration::VERBOSITY_RANGE const struct Configuration::IntegerRange Configuration::VERBOSITY_RANGE
= {0, 5, "verbosity must be between 0 and 5 (inclusive)"}; = {0, 5, "verbosity must be between 0 and 5 (inclusive)"};
const struct Configuration::IntegerRange Configuration::ROUND_COUNT_RANGE const struct Configuration::IntegerRange Configuration::ROUND_COUNT_RANGE
= {1, ULONG_MAX, "number of rounds must be positive"}; = {1, ULONG_MAX, "number of rounds must be positive"};
const struct Configuration::IntegerRange Configuration::RANDOM_SEED_RANGE const struct Configuration::IntegerRange Configuration::RANDOM_SEED_RANGE
= {0, UINT_MAX, "random seed out of range"}; = {0, UINT_MAX, "random seed out of range"};
const struct Configuration::IntegerRange Configuration::ATOMIC_PRIORITY_RANGE const struct Configuration::IntegerRange Configuration::ATOMIC_PRIORITY_RANGE
= {0, INT_MAX / 3, "priority out of range"}; = {0, INT_MAX / 3, "priority out of range"};
const struct Configuration::IntegerRange Configuration::OPERATOR_PRIORITY_RANGE const struct Configuration::IntegerRange Configuration::OPERATOR_PRIORITY_RANGE
= {0, INT_MAX / 14, "priority out of range"}; = {0, INT_MAX / 14, "priority out of range"};
/****************************************************************************** /******************************************************************************
@ -381,7 +381,7 @@ void Configuration::read(int argc, char* argv[])
global_options.interactive = NEVER; global_options.interactive = NEVER;
break; break;
/* /*
* Options corresponding to the GlobalOptions section in the * Options corresponding to the GlobalOptions section in the
* configuration file. * configuration file.
*/ */
@ -428,7 +428,7 @@ void Configuration::read(int argc, char* argv[])
VERBOSITY_RANGE); VERBOSITY_RANGE);
break; break;
/* /*
* Options corresponding to the StatespaceOptions section in the * Options corresponding to the StatespaceOptions section in the
* configuration file. * configuration file.
*/ */
@ -441,7 +441,7 @@ void Configuration::read(int argc, char* argv[])
case OPT_ENUMERATEDPATH : case OPT_ENUMERATEDPATH :
readStateSpaceMode("enumeratedpath"); readStateSpaceMode("enumeratedpath");
break; break;
case OPT_RANDOMCONNECTEDGRAPH : case OPT_RANDOMCONNECTEDGRAPH :
readStateSpaceMode("randomconnectedgraph"); readStateSpaceMode("randomconnectedgraph");
break; break;
@ -481,7 +481,7 @@ void Configuration::read(int argc, char* argv[])
parameter->second); parameter->second);
break; break;
/* /*
* Options corresponding to the FormulaOptions section in the * Options corresponding to the FormulaOptions section in the
* configuration file. * configuration file.
*/ */
@ -782,8 +782,8 @@ void Configuration::read(int argc, char* argv[])
it->second = formula_options.default_operator_priority; it->second = formula_options.default_operator_priority;
if (it->second > 0 && !unary_operator_allowed) if (it->second > 0 && !unary_operator_allowed)
unary_operator_allowed = unary_operator_allowed =
(it->first == ::Ltl::LTL_NEGATION || it->first == ::Ltl::LTL_NEXT (it->first == ::Ltl::LTL_NEGATION || it->first == ::Ltl::LTL_NEXT
|| it->first == ::Ltl::LTL_FINALLY || it->first == ::Ltl::LTL_FINALLY
|| it->first == ::Ltl::LTL_GLOBALLY); || it->first == ::Ltl::LTL_GLOBALLY);
} }
@ -982,7 +982,7 @@ void Configuration::print(ostream& stream, int indent) const
estream << '\n' + string(indent + 2, ' ') + "Implementations:\n"; estream << '\n' + string(indent + 2, ' ') + "Implementations:\n";
vector<AlgorithmInformation>::size_type algorithm_number = 0; vector<AlgorithmInformation>::size_type algorithm_number = 0;
for (vector<AlgorithmInformation>::const_iterator a = algorithms.begin(); for (vector<AlgorithmInformation>::const_iterator a = algorithms.begin();
a != algorithms.end(); a != algorithms.end();
++a) ++a)
@ -1659,7 +1659,7 @@ void Configuration::registerAlgorithm
!= algorithm_names.end()) != algorithm_names.end())
error = "multiple definitions for implementation `" error = "multiple definitions for implementation `"
+ algorithm_information.name + "'"; + algorithm_information.name + "'";
else if (path.empty()) else if (path.empty() && enabled)
error = "missing path to executable for implementation `" error = "missing path to executable for implementation `"
+ algorithm_information.name + "'"; + algorithm_information.name + "'";
@ -2004,7 +2004,7 @@ void Configuration::readTranslatorTimeout(const string& value)
* time specification. * time specification.
* *
* ------------------------------------------------------------------------- */ * ------------------------------------------------------------------------- */
{ {
unsigned long int hours, minutes, seconds; unsigned long int hours, minutes, seconds;
try try
{ {