Browse Source

Silenced a warning when building storm-pgcl

tempestpy_adaptions
Tim Quatmann 6 years ago
parent
commit
90543ad499
  1. 5
      src/storm-pgcl/storage/ppg/ProgramGraph.h

5
src/storm-pgcl/storage/ppg/ProgramGraph.h

@ -1,5 +1,6 @@
#pragma once
#include <storm/exceptions/IllegalArgumentException.h>
#include "defines.h"
#include "storm/storage/expressions/Expression.h"
#include "storm/storage/expressions/Variable.h"
@ -145,7 +146,6 @@ namespace storm {
assert(hasLocation(sourceId));
return addProgramEdgeToAllGroups(getLocation(sourceId), action, condition, targetId);
}
ProgramVariableIdentifier getVariableId(std::string const& varName) const {
// TODO consider holding a map for this.
@ -154,7 +154,8 @@ namespace storm {
return v.first;
}
}
assert(false);
STORM_LOG_THROW(false, storm::exceptions::IllegalArgumentException, "Variable " << varName << " was not found.");
return 0;
}
std::string const& getVariableName(ProgramVariableIdentifier id) const {

Loading…
Cancel
Save