Browse Source

updated based on changes in storm

refactoring
sjunges 7 years ago
parent
commit
70a54e26c9
  1. 8
      CMakeLists.txt
  2. 1
      src/core/core.cpp
  3. 1
      src/core/counterexample.cpp
  4. 1
      src/core/input.cpp
  5. 1
      src/core/modelchecking.cpp
  6. 3
      src/core/result.cpp
  7. 3
      src/pars/common.h
  8. 2
      src/storage/expressions.cpp

8
CMakeLists.txt

@ -20,11 +20,11 @@ function(stormpy_module NAME)
if(ARGC GREATER 1) if(ARGC GREATER 1)
# Additional libraries # Additional libraries
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR} ${ARGV2} ${CMAKE_CURRENT_BINARY_DIR}/src/generated)
target_link_libraries(${NAME} PRIVATE storm ${ARGV1})
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR} ${storm-parsers_INCLUDE_DIR} ${storm-counterexamples_INCLUDE_DIR} ${ARGV2} ${CMAKE_CURRENT_BINARY_DIR}/src/generated)
target_link_libraries(${NAME} PRIVATE storm storm-parsers storm-counterexamples ${ARGV1})
else() else()
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src/generated)
target_link_libraries(${NAME} PRIVATE storm)
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR} ${storm-parsers_INCLUDE_DIR} ${storm-counterexamples_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src/generated)
target_link_libraries(${NAME} PRIVATE storm storm-parsers storm-counterexamples)
endif() endif()
endfunction(stormpy_module) endfunction(stormpy_module)

1
src/core/core.cpp

@ -5,6 +5,7 @@
#include "storm/storage/dd/DdType.h" #include "storm/storage/dd/DdType.h"
#include "storm/solver/OptimizationDirection.h" #include "storm/solver/OptimizationDirection.h"
#include "storm/models/symbolic/StandardRewardModel.h" #include "storm/models/symbolic/StandardRewardModel.h"
#include "storm-parsers/api/storm-parsers.h"
void define_core(py::module& m) { void define_core(py::module& m) {

1
src/core/counterexample.cpp

@ -1,5 +1,6 @@
#include "counterexample.h" #include "counterexample.h"
#include "storm/environment/Environment.h" #include "storm/environment/Environment.h"
#include "storm-counterexamples/api/counterexamples.h"
using namespace storm::counterexamples; using namespace storm::counterexamples;

1
src/core/input.cpp

@ -1,5 +1,6 @@
#include "input.h" #include "input.h"
#include "src/helpers.h" #include "src/helpers.h"
#include "storm-parsers/api/storm-parsers.h"
void define_property(py::module& m) { void define_property(py::module& m) {
py::class_<storm::jani::Property>(m, "Property", "Property") py::class_<storm::jani::Property>(m, "Property", "Property")

1
src/core/modelchecking.cpp

@ -1,6 +1,7 @@
#include "modelchecking.h" #include "modelchecking.h"
#include "result.h" #include "result.h"
#include "storm/models/symbolic/StandardRewardModel.h" #include "storm/models/symbolic/StandardRewardModel.h"
#include "storm/modelchecker/results/CheckResult.h"
template<typename ValueType> template<typename ValueType>
using CheckTask = storm::modelchecker::CheckTask<storm::logic::Formula, ValueType>; using CheckTask = storm::modelchecker::CheckTask<storm::logic::Formula, ValueType>;

3
src/core/result.cpp

@ -3,6 +3,9 @@
#include "storm/modelchecker/results/SymbolicQualitativeCheckResult.h" #include "storm/modelchecker/results/SymbolicQualitativeCheckResult.h"
#include "storm/modelchecker/results/SymbolicQuantitativeCheckResult.h" #include "storm/modelchecker/results/SymbolicQuantitativeCheckResult.h"
#include "storm/modelchecker/results/HybridQuantitativeCheckResult.h" #include "storm/modelchecker/results/HybridQuantitativeCheckResult.h"
#include "storm/modelchecker/results/ExplicitQuantitativeCheckResult.h"
#include "storm/modelchecker/results/ExplicitQualitativeCheckResult.h"
#include "storm/models/symbolic/StandardRewardModel.h" #include "storm/models/symbolic/StandardRewardModel.h"
// Define python bindings // Define python bindings

3
src/pars/common.h

@ -1,3 +1,6 @@
#include "src/common.h" #include "src/common.h"
#include "storm-pars/api/storm-pars.h" #include "storm-pars/api/storm-pars.h"
#include "storm/modelchecker/results/ExplicitQuantitativeCheckResult.h"
#include "storm/modelchecker/results/ExplicitQualitativeCheckResult.h"

2
src/storage/expressions.cpp

@ -3,7 +3,7 @@
#include "storm/storage/expressions/ExpressionManager.h" #include "storm/storage/expressions/ExpressionManager.h"
#include "storm/storage/expressions/Expression.h" #include "storm/storage/expressions/Expression.h"
#include "storm/parser/ExpressionParser.h"
#include "storm-parsers/parser/ExpressionParser.h"
//Define python bindings //Define python bindings
void define_expressions(py::module& m) { void define_expressions(py::module& m) {

Loading…
Cancel
Save