Browse Source

Fixed compile errors on windows caused by missing includes and use of initializer lists (not supported by vs11)

Former-commit-id: 294c26cd64
tempestpy_adaptions
David_Korzeniewski 11 years ago
parent
commit
641c09dcfa
  1. 5
      src/adapters/ExplicitModelAdapter.h
  2. 1
      src/adapters/Z3ExpressionAdapter.h
  3. 1
      src/storage/LabeledValues.h

5
src/adapters/ExplicitModelAdapter.h

@ -309,7 +309,10 @@ namespace storm {
// Update the choice by adding the probability/target state to it. // Update the choice by adding the probability/target state to it.
double probabilityToAdd = update.getLikelihoodExpression()->getValueAsDouble(currentState); double probabilityToAdd = update.getLikelihoodExpression()->getValueAsDouble(currentState);
probabilitySum += probabilityToAdd; probabilitySum += probabilityToAdd;
addProbabilityToChoice(choice, flagTargetStateIndexPair.second, probabilityToAdd, {update.getGlobalIndex()});
std::set<uint_fast64_t> lables;
lables.insert(update.getGlobalIndex());
//addProbabilityToChoice(choice, flagTargetStateIndexPair.second, probabilityToAdd, {update.getGlobalIndex()});
addProbabilityToChoice(choice, flagTargetStateIndexPair.second, probabilityToAdd, lables);
} }
// Check that the resulting distribution is in fact a distribution. // Check that the resulting distribution is in fact a distribution.

1
src/adapters/Z3ExpressionAdapter.h

@ -11,6 +11,7 @@
#include <stack> #include <stack>
#include "src/ir/expressions/ExpressionVisitor.h" #include "src/ir/expressions/ExpressionVisitor.h"
#include "src/ir/expressions/Expressions.h"
namespace storm { namespace storm {
namespace adapters { namespace adapters {

1
src/storage/LabeledValues.h

@ -9,6 +9,7 @@
#define STORM_STORAGE_LABELEDVALUES_H #define STORM_STORAGE_LABELEDVALUES_H
#include <list> #include <list>
#include <set>
namespace storm { namespace storm {
namespace utility { namespace utility {

Loading…
Cancel
Save