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