From 58dd78c7910a5757dd12fe898d1576c67a8de855 Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Mon, 8 Jan 2018 14:11:29 +0100 Subject: [PATCH] Left and right subformulae of binary path formula --- src/logic/formulae.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/logic/formulae.cpp b/src/logic/formulae.cpp index 072136f..e36a28a 100644 --- a/src/logic/formulae.cpp +++ b/src/logic/formulae.cpp @@ -22,6 +22,8 @@ void define_formulae(py::module& m) { py::class_>(m, "EventuallyFormula", "Formula for eventually", unaryPathFormula); py::class_>(m, "GloballyFormula", "Formula for globally", unaryPathFormula); py::class_> binaryPathFormula(m, "BinaryPathFormula", "Path formula with two operands", pathFormula); + binaryPathFormula.def_property_readonly("left_subformula", &storm::logic::BinaryPathFormula::getLeftSubformula); + binaryPathFormula.def_property_readonly("right_subformula", &storm::logic::BinaryPathFormula::getRightSubformula); py::class_>(m, "BoundedUntilFormula", "Until Formula with either a step or a time bound.", binaryPathFormula); py::class_>(m, "ConditionalFormula", "Formula with the right hand side being a condition.", formula); py::class_>(m, "UntilFormula", "Path Formula for unbounded until", binaryPathFormula);