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