You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is an any, Quint simulator will do the following:
Execute all actions and save the result and the state after that action
Filter out actions for which the result is false (i.e. pre-conditions not satisfied)
From the remaining actions, randomly pick one
Take the state from the picked action to be the next state in the simulation and proceed
This means that we can compute a bunch of stuff in 1 that will never be used.
I need to think if this won't affect the probability distribution too much, but an alternative approach would be:
pick an action
execute it. If the result is false, try the next one
if we get back to the picked action, the result of any is false
This would also mean we would make a rand() call even on deterministic anys (that is, with disjoint pre-conditions). But I think is would be a much smaller problem than the performance issue.
The text was updated successfully, but these errors were encountered:
When there is an
any
, Quint simulator will do the following:This means that we can compute a bunch of stuff in 1 that will never be used.
I need to think if this won't affect the probability distribution too much, but an alternative approach would be:
any
is falseThis would also mean we would make a
rand()
call even on deterministicany
s (that is, with disjoint pre-conditions). But I think is would be a much smaller problem than the performance issue.The text was updated successfully, but these errors were encountered: