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