Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Sep 3, 2023
1 parent 4b92a34 commit ba2fa9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/C/src/PersistentInputs.lf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ reactor Source {
timer t(100 ms, 200 ms)
state count: int = 1

reaction(t) -> out {= lf_set(out, self->count++); =}
reaction(t) -> out {=
lf_set(out, self->count++);
=}
}

reactor Sink {
Expand All @@ -17,7 +19,9 @@ reactor Sink {
state count: int = 0 // For testing, emulate the count variable of Source.
timer t2(100 ms, 200 ms)

reaction(t2) {= self->count++; =}
reaction(t2) {=
self->count++;
=}

reaction(t) in {=
printf("Value of the input is %d at time %lld\n", in->value, lf_time_logical_elapsed());
Expand Down

0 comments on commit ba2fa9c

Please sign in to comment.