Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Sep 25, 2024
1 parent 08762b6 commit 8d29e6b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions core/src/main/java/org/lflang/generator/c/CGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1468,10 +1468,7 @@ private void generateStartTimeStep(ReactorInstance instance) {
String.join(
"\n",
"// Add action " + action.getFullName() + " to array of is_present fields.",
enclaveStruct
+ ".is_present_fields["
+ enclaveInfo.numIsPresentFields
+ " + count] ",
enclaveStruct + ".is_present_fields[" + enclaveInfo.numIsPresentFields + " + count] ",
" = (bool *) &"
+ containerSelfStructName
+ "->_lf__"
Expand All @@ -1495,10 +1492,10 @@ private void generateStartTimeStep(ReactorInstance instance) {
+ action.getName()
+ ".intended_tag;")));

temp.pr("count++;");
temp.endScopedBlock();
temp.endScopedBlock();
enclaveInfo.numIsPresentFields += action.getParent().getTotalWidth();
temp.pr("count++;");
temp.endScopedBlock();
temp.endScopedBlock();
enclaveInfo.numIsPresentFields += action.getParent().getTotalWidth();
}
if (foundOne) startTimeStep.pr(temp.toString());
temp = new CodeBuilder();
Expand Down

0 comments on commit 8d29e6b

Please sign in to comment.