From b77db21e7d296fa77f0fb73d43c2d86eb268d7c6 Mon Sep 17 00:00:00 2001 From: Philipp Schaad Date: Mon, 14 Oct 2024 17:11:09 +0200 Subject: [PATCH] Fix array references in NSDFGs --- src/layouter/layout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouter/layout.ts b/src/layouter/layout.ts index e746c3a..88c2288 100644 --- a/src/layouter/layout.ts +++ b/src/layouter/layout.ts @@ -273,8 +273,9 @@ function layoutDFNode( node.type === SDFGElementType.ExternalNestedSDFG) { if (node.attributes.sdfg && node.attributes.sdfg.type !== 'SDFGShell') { + const nsdfg = new SDFG(node.attributes.sdfg); nestedGraph = layoutControlFlowRegion( - node.attributes.sdfg, state, ctx, cfgList, stateParentList, + node.attributes.sdfg, nsdfg, ctx, cfgList, stateParentList, omitAccessNodes ); const sdfgInfo = calculateBoundingBox(nestedGraph);