Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 8 additions & 25 deletions choreo.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -124,38 +124,21 @@ module choreo {
transitions: Set[Transition[p, s, m, e, ce]],
apply_custom_effect: EffectProcessor[p, s, m, e, ce, extensions],
): bool =
// FIXME: Quint was supposed to detect determinism alone
if (transitions.size() == 1) {
val transition = transitions.getOnlyElement()
val post_env = apply_effect(s, v, transition, apply_custom_effect)
s' = post_env
} else {
nondet transition = oneOf(transitions)
val post_env = apply_effect(s, v, transition, apply_custom_effect)
s' = post_env
}
nondet transition = oneOf(transitions)
val post_env = apply_effect(s, v, transition, apply_custom_effect)
s' = post_env

action process_transitions_with_displayer(
v: p,
transitions: Set[Transition[p, s, m, e, ce]],
apply_custom_effect: EffectProcessor[p, s, m, e, ce, extensions],
displayer: Displayer[p, s, m, e, extensions, d],
): bool =
// FIXME: Quint was supposed to detect determinism alone
if (transitions.size() == 1) {
val transition = transitions.getOnlyElement()
val post_env = apply_effect(s, v, transition, apply_custom_effect)
all {
s' = post_env,
display' = displayer(post_env),
}
} else {
nondet transition = oneOf(transitions)
val post_env = apply_effect(s, v, transition, apply_custom_effect)
all {
s' = post_env,
display' = displayer(post_env),
}
nondet transition = oneOf(transitions)
val post_env = apply_effect(s, v, transition, apply_custom_effect)
all {
s' = post_env,
display' = displayer(post_env),
}

action init(ctx: GlobalContext[p, s, m , e, ext]): bool = {
Expand Down
Loading