Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

    
166

    
167

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

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

    
208
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
209

    
210
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
211

    
212

    
213

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

    
238
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
239

    
240
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
241
      (not (pre KP_CLEAR))));
242

    
243
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
244

    
245
   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));
246

    
247
   SUSPENDED = 
248
      (if (3 = microwave_microwave_mode_logic_mode)
249
         then true
250
         else false);
251

    
252
   p31 = (true -> ((not (enable and 
253
      (not KP_CLEAR))) or 
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 = 4))));
265

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

    
290
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
291

    
292
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
293

    
294

    
295

    
296
   OK = ((not (enable and 
297
      KP_CLEAR)) or 
298
      (RIGHT_DIGIT = 0));
299

    
300
   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);
301

    
302
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
303

    
304

    
305
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
306

    
307

    
308
   p30 = (true -> ((not (enable and 
309
      (not KP_CLEAR))) or 
310
      ((not ((KP_3 and 
311
      (not (pre KP_3))) and 
312
      ((not (KP_2 and 
313
      (not (pre KP_2)))) and 
314
      ((not (KP_1 and 
315
      (not (pre KP_1)))) and 
316
      (not (KP_0 and 
317
      (not (pre KP_0)))))))) or 
318
      (RIGHT_DIGIT = 3))));
319

    
320
   COOKING = 
321
      (if (2 = microwave_microwave_mode_logic_mode)
322
         then true
323
         else false);
324

    
325
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
326

    
327
   START_PRESSED = (KP_START -> (KP_START and 
328
      (not (pre KP_START))));
329

    
330
   chart_microwave_mode_logic_start = 
331
      (if (START_PRESSED = false)
332
         then 0
333
         else 1);
334

    
335
   chart_microwave_mode_logic_clear_off = 
336
      (if (CLEAR_PRESSED = false)
337
         then 0
338
         else 1);
339

    
340
   chart_microwave_mode_logic_door_closed = 
341
      (if (DOOR_CLOSED = false)
342
         then 0
343
         else 1);
344

    
345
   chart_microwave_mode_logic____wakeup___ = true;
346

    
347
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
348
      (if (pre chart_microwave_mode_logic____wakeup___)
349
         then false
350
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
351

    
352
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
353

    
354
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
355

    
356
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
357

    
358
   chart_microwave_mode_logic_final_state_states___root = 
359
      (if chart_microwave_mode_logic____wakeup___
360
         then 
361
               (if chart_microwave_mode_logic_rlt_evtInitStep
362
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
363
                  else 
364
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
365
                  
366
                  
367
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
368
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
369
                  then 
370
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
371
                           then 
372
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
373
                                    then 
374
                                          
375
                                          3
376
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
377
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
378
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
379
         else chart_microwave_mode_logic_begin_state_states___root);
380

    
381
   chart_microwave_mode_logic_mode = 
382
      (if chart_microwave_mode_logic____wakeup___
383
         then 
384
               (if chart_microwave_mode_logic_rlt_evtInitStep
385
                  then 
386
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
387
                           then 1
388
                           else chart_microwave_mode_logic_begin_state_outports_mode)
389
                  else 
390
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
391
                  
392
                  
393
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
394
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
395
                  then 
396
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
397
                           then 
398
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
399
                                    then 3
400
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
401
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
402
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
403
         else chart_microwave_mode_logic_begin_state_outports_mode);
404

    
405
   chart_microwave_mode_logic_steps_remaining = 
406
      (if chart_microwave_mode_logic____wakeup___
407
         then 
408
               (if chart_microwave_mode_logic_rlt_evtInitStep
409
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
410
                  else 
411
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
412
                  
413
                  
414
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
415
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
416
                  then 
417
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
418
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
419
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
420
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
421
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
422

    
423
   
424
   
425
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
426

    
427
   
428
   
429
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
430
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
431
         then STEPS_TO_COOK
432
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
433

    
434
   
435
   
436
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
437
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
438
      (
439
      (if (chart_microwave_mode_logic_start <> 0)
440
         then true
441
         else false) and 
442
      
443
      (if (
444
         (if ((STEPS_TO_COOK > 0) = false)
445
            then 0
446
            else 1) <> 0)
447
         then true
448
         else false))));
449

    
450
   
451
   
452
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
453
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
454
         then 
455
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
456
                  then 
457
                        
458
                        0
459
                  else chart_microwave_mode_logic_begin_state_states___root)
460
         else chart_microwave_mode_logic_begin_state_states___root);
461

    
462
   
463
   
464
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
465
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
466
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
467
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
468
   
469
   
470

    
471
   
472
   
473
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
474
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
475
         then 
476
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
477
                  then 
478
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
479
                           then 3
480
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
481
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
482
         else chart_microwave_mode_logic_begin_state_outports_mode);
483
   
484
   
485

    
486
   
487
   
488
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
489
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
490
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
491

    
492
   
493
   
494
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
495
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
496
         then 
497
               (if 
498
                  
499
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
500
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
501
                  then 
502
                        
503
                        0
504
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
505
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
506

    
507
   
508
   
509
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
510
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
511
         then 
512
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
513
                  then 
514
                        
515
                        4
516
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
517
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
518
   
519
   
520

    
521
   
522
   
523
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
524
      ((
525
      (if (chart_microwave_mode_logic_start <> 0)
526
         then true
527
         else false) and 
528
      
529
      (if (chart_microwave_mode_logic_door_closed <> 0)
530
         then true
531
         else false)) and 
532
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
533

    
534
   
535
   
536
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
537
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
538

    
539
   
540
   
541
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
542
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
543
         then 
544
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
545
                  then 
546
                        
547
                        1
548
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
549
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
550

    
551
   
552
   
553
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
554
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
555
         then 
556
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
557
                  then 1
558
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
559
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
560

    
561
   
562
   
563
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
564
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
565
         then 
566
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
567
                  then 
568
                        
569
                        2
570
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
571
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
572
   
573
   
574

    
575
   
576
   
577
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
578
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
579
         then 
580
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
581
                  then 2
582
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
583
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
584
   
585
   
586

    
587
   
588
   
589
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
590
      (
591
      (if (chart_microwave_mode_logic_clear_off <> 0)
592
         then true
593
         else false) and 
594
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
595
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
596
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
597

    
598
   
599
   
600
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
601
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
602

    
603
   
604
   
605
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
606
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
607
         then 
608
               (if 
609
                  
610
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
611
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
612
                  then 
613
                        
614
                        0
615
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
616
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
617

    
618
   
619
   
620
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
621
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
622
         then 0
623
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
624

    
625
   
626
   
627
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
628
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
629
         then 
630
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
631
                  then 
632
                        
633
                        4
634
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
635
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
636
   
637
   
638

    
639
   
640
   
641
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
642
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
643
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
644

    
645
   
646
   
647
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
648
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
649
         then 
650
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
651
                  then 1
652
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
653
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
654

    
655
   
656
   
657
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
658
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
659
         then 
660
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
661
                  then 
662
                        
663
                        1
664
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
665
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
666

    
667
   
668
   
669
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
670
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
671
         then 
672
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
673
                  then 
674
                        
675
                        2
676
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
677
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
678
   
679
   
680

    
681
   
682
   
683
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
684
      ((
685
      (if (chart_microwave_mode_logic_clear_off <> 0)
686
         then true
687
         else false) or 
688
      (not 
689
      (if (chart_microwave_mode_logic_door_closed <> 0)
690
         then true
691
         else false))) and 
692
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
693
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
694

    
695
   
696
   
697
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
698
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
699
         then 
700
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
701
                  then 
702
                        
703
                        1
704
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
705
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
706

    
707
   
708
   
709
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
710
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
711
         then 
712
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
713
                  then 2
714
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
715
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
716

    
717
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
718
      (if (not 
719
         
720
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
721
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
722
         then 
723
               
724
               1
725
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
726

    
727
   
728
   
729
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
730
      
731
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
732
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
733
      
734
      
735
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
736
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
737

    
738
   
739
   
740
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
741
      (
742
      
743
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
744
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
745
      
746
      (if (chart_microwave_mode_logic_door_closed <> 0)
747
         then true
748
         else false)));
749

    
750
   
751
   
752
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
753
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
754
         then 
755
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
756
                  then 
757
                        
758
                        2
759
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
760
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
761
   
762
   
763

    
764
   
765
   
766
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
767
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
768
         then 
769
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
770
                  then 2
771
                  else chart_microwave_mode_logic_begin_state_outports_mode)
772
         else chart_microwave_mode_logic_begin_state_outports_mode);
773
   
774
   
775

    
776
   
777
   
778
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
779
      (
780
      
781
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
782
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
783
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
784

    
785
   
786
   
787
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
788
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
789
         then 
790
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
791
                  then 
792
                        
793
                        3
794
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
795
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
796
   
797
   
798

    
799
   
800
   
801
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
802
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
803
         then 
804
               
805
               4
806
         else chart_microwave_mode_logic_begin_state_states___root);
807
   
808
   
809

    
810
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
811

    
812

    
813
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
814

    
815
   p27 = (((not (enable and 
816
      (not KP_CLEAR))) or 
817
      ((not KP_0) or 
818
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
819
      (not KP_CLEAR))) or 
820
      ((not (KP_0 and 
821
      (not (pre KP_0)))) or 
822
      (RIGHT_DIGIT = 0))));
823

    
824
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
825

    
826
   KP_01 = KP_0;
827

    
828
   KP_11 = KP_1;
829

    
830
   KP_21 = KP_2;
831

    
832
   KP_31 = KP_3;
833

    
834
   KP_41 = KP_4;
835

    
836
   KP_51 = KP_5;
837

    
838
   KP_61 = KP_6;
839

    
840
   KP_71 = KP_7;
841

    
842
   KP_81 = KP_8;
843

    
844
   KP_91 = KP_9;
845

    
846
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
847
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
848
         then 
849
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
850
                  then 0
851
                  else 
852
               (if KP_CLEAR
853
                  then 0
854
                  else 
855
               (if 
856
                  (if (
857
                     (if (KP_01 and 
858
                        (not (pre KP_01)))
859
                        then 0
860
                        else 
861
                     (if (KP_11 and 
862
                        (not (pre KP_11)))
863
                        then 1
864
                        else 
865
                     (if (KP_21 and 
866
                        (not (pre KP_21)))
867
                        then 2
868
                        else 
869
                     (if (KP_31 and 
870
                        (not (pre KP_31)))
871
                        then 3
872
                        else 
873
                     (if (KP_41 and 
874
                        (not (pre KP_41)))
875
                        then 4
876
                        else 
877
                     (if (KP_51 and 
878
                        (not (pre KP_51)))
879
                        then 5
880
                        else 
881
                     (if (KP_61 and 
882
                        (not (pre KP_61)))
883
                        then 6
884
                        else 
885
                     (if (KP_71 and 
886
                        (not (pre KP_71)))
887
                        then 7
888
                        else 
889
                     (if (KP_81 and 
890
                        (not (pre KP_81)))
891
                        then 8
892
                        else 
893
                     (if (KP_91 and 
894
                        (not (pre KP_91)))
895
                        then 9
896
                        else 10)))))))))) <= 9)
897
                     then true
898
                     else false)
899
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
900
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
901
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
902

    
903
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
904
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
905
         then 
906
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
907
                  then 0
908
                  else 
909
               (if KP_CLEAR
910
                  then 0
911
                  else 
912
               (if 
913
                  (if (
914
                     (if (KP_01 and 
915
                        (not (pre KP_01)))
916
                        then 0
917
                        else 
918
                     (if (KP_11 and 
919
                        (not (pre KP_11)))
920
                        then 1
921
                        else 
922
                     (if (KP_21 and 
923
                        (not (pre KP_21)))
924
                        then 2
925
                        else 
926
                     (if (KP_31 and 
927
                        (not (pre KP_31)))
928
                        then 3
929
                        else 
930
                     (if (KP_41 and 
931
                        (not (pre KP_41)))
932
                        then 4
933
                        else 
934
                     (if (KP_51 and 
935
                        (not (pre KP_51)))
936
                        then 5
937
                        else 
938
                     (if (KP_61 and 
939
                        (not (pre KP_61)))
940
                        then 6
941
                        else 
942
                     (if (KP_71 and 
943
                        (not (pre KP_71)))
944
                        then 7
945
                        else 
946
                     (if (KP_81 and 
947
                        (not (pre KP_81)))
948
                        then 8
949
                        else 
950
                     (if (KP_91 and 
951
                        (not (pre KP_91)))
952
                        then 9
953
                        else 10)))))))))) <= 9)
954
                     then true
955
                     else false)
956
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
957
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
958
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
959

    
960
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
961
      (if KP_CLEAR
962
         then 0
963
         else 
964
      (if 
965
         (if (
966
            (if KP_01
967
               then 0
968
               else 
969
            (if KP_11
970
               then 1
971
               else 
972
            (if KP_21
973
               then 2
974
               else 
975
            (if KP_31
976
               then 3
977
               else 
978
            (if KP_41
979
               then 4
980
               else 
981
            (if KP_51
982
               then 5
983
               else 
984
            (if KP_61
985
               then 6
986
               else 
987
            (if KP_71
988
               then 7
989
               else 
990
            (if KP_81
991
               then 8
992
               else 
993
            (if KP_91
994
               then 9
995
               else 10)))))))))) <= 9)
996
            then true
997
            else false)
998
         then 
999
               (if KP_01
1000
                  then 0
1001
                  else 
1002
               (if KP_11
1003
                  then 1
1004
                  else 
1005
               (if KP_21
1006
                  then 2
1007
                  else 
1008
               (if KP_31
1009
                  then 3
1010
                  else 
1011
               (if KP_41
1012
                  then 4
1013
                  else 
1014
               (if KP_51
1015
                  then 5
1016
                  else 
1017
               (if KP_61
1018
                  then 6
1019
                  else 
1020
               (if KP_71
1021
                  then 7
1022
                  else 
1023
               (if KP_81
1024
                  then 8
1025
                  else 
1026
               (if KP_91
1027
                  then 9
1028
                  else 10))))))))))
1029
         else 0)) -> 
1030
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1031
         then 
1032
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1033
                  then 
1034
                        (if KP_CLEAR
1035
                           then 0
1036
                           else 
1037
                        (if 
1038
                           (if (
1039
                              (if KP_01
1040
                                 then 0
1041
                                 else 
1042
                              (if KP_11
1043
                                 then 1
1044
                                 else 
1045
                              (if KP_21
1046
                                 then 2
1047
                                 else 
1048
                              (if KP_31
1049
                                 then 3
1050
                                 else 
1051
                              (if KP_41
1052
                                 then 4
1053
                                 else 
1054
                              (if KP_51
1055
                                 then 5
1056
                                 else 
1057
                              (if KP_61
1058
                                 then 6
1059
                                 else 
1060
                              (if KP_71
1061
                                 then 7
1062
                                 else 
1063
                              (if KP_81
1064
                                 then 8
1065
                                 else 
1066
                              (if KP_91
1067
                                 then 9
1068
                                 else 10)))))))))) <= 9)
1069
                              then true
1070
                              else false)
1071
                           then 
1072
                                 (if KP_01
1073
                                    then 0
1074
                                    else 
1075
                                 (if KP_11
1076
                                    then 1
1077
                                    else 
1078
                                 (if KP_21
1079
                                    then 2
1080
                                    else 
1081
                                 (if KP_31
1082
                                    then 3
1083
                                    else 
1084
                                 (if KP_41
1085
                                    then 4
1086
                                    else 
1087
                                 (if KP_51
1088
                                    then 5
1089
                                    else 
1090
                                 (if KP_61
1091
                                    then 6
1092
                                    else 
1093
                                 (if KP_71
1094
                                    then 7
1095
                                    else 
1096
                                 (if KP_81
1097
                                    then 8
1098
                                    else 
1099
                                 (if KP_91
1100
                                    then 9
1101
                                    else 10))))))))))
1102
                           else 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 
1152
                        (if (KP_01 and 
1153
                           (not (pre KP_01)))
1154
                           then 0
1155
                           else 
1156
                        (if (KP_11 and 
1157
                           (not (pre KP_11)))
1158
                           then 1
1159
                           else 
1160
                        (if (KP_21 and 
1161
                           (not (pre KP_21)))
1162
                           then 2
1163
                           else 
1164
                        (if (KP_31 and 
1165
                           (not (pre KP_31)))
1166
                           then 3
1167
                           else 
1168
                        (if (KP_41 and 
1169
                           (not (pre KP_41)))
1170
                           then 4
1171
                           else 
1172
                        (if (KP_51 and 
1173
                           (not (pre KP_51)))
1174
                           then 5
1175
                           else 
1176
                        (if (KP_61 and 
1177
                           (not (pre KP_61)))
1178
                           then 6
1179
                           else 
1180
                        (if (KP_71 and 
1181
                           (not (pre KP_71)))
1182
                           then 7
1183
                           else 
1184
                        (if (KP_81 and 
1185
                           (not (pre KP_81)))
1186
                           then 8
1187
                           else 
1188
                        (if (KP_91 and 
1189
                           (not (pre KP_91)))
1190
                           then 9
1191
                           else 10))))))))))
1192
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1193
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1194

    
1195
   STEPS_TO_COOK = (
1196
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1197
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1198
         then 0
1199
         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)) -> 
1200
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1201
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1202
         then 0
1203
         else 
1204
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1205
         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)
1206
         else (pre STEPS_TO_COOK))));
1207

    
1208
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1209
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1210
         then true
1211
         else 
1212
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1213
         then false
1214
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1215

    
1216
   SETUP = 
1217
      (if (1 = microwave_microwave_mode_logic_mode)
1218
         then true
1219
         else false);
1220

    
1221
   p32 = (true -> ((not (enable and 
1222
      (not KP_CLEAR))) or 
1223
      ((not ((KP_5 and 
1224
      (not (pre KP_5))) and 
1225
      ((not (KP_4 and 
1226
      (not (pre KP_4)))) and 
1227
      ((not (KP_3 and 
1228
      (not (pre KP_3)))) and 
1229
      ((not (KP_2 and 
1230
      (not (pre KP_2)))) and 
1231
      ((not (KP_1 and 
1232
      (not (pre KP_1)))) and 
1233
      (not (KP_0 and 
1234
      (not (pre KP_0)))))))))) or 
1235
      (RIGHT_DIGIT = 5))));
1236

    
1237
   enable = (true -> 
1238
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1239
         then true
1240
         else false));
1241

    
1242
   p28 = (true -> ((not (enable and 
1243
      (not KP_CLEAR))) or 
1244
      ((not ((KP_1 and 
1245
      (not (pre KP_1))) and 
1246
      (not (KP_0 and 
1247
      (not (pre KP_0)))))) or 
1248
      (RIGHT_DIGIT = 1))));
1249

    
1250

    
1251
   p29 = (true -> ((not (enable and 
1252
      (not KP_CLEAR))) or 
1253
      ((not ((KP_2 and 
1254
      (not (pre KP_2))) and 
1255
      ((not (KP_1 and 
1256
      (not (pre KP_1)))) and 
1257
      (not (KP_0 and 
1258
      (not (pre KP_0))))))) or 
1259
      (RIGHT_DIGIT = 2))));
1260

    
1261
   p34 = (true -> ((not (enable and 
1262
      (not KP_CLEAR))) or 
1263
      ((not ((KP_7 and 
1264
      (not (pre KP_7))) and 
1265
      ((not (KP_6 and 
1266
      (not (pre KP_6)))) and 
1267
      ((not (KP_5 and 
1268
      (not (pre KP_5)))) and 
1269
      ((not (KP_4 and 
1270
      (not (pre KP_4)))) and 
1271
      ((not (KP_3 and 
1272
      (not (pre KP_3)))) and 
1273
      ((not (KP_2 and 
1274
      (not (pre KP_2)))) and 
1275
      ((not (KP_1 and 
1276
      (not (pre KP_1)))) and 
1277
      (not (KP_0 and 
1278
      (not (pre KP_0)))))))))))) or 
1279
      (RIGHT_DIGIT = 7))));
1280

    
1281

    
1282
  --%PROPERTY OK=true;
1283
  --%MAIN;
1284

    
1285
tel
1286