the placeBet function has _guess as a parameter. And we must generate a guard representing the possible assignment of this parameter. Result : _guess==HEADS | _guess==TAILS
What to do ?
Check for parameters in FunctionDefinition.
If parameter is present then create a dictionary of list of parameters. The key is parameter and value is type of parameter. COIN in this case.
Then generate one transition for each key, where the guard of the transition will represent possible assignment of these parameters. Not sure if we can run a for loop on dictionary in python.
the placeBet function has _guess as a parameter. And we must generate a guard representing the possible assignment of this parameter. Result :
_guess==HEADS | _guess==TAILS
What to do ?
key
is parameter andvalue
is type of parameter.COIN
in this case.