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