Skip to content

Commit

Permalink
fix remaining formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Mar 11, 2024
1 parent 2a6836b commit f82ef7d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion C/Savina/src/concurrency/Banking.lf
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ reactor Account(

/* [[[cog
cog.outl(f'main reactor (numIterations:size_t={numIterations}, numTransactions:size_t={numTransactions}, numAccounts:size_t={numAccounts})')
]]] */
]]] */ // keep-format
main reactor(numIterations: size_t = 12, numTransactions: size_t = 50000, numAccounts: size_t = 1000)
/* [[[end]]] */ // keep-format
{
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/concurrency/BoundedBuffer.lf
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ reactor ConsumerReactor(bank_index: size_t = 0, consCost: size_t = 25) {
cog.outl(f' numItemsPerProducer: size_t={numItemsPerProducer},')
cog.outl(f' numConsumers: size_t={numConsumers},')
cog.outl(f' numProducers: size_t={numProducers})')
]]] */
]]] */ // keep-format
main reactor(
numIterations: size_t = 12,
bufferSize: size_t = 50,
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/concurrency/CigaretteSmoker.lf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ reactor SmokerReactor {

/* [[[cog
cog.outl(f'main reactor (numIterations:size_t={numIterations}, numRounds:size_t={numRounds}, numSmokers:size_t={numSmokers})')
]]] */
]]] */ // keep-format
main reactor(numIterations: size_t = 12, numRounds: size_t = 1000, numSmokers: size_t = 200)
/* [[[end]]] */ // keep-format
{
Expand Down
1 change: 1 addition & 0 deletions C/Savina/src/concurrency/SleepingBarber.lf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
*/
target C {
keepalive: true, // To silence warnings; because of the physical action.
// To silence warnings; because of the physical action.
// To silence warnings; because of the physical action.
/* [[[cog
if (threading=="True"):
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/micro/Counting.lf
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ reactor CountingReactor {

/* [[[cog
cog.outl(f"main reactor Counting(numIterations:size_t={numIterations}, countTo:size_t={countTo})")
]]] */
]]] */ // keep-format
main reactor Counting(numIterations: size_t = 12, countTo: size_t = 1000000)
/* [[[end]]] */ // keep-format
{
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/parallelism/NQueens.lf
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ reactor Worker(bank_index: size_t = 0, size: size_t = 12, threshold: size_t = 4)
cog.outl(f'priorities:size_t={priorities},')
cog.outl(f'numWorkers:size_t={numWorkers}')
cog.outl(')')
]]] */
]]] */ // keep-format
main reactor(
numIterations: size_t = 12,
size: size_t = 12,
Expand Down

0 comments on commit f82ef7d

Please sign in to comment.