Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / microwave33.lus @ 6f6af7b8

History | View | Annotate | Download (43.7 KB)

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