Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / kind_fmcad08 / large / microwave17.lus @ 22fe1c93

History | View | Annotate | Download (48.7 KB)

1
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
var
18
   LEFT_DIGIT: int; 
19
      SETUP: bool; 
20
      COOKING: bool; 
21
      SUSPENDED: bool; 
22
      START_PRESSED: bool; 
23
      CLEAR_PRESSED: bool; 
24
      MIDDLE_DIGIT: int; 
25
      RIGHT_DIGIT: int; 
26
      enable: bool; 
27
      STEPS_TO_COOK: int;
28
      
29
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; 
30
   KP_01: bool; 
31
   KP_11: bool; 
32
   KP_21: bool; 
33
   KP_31: bool; 
34
   KP_41: bool; 
35
   KP_51: bool; 
36
   KP_61: bool; 
37
   KP_71: bool; 
38
   KP_81: bool; 
39
   KP_91: bool; 
40
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; 
41
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; 
42
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; 
43
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; 
44
   rlt__Arrow5: int; 
45
   rlt__Arrow4: int; 
46
   rlt__Arrow3: int; 
47
   rlt__Arrow2: int; 
48
   rlt__Arrow1: int; 
49
   rlt__Arrow: int; 
50
   chart_microwave_mode_logic_start: int; 
51
   chart_microwave_mode_logic_clear_off: int; 
52
   chart_microwave_mode_logic_door_closed: int; 
53
   chart_microwave_mode_logic____wakeup___: bool; 
54
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; 
55
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
56
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
57
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; 
58
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; 
59
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; 
60
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; 
61
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
62
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; 
63
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; 
64
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; 
65
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; 
66
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; 
67
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; 
68
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; 
69
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; 
70
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; 
71
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; 
72
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; 
73
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; 
74
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; 
75
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
76
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; 
77
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; 
78
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
79
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; 
80
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; 
81
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
82
   rlt_eval_microwave_mode_logic_rlt_fired_0: bool; 
83
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; 
84
   rlt_eval_microwave_mode_logic_rlt_fired_1: bool; 
85
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; 
86
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; 
87
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; 
88
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; 
89
   chart_microwave_mode_logic_rlt_evtInitStep: bool; 
90
   chart_microwave_mode_logic_begin_state_states___root: int; 
91
   chart_microwave_mode_logic_begin_state_outports_mode: int; 
92
   chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; 
93
   chart_microwave_mode_logic_final_state_states___root: int; 
94
   chart_microwave_mode_logic_mode: int; 
95
   chart_microwave_mode_logic_steps_remaining: int; 
96
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; 
97
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; 
98
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; 
99
   microwave_microwave_mode_logic_mode: int; 
100
   MWI_FcnMaxI_In16: int; 
101
   MWI_FcnMaxI_In15: int; 
102
   MWI_FcnMaxI_In13: int; 
103
   MWI_FcnMaxI_In12: int; 
104
   MWI_FcnMaxI_In11: int; 
105
   MWI_FcnMaxI_In1: int; 
106
   p15: bool; 
107
   p16: bool; 
108
   p17: bool; 
109
   p18: bool; 
110
   p19: bool; 
111
   p20: bool; 
112
   p21: bool; 
113
   p22: bool; 
114
   p23: bool; 
115
   p24: bool; 
116
   p25: bool; 
117
   p26: bool; 
118
   p27: bool; 
119
   p28: bool; 
120
   p29: bool; 
121
   p30: bool; 
122
   p31: bool; 
123
   p32: bool; 
124
   p33: bool; 
125
   p34: bool; 
126
   p35: bool; 
127
   p36: bool; 
128
   p37: bool; 
129
let 
130
   rlt__Arrow5 = (639 -> 
131
      (if (not (not SETUP))
132
         then 
133
               (if (MWI_FcnMaxI_In13 > 0)
134
                  then MWI_FcnMaxI_In13
135
                  else 0)
136
         else 639));
137

    
138
   rlt__Arrow4 = (639 -> 
139
      (if (not SUSPENDED)
140
         then 
141
               (if (MWI_FcnMaxI_In12 > 0)
142
                  then MWI_FcnMaxI_In12
143
                  else 0)
144
         else 639));
145

    
146
   rlt__Arrow3 = (639 -> 
147
      (if (not (not COOKING))
148
         then 
149
               (if (MWI_FcnMaxI_In16 > 0)
150
                  then MWI_FcnMaxI_In16
151
                  else 0)
152
         else 639));
153

    
154
   rlt__Arrow2 = (639 -> 
155
      (if (not (not SUSPENDED))
156
         then 
157
               (if (MWI_FcnMaxI_In15 > 0)
158
                  then MWI_FcnMaxI_In15
159
                  else 0)
160
         else 639));
161

    
162
   rlt__Arrow1 = (639 -> 
163
      (if (not COOKING)
164
         then 
165
               (if (MWI_FcnMaxI_In11 > 0)
166
                  then MWI_FcnMaxI_In11
167
                  else 0)
168
         else 639));
169

    
170
   rlt__Arrow = (639 -> 
171
      (if (not SETUP)
172
         then 
173
               (if (MWI_FcnMaxI_In1 > 0)
174
                  then MWI_FcnMaxI_In1
175
                  else 0)
176
         else 639));
177

    
178
   p18 = (((not (enable and 
179
      (not KP_CLEAR))) or 
180
      ((not (((((((((KP_1 or 
181
      KP_2) or 
182
      KP_3) or 
183
      KP_4) or 
184
      KP_5) or 
185
      KP_6) or 
186
      KP_7) or 
187
      KP_8) or 
188
      KP_9) or 
189
      KP_0)) or 
190
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
191
      (not KP_CLEAR))) or 
192
      ((not ((((((((((KP_1 and 
193
      (not (pre KP_1))) or 
194
      (KP_2 and 
195
      (not (pre KP_2)))) or 
196
      (KP_3 and 
197
      (not (pre KP_3)))) or 
198
      (KP_4 and 
199
      (not (pre KP_4)))) or 
200
      (KP_5 and 
201
      (not (pre KP_5)))) or 
202
      (KP_6 and 
203
      (not (pre KP_6)))) or 
204
      (KP_7 and 
205
      (not (pre KP_7)))) or 
206
      (KP_8 and 
207
      (not (pre KP_8)))) or 
208
      (KP_9 and 
209
      (not (pre KP_9)))) or 
210
      (KP_0 and 
211
      (not (pre KP_0))))) or 
212
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
213

    
214
   p23 = (true -> (((not (enable and 
215
      (not KP_CLEAR))) or 
216
      (not ((((((((((KP_1 and 
217
      (not (pre KP_1))) or 
218
      (KP_2 and 
219
      (not (pre KP_2)))) or 
220
      (KP_3 and 
221
      (not (pre KP_3)))) or 
222
      (KP_4 and 
223
      (not (pre KP_4)))) or 
224
      (KP_5 and 
225
      (not (pre KP_5)))) or 
226
      (KP_6 and 
227
      (not (pre KP_6)))) or 
228
      (KP_7 and 
229
      (not (pre KP_7)))) or 
230
      (KP_8 and 
231
      (not (pre KP_8)))) or 
232
      (KP_9 and 
233
      (not (pre KP_9)))) or 
234
      (KP_0 and 
235
      (not (pre KP_0)))))) or 
236
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
237

    
238
   p35 = (true -> ((not (enable and 
239
      (not KP_CLEAR))) or 
240
      ((not ((KP_8 and 
241
      (not (pre KP_8))) and 
242
      ((not (KP_7 and 
243
      (not (pre KP_7)))) and 
244
      ((not (KP_6 and 
245
      (not (pre KP_6)))) and 
246
      ((not (KP_5 and 
247
      (not (pre KP_5)))) and 
248
      ((not (KP_4 and 
249
      (not (pre KP_4)))) and 
250
      ((not (KP_3 and 
251
      (not (pre KP_3)))) and 
252
      ((not (KP_2 and 
253
      (not (pre KP_2)))) and 
254
      ((not (KP_1 and 
255
      (not (pre KP_1)))) and 
256
      (not (KP_0 and 
257
      (not (pre KP_0))))))))))))) or 
258
      (RIGHT_DIGIT = 8))));
259

    
260
   p33 = (true -> ((not (enable and 
261
      (not KP_CLEAR))) or 
262
      ((not ((KP_6 and 
263
      (not (pre KP_6))) and 
264
      ((not (KP_5 and 
265
      (not (pre KP_5)))) and 
266
      ((not (KP_4 and 
267
      (not (pre KP_4)))) and 
268
      ((not (KP_3 and 
269
      (not (pre KP_3)))) and 
270
      ((not (KP_2 and 
271
      (not (pre KP_2)))) and 
272
      ((not (KP_1 and 
273
      (not (pre KP_1)))) and 
274
      (not (KP_0 and 
275
      (not (pre KP_0))))))))))) or 
276
      (RIGHT_DIGIT = 6))));
277

    
278
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
279

    
280
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
281

    
282
   p25 = (enable or 
283
      (RIGHT_DIGIT = 0));
284

    
285
   p22 = (true -> (((not (enable and 
286
      (not KP_CLEAR))) or 
287
      (not ((((((((((KP_1 and 
288
      (not (pre KP_1))) or 
289
      (KP_2 and 
290
      (not (pre KP_2)))) or 
291
      (KP_3 and 
292
      (not (pre KP_3)))) or 
293
      (KP_4 and 
294
      (not (pre KP_4)))) or 
295
      (KP_5 and 
296
      (not (pre KP_5)))) or 
297
      (KP_6 and 
298
      (not (pre KP_6)))) or 
299
      (KP_7 and 
300
      (not (pre KP_7)))) or 
301
      (KP_8 and 
302
      (not (pre KP_8)))) or 
303
      (KP_9 and 
304
      (not (pre KP_9)))) or 
305
      (KP_0 and 
306
      (not (pre KP_0)))))) or 
307
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
308

    
309
   p36 = (true -> ((not (enable and 
310
      (not KP_CLEAR))) or 
311
      ((not ((KP_9 and 
312
      (not (pre KP_9))) and 
313
      ((not (KP_8 and 
314
      (not (pre KP_8)))) and 
315
      ((not (KP_7 and 
316
      (not (pre KP_7)))) and 
317
      ((not (KP_6 and 
318
      (not (pre KP_6)))) and 
319
      ((not (KP_5 and 
320
      (not (pre KP_5)))) and 
321
      ((not (KP_4 and 
322
      (not (pre KP_4)))) and 
323
      ((not (KP_3 and 
324
      (not (pre KP_3)))) and 
325
      ((not (KP_2 and 
326
      (not (pre KP_2)))) and 
327
      ((not (KP_1 and 
328
      (not (pre KP_1)))) and 
329
      (not (KP_0 and 
330
      (not (pre KP_0)))))))))))))) or 
331
      (RIGHT_DIGIT = 9))));
332

    
333
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
334

    
335
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
336
      (not (pre KP_CLEAR))));
337

    
338
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
339

    
340
   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));
341

    
342
   SUSPENDED = 
343
      (if (3 = microwave_microwave_mode_logic_mode)
344
         then true
345
         else false);
346

    
347
   p31 = (true -> ((not (enable and 
348
      (not KP_CLEAR))) or 
349
      ((not ((KP_4 and 
350
      (not (pre KP_4))) and 
351
      ((not (KP_3 and 
352
      (not (pre KP_3)))) and 
353
      ((not (KP_2 and 
354
      (not (pre KP_2)))) and 
355
      ((not (KP_1 and 
356
      (not (pre KP_1)))) and 
357
      (not (KP_0 and 
358
      (not (pre KP_0))))))))) or 
359
      (RIGHT_DIGIT = 4))));
360

    
361
   p37 = (true -> ((not (enable and 
362
      (not KP_CLEAR))) or 
363
      (((((((((((KP_1 and 
364
      (not (pre KP_1))) or 
365
      (KP_2 and 
366
      (not (pre KP_2)))) or 
367
      (KP_3 and 
368
      (not (pre KP_3)))) or 
369
      (KP_4 and 
370
      (not (pre KP_4)))) or 
371
      (KP_5 and 
372
      (not (pre KP_5)))) or 
373
      (KP_6 and 
374
      (not (pre KP_6)))) or 
375
      (KP_7 and 
376
      (not (pre KP_7)))) or 
377
      (KP_8 and 
378
      (not (pre KP_8)))) or 
379
      (KP_9 and 
380
      (not (pre KP_9)))) or 
381
      (KP_0 and 
382
      (not (pre KP_0)))) or 
383
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
384

    
385
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
386

    
387
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
388

    
389
   p24 = (true -> (((not (enable and 
390
      (not KP_CLEAR))) or 
391
      ((((((((((KP_1 and 
392
      (not (pre KP_1))) or 
393
      (KP_2 and 
394
      (not (pre KP_2)))) or 
395
      (KP_3 and 
396
      (not (pre KP_3)))) or 
397
      (KP_4 and 
398
      (not (pre KP_4)))) or 
399
      (KP_5 and 
400
      (not (pre KP_5)))) or 
401
      (KP_6 and 
402
      (not (pre KP_6)))) or 
403
      (KP_7 and 
404
      (not (pre KP_7)))) or 
405
      (KP_8 and 
406
      (not (pre KP_8)))) or 
407
      (KP_9 and 
408
      (not (pre KP_9)))) or 
409
      (KP_0 and 
410
      (not (pre KP_0))))) or 
411
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
412

    
413
   p20 = (enable or 
414
      (MIDDLE_DIGIT = 0));
415

    
416
   p26 = ((not (enable and 
417
      KP_CLEAR)) or 
418
      (RIGHT_DIGIT = 0));
419

    
420
   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);
421

    
422
   OK = (true -> ((not (enable and 
423
      (not KP_CLEAR))) or 
424
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
425

    
426
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
427

    
428

    
429
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
430

    
431
   p16 = ((not (enable and 
432
      KP_CLEAR)) or 
433
      (LEFT_DIGIT = 0));
434

    
435
   p30 = (true -> ((not (enable and 
436
      (not KP_CLEAR))) or 
437
      ((not ((KP_3 and 
438
      (not (pre KP_3))) and 
439
      ((not (KP_2 and 
440
      (not (pre KP_2)))) and 
441
      ((not (KP_1 and 
442
      (not (pre KP_1)))) and 
443
      (not (KP_0 and 
444
      (not (pre KP_0)))))))) or 
445
      (RIGHT_DIGIT = 3))));
446

    
447
   COOKING = 
448
      (if (2 = microwave_microwave_mode_logic_mode)
449
         then true
450
         else false);
451

    
452
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
453

    
454
   p15 = (enable or 
455
      (LEFT_DIGIT = 0));
456

    
457
   START_PRESSED = (KP_START -> (KP_START and 
458
      (not (pre KP_START))));
459

    
460
   chart_microwave_mode_logic_start = 
461
      (if (START_PRESSED = false)
462
         then 0
463
         else 1);
464

    
465
   chart_microwave_mode_logic_clear_off = 
466
      (if (CLEAR_PRESSED = false)
467
         then 0
468
         else 1);
469

    
470
   chart_microwave_mode_logic_door_closed = 
471
      (if (DOOR_CLOSED = false)
472
         then 0
473
         else 1);
474

    
475
   chart_microwave_mode_logic____wakeup___ = true;
476

    
477
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
478
      (if (pre chart_microwave_mode_logic____wakeup___)
479
         then false
480
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
481

    
482
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
483

    
484
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
485

    
486
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
487

    
488
   chart_microwave_mode_logic_final_state_states___root = 
489
      (if chart_microwave_mode_logic____wakeup___
490
         then 
491
               (if chart_microwave_mode_logic_rlt_evtInitStep
492
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
493
                  else 
494
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
495
                  
496
                  
497
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
498
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
499
                  then 
500
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
501
                           then 
502
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
503
                                    then 
504
                                          
505
                                          3
506
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
507
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
508
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
509
         else chart_microwave_mode_logic_begin_state_states___root);
510

    
511
   chart_microwave_mode_logic_mode = 
512
      (if chart_microwave_mode_logic____wakeup___
513
         then 
514
               (if chart_microwave_mode_logic_rlt_evtInitStep
515
                  then 
516
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
517
                           then 1
518
                           else chart_microwave_mode_logic_begin_state_outports_mode)
519
                  else 
520
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
521
                  
522
                  
523
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
524
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
525
                  then 
526
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
527
                           then 
528
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
529
                                    then 3
530
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
531
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
532
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
533
         else chart_microwave_mode_logic_begin_state_outports_mode);
534

    
535
   chart_microwave_mode_logic_steps_remaining = 
536
      (if chart_microwave_mode_logic____wakeup___
537
         then 
538
               (if chart_microwave_mode_logic_rlt_evtInitStep
539
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
540
                  else 
541
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
542
                  
543
                  
544
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
545
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
546
                  then 
547
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
548
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
549
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
550
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
551
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
552

    
553
   
554
   
555
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
556

    
557
   
558
   
559
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
560
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
561
         then STEPS_TO_COOK
562
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
563

    
564
   
565
   
566
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
567
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
568
      (
569
      (if (chart_microwave_mode_logic_start <> 0)
570
         then true
571
         else false) and 
572
      
573
      (if (
574
         (if ((STEPS_TO_COOK > 0) = false)
575
            then 0
576
            else 1) <> 0)
577
         then true
578
         else false))));
579

    
580
   
581
   
582
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
583
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
584
         then 
585
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
586
                  then 
587
                        
588
                        0
589
                  else chart_microwave_mode_logic_begin_state_states___root)
590
         else chart_microwave_mode_logic_begin_state_states___root);
591

    
592
   
593
   
594
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
595
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
596
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
597
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
598
   
599
   
600

    
601
   
602
   
603
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
604
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
605
         then 
606
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
607
                  then 
608
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
609
                           then 3
610
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
611
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
612
         else chart_microwave_mode_logic_begin_state_outports_mode);
613
   
614
   
615

    
616
   
617
   
618
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
619
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
620
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
621

    
622
   
623
   
624
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
625
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
626
         then 
627
               (if 
628
                  
629
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
630
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
631
                  then 
632
                        
633
                        0
634
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
635
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
636

    
637
   
638
   
639
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
640
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
641
         then 
642
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
643
                  then 
644
                        
645
                        4
646
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
647
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
648
   
649
   
650

    
651
   
652
   
653
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
654
      ((
655
      (if (chart_microwave_mode_logic_start <> 0)
656
         then true
657
         else false) and 
658
      
659
      (if (chart_microwave_mode_logic_door_closed <> 0)
660
         then true
661
         else false)) and 
662
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
663

    
664
   
665
   
666
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
667
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
668

    
669
   
670
   
671
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
672
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
673
         then 
674
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
675
                  then 
676
                        
677
                        1
678
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
679
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
680

    
681
   
682
   
683
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
684
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
685
         then 
686
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
687
                  then 1
688
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
689
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
690

    
691
   
692
   
693
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
694
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
695
         then 
696
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
697
                  then 
698
                        
699
                        2
700
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
701
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
702
   
703
   
704

    
705
   
706
   
707
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
708
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
709
         then 
710
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
711
                  then 2
712
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
713
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
714
   
715
   
716

    
717
   
718
   
719
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
720
      (
721
      (if (chart_microwave_mode_logic_clear_off <> 0)
722
         then true
723
         else false) and 
724
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
725
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
726
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
727

    
728
   
729
   
730
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
731
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
732

    
733
   
734
   
735
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
736
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
737
         then 
738
               (if 
739
                  
740
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
741
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
742
                  then 
743
                        
744
                        0
745
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
746
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
747

    
748
   
749
   
750
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
751
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
752
         then 0
753
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
754

    
755
   
756
   
757
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
758
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
759
         then 
760
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
761
                  then 
762
                        
763
                        4
764
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
765
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
766
   
767
   
768

    
769
   
770
   
771
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
772
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
773
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
774

    
775
   
776
   
777
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
778
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
779
         then 
780
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
781
                  then 1
782
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
783
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
784

    
785
   
786
   
787
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
788
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
789
         then 
790
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
791
                  then 
792
                        
793
                        1
794
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
795
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
796

    
797
   
798
   
799
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
800
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
801
         then 
802
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
803
                  then 
804
                        
805
                        2
806
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
807
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
808
   
809
   
810

    
811
   
812
   
813
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
814
      ((
815
      (if (chart_microwave_mode_logic_clear_off <> 0)
816
         then true
817
         else false) or 
818
      (not 
819
      (if (chart_microwave_mode_logic_door_closed <> 0)
820
         then true
821
         else false))) and 
822
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
823
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
824

    
825
   
826
   
827
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
828
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
829
         then 
830
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
831
                  then 
832
                        
833
                        1
834
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
835
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
836

    
837
   
838
   
839
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
840
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
841
         then 
842
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
843
                  then 2
844
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
845
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
846

    
847
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
848
      (if (not 
849
         
850
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
851
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
852
         then 
853
               
854
               1
855
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
856

    
857
   
858
   
859
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
860
      
861
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
862
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
863
      
864
      
865
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
866
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
867

    
868
   
869
   
870
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
871
      (
872
      
873
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
874
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
875
      
876
      (if (chart_microwave_mode_logic_door_closed <> 0)
877
         then true
878
         else false)));
879

    
880
   
881
   
882
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
883
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
884
         then 
885
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
886
                  then 
887
                        
888
                        2
889
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
890
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
891
   
892
   
893

    
894
   
895
   
896
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
897
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
898
         then 
899
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
900
                  then 2
901
                  else chart_microwave_mode_logic_begin_state_outports_mode)
902
         else chart_microwave_mode_logic_begin_state_outports_mode);
903
   
904
   
905

    
906
   
907
   
908
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
909
      (
910
      
911
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
912
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
913
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
914

    
915
   
916
   
917
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
918
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
919
         then 
920
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
921
                  then 
922
                        
923
                        3
924
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
925
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
926
   
927
   
928

    
929
   
930
   
931
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
932
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
933
         then 
934
               
935
               4
936
         else chart_microwave_mode_logic_begin_state_states___root);
937
   
938
   
939

    
940
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
941

    
942
   p17 = (((not (enable and 
943
      (not KP_CLEAR))) or 
944
      ((not (((((((((KP_1 or 
945
      KP_2) or 
946
      KP_3) or 
947
      KP_4) or 
948
      KP_5) or 
949
      KP_6) or 
950
      KP_7) or 
951
      KP_8) or 
952
      KP_9) or 
953
      KP_0)) or 
954
      (LEFT_DIGIT = 0))) -> ((not (enable and 
955
      (not KP_CLEAR))) or 
956
      ((not ((((((((((KP_1 and 
957
      (not (pre KP_1))) or 
958
      (KP_2 and 
959
      (not (pre KP_2)))) or 
960
      (KP_3 and 
961
      (not (pre KP_3)))) or 
962
      (KP_4 and 
963
      (not (pre KP_4)))) or 
964
      (KP_5 and 
965
      (not (pre KP_5)))) or 
966
      (KP_6 and 
967
      (not (pre KP_6)))) or 
968
      (KP_7 and 
969
      (not (pre KP_7)))) or 
970
      (KP_8 and 
971
      (not (pre KP_8)))) or 
972
      (KP_9 and 
973
      (not (pre KP_9)))) or 
974
      (KP_0 and 
975
      (not (pre KP_0))))) or 
976
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
977

    
978
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
979

    
980
   p27 = (((not (enable and 
981
      (not KP_CLEAR))) or 
982
      ((not KP_0) or 
983
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
984
      (not KP_CLEAR))) or 
985
      ((not (KP_0 and 
986
      (not (pre KP_0)))) or 
987
      (RIGHT_DIGIT = 0))));
988

    
989
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
990

    
991
   KP_01 = KP_0;
992

    
993
   KP_11 = KP_1;
994

    
995
   KP_21 = KP_2;
996

    
997
   KP_31 = KP_3;
998

    
999
   KP_41 = KP_4;
1000

    
1001
   KP_51 = KP_5;
1002

    
1003
   KP_61 = KP_6;
1004

    
1005
   KP_71 = KP_7;
1006

    
1007
   KP_81 = KP_8;
1008

    
1009
   KP_91 = KP_9;
1010

    
1011
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1012
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1013
         then 
1014
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1015
                  then 0
1016
                  else 
1017
               (if KP_CLEAR
1018
                  then 0
1019
                  else 
1020
               (if 
1021
                  (if (
1022
                     (if (KP_01 and 
1023
                        (not (pre KP_01)))
1024
                        then 0
1025
                        else 
1026
                     (if (KP_11 and 
1027
                        (not (pre KP_11)))
1028
                        then 1
1029
                        else 
1030
                     (if (KP_21 and 
1031
                        (not (pre KP_21)))
1032
                        then 2
1033
                        else 
1034
                     (if (KP_31 and 
1035
                        (not (pre KP_31)))
1036
                        then 3
1037
                        else 
1038
                     (if (KP_41 and 
1039
                        (not (pre KP_41)))
1040
                        then 4
1041
                        else 
1042
                     (if (KP_51 and 
1043
                        (not (pre KP_51)))
1044
                        then 5
1045
                        else 
1046
                     (if (KP_61 and 
1047
                        (not (pre KP_61)))
1048
                        then 6
1049
                        else 
1050
                     (if (KP_71 and 
1051
                        (not (pre KP_71)))
1052
                        then 7
1053
                        else 
1054
                     (if (KP_81 and 
1055
                        (not (pre KP_81)))
1056
                        then 8
1057
                        else 
1058
                     (if (KP_91 and 
1059
                        (not (pre KP_91)))
1060
                        then 9
1061
                        else 10)))))))))) <= 9)
1062
                     then true
1063
                     else false)
1064
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1065
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1066
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1067

    
1068
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1069
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1070
         then 
1071
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1072
                  then 0
1073
                  else 
1074
               (if KP_CLEAR
1075
                  then 0
1076
                  else 
1077
               (if 
1078
                  (if (
1079
                     (if (KP_01 and 
1080
                        (not (pre KP_01)))
1081
                        then 0
1082
                        else 
1083
                     (if (KP_11 and 
1084
                        (not (pre KP_11)))
1085
                        then 1
1086
                        else 
1087
                     (if (KP_21 and 
1088
                        (not (pre KP_21)))
1089
                        then 2
1090
                        else 
1091
                     (if (KP_31 and 
1092
                        (not (pre KP_31)))
1093
                        then 3
1094
                        else 
1095
                     (if (KP_41 and 
1096
                        (not (pre KP_41)))
1097
                        then 4
1098
                        else 
1099
                     (if (KP_51 and 
1100
                        (not (pre KP_51)))
1101
                        then 5
1102
                        else 
1103
                     (if (KP_61 and 
1104
                        (not (pre KP_61)))
1105
                        then 6
1106
                        else 
1107
                     (if (KP_71 and 
1108
                        (not (pre KP_71)))
1109
                        then 7
1110
                        else 
1111
                     (if (KP_81 and 
1112
                        (not (pre KP_81)))
1113
                        then 8
1114
                        else 
1115
                     (if (KP_91 and 
1116
                        (not (pre KP_91)))
1117
                        then 9
1118
                        else 10)))))))))) <= 9)
1119
                     then true
1120
                     else false)
1121
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1122
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1123
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1124

    
1125
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1126
      (if KP_CLEAR
1127
         then 0
1128
         else 
1129
      (if 
1130
         (if (
1131
            (if KP_01
1132
               then 0
1133
               else 
1134
            (if KP_11
1135
               then 1
1136
               else 
1137
            (if KP_21
1138
               then 2
1139
               else 
1140
            (if KP_31
1141
               then 3
1142
               else 
1143
            (if KP_41
1144
               then 4
1145
               else 
1146
            (if KP_51
1147
               then 5
1148
               else 
1149
            (if KP_61
1150
               then 6
1151
               else 
1152
            (if KP_71
1153
               then 7
1154
               else 
1155
            (if KP_81
1156
               then 8
1157
               else 
1158
            (if KP_91
1159
               then 9
1160
               else 10)))))))))) <= 9)
1161
            then true
1162
            else false)
1163
         then 
1164
               (if KP_01
1165
                  then 0
1166
                  else 
1167
               (if KP_11
1168
                  then 1
1169
                  else 
1170
               (if KP_21
1171
                  then 2
1172
                  else 
1173
               (if KP_31
1174
                  then 3
1175
                  else 
1176
               (if KP_41
1177
                  then 4
1178
                  else 
1179
               (if KP_51
1180
                  then 5
1181
                  else 
1182
               (if KP_61
1183
                  then 6
1184
                  else 
1185
               (if KP_71
1186
                  then 7
1187
                  else 
1188
               (if KP_81
1189
                  then 8
1190
                  else 
1191
               (if KP_91
1192
                  then 9
1193
                  else 10))))))))))
1194
         else 0)) -> 
1195
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1196
         then 
1197
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1198
                  then 
1199
                        (if KP_CLEAR
1200
                           then 0
1201
                           else 
1202
                        (if 
1203
                           (if (
1204
                              (if KP_01
1205
                                 then 0
1206
                                 else 
1207
                              (if KP_11
1208
                                 then 1
1209
                                 else 
1210
                              (if KP_21
1211
                                 then 2
1212
                                 else 
1213
                              (if KP_31
1214
                                 then 3
1215
                                 else 
1216
                              (if KP_41
1217
                                 then 4
1218
                                 else 
1219
                              (if KP_51
1220
                                 then 5
1221
                                 else 
1222
                              (if KP_61
1223
                                 then 6
1224
                                 else 
1225
                              (if KP_71
1226
                                 then 7
1227
                                 else 
1228
                              (if KP_81
1229
                                 then 8
1230
                                 else 
1231
                              (if KP_91
1232
                                 then 9
1233
                                 else 10)))))))))) <= 9)
1234
                              then true
1235
                              else false)
1236
                           then 
1237
                                 (if KP_01
1238
                                    then 0
1239
                                    else 
1240
                                 (if KP_11
1241
                                    then 1
1242
                                    else 
1243
                                 (if KP_21
1244
                                    then 2
1245
                                    else 
1246
                                 (if KP_31
1247
                                    then 3
1248
                                    else 
1249
                                 (if KP_41
1250
                                    then 4
1251
                                    else 
1252
                                 (if KP_51
1253
                                    then 5
1254
                                    else 
1255
                                 (if KP_61
1256
                                    then 6
1257
                                    else 
1258
                                 (if KP_71
1259
                                    then 7
1260
                                    else 
1261
                                 (if KP_81
1262
                                    then 8
1263
                                    else 
1264
                                 (if KP_91
1265
                                    then 9
1266
                                    else 10))))))))))
1267
                           else 0))
1268
                  else 
1269
               (if KP_CLEAR
1270
                  then 0
1271
                  else 
1272
               (if 
1273
                  (if (
1274
                     (if (KP_01 and 
1275
                        (not (pre KP_01)))
1276
                        then 0
1277
                        else 
1278
                     (if (KP_11 and 
1279
                        (not (pre KP_11)))
1280
                        then 1
1281
                        else 
1282
                     (if (KP_21 and 
1283
                        (not (pre KP_21)))
1284
                        then 2
1285
                        else 
1286
                     (if (KP_31 and 
1287
                        (not (pre KP_31)))
1288
                        then 3
1289
                        else 
1290
                     (if (KP_41 and 
1291
                        (not (pre KP_41)))
1292
                        then 4
1293
                        else 
1294
                     (if (KP_51 and 
1295
                        (not (pre KP_51)))
1296
                        then 5
1297
                        else 
1298
                     (if (KP_61 and 
1299
                        (not (pre KP_61)))
1300
                        then 6
1301
                        else 
1302
                     (if (KP_71 and 
1303
                        (not (pre KP_71)))
1304
                        then 7
1305
                        else 
1306
                     (if (KP_81 and 
1307
                        (not (pre KP_81)))
1308
                        then 8
1309
                        else 
1310
                     (if (KP_91 and 
1311
                        (not (pre KP_91)))
1312
                        then 9
1313
                        else 10)))))))))) <= 9)
1314
                     then true
1315
                     else false)
1316
                  then 
1317
                        (if (KP_01 and 
1318
                           (not (pre KP_01)))
1319
                           then 0
1320
                           else 
1321
                        (if (KP_11 and 
1322
                           (not (pre KP_11)))
1323
                           then 1
1324
                           else 
1325
                        (if (KP_21 and 
1326
                           (not (pre KP_21)))
1327
                           then 2
1328
                           else 
1329
                        (if (KP_31 and 
1330
                           (not (pre KP_31)))
1331
                           then 3
1332
                           else 
1333
                        (if (KP_41 and 
1334
                           (not (pre KP_41)))
1335
                           then 4
1336
                           else 
1337
                        (if (KP_51 and 
1338
                           (not (pre KP_51)))
1339
                           then 5
1340
                           else 
1341
                        (if (KP_61 and 
1342
                           (not (pre KP_61)))
1343
                           then 6
1344
                           else 
1345
                        (if (KP_71 and 
1346
                           (not (pre KP_71)))
1347
                           then 7
1348
                           else 
1349
                        (if (KP_81 and 
1350
                           (not (pre KP_81)))
1351
                           then 8
1352
                           else 
1353
                        (if (KP_91 and 
1354
                           (not (pre KP_91)))
1355
                           then 9
1356
                           else 10))))))))))
1357
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1358
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1359

    
1360
   STEPS_TO_COOK = (
1361
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1362
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1363
         then 0
1364
         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)) -> 
1365
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1366
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1367
         then 0
1368
         else 
1369
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1370
         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)
1371
         else (pre STEPS_TO_COOK))));
1372

    
1373
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1374
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1375
         then true
1376
         else 
1377
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1378
         then false
1379
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1380

    
1381
   SETUP = 
1382
      (if (1 = microwave_microwave_mode_logic_mode)
1383
         then true
1384
         else false);
1385

    
1386
   p32 = (true -> ((not (enable and 
1387
      (not KP_CLEAR))) or 
1388
      ((not ((KP_5 and 
1389
      (not (pre KP_5))) and 
1390
      ((not (KP_4 and 
1391
      (not (pre KP_4)))) and 
1392
      ((not (KP_3 and 
1393
      (not (pre KP_3)))) and 
1394
      ((not (KP_2 and 
1395
      (not (pre KP_2)))) and 
1396
      ((not (KP_1 and 
1397
      (not (pre KP_1)))) and 
1398
      (not (KP_0 and 
1399
      (not (pre KP_0)))))))))) or 
1400
      (RIGHT_DIGIT = 5))));
1401

    
1402
   enable = (true -> 
1403
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1404
         then true
1405
         else false));
1406

    
1407
   p28 = (true -> ((not (enable and 
1408
      (not KP_CLEAR))) or 
1409
      ((not ((KP_1 and 
1410
      (not (pre KP_1))) and 
1411
      (not (KP_0 and 
1412
      (not (pre KP_0)))))) or 
1413
      (RIGHT_DIGIT = 1))));
1414

    
1415
   p19 = (true -> ((not (enable and 
1416
      (not KP_CLEAR))) or 
1417
      (((((((((((KP_1 and 
1418
      (not (pre KP_1))) or 
1419
      (KP_2 and 
1420
      (not (pre KP_2)))) or 
1421
      (KP_3 and 
1422
      (not (pre KP_3)))) or 
1423
      (KP_4 and 
1424
      (not (pre KP_4)))) or 
1425
      (KP_5 and 
1426
      (not (pre KP_5)))) or 
1427
      (KP_6 and 
1428
      (not (pre KP_6)))) or 
1429
      (KP_7 and 
1430
      (not (pre KP_7)))) or 
1431
      (KP_8 and 
1432
      (not (pre KP_8)))) or 
1433
      (KP_9 and 
1434
      (not (pre KP_9)))) or 
1435
      (KP_0 and 
1436
      (not (pre KP_0)))) or 
1437
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1438

    
1439
   p29 = (true -> ((not (enable and 
1440
      (not KP_CLEAR))) or 
1441
      ((not ((KP_2 and 
1442
      (not (pre KP_2))) and 
1443
      ((not (KP_1 and 
1444
      (not (pre KP_1)))) and 
1445
      (not (KP_0 and 
1446
      (not (pre KP_0))))))) or 
1447
      (RIGHT_DIGIT = 2))));
1448

    
1449
   p34 = (true -> ((not (enable and 
1450
      (not KP_CLEAR))) or 
1451
      ((not ((KP_7 and 
1452
      (not (pre KP_7))) and 
1453
      ((not (KP_6 and 
1454
      (not (pre KP_6)))) and 
1455
      ((not (KP_5 and 
1456
      (not (pre KP_5)))) and 
1457
      ((not (KP_4 and 
1458
      (not (pre KP_4)))) and 
1459
      ((not (KP_3 and 
1460
      (not (pre KP_3)))) and 
1461
      ((not (KP_2 and 
1462
      (not (pre KP_2)))) and 
1463
      ((not (KP_1 and 
1464
      (not (pre KP_1)))) and 
1465
      (not (KP_0 and 
1466
      (not (pre KP_0)))))))))))) or 
1467
      (RIGHT_DIGIT = 7))));
1468

    
1469
   p21 = ((not (enable and 
1470
      KP_CLEAR)) or 
1471
      (MIDDLE_DIGIT = 0));
1472

    
1473
  --%PROPERTY OK=true;
1474
  --%MAIN;
1475

    
1476
tel
1477