From 875feebdb8b33df83639001d351b5235cf68af05 Mon Sep 17 00:00:00 2001 From: sjunges Date: Sun, 30 Oct 2016 01:55:30 +0200 Subject: [PATCH] modularisation checks for restrictors Former-commit-id: 6c4eb363cd11f9aa442f823f6cf03c969f0bc72a --- src/storage/dft/DFT.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/dft/DFT.cpp b/src/storage/dft/DFT.cpp index b8024ef56..101f3f962 100644 --- a/src/storage/dft/DFT.cpp +++ b/src/storage/dft/DFT.cpp @@ -243,7 +243,7 @@ namespace storm { std::map> subdfts; for(auto const& child : children) { std::vector isubdft; - if(child->nrParents() > 1 || child->hasOutgoingDependencies()) { + if(child->nrParents() > 1 || child->hasOutgoingDependencies() || child->hasRestrictions()) { STORM_LOG_TRACE("child " << child->name() << "does not allow modularisation."); return {*this}; } @@ -696,6 +696,8 @@ namespace storm { // suitable parent gate! - Lets check the independent submodules of the children auto const& children = std::static_pointer_cast>(e)->children(); for(auto const& child : children) { + + auto ISD = std::static_pointer_cast>(child)->independentSubDft(true); // In the ISD, check for other children: