Browse Source

Typos

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
399c061086
  1. 4
      src/storm-parsers/parser/DirectEncodingParser.cpp
  2. 2
      src/storm/transformer/ContinuousToDiscreteTimeModelTransformer.h

4
src/storm-parsers/parser/DirectEncodingParser.cpp

@ -106,13 +106,13 @@ namespace storm {
// Initialize // Initialize
auto modelComponents = std::make_shared<storm::storage::sparse::ModelComponents<ValueType, RewardModelType>>(); auto modelComponents = std::make_shared<storm::storage::sparse::ModelComponents<ValueType, RewardModelType>>();
bool nonDeterministic = (type == storm::models::ModelType::Mdp || type == storm::models::ModelType::MarkovAutomaton || type == storm::models::ModelType::Pomdp); bool nonDeterministic = (type == storm::models::ModelType::Mdp || type == storm::models::ModelType::MarkovAutomaton || type == storm::models::ModelType::Pomdp);
bool continousTime = (type == storm::models::ModelType::Ctmc || type == storm::models::ModelType::MarkovAutomaton);
bool continuousTime = (type == storm::models::ModelType::Ctmc || type == storm::models::ModelType::MarkovAutomaton);
storm::storage::SparseMatrixBuilder<ValueType> builder = storm::storage::SparseMatrixBuilder<ValueType>(0, 0, 0, false, nonDeterministic, 0); storm::storage::SparseMatrixBuilder<ValueType> builder = storm::storage::SparseMatrixBuilder<ValueType>(0, 0, 0, false, nonDeterministic, 0);
modelComponents->stateLabeling = storm::models::sparse::StateLabeling(stateSize); modelComponents->stateLabeling = storm::models::sparse::StateLabeling(stateSize);
modelComponents->observabilityClasses = std::vector<uint32_t>(); modelComponents->observabilityClasses = std::vector<uint32_t>();
modelComponents->observabilityClasses->resize(stateSize); modelComponents->observabilityClasses->resize(stateSize);
std::vector<std::vector<ValueType>> stateRewards; std::vector<std::vector<ValueType>> stateRewards;
if (continousTime) {
if (continuousTime) {
modelComponents->exitRates = std::vector<ValueType>(stateSize); modelComponents->exitRates = std::vector<ValueType>(stateSize);
if (type == storm::models::ModelType::MarkovAutomaton) { if (type == storm::models::ModelType::MarkovAutomaton) {
modelComponents->markovianStates = storm::storage::BitVector(stateSize); modelComponents->markovianStates = storm::storage::BitVector(stateSize);

2
src/storm/transformer/ContinuousToDiscreteTimeModelTransformer.h

@ -16,7 +16,7 @@ namespace storm {
class ContinuousToDiscreteTimeModelTransformer { class ContinuousToDiscreteTimeModelTransformer {
public: public:
// If this method returns true, the given formula is preserced by the transformation
// If this method returns true, the given formula is preserved by the transformation
static bool preservesFormula(storm::logic::Formula const& formula); static bool preservesFormula(storm::logic::Formula const& formula);
// Checks whether the given formulas are preserved. // Checks whether the given formulas are preserved.

Loading…
Cancel
Save