Browse Source

Merge branch 'future' into gspn

Former-commit-id: 815a30b83e
tempestpy_adaptions
Mavo 8 years ago
parent
commit
2fd29455cc
  1. 4
      resources/3rdparty/include_xerces.cmake
  2. 6
      src/generator/NextStateGenerator.cpp
  3. 3
      src/generator/NextStateGenerator.h

4
resources/3rdparty/include_xerces.cmake

@ -31,6 +31,6 @@ if(USE_XERCES)
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation ) FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation )
FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices ) FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices )
endif() endif()
find_package(curl)
find_package(CURL)
list(APPEND STORM_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES}) list(APPEND STORM_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES})
endif(USE_XERCES)
endif(USE_XERCES)

6
src/generator/NextStateGenerator.cpp

@ -12,8 +12,6 @@
#include "src/utility/macros.h" #include "src/utility/macros.h"
#include "src/exceptions/InvalidSettingsException.h" #include "src/exceptions/InvalidSettingsException.h"
#define BOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT
namespace storm { namespace storm {
namespace generator { namespace generator {
@ -30,7 +28,7 @@ namespace storm {
} }
std::string const& LabelOrExpression::getLabel() const { std::string const& LabelOrExpression::getLabel() const {
return boost::get<std::string const&>(labelOrExpression);
return boost::get<std::string>(labelOrExpression);
} }
bool LabelOrExpression::isExpression() const { bool LabelOrExpression::isExpression() const {
@ -38,7 +36,7 @@ namespace storm {
} }
storm::expressions::Expression const& LabelOrExpression::getExpression() const { storm::expressions::Expression const& LabelOrExpression::getExpression() const {
return boost::get<storm::expressions::Expression const&>(labelOrExpression);
return boost::get<storm::expressions::Expression>(labelOrExpression);
} }
NextStateGeneratorOptions::NextStateGeneratorOptions(bool buildAllRewardModels, bool buildAllLabels) : buildAllRewardModels(buildAllRewardModels), buildAllLabels(buildAllLabels), buildChoiceLabels(false) { NextStateGeneratorOptions::NextStateGeneratorOptions(bool buildAllRewardModels, bool buildAllLabels) : buildAllRewardModels(buildAllRewardModels), buildAllLabels(buildAllLabels), buildChoiceLabels(false) {

3
src/generator/NextStateGenerator.h

@ -4,11 +4,8 @@
#include <vector> #include <vector>
#include <cstdint> #include <cstdint>
#include <boost/variant.hpp> #include <boost/variant.hpp>
#define BOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT
#include "src/storage/expressions/Expression.h" #include "src/storage/expressions/Expression.h"
#include "src/storage/BitVectorHashMap.h" #include "src/storage/BitVectorHashMap.h"
#include "src/storage/expressions/ExpressionEvaluator.h" #include "src/storage/expressions/ExpressionEvaluator.h"

Loading…
Cancel
Save