Skip to content

Commit

Permalink
Use ... syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Oct 16, 2023
1 parent b817f43 commit 70cd774
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions tests/difference/core/quint_model/ccv.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -620,30 +620,25 @@ module ccv {
List()
}
)
providerState.with(
// send VscPackets to consumers
"outstandingPacketsToConsumer",
ConsumerChains.mapBy(
val newOutstandingPacketsToConsumer = ConsumerChains.mapBy(
(consumer) =>
providerState.outstandingPacketsToConsumer.get(consumer).concat(
newSentPacketsPerConsumer.get(consumer)
)
)
).with(
// update the sent VscPackets
"sentVscPacketsToConsumer",
ConsumerChains.mapBy(
val newSentVscPackets = ConsumerChains.mapBy(
(consumer) =>
providerState.sentVscPacketsToConsumer.get(consumer).concat(
newSentPacketsPerConsumer.get(consumer)
)
)
).with(
// the validator set has not changed yet in the new block
"providerValidatorSetChangedInThisBlock", false
).with(
"runningVscId", providerState.runningVscId + 1
)
{
...providerState,
outstandingPacketsToConsumer: newOutstandingPacketsToConsumer,
sentVscPacketsToConsumer: newSentVscPackets,
providerValidatorSetChangedInThisBlock: false,
runningVscId: providerState.runningVscId + 1,
}
}

// receives a given packet (sent by the provider) on the consumer. The arguments are the consumer chain that is receiving the packet, and the packet itself.
Expand Down

0 comments on commit 70cd774

Please sign in to comment.