Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (50.3 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
   p5: bool; 
107
   p6: bool; 
108
   p7: bool; 
109
   p8: bool; 
110
   p9: bool; 
111
   p10: bool; 
112
   p11: bool; 
113
   p12: bool; 
114
   p13: bool; 
115
   p14: bool; 
116
   p15: bool; 
117
   p16: bool; 
118
   p17: bool; 
119
   p18: bool; 
120
   p19: bool; 
121
   p20: bool; 
122
   p21: bool; 
123
   p22: bool; 
124
   p23: bool; 
125
   p24: bool; 
126
   p25: bool; 
127
   p26: bool; 
128
   p27: bool; 
129
   p28: bool; 
130
   p29: bool; 
131
   p30: bool; 
132
   p31: bool; 
133
   p32: bool; 
134
   p33: bool; 
135
   p34: bool; 
136
   p35: bool; 
137
   p36: bool; 
138
   p37: bool; 
139
let 
140
   rlt__Arrow5 = (639 -> 
141
      (if (not (not SETUP))
142
         then 
143
               (if (MWI_FcnMaxI_In13 > 0)
144
                  then MWI_FcnMaxI_In13
145
                  else 0)
146
         else 639));
147

    
148
   rlt__Arrow4 = (639 -> 
149
      (if (not SUSPENDED)
150
         then 
151
               (if (MWI_FcnMaxI_In12 > 0)
152
                  then MWI_FcnMaxI_In12
153
                  else 0)
154
         else 639));
155

    
156
   rlt__Arrow3 = (639 -> 
157
      (if (not (not COOKING))
158
         then 
159
               (if (MWI_FcnMaxI_In16 > 0)
160
                  then MWI_FcnMaxI_In16
161
                  else 0)
162
         else 639));
163

    
164
   rlt__Arrow2 = (639 -> 
165
      (if (not (not SUSPENDED))
166
         then 
167
               (if (MWI_FcnMaxI_In15 > 0)
168
                  then MWI_FcnMaxI_In15
169
                  else 0)
170
         else 639));
171

    
172
   rlt__Arrow1 = (639 -> 
173
      (if (not COOKING)
174
         then 
175
               (if (MWI_FcnMaxI_In11 > 0)
176
                  then MWI_FcnMaxI_In11
177
                  else 0)
178
         else 639));
179

    
180
   rlt__Arrow = (639 -> 
181
      (if (not SETUP)
182
         then 
183
               (if (MWI_FcnMaxI_In1 > 0)
184
                  then MWI_FcnMaxI_In1
185
                  else 0)
186
         else 639));
187

    
188
   p18 = (((not (enable and 
189
      (not KP_CLEAR))) or 
190
      ((not (((((((((KP_1 or 
191
      KP_2) or 
192
      KP_3) or 
193
      KP_4) or 
194
      KP_5) or 
195
      KP_6) or 
196
      KP_7) or 
197
      KP_8) or 
198
      KP_9) or 
199
      KP_0)) or 
200
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
201
      (not KP_CLEAR))) or 
202
      ((not ((((((((((KP_1 and 
203
      (not (pre KP_1))) or 
204
      (KP_2 and 
205
      (not (pre KP_2)))) or 
206
      (KP_3 and 
207
      (not (pre KP_3)))) or 
208
      (KP_4 and 
209
      (not (pre KP_4)))) or 
210
      (KP_5 and 
211
      (not (pre KP_5)))) or 
212
      (KP_6 and 
213
      (not (pre KP_6)))) or 
214
      (KP_7 and 
215
      (not (pre KP_7)))) or 
216
      (KP_8 and 
217
      (not (pre KP_8)))) or 
218
      (KP_9 and 
219
      (not (pre KP_9)))) or 
220
      (KP_0 and 
221
      (not (pre KP_0))))) or 
222
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
223

    
224
   p23 = (true -> (((not (enable and 
225
      (not KP_CLEAR))) or 
226
      (not ((((((((((KP_1 and 
227
      (not (pre KP_1))) or 
228
      (KP_2 and 
229
      (not (pre KP_2)))) or 
230
      (KP_3 and 
231
      (not (pre KP_3)))) or 
232
      (KP_4 and 
233
      (not (pre KP_4)))) or 
234
      (KP_5 and 
235
      (not (pre KP_5)))) or 
236
      (KP_6 and 
237
      (not (pre KP_6)))) or 
238
      (KP_7 and 
239
      (not (pre KP_7)))) or 
240
      (KP_8 and 
241
      (not (pre KP_8)))) or 
242
      (KP_9 and 
243
      (not (pre KP_9)))) or 
244
      (KP_0 and 
245
      (not (pre KP_0)))))) or 
246
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
247

    
248
   p35 = (true -> ((not (enable and 
249
      (not KP_CLEAR))) or 
250
      ((not ((KP_8 and 
251
      (not (pre KP_8))) and 
252
      ((not (KP_7 and 
253
      (not (pre KP_7)))) and 
254
      ((not (KP_6 and 
255
      (not (pre KP_6)))) and 
256
      ((not (KP_5 and 
257
      (not (pre KP_5)))) and 
258
      ((not (KP_4 and 
259
      (not (pre KP_4)))) and 
260
      ((not (KP_3 and 
261
      (not (pre KP_3)))) and 
262
      ((not (KP_2 and 
263
      (not (pre KP_2)))) and 
264
      ((not (KP_1 and 
265
      (not (pre KP_1)))) and 
266
      (not (KP_0 and 
267
      (not (pre KP_0))))))))))))) or 
268
      (RIGHT_DIGIT = 8))));
269

    
270
   p33 = (true -> ((not (enable and 
271
      (not KP_CLEAR))) or 
272
      ((not ((KP_6 and 
273
      (not (pre KP_6))) and 
274
      ((not (KP_5 and 
275
      (not (pre KP_5)))) and 
276
      ((not (KP_4 and 
277
      (not (pre KP_4)))) and 
278
      ((not (KP_3 and 
279
      (not (pre KP_3)))) and 
280
      ((not (KP_2 and 
281
      (not (pre KP_2)))) and 
282
      ((not (KP_1 and 
283
      (not (pre KP_1)))) and 
284
      (not (KP_0 and 
285
      (not (pre KP_0))))))))))) or 
286
      (RIGHT_DIGIT = 6))));
287

    
288
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
289

    
290
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
291

    
292
   p25 = (enable or 
293
      (RIGHT_DIGIT = 0));
294

    
295
   p22 = (true -> (((not (enable and 
296
      (not KP_CLEAR))) or 
297
      (not ((((((((((KP_1 and 
298
      (not (pre KP_1))) or 
299
      (KP_2 and 
300
      (not (pre KP_2)))) or 
301
      (KP_3 and 
302
      (not (pre KP_3)))) or 
303
      (KP_4 and 
304
      (not (pre KP_4)))) or 
305
      (KP_5 and 
306
      (not (pre KP_5)))) or 
307
      (KP_6 and 
308
      (not (pre KP_6)))) or 
309
      (KP_7 and 
310
      (not (pre KP_7)))) or 
311
      (KP_8 and 
312
      (not (pre KP_8)))) or 
313
      (KP_9 and 
314
      (not (pre KP_9)))) or 
315
      (KP_0 and 
316
      (not (pre KP_0)))))) or 
317
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
318

    
319
   p36 = (true -> ((not (enable and 
320
      (not KP_CLEAR))) or 
321
      ((not ((KP_9 and 
322
      (not (pre KP_9))) and 
323
      ((not (KP_8 and 
324
      (not (pre KP_8)))) and 
325
      ((not (KP_7 and 
326
      (not (pre KP_7)))) and 
327
      ((not (KP_6 and 
328
      (not (pre KP_6)))) and 
329
      ((not (KP_5 and 
330
      (not (pre KP_5)))) and 
331
      ((not (KP_4 and 
332
      (not (pre KP_4)))) and 
333
      ((not (KP_3 and 
334
      (not (pre KP_3)))) and 
335
      ((not (KP_2 and 
336
      (not (pre KP_2)))) and 
337
      ((not (KP_1 and 
338
      (not (pre KP_1)))) and 
339
      (not (KP_0 and 
340
      (not (pre KP_0)))))))))))))) or 
341
      (RIGHT_DIGIT = 9))));
342

    
343
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
344

    
345
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
346
      (not (pre KP_CLEAR))));
347

    
348
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
349

    
350
   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));
351

    
352
   SUSPENDED = 
353
      (if (3 = microwave_microwave_mode_logic_mode)
354
         then true
355
         else false);
356

    
357
   p31 = (true -> ((not (enable and 
358
      (not KP_CLEAR))) or 
359
      ((not ((KP_4 and 
360
      (not (pre KP_4))) and 
361
      ((not (KP_3 and 
362
      (not (pre KP_3)))) and 
363
      ((not (KP_2 and 
364
      (not (pre KP_2)))) and 
365
      ((not (KP_1 and 
366
      (not (pre KP_1)))) and 
367
      (not (KP_0 and 
368
      (not (pre KP_0))))))))) or 
369
      (RIGHT_DIGIT = 4))));
370

    
371
   p37 = (true -> ((not (enable and 
372
      (not KP_CLEAR))) or 
373
      (((((((((((KP_1 and 
374
      (not (pre KP_1))) or 
375
      (KP_2 and 
376
      (not (pre KP_2)))) or 
377
      (KP_3 and 
378
      (not (pre KP_3)))) or 
379
      (KP_4 and 
380
      (not (pre KP_4)))) or 
381
      (KP_5 and 
382
      (not (pre KP_5)))) or 
383
      (KP_6 and 
384
      (not (pre KP_6)))) or 
385
      (KP_7 and 
386
      (not (pre KP_7)))) or 
387
      (KP_8 and 
388
      (not (pre KP_8)))) or 
389
      (KP_9 and 
390
      (not (pre KP_9)))) or 
391
      (KP_0 and 
392
      (not (pre KP_0)))) or 
393
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
394

    
395
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
396

    
397
   OK = (true -> (
398
      (if (not COOKING)
399
         then 
400
               (if (MWI_FcnMaxI_In11 > 0)
401
                  then MWI_FcnMaxI_In11
402
                  else 0)
403
         else 639) > 0));
404

    
405
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
406

    
407
   p24 = (true -> (((not (enable and 
408
      (not KP_CLEAR))) or 
409
      ((((((((((KP_1 and 
410
      (not (pre KP_1))) or 
411
      (KP_2 and 
412
      (not (pre KP_2)))) or 
413
      (KP_3 and 
414
      (not (pre KP_3)))) or 
415
      (KP_4 and 
416
      (not (pre KP_4)))) or 
417
      (KP_5 and 
418
      (not (pre KP_5)))) or 
419
      (KP_6 and 
420
      (not (pre KP_6)))) or 
421
      (KP_7 and 
422
      (not (pre KP_7)))) or 
423
      (KP_8 and 
424
      (not (pre KP_8)))) or 
425
      (KP_9 and 
426
      (not (pre KP_9)))) or 
427
      (KP_0 and 
428
      (not (pre KP_0))))) or 
429
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
430

    
431
   p20 = (enable or 
432
      (MIDDLE_DIGIT = 0));
433

    
434
   p5 = (true -> (
435
      (if (not SUSPENDED)
436
         then 
437
               (if (MWI_FcnMaxI_In12 > 0)
438
                  then MWI_FcnMaxI_In12
439
                  else 0)
440
         else 639) > 0));
441

    
442
   p26 = ((not (enable and 
443
      KP_CLEAR)) or 
444
      (RIGHT_DIGIT = 0));
445

    
446
   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);
447

    
448
   p14 = (true -> ((not (enable and 
449
      (not KP_CLEAR))) or 
450
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
451

    
452
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
453

    
454
   p6 = (true -> ((not SETUP) or 
455
      (
456
      (if (not (not SETUP))
457
         then 
458
               (if (MWI_FcnMaxI_In13 > 0)
459
                  then MWI_FcnMaxI_In13
460
                  else 0)
461
         else 639) > 0)));
462

    
463
   p8 = (true -> ((not SUSPENDED) or 
464
      (
465
      (if (not (not SUSPENDED))
466
         then 
467
               (if (MWI_FcnMaxI_In15 > 0)
468
                  then MWI_FcnMaxI_In15
469
                  else 0)
470
         else 639) > 0)));
471

    
472
   p7 = (true -> ((not COOKING) or 
473
      (
474
      (if (not (not COOKING))
475
         then 
476
               (if (MWI_FcnMaxI_In16 > 0)
477
                  then MWI_FcnMaxI_In16
478
                  else 0)
479
         else 639) > 0)));
480

    
481
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
482

    
483
   p16 = ((not (enable and 
484
      KP_CLEAR)) or 
485
      (LEFT_DIGIT = 0));
486

    
487
   p30 = (true -> ((not (enable and 
488
      (not KP_CLEAR))) or 
489
      ((not ((KP_3 and 
490
      (not (pre KP_3))) and 
491
      ((not (KP_2 and 
492
      (not (pre KP_2)))) and 
493
      ((not (KP_1 and 
494
      (not (pre KP_1)))) and 
495
      (not (KP_0 and 
496
      (not (pre KP_0)))))))) or 
497
      (RIGHT_DIGIT = 3))));
498

    
499
   COOKING = 
500
      (if (2 = microwave_microwave_mode_logic_mode)
501
         then true
502
         else false);
503

    
504
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
505

    
506
   p11 = ((not KP_CLEAR) or 
507
      (not COOKING));
508

    
509
   p9 = (true -> ((not COOKING) or 
510
      DOOR_CLOSED));
511

    
512
   p15 = (enable or 
513
      (LEFT_DIGIT = 0));
514

    
515
   START_PRESSED = (KP_START -> (KP_START and 
516
      (not (pre KP_START))));
517

    
518
   chart_microwave_mode_logic_start = 
519
      (if (START_PRESSED = false)
520
         then 0
521
         else 1);
522

    
523
   chart_microwave_mode_logic_clear_off = 
524
      (if (CLEAR_PRESSED = false)
525
         then 0
526
         else 1);
527

    
528
   chart_microwave_mode_logic_door_closed = 
529
      (if (DOOR_CLOSED = false)
530
         then 0
531
         else 1);
532

    
533
   chart_microwave_mode_logic____wakeup___ = true;
534

    
535
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
536
      (if (pre chart_microwave_mode_logic____wakeup___)
537
         then false
538
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
539

    
540
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
541

    
542
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
543

    
544
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
545

    
546
   chart_microwave_mode_logic_final_state_states___root = 
547
      (if chart_microwave_mode_logic____wakeup___
548
         then 
549
               (if chart_microwave_mode_logic_rlt_evtInitStep
550
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
551
                  else 
552
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
553
                  
554
                  
555
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
556
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
557
                  then 
558
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
559
                           then 
560
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
561
                                    then 
562
                                          
563
                                          3
564
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
565
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
566
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
567
         else chart_microwave_mode_logic_begin_state_states___root);
568

    
569
   chart_microwave_mode_logic_mode = 
570
      (if chart_microwave_mode_logic____wakeup___
571
         then 
572
               (if chart_microwave_mode_logic_rlt_evtInitStep
573
                  then 
574
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
575
                           then 1
576
                           else chart_microwave_mode_logic_begin_state_outports_mode)
577
                  else 
578
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
579
                  
580
                  
581
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
582
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
583
                  then 
584
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
585
                           then 
586
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
587
                                    then 3
588
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
589
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
590
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
591
         else chart_microwave_mode_logic_begin_state_outports_mode);
592

    
593
   chart_microwave_mode_logic_steps_remaining = 
594
      (if chart_microwave_mode_logic____wakeup___
595
         then 
596
               (if chart_microwave_mode_logic_rlt_evtInitStep
597
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
598
                  else 
599
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
600
                  
601
                  
602
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
603
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
604
                  then 
605
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
606
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
607
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
608
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
609
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
610

    
611
   
612
   
613
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
614

    
615
   
616
   
617
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
618
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
619
         then STEPS_TO_COOK
620
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
621

    
622
   
623
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
624
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
625
      (
626
      (if (chart_microwave_mode_logic_start <> 0)
627
         then true
628
         else false) and 
629
      
630
      (if (
631
         (if ((STEPS_TO_COOK > 0) = false)
632
            then 0
633
            else 1) <> 0)
634
         then true
635
         else false))));
636

    
637
   
638
   
639
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
640
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
641
         then 
642
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
643
                  then 
644
                        
645
                        0
646
                  else chart_microwave_mode_logic_begin_state_states___root)
647
         else chart_microwave_mode_logic_begin_state_states___root);
648

    
649
   
650
   
651
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
652
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
653
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
654
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
655
   
656
   
657

    
658
   
659
   
660
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
661
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
662
         then 
663
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
664
                  then 
665
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
666
                           then 3
667
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
668
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
669
         else chart_microwave_mode_logic_begin_state_outports_mode);
670
   
671
   
672

    
673
   
674
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
675
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
676
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
677

    
678
   
679
   
680
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
681
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
682
         then 
683
               (if 
684
                  
685
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
686
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
687
                  then 
688
                        
689
                        0
690
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
691
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
696
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
697
         then 
698
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
699
                  then 
700
                        
701
                        4
702
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
703
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
704
   
705
   
706

    
707
   
708
   
709
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
710
      ((
711
      (if (chart_microwave_mode_logic_start <> 0)
712
         then true
713
         else false) and 
714
      
715
      (if (chart_microwave_mode_logic_door_closed <> 0)
716
         then true
717
         else false)) and 
718
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
719

    
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
723
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
724

    
725
   
726
   
727
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
728
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
729
         then 
730
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
731
                  then 
732
                        
733
                        1
734
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
735
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
736

    
737
   
738
   
739
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
740
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
741
         then 
742
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
743
                  then 1
744
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
745
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
746

    
747
   
748
   
749
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
750
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
751
         then 
752
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
753
                  then 
754
                        
755
                        2
756
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
757
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
758
   
759
   
760

    
761
   
762
   
763
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
764
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
765
         then 
766
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
767
                  then 2
768
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
769
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
770
   
771
   
772

    
773
   
774
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
775
      (
776
      (if (chart_microwave_mode_logic_clear_off <> 0)
777
         then true
778
         else false) and 
779
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
780
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
781
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
782

    
783
   
784
   
785
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
786
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
787

    
788
   
789
   
790
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
791
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
792
         then 
793
               (if 
794
                  
795
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
796
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
797
                  then 
798
                        
799
                        0
800
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
801
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
802

    
803
   
804
   
805
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
806
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
807
         then 0
808
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
809

    
810
   
811
   
812
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
813
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
814
         then 
815
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
816
                  then 
817
                        
818
                        4
819
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
820
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
821
   
822
   
823

    
824
   
825
   
826
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
827
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
828
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
829

    
830
   
831
   
832
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
833
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
834
         then 
835
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
836
                  then 1
837
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
838
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
839

    
840
   
841
   
842
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
843
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
844
         then 
845
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
846
                  then 
847
                        
848
                        1
849
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
850
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
851

    
852
   
853
   
854
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
855
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
856
         then 
857
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
858
                  then 
859
                        
860
                        2
861
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
862
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
863
   
864
   
865

    
866
   
867
   
868
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
869
      ((
870
      (if (chart_microwave_mode_logic_clear_off <> 0)
871
         then true
872
         else false) or 
873
      (not 
874
      (if (chart_microwave_mode_logic_door_closed <> 0)
875
         then true
876
         else false))) and 
877
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
878
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
879

    
880
   
881
   
882
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
883
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
884
         then 
885
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
886
                  then 
887
                        
888
                        1
889
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
890
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
891

    
892
   
893
   
894
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
895
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
896
         then 
897
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
898
                  then 2
899
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
900
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
901

    
902
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
903
      (if (not 
904
         
905
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
906
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
907
         then 
908
               
909
               1
910
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
911

    
912
   
913
   
914
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
915
      
916
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
917
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
918
      
919
      
920
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
921
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
922

    
923
   
924
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
925
      (
926
      
927
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
928
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
929
      
930
      (if (chart_microwave_mode_logic_door_closed <> 0)
931
         then true
932
         else false)));
933

    
934
   
935
   
936
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
937
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
938
         then 
939
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
940
                  then 
941
                        
942
                        2
943
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
944
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
945
   
946
   
947

    
948
   
949
   
950
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
951
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
952
         then 
953
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
954
                  then 2
955
                  else chart_microwave_mode_logic_begin_state_outports_mode)
956
         else chart_microwave_mode_logic_begin_state_outports_mode);
957
   
958
   
959

    
960
   
961
   
962
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
963
      (
964
      
965
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
966
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
967
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
968

    
969
   
970
   
971
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
972
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
973
         then 
974
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
975
                  then 
976
                        
977
                        3
978
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
979
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
980
   
981
   
982

    
983
   
984
   
985
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
986
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
987
         then 
988
               
989
               4
990
         else chart_microwave_mode_logic_begin_state_states___root);
991
   
992
   
993

    
994
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
995

    
996
   p17 = (((not (enable and 
997
      (not KP_CLEAR))) or 
998
      ((not (((((((((KP_1 or 
999
      KP_2) or 
1000
      KP_3) or 
1001
      KP_4) or 
1002
      KP_5) or 
1003
      KP_6) or 
1004
      KP_7) or 
1005
      KP_8) or 
1006
      KP_9) or 
1007
      KP_0)) or 
1008
      (LEFT_DIGIT = 0))) -> ((not (enable and 
1009
      (not KP_CLEAR))) or 
1010
      ((not ((((((((((KP_1 and 
1011
      (not (pre KP_1))) or 
1012
      (KP_2 and 
1013
      (not (pre KP_2)))) or 
1014
      (KP_3 and 
1015
      (not (pre KP_3)))) or 
1016
      (KP_4 and 
1017
      (not (pre KP_4)))) or 
1018
      (KP_5 and 
1019
      (not (pre KP_5)))) or 
1020
      (KP_6 and 
1021
      (not (pre KP_6)))) or 
1022
      (KP_7 and 
1023
      (not (pre KP_7)))) or 
1024
      (KP_8 and 
1025
      (not (pre KP_8)))) or 
1026
      (KP_9 and 
1027
      (not (pre KP_9)))) or 
1028
      (KP_0 and 
1029
      (not (pre KP_0))))) or 
1030
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1031

    
1032
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1033

    
1034
   p10 = (true -> ((not COOKING) or 
1035
      (
1036
      (if (not (not COOKING))
1037
         then 
1038
               (if (MWI_FcnMaxI_In16 > 0)
1039
                  then MWI_FcnMaxI_In16
1040
                  else 0)
1041
         else 639) > 0)));
1042

    
1043
   p27 = (((not (enable and 
1044
      (not KP_CLEAR))) or 
1045
      ((not KP_0) or 
1046
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1047
      (not KP_CLEAR))) or 
1048
      ((not (KP_0 and 
1049
      (not (pre KP_0)))) or 
1050
      (RIGHT_DIGIT = 0))));
1051

    
1052
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1053

    
1054
   KP_01 = KP_0;
1055

    
1056
   KP_11 = KP_1;
1057

    
1058
   KP_21 = KP_2;
1059

    
1060
   KP_31 = KP_3;
1061

    
1062
   KP_41 = KP_4;
1063

    
1064
   KP_51 = KP_5;
1065

    
1066
   KP_61 = KP_6;
1067

    
1068
   KP_71 = KP_7;
1069

    
1070
   KP_81 = KP_8;
1071

    
1072
   KP_91 = KP_9;
1073

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

    
1131
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1132
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1133
         then 
1134
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1135
                  then 0
1136
                  else 
1137
               (if KP_CLEAR
1138
                  then 0
1139
                  else 
1140
               (if 
1141
                  (if (
1142
                     (if (KP_01 and 
1143
                        (not (pre KP_01)))
1144
                        then 0
1145
                        else 
1146
                     (if (KP_11 and 
1147
                        (not (pre KP_11)))
1148
                        then 1
1149
                        else 
1150
                     (if (KP_21 and 
1151
                        (not (pre KP_21)))
1152
                        then 2
1153
                        else 
1154
                     (if (KP_31 and 
1155
                        (not (pre KP_31)))
1156
                        then 3
1157
                        else 
1158
                     (if (KP_41 and 
1159
                        (not (pre KP_41)))
1160
                        then 4
1161
                        else 
1162
                     (if (KP_51 and 
1163
                        (not (pre KP_51)))
1164
                        then 5
1165
                        else 
1166
                     (if (KP_61 and 
1167
                        (not (pre KP_61)))
1168
                        then 6
1169
                        else 
1170
                     (if (KP_71 and 
1171
                        (not (pre KP_71)))
1172
                        then 7
1173
                        else 
1174
                     (if (KP_81 and 
1175
                        (not (pre KP_81)))
1176
                        then 8
1177
                        else 
1178
                     (if (KP_91 and 
1179
                        (not (pre KP_91)))
1180
                        then 9
1181
                        else 10)))))))))) <= 9)
1182
                     then true
1183
                     else false)
1184
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1185
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1186
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1187

    
1188
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1189
      (if KP_CLEAR
1190
         then 0
1191
         else 
1192
      (if 
1193
         (if (
1194
            (if KP_01
1195
               then 0
1196
               else 
1197
            (if KP_11
1198
               then 1
1199
               else 
1200
            (if KP_21
1201
               then 2
1202
               else 
1203
            (if KP_31
1204
               then 3
1205
               else 
1206
            (if KP_41
1207
               then 4
1208
               else 
1209
            (if KP_51
1210
               then 5
1211
               else 
1212
            (if KP_61
1213
               then 6
1214
               else 
1215
            (if KP_71
1216
               then 7
1217
               else 
1218
            (if KP_81
1219
               then 8
1220
               else 
1221
            (if KP_91
1222
               then 9
1223
               else 10)))))))))) <= 9)
1224
            then true
1225
            else false)
1226
         then 
1227
               (if KP_01
1228
                  then 0
1229
                  else 
1230
               (if KP_11
1231
                  then 1
1232
                  else 
1233
               (if KP_21
1234
                  then 2
1235
                  else 
1236
               (if KP_31
1237
                  then 3
1238
                  else 
1239
               (if KP_41
1240
                  then 4
1241
                  else 
1242
               (if KP_51
1243
                  then 5
1244
                  else 
1245
               (if KP_61
1246
                  then 6
1247
                  else 
1248
               (if KP_71
1249
                  then 7
1250
                  else 
1251
               (if KP_81
1252
                  then 8
1253
                  else 
1254
               (if KP_91
1255
                  then 9
1256
                  else 10))))))))))
1257
         else 0)) -> 
1258
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1259
         then 
1260
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1261
                  then 
1262
                        (if KP_CLEAR
1263
                           then 0
1264
                           else 
1265
                        (if 
1266
                           (if (
1267
                              (if KP_01
1268
                                 then 0
1269
                                 else 
1270
                              (if KP_11
1271
                                 then 1
1272
                                 else 
1273
                              (if KP_21
1274
                                 then 2
1275
                                 else 
1276
                              (if KP_31
1277
                                 then 3
1278
                                 else 
1279
                              (if KP_41
1280
                                 then 4
1281
                                 else 
1282
                              (if KP_51
1283
                                 then 5
1284
                                 else 
1285
                              (if KP_61
1286
                                 then 6
1287
                                 else 
1288
                              (if KP_71
1289
                                 then 7
1290
                                 else 
1291
                              (if KP_81
1292
                                 then 8
1293
                                 else 
1294
                              (if KP_91
1295
                                 then 9
1296
                                 else 10)))))))))) <= 9)
1297
                              then true
1298
                              else false)
1299
                           then 
1300
                                 (if KP_01
1301
                                    then 0
1302
                                    else 
1303
                                 (if KP_11
1304
                                    then 1
1305
                                    else 
1306
                                 (if KP_21
1307
                                    then 2
1308
                                    else 
1309
                                 (if KP_31
1310
                                    then 3
1311
                                    else 
1312
                                 (if KP_41
1313
                                    then 4
1314
                                    else 
1315
                                 (if KP_51
1316
                                    then 5
1317
                                    else 
1318
                                 (if KP_61
1319
                                    then 6
1320
                                    else 
1321
                                 (if KP_71
1322
                                    then 7
1323
                                    else 
1324
                                 (if KP_81
1325
                                    then 8
1326
                                    else 
1327
                                 (if KP_91
1328
                                    then 9
1329
                                    else 10))))))))))
1330
                           else 0))
1331
                  else 
1332
               (if KP_CLEAR
1333
                  then 0
1334
                  else 
1335
               (if 
1336
                  (if (
1337
                     (if (KP_01 and 
1338
                        (not (pre KP_01)))
1339
                        then 0
1340
                        else 
1341
                     (if (KP_11 and 
1342
                        (not (pre KP_11)))
1343
                        then 1
1344
                        else 
1345
                     (if (KP_21 and 
1346
                        (not (pre KP_21)))
1347
                        then 2
1348
                        else 
1349
                     (if (KP_31 and 
1350
                        (not (pre KP_31)))
1351
                        then 3
1352
                        else 
1353
                     (if (KP_41 and 
1354
                        (not (pre KP_41)))
1355
                        then 4
1356
                        else 
1357
                     (if (KP_51 and 
1358
                        (not (pre KP_51)))
1359
                        then 5
1360
                        else 
1361
                     (if (KP_61 and 
1362
                        (not (pre KP_61)))
1363
                        then 6
1364
                        else 
1365
                     (if (KP_71 and 
1366
                        (not (pre KP_71)))
1367
                        then 7
1368
                        else 
1369
                     (if (KP_81 and 
1370
                        (not (pre KP_81)))
1371
                        then 8
1372
                        else 
1373
                     (if (KP_91 and 
1374
                        (not (pre KP_91)))
1375
                        then 9
1376
                        else 10)))))))))) <= 9)
1377
                     then true
1378
                     else false)
1379
                  then 
1380
                        (if (KP_01 and 
1381
                           (not (pre KP_01)))
1382
                           then 0
1383
                           else 
1384
                        (if (KP_11 and 
1385
                           (not (pre KP_11)))
1386
                           then 1
1387
                           else 
1388
                        (if (KP_21 and 
1389
                           (not (pre KP_21)))
1390
                           then 2
1391
                           else 
1392
                        (if (KP_31 and 
1393
                           (not (pre KP_31)))
1394
                           then 3
1395
                           else 
1396
                        (if (KP_41 and 
1397
                           (not (pre KP_41)))
1398
                           then 4
1399
                           else 
1400
                        (if (KP_51 and 
1401
                           (not (pre KP_51)))
1402
                           then 5
1403
                           else 
1404
                        (if (KP_61 and 
1405
                           (not (pre KP_61)))
1406
                           then 6
1407
                           else 
1408
                        (if (KP_71 and 
1409
                           (not (pre KP_71)))
1410
                           then 7
1411
                           else 
1412
                        (if (KP_81 and 
1413
                           (not (pre KP_81)))
1414
                           then 8
1415
                           else 
1416
                        (if (KP_91 and 
1417
                           (not (pre KP_91)))
1418
                           then 9
1419
                           else 10))))))))))
1420
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1421
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1422

    
1423
   STEPS_TO_COOK = (
1424
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1425
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1426
         then 0
1427
         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)) -> 
1428
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1429
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1430
         then 0
1431
         else 
1432
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1433
         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)
1434
         else (pre STEPS_TO_COOK))));
1435

    
1436
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1437
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1438
         then true
1439
         else 
1440
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1441
         then false
1442
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1443

    
1444
   SETUP = 
1445
      (if (1 = microwave_microwave_mode_logic_mode)
1446
         then true
1447
         else false);
1448

    
1449
   p32 = (true -> ((not (enable and 
1450
      (not KP_CLEAR))) or 
1451
      ((not ((KP_5 and 
1452
      (not (pre KP_5))) and 
1453
      ((not (KP_4 and 
1454
      (not (pre KP_4)))) and 
1455
      ((not (KP_3 and 
1456
      (not (pre KP_3)))) and 
1457
      ((not (KP_2 and 
1458
      (not (pre KP_2)))) and 
1459
      ((not (KP_1 and 
1460
      (not (pre KP_1)))) and 
1461
      (not (KP_0 and 
1462
      (not (pre KP_0)))))))))) or 
1463
      (RIGHT_DIGIT = 5))));
1464

    
1465
   enable = (true -> 
1466
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1467
         then true
1468
         else false));
1469

    
1470
   p28 = (true -> ((not (enable and 
1471
      (not KP_CLEAR))) or 
1472
      ((not ((KP_1 and 
1473
      (not (pre KP_1))) and 
1474
      (not (KP_0 and 
1475
      (not (pre KP_0)))))) or 
1476
      (RIGHT_DIGIT = 1))));
1477

    
1478
   p13 = ((not (enable and 
1479
      KP_CLEAR)) or 
1480
      (STEPS_TO_COOK = 0));
1481

    
1482
   p19 = (true -> ((not (enable and 
1483
      (not KP_CLEAR))) or 
1484
      (((((((((((KP_1 and 
1485
      (not (pre KP_1))) or 
1486
      (KP_2 and 
1487
      (not (pre KP_2)))) or 
1488
      (KP_3 and 
1489
      (not (pre KP_3)))) or 
1490
      (KP_4 and 
1491
      (not (pre KP_4)))) or 
1492
      (KP_5 and 
1493
      (not (pre KP_5)))) or 
1494
      (KP_6 and 
1495
      (not (pre KP_6)))) or 
1496
      (KP_7 and 
1497
      (not (pre KP_7)))) or 
1498
      (KP_8 and 
1499
      (not (pre KP_8)))) or 
1500
      (KP_9 and 
1501
      (not (pre KP_9)))) or 
1502
      (KP_0 and 
1503
      (not (pre KP_0)))) or 
1504
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1505

    
1506
   p29 = (true -> ((not (enable and 
1507
      (not KP_CLEAR))) or 
1508
      ((not ((KP_2 and 
1509
      (not (pre KP_2))) and 
1510
      ((not (KP_1 and 
1511
      (not (pre KP_1)))) and 
1512
      (not (KP_0 and 
1513
      (not (pre KP_0))))))) or 
1514
      (RIGHT_DIGIT = 2))));
1515

    
1516
   p34 = (true -> ((not (enable and 
1517
      (not KP_CLEAR))) or 
1518
      ((not ((KP_7 and 
1519
      (not (pre KP_7))) and 
1520
      ((not (KP_6 and 
1521
      (not (pre KP_6)))) and 
1522
      ((not (KP_5 and 
1523
      (not (pre KP_5)))) and 
1524
      ((not (KP_4 and 
1525
      (not (pre KP_4)))) and 
1526
      ((not (KP_3 and 
1527
      (not (pre KP_3)))) and 
1528
      ((not (KP_2 and 
1529
      (not (pre KP_2)))) and 
1530
      ((not (KP_1 and 
1531
      (not (pre KP_1)))) and 
1532
      (not (KP_0 and 
1533
      (not (pre KP_0)))))))))))) or 
1534
      (RIGHT_DIGIT = 7))));
1535

    
1536
   p12 = (enable or 
1537
      (STEPS_TO_COOK = 0));
1538

    
1539
   p21 = ((not (enable and 
1540
      KP_CLEAR)) or 
1541
      (MIDDLE_DIGIT = 0));
1542

    
1543
  --%PROPERTY OK=true;
1544
  --%MAIN;
1545

    
1546
tel
1547