Skip to content

Commit

Permalink
Add execStat for NB processing in the NF (#9957)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Dec 16, 2022
1 parent 433b738 commit 636208b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMCompiler/Compiler/NFFrontEnd/NFInst.mo
Expand Up @@ -209,9 +209,11 @@ algorithm
// Combine the binaries to multaries. For now only on new backend
// since the old frontend and backend do not support it
flatModel := SimplifyModel.combineBinaries(flatModel);
execStat("combineBinaries");
// try to replace calls with array constructors for the new backend
flatModel.equations := Equation.mapExpList(flatModel.equations, function Expression.wrapCall(fun = Call.toArrayConstructor));
flatModel.variables := list(Variable.mapExp(var, function Expression.wrapCall(fun = Call.toArrayConstructor)) for var in flatModel.variables);
execStat("replaceArrayConstructors");
end if;

VerifyModel.verify(flatModel);
Expand Down

0 comments on commit 636208b

Please sign in to comment.