Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / all files / microwave30.lus @ b8dc00eb

History | View | Annotate | Download (44.1 KB)

1
--@ ensures OK;
2
node top(KP_START: bool; 
3
      KP_CLEAR: bool; 
4
      KP_0: bool; 
5
      KP_1: bool; 
6
      KP_2: bool; 
7
      KP_3: bool; 
8
      KP_4: bool; 
9
      KP_5: bool; 
10
      KP_6: bool; 
11
      KP_7: bool; 
12
      KP_8: bool; 
13
      KP_9: bool; 
14
      DOOR_CLOSED: bool
15
) returns (OK:bool);
16

    
17
   
18
var
19
   LEFT_DIGIT: int; 
20
      SETUP: bool; 
21
      COOKING: bool; 
22
      SUSPENDED: bool; 
23
      START_PRESSED: bool; 
24
      CLEAR_PRESSED: bool; 
25
      MIDDLE_DIGIT: int; 
26
      RIGHT_DIGIT: int; 
27
      enable: bool; 
28
      STEPS_TO_COOK: int;
29
      
30
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; 
31
   KP_01: bool; 
32
   KP_11: bool; 
33
   KP_21: bool; 
34
   KP_31: bool; 
35
   KP_41: bool; 
36
   KP_51: bool; 
37
   KP_61: bool; 
38
   KP_71: bool; 
39
   KP_81: bool; 
40
   KP_91: bool; 
41
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; 
42
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; 
43
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; 
44
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; 
45
   rlt__Arrow5: int; 
46
   rlt__Arrow4: int; 
47
   rlt__Arrow3: int; 
48
   rlt__Arrow2: int; 
49
   rlt__Arrow1: int; 
50
   rlt__Arrow: int; 
51
   chart_microwave_mode_logic_start: int; 
52
   chart_microwave_mode_logic_clear_off: int; 
53
   chart_microwave_mode_logic_door_closed: int; 
54
   chart_microwave_mode_logic____wakeup___: bool; 
55
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; 
56
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
57
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
58
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; 
59
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; 
60
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; 
61
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; 
62
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
63
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; 
64
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; 
65
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; 
66
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; 
67
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; 
68
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; 
69
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; 
70
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; 
71
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; 
72
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; 
73
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; 
74
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; 
75
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; 
76
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
77
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; 
78
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; 
79
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
80
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; 
81
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; 
82
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
83
   rlt_eval_microwave_mode_logic_rlt_fired_0: bool; 
84
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; 
85
   rlt_eval_microwave_mode_logic_rlt_fired_1: bool; 
86
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; 
87
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; 
88
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; 
89
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; 
90
   chart_microwave_mode_logic_rlt_evtInitStep: bool; 
91
   chart_microwave_mode_logic_begin_state_states___root: int; 
92
   chart_microwave_mode_logic_begin_state_outports_mode: int; 
93
   chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; 
94
   chart_microwave_mode_logic_final_state_states___root: int; 
95
   chart_microwave_mode_logic_mode: int; 
96
   chart_microwave_mode_logic_steps_remaining: int; 
97
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; 
98
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; 
99
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; 
100
   microwave_microwave_mode_logic_mode: int; 
101
   MWI_FcnMaxI_In16: int; 
102
   MWI_FcnMaxI_In15: int; 
103
   MWI_FcnMaxI_In13: int; 
104
   MWI_FcnMaxI_In12: int; 
105
   MWI_FcnMaxI_In11: int; 
106
   MWI_FcnMaxI_In1: int; 
107
   p28: bool; 
108
   p29: bool; 
109
   p30: bool; 
110
   p31: bool; 
111
   p32: bool; 
112
   p33: bool; 
113
   p34: bool; 
114
   p35: bool; 
115
   p36: bool; 
116
   p37: bool; 
117
let 
118
   rlt__Arrow5 = (639 -> 
119
      (if (not (not SETUP))
120
         then 
121
               (if (MWI_FcnMaxI_In13 > 0)
122
                  then MWI_FcnMaxI_In13
123
                  else 0)
124
         else 639));
125

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

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

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

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

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

    
166

    
167

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

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

    
208
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
209

    
210
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
211

    
212

    
213

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

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

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

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

    
245
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) - ((((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10) * 10));
246

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

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

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

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

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

    
294

    
295

    
296

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

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

    
301

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

    
304

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

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

    
322
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
323

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

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

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

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

    
342
   chart_microwave_mode_logic____wakeup___ = true;
343

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
807
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
808

    
809

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

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

    
821
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
822

    
823
   KP_01 = KP_0;
824

    
825
   KP_11 = KP_1;
826

    
827
   KP_21 = KP_2;
828

    
829
   KP_31 = KP_3;
830

    
831
   KP_41 = KP_4;
832

    
833
   KP_51 = KP_5;
834

    
835
   KP_61 = KP_6;
836

    
837
   KP_71 = KP_7;
838

    
839
   KP_81 = KP_8;
840

    
841
   KP_91 = KP_9;
842

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

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

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

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

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

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

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

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

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

    
1247

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

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

    
1278

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

    
1282
tel
1283