Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

    
144
   rlt__Arrow4 = (639 -> 
145
      (if (not SUSPENDED)
146
         then 
147
               (if (MWI_FcnMaxI_In12 > 0)
148
                  then MWI_FcnMaxI_In12
149
                  else 0)
150
         else 639));
151

    
152
   rlt__Arrow3 = (639 -> 
153
      (if (not (not COOKING))
154
         then 
155
               (if (MWI_FcnMaxI_In16 > 0)
156
                  then MWI_FcnMaxI_In16
157
                  else 0)
158
         else 639));
159

    
160
   rlt__Arrow2 = (639 -> 
161
      (if (not (not SUSPENDED))
162
         then 
163
               (if (MWI_FcnMaxI_In15 > 0)
164
                  then MWI_FcnMaxI_In15
165
                  else 0)
166
         else 639));
167

    
168
   rlt__Arrow1 = (639 -> 
169
      (if (not COOKING)
170
         then 
171
               (if (MWI_FcnMaxI_In11 > 0)
172
                  then MWI_FcnMaxI_In11
173
                  else 0)
174
         else 639));
175

    
176
   rlt__Arrow = (639 -> 
177
      (if (not SETUP)
178
         then 
179
               (if (MWI_FcnMaxI_In1 > 0)
180
                  then MWI_FcnMaxI_In1
181
                  else 0)
182
         else 639));
183

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

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

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

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

    
284
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
285

    
286
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
287

    
288
   p25 = (enable or 
289
      (RIGHT_DIGIT = 0));
290

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

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

    
339
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
340

    
341
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
342
      (not (pre KP_CLEAR))));
343

    
344
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
345

    
346
   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));
347

    
348
   SUSPENDED = 
349
      (if (3 = microwave_microwave_mode_logic_mode)
350
         then true
351
         else false);
352

    
353
   p31 = (true -> ((not (enable and 
354
      (not KP_CLEAR))) or 
355
      ((not ((KP_4 and 
356
      (not (pre KP_4))) and 
357
      ((not (KP_3 and 
358
      (not (pre KP_3)))) and 
359
      ((not (KP_2 and 
360
      (not (pre KP_2)))) and 
361
      ((not (KP_1 and 
362
      (not (pre KP_1)))) and 
363
      (not (KP_0 and 
364
      (not (pre KP_0))))))))) or 
365
      (RIGHT_DIGIT = 4))));
366

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

    
391
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
392

    
393
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
394

    
395
   p24 = (true -> (((not (enable and 
396
      (not KP_CLEAR))) or 
397
      ((((((((((KP_1 and 
398
      (not (pre KP_1))) or 
399
      (KP_2 and 
400
      (not (pre KP_2)))) or 
401
      (KP_3 and 
402
      (not (pre KP_3)))) or 
403
      (KP_4 and 
404
      (not (pre KP_4)))) or 
405
      (KP_5 and 
406
      (not (pre KP_5)))) or 
407
      (KP_6 and 
408
      (not (pre KP_6)))) or 
409
      (KP_7 and 
410
      (not (pre KP_7)))) or 
411
      (KP_8 and 
412
      (not (pre KP_8)))) or 
413
      (KP_9 and 
414
      (not (pre KP_9)))) or 
415
      (KP_0 and 
416
      (not (pre KP_0))))) or 
417
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
418

    
419
   p20 = (enable or 
420
      (MIDDLE_DIGIT = 0));
421

    
422
   p26 = ((not (enable and 
423
      KP_CLEAR)) or 
424
      (RIGHT_DIGIT = 0));
425

    
426
   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);
427

    
428
   p14 = (true -> ((not (enable and 
429
      (not KP_CLEAR))) or 
430
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
431

    
432
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
433

    
434

    
435
   OK = (true -> ((not SUSPENDED) or 
436
      (
437
      (if (not (not SUSPENDED))
438
         then 
439
               (if (MWI_FcnMaxI_In15 > 0)
440
                  then MWI_FcnMaxI_In15
441
                  else 0)
442
         else 639) > 0)));
443

    
444
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
445

    
446
   p16 = ((not (enable and 
447
      KP_CLEAR)) or 
448
      (LEFT_DIGIT = 0));
449

    
450
   p30 = (true -> ((not (enable and 
451
      (not KP_CLEAR))) or 
452
      ((not ((KP_3 and 
453
      (not (pre KP_3))) and 
454
      ((not (KP_2 and 
455
      (not (pre KP_2)))) and 
456
      ((not (KP_1 and 
457
      (not (pre KP_1)))) and 
458
      (not (KP_0 and 
459
      (not (pre KP_0)))))))) or 
460
      (RIGHT_DIGIT = 3))));
461

    
462
   COOKING = 
463
      (if (2 = microwave_microwave_mode_logic_mode)
464
         then true
465
         else false);
466

    
467
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
468

    
469
   p11 = ((not KP_CLEAR) or 
470
      (not COOKING));
471

    
472
   p9 = (true -> ((not COOKING) or 
473
      DOOR_CLOSED));
474

    
475
   p15 = (enable or 
476
      (LEFT_DIGIT = 0));
477

    
478
   START_PRESSED = (KP_START -> (KP_START and 
479
      (not (pre KP_START))));
480

    
481
   chart_microwave_mode_logic_start = 
482
      (if (START_PRESSED = false)
483
         then 0
484
         else 1);
485

    
486
   chart_microwave_mode_logic_clear_off = 
487
      (if (CLEAR_PRESSED = false)
488
         then 0
489
         else 1);
490

    
491
   chart_microwave_mode_logic_door_closed = 
492
      (if (DOOR_CLOSED = false)
493
         then 0
494
         else 1);
495

    
496
   chart_microwave_mode_logic____wakeup___ = true;
497

    
498
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
499
      (if (pre chart_microwave_mode_logic____wakeup___)
500
         then false
501
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
502

    
503
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
504

    
505
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
506

    
507
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
508

    
509
   chart_microwave_mode_logic_final_state_states___root = 
510
      (if chart_microwave_mode_logic____wakeup___
511
         then 
512
               (if chart_microwave_mode_logic_rlt_evtInitStep
513
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
514
                  else 
515
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
516
                  
517
                  
518
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
519
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
520
                  then 
521
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
522
                           then 
523
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
524
                                    then 
525
                                          
526
                                          3
527
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
528
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
529
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
530
         else chart_microwave_mode_logic_begin_state_states___root);
531

    
532
   chart_microwave_mode_logic_mode = 
533
      (if chart_microwave_mode_logic____wakeup___
534
         then 
535
               (if chart_microwave_mode_logic_rlt_evtInitStep
536
                  then 
537
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
538
                           then 1
539
                           else chart_microwave_mode_logic_begin_state_outports_mode)
540
                  else 
541
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
542
                  
543
                  
544
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
545
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
546
                  then 
547
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
548
                           then 
549
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
550
                                    then 3
551
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
552
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
553
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
554
         else chart_microwave_mode_logic_begin_state_outports_mode);
555

    
556
   chart_microwave_mode_logic_steps_remaining = 
557
      (if chart_microwave_mode_logic____wakeup___
558
         then 
559
               (if chart_microwave_mode_logic_rlt_evtInitStep
560
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
561
                  else 
562
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
563
                  
564
                  
565
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
566
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
567
                  then 
568
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
569
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
570
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
571
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
572
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
573

    
574
   
575
   
576
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
577

    
578
   
579
   
580
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
581
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
582
         then STEPS_TO_COOK
583
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
584

    
585
   
586
   
587
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
588
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
589
      (
590
      (if (chart_microwave_mode_logic_start <> 0)
591
         then true
592
         else false) and 
593
      
594
      (if (
595
         (if ((STEPS_TO_COOK > 0) = false)
596
            then 0
597
            else 1) <> 0)
598
         then true
599
         else false))));
600

    
601
   
602
   
603
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
604
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
605
         then 
606
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
607
                  then 
608
                        
609
                        0
610
                  else chart_microwave_mode_logic_begin_state_states___root)
611
         else chart_microwave_mode_logic_begin_state_states___root);
612

    
613
   
614
   
615
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
616
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
617
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
618
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
619
   
620
   
621

    
622
   
623
   
624
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
625
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
626
         then 
627
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
628
                  then 
629
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
630
                           then 3
631
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
632
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
633
         else chart_microwave_mode_logic_begin_state_outports_mode);
634
   
635
   
636

    
637
   
638
   
639
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
640
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
641
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
642

    
643
   
644
   
645
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
646
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
647
         then 
648
               (if 
649
                  
650
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
651
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
652
                  then 
653
                        
654
                        0
655
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
656
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
657

    
658
   
659
   
660
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
661
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
662
         then 
663
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
664
                  then 
665
                        
666
                        4
667
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
668
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
669
   
670
   
671

    
672
   
673
   
674
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
675
      ((
676
      (if (chart_microwave_mode_logic_start <> 0)
677
         then true
678
         else false) and 
679
      
680
      (if (chart_microwave_mode_logic_door_closed <> 0)
681
         then true
682
         else false)) and 
683
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
684

    
685
   
686
   
687
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
688
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
689

    
690
   
691
   
692
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
693
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
694
         then 
695
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
696
                  then 
697
                        
698
                        1
699
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
700
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
701

    
702
   
703
   
704
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
705
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
706
         then 
707
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
708
                  then 1
709
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
710
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
711

    
712
   
713
   
714
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
715
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
716
         then 
717
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
718
                  then 
719
                        
720
                        2
721
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
722
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
723
   
724
   
725

    
726
   
727
   
728
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
729
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
730
         then 
731
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
732
                  then 2
733
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
734
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
735
   
736
   
737

    
738
   
739
   
740
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
741
      (
742
      (if (chart_microwave_mode_logic_clear_off <> 0)
743
         then true
744
         else false) and 
745
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
746
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
747
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
748

    
749
   
750
   
751
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
752
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
753

    
754
   
755
   
756
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
757
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
758
         then 
759
               (if 
760
                  
761
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
762
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
763
                  then 
764
                        
765
                        0
766
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
767
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
768

    
769
   
770
   
771
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
772
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
773
         then 0
774
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
775

    
776
   
777
   
778
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
779
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
780
         then 
781
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
782
                  then 
783
                        
784
                        4
785
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
786
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
787
   
788
   
789

    
790
   
791
   
792
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
793
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
794
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
795

    
796
   
797
   
798
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
799
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
800
         then 
801
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
802
                  then 1
803
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
804
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
805

    
806
   
807
   
808
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
809
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
810
         then 
811
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
812
                  then 
813
                        
814
                        1
815
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
816
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
817

    
818
   
819
   
820
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
821
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
822
         then 
823
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
824
                  then 
825
                        
826
                        2
827
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
828
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
829
   
830
   
831

    
832
   
833
   
834
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
835
      ((
836
      (if (chart_microwave_mode_logic_clear_off <> 0)
837
         then true
838
         else false) or 
839
      (not 
840
      (if (chart_microwave_mode_logic_door_closed <> 0)
841
         then true
842
         else false))) and 
843
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
844
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
845

    
846
   
847
   
848
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
849
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
850
         then 
851
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
852
                  then 
853
                        
854
                        1
855
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
856
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
857

    
858
   
859
   
860
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
861
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
862
         then 
863
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
864
                  then 2
865
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
866
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
867

    
868
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
869
      (if (not 
870
         
871
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
872
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
873
         then 
874
               
875
               1
876
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
877

    
878
   
879
   
880
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
881
      
882
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
883
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
884
      
885
      
886
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
887
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
888

    
889
   
890
   
891
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
892
      (
893
      
894
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
895
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
896
      
897
      (if (chart_microwave_mode_logic_door_closed <> 0)
898
         then true
899
         else false)));
900

    
901
   
902
   
903
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
904
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
905
         then 
906
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
907
                  then 
908
                        
909
                        2
910
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
911
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
912
   
913
   
914

    
915
   
916
   
917
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
918
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
919
         then 
920
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
921
                  then 2
922
                  else chart_microwave_mode_logic_begin_state_outports_mode)
923
         else chart_microwave_mode_logic_begin_state_outports_mode);
924
   
925
   
926

    
927
   
928
   
929
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
930
      (
931
      
932
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
933
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
934
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
935

    
936
   
937
   
938
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
939
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
940
         then 
941
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
942
                  then 
943
                        
944
                        3
945
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
946
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
947
   
948
   
949

    
950
   
951
   
952
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
953
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
954
         then 
955
               
956
               4
957
         else chart_microwave_mode_logic_begin_state_states___root);
958
   
959
   
960

    
961
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
962

    
963
   p17 = (((not (enable and 
964
      (not KP_CLEAR))) or 
965
      ((not (((((((((KP_1 or 
966
      KP_2) or 
967
      KP_3) or 
968
      KP_4) or 
969
      KP_5) or 
970
      KP_6) or 
971
      KP_7) or 
972
      KP_8) or 
973
      KP_9) or 
974
      KP_0)) or 
975
      (LEFT_DIGIT = 0))) -> ((not (enable and 
976
      (not KP_CLEAR))) or 
977
      ((not ((((((((((KP_1 and 
978
      (not (pre KP_1))) or 
979
      (KP_2 and 
980
      (not (pre KP_2)))) or 
981
      (KP_3 and 
982
      (not (pre KP_3)))) or 
983
      (KP_4 and 
984
      (not (pre KP_4)))) or 
985
      (KP_5 and 
986
      (not (pre KP_5)))) or 
987
      (KP_6 and 
988
      (not (pre KP_6)))) or 
989
      (KP_7 and 
990
      (not (pre KP_7)))) or 
991
      (KP_8 and 
992
      (not (pre KP_8)))) or 
993
      (KP_9 and 
994
      (not (pre KP_9)))) or 
995
      (KP_0 and 
996
      (not (pre KP_0))))) or 
997
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
998

    
999
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1000

    
1001
   p10 = (true -> ((not COOKING) or 
1002
      (
1003
      (if (not (not COOKING))
1004
         then 
1005
               (if (MWI_FcnMaxI_In16 > 0)
1006
                  then MWI_FcnMaxI_In16
1007
                  else 0)
1008
         else 639) > 0)));
1009

    
1010
   p27 = (((not (enable and 
1011
      (not KP_CLEAR))) or 
1012
      ((not KP_0) or 
1013
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1014
      (not KP_CLEAR))) or 
1015
      ((not (KP_0 and 
1016
      (not (pre KP_0)))) or 
1017
      (RIGHT_DIGIT = 0))));
1018

    
1019
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1020

    
1021
   KP_01 = KP_0;
1022

    
1023
   KP_11 = KP_1;
1024

    
1025
   KP_21 = KP_2;
1026

    
1027
   KP_31 = KP_3;
1028

    
1029
   KP_41 = KP_4;
1030

    
1031
   KP_51 = KP_5;
1032

    
1033
   KP_61 = KP_6;
1034

    
1035
   KP_71 = KP_7;
1036

    
1037
   KP_81 = KP_8;
1038

    
1039
   KP_91 = KP_9;
1040

    
1041
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1042
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1043
         then 
1044
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1045
                  then 0
1046
                  else 
1047
               (if KP_CLEAR
1048
                  then 0
1049
                  else 
1050
               (if 
1051
                  (if (
1052
                     (if (KP_01 and 
1053
                        (not (pre KP_01)))
1054
                        then 0
1055
                        else 
1056
                     (if (KP_11 and 
1057
                        (not (pre KP_11)))
1058
                        then 1
1059
                        else 
1060
                     (if (KP_21 and 
1061
                        (not (pre KP_21)))
1062
                        then 2
1063
                        else 
1064
                     (if (KP_31 and 
1065
                        (not (pre KP_31)))
1066
                        then 3
1067
                        else 
1068
                     (if (KP_41 and 
1069
                        (not (pre KP_41)))
1070
                        then 4
1071
                        else 
1072
                     (if (KP_51 and 
1073
                        (not (pre KP_51)))
1074
                        then 5
1075
                        else 
1076
                     (if (KP_61 and 
1077
                        (not (pre KP_61)))
1078
                        then 6
1079
                        else 
1080
                     (if (KP_71 and 
1081
                        (not (pre KP_71)))
1082
                        then 7
1083
                        else 
1084
                     (if (KP_81 and 
1085
                        (not (pre KP_81)))
1086
                        then 8
1087
                        else 
1088
                     (if (KP_91 and 
1089
                        (not (pre KP_91)))
1090
                        then 9
1091
                        else 10)))))))))) <= 9)
1092
                     then true
1093
                     else false)
1094
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1095
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1096
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1097

    
1098
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1099
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1100
         then 
1101
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1102
                  then 0
1103
                  else 
1104
               (if KP_CLEAR
1105
                  then 0
1106
                  else 
1107
               (if 
1108
                  (if (
1109
                     (if (KP_01 and 
1110
                        (not (pre KP_01)))
1111
                        then 0
1112
                        else 
1113
                     (if (KP_11 and 
1114
                        (not (pre KP_11)))
1115
                        then 1
1116
                        else 
1117
                     (if (KP_21 and 
1118
                        (not (pre KP_21)))
1119
                        then 2
1120
                        else 
1121
                     (if (KP_31 and 
1122
                        (not (pre KP_31)))
1123
                        then 3
1124
                        else 
1125
                     (if (KP_41 and 
1126
                        (not (pre KP_41)))
1127
                        then 4
1128
                        else 
1129
                     (if (KP_51 and 
1130
                        (not (pre KP_51)))
1131
                        then 5
1132
                        else 
1133
                     (if (KP_61 and 
1134
                        (not (pre KP_61)))
1135
                        then 6
1136
                        else 
1137
                     (if (KP_71 and 
1138
                        (not (pre KP_71)))
1139
                        then 7
1140
                        else 
1141
                     (if (KP_81 and 
1142
                        (not (pre KP_81)))
1143
                        then 8
1144
                        else 
1145
                     (if (KP_91 and 
1146
                        (not (pre KP_91)))
1147
                        then 9
1148
                        else 10)))))))))) <= 9)
1149
                     then true
1150
                     else false)
1151
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1152
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1153
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1154

    
1155
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1156
      (if KP_CLEAR
1157
         then 0
1158
         else 
1159
      (if 
1160
         (if (
1161
            (if KP_01
1162
               then 0
1163
               else 
1164
            (if KP_11
1165
               then 1
1166
               else 
1167
            (if KP_21
1168
               then 2
1169
               else 
1170
            (if KP_31
1171
               then 3
1172
               else 
1173
            (if KP_41
1174
               then 4
1175
               else 
1176
            (if KP_51
1177
               then 5
1178
               else 
1179
            (if KP_61
1180
               then 6
1181
               else 
1182
            (if KP_71
1183
               then 7
1184
               else 
1185
            (if KP_81
1186
               then 8
1187
               else 
1188
            (if KP_91
1189
               then 9
1190
               else 10)))))))))) <= 9)
1191
            then true
1192
            else false)
1193
         then 
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))))))))))
1224
         else 0)) -> 
1225
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1226
         then 
1227
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1228
                  then 
1229
                        (if KP_CLEAR
1230
                           then 0
1231
                           else 
1232
                        (if 
1233
                           (if (
1234
                              (if KP_01
1235
                                 then 0
1236
                                 else 
1237
                              (if KP_11
1238
                                 then 1
1239
                                 else 
1240
                              (if KP_21
1241
                                 then 2
1242
                                 else 
1243
                              (if KP_31
1244
                                 then 3
1245
                                 else 
1246
                              (if KP_41
1247
                                 then 4
1248
                                 else 
1249
                              (if KP_51
1250
                                 then 5
1251
                                 else 
1252
                              (if KP_61
1253
                                 then 6
1254
                                 else 
1255
                              (if KP_71
1256
                                 then 7
1257
                                 else 
1258
                              (if KP_81
1259
                                 then 8
1260
                                 else 
1261
                              (if KP_91
1262
                                 then 9
1263
                                 else 10)))))))))) <= 9)
1264
                              then true
1265
                              else false)
1266
                           then 
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))))))))))
1297
                           else 0))
1298
                  else 
1299
               (if KP_CLEAR
1300
                  then 0
1301
                  else 
1302
               (if 
1303
                  (if (
1304
                     (if (KP_01 and 
1305
                        (not (pre KP_01)))
1306
                        then 0
1307
                        else 
1308
                     (if (KP_11 and 
1309
                        (not (pre KP_11)))
1310
                        then 1
1311
                        else 
1312
                     (if (KP_21 and 
1313
                        (not (pre KP_21)))
1314
                        then 2
1315
                        else 
1316
                     (if (KP_31 and 
1317
                        (not (pre KP_31)))
1318
                        then 3
1319
                        else 
1320
                     (if (KP_41 and 
1321
                        (not (pre KP_41)))
1322
                        then 4
1323
                        else 
1324
                     (if (KP_51 and 
1325
                        (not (pre KP_51)))
1326
                        then 5
1327
                        else 
1328
                     (if (KP_61 and 
1329
                        (not (pre KP_61)))
1330
                        then 6
1331
                        else 
1332
                     (if (KP_71 and 
1333
                        (not (pre KP_71)))
1334
                        then 7
1335
                        else 
1336
                     (if (KP_81 and 
1337
                        (not (pre KP_81)))
1338
                        then 8
1339
                        else 
1340
                     (if (KP_91 and 
1341
                        (not (pre KP_91)))
1342
                        then 9
1343
                        else 10)))))))))) <= 9)
1344
                     then true
1345
                     else false)
1346
                  then 
1347
                        (if (KP_01 and 
1348
                           (not (pre KP_01)))
1349
                           then 0
1350
                           else 
1351
                        (if (KP_11 and 
1352
                           (not (pre KP_11)))
1353
                           then 1
1354
                           else 
1355
                        (if (KP_21 and 
1356
                           (not (pre KP_21)))
1357
                           then 2
1358
                           else 
1359
                        (if (KP_31 and 
1360
                           (not (pre KP_31)))
1361
                           then 3
1362
                           else 
1363
                        (if (KP_41 and 
1364
                           (not (pre KP_41)))
1365
                           then 4
1366
                           else 
1367
                        (if (KP_51 and 
1368
                           (not (pre KP_51)))
1369
                           then 5
1370
                           else 
1371
                        (if (KP_61 and 
1372
                           (not (pre KP_61)))
1373
                           then 6
1374
                           else 
1375
                        (if (KP_71 and 
1376
                           (not (pre KP_71)))
1377
                           then 7
1378
                           else 
1379
                        (if (KP_81 and 
1380
                           (not (pre KP_81)))
1381
                           then 8
1382
                           else 
1383
                        (if (KP_91 and 
1384
                           (not (pre KP_91)))
1385
                           then 9
1386
                           else 10))))))))))
1387
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1388
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1389

    
1390
   STEPS_TO_COOK = (
1391
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1392
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1393
         then 0
1394
         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)) -> 
1395
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1396
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1397
         then 0
1398
         else 
1399
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1400
         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)
1401
         else (pre STEPS_TO_COOK))));
1402

    
1403
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1404
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1405
         then true
1406
         else 
1407
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1408
         then false
1409
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1410

    
1411
   SETUP = 
1412
      (if (1 = microwave_microwave_mode_logic_mode)
1413
         then true
1414
         else false);
1415

    
1416
   p32 = (true -> ((not (enable and 
1417
      (not KP_CLEAR))) or 
1418
      ((not ((KP_5 and 
1419
      (not (pre KP_5))) and 
1420
      ((not (KP_4 and 
1421
      (not (pre KP_4)))) and 
1422
      ((not (KP_3 and 
1423
      (not (pre KP_3)))) and 
1424
      ((not (KP_2 and 
1425
      (not (pre KP_2)))) and 
1426
      ((not (KP_1 and 
1427
      (not (pre KP_1)))) and 
1428
      (not (KP_0 and 
1429
      (not (pre KP_0)))))))))) or 
1430
      (RIGHT_DIGIT = 5))));
1431

    
1432
   enable = (true -> 
1433
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1434
         then true
1435
         else false));
1436

    
1437
   p28 = (true -> ((not (enable and 
1438
      (not KP_CLEAR))) or 
1439
      ((not ((KP_1 and 
1440
      (not (pre KP_1))) and 
1441
      (not (KP_0 and 
1442
      (not (pre KP_0)))))) or 
1443
      (RIGHT_DIGIT = 1))));
1444

    
1445
   p13 = ((not (enable and 
1446
      KP_CLEAR)) or 
1447
      (STEPS_TO_COOK = 0));
1448

    
1449
   p19 = (true -> ((not (enable and 
1450
      (not KP_CLEAR))) or 
1451
      (((((((((((KP_1 and 
1452
      (not (pre KP_1))) or 
1453
      (KP_2 and 
1454
      (not (pre KP_2)))) or 
1455
      (KP_3 and 
1456
      (not (pre KP_3)))) or 
1457
      (KP_4 and 
1458
      (not (pre KP_4)))) or 
1459
      (KP_5 and 
1460
      (not (pre KP_5)))) or 
1461
      (KP_6 and 
1462
      (not (pre KP_6)))) or 
1463
      (KP_7 and 
1464
      (not (pre KP_7)))) or 
1465
      (KP_8 and 
1466
      (not (pre KP_8)))) or 
1467
      (KP_9 and 
1468
      (not (pre KP_9)))) or 
1469
      (KP_0 and 
1470
      (not (pre KP_0)))) or 
1471
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1472

    
1473
   p29 = (true -> ((not (enable and 
1474
      (not KP_CLEAR))) or 
1475
      ((not ((KP_2 and 
1476
      (not (pre KP_2))) and 
1477
      ((not (KP_1 and 
1478
      (not (pre KP_1)))) and 
1479
      (not (KP_0 and 
1480
      (not (pre KP_0))))))) or 
1481
      (RIGHT_DIGIT = 2))));
1482

    
1483
   p34 = (true -> ((not (enable and 
1484
      (not KP_CLEAR))) or 
1485
      ((not ((KP_7 and 
1486
      (not (pre KP_7))) and 
1487
      ((not (KP_6 and 
1488
      (not (pre KP_6)))) and 
1489
      ((not (KP_5 and 
1490
      (not (pre KP_5)))) and 
1491
      ((not (KP_4 and 
1492
      (not (pre KP_4)))) and 
1493
      ((not (KP_3 and 
1494
      (not (pre KP_3)))) and 
1495
      ((not (KP_2 and 
1496
      (not (pre KP_2)))) and 
1497
      ((not (KP_1 and 
1498
      (not (pre KP_1)))) and 
1499
      (not (KP_0 and 
1500
      (not (pre KP_0)))))))))))) or 
1501
      (RIGHT_DIGIT = 7))));
1502

    
1503
   p12 = (enable or 
1504
      (STEPS_TO_COOK = 0));
1505

    
1506
   p21 = ((not (enable and 
1507
      KP_CLEAR)) or 
1508
      (MIDDLE_DIGIT = 0));
1509

    
1510
  --%PROPERTY OK=true;
1511
  --%MAIN;
1512

    
1513
tel
1514