You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict";laraImport("clava.opt.NormalizeToSubset");laraImport("clava.code.Inliner");laraImport("weaver.WeaverJps");laraImport("weaver.TraversalType");laraImport("weaver.Query");// Normalize all codeNormalizeToSubset(Query.root());
Crashes and throws the following error. Execution is halted without any code output:
!Problems while running Clava:
During LARA Interpreter execution
when closing the weaver
Cannot cast pt.up.fe.specs.clava.ast.stmt.ExprStmt to pt.up.fe.specs.clava.ast.decl.Decl
Cannot cast pt.up.fe.specs.clava.ast.stmt.ExprStmt to pt.up.fe.specs.clava.ast.decl.Decl
The problem appears to be due to poor handling of the global variable global_i. If its declaration is moved to inside the function, making it a local variable, the error no longer manifests itself.
The text was updated successfully, but these errors were encountered:
The following C code
When combined with the JS script:
Crashes and throws the following error. Execution is halted without any code output:
The problem appears to be due to poor handling of the global variable
global_i
. If its declaration is moved to inside the function, making it a local variable, the error no longer manifests itself.The text was updated successfully, but these errors were encountered: