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