Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (50.9 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
   p3: bool; 
107
   p4: bool; 
108
   p5: bool; 
109
   p6: bool; 
110
   p7: bool; 
111
   p8: bool; 
112
   p9: bool; 
113
   p10: bool; 
114
   p11: bool; 
115
   p12: bool; 
116
   p13: bool; 
117
   p14: bool; 
118
   p15: bool; 
119
   p16: bool; 
120
   p17: bool; 
121
   p18: bool; 
122
   p19: bool; 
123
   p20: bool; 
124
   p21: bool; 
125
   p22: bool; 
126
   p23: bool; 
127
   p24: bool; 
128
   p25: bool; 
129
   p26: bool; 
130
   p27: bool; 
131
   p28: bool; 
132
   p29: bool; 
133
   p30: bool; 
134
   p31: bool; 
135
   p32: bool; 
136
   p33: bool; 
137
   p34: bool; 
138
   p35: bool; 
139
   p36: bool; 
140
   p37: bool; 
141
   rltTruncByConv: bool;
142

    
143

    
144
let 
145
   rlt__Arrow5 = (639 -> 
146
      (if (not (not SETUP))
147
         then 
148
               (if (MWI_FcnMaxI_In13 > 0)
149
                  then MWI_FcnMaxI_In13
150
                  else 0)
151
         else 639));
152

    
153
   rlt__Arrow4 = (639 -> 
154
      (if (not SUSPENDED)
155
         then 
156
               (if (MWI_FcnMaxI_In12 > 0)
157
                  then MWI_FcnMaxI_In12
158
                  else 0)
159
         else 639));
160

    
161
   rlt__Arrow3 = (639 -> 
162
      (if (not (not COOKING))
163
         then 
164
               (if (MWI_FcnMaxI_In16 > 0)
165
                  then MWI_FcnMaxI_In16
166
                  else 0)
167
         else 639));
168

    
169
   rlt__Arrow2 = (639 -> 
170
      (if (not (not SUSPENDED))
171
         then 
172
               (if (MWI_FcnMaxI_In15 > 0)
173
                  then MWI_FcnMaxI_In15
174
                  else 0)
175
         else 639));
176

    
177
   rlt__Arrow1 = (639 -> 
178
      (if (not COOKING)
179
         then 
180
               (if (MWI_FcnMaxI_In11 > 0)
181
                  then MWI_FcnMaxI_In11
182
                  else 0)
183
         else 639));
184

    
185
   rlt__Arrow = (639 -> 
186
      (if (not SETUP)
187
         then 
188
               (if (MWI_FcnMaxI_In1 > 0)
189
                  then MWI_FcnMaxI_In1
190
                  else 0)
191
         else 639));
192

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

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

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

    
275
   p33 = (true -> ((not (enable and 
276
      (not KP_CLEAR))) or 
277
      ((not ((KP_6 and 
278
      (not (pre KP_6))) and 
279
      ((not (KP_5 and 
280
      (not (pre KP_5)))) and 
281
      ((not (KP_4 and 
282
      (not (pre KP_4)))) and 
283
      ((not (KP_3 and 
284
      (not (pre KP_3)))) and 
285
      ((not (KP_2 and 
286
      (not (pre KP_2)))) and 
287
      ((not (KP_1 and 
288
      (not (pre KP_1)))) and 
289
      (not (KP_0 and 
290
      (not (pre KP_0))))))))))) or 
291
      (RIGHT_DIGIT = 6))));
292

    
293
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
294

    
295
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
296

    
297
   p25 = (enable or 
298
      (RIGHT_DIGIT = 0));
299

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

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

    
348
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
349

    
350
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
351
      (not (pre KP_CLEAR))));
352

    
353
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
354

    
355
   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));
356

    
357
   SUSPENDED = 
358
      (if (3 = microwave_microwave_mode_logic_mode)
359
         then true
360
         else false);
361

    
362
   p31 = (true -> ((not (enable and 
363
      (not KP_CLEAR))) or 
364
      ((not ((KP_4 and 
365
      (not (pre KP_4))) and 
366
      ((not (KP_3 and 
367
      (not (pre KP_3)))) and 
368
      ((not (KP_2 and 
369
      (not (pre KP_2)))) and 
370
      ((not (KP_1 and 
371
      (not (pre KP_1)))) and 
372
      (not (KP_0 and 
373
      (not (pre KP_0))))))))) or 
374
      (RIGHT_DIGIT = 4))));
375

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

    
400
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
401

    
402
   p4 = (true -> (
403
      (if (not COOKING)
404
         then 
405
               (if (MWI_FcnMaxI_In11 > 0)
406
                  then MWI_FcnMaxI_In11
407
                  else 0)
408
         else 639) > 0));
409

    
410
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
411

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

    
436
   p20 = (enable or 
437
      (MIDDLE_DIGIT = 0));
438

    
439
   p5 = (true -> (
440
      (if (not SUSPENDED)
441
         then 
442
               (if (MWI_FcnMaxI_In12 > 0)
443
                  then MWI_FcnMaxI_In12
444
                  else 0)
445
         else 639) > 0));
446

    
447
   p26 = ((not (enable and 
448
      KP_CLEAR)) or 
449
      (RIGHT_DIGIT = 0));
450

    
451
   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);
452

    
453
   p14 = (true -> ((not (enable and 
454
      (not KP_CLEAR))) or 
455
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
456

    
457
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
458

    
459
   p6 = (true -> ((not SETUP) or 
460
      (
461
      (if (not (not SETUP))
462
         then 
463
               (if (MWI_FcnMaxI_In13 > 0)
464
                  then MWI_FcnMaxI_In13
465
                  else 0)
466
         else 639) > 0)));
467

    
468
   p8 = (true -> ((not SUSPENDED) or 
469
      (
470
      (if (not (not SUSPENDED))
471
         then 
472
               (if (MWI_FcnMaxI_In15 > 0)
473
                  then MWI_FcnMaxI_In15
474
                  else 0)
475
         else 639) > 0)));
476

    
477
   p7 = (true -> ((not COOKING) or 
478
      (
479
      (if (not (not COOKING))
480
         then 
481
               (if (MWI_FcnMaxI_In16 > 0)
482
                  then MWI_FcnMaxI_In16
483
                  else 0)
484
         else 639) > 0)));
485

    
486
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
487

    
488
   p16 = ((not (enable and 
489
      KP_CLEAR)) or 
490
      (LEFT_DIGIT = 0));
491

    
492
   p30 = (true -> ((not (enable and 
493
      (not KP_CLEAR))) or 
494
      ((not ((KP_3 and 
495
      (not (pre KP_3))) and 
496
      ((not (KP_2 and 
497
      (not (pre KP_2)))) and 
498
      ((not (KP_1 and 
499
      (not (pre KP_1)))) and 
500
      (not (KP_0 and 
501
      (not (pre KP_0)))))))) or 
502
      (RIGHT_DIGIT = 3))));
503

    
504
   COOKING = 
505
      (if (2 = microwave_microwave_mode_logic_mode)
506
         then true
507
         else false);
508

    
509
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
510

    
511
   p11 = ((not KP_CLEAR) or 
512
      (not COOKING));
513

    
514
   p9 = (true -> ((not COOKING) or 
515
      DOOR_CLOSED));
516

    
517
   p15 = (enable or 
518
      (LEFT_DIGIT = 0));
519

    
520
   START_PRESSED = (KP_START -> (KP_START and 
521
      (not (pre KP_START))));
522

    
523
   chart_microwave_mode_logic_start = 
524
      (if (START_PRESSED = false)
525
         then 0
526
         else 1);
527

    
528
   chart_microwave_mode_logic_clear_off = 
529
      (if (CLEAR_PRESSED = false)
530
         then 0
531
         else 1);
532

    
533
   chart_microwave_mode_logic_door_closed = 
534
      (if (DOOR_CLOSED = false)
535
         then 0
536
         else 1);
537

    
538
   chart_microwave_mode_logic____wakeup___ = true;
539

    
540
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
541
      (if (pre chart_microwave_mode_logic____wakeup___)
542
         then false
543
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
544

    
545
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
546

    
547
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
548

    
549
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
550

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

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

    
598
   chart_microwave_mode_logic_steps_remaining = 
599
      (if chart_microwave_mode_logic____wakeup___
600
         then 
601
               (if chart_microwave_mode_logic_rlt_evtInitStep
602
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
603
                  else 
604
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
605
                  
606
                  
607
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
608
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
609
                  then 
610
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
611
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
612
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
613
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
614
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
615

    
616
   
617
   
618
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
619

    
620
   
621
   
622
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
623
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
624
         then STEPS_TO_COOK
625
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
626

    
627
   
628
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
629
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
630
      (
631
      (if (chart_microwave_mode_logic_start <> 0)
632
         then true
633
         else false) and 
634
      
635
      (if (
636
         (if ((STEPS_TO_COOK > 0) = false)
637
            then 0
638
            else 1) <> 0)
639
         then true
640
         else false))));
641

    
642
   
643
   
644
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
645
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
646
         then 
647
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
648
                  then 
649
                        
650
                        0
651
                  else chart_microwave_mode_logic_begin_state_states___root)
652
         else chart_microwave_mode_logic_begin_state_states___root);
653

    
654
   
655
   
656
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
657
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
658
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
659
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
660
   
661
   
662

    
663
   
664
   
665
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
666
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
667
         then 
668
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
669
                  then 
670
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
671
                           then 3
672
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
673
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
674
         else chart_microwave_mode_logic_begin_state_outports_mode);
675
   
676
   
677

    
678
   
679
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
680
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
681
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
682

    
683
   
684
   
685
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
686
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
687
         then 
688
               (if 
689
                  
690
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
691
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
692
                  then 
693
                        
694
                        0
695
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
696
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
697

    
698
   
699
   
700
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
701
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
702
         then 
703
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
704
                  then 
705
                        
706
                        4
707
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
708
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
709
   
710
   
711

    
712
   
713
   
714
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
715
      ((
716
      (if (chart_microwave_mode_logic_start <> 0)
717
         then true
718
         else false) and 
719
      
720
      (if (chart_microwave_mode_logic_door_closed <> 0)
721
         then true
722
         else false)) and 
723
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
724

    
725
   
726
   
727
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
728
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
729

    
730
   
731
   
732
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
733
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
734
         then 
735
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
736
                  then 
737
                        
738
                        1
739
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
740
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
741

    
742
   
743
   
744
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
745
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
746
         then 
747
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
748
                  then 1
749
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
750
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
751

    
752
   
753
   
754
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
755
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
756
         then 
757
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
758
                  then 
759
                        
760
                        2
761
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
762
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
763
   
764
   
765

    
766
   
767
   
768
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
769
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
770
         then 
771
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
772
                  then 2
773
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
774
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
775
   
776
   
777

    
778
   
779
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
780
      (
781
      (if (chart_microwave_mode_logic_clear_off <> 0)
782
         then true
783
         else false) and 
784
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
785
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
786
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
787

    
788
   
789
   
790
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
791
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
792

    
793
   
794
   
795
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
796
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
797
         then 
798
               (if 
799
                  
800
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
801
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
802
                  then 
803
                        
804
                        0
805
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
806
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
807

    
808
   
809
   
810
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
811
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
812
         then 0
813
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
814

    
815
   
816
   
817
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
818
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
819
         then 
820
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
821
                  then 
822
                        
823
                        4
824
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
825
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
826
   
827
   
828

    
829
   
830
   
831
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
832
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
833
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
834

    
835
   
836
   
837
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
838
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
839
         then 
840
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
841
                  then 1
842
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
843
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
844

    
845
   
846
   
847
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
848
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
849
         then 
850
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
851
                  then 
852
                        
853
                        1
854
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
855
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
856

    
857
   
858
   
859
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
860
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
861
         then 
862
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
863
                  then 
864
                        
865
                        2
866
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
867
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
868
   
869
   
870

    
871
   
872
   
873
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
874
      ((
875
      (if (chart_microwave_mode_logic_clear_off <> 0)
876
         then true
877
         else false) or 
878
      (not 
879
      (if (chart_microwave_mode_logic_door_closed <> 0)
880
         then true
881
         else false))) and 
882
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
883
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
884

    
885
   
886
   
887
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
888
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
889
         then 
890
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
891
                  then 
892
                        
893
                        1
894
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
895
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
896

    
897
   
898
   
899
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
900
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
901
         then 
902
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
903
                  then 2
904
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
905
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
906

    
907
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
908
      (if (not 
909
         
910
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
911
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
912
         then 
913
               
914
               1
915
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
916

    
917
   
918
   
919
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
920
      
921
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
922
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
923
      
924
      
925
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
926
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
927

    
928
   
929
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
930
      (
931
      
932
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
933
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
934
      
935
      (if (chart_microwave_mode_logic_door_closed <> 0)
936
         then true
937
         else false)));
938

    
939
   
940
   
941
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
942
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
943
         then 
944
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
945
                  then 
946
                        
947
                        2
948
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
949
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
950
   
951
   
952

    
953
   
954
   
955
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
956
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
957
         then 
958
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
959
                  then 2
960
                  else chart_microwave_mode_logic_begin_state_outports_mode)
961
         else chart_microwave_mode_logic_begin_state_outports_mode);
962
   
963
   
964

    
965
   
966
   
967
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
968
      (
969
      
970
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
971
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
972
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
973

    
974
   
975
   
976
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
977
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
978
         then 
979
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
980
                  then 
981
                        
982
                        3
983
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
984
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
985
   
986
   
987

    
988
   
989
   
990
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
991
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
992
         then 
993
               
994
               4
995
         else chart_microwave_mode_logic_begin_state_states___root);
996
   
997
   
998

    
999
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
1000

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

    
1037
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1038

    
1039
   p10 = (true -> ((not COOKING) or 
1040
      (
1041
      (if (not (not COOKING))
1042
         then 
1043
               (if (MWI_FcnMaxI_In16 > 0)
1044
                  then MWI_FcnMaxI_In16
1045
                  else 0)
1046
         else 639) > 0)));
1047

    
1048
   p27 = (((not (enable and 
1049
      (not KP_CLEAR))) or 
1050
      ((not KP_0) or 
1051
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1052
      (not KP_CLEAR))) or 
1053
      ((not (KP_0 and 
1054
      (not (pre KP_0)))) or 
1055
      (RIGHT_DIGIT = 0))));
1056

    
1057
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1058

    
1059
   KP_01 = KP_0;
1060

    
1061
   KP_11 = KP_1;
1062

    
1063
   KP_21 = KP_2;
1064

    
1065
   KP_31 = KP_3;
1066

    
1067
   KP_41 = KP_4;
1068

    
1069
   KP_51 = KP_5;
1070

    
1071
   KP_61 = KP_6;
1072

    
1073
   KP_71 = KP_7;
1074

    
1075
   KP_81 = KP_8;
1076

    
1077
   KP_91 = KP_9;
1078

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

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

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

    
1428
   STEPS_TO_COOK = (
1429
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1430
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1431
         then 0
1432
         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)) -> 
1433
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1434
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1435
         then 0
1436
         else 
1437
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1438
         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)
1439
         else (pre STEPS_TO_COOK))));
1440

    
1441
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1442
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1443
         then true
1444
         else 
1445
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1446
         then false
1447
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1448

    
1449
   SETUP = 
1450
      (if (1 = microwave_microwave_mode_logic_mode)
1451
         then true
1452
         else false);
1453

    
1454
   p32 = (true -> ((not (enable and 
1455
      (not KP_CLEAR))) or 
1456
      ((not ((KP_5 and 
1457
      (not (pre KP_5))) and 
1458
      ((not (KP_4 and 
1459
      (not (pre KP_4)))) and 
1460
      ((not (KP_3 and 
1461
      (not (pre KP_3)))) and 
1462
      ((not (KP_2 and 
1463
      (not (pre KP_2)))) and 
1464
      ((not (KP_1 and 
1465
      (not (pre KP_1)))) and 
1466
      (not (KP_0 and 
1467
      (not (pre KP_0)))))))))) or 
1468
      (RIGHT_DIGIT = 5))));
1469

    
1470
   enable = (true -> 
1471
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1472
         then true
1473
         else false));
1474

    
1475
   p3 = (true -> (
1476
      (if (not SETUP)
1477
         then 
1478
               (if (MWI_FcnMaxI_In1 > 0)
1479
                  then MWI_FcnMaxI_In1
1480
                  else 0)
1481
         else 639) > 0));
1482

    
1483
   p28 = (true -> ((not (enable and 
1484
      (not KP_CLEAR))) or 
1485
      ((not ((KP_1 and 
1486
      (not (pre KP_1))) and 
1487
      (not (KP_0 and 
1488
      (not (pre KP_0)))))) or 
1489
      (RIGHT_DIGIT = 1))));
1490

    
1491
   p13 = ((not (enable and 
1492
      KP_CLEAR)) or 
1493
      (STEPS_TO_COOK = 0));
1494

    
1495
   p19 = (true -> ((not (enable and 
1496
      (not KP_CLEAR))) or 
1497
      (((((((((((KP_1 and 
1498
      (not (pre KP_1))) or 
1499
      (KP_2 and 
1500
      (not (pre KP_2)))) or 
1501
      (KP_3 and 
1502
      (not (pre KP_3)))) or 
1503
      (KP_4 and 
1504
      (not (pre KP_4)))) or 
1505
      (KP_5 and 
1506
      (not (pre KP_5)))) or 
1507
      (KP_6 and 
1508
      (not (pre KP_6)))) or 
1509
      (KP_7 and 
1510
      (not (pre KP_7)))) or 
1511
      (KP_8 and 
1512
      (not (pre KP_8)))) or 
1513
      (KP_9 and 
1514
      (not (pre KP_9)))) or 
1515
      (KP_0 and 
1516
      (not (pre KP_0)))) or 
1517
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1518

    
1519
   p29 = (true -> ((not (enable and 
1520
      (not KP_CLEAR))) or 
1521
      ((not ((KP_2 and 
1522
      (not (pre KP_2))) and 
1523
      ((not (KP_1 and 
1524
      (not (pre KP_1)))) and 
1525
      (not (KP_0 and 
1526
      (not (pre KP_0))))))) or 
1527
      (RIGHT_DIGIT = 2))));
1528

    
1529
   p34 = (true -> ((not (enable and 
1530
      (not KP_CLEAR))) or 
1531
      ((not ((KP_7 and 
1532
      (not (pre KP_7))) and 
1533
      ((not (KP_6 and 
1534
      (not (pre KP_6)))) and 
1535
      ((not (KP_5 and 
1536
      (not (pre KP_5)))) and 
1537
      ((not (KP_4 and 
1538
      (not (pre KP_4)))) and 
1539
      ((not (KP_3 and 
1540
      (not (pre KP_3)))) and 
1541
      ((not (KP_2 and 
1542
      (not (pre KP_2)))) and 
1543
      ((not (KP_1 and 
1544
      (not (pre KP_1)))) and 
1545
      (not (KP_0 and 
1546
      (not (pre KP_0)))))))))))) or 
1547
      (RIGHT_DIGIT = 7))));
1548

    
1549
   p12 = (enable or 
1550
      (STEPS_TO_COOK = 0));
1551

    
1552
   p21 = ((not (enable and 
1553
      KP_CLEAR)) or 
1554
      (MIDDLE_DIGIT = 0));
1555

    
1556
   OK = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT >= 0) and 
1557
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT <= 256));
1558

    
1559
   rltTruncByConv = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT >= 0) and 
1560
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT <= 256));
1561

    
1562
  --%PROPERTY OK=true;
1563
  --%MAIN;
1564

    
1565
tel
1566