Matthias Volk
8 years ago
12 changed files with 58 additions and 58 deletions
-
6lib/stormpy/__init__.py
-
1src/core/analysis.cpp
-
1src/core/analysis.h
-
10src/core/bisimulation.cpp
-
2src/core/common.h
-
29src/core/core.cpp
-
2src/core/input.cpp
-
28src/core/modelchecking.cpp
-
1src/core/pla.cpp
-
4tests/core/test_parse.py
-
8tests/storage/test_matrix.py
-
16tests/storage/test_state.py
@ -1,5 +1,4 @@ |
|||
#pragma once |
|||
#include "common.h" |
|||
|
|||
|
|||
void define_graph_constraints(py::module& m); |
@ -1,17 +1,11 @@ |
|||
#include "bisimulation.h"
|
|||
|
|||
// Thin wrapper for bisimulation
|
|||
template<typename ValueType> |
|||
std::shared_ptr<storm::models::sparse::Model<ValueType>> performBisimulation(std::shared_ptr<storm::models::sparse::Model<ValueType>> const& model, std::vector<std::shared_ptr<storm::logic::Formula const>> const& formulas, storm::storage::BisimulationType bisimulationType) { |
|||
return storm::performBisimulationMinimization<storm::models::sparse::Model<ValueType>>(model, formulas, bisimulationType); |
|||
} |
|||
|
|||
// Define python bindings
|
|||
void define_bisimulation(py::module& m) { |
|||
|
|||
// Bisimulation
|
|||
m.def("_perform_bisimulation", &performBisimulation<double>, "Perform bisimulation", py::arg("model"), py::arg("formulas"), py::arg("bisimulation_type")); |
|||
m.def("_perform_parametric_bisimulation", &performBisimulation<storm::RationalFunction>, "Perform bisimulation on parametric model", py::arg("model"), py::arg("formulas"), py::arg("bisimulation_type")); |
|||
m.def("_perform_bisimulation", &storm::api::performBisimulationMinimization<double>, "Perform bisimulation", py::arg("model"), py::arg("formulas"), py::arg("bisimulation_type")); |
|||
m.def("_perform_parametric_bisimulation", &storm::api::performBisimulationMinimization<storm::RationalFunction>, "Perform bisimulation on parametric model", py::arg("model"), py::arg("formulas"), py::arg("bisimulation_type")); |
|||
|
|||
// BisimulationType
|
|||
py::enum_<storm::storage::BisimulationType>(m, "BisimulationType", "Types of bisimulation") |
@ -1,3 +1,3 @@ |
|||
#include "src/common.h" |
|||
#include "storm/utility/storm.h" |
|||
#include "storm/api/storm.h" |
|||
#include <pybind11/stl.h> |
@ -1,5 +1,6 @@ |
|||
#include "pla.h"
|
|||
#include "src/helpers.h"
|
|||
#include "storm/modelchecker/parametric/SparseDtmcRegionChecker.h"
|
|||
|
|||
typedef storm::modelchecker::parametric::SparseDtmcRegionChecker<storm::models::sparse::Dtmc<storm::RationalFunction>, double, storm::RationalNumber> SparseDtmcRegionChecker; |
|||
typedef storm::storage::ParameterRegion<storm::RationalFunction> Region; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue