[ClavaLaraApi] DecomposeVarDeclarations ignores all global variables
@@ -18,7 +18,8 @@ class DecomposeVarDeclarations extends Pass {
return (
$jp.instanceOf("vardecl") &&
$jp.hasInit &&
- $jp.storageClass !== "static" &&
+ !$jp.isGlobal && // Ignore global variables
+ //$jp.storageClass !== "static" &&
!$jp.isInsideLoopHeader &&
!$jp.type.instanceOf("arrayType")
);
