Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

    
170

    
171
   OK = (true -> (((not (enable and 
172
      (not KP_CLEAR))) or 
173
      (not ((((((((((KP_1 and 
174
      (not (pre KP_1))) or 
175
      (KP_2 and 
176
      (not (pre KP_2)))) or 
177
      (KP_3 and 
178
      (not (pre KP_3)))) or 
179
      (KP_4 and 
180
      (not (pre KP_4)))) or 
181
      (KP_5 and 
182
      (not (pre KP_5)))) or 
183
      (KP_6 and 
184
      (not (pre KP_6)))) or 
185
      (KP_7 and 
186
      (not (pre KP_7)))) or 
187
      (KP_8 and 
188
      (not (pre KP_8)))) or 
189
      (KP_9 and 
190
      (not (pre KP_9)))) or 
191
      (KP_0 and 
192
      (not (pre KP_0)))))) or 
193
--      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
194
      (MIDDLE_DIGIT = (((STEPS_TO_COOK div 1) mod 60) div 10))));
195

    
196
   p35 = (true -> ((not (enable and 
197
      (not KP_CLEAR))) or 
198
      ((not ((KP_8 and 
199
      (not (pre KP_8))) and 
200
      ((not (KP_7 and 
201
      (not (pre KP_7)))) and 
202
      ((not (KP_6 and 
203
      (not (pre KP_6)))) and 
204
      ((not (KP_5 and 
205
      (not (pre KP_5)))) and 
206
      ((not (KP_4 and 
207
      (not (pre KP_4)))) and 
208
      ((not (KP_3 and 
209
      (not (pre KP_3)))) and 
210
      ((not (KP_2 and 
211
      (not (pre KP_2)))) and 
212
      ((not (KP_1 and 
213
      (not (pre KP_1)))) and 
214
      (not (KP_0 and 
215
      (not (pre KP_0))))))))))))) or 
216
      (RIGHT_DIGIT = 8))));
217

    
218
   p33 = (true -> ((not (enable and 
219
      (not KP_CLEAR))) or 
220
      ((not ((KP_6 and 
221
      (not (pre KP_6))) and 
222
      ((not (KP_5 and 
223
      (not (pre KP_5)))) and 
224
      ((not (KP_4 and 
225
      (not (pre KP_4)))) and 
226
      ((not (KP_3 and 
227
      (not (pre KP_3)))) and 
228
      ((not (KP_2 and 
229
      (not (pre KP_2)))) and 
230
      ((not (KP_1 and 
231
      (not (pre KP_1)))) and 
232
      (not (KP_0 and 
233
      (not (pre KP_0))))))))))) or 
234
      (RIGHT_DIGIT = 6))));
235

    
236
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
237

    
238
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
239

    
240
   p25 = (enable or 
241
      (RIGHT_DIGIT = 0));
242

    
243

    
244
   p36 = (true -> ((not (enable and 
245
      (not KP_CLEAR))) or 
246
      ((not ((KP_9 and 
247
      (not (pre KP_9))) and 
248
      ((not (KP_8 and 
249
      (not (pre KP_8)))) and 
250
      ((not (KP_7 and 
251
      (not (pre KP_7)))) and 
252
      ((not (KP_6 and 
253
      (not (pre KP_6)))) and 
254
      ((not (KP_5 and 
255
      (not (pre KP_5)))) and 
256
      ((not (KP_4 and 
257
      (not (pre KP_4)))) and 
258
      ((not (KP_3 and 
259
      (not (pre KP_3)))) and 
260
      ((not (KP_2 and 
261
      (not (pre KP_2)))) and 
262
      ((not (KP_1 and 
263
      (not (pre KP_1)))) and 
264
      (not (KP_0 and 
265
      (not (pre KP_0)))))))))))))) or 
266
      (RIGHT_DIGIT = 9))));
267

    
268
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
269

    
270
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
271
      (not (pre KP_CLEAR))));
272

    
273
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
274

    
275
   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));
276

    
277
   SUSPENDED = 
278
      (if (3 = microwave_microwave_mode_logic_mode)
279
         then true
280
         else false);
281

    
282
   p31 = (true -> ((not (enable and 
283
      (not KP_CLEAR))) or 
284
      ((not ((KP_4 and 
285
      (not (pre KP_4))) and 
286
      ((not (KP_3 and 
287
      (not (pre KP_3)))) and 
288
      ((not (KP_2 and 
289
      (not (pre KP_2)))) and 
290
      ((not (KP_1 and 
291
      (not (pre KP_1)))) and 
292
      (not (KP_0 and 
293
      (not (pre KP_0))))))))) or 
294
      (RIGHT_DIGIT = 4))));
295

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

    
320
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
321

    
322
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
323

    
324
   p24 = (true -> (((not (enable and 
325
      (not KP_CLEAR))) or 
326
      ((((((((((KP_1 and 
327
      (not (pre KP_1))) or 
328
      (KP_2 and 
329
      (not (pre KP_2)))) or 
330
      (KP_3 and 
331
      (not (pre KP_3)))) or 
332
      (KP_4 and 
333
      (not (pre KP_4)))) or 
334
      (KP_5 and 
335
      (not (pre KP_5)))) or 
336
      (KP_6 and 
337
      (not (pre KP_6)))) or 
338
      (KP_7 and 
339
      (not (pre KP_7)))) or 
340
      (KP_8 and 
341
      (not (pre KP_8)))) or 
342
      (KP_9 and 
343
      (not (pre KP_9)))) or 
344
      (KP_0 and 
345
      (not (pre KP_0))))) or 
346
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
347

    
348

    
349
   p26 = ((not (enable and 
350
      KP_CLEAR)) or 
351
      (RIGHT_DIGIT = 0));
352

    
353
   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);
354

    
355
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
356

    
357

    
358
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
359

    
360

    
361
   p30 = (true -> ((not (enable and 
362
      (not KP_CLEAR))) or 
363
      ((not ((KP_3 and 
364
      (not (pre KP_3))) and 
365
      ((not (KP_2 and 
366
      (not (pre KP_2)))) and 
367
      ((not (KP_1 and 
368
      (not (pre KP_1)))) and 
369
      (not (KP_0 and 
370
      (not (pre KP_0)))))))) or 
371
      (RIGHT_DIGIT = 3))));
372

    
373
   COOKING = 
374
      (if (2 = microwave_microwave_mode_logic_mode)
375
         then true
376
         else false);
377

    
378
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
379

    
380
   START_PRESSED = (KP_START -> (KP_START and 
381
      (not (pre KP_START))));
382

    
383
   chart_microwave_mode_logic_start = 
384
      (if (START_PRESSED = false)
385
         then 0
386
         else 1);
387

    
388
   chart_microwave_mode_logic_clear_off = 
389
      (if (CLEAR_PRESSED = false)
390
         then 0
391
         else 1);
392

    
393
   chart_microwave_mode_logic_door_closed = 
394
      (if (DOOR_CLOSED = false)
395
         then 0
396
         else 1);
397

    
398
   chart_microwave_mode_logic____wakeup___ = true;
399

    
400
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
401
      (if (pre chart_microwave_mode_logic____wakeup___)
402
         then false
403
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
404

    
405
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
406

    
407
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
408

    
409
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
410

    
411
   chart_microwave_mode_logic_final_state_states___root = 
412
      (if chart_microwave_mode_logic____wakeup___
413
         then 
414
               (if chart_microwave_mode_logic_rlt_evtInitStep
415
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
416
                  else 
417
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
418
                  
419
                  
420
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
421
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
422
                  then 
423
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
424
                           then 
425
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
426
                                    then 
427
                                          
428
                                          3
429
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
430
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
431
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
432
         else chart_microwave_mode_logic_begin_state_states___root);
433

    
434
   chart_microwave_mode_logic_mode = 
435
      (if chart_microwave_mode_logic____wakeup___
436
         then 
437
               (if chart_microwave_mode_logic_rlt_evtInitStep
438
                  then 
439
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
440
                           then 1
441
                           else chart_microwave_mode_logic_begin_state_outports_mode)
442
                  else 
443
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
444
                  
445
                  
446
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
447
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
448
                  then 
449
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
450
                           then 
451
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
452
                                    then 3
453
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
454
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
455
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
456
         else chart_microwave_mode_logic_begin_state_outports_mode);
457

    
458
   chart_microwave_mode_logic_steps_remaining = 
459
      (if chart_microwave_mode_logic____wakeup___
460
         then 
461
               (if chart_microwave_mode_logic_rlt_evtInitStep
462
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
463
                  else 
464
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
465
                  
466
                  
467
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
468
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
469
                  then 
470
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
471
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
472
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
473
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
474
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
475

    
476
   
477
   
478
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
479

    
480
   
481
   
482
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
483
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
484
         then STEPS_TO_COOK
485
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
486

    
487
   
488
   
489
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
490
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
491
      (
492
      (if (chart_microwave_mode_logic_start <> 0)
493
         then true
494
         else false) and 
495
      
496
      (if (
497
         (if ((STEPS_TO_COOK > 0) = false)
498
            then 0
499
            else 1) <> 0)
500
         then true
501
         else false))));
502

    
503
   
504
   
505
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
506
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
507
         then 
508
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
509
                  then 
510
                        
511
                        0
512
                  else chart_microwave_mode_logic_begin_state_states___root)
513
         else chart_microwave_mode_logic_begin_state_states___root);
514

    
515
   
516
   
517
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
518
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
519
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
520
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
521
   
522
   
523

    
524
   
525
   
526
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
527
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
528
         then 
529
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
530
                  then 
531
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
532
                           then 3
533
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
534
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
535
         else chart_microwave_mode_logic_begin_state_outports_mode);
536
   
537
   
538

    
539
   
540
   
541
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
542
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
543
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
544

    
545
   
546
   
547
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
548
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
549
         then 
550
               (if 
551
                  
552
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
553
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
554
                  then 
555
                        
556
                        0
557
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
558
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
559

    
560
   
561
   
562
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
563
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
564
         then 
565
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
566
                  then 
567
                        
568
                        4
569
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
570
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
571
   
572
   
573

    
574
   
575
   
576
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
577
      ((
578
      (if (chart_microwave_mode_logic_start <> 0)
579
         then true
580
         else false) and 
581
      
582
      (if (chart_microwave_mode_logic_door_closed <> 0)
583
         then true
584
         else false)) and 
585
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
586

    
587
   
588
   
589
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
590
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
591

    
592
   
593
   
594
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
595
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
596
         then 
597
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
598
                  then 
599
                        
600
                        1
601
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
602
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
603

    
604
   
605
   
606
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
607
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
608
         then 
609
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
610
                  then 1
611
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
612
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
617
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
618
         then 
619
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
620
                  then 
621
                        
622
                        2
623
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
624
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
625
   
626
   
627

    
628
   
629
   
630
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
631
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
632
         then 
633
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
634
                  then 2
635
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
636
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
637
   
638
   
639

    
640
   
641
   
642
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
643
      (
644
      (if (chart_microwave_mode_logic_clear_off <> 0)
645
         then true
646
         else false) and 
647
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
648
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
649
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
650

    
651
   
652
   
653
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
654
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
655

    
656
   
657
   
658
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
659
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
660
         then 
661
               (if 
662
                  
663
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
664
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
665
                  then 
666
                        
667
                        0
668
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
669
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
670

    
671
   
672
   
673
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
674
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
675
         then 0
676
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
677

    
678
   
679
   
680
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
681
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
682
         then 
683
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
684
                  then 
685
                        
686
                        4
687
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
688
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
689
   
690
   
691

    
692
   
693
   
694
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
695
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
696
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
697

    
698
   
699
   
700
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
701
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
702
         then 
703
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
704
                  then 1
705
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
706
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
707

    
708
   
709
   
710
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
711
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
712
         then 
713
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
714
                  then 
715
                        
716
                        1
717
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
718
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
719

    
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
723
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
724
         then 
725
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
726
                  then 
727
                        
728
                        2
729
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
730
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
731
   
732
   
733

    
734
   
735
   
736
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
737
      ((
738
      (if (chart_microwave_mode_logic_clear_off <> 0)
739
         then true
740
         else false) or 
741
      (not 
742
      (if (chart_microwave_mode_logic_door_closed <> 0)
743
         then true
744
         else false))) and 
745
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
746
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
747

    
748
   
749
   
750
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
751
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
752
         then 
753
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
754
                  then 
755
                        
756
                        1
757
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
758
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
759

    
760
   
761
   
762
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
763
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
764
         then 
765
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
766
                  then 2
767
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
768
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
769

    
770
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
771
      (if (not 
772
         
773
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
774
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
775
         then 
776
               
777
               1
778
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
779

    
780
   
781
   
782
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
783
      
784
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
785
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
786
      
787
      
788
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
789
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
790

    
791
   
792
   
793
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
794
      (
795
      
796
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
797
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
798
      
799
      (if (chart_microwave_mode_logic_door_closed <> 0)
800
         then true
801
         else false)));
802

    
803
   
804
   
805
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
806
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
807
         then 
808
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
809
                  then 
810
                        
811
                        2
812
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
813
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
814
   
815
   
816

    
817
   
818
   
819
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
820
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
821
         then 
822
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
823
                  then 2
824
                  else chart_microwave_mode_logic_begin_state_outports_mode)
825
         else chart_microwave_mode_logic_begin_state_outports_mode);
826
   
827
   
828

    
829
   
830
   
831
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
832
      (
833
      
834
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
835
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
836
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
837

    
838
   
839
   
840
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
841
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
842
         then 
843
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
844
                  then 
845
                        
846
                        3
847
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
848
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
849
   
850
   
851

    
852
   
853
   
854
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
855
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
856
         then 
857
               
858
               4
859
         else chart_microwave_mode_logic_begin_state_states___root);
860
   
861
   
862

    
863
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
864

    
865

    
866
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
867

    
868
   p27 = (((not (enable and 
869
      (not KP_CLEAR))) or 
870
      ((not KP_0) or 
871
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
872
      (not KP_CLEAR))) or 
873
      ((not (KP_0 and 
874
      (not (pre KP_0)))) or 
875
      (RIGHT_DIGIT = 0))));
876

    
877
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
878

    
879
   KP_01 = KP_0;
880

    
881
   KP_11 = KP_1;
882

    
883
   KP_21 = KP_2;
884

    
885
   KP_31 = KP_3;
886

    
887
   KP_41 = KP_4;
888

    
889
   KP_51 = KP_5;
890

    
891
   KP_61 = KP_6;
892

    
893
   KP_71 = KP_7;
894

    
895
   KP_81 = KP_8;
896

    
897
   KP_91 = KP_9;
898

    
899
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_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_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
953
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
954
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
955

    
956
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
957
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
958
         then 
959
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
960
                  then 0
961
                  else 
962
               (if KP_CLEAR
963
                  then 0
964
                  else 
965
               (if 
966
                  (if (
967
                     (if (KP_01 and 
968
                        (not (pre KP_01)))
969
                        then 0
970
                        else 
971
                     (if (KP_11 and 
972
                        (not (pre KP_11)))
973
                        then 1
974
                        else 
975
                     (if (KP_21 and 
976
                        (not (pre KP_21)))
977
                        then 2
978
                        else 
979
                     (if (KP_31 and 
980
                        (not (pre KP_31)))
981
                        then 3
982
                        else 
983
                     (if (KP_41 and 
984
                        (not (pre KP_41)))
985
                        then 4
986
                        else 
987
                     (if (KP_51 and 
988
                        (not (pre KP_51)))
989
                        then 5
990
                        else 
991
                     (if (KP_61 and 
992
                        (not (pre KP_61)))
993
                        then 6
994
                        else 
995
                     (if (KP_71 and 
996
                        (not (pre KP_71)))
997
                        then 7
998
                        else 
999
                     (if (KP_81 and 
1000
                        (not (pre KP_81)))
1001
                        then 8
1002
                        else 
1003
                     (if (KP_91 and 
1004
                        (not (pre KP_91)))
1005
                        then 9
1006
                        else 10)))))))))) <= 9)
1007
                     then true
1008
                     else false)
1009
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1010
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1011
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1012

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

    
1248
   STEPS_TO_COOK = (
1249
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1250
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1251
         then 0
1252
         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)) -> 
1253
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1254
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1255
         then 0
1256
         else 
1257
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1258
         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)
1259
         else (pre STEPS_TO_COOK))));
1260

    
1261
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1262
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1263
         then true
1264
         else 
1265
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1266
         then false
1267
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1268

    
1269
   SETUP = 
1270
      (if (1 = microwave_microwave_mode_logic_mode)
1271
         then true
1272
         else false);
1273

    
1274
   p32 = (true -> ((not (enable and 
1275
      (not KP_CLEAR))) or 
1276
      ((not ((KP_5 and 
1277
      (not (pre KP_5))) and 
1278
      ((not (KP_4 and 
1279
      (not (pre KP_4)))) and 
1280
      ((not (KP_3 and 
1281
      (not (pre KP_3)))) and 
1282
      ((not (KP_2 and 
1283
      (not (pre KP_2)))) and 
1284
      ((not (KP_1 and 
1285
      (not (pre KP_1)))) and 
1286
      (not (KP_0 and 
1287
      (not (pre KP_0)))))))))) or 
1288
      (RIGHT_DIGIT = 5))));
1289

    
1290
   enable = (true -> 
1291
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1292
         then true
1293
         else false));
1294

    
1295
   p28 = (true -> ((not (enable and 
1296
      (not KP_CLEAR))) or 
1297
      ((not ((KP_1 and 
1298
      (not (pre KP_1))) and 
1299
      (not (KP_0 and 
1300
      (not (pre KP_0)))))) or 
1301
      (RIGHT_DIGIT = 1))));
1302

    
1303

    
1304
   p29 = (true -> ((not (enable and 
1305
      (not KP_CLEAR))) or 
1306
      ((not ((KP_2 and 
1307
      (not (pre KP_2))) and 
1308
      ((not (KP_1 and 
1309
      (not (pre KP_1)))) and 
1310
      (not (KP_0 and 
1311
      (not (pre KP_0))))))) or 
1312
      (RIGHT_DIGIT = 2))));
1313

    
1314
   p34 = (true -> ((not (enable and 
1315
      (not KP_CLEAR))) or 
1316
      ((not ((KP_7 and 
1317
      (not (pre KP_7))) and 
1318
      ((not (KP_6 and 
1319
      (not (pre KP_6)))) and 
1320
      ((not (KP_5 and 
1321
      (not (pre KP_5)))) and 
1322
      ((not (KP_4 and 
1323
      (not (pre KP_4)))) and 
1324
      ((not (KP_3 and 
1325
      (not (pre KP_3)))) and 
1326
      ((not (KP_2 and 
1327
      (not (pre KP_2)))) and 
1328
      ((not (KP_1 and 
1329
      (not (pre KP_1)))) and 
1330
      (not (KP_0 and 
1331
      (not (pre KP_0)))))))))))) or 
1332
      (RIGHT_DIGIT = 7))));
1333

    
1334

    
1335
  --%PROPERTY OK=true;
1336
  --%MAIN;
1337

    
1338
tel
1339