lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / TIMEOUT / microwave21.lus @ b8dc00eb
History | View | Annotate | Download (47.6 KB)
1 | fa9e78e5 | bourbouh | --@ ensures OK; |
---|---|---|---|
2 | node top(KP_START: bool; |
||
3 | KP_CLEAR: bool; |
||
4 | KP_0: bool; |
||
5 | KP_1: bool; |
||
6 | KP_2: bool; |
||
7 | KP_3: bool; |
||
8 | KP_4: bool; |
||
9 | KP_5: bool; |
||
10 | KP_6: bool; |
||
11 | KP_7: bool; |
||
12 | KP_8: bool; |
||
13 | KP_9: bool; |
||
14 | DOOR_CLOSED: bool |
||
15 | ) returns (OK:bool); |
||
16 | |||
17 | |||
18 | var |
||
19 | LEFT_DIGIT: int; |
||
20 | SETUP: bool; |
||
21 | COOKING: bool; |
||
22 | SUSPENDED: bool; |
||
23 | START_PRESSED: bool; |
||
24 | CLEAR_PRESSED: bool; |
||
25 | MIDDLE_DIGIT: int; |
||
26 | RIGHT_DIGIT: int; |
||
27 | enable: bool; |
||
28 | STEPS_TO_COOK: int; |
||
29 | |||
30 | rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; |
||
31 | KP_01: bool; |
||
32 | KP_11: bool; |
||
33 | KP_21: bool; |
||
34 | KP_31: bool; |
||
35 | KP_41: bool; |
||
36 | KP_51: bool; |
||
37 | KP_61: bool; |
||
38 | KP_71: bool; |
||
39 | KP_81: bool; |
||
40 | KP_91: bool; |
||
41 | rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; |
||
42 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; |
||
43 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; |
||
44 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; |
||
45 | rlt__Arrow5: int; |
||
46 | rlt__Arrow4: int; |
||
47 | rlt__Arrow3: int; |
||
48 | rlt__Arrow2: int; |
||
49 | rlt__Arrow1: int; |
||
50 | rlt__Arrow: int; |
||
51 | chart_microwave_mode_logic_start: int; |
||
52 | chart_microwave_mode_logic_clear_off: int; |
||
53 | chart_microwave_mode_logic_door_closed: int; |
||
54 | chart_microwave_mode_logic____wakeup___: bool; |
||
55 | rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; |
||
56 | rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; |
||
57 | rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; |
||
58 | rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; |
||
59 | rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; |
||
60 | rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; |
||
61 | rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; |
||
62 | rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; |
||
63 | rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; |
||
64 | rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; |
||
65 | rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; |
||
66 | rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; |
||
67 | rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; |
||
68 | rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; |
||
69 | rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; |
||
70 | rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; |
||
71 | rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; |
||
72 | rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; |
||
73 | rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; |
||
74 | rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; |
||
75 | rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; |
||
76 | rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; |
||
77 | rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; |
||
78 | rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; |
||
79 | rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; |
||
80 | rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; |
||
81 | rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; |
||
82 | rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; |
||
83 | rlt_eval_microwave_mode_logic_rlt_fired_0: bool; |
||
84 | rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; |
||
85 | rlt_eval_microwave_mode_logic_rlt_fired_1: bool; |
||
86 | rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; |
||
87 | rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; |
||
88 | rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; |
||
89 | rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; |
||
90 | chart_microwave_mode_logic_rlt_evtInitStep: bool; |
||
91 | chart_microwave_mode_logic_begin_state_states___root: int; |
||
92 | chart_microwave_mode_logic_begin_state_outports_mode: int; |
||
93 | chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; |
||
94 | chart_microwave_mode_logic_final_state_states___root: int; |
||
95 | chart_microwave_mode_logic_mode: int; |
||
96 | chart_microwave_mode_logic_steps_remaining: int; |
||
97 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; |
||
98 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; |
||
99 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; |
||
100 | microwave_microwave_mode_logic_mode: int; |
||
101 | MWI_FcnMaxI_In16: int; |
||
102 | MWI_FcnMaxI_In15: int; |
||
103 | MWI_FcnMaxI_In13: int; |
||
104 | MWI_FcnMaxI_In12: int; |
||
105 | MWI_FcnMaxI_In11: int; |
||
106 | MWI_FcnMaxI_In1: int; |
||
107 | p19: bool; |
||
108 | p20: bool; |
||
109 | p21: bool; |
||
110 | p22: bool; |
||
111 | p23: bool; |
||
112 | p24: bool; |
||
113 | p25: bool; |
||
114 | p26: bool; |
||
115 | p27: bool; |
||
116 | p28: bool; |
||
117 | p29: bool; |
||
118 | p30: bool; |
||
119 | p31: bool; |
||
120 | p32: bool; |
||
121 | p33: bool; |
||
122 | p34: bool; |
||
123 | p35: bool; |
||
124 | p36: bool; |
||
125 | p37: bool; |
||
126 | let |
||
127 | rlt__Arrow5 = (639 -> |
||
128 | (if (not (not SETUP)) |
||
129 | then |
||
130 | (if (MWI_FcnMaxI_In13 > 0) |
||
131 | then MWI_FcnMaxI_In13 |
||
132 | else 0) |
||
133 | else 639)); |
||
134 | |||
135 | rlt__Arrow4 = (639 -> |
||
136 | (if (not SUSPENDED) |
||
137 | then |
||
138 | (if (MWI_FcnMaxI_In12 > 0) |
||
139 | then MWI_FcnMaxI_In12 |
||
140 | else 0) |
||
141 | else 639)); |
||
142 | |||
143 | rlt__Arrow3 = (639 -> |
||
144 | (if (not (not COOKING)) |
||
145 | then |
||
146 | (if (MWI_FcnMaxI_In16 > 0) |
||
147 | then MWI_FcnMaxI_In16 |
||
148 | else 0) |
||
149 | else 639)); |
||
150 | |||
151 | rlt__Arrow2 = (639 -> |
||
152 | (if (not (not SUSPENDED)) |
||
153 | then |
||
154 | (if (MWI_FcnMaxI_In15 > 0) |
||
155 | then MWI_FcnMaxI_In15 |
||
156 | else 0) |
||
157 | else 639)); |
||
158 | |||
159 | rlt__Arrow1 = (639 -> |
||
160 | (if (not COOKING) |
||
161 | then |
||
162 | (if (MWI_FcnMaxI_In11 > 0) |
||
163 | then MWI_FcnMaxI_In11 |
||
164 | else 0) |
||
165 | else 639)); |
||
166 | |||
167 | rlt__Arrow = (639 -> |
||
168 | (if (not SETUP) |
||
169 | then |
||
170 | (if (MWI_FcnMaxI_In1 > 0) |
||
171 | then MWI_FcnMaxI_In1 |
||
172 | else 0) |
||
173 | else 639)); |
||
174 | |||
175 | OK = (((not (enable and |
||
176 | (not KP_CLEAR))) or |
||
177 | ((not (((((((((KP_1 or |
||
178 | KP_2) or |
||
179 | KP_3) or |
||
180 | KP_4) or |
||
181 | KP_5) or |
||
182 | KP_6) or |
||
183 | KP_7) or |
||
184 | KP_8) or |
||
185 | KP_9) or |
||
186 | KP_0)) or |
||
187 | (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and |
||
188 | (not KP_CLEAR))) or |
||
189 | ((not ((((((((((KP_1 and |
||
190 | (not (pre KP_1))) or |
||
191 | (KP_2 and |
||
192 | (not (pre KP_2)))) or |
||
193 | (KP_3 and |
||
194 | (not (pre KP_3)))) or |
||
195 | (KP_4 and |
||
196 | (not (pre KP_4)))) or |
||
197 | (KP_5 and |
||
198 | (not (pre KP_5)))) or |
||
199 | (KP_6 and |
||
200 | (not (pre KP_6)))) or |
||
201 | (KP_7 and |
||
202 | (not (pre KP_7)))) or |
||
203 | (KP_8 and |
||
204 | (not (pre KP_8)))) or |
||
205 | (KP_9 and |
||
206 | (not (pre KP_9)))) or |
||
207 | (KP_0 and |
||
208 | (not (pre KP_0))))) or |
||
209 | (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60))))); |
||
210 | |||
211 | p23 = (true -> (((not (enable and |
||
212 | (not KP_CLEAR))) or |
||
213 | (not ((((((((((KP_1 and |
||
214 | (not (pre KP_1))) or |
||
215 | (KP_2 and |
||
216 | (not (pre KP_2)))) or |
||
217 | (KP_3 and |
||
218 | (not (pre KP_3)))) or |
||
219 | (KP_4 and |
||
220 | (not (pre KP_4)))) or |
||
221 | (KP_5 and |
||
222 | (not (pre KP_5)))) or |
||
223 | (KP_6 and |
||
224 | (not (pre KP_6)))) or |
||
225 | (KP_7 and |
||
226 | (not (pre KP_7)))) or |
||
227 | (KP_8 and |
||
228 | (not (pre KP_8)))) or |
||
229 | (KP_9 and |
||
230 | (not (pre KP_9)))) or |
||
231 | (KP_0 and |
||
232 | (not (pre KP_0)))))) or |
||
233 | (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10)))); |
||
234 | |||
235 | p35 = (true -> ((not (enable and |
||
236 | (not KP_CLEAR))) or |
||
237 | ((not ((KP_8 and |
||
238 | (not (pre KP_8))) and |
||
239 | ((not (KP_7 and |
||
240 | (not (pre KP_7)))) and |
||
241 | ((not (KP_6 and |
||
242 | (not (pre KP_6)))) and |
||
243 | ((not (KP_5 and |
||
244 | (not (pre KP_5)))) and |
||
245 | ((not (KP_4 and |
||
246 | (not (pre KP_4)))) and |
||
247 | ((not (KP_3 and |
||
248 | (not (pre KP_3)))) and |
||
249 | ((not (KP_2 and |
||
250 | (not (pre KP_2)))) and |
||
251 | ((not (KP_1 and |
||
252 | (not (pre KP_1)))) and |
||
253 | (not (KP_0 and |
||
254 | (not (pre KP_0))))))))))))) or |
||
255 | (RIGHT_DIGIT = 8)))); |
||
256 | |||
257 | p33 = (true -> ((not (enable and |
||
258 | (not KP_CLEAR))) or |
||
259 | ((not ((KP_6 and |
||
260 | (not (pre KP_6))) and |
||
261 | ((not (KP_5 and |
||
262 | (not (pre KP_5)))) and |
||
263 | ((not (KP_4 and |
||
264 | (not (pre KP_4)))) and |
||
265 | ((not (KP_3 and |
||
266 | (not (pre KP_3)))) and |
||
267 | ((not (KP_2 and |
||
268 | (not (pre KP_2)))) and |
||
269 | ((not (KP_1 and |
||
270 | (not (pre KP_1)))) and |
||
271 | (not (KP_0 and |
||
272 | (not (pre KP_0))))))))))) or |
||
273 | (RIGHT_DIGIT = 6)))); |
||
274 | |||
275 | MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT; |
||
276 | |||
277 | RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER; |
||
278 | |||
279 | p25 = (enable or |
||
280 | (RIGHT_DIGIT = 0)); |
||
281 | |||
282 | p22 = (true -> (((not (enable and |
||
283 | (not KP_CLEAR))) or |
||
284 | (not ((((((((((KP_1 and |
||
285 | (not (pre KP_1))) or |
||
286 | (KP_2 and |
||
287 | (not (pre KP_2)))) or |
||
288 | (KP_3 and |
||
289 | (not (pre KP_3)))) or |
||
290 | (KP_4 and |
||
291 | (not (pre KP_4)))) or |
||
292 | (KP_5 and |
||
293 | (not (pre KP_5)))) or |
||
294 | (KP_6 and |
||
295 | (not (pre KP_6)))) or |
||
296 | (KP_7 and |
||
297 | (not (pre KP_7)))) or |
||
298 | (KP_8 and |
||
299 | (not (pre KP_8)))) or |
||
300 | (KP_9 and |
||
301 | (not (pre KP_9)))) or |
||
302 | (KP_0 and |
||
303 | (not (pre KP_0)))))) or |
||
304 | (MIDDLE_DIGIT = (pre RIGHT_DIGIT)))); |
||
305 | |||
306 | p36 = (true -> ((not (enable and |
||
307 | (not KP_CLEAR))) or |
||
308 | ((not ((KP_9 and |
||
309 | (not (pre KP_9))) and |
||
310 | ((not (KP_8 and |
||
311 | (not (pre KP_8)))) and |
||
312 | ((not (KP_7 and |
||
313 | (not (pre KP_7)))) and |
||
314 | ((not (KP_6 and |
||
315 | (not (pre KP_6)))) and |
||
316 | ((not (KP_5 and |
||
317 | (not (pre KP_5)))) and |
||
318 | ((not (KP_4 and |
||
319 | (not (pre KP_4)))) and |
||
320 | ((not (KP_3 and |
||
321 | (not (pre KP_3)))) and |
||
322 | ((not (KP_2 and |
||
323 | (not (pre KP_2)))) and |
||
324 | ((not (KP_1 and |
||
325 | (not (pre KP_1)))) and |
||
326 | (not (KP_0 and |
||
327 | (not (pre KP_0)))))))))))))) or |
||
328 | (RIGHT_DIGIT = 9)))); |
||
329 | |||
330 | MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1); |
||
331 | |||
332 | CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and |
||
333 | (not (pre KP_CLEAR)))); |
||
334 | |||
335 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60); |
||
336 | |||
337 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) - ((((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10) * 10)); |
||
338 | |||
339 | SUSPENDED = |
||
340 | (if (3 = microwave_microwave_mode_logic_mode) |
||
341 | then true |
||
342 | else false); |
||
343 | |||
344 | p31 = (true -> ((not (enable and |
||
345 | (not KP_CLEAR))) or |
||
346 | ((not ((KP_4 and |
||
347 | (not (pre KP_4))) and |
||
348 | ((not (KP_3 and |
||
349 | (not (pre KP_3)))) and |
||
350 | ((not (KP_2 and |
||
351 | (not (pre KP_2)))) and |
||
352 | ((not (KP_1 and |
||
353 | (not (pre KP_1)))) and |
||
354 | (not (KP_0 and |
||
355 | (not (pre KP_0))))))))) or |
||
356 | (RIGHT_DIGIT = 4)))); |
||
357 | |||
358 | p37 = (true -> ((not (enable and |
||
359 | (not KP_CLEAR))) or |
||
360 | (((((((((((KP_1 and |
||
361 | (not (pre KP_1))) or |
||
362 | (KP_2 and |
||
363 | (not (pre KP_2)))) or |
||
364 | (KP_3 and |
||
365 | (not (pre KP_3)))) or |
||
366 | (KP_4 and |
||
367 | (not (pre KP_4)))) or |
||
368 | (KP_5 and |
||
369 | (not (pre KP_5)))) or |
||
370 | (KP_6 and |
||
371 | (not (pre KP_6)))) or |
||
372 | (KP_7 and |
||
373 | (not (pre KP_7)))) or |
||
374 | (KP_8 and |
||
375 | (not (pre KP_8)))) or |
||
376 | (KP_9 and |
||
377 | (not (pre KP_9)))) or |
||
378 | (KP_0 and |
||
379 | (not (pre KP_0)))) or |
||
380 | (RIGHT_DIGIT = (pre RIGHT_DIGIT))))); |
||
381 | |||
382 | MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1); |
||
383 | |||
384 | MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1); |
||
385 | |||
386 | p24 = (true -> (((not (enable and |
||
387 | (not KP_CLEAR))) or |
||
388 | ((((((((((KP_1 and |
||
389 | (not (pre KP_1))) or |
||
390 | (KP_2 and |
||
391 | (not (pre KP_2)))) or |
||
392 | (KP_3 and |
||
393 | (not (pre KP_3)))) or |
||
394 | (KP_4 and |
||
395 | (not (pre KP_4)))) or |
||
396 | (KP_5 and |
||
397 | (not (pre KP_5)))) or |
||
398 | (KP_6 and |
||
399 | (not (pre KP_6)))) or |
||
400 | (KP_7 and |
||
401 | (not (pre KP_7)))) or |
||
402 | (KP_8 and |
||
403 | (not (pre KP_8)))) or |
||
404 | (KP_9 and |
||
405 | (not (pre KP_9)))) or |
||
406 | (KP_0 and |
||
407 | (not (pre KP_0))))) or |
||
408 | (MIDDLE_DIGIT = (pre MIDDLE_DIGIT)))); |
||
409 | |||
410 | p20 = (enable or |
||
411 | (MIDDLE_DIGIT = 0)); |
||
412 | |||
413 | p26 = ((not (enable and |
||
414 | KP_CLEAR)) or |
||
415 | (RIGHT_DIGIT = 0)); |
||
416 | |||
417 | microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10); |
||
418 | |||
419 | MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1); |
||
420 | |||
421 | |||
422 | MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1); |
||
423 | |||
424 | |||
425 | p30 = (true -> ((not (enable and |
||
426 | (not KP_CLEAR))) or |
||
427 | ((not ((KP_3 and |
||
428 | (not (pre KP_3))) and |
||
429 | ((not (KP_2 and |
||
430 | (not (pre KP_2)))) and |
||
431 | ((not (KP_1 and |
||
432 | (not (pre KP_1)))) and |
||
433 | (not (KP_0 and |
||
434 | (not (pre KP_0)))))))) or |
||
435 | (RIGHT_DIGIT = 3)))); |
||
436 | |||
437 | COOKING = |
||
438 | (if (2 = microwave_microwave_mode_logic_mode) |
||
439 | then true |
||
440 | else false); |
||
441 | |||
442 | LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT; |
||
443 | |||
444 | START_PRESSED = (KP_START -> (KP_START and |
||
445 | (not (pre KP_START)))); |
||
446 | |||
447 | chart_microwave_mode_logic_start = |
||
448 | (if (START_PRESSED = false) |
||
449 | then 0 |
||
450 | else 1); |
||
451 | |||
452 | chart_microwave_mode_logic_clear_off = |
||
453 | (if (CLEAR_PRESSED = false) |
||
454 | then 0 |
||
455 | else 1); |
||
456 | |||
457 | chart_microwave_mode_logic_door_closed = |
||
458 | (if (DOOR_CLOSED = false) |
||
459 | then 0 |
||
460 | else 1); |
||
461 | |||
462 | chart_microwave_mode_logic____wakeup___ = true; |
||
463 | |||
464 | chart_microwave_mode_logic_rlt_evtInitStep = (true -> |
||
465 | (if (pre chart_microwave_mode_logic____wakeup___) |
||
466 | then false |
||
467 | else (pre chart_microwave_mode_logic_rlt_evtInitStep))); |
||
468 | |||
469 | chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root)); |
||
470 | |||
471 | chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode)); |
||
472 | |||
473 | chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining)); |
||
474 | |||
475 | chart_microwave_mode_logic_final_state_states___root = |
||
476 | (if chart_microwave_mode_logic____wakeup___ |
||
477 | then |
||
478 | (if chart_microwave_mode_logic_rlt_evtInitStep |
||
479 | then rlt_enter_microwave_mode_logic_rlt_state_2_states___root |
||
480 | else |
||
481 | (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
||
482 | |||
483 | |||
484 | ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
||
485 | (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
||
486 | then |
||
487 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
||
488 | then |
||
489 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3)) |
||
490 | then |
||
491 | |||
492 | 3 |
||
493 | else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root) |
||
494 | else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root) |
||
495 | else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)) |
||
496 | else chart_microwave_mode_logic_begin_state_states___root); |
||
497 | |||
498 | chart_microwave_mode_logic_mode = |
||
499 | (if chart_microwave_mode_logic____wakeup___ |
||
500 | then |
||
501 | (if chart_microwave_mode_logic_rlt_evtInitStep |
||
502 | then |
||
503 | (if (not (chart_microwave_mode_logic_begin_state_states___root = 4)) |
||
504 | then 1 |
||
505 | else chart_microwave_mode_logic_begin_state_outports_mode) |
||
506 | else |
||
507 | (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
||
508 | |||
509 | |||
510 | ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
||
511 | (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
||
512 | then |
||
513 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
||
514 | then |
||
515 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3)) |
||
516 | then 3 |
||
517 | else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode) |
||
518 | else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode) |
||
519 | else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)) |
||
520 | else chart_microwave_mode_logic_begin_state_outports_mode); |
||
521 | |||
522 | chart_microwave_mode_logic_steps_remaining = |
||
523 | (if chart_microwave_mode_logic____wakeup___ |
||
524 | then |
||
525 | (if chart_microwave_mode_logic_rlt_evtInitStep |
||
526 | then chart_microwave_mode_logic_begin_state_outports_steps_remaining |
||
527 | else |
||
528 | (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
||
529 | |||
530 | |||
531 | ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
||
532 | (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
||
533 | then |
||
534 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
||
535 | then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1) |
||
536 | else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining) |
||
537 | else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining)) |
||
538 | else chart_microwave_mode_logic_begin_state_outports_steps_remaining); |
||
539 | |||
540 | |||
541 | |||
542 | rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4); |
||
543 | |||
544 | |||
545 | |||
546 | rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = |
||
547 | (if rlt_eval_microwave_mode_logic_rlt_fired_0 |
||
548 | then STEPS_TO_COOK |
||
549 | else chart_microwave_mode_logic_begin_state_outports_steps_remaining); |
||
550 | |||
551 | |||
552 | |||
553 | rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and |
||
554 | ((chart_microwave_mode_logic_begin_state_states___root = 4) and |
||
555 | ( |
||
556 | (if (chart_microwave_mode_logic_start <> 0) |
||
557 | then true |
||
558 | else false) and |
||
559 | |||
560 | (if ( |
||
561 | (if ((STEPS_TO_COOK > 0) = false) |
||
562 | then 0 |
||
563 | else 1) <> 0) |
||
564 | then true |
||
565 | else false)))); |
||
566 | |||
567 | |||
568 | |||
569 | rlt_eval_microwave_mode_logic_rlt_state_2_states___root = |
||
570 | (if rlt_eval_microwave_mode_logic_rlt_fired_1 |
||
571 | then |
||
572 | (if (chart_microwave_mode_logic_begin_state_states___root = 4) |
||
573 | then |
||
574 | |||
575 | 0 |
||
576 | else chart_microwave_mode_logic_begin_state_states___root) |
||
577 | else chart_microwave_mode_logic_begin_state_states___root); |
||
578 | |||
579 | |||
580 | |||
581 | rlt_eval_microwave_mode_logic_rlt_state_3_states___root = |
||
582 | (if rlt_eval_microwave_mode_logic_rlt_fired_1 |
||
583 | then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root |
||
584 | else rlt_eval_microwave_mode_logic_rlt_state_2_states___root); |
||
585 | |||
586 | |||
587 | |||
588 | |||
589 | |||
590 | rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = |
||
591 | (if rlt_eval_microwave_mode_logic_rlt_fired_1 |
||
592 | then |
||
593 | (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2 |
||
594 | then |
||
595 | (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3)) |
||
596 | then 3 |
||
597 | else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode) |
||
598 | else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode) |
||
599 | else chart_microwave_mode_logic_begin_state_outports_mode); |
||
600 | |||
601 | |||
602 | |||
603 | |||
604 | |||
605 | rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and |
||
606 | (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and |
||
607 | (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2)); |
||
608 | |||
609 | |||
610 | |||
611 | rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = |
||
612 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
||
613 | then |
||
614 | (if |
||
615 | |||
616 | ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
||
617 | (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)) |
||
618 | then |
||
619 | |||
620 | 0 |
||
621 | else rlt_eval_microwave_mode_logic_rlt_state_3_states___root) |
||
622 | else rlt_eval_microwave_mode_logic_rlt_state_3_states___root); |
||
623 | |||
624 | |||
625 | |||
626 | rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = |
||
627 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
||
628 | then |
||
629 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4)) |
||
630 | then |
||
631 | |||
632 | 4 |
||
633 | else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root) |
||
634 | else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root); |
||
635 | |||
636 | |||
637 | |||
638 | |||
639 | |||
640 | rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and |
||
641 | (( |
||
642 | (if (chart_microwave_mode_logic_start <> 0) |
||
643 | then true |
||
644 | else false) and |
||
645 | |||
646 | (if (chart_microwave_mode_logic_door_closed <> 0) |
||
647 | then true |
||
648 | else false)) and |
||
649 | (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1))); |
||
650 | |||
651 | |||
652 | |||
653 | rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or |
||
654 | rlt_eval_microwave_mode_logic_ON_rlt_fired_1); |
||
655 | |||
656 | |||
657 | |||
658 | rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = |
||
659 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
||
660 | then |
||
661 | (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) |
||
662 | then |
||
663 | |||
664 | 1 |
||
665 | else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root) |
||
666 | else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root); |
||
667 | |||
668 | |||
669 | |||
670 | rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = |
||
671 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
||
672 | then |
||
673 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4)) |
||
674 | then 1 |
||
675 | else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode) |
||
676 | else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode); |
||
677 | |||
678 | |||
679 | |||
680 | rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = |
||
681 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
||
682 | then |
||
683 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2)) |
||
684 | then |
||
685 | |||
686 | 2 |
||
687 | else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root) |
||
688 | else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root); |
||
689 | |||
690 | |||
691 | |||
692 | |||
693 | |||
694 | rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = |
||
695 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
||
696 | then |
||
697 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2)) |
||
698 | then 2 |
||
699 | else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode) |
||
700 | else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode); |
||
701 | |||
702 | |||
703 | |||
704 | |||
705 | |||
706 | rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and |
||
707 | ( |
||
708 | (if (chart_microwave_mode_logic_clear_off <> 0) |
||
709 | then true |
||
710 | else false) and |
||
711 | (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and |
||
712 | ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and |
||
713 | (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))); |
||
714 | |||
715 | |||
716 | |||
717 | rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or |
||
718 | rlt_eval_microwave_mode_logic_ON_rlt_complete_1); |
||
719 | |||
720 | |||
721 | |||
722 | rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = |
||
723 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
||
724 | then |
||
725 | (if |
||
726 | |||
727 | ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and |
||
728 | (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3)) |
||
729 | then |
||
730 | |||
731 | 0 |
||
732 | else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root) |
||
733 | else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root); |
||
734 | |||
735 | |||
736 | |||
737 | rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = |
||
738 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
||
739 | then 0 |
||
740 | else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining); |
||
741 | |||
742 | |||
743 | |||
744 | rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = |
||
745 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
||
746 | then |
||
747 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4)) |
||
748 | then |
||
749 | |||
750 | 4 |
||
751 | else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root) |
||
752 | else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root); |
||
753 | |||
754 | |||
755 | |||
756 | |||
757 | |||
758 | rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and |
||
759 | ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and |
||
760 | (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2))); |
||
761 | |||
762 | |||
763 | |||
764 | rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = |
||
765 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
||
766 | then |
||
767 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4)) |
||
768 | then 1 |
||
769 | else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode) |
||
770 | else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode); |
||
771 | |||
772 | |||
773 | |||
774 | rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = |
||
775 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
||
776 | then |
||
777 | (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) |
||
778 | then |
||
779 | |||
780 | 1 |
||
781 | else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root) |
||
782 | else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root); |
||
783 | |||
784 | |||
785 | |||
786 | rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = |
||
787 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
||
788 | then |
||
789 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2)) |
||
790 | then |
||
791 | |||
792 | 2 |
||
793 | else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root) |
||
794 | else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root); |
||
795 | |||
796 | |||
797 | |||
798 | |||
799 | |||
800 | rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and |
||
801 | (( |
||
802 | (if (chart_microwave_mode_logic_clear_off <> 0) |
||
803 | then true |
||
804 | else false) or |
||
805 | (not |
||
806 | (if (chart_microwave_mode_logic_door_closed <> 0) |
||
807 | then true |
||
808 | else false))) and |
||
809 | (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or |
||
810 | rlt_eval_microwave_mode_logic_ON_rlt_complete_2)))); |
||
811 | |||
812 | |||
813 | |||
814 | rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = |
||
815 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
||
816 | then |
||
817 | (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) |
||
818 | then |
||
819 | |||
820 | 1 |
||
821 | else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root) |
||
822 | else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root); |
||
823 | |||
824 | |||
825 | |||
826 | rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = |
||
827 | (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
||
828 | then |
||
829 | (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2)) |
||
830 | then 2 |
||
831 | else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode) |
||
832 | else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode); |
||
833 | |||
834 | rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = |
||
835 | (if (not |
||
836 | |||
837 | ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and |
||
838 | (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) |
||
839 | then |
||
840 | |||
841 | 1 |
||
842 | else rlt_eval_microwave_mode_logic_rlt_state_2_states___root); |
||
843 | |||
844 | |||
845 | |||
846 | rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not |
||
847 | |||
848 | ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and |
||
849 | (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and |
||
850 | |||
851 | |||
852 | ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and |
||
853 | (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3))); |
||
854 | |||
855 | |||
856 | |||
857 | rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and |
||
858 | ( |
||
859 | |||
860 | ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and |
||
861 | (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and |
||
862 | |||
863 | (if (chart_microwave_mode_logic_door_closed <> 0) |
||
864 | then true |
||
865 | else false))); |
||
866 | |||
867 | |||
868 | |||
869 | rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = |
||
870 | (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1 |
||
871 | then |
||
872 | (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2)) |
||
873 | then |
||
874 | |||
875 | 2 |
||
876 | else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root) |
||
877 | else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root); |
||
878 | |||
879 | |||
880 | |||
881 | |||
882 | |||
883 | rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = |
||
884 | (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1 |
||
885 | then |
||
886 | (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2)) |
||
887 | then 2 |
||
888 | else chart_microwave_mode_logic_begin_state_outports_mode) |
||
889 | else chart_microwave_mode_logic_begin_state_outports_mode); |
||
890 | |||
891 | |||
892 | |||
893 | |||
894 | |||
895 | rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and |
||
896 | ( |
||
897 | |||
898 | ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and |
||
899 | (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and |
||
900 | (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1))); |
||
901 | |||
902 | |||
903 | |||
904 | rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = |
||
905 | (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2 |
||
906 | then |
||
907 | (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3)) |
||
908 | then |
||
909 | |||
910 | 3 |
||
911 | else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root) |
||
912 | else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root); |
||
913 | |||
914 | |||
915 | |||
916 | |||
917 | |||
918 | rlt_enter_microwave_mode_logic_rlt_state_2_states___root = |
||
919 | (if (not (chart_microwave_mode_logic_begin_state_states___root = 4)) |
||
920 | then |
||
921 | |||
922 | 4 |
||
923 | else chart_microwave_mode_logic_begin_state_states___root); |
||
924 | |||
925 | |||
926 | |||
927 | microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode; |
||
928 | |||
929 | |||
930 | MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1); |
||
931 | |||
932 | p27 = (((not (enable and |
||
933 | (not KP_CLEAR))) or |
||
934 | ((not KP_0) or |
||
935 | (RIGHT_DIGIT = 0))) -> ((not (enable and |
||
936 | (not KP_CLEAR))) or |
||
937 | ((not (KP_0 and |
||
938 | (not (pre KP_0)))) or |
||
939 | (RIGHT_DIGIT = 0)))); |
||
940 | |||
941 | rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable; |
||
942 | |||
943 | KP_01 = KP_0; |
||
944 | |||
945 | KP_11 = KP_1; |
||
946 | |||
947 | KP_21 = KP_2; |
||
948 | |||
949 | KP_31 = KP_3; |
||
950 | |||
951 | KP_41 = KP_4; |
||
952 | |||
953 | KP_51 = KP_5; |
||
954 | |||
955 | KP_61 = KP_6; |
||
956 | |||
957 | KP_71 = KP_7; |
||
958 | |||
959 | KP_81 = KP_8; |
||
960 | |||
961 | KP_91 = KP_9; |
||
962 | |||
963 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> |
||
964 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
||
965 | then |
||
966 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
||
967 | then 0 |
||
968 | else |
||
969 | (if KP_CLEAR |
||
970 | then 0 |
||
971 | else |
||
972 | (if |
||
973 | (if ( |
||
974 | (if (KP_01 and |
||
975 | (not (pre KP_01))) |
||
976 | then 0 |
||
977 | else |
||
978 | (if (KP_11 and |
||
979 | (not (pre KP_11))) |
||
980 | then 1 |
||
981 | else |
||
982 | (if (KP_21 and |
||
983 | (not (pre KP_21))) |
||
984 | then 2 |
||
985 | else |
||
986 | (if (KP_31 and |
||
987 | (not (pre KP_31))) |
||
988 | then 3 |
||
989 | else |
||
990 | (if (KP_41 and |
||
991 | (not (pre KP_41))) |
||
992 | then 4 |
||
993 | else |
||
994 | (if (KP_51 and |
||
995 | (not (pre KP_51))) |
||
996 | then 5 |
||
997 | else |
||
998 | (if (KP_61 and |
||
999 | (not (pre KP_61))) |
||
1000 | then 6 |
||
1001 | else |
||
1002 | (if (KP_71 and |
||
1003 | (not (pre KP_71))) |
||
1004 | then 7 |
||
1005 | else |
||
1006 | (if (KP_81 and |
||
1007 | (not (pre KP_81))) |
||
1008 | then 8 |
||
1009 | else |
||
1010 | (if (KP_91 and |
||
1011 | (not (pre KP_91))) |
||
1012 | then 9 |
||
1013 | else 10)))))))))) <= 9) |
||
1014 | then true |
||
1015 | else false) |
||
1016 | then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY) |
||
1017 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)))) |
||
1018 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))); |
||
1019 | |||
1020 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> |
||
1021 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
||
1022 | then |
||
1023 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
||
1024 | then 0 |
||
1025 | else |
||
1026 | (if KP_CLEAR |
||
1027 | then 0 |
||
1028 | else |
||
1029 | (if |
||
1030 | (if ( |
||
1031 | (if (KP_01 and |
||
1032 | (not (pre KP_01))) |
||
1033 | then 0 |
||
1034 | else |
||
1035 | (if (KP_11 and |
||
1036 | (not (pre KP_11))) |
||
1037 | then 1 |
||
1038 | else |
||
1039 | (if (KP_21 and |
||
1040 | (not (pre KP_21))) |
||
1041 | then 2 |
||
1042 | else |
||
1043 | (if (KP_31 and |
||
1044 | (not (pre KP_31))) |
||
1045 | then 3 |
||
1046 | else |
||
1047 | (if (KP_41 and |
||
1048 | (not (pre KP_41))) |
||
1049 | then 4 |
||
1050 | else |
||
1051 | (if (KP_51 and |
||
1052 | (not (pre KP_51))) |
||
1053 | then 5 |
||
1054 | else |
||
1055 | (if (KP_61 and |
||
1056 | (not (pre KP_61))) |
||
1057 | then 6 |
||
1058 | else |
||
1059 | (if (KP_71 and |
||
1060 | (not (pre KP_71))) |
||
1061 | then 7 |
||
1062 | else |
||
1063 | (if (KP_81 and |
||
1064 | (not (pre KP_81))) |
||
1065 | then 8 |
||
1066 | else |
||
1067 | (if (KP_91 and |
||
1068 | (not (pre KP_91))) |
||
1069 | then 9 |
||
1070 | else 10)))))))))) <= 9) |
||
1071 | then true |
||
1072 | else false) |
||
1073 | then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY) |
||
1074 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)))) |
||
1075 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))); |
||
1076 | |||
1077 | microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = ( |
||
1078 | (if KP_CLEAR |
||
1079 | then 0 |
||
1080 | else |
||
1081 | (if |
||
1082 | (if ( |
||
1083 | (if KP_01 |
||
1084 | then 0 |
||
1085 | else |
||
1086 | (if KP_11 |
||
1087 | then 1 |
||
1088 | else |
||
1089 | (if KP_21 |
||
1090 | then 2 |
||
1091 | else |
||
1092 | (if KP_31 |
||
1093 | then 3 |
||
1094 | else |
||
1095 | (if KP_41 |
||
1096 | then 4 |
||
1097 | else |
||
1098 | (if KP_51 |
||
1099 | then 5 |
||
1100 | else |
||
1101 | (if KP_61 |
||
1102 | then 6 |
||
1103 | else |
||
1104 | (if KP_71 |
||
1105 | then 7 |
||
1106 | else |
||
1107 | (if KP_81 |
||
1108 | then 8 |
||
1109 | else |
||
1110 | (if KP_91 |
||
1111 | then 9 |
||
1112 | else 10)))))))))) <= 9) |
||
1113 | then true |
||
1114 | else false) |
||
1115 | then |
||
1116 | (if KP_01 |
||
1117 | then 0 |
||
1118 | else |
||
1119 | (if KP_11 |
||
1120 | then 1 |
||
1121 | else |
||
1122 | (if KP_21 |
||
1123 | then 2 |
||
1124 | else |
||
1125 | (if KP_31 |
||
1126 | then 3 |
||
1127 | else |
||
1128 | (if KP_41 |
||
1129 | then 4 |
||
1130 | else |
||
1131 | (if KP_51 |
||
1132 | then 5 |
||
1133 | else |
||
1134 | (if KP_61 |
||
1135 | then 6 |
||
1136 | else |
||
1137 | (if KP_71 |
||
1138 | then 7 |
||
1139 | else |
||
1140 | (if KP_81 |
||
1141 | then 8 |
||
1142 | else |
||
1143 | (if KP_91 |
||
1144 | then 9 |
||
1145 | else 10)))))))))) |
||
1146 | else 0)) -> |
||
1147 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
||
1148 | then |
||
1149 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
||
1150 | then |
||
1151 | (if KP_CLEAR |
||
1152 | then 0 |
||
1153 | else |
||
1154 | (if |
||
1155 | (if ( |
||
1156 | (if KP_01 |
||
1157 | then 0 |
||
1158 | else |
||
1159 | (if KP_11 |
||
1160 | then 1 |
||
1161 | else |
||
1162 | (if KP_21 |
||
1163 | then 2 |
||
1164 | else |
||
1165 | (if KP_31 |
||
1166 | then 3 |
||
1167 | else |
||
1168 | (if KP_41 |
||
1169 | then 4 |
||
1170 | else |
||
1171 | (if KP_51 |
||
1172 | then 5 |
||
1173 | else |
||
1174 | (if KP_61 |
||
1175 | then 6 |
||
1176 | else |
||
1177 | (if KP_71 |
||
1178 | then 7 |
||
1179 | else |
||
1180 | (if KP_81 |
||
1181 | then 8 |
||
1182 | else |
||
1183 | (if KP_91 |
||
1184 | then 9 |
||
1185 | else 10)))))))))) <= 9) |
||
1186 | then true |
||
1187 | else false) |
||
1188 | then |
||
1189 | (if KP_01 |
||
1190 | then 0 |
||
1191 | else |
||
1192 | (if KP_11 |
||
1193 | then 1 |
||
1194 | else |
||
1195 | (if KP_21 |
||
1196 | then 2 |
||
1197 | else |
||
1198 | (if KP_31 |
||
1199 | then 3 |
||
1200 | else |
||
1201 | (if KP_41 |
||
1202 | then 4 |
||
1203 | else |
||
1204 | (if KP_51 |
||
1205 | then 5 |
||
1206 | else |
||
1207 | (if KP_61 |
||
1208 | then 6 |
||
1209 | else |
||
1210 | (if KP_71 |
||
1211 | then 7 |
||
1212 | else |
||
1213 | (if KP_81 |
||
1214 | then 8 |
||
1215 | else |
||
1216 | (if KP_91 |
||
1217 | then 9 |
||
1218 | else 10)))))))))) |
||
1219 | else 0)) |
||
1220 | else |
||
1221 | (if KP_CLEAR |
||
1222 | then 0 |
||
1223 | else |
||
1224 | (if |
||
1225 | (if ( |
||
1226 | (if (KP_01 and |
||
1227 | (not (pre KP_01))) |
||
1228 | then 0 |
||
1229 | else |
||
1230 | (if (KP_11 and |
||
1231 | (not (pre KP_11))) |
||
1232 | then 1 |
||
1233 | else |
||
1234 | (if (KP_21 and |
||
1235 | (not (pre KP_21))) |
||
1236 | then 2 |
||
1237 | else |
||
1238 | (if (KP_31 and |
||
1239 | (not (pre KP_31))) |
||
1240 | then 3 |
||
1241 | else |
||
1242 | (if (KP_41 and |
||
1243 | (not (pre KP_41))) |
||
1244 | then 4 |
||
1245 | else |
||
1246 | (if (KP_51 and |
||
1247 | (not (pre KP_51))) |
||
1248 | then 5 |
||
1249 | else |
||
1250 | (if (KP_61 and |
||
1251 | (not (pre KP_61))) |
||
1252 | then 6 |
||
1253 | else |
||
1254 | (if (KP_71 and |
||
1255 | (not (pre KP_71))) |
||
1256 | then 7 |
||
1257 | else |
||
1258 | (if (KP_81 and |
||
1259 | (not (pre KP_81))) |
||
1260 | then 8 |
||
1261 | else |
||
1262 | (if (KP_91 and |
||
1263 | (not (pre KP_91))) |
||
1264 | then 9 |
||
1265 | else 10)))))))))) <= 9) |
||
1266 | then true |
||
1267 | else false) |
||
1268 | then |
||
1269 | (if (KP_01 and |
||
1270 | (not (pre KP_01))) |
||
1271 | then 0 |
||
1272 | else |
||
1273 | (if (KP_11 and |
||
1274 | (not (pre KP_11))) |
||
1275 | then 1 |
||
1276 | else |
||
1277 | (if (KP_21 and |
||
1278 | (not (pre KP_21))) |
||
1279 | then 2 |
||
1280 | else |
||
1281 | (if (KP_31 and |
||
1282 | (not (pre KP_31))) |
||
1283 | then 3 |
||
1284 | else |
||
1285 | (if (KP_41 and |
||
1286 | (not (pre KP_41))) |
||
1287 | then 4 |
||
1288 | else |
||
1289 | (if (KP_51 and |
||
1290 | (not (pre KP_51))) |
||
1291 | then 5 |
||
1292 | else |
||
1293 | (if (KP_61 and |
||
1294 | (not (pre KP_61))) |
||
1295 | then 6 |
||
1296 | else |
||
1297 | (if (KP_71 and |
||
1298 | (not (pre KP_71))) |
||
1299 | then 7 |
||
1300 | else |
||
1301 | (if (KP_81 and |
||
1302 | (not (pre KP_81))) |
||
1303 | then 8 |
||
1304 | else |
||
1305 | (if (KP_91 and |
||
1306 | (not (pre KP_91))) |
||
1307 | then 9 |
||
1308 | else 10)))))))))) |
||
1309 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)))) |
||
1310 | else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))); |
||
1311 | |||
1312 | STEPS_TO_COOK = ( |
||
1313 | (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and |
||
1314 | (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)) |
||
1315 | then 0 |
||
1316 | else ((((microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY * 1) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY * 10)) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY * 60)) * 1)) -> |
||
1317 | (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and |
||
1318 | (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)) |
||
1319 | then 0 |
||
1320 | else |
||
1321 | (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
||
1322 | then ((((microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY * 1) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY * 10)) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY * 60)) * 1) |
||
1323 | else (pre STEPS_TO_COOK)))); |
||
1324 | |||
1325 | rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> |
||
1326 | (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock) |
||
1327 | then true |
||
1328 | else |
||
1329 | (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock) |
||
1330 | then false |
||
1331 | else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step)))); |
||
1332 | |||
1333 | SETUP = |
||
1334 | (if (1 = microwave_microwave_mode_logic_mode) |
||
1335 | then true |
||
1336 | else false); |
||
1337 | |||
1338 | p32 = (true -> ((not (enable and |
||
1339 | (not KP_CLEAR))) or |
||
1340 | ((not ((KP_5 and |
||
1341 | (not (pre KP_5))) and |
||
1342 | ((not (KP_4 and |
||
1343 | (not (pre KP_4)))) and |
||
1344 | ((not (KP_3 and |
||
1345 | (not (pre KP_3)))) and |
||
1346 | ((not (KP_2 and |
||
1347 | (not (pre KP_2)))) and |
||
1348 | ((not (KP_1 and |
||
1349 | (not (pre KP_1)))) and |
||
1350 | (not (KP_0 and |
||
1351 | (not (pre KP_0)))))))))) or |
||
1352 | (RIGHT_DIGIT = 5)))); |
||
1353 | |||
1354 | enable = (true -> |
||
1355 | (if (1 = (pre microwave_microwave_mode_logic_mode)) |
||
1356 | then true |
||
1357 | else false)); |
||
1358 | |||
1359 | p28 = (true -> ((not (enable and |
||
1360 | (not KP_CLEAR))) or |
||
1361 | ((not ((KP_1 and |
||
1362 | (not (pre KP_1))) and |
||
1363 | (not (KP_0 and |
||
1364 | (not (pre KP_0)))))) or |
||
1365 | (RIGHT_DIGIT = 1)))); |
||
1366 | |||
1367 | p19 = (true -> ((not (enable and |
||
1368 | (not KP_CLEAR))) or |
||
1369 | (((((((((((KP_1 and |
||
1370 | (not (pre KP_1))) or |
||
1371 | (KP_2 and |
||
1372 | (not (pre KP_2)))) or |
||
1373 | (KP_3 and |
||
1374 | (not (pre KP_3)))) or |
||
1375 | (KP_4 and |
||
1376 | (not (pre KP_4)))) or |
||
1377 | (KP_5 and |
||
1378 | (not (pre KP_5)))) or |
||
1379 | (KP_6 and |
||
1380 | (not (pre KP_6)))) or |
||
1381 | (KP_7 and |
||
1382 | (not (pre KP_7)))) or |
||
1383 | (KP_8 and |
||
1384 | (not (pre KP_8)))) or |
||
1385 | (KP_9 and |
||
1386 | (not (pre KP_9)))) or |
||
1387 | (KP_0 and |
||
1388 | (not (pre KP_0)))) or |
||
1389 | (LEFT_DIGIT = (pre LEFT_DIGIT))))); |
||
1390 | |||
1391 | p29 = (true -> ((not (enable and |
||
1392 | (not KP_CLEAR))) or |
||
1393 | ((not ((KP_2 and |
||
1394 | (not (pre KP_2))) and |
||
1395 | ((not (KP_1 and |
||
1396 | (not (pre KP_1)))) and |
||
1397 | (not (KP_0 and |
||
1398 | (not (pre KP_0))))))) or |
||
1399 | (RIGHT_DIGIT = 2)))); |
||
1400 | |||
1401 | p34 = (true -> ((not (enable and |
||
1402 | (not KP_CLEAR))) or |
||
1403 | ((not ((KP_7 and |
||
1404 | (not (pre KP_7))) and |
||
1405 | ((not (KP_6 and |
||
1406 | (not (pre KP_6)))) and |
||
1407 | ((not (KP_5 and |
||
1408 | (not (pre KP_5)))) and |
||
1409 | ((not (KP_4 and |
||
1410 | (not (pre KP_4)))) and |
||
1411 | ((not (KP_3 and |
||
1412 | (not (pre KP_3)))) and |
||
1413 | ((not (KP_2 and |
||
1414 | (not (pre KP_2)))) and |
||
1415 | ((not (KP_1 and |
||
1416 | (not (pre KP_1)))) and |
||
1417 | (not (KP_0 and |
||
1418 | (not (pre KP_0)))))))))))) or |
||
1419 | (RIGHT_DIGIT = 7)))); |
||
1420 | |||
1421 | p21 = ((not (enable and |
||
1422 | KP_CLEAR)) or |
||
1423 | (MIDDLE_DIGIT = 0)); |
||
1424 | |||
1425 | --%PROPERTY OK=true; |
||
1426 | --%MAIN; |
||
1427 | |||
1428 | tel |