Browse Source

some typos

Former-commit-id: 8b28f77ab4
tempestpy_adaptions
dehnert 9 years ago
parent
commit
3e23a9ad40
  1. 4
      examples/mdp/csma/csma3_4.nm
  2. 4
      examples/mdp/csma/csma4_4.nm
  3. 4
      examples/mdp/csma/csma4_6.nm
  4. 8
      src/parser/ExpressionParser.cpp
  5. 2
      src/parser/SpiritErrorHandler.h

4
examples/mdp/csma/csma3_4.nm

@ -129,4 +129,6 @@ endrewards
label "all_delivered" = s1=4&s2=4&s3=4; label "all_delivered" = s1=4&s2=4&s3=4;
label "one_delivered" = s1=4|s2=4|s3=4; label "one_delivered" = s1=4|s2=4|s3=4;
label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2); label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2);
formula min_backoff_after_success = min(s1=4?cd1:K+1,s2=4?cd2:K+1,s3=4?cd3:K+1);
formula min_collisions = min(cd1,cd2,cd3);
formula max_collisions = max(cd1,cd2,cd3);

4
examples/mdp/csma/csma4_4.nm

@ -134,4 +134,6 @@ endrewards
label "all_delivered" = s1=4&s2=4&s3=4&s4=4; label "all_delivered" = s1=4&s2=4&s3=4&s4=4;
label "one_delivered" = s1=4|s2=4|s3=4|s4=4; label "one_delivered" = s1=4|s2=4|s3=4|s4=4;
label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2)|(cd4=K & s4=1 & b=2); label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2)|(cd4=K & s4=1 & b=2);
formula min_backoff_after_success = min(s1=4?cd1:K+1,s2=4?cd2:K+1,s3=4?cd3:K+1,s4=4?cd4:K+1);
formula min_collisions = min(cd1,cd2,cd3,cd4);
formula max_collisions = max(cd1,cd2,cd3,cd4);

4
examples/mdp/csma/csma4_6.nm

@ -136,4 +136,6 @@ endrewards
label "all_delivered" = s1=4&s2=4&s3=4&s4=4; label "all_delivered" = s1=4&s2=4&s3=4&s4=4;
label "one_delivered" = s1=4|s2=4|s3=4|s4=4; label "one_delivered" = s1=4|s2=4|s3=4|s4=4;
label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2)|(cd4=K & s4=1 & b=2); label "collision_max_backoff" = (cd1=K & s1=1 & b=2)|(cd2=K & s2=1 & b=2)|(cd3=K & s3=1 & b=2)|(cd4=K & s4=1 & b=2);
formula min_backoff_after_success = min(s1=4?cd1:K+1,s2=4?cd2:K+1,s3=4?cd3:K+1,s4=4?cd4:K+1);
formula min_collisions = min(cd1,cd2,cd3,cd4);
formula max_collisions = max(cd1,cd2,cd3,cd4);

8
src/parser/ExpressionParser.cpp

@ -337,12 +337,8 @@ namespace storm {
STORM_LOG_THROW(this->identifiers_ != nullptr, storm::exceptions::WrongFormatException, "Unable to substitute identifier expressions without given mapping."); STORM_LOG_THROW(this->identifiers_ != nullptr, storm::exceptions::WrongFormatException, "Unable to substitute identifier expressions without given mapping.");
storm::expressions::Expression const* expression = this->identifiers_->find(identifier); storm::expressions::Expression const* expression = this->identifiers_->find(identifier);
if (expression == nullptr) { if (expression == nullptr) {
if (allowBacktracking) {
pass = false;
return manager->boolean(false);
} else {
pass = false;
}
pass = false;
return manager->boolean(false);
} }
return *expression; return *expression;
} else { } else {

2
src/parser/SpiritErrorHandler.h

@ -22,7 +22,7 @@ namespace storm {
stream << "Parsing error at " << get_line(where) << ":" << boost::spirit::get_column(lineStart, where) << ": " << " expecting " << what << ", here:" << std::endl; stream << "Parsing error at " << get_line(where) << ":" << boost::spirit::get_column(lineStart, where) << ": " << " expecting " << what << ", here:" << std::endl;
stream << "\t" << line << std::endl << "\t"; stream << "\t" << line << std::endl << "\t";
auto caretColumn = boost::spirit::get_column(lineStart, where); auto caretColumn = boost::spirit::get_column(lineStart, where);
stream << std::string(caretColumn - 1, ' ') << "^" << std::endl;
stream << "\t" << std::string(caretColumn - 1, ' ') << "^" << std::endl;
STORM_LOG_THROW(false, storm::exceptions::WrongFormatException, stream.str()); STORM_LOG_THROW(false, storm::exceptions::WrongFormatException, stream.str());
return qi::fail; return qi::fail;

Loading…
Cancel
Save