Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (44.8 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
   p25: bool; 
107
   p26: bool; 
108
   p27: bool; 
109
   p28: bool; 
110
   p29: bool; 
111
   p30: bool; 
112
   p31: bool; 
113
   p32: bool; 
114
   p33: bool; 
115
   p34: bool; 
116
   p35: bool; 
117
   p36: bool; 
118
   p37: bool; 
119
let 
120
   rlt__Arrow5 = (639 -> 
121
      (if (not (not SETUP))
122
         then 
123
               (if (MWI_FcnMaxI_In13 > 0)
124
                  then MWI_FcnMaxI_In13
125
                  else 0)
126
         else 639));
127

    
128
   rlt__Arrow4 = (639 -> 
129
      (if (not SUSPENDED)
130
         then 
131
               (if (MWI_FcnMaxI_In12 > 0)
132
                  then MWI_FcnMaxI_In12
133
                  else 0)
134
         else 639));
135

    
136
   rlt__Arrow3 = (639 -> 
137
      (if (not (not COOKING))
138
         then 
139
               (if (MWI_FcnMaxI_In16 > 0)
140
                  then MWI_FcnMaxI_In16
141
                  else 0)
142
         else 639));
143

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

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

    
160
   rlt__Arrow = (639 -> 
161
      (if (not SETUP)
162
         then 
163
               (if (MWI_FcnMaxI_In1 > 0)
164
                  then MWI_FcnMaxI_In1
165
                  else 0)
166
         else 639));
167

    
168

    
169

    
170
   p35 = (true -> ((not (enable and 
171
      (not KP_CLEAR))) or 
172
      ((not ((KP_8 and 
173
      (not (pre KP_8))) and 
174
      ((not (KP_7 and 
175
      (not (pre KP_7)))) and 
176
      ((not (KP_6 and 
177
      (not (pre KP_6)))) and 
178
      ((not (KP_5 and 
179
      (not (pre KP_5)))) and 
180
      ((not (KP_4 and 
181
      (not (pre KP_4)))) and 
182
      ((not (KP_3 and 
183
      (not (pre KP_3)))) and 
184
      ((not (KP_2 and 
185
      (not (pre KP_2)))) and 
186
      ((not (KP_1 and 
187
      (not (pre KP_1)))) and 
188
      (not (KP_0 and 
189
      (not (pre KP_0))))))))))))) or 
190
      (RIGHT_DIGIT = 8))));
191

    
192
   p33 = (true -> ((not (enable and 
193
      (not KP_CLEAR))) or 
194
      ((not ((KP_6 and 
195
      (not (pre KP_6))) and 
196
      ((not (KP_5 and 
197
      (not (pre KP_5)))) and 
198
      ((not (KP_4 and 
199
      (not (pre KP_4)))) and 
200
      ((not (KP_3 and 
201
      (not (pre KP_3)))) and 
202
      ((not (KP_2 and 
203
      (not (pre KP_2)))) and 
204
      ((not (KP_1 and 
205
      (not (pre KP_1)))) and 
206
      (not (KP_0 and 
207
      (not (pre KP_0))))))))))) or 
208
      (RIGHT_DIGIT = 6))));
209

    
210
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
211

    
212
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
213

    
214
   p25 = (enable or 
215
      (RIGHT_DIGIT = 0));
216

    
217

    
218
   p36 = (true -> ((not (enable and 
219
      (not KP_CLEAR))) or 
220
      ((not ((KP_9 and 
221
      (not (pre KP_9))) and 
222
      ((not (KP_8 and 
223
      (not (pre KP_8)))) and 
224
      ((not (KP_7 and 
225
      (not (pre KP_7)))) and 
226
      ((not (KP_6 and 
227
      (not (pre KP_6)))) and 
228
      ((not (KP_5 and 
229
      (not (pre KP_5)))) and 
230
      ((not (KP_4 and 
231
      (not (pre KP_4)))) and 
232
      ((not (KP_3 and 
233
      (not (pre KP_3)))) and 
234
      ((not (KP_2 and 
235
      (not (pre KP_2)))) and 
236
      ((not (KP_1 and 
237
      (not (pre KP_1)))) and 
238
      (not (KP_0 and 
239
      (not (pre KP_0)))))))))))))) or 
240
      (RIGHT_DIGIT = 9))));
241

    
242
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
243

    
244
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
245
      (not (pre KP_CLEAR))));
246

    
247
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
248

    
249
   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));
250

    
251
   SUSPENDED = 
252
      (if (3 = microwave_microwave_mode_logic_mode)
253
         then true
254
         else false);
255

    
256
   p31 = (true -> ((not (enable and 
257
      (not KP_CLEAR))) or 
258
      ((not ((KP_4 and 
259
      (not (pre KP_4))) and 
260
      ((not (KP_3 and 
261
      (not (pre KP_3)))) and 
262
      ((not (KP_2 and 
263
      (not (pre KP_2)))) and 
264
      ((not (KP_1 and 
265
      (not (pre KP_1)))) and 
266
      (not (KP_0 and 
267
      (not (pre KP_0))))))))) or 
268
      (RIGHT_DIGIT = 4))));
269

    
270
   p37 = (true -> ((not (enable and 
271
      (not KP_CLEAR))) or 
272
      (((((((((((KP_1 and 
273
      (not (pre KP_1))) or 
274
      (KP_2 and 
275
      (not (pre KP_2)))) or 
276
      (KP_3 and 
277
      (not (pre KP_3)))) or 
278
      (KP_4 and 
279
      (not (pre KP_4)))) or 
280
      (KP_5 and 
281
      (not (pre KP_5)))) or 
282
      (KP_6 and 
283
      (not (pre KP_6)))) or 
284
      (KP_7 and 
285
      (not (pre KP_7)))) or 
286
      (KP_8 and 
287
      (not (pre KP_8)))) or 
288
      (KP_9 and 
289
      (not (pre KP_9)))) or 
290
      (KP_0 and 
291
      (not (pre KP_0)))) or 
292
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
293

    
294
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
295

    
296
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
297

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

    
322

    
323
   p26 = ((not (enable and 
324
      KP_CLEAR)) or 
325
      (RIGHT_DIGIT = 0));
326

    
327
   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);
328

    
329
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
330

    
331

    
332
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
333

    
334

    
335
   p30 = (true -> ((not (enable and 
336
      (not KP_CLEAR))) or 
337
      ((not ((KP_3 and 
338
      (not (pre KP_3))) and 
339
      ((not (KP_2 and 
340
      (not (pre KP_2)))) and 
341
      ((not (KP_1 and 
342
      (not (pre KP_1)))) and 
343
      (not (KP_0 and 
344
      (not (pre KP_0)))))))) or 
345
      (RIGHT_DIGIT = 3))));
346

    
347
   COOKING = 
348
      (if (2 = microwave_microwave_mode_logic_mode)
349
         then true
350
         else false);
351

    
352
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
353

    
354
   START_PRESSED = (KP_START -> (KP_START and 
355
      (not (pre KP_START))));
356

    
357
   chart_microwave_mode_logic_start = 
358
      (if (START_PRESSED = false)
359
         then 0
360
         else 1);
361

    
362
   chart_microwave_mode_logic_clear_off = 
363
      (if (CLEAR_PRESSED = false)
364
         then 0
365
         else 1);
366

    
367
   chart_microwave_mode_logic_door_closed = 
368
      (if (DOOR_CLOSED = false)
369
         then 0
370
         else 1);
371

    
372
   chart_microwave_mode_logic____wakeup___ = true;
373

    
374
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
375
      (if (pre chart_microwave_mode_logic____wakeup___)
376
         then false
377
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
378

    
379
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
380

    
381
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
382

    
383
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
384

    
385
   chart_microwave_mode_logic_final_state_states___root = 
386
      (if chart_microwave_mode_logic____wakeup___
387
         then 
388
               (if chart_microwave_mode_logic_rlt_evtInitStep
389
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
390
                  else 
391
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
392
                  
393
                  
394
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
395
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
396
                  then 
397
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
398
                           then 
399
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
400
                                    then 
401
                                          
402
                                          3
403
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
404
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
405
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
406
         else chart_microwave_mode_logic_begin_state_states___root);
407

    
408
   chart_microwave_mode_logic_mode = 
409
      (if chart_microwave_mode_logic____wakeup___
410
         then 
411
               (if chart_microwave_mode_logic_rlt_evtInitStep
412
                  then 
413
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
414
                           then 1
415
                           else chart_microwave_mode_logic_begin_state_outports_mode)
416
                  else 
417
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
418
                  
419
                  
420
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
421
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
422
                  then 
423
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
424
                           then 
425
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
426
                                    then 3
427
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
428
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
429
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
430
         else chart_microwave_mode_logic_begin_state_outports_mode);
431

    
432
   chart_microwave_mode_logic_steps_remaining = 
433
      (if chart_microwave_mode_logic____wakeup___
434
         then 
435
               (if chart_microwave_mode_logic_rlt_evtInitStep
436
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
437
                  else 
438
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
439
                  
440
                  
441
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
442
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
443
                  then 
444
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
445
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
446
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
447
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
448
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
449

    
450
   
451
   
452
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
453

    
454
   
455
   
456
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
457
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
458
         then STEPS_TO_COOK
459
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
460

    
461
   
462
   
463
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
464
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
465
      (
466
      (if (chart_microwave_mode_logic_start <> 0)
467
         then true
468
         else false) and 
469
      
470
      (if (
471
         (if ((STEPS_TO_COOK > 0) = false)
472
            then 0
473
            else 1) <> 0)
474
         then true
475
         else false))));
476

    
477
   
478
   
479
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
480
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
481
         then 
482
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
483
                  then 
484
                        
485
                        0
486
                  else chart_microwave_mode_logic_begin_state_states___root)
487
         else chart_microwave_mode_logic_begin_state_states___root);
488

    
489
   
490
   
491
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
492
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
493
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
494
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
495
   
496
   
497

    
498
   
499
   
500
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
501
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
502
         then 
503
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
504
                  then 
505
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
506
                           then 3
507
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
508
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
509
         else chart_microwave_mode_logic_begin_state_outports_mode);
510
   
511
   
512

    
513
   
514
   
515
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
516
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
517
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
518

    
519
   
520
   
521
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
522
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
523
         then 
524
               (if 
525
                  
526
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
527
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
528
                  then 
529
                        
530
                        0
531
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
532
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
533

    
534
   
535
   
536
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
537
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
538
         then 
539
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
540
                  then 
541
                        
542
                        4
543
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
544
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
545
   
546
   
547

    
548
   
549
   
550
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
551
      ((
552
      (if (chart_microwave_mode_logic_start <> 0)
553
         then true
554
         else false) and 
555
      
556
      (if (chart_microwave_mode_logic_door_closed <> 0)
557
         then true
558
         else false)) and 
559
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
560

    
561
   
562
   
563
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
564
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
565

    
566
   
567
   
568
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
569
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
570
         then 
571
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
572
                  then 
573
                        
574
                        1
575
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
576
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
577

    
578
   
579
   
580
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
581
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
582
         then 
583
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
584
                  then 1
585
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
586
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
587

    
588
   
589
   
590
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
591
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
592
         then 
593
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
594
                  then 
595
                        
596
                        2
597
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
598
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
599
   
600
   
601

    
602
   
603
   
604
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
605
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
606
         then 
607
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
608
                  then 2
609
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
610
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
611
   
612
   
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
617
      (
618
      (if (chart_microwave_mode_logic_clear_off <> 0)
619
         then true
620
         else false) and 
621
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
622
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
623
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
624

    
625
   
626
   
627
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
628
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
629

    
630
   
631
   
632
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
633
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
634
         then 
635
               (if 
636
                  
637
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
638
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
639
                  then 
640
                        
641
                        0
642
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
643
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
644

    
645
   
646
   
647
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
648
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
649
         then 0
650
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
651

    
652
   
653
   
654
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
655
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
656
         then 
657
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
658
                  then 
659
                        
660
                        4
661
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
662
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
663
   
664
   
665

    
666
   
667
   
668
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
669
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
670
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
671

    
672
   
673
   
674
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
675
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
676
         then 
677
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
678
                  then 1
679
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
680
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
681

    
682
   
683
   
684
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
685
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
686
         then 
687
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
688
                  then 
689
                        
690
                        1
691
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
692
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
693

    
694
   
695
   
696
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
697
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
698
         then 
699
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
700
                  then 
701
                        
702
                        2
703
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
704
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
705
   
706
   
707

    
708
   
709
   
710
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
711
      ((
712
      (if (chart_microwave_mode_logic_clear_off <> 0)
713
         then true
714
         else false) or 
715
      (not 
716
      (if (chart_microwave_mode_logic_door_closed <> 0)
717
         then true
718
         else false))) and 
719
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
720
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
721

    
722
   
723
   
724
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
725
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
726
         then 
727
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
728
                  then 
729
                        
730
                        1
731
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
732
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
733

    
734
   
735
   
736
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
737
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
738
         then 
739
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
740
                  then 2
741
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
742
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
743

    
744
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
745
      (if (not 
746
         
747
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
748
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
749
         then 
750
               
751
               1
752
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
753

    
754
   
755
   
756
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
757
      
758
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
759
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
760
      
761
      
762
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
763
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
764

    
765
   
766
   
767
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
768
      (
769
      
770
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
771
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
772
      
773
      (if (chart_microwave_mode_logic_door_closed <> 0)
774
         then true
775
         else false)));
776

    
777
   
778
   
779
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
780
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
781
         then 
782
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
783
                  then 
784
                        
785
                        2
786
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
787
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
788
   
789
   
790

    
791
   
792
   
793
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
794
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
795
         then 
796
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
797
                  then 2
798
                  else chart_microwave_mode_logic_begin_state_outports_mode)
799
         else chart_microwave_mode_logic_begin_state_outports_mode);
800
   
801
   
802

    
803
   
804
   
805
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
806
      (
807
      
808
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
809
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
810
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
811

    
812
   
813
   
814
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
815
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
816
         then 
817
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
818
                  then 
819
                        
820
                        3
821
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
822
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
823
   
824
   
825

    
826
   
827
   
828
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
829
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
830
         then 
831
               
832
               4
833
         else chart_microwave_mode_logic_begin_state_states___root);
834
   
835
   
836

    
837
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
838

    
839

    
840
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
841

    
842
   p27 = (((not (enable and 
843
      (not KP_CLEAR))) or 
844
      ((not KP_0) or 
845
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
846
      (not KP_CLEAR))) or 
847
      ((not (KP_0 and 
848
      (not (pre KP_0)))) or 
849
      (RIGHT_DIGIT = 0))));
850

    
851
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
852

    
853
   KP_01 = KP_0;
854

    
855
   KP_11 = KP_1;
856

    
857
   KP_21 = KP_2;
858

    
859
   KP_31 = KP_3;
860

    
861
   KP_41 = KP_4;
862

    
863
   KP_51 = KP_5;
864

    
865
   KP_61 = KP_6;
866

    
867
   KP_71 = KP_7;
868

    
869
   KP_81 = KP_8;
870

    
871
   KP_91 = KP_9;
872

    
873
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
874
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
875
         then 
876
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
877
                  then 0
878
                  else 
879
               (if KP_CLEAR
880
                  then 0
881
                  else 
882
               (if 
883
                  (if (
884
                     (if (KP_01 and 
885
                        (not (pre KP_01)))
886
                        then 0
887
                        else 
888
                     (if (KP_11 and 
889
                        (not (pre KP_11)))
890
                        then 1
891
                        else 
892
                     (if (KP_21 and 
893
                        (not (pre KP_21)))
894
                        then 2
895
                        else 
896
                     (if (KP_31 and 
897
                        (not (pre KP_31)))
898
                        then 3
899
                        else 
900
                     (if (KP_41 and 
901
                        (not (pre KP_41)))
902
                        then 4
903
                        else 
904
                     (if (KP_51 and 
905
                        (not (pre KP_51)))
906
                        then 5
907
                        else 
908
                     (if (KP_61 and 
909
                        (not (pre KP_61)))
910
                        then 6
911
                        else 
912
                     (if (KP_71 and 
913
                        (not (pre KP_71)))
914
                        then 7
915
                        else 
916
                     (if (KP_81 and 
917
                        (not (pre KP_81)))
918
                        then 8
919
                        else 
920
                     (if (KP_91 and 
921
                        (not (pre KP_91)))
922
                        then 9
923
                        else 10)))))))))) <= 9)
924
                     then true
925
                     else false)
926
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
927
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
928
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
929

    
930
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
931
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
932
         then 
933
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
934
                  then 0
935
                  else 
936
               (if KP_CLEAR
937
                  then 0
938
                  else 
939
               (if 
940
                  (if (
941
                     (if (KP_01 and 
942
                        (not (pre KP_01)))
943
                        then 0
944
                        else 
945
                     (if (KP_11 and 
946
                        (not (pre KP_11)))
947
                        then 1
948
                        else 
949
                     (if (KP_21 and 
950
                        (not (pre KP_21)))
951
                        then 2
952
                        else 
953
                     (if (KP_31 and 
954
                        (not (pre KP_31)))
955
                        then 3
956
                        else 
957
                     (if (KP_41 and 
958
                        (not (pre KP_41)))
959
                        then 4
960
                        else 
961
                     (if (KP_51 and 
962
                        (not (pre KP_51)))
963
                        then 5
964
                        else 
965
                     (if (KP_61 and 
966
                        (not (pre KP_61)))
967
                        then 6
968
                        else 
969
                     (if (KP_71 and 
970
                        (not (pre KP_71)))
971
                        then 7
972
                        else 
973
                     (if (KP_81 and 
974
                        (not (pre KP_81)))
975
                        then 8
976
                        else 
977
                     (if (KP_91 and 
978
                        (not (pre KP_91)))
979
                        then 9
980
                        else 10)))))))))) <= 9)
981
                     then true
982
                     else false)
983
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
984
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
985
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
986

    
987
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
988
      (if KP_CLEAR
989
         then 0
990
         else 
991
      (if 
992
         (if (
993
            (if KP_01
994
               then 0
995
               else 
996
            (if KP_11
997
               then 1
998
               else 
999
            (if KP_21
1000
               then 2
1001
               else 
1002
            (if KP_31
1003
               then 3
1004
               else 
1005
            (if KP_41
1006
               then 4
1007
               else 
1008
            (if KP_51
1009
               then 5
1010
               else 
1011
            (if KP_61
1012
               then 6
1013
               else 
1014
            (if KP_71
1015
               then 7
1016
               else 
1017
            (if KP_81
1018
               then 8
1019
               else 
1020
            (if KP_91
1021
               then 9
1022
               else 10)))))))))) <= 9)
1023
            then true
1024
            else false)
1025
         then 
1026
               (if KP_01
1027
                  then 0
1028
                  else 
1029
               (if KP_11
1030
                  then 1
1031
                  else 
1032
               (if KP_21
1033
                  then 2
1034
                  else 
1035
               (if KP_31
1036
                  then 3
1037
                  else 
1038
               (if KP_41
1039
                  then 4
1040
                  else 
1041
               (if KP_51
1042
                  then 5
1043
                  else 
1044
               (if KP_61
1045
                  then 6
1046
                  else 
1047
               (if KP_71
1048
                  then 7
1049
                  else 
1050
               (if KP_81
1051
                  then 8
1052
                  else 
1053
               (if KP_91
1054
                  then 9
1055
                  else 10))))))))))
1056
         else 0)) -> 
1057
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1058
         then 
1059
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1060
                  then 
1061
                        (if KP_CLEAR
1062
                           then 0
1063
                           else 
1064
                        (if 
1065
                           (if (
1066
                              (if KP_01
1067
                                 then 0
1068
                                 else 
1069
                              (if KP_11
1070
                                 then 1
1071
                                 else 
1072
                              (if KP_21
1073
                                 then 2
1074
                                 else 
1075
                              (if KP_31
1076
                                 then 3
1077
                                 else 
1078
                              (if KP_41
1079
                                 then 4
1080
                                 else 
1081
                              (if KP_51
1082
                                 then 5
1083
                                 else 
1084
                              (if KP_61
1085
                                 then 6
1086
                                 else 
1087
                              (if KP_71
1088
                                 then 7
1089
                                 else 
1090
                              (if KP_81
1091
                                 then 8
1092
                                 else 
1093
                              (if KP_91
1094
                                 then 9
1095
                                 else 10)))))))))) <= 9)
1096
                              then true
1097
                              else false)
1098
                           then 
1099
                                 (if KP_01
1100
                                    then 0
1101
                                    else 
1102
                                 (if KP_11
1103
                                    then 1
1104
                                    else 
1105
                                 (if KP_21
1106
                                    then 2
1107
                                    else 
1108
                                 (if KP_31
1109
                                    then 3
1110
                                    else 
1111
                                 (if KP_41
1112
                                    then 4
1113
                                    else 
1114
                                 (if KP_51
1115
                                    then 5
1116
                                    else 
1117
                                 (if KP_61
1118
                                    then 6
1119
                                    else 
1120
                                 (if KP_71
1121
                                    then 7
1122
                                    else 
1123
                                 (if KP_81
1124
                                    then 8
1125
                                    else 
1126
                                 (if KP_91
1127
                                    then 9
1128
                                    else 10))))))))))
1129
                           else 0))
1130
                  else 
1131
               (if KP_CLEAR
1132
                  then 0
1133
                  else 
1134
               (if 
1135
                  (if (
1136
                     (if (KP_01 and 
1137
                        (not (pre KP_01)))
1138
                        then 0
1139
                        else 
1140
                     (if (KP_11 and 
1141
                        (not (pre KP_11)))
1142
                        then 1
1143
                        else 
1144
                     (if (KP_21 and 
1145
                        (not (pre KP_21)))
1146
                        then 2
1147
                        else 
1148
                     (if (KP_31 and 
1149
                        (not (pre KP_31)))
1150
                        then 3
1151
                        else 
1152
                     (if (KP_41 and 
1153
                        (not (pre KP_41)))
1154
                        then 4
1155
                        else 
1156
                     (if (KP_51 and 
1157
                        (not (pre KP_51)))
1158
                        then 5
1159
                        else 
1160
                     (if (KP_61 and 
1161
                        (not (pre KP_61)))
1162
                        then 6
1163
                        else 
1164
                     (if (KP_71 and 
1165
                        (not (pre KP_71)))
1166
                        then 7
1167
                        else 
1168
                     (if (KP_81 and 
1169
                        (not (pre KP_81)))
1170
                        then 8
1171
                        else 
1172
                     (if (KP_91 and 
1173
                        (not (pre KP_91)))
1174
                        then 9
1175
                        else 10)))))))))) <= 9)
1176
                     then true
1177
                     else false)
1178
                  then 
1179
                        (if (KP_01 and 
1180
                           (not (pre KP_01)))
1181
                           then 0
1182
                           else 
1183
                        (if (KP_11 and 
1184
                           (not (pre KP_11)))
1185
                           then 1
1186
                           else 
1187
                        (if (KP_21 and 
1188
                           (not (pre KP_21)))
1189
                           then 2
1190
                           else 
1191
                        (if (KP_31 and 
1192
                           (not (pre KP_31)))
1193
                           then 3
1194
                           else 
1195
                        (if (KP_41 and 
1196
                           (not (pre KP_41)))
1197
                           then 4
1198
                           else 
1199
                        (if (KP_51 and 
1200
                           (not (pre KP_51)))
1201
                           then 5
1202
                           else 
1203
                        (if (KP_61 and 
1204
                           (not (pre KP_61)))
1205
                           then 6
1206
                           else 
1207
                        (if (KP_71 and 
1208
                           (not (pre KP_71)))
1209
                           then 7
1210
                           else 
1211
                        (if (KP_81 and 
1212
                           (not (pre KP_81)))
1213
                           then 8
1214
                           else 
1215
                        (if (KP_91 and 
1216
                           (not (pre KP_91)))
1217
                           then 9
1218
                           else 10))))))))))
1219
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1220
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1221

    
1222
   STEPS_TO_COOK = (
1223
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1224
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1225
         then 0
1226
         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)) -> 
1227
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1228
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1229
         then 0
1230
         else 
1231
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1232
         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)
1233
         else (pre STEPS_TO_COOK))));
1234

    
1235
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1236
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1237
         then true
1238
         else 
1239
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1240
         then false
1241
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1242

    
1243
   SETUP = 
1244
      (if (1 = microwave_microwave_mode_logic_mode)
1245
         then true
1246
         else false);
1247

    
1248
   p32 = (true -> ((not (enable and 
1249
      (not KP_CLEAR))) or 
1250
      ((not ((KP_5 and 
1251
      (not (pre KP_5))) and 
1252
      ((not (KP_4 and 
1253
      (not (pre KP_4)))) and 
1254
      ((not (KP_3 and 
1255
      (not (pre KP_3)))) and 
1256
      ((not (KP_2 and 
1257
      (not (pre KP_2)))) and 
1258
      ((not (KP_1 and 
1259
      (not (pre KP_1)))) and 
1260
      (not (KP_0 and 
1261
      (not (pre KP_0)))))))))) or 
1262
      (RIGHT_DIGIT = 5))));
1263

    
1264
   enable = (true -> 
1265
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1266
         then true
1267
         else false));
1268

    
1269
   p28 = (true -> ((not (enable and 
1270
      (not KP_CLEAR))) or 
1271
      ((not ((KP_1 and 
1272
      (not (pre KP_1))) and 
1273
      (not (KP_0 and 
1274
      (not (pre KP_0)))))) or 
1275
      (RIGHT_DIGIT = 1))));
1276

    
1277

    
1278
   p29 = (true -> ((not (enable and 
1279
      (not KP_CLEAR))) or 
1280
      ((not ((KP_2 and 
1281
      (not (pre KP_2))) and 
1282
      ((not (KP_1 and 
1283
      (not (pre KP_1)))) and 
1284
      (not (KP_0 and 
1285
      (not (pre KP_0))))))) or 
1286
      (RIGHT_DIGIT = 2))));
1287

    
1288
   p34 = (true -> ((not (enable and 
1289
      (not KP_CLEAR))) or 
1290
      ((not ((KP_7 and 
1291
      (not (pre KP_7))) and 
1292
      ((not (KP_6 and 
1293
      (not (pre KP_6)))) and 
1294
      ((not (KP_5 and 
1295
      (not (pre KP_5)))) and 
1296
      ((not (KP_4 and 
1297
      (not (pre KP_4)))) and 
1298
      ((not (KP_3 and 
1299
      (not (pre KP_3)))) and 
1300
      ((not (KP_2 and 
1301
      (not (pre KP_2)))) and 
1302
      ((not (KP_1 and 
1303
      (not (pre KP_1)))) and 
1304
      (not (KP_0 and 
1305
      (not (pre KP_0)))))))))))) or 
1306
      (RIGHT_DIGIT = 7))));
1307

    
1308

    
1309
  --%PROPERTY OK=true;
1310
  --%MAIN;
1311

    
1312
tel
1313