Browse Source

extracted from storm repo, refactored formula

refactoring
Sebastian Junges 8 years ago
commit
0c79aba2c7
  1. 64
      CMakeLists.txt
  2. 3
      lib/.gitignore
  3. 70
      lib/stormpy/__init__.py
  4. 2
      lib/stormpy/expressions/__init__.py
  5. 2
      lib/stormpy/info/__init__.py
  6. 2
      lib/stormpy/logic/__init__.py
  7. 3
      lib/stormpy/storage/__init__.py
  8. 36
      lib/stormpy/storage/action.py
  9. 34
      lib/stormpy/storage/state.py
  10. 32
      resources/pybind11/.appveyor.yml
  11. 35
      resources/pybind11/.gitignore
  12. 3
      resources/pybind11/.gitmodules
  13. 112
      resources/pybind11/.travis.yml
  14. 184
      resources/pybind11/CMakeLists.txt
  15. 37
      resources/pybind11/CONTRIBUTING.md
  16. 36
      resources/pybind11/LICENSE
  17. 2
      resources/pybind11/MANIFEST.in
  18. 123
      resources/pybind11/README.md
  19. 11
      resources/pybind11/docs/_static/theme_overrides.css
  20. 81
      resources/pybind11/docs/advanced/cast/chrono.rst
  21. 85
      resources/pybind11/docs/advanced/cast/custom.rst
  22. 50
      resources/pybind11/docs/advanced/cast/eigen.rst
  23. 113
      resources/pybind11/docs/advanced/cast/functional.rst
  24. 41
      resources/pybind11/docs/advanced/cast/index.rst
  25. 144
      resources/pybind11/docs/advanced/cast/overview.rst
  26. 154
      resources/pybind11/docs/advanced/cast/stl.rst
  27. 634
      resources/pybind11/docs/advanced/classes.rst
  28. 142
      resources/pybind11/docs/advanced/exceptions.rst
  29. 311
      resources/pybind11/docs/advanced/functions.rst
  30. 229
      resources/pybind11/docs/advanced/misc.rst
  31. 13
      resources/pybind11/docs/advanced/pycpp/index.rst
  32. 299
      resources/pybind11/docs/advanced/pycpp/numpy.rst
  33. 96
      resources/pybind11/docs/advanced/pycpp/object.rst
  34. 57
      resources/pybind11/docs/advanced/pycpp/utilities.rst
  35. 143
      resources/pybind11/docs/advanced/smart_ptrs.rst
  36. 287
      resources/pybind11/docs/basics.rst
  37. 90
      resources/pybind11/docs/benchmark.py
  38. 99
      resources/pybind11/docs/benchmark.rst
  39. 222
      resources/pybind11/docs/changelog.rst
  40. 410
      resources/pybind11/docs/classes.rst
  41. 53
      resources/pybind11/docs/compiling.rst
  42. 308
      resources/pybind11/docs/conf.py
  43. 251
      resources/pybind11/docs/faq.rst
  44. 45
      resources/pybind11/docs/index.rst
  45. 93
      resources/pybind11/docs/intro.rst
  46. 20
      resources/pybind11/docs/limitations.rst
  47. BIN
      resources/pybind11/docs/pybind11-logo.png
  48. BIN
      resources/pybind11/docs/pybind11_vs_boost_python1.png
  49. 427
      resources/pybind11/docs/pybind11_vs_boost_python1.svg
  50. BIN
      resources/pybind11/docs/pybind11_vs_boost_python2.png
  51. 427
      resources/pybind11/docs/pybind11_vs_boost_python2.svg
  52. 247
      resources/pybind11/docs/reference.rst
  53. 22
      resources/pybind11/docs/release.rst
  54. 362
      resources/pybind11/include/pybind11/attr.h
  55. 1464
      resources/pybind11/include/pybind11/cast.h
  56. 160
      resources/pybind11/include/pybind11/chrono.h
  57. 560
      resources/pybind11/include/pybind11/common.h
  58. 47
      resources/pybind11/include/pybind11/complex.h
  59. 177
      resources/pybind11/include/pybind11/descr.h
  60. 239
      resources/pybind11/include/pybind11/eigen.h
  61. 105
      resources/pybind11/include/pybind11/eval.h
  62. 79
      resources/pybind11/include/pybind11/functional.h
  63. 1169
      resources/pybind11/include/pybind11/numpy.h
  64. 154
      resources/pybind11/include/pybind11/operators.h
  65. 65
      resources/pybind11/include/pybind11/options.h
  66. 1735
      resources/pybind11/include/pybind11/pybind11.h
  67. 899
      resources/pybind11/include/pybind11/pytypes.h
  68. 256
      resources/pybind11/include/pybind11/stl.h
  69. 541
      resources/pybind11/include/pybind11/stl_bind.h
  70. 53
      resources/pybind11/include/pybind11/typeid.h
  71. 11
      resources/pybind11/pybind11/__init__.py
  72. 2
      resources/pybind11/pybind11/_version.py
  73. 11
      resources/pybind11/setup.cfg
  74. 74
      resources/pybind11/setup.py
  75. 111
      resources/pybind11/tests/CMakeLists.txt
  76. 227
      resources/pybind11/tests/conftest.py
  77. 249
      resources/pybind11/tests/constructor_stats.h
  78. 175
      resources/pybind11/tests/object.h
  79. 45
      resources/pybind11/tests/pybind11_tests.cpp
  80. 12
      resources/pybind11/tests/pybind11_tests.h
  81. 62
      resources/pybind11/tests/test_alias_initialization.cpp
  82. 79
      resources/pybind11/tests/test_alias_initialization.py
  83. 117
      resources/pybind11/tests/test_buffers.cpp
  84. 57
      resources/pybind11/tests/test_buffers.py
  85. 149
      resources/pybind11/tests/test_callbacks.cpp
  86. 98
      resources/pybind11/tests/test_callbacks.py
  87. 59
      resources/pybind11/tests/test_chrono.cpp
  88. 116
      resources/pybind11/tests/test_chrono.py
  89. 68
      resources/pybind11/tests/test_class_args.cpp
  90. 6
      resources/pybind11/tests/test_class_args.py
  91. 55
      resources/pybind11/tests/test_constants_and_functions.cpp
  92. 21
      resources/pybind11/tests/test_constants_and_functions.py
  93. 41
      resources/pybind11/tests/test_copy_move_policies.cpp
  94. 15
      resources/pybind11/tests/test_copy_move_policies.py
  95. 53
      resources/pybind11/tests/test_docstring_options.cpp
  96. 32
      resources/pybind11/tests/test_docstring_options.py
  97. 134
      resources/pybind11/tests/test_eigen.cpp
  98. 135
      resources/pybind11/tests/test_eigen.py
  99. 68
      resources/pybind11/tests/test_enum.cpp
  100. 108
      resources/pybind11/tests/test_enum.py

64
CMakeLists.txt

@ -0,0 +1,64 @@
cmake_minimum_required(VERSION 3.0.0)
project(pystorm)
find_package(storm REQUIRED)
add_subdirectory(resources/pybind11)
file(GLOB_RECURSE STORM_CORE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/core/*.cpp)
pybind11_add_module(stormpy.core ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_core.cpp ${STORM_CORE_SOURCES})
target_include_directories(stormpy.core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(stormpy.core PRIVATE storm)
file(GLOB_RECURSE STORM_INFO_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/info/*.cpp)
pybind11_add_module(stormpy.info ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_info.cpp ${STORM_INFO_SOURCES})
target_include_directories(stormpy.info PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(stormpy.info PRIVATE storm)
file(GLOB_RECURSE STORM_EXPRESSIONS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/expressions/*.cpp)
pybind11_add_module(stormpy.expressions ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_expressions.cpp ${STORM_EXPRESSIONS_SOURCES})
target_include_directories(stormpy.expressions PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(stormpy.expressions PRIVATE storm)
file(GLOB_RECURSE STORM_LOGIC_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/logic/*.cpp)
pybind11_add_module(stormpy.logic ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_logic.cpp ${STORM_LOGIC_SOURCES})
target_include_directories(stormpy.logic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(stormpy.logic PRIVATE storm)
file(GLOB_RECURSE STORM_STORAGE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/storage/*.cpp)
pybind11_add_module(stormpy.storage ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_storage.cpp ${STORM_STORAGE_SOURCES})
target_include_directories(stormpy.storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(stormpy.storage PRIVATE storm)
#set(STORMPY_OUTPUT_DIR "${PROJECT_BINARY_DIR}/stormpy")
#set(STORMPY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/stormpy")
#
#if(STORM_HAVE_CLN)
# set(STORMPY_USE_CLN 1)
#else()
# set(STORMPY_USE_CLN 0)
#endif()
#
## Set configuration file
#get_directory_property(STORMPY_INCLUDE_DIRS_PROP INCLUDE_DIRECTORIES)
#foreach(arg ${STORMPY_INCLUDE_DIRS_PROP})
# set(STORMPY_INCLUDE_DIRS "${STORMPY_INCLUDE_DIRS}${sep}${arg}")
# set(sep ":")
#endforeach()
#set(STORMPY_COMPILE_ARGS ${CMAKE_CXX_FLAGS})
#set(STORMPY_LIBRARY_DIRS "${PROJECT_BINARY_DIR}/src/storm")
#set(STORMPY_RPATH "${PROJECT_BINARY_DIR}/src/storm")
#configure_file (
# "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg.in"
# "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg"
#)
#

3
lib/.gitignore

@ -0,0 +1,3 @@
*.so
__pycache__/
stormpy.egg-info/

70
lib/stormpy/__init__.py

@ -0,0 +1,70 @@
"""
It looks like you want to know about 'stormpy'.
_.-;:q=._
.' j=""^k;:\.
; .F ";`Y
,;.J_ ;'j
,-;"^7F : .F _________________
,-'-_<. ;gj. _.,---""'' .'
; _,._`\. : `T"5, ;
: `?8w7 `J ,-'" -^q. ` ;
\;._ _,=' ; n58L Y. .'
F;"; .' k_ `^' j' ;
J;:: ; "y:-=' ;
L;;== |:; jT\ ;
L;:;J J:L 7:;' _ ;
I;|:.L |:k J:.' , ' . ;
|;J:.| ;.I F.: . :
;J;:L:: |.| |.J , ' ` ; ;
.' J:`J.`. :.J |. L . ; ;
; L :k:`._ ,',j J; | ` , ; ;
sp/cln_mirror - cln_mirror - Gitea: Git with a cup of tea
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Alexei Sheplyakov 6e18082d67 Replace CL_REQUIRE/CL_PROVIDE(cl_random_def) with portable code. 17 years ago
..
aclocal.m4 Split aclocal.m4 into many small files. 20 years ago
config.guess * Upgrade to files from libtool 1.5.26. 17 years ago
config.sub * Upgrade to files from libtool 1.5.26. 17 years ago
floatparam.c Remove support for K&R C compilers. 17 years ago
install-sh They force us to have install-sh even though we don't use it. 24 years ago
intparam.c Remove support for K&R C compilers. 17 years ago
ltmain.sh * Upgrade to files from libtool 1.5.26. 17 years ago
0 HTTP/1.0 200 OK Content-Type: text/html; charset=UTF-8 Set-Cookie: i_like_gitea=c9facb09a8449261; Path=/; HttpOnly; SameSite=Lax Set-Cookie: _csrf=hARUrcFWgm_DaGwslgZkhYbBwYc6MTczNDk1MjAwOTQyMzgxMzMyOA; Path=/; Expires=Tue, 24 Dec 2024 11:06:49 GMT; HttpOnly; SameSite=Lax Set-Cookie: macaron_flash=; Path=/; Max-Age=0; HttpOnly; SameSite=Lax X-Frame-Options: SAMEORIGIN Date: Mon, 23 Dec 2024 11:09:42 GMT sp/tempest - tempest - Gitea: Git with a cup of tea