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