Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / kind_fmcad08 / large / microwave30.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
   p28: bool; 
107
   p29: bool; 
108
   p30: bool; 
109
   p31: bool; 
110
   p32: bool; 
111
   p33: bool; 
112
   p34: bool; 
113
   p35: bool; 
114
   p36: bool; 
115
   p37: bool; 
116
let 
117
   rlt__Arrow5 = (639 -> 
118
      (if (not (not SETUP))
119
         then 
120
               (if (MWI_FcnMaxI_In13 > 0)
121
                  then MWI_FcnMaxI_In13
122
                  else 0)
123
         else 639));
124

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

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

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

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

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

    
165

    
166

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

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

    
207
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
208

    
209
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
210

    
211

    
212

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

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

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

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

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

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

    
251
   p31 = (true -> ((not (enable and 
252
      (not KP_CLEAR))) or 
253
      ((not ((KP_4 and 
254
      (not (pre KP_4))) and 
255
      ((not (KP_3 and 
256
      (not (pre KP_3)))) and 
257
      ((not (KP_2 and 
258
      (not (pre KP_2)))) and 
259
      ((not (KP_1 and 
260
      (not (pre KP_1)))) and 
261
      (not (KP_0 and 
262
      (not (pre KP_0))))))))) or 
263
      (RIGHT_DIGIT = 4))));
264

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

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

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

    
293

    
294

    
295

    
296
   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);
297

    
298
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
299

    
300

    
301
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
302

    
303

    
304
   p30 = (true -> ((not (enable and 
305
      (not KP_CLEAR))) or 
306
      ((not ((KP_3 and 
307
      (not (pre KP_3))) and 
308
      ((not (KP_2 and 
309
      (not (pre KP_2)))) and 
310
      ((not (KP_1 and 
311
      (not (pre KP_1)))) and 
312
      (not (KP_0 and 
313
      (not (pre KP_0)))))))) or 
314
      (RIGHT_DIGIT = 3))));
315

    
316
   COOKING = 
317
      (if (2 = microwave_microwave_mode_logic_mode)
318
         then true
319
         else false);
320

    
321
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
322

    
323
   START_PRESSED = (KP_START -> (KP_START and 
324
      (not (pre KP_START))));
325

    
326
   chart_microwave_mode_logic_start = 
327
      (if (START_PRESSED = false)
328
         then 0
329
         else 1);
330

    
331
   chart_microwave_mode_logic_clear_off = 
332
      (if (CLEAR_PRESSED = false)
333
         then 0
334
         else 1);
335

    
336
   chart_microwave_mode_logic_door_closed = 
337
      (if (DOOR_CLOSED = false)
338
         then 0
339
         else 1);
340

    
341
   chart_microwave_mode_logic____wakeup___ = true;
342

    
343
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
344
      (if (pre chart_microwave_mode_logic____wakeup___)
345
         then false
346
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
347

    
348
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
349

    
350
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
351

    
352
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
353

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

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

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

    
419
   
420
   
421
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
422

    
423
   
424
   
425
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
426
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
427
         then STEPS_TO_COOK
428
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
429

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

    
446
   
447
   
448
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
449
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
450
         then 
451
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
452
                  then 
453
                        
454
                        0
455
                  else chart_microwave_mode_logic_begin_state_states___root)
456
         else chart_microwave_mode_logic_begin_state_states___root);
457

    
458
   
459
   
460
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
461
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
462
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
463
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
464
   
465
   
466

    
467
   
468
   
469
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
470
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
471
         then 
472
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
473
                  then 
474
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
475
                           then 3
476
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
477
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
478
         else chart_microwave_mode_logic_begin_state_outports_mode);
479
   
480
   
481

    
482
   
483
   
484
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
485
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
486
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
487

    
488
   
489
   
490
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
491
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
492
         then 
493
               (if 
494
                  
495
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
496
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
497
                  then 
498
                        
499
                        0
500
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
501
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
502

    
503
   
504
   
505
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
506
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
507
         then 
508
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
509
                  then 
510
                        
511
                        4
512
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
513
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
514
   
515
   
516

    
517
   
518
   
519
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
520
      ((
521
      (if (chart_microwave_mode_logic_start <> 0)
522
         then true
523
         else false) and 
524
      
525
      (if (chart_microwave_mode_logic_door_closed <> 0)
526
         then true
527
         else false)) and 
528
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
529

    
530
   
531
   
532
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
533
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
534

    
535
   
536
   
537
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
538
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
539
         then 
540
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
541
                  then 
542
                        
543
                        1
544
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
545
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
546

    
547
   
548
   
549
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
550
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
551
         then 
552
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
553
                  then 1
554
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
555
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
556

    
557
   
558
   
559
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
560
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
561
         then 
562
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
563
                  then 
564
                        
565
                        2
566
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
567
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
568
   
569
   
570

    
571
   
572
   
573
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
574
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
575
         then 
576
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
577
                  then 2
578
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
579
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
580
   
581
   
582

    
583
   
584
   
585
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
586
      (
587
      (if (chart_microwave_mode_logic_clear_off <> 0)
588
         then true
589
         else false) and 
590
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
591
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
592
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
593

    
594
   
595
   
596
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
597
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
598

    
599
   
600
   
601
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
602
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
603
         then 
604
               (if 
605
                  
606
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
607
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
608
                  then 
609
                        
610
                        0
611
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
612
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
617
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
618
         then 0
619
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
620

    
621
   
622
   
623
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
624
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
625
         then 
626
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
627
                  then 
628
                        
629
                        4
630
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
631
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
632
   
633
   
634

    
635
   
636
   
637
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
638
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
639
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
640

    
641
   
642
   
643
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
644
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
645
         then 
646
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
647
                  then 1
648
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
649
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
650

    
651
   
652
   
653
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
654
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
655
         then 
656
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
657
                  then 
658
                        
659
                        1
660
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
661
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
662

    
663
   
664
   
665
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
666
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
667
         then 
668
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
669
                  then 
670
                        
671
                        2
672
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
673
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
674
   
675
   
676

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

    
691
   
692
   
693
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
694
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
695
         then 
696
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
697
                  then 
698
                        
699
                        1
700
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
701
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
702

    
703
   
704
   
705
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
706
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
707
         then 
708
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
709
                  then 2
710
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
711
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
712

    
713
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
714
      (if (not 
715
         
716
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
717
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
718
         then 
719
               
720
               1
721
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
722

    
723
   
724
   
725
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
726
      
727
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
728
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
729
      
730
      
731
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
732
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
733

    
734
   
735
   
736
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
737
      (
738
      
739
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
740
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
741
      
742
      (if (chart_microwave_mode_logic_door_closed <> 0)
743
         then true
744
         else false)));
745

    
746
   
747
   
748
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
749
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
750
         then 
751
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
752
                  then 
753
                        
754
                        2
755
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
756
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
757
   
758
   
759

    
760
   
761
   
762
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
763
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
764
         then 
765
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
766
                  then 2
767
                  else chart_microwave_mode_logic_begin_state_outports_mode)
768
         else chart_microwave_mode_logic_begin_state_outports_mode);
769
   
770
   
771

    
772
   
773
   
774
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
775
      (
776
      
777
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
778
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
779
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
780

    
781
   
782
   
783
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
784
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
785
         then 
786
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
787
                  then 
788
                        
789
                        3
790
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
791
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
792
   
793
   
794

    
795
   
796
   
797
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
798
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
799
         then 
800
               
801
               4
802
         else chart_microwave_mode_logic_begin_state_states___root);
803
   
804
   
805

    
806
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
807

    
808

    
809
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
810

    
811
   OK = (((not (enable and 
812
      (not KP_CLEAR))) or 
813
      ((not KP_0) or 
814
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
815
      (not KP_CLEAR))) or 
816
      ((not (KP_0 and 
817
      (not (pre KP_0)))) or 
818
      (RIGHT_DIGIT = 0))));
819

    
820
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
821

    
822
   KP_01 = KP_0;
823

    
824
   KP_11 = KP_1;
825

    
826
   KP_21 = KP_2;
827

    
828
   KP_31 = KP_3;
829

    
830
   KP_41 = KP_4;
831

    
832
   KP_51 = KP_5;
833

    
834
   KP_61 = KP_6;
835

    
836
   KP_71 = KP_7;
837

    
838
   KP_81 = KP_8;
839

    
840
   KP_91 = KP_9;
841

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

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

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

    
1191
   STEPS_TO_COOK = (
1192
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1193
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1194
         then 0
1195
         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)) -> 
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 
1200
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1201
         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)
1202
         else (pre STEPS_TO_COOK))));
1203

    
1204
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1205
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1206
         then true
1207
         else 
1208
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1209
         then false
1210
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1211

    
1212
   SETUP = 
1213
      (if (1 = microwave_microwave_mode_logic_mode)
1214
         then true
1215
         else false);
1216

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

    
1233
   enable = (true -> 
1234
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1235
         then true
1236
         else false));
1237

    
1238
   p28 = (true -> ((not (enable and 
1239
      (not KP_CLEAR))) or 
1240
      ((not ((KP_1 and 
1241
      (not (pre KP_1))) and 
1242
      (not (KP_0 and 
1243
      (not (pre KP_0)))))) or 
1244
      (RIGHT_DIGIT = 1))));
1245

    
1246

    
1247
   p29 = (true -> ((not (enable and 
1248
      (not KP_CLEAR))) or 
1249
      ((not ((KP_2 and 
1250
      (not (pre KP_2))) and 
1251
      ((not (KP_1 and 
1252
      (not (pre KP_1)))) and 
1253
      (not (KP_0 and 
1254
      (not (pre KP_0))))))) or 
1255
      (RIGHT_DIGIT = 2))));
1256

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

    
1277

    
1278
  --%PROPERTY OK=true;
1279
  --%MAIN;
1280

    
1281
tel
1282