Question: Please solve using Alloy (a) (10 points) Write a predicate pros statesimulate that takes two states s1 and s2 as input, and returns true if


Please solve using Alloy
(a) (10 points) Write a predicate pros statesimulate that takes two states s1 and s2 as input, and returns true if state s1 simulates s2, that is for every transition t2 that is going out from s2 into s2, there exists a transition t1 from s1 to s1, such that t1 has the same action as t2 and s1 simulates s2, i.e., stateSimulate [s1,s2]. (b) (2 points) Write a predicate called psmsimulate, which takes two FSMs f1 and f2 as input, and returns true if the initial state of f1 simulates the initial state of f2. (c) (2 points) Add tact statosimulateFact, which sets cansimulato of state s1 as the set of states that can be simulated by s1. (d) (2 points) Add tact FSMSimulateFact, which sets cansimulate of FSM f1 as the set of FSMs that can be simulated by f1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
