These are two separate transitions, so only one event is needed.
You did not ask, but remember that when in state s1 the event e1 is nondeterministic. The reason is that there are two competing transitions.
I will point out, as @thomas suggested, that you can force the guard to also apply to the e1 event by adding this protector to this event. It will look like e1[x==6].
source
share