From 1b17e9a693be64e9182df0f7168874630ba6693f Mon Sep 17 00:00:00 2001 From: hbruintjes Date: Thu, 30 Jun 2016 17:15:32 +0200 Subject: [PATCH] Update core, builder returns model directly Former-commit-id: a30dffa37d5cdbdd05887cc031ba00664dd86add --- stormpy/src/core/core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stormpy/src/core/core.cpp b/stormpy/src/core/core.cpp index 73f95873b..b8f696890 100644 --- a/stormpy/src/core/core.cpp +++ b/stormpy/src/core/core.cpp @@ -31,7 +31,7 @@ void define_parse(py::module& m) { // Thin wrapper for model building template std::shared_ptr buildModel(storm::prism::Program const& program, std::shared_ptr const& formula) { - return storm::buildSymbolicModel(program, std::vector>(1,formula)).model; + return storm::buildSymbolicModel(program, std::vector>(1,formula)); } void define_build(py::module& m) { @@ -40,4 +40,5 @@ void define_build(py::module& m) { m.def("_build_parametric_model", &buildModel, "Build the parametric model", py::arg("program"), py::arg("formula")); m.def("build_model_from_prism_program", &storm::buildSymbolicModel, "Build the model", py::arg("program"), py::arg("formulas")); m.def("build_parametric_model_from_prism_program", &storm::buildSymbolicModel, "Build the parametric model", py::arg("program"), py::arg("formulas")); + }