Download as a PDF
Transcript
--On input: sensor.rand_choice:1 timer.rand_choice:0 This is the end of the debug trace for this CTL formula. The command model check continues with the next formula. MC: formula failed --- AG(AF(hwy_light=GREEN)) MC: Calling debugger This indicates that the property failed, and it is followed by an error trace that shows behavior seen in the system that does not satisfy the property. To save space, we omit the error trace. MC: formula passed --- !(AG((car_present=YES -> AF(farm_light=GREEN)))) This indicates that the property passed (i.e. the system satisfies the property). 4.5.2 Debugging for Model Checking If model checking or language emptiness checks fail, VIS reports the failure with a counterexample, i.e., an error trace of sample “bad” behavior (i.e., behavior seen in the system that does not satisfy the property - for model checking, or valid behavior seen in the system - for language emptiness). This is called the “debug” trace. Debug traces list a set of states that are on a path to a fair cycle and fail the CTL formula. In the previous section, the second and third properties fail during model checking. This may be rectified by reading in the fairness constraints previously described for the Traffic Light Controller example. If the fairness constraints are read in, the valid behavior is restricted and these properties pass. In particular, the fairness constraint !(timer.state=START) disallows behavior, where the system stays forever in the state: car_present:YES farm_light:RED hwy_light:YELLOW timer.state:START --On input: sensor.rand_choice:1 timer.rand_choice:0 More precisely, the fairness constraint disallows behavior, where there is a car in the farm road, but the timer is stuck in its initial state, by forcing the timer to progress in finite time to the next state. UC Berkeley, VIS Release 1.0 (compiled 11-Dec-95 at 10:36 AM) vis> read_fairness tlc.fair vis> model_check tlc.ctl MC: formula passed --- AG(!((farm_light=GREEN * hwy_light=GREEN))) MC: formula passed --- AG(((car_present=YES * timer.state=LONG) -> AF(farm_light=GREEN))) MC: formula passed --- AG(AF(hwy_light=GREEN)) MC: formula passed --- !(AG((car_present=YES -> AF(farm_light=GREEN)))) 33