Skip to content

Interactive simulation shows unexecutable choices #84

@LauraPanizo

Description

@LauraPanizo

I modeled a simple coffe machine and I have notice a weird behaviour in the interactive simulation when using the following code

active proctype coffemachine(){
int estado = 0; //off
inicio:
if
:: estado == 0 -> estado = 1; //idle
:: estado == 1 -> estado = 0; //off
:: estado == 1 -> estado = 2; //making coffe
:: estado == 2 -> estado = 3; /serving coffe
:: estado == 3 -> estado = 1; //idle
fi;
goto inicio;

}

In the first decision point, the interactive simulator shows that estado is 1 and gives me three possible options (estado==0, estado ==1, estado==1), but the first option is not executable. Similarly, if I make select different options at some points when estado is 1 and gives me 4 options to choose (estado ==1, estado==1, estado==2 and estado ==3), the last two are not executable.
I have always believe that interactive simulation let us choose between the executable options and hides the non-excutables.
Could you confirm that it is a bug?

Best regards,
Laura

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions