Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

    
167

    
168

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

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

    
209
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
210

    
211
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
212

    
213
   OK = (enable or 
214
      (RIGHT_DIGIT = 0));
215

    
216

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

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

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

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

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

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

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

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

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

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

    
297

    
298

    
299
   p26 = ((not (enable and 
300
      KP_CLEAR)) or 
301
      (RIGHT_DIGIT = 0));
302

    
303
   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);
304

    
305
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
306

    
307

    
308
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
309

    
310

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

    
323
   COOKING = 
324
      (if (2 = microwave_microwave_mode_logic_mode)
325
         then true
326
         else false);
327

    
328
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
329

    
330
   START_PRESSED = (KP_START -> (KP_START and 
331
      (not (pre KP_START))));
332

    
333
   chart_microwave_mode_logic_start = 
334
      (if (START_PRESSED = false)
335
         then 0
336
         else 1);
337

    
338
   chart_microwave_mode_logic_clear_off = 
339
      (if (CLEAR_PRESSED = false)
340
         then 0
341
         else 1);
342

    
343
   chart_microwave_mode_logic_door_closed = 
344
      (if (DOOR_CLOSED = false)
345
         then 0
346
         else 1);
347

    
348
   chart_microwave_mode_logic____wakeup___ = true;
349

    
350
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
351
      (if (pre chart_microwave_mode_logic____wakeup___)
352
         then false
353
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
354

    
355
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
356

    
357
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
358

    
359
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
360

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

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

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

    
426
   
427
   
428
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
429

    
430
   
431
   
432
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
433
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
434
         then STEPS_TO_COOK
435
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
436

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

    
453
   
454
   
455
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
456
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
457
         then 
458
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
459
                  then 
460
                        
461
                        0
462
                  else chart_microwave_mode_logic_begin_state_states___root)
463
         else chart_microwave_mode_logic_begin_state_states___root);
464

    
465
   
466
   
467
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
468
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
469
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
470
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
471
   
472
   
473

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

    
489
   
490
   
491
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
492
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
493
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
494

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

    
510
   
511
   
512
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
513
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
514
         then 
515
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
516
                  then 
517
                        
518
                        4
519
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
520
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
521
   
522
   
523

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

    
537
   
538
   
539
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
540
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
541

    
542
   
543
   
544
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
545
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
546
         then 
547
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
548
                  then 
549
                        
550
                        1
551
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
552
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
553

    
554
   
555
   
556
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
557
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
558
         then 
559
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
560
                  then 1
561
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
562
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
563

    
564
   
565
   
566
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
567
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
568
         then 
569
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
570
                  then 
571
                        
572
                        2
573
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
574
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
575
   
576
   
577

    
578
   
579
   
580
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
581
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
582
         then 
583
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
584
                  then 2
585
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
586
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
587
   
588
   
589

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

    
601
   
602
   
603
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
604
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
605

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

    
621
   
622
   
623
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
624
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
625
         then 0
626
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
627

    
628
   
629
   
630
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
631
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
632
         then 
633
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
634
                  then 
635
                        
636
                        4
637
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
638
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
639
   
640
   
641

    
642
   
643
   
644
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
645
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
646
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
647

    
648
   
649
   
650
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
651
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
652
         then 
653
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
654
                  then 1
655
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
656
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
657

    
658
   
659
   
660
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
661
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
662
         then 
663
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
664
                  then 
665
                        
666
                        1
667
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
668
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
669

    
670
   
671
   
672
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
673
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
674
         then 
675
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
676
                  then 
677
                        
678
                        2
679
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
680
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
681
   
682
   
683

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

    
698
   
699
   
700
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
701
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
702
         then 
703
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
704
                  then 
705
                        
706
                        1
707
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
708
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
709

    
710
   
711
   
712
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
713
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
714
         then 
715
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
716
                  then 2
717
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
718
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
719

    
720
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
721
      (if (not 
722
         
723
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
724
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
725
         then 
726
               
727
               1
728
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
729

    
730
   
731
   
732
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
733
      
734
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
735
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
736
      
737
      
738
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
739
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
740

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

    
753
   
754
   
755
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
756
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
757
         then 
758
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
759
                  then 
760
                        
761
                        2
762
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
763
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
764
   
765
   
766

    
767
   
768
   
769
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
770
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
771
         then 
772
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
773
                  then 2
774
                  else chart_microwave_mode_logic_begin_state_outports_mode)
775
         else chart_microwave_mode_logic_begin_state_outports_mode);
776
   
777
   
778

    
779
   
780
   
781
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
782
      (
783
      
784
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
785
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
786
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
787

    
788
   
789
   
790
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
791
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
792
         then 
793
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
794
                  then 
795
                        
796
                        3
797
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
798
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
799
   
800
   
801

    
802
   
803
   
804
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
805
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
806
         then 
807
               
808
               4
809
         else chart_microwave_mode_logic_begin_state_states___root);
810
   
811
   
812

    
813
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
814

    
815

    
816
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
817

    
818
   p27 = (((not (enable and 
819
      (not KP_CLEAR))) or 
820
      ((not KP_0) or 
821
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
822
      (not KP_CLEAR))) or 
823
      ((not (KP_0 and 
824
      (not (pre KP_0)))) or 
825
      (RIGHT_DIGIT = 0))));
826

    
827
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
828

    
829
   KP_01 = KP_0;
830

    
831
   KP_11 = KP_1;
832

    
833
   KP_21 = KP_2;
834

    
835
   KP_31 = KP_3;
836

    
837
   KP_41 = KP_4;
838

    
839
   KP_51 = KP_5;
840

    
841
   KP_61 = KP_6;
842

    
843
   KP_71 = KP_7;
844

    
845
   KP_81 = KP_8;
846

    
847
   KP_91 = KP_9;
848

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

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

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

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

    
1211
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1212
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1213
         then true
1214
         else 
1215
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1216
         then false
1217
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1218

    
1219
   SETUP = 
1220
      (if (1 = microwave_microwave_mode_logic_mode)
1221
         then true
1222
         else false);
1223

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

    
1240
   enable = (true -> 
1241
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1242
         then true
1243
         else false));
1244

    
1245
   p28 = (true -> ((not (enable and 
1246
      (not KP_CLEAR))) or 
1247
      ((not ((KP_1 and 
1248
      (not (pre KP_1))) and 
1249
      (not (KP_0 and 
1250
      (not (pre KP_0)))))) or 
1251
      (RIGHT_DIGIT = 1))));
1252

    
1253

    
1254
   p29 = (true -> ((not (enable and 
1255
      (not KP_CLEAR))) or 
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 = 2))));
1263

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

    
1284

    
1285
  --%PROPERTY OK=true;
1286
  --%MAIN;
1287

    
1288
tel
1289