Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (49.7 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
   p8: bool; 
108
   p9: bool; 
109
   p10: bool; 
110
   p11: bool; 
111
   p12: bool; 
112
   p13: bool; 
113
   p14: bool; 
114
   p15: bool; 
115
   p16: bool; 
116
   p17: bool; 
117
   p18: bool; 
118
   p19: bool; 
119
   p20: bool; 
120
   p21: bool; 
121
   p22: bool; 
122
   p23: bool; 
123
   p24: bool; 
124
   p25: bool; 
125
   p26: bool; 
126
   p27: bool; 
127
   p28: bool; 
128
   p29: bool; 
129
   p30: bool; 
130
   p31: bool; 
131
   p32: bool; 
132
   p33: bool; 
133
   p34: bool; 
134
   p35: bool; 
135
   p36: bool; 
136
   p37: bool; 
137
let 
138
   rlt__Arrow5 = (639 -> 
139
      (if (not (not SETUP))
140
         then 
141
               (if (MWI_FcnMaxI_In13 > 0)
142
                  then MWI_FcnMaxI_In13
143
                  else 0)
144
         else 639));
145

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

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

    
162
   rlt__Arrow2 = (639 -> 
163
      (if (not (not SUSPENDED))
164
         then 
165
               (if (MWI_FcnMaxI_In15 > 0)
166
                  then MWI_FcnMaxI_In15
167
                  else 0)
168
         else 639));
169

    
170
   rlt__Arrow1 = (639 -> 
171
      (if (not COOKING)
172
         then 
173
               (if (MWI_FcnMaxI_In11 > 0)
174
                  then MWI_FcnMaxI_In11
175
                  else 0)
176
         else 639));
177

    
178
   rlt__Arrow = (639 -> 
179
      (if (not SETUP)
180
         then 
181
               (if (MWI_FcnMaxI_In1 > 0)
182
                  then MWI_FcnMaxI_In1
183
                  else 0)
184
         else 639));
185

    
186
   p18 = (((not (enable and 
187
      (not KP_CLEAR))) or 
188
      ((not (((((((((KP_1 or 
189
      KP_2) or 
190
      KP_3) or 
191
      KP_4) or 
192
      KP_5) or 
193
      KP_6) or 
194
      KP_7) or 
195
      KP_8) or 
196
      KP_9) or 
197
      KP_0)) or 
198
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
199
      (not KP_CLEAR))) or 
200
      ((not ((((((((((KP_1 and 
201
      (not (pre KP_1))) or 
202
      (KP_2 and 
203
      (not (pre KP_2)))) or 
204
      (KP_3 and 
205
      (not (pre KP_3)))) or 
206
      (KP_4 and 
207
      (not (pre KP_4)))) or 
208
      (KP_5 and 
209
      (not (pre KP_5)))) or 
210
      (KP_6 and 
211
      (not (pre KP_6)))) or 
212
      (KP_7 and 
213
      (not (pre KP_7)))) or 
214
      (KP_8 and 
215
      (not (pre KP_8)))) or 
216
      (KP_9 and 
217
      (not (pre KP_9)))) or 
218
      (KP_0 and 
219
      (not (pre KP_0))))) or 
220
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
221

    
222
   p23 = (true -> (((not (enable and 
223
      (not KP_CLEAR))) or 
224
      (not ((((((((((KP_1 and 
225
      (not (pre KP_1))) or 
226
      (KP_2 and 
227
      (not (pre KP_2)))) or 
228
      (KP_3 and 
229
      (not (pre KP_3)))) or 
230
      (KP_4 and 
231
      (not (pre KP_4)))) or 
232
      (KP_5 and 
233
      (not (pre KP_5)))) or 
234
      (KP_6 and 
235
      (not (pre KP_6)))) or 
236
      (KP_7 and 
237
      (not (pre KP_7)))) or 
238
      (KP_8 and 
239
      (not (pre KP_8)))) or 
240
      (KP_9 and 
241
      (not (pre KP_9)))) or 
242
      (KP_0 and 
243
      (not (pre KP_0)))))) or 
244
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
245

    
246
   p35 = (true -> ((not (enable and 
247
      (not KP_CLEAR))) or 
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 = 8))));
267

    
268
   p33 = (true -> ((not (enable and 
269
      (not KP_CLEAR))) or 
270
      ((not ((KP_6 and 
271
      (not (pre KP_6))) and 
272
      ((not (KP_5 and 
273
      (not (pre KP_5)))) and 
274
      ((not (KP_4 and 
275
      (not (pre KP_4)))) and 
276
      ((not (KP_3 and 
277
      (not (pre KP_3)))) and 
278
      ((not (KP_2 and 
279
      (not (pre KP_2)))) and 
280
      ((not (KP_1 and 
281
      (not (pre KP_1)))) and 
282
      (not (KP_0 and 
283
      (not (pre KP_0))))))))))) or 
284
      (RIGHT_DIGIT = 6))));
285

    
286
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
287

    
288
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
289

    
290
   p25 = (enable or 
291
      (RIGHT_DIGIT = 0));
292

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

    
317
   p36 = (true -> ((not (enable and 
318
      (not KP_CLEAR))) or 
319
      ((not ((KP_9 and 
320
      (not (pre KP_9))) and 
321
      ((not (KP_8 and 
322
      (not (pre KP_8)))) and 
323
      ((not (KP_7 and 
324
      (not (pre KP_7)))) and 
325
      ((not (KP_6 and 
326
      (not (pre KP_6)))) and 
327
      ((not (KP_5 and 
328
      (not (pre KP_5)))) and 
329
      ((not (KP_4 and 
330
      (not (pre KP_4)))) and 
331
      ((not (KP_3 and 
332
      (not (pre KP_3)))) and 
333
      ((not (KP_2 and 
334
      (not (pre KP_2)))) and 
335
      ((not (KP_1 and 
336
      (not (pre KP_1)))) and 
337
      (not (KP_0 and 
338
      (not (pre KP_0)))))))))))))) or 
339
      (RIGHT_DIGIT = 9))));
340

    
341
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
342

    
343
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
344
      (not (pre KP_CLEAR))));
345

    
346
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
347

    
348
   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));
349

    
350
   SUSPENDED = 
351
      (if (3 = microwave_microwave_mode_logic_mode)
352
         then true
353
         else false);
354

    
355
   p31 = (true -> ((not (enable and 
356
      (not KP_CLEAR))) or 
357
      ((not ((KP_4 and 
358
      (not (pre KP_4))) and 
359
      ((not (KP_3 and 
360
      (not (pre KP_3)))) and 
361
      ((not (KP_2 and 
362
      (not (pre KP_2)))) and 
363
      ((not (KP_1 and 
364
      (not (pre KP_1)))) and 
365
      (not (KP_0 and 
366
      (not (pre KP_0))))))))) or 
367
      (RIGHT_DIGIT = 4))));
368

    
369
   p37 = (true -> ((not (enable and 
370
      (not KP_CLEAR))) or 
371
      (((((((((((KP_1 and 
372
      (not (pre KP_1))) or 
373
      (KP_2 and 
374
      (not (pre KP_2)))) or 
375
      (KP_3 and 
376
      (not (pre KP_3)))) or 
377
      (KP_4 and 
378
      (not (pre KP_4)))) or 
379
      (KP_5 and 
380
      (not (pre KP_5)))) or 
381
      (KP_6 and 
382
      (not (pre KP_6)))) or 
383
      (KP_7 and 
384
      (not (pre KP_7)))) or 
385
      (KP_8 and 
386
      (not (pre KP_8)))) or 
387
      (KP_9 and 
388
      (not (pre KP_9)))) or 
389
      (KP_0 and 
390
      (not (pre KP_0)))) or 
391
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
392

    
393
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
394

    
395
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
396

    
397
   p24 = (true -> (((not (enable and 
398
      (not KP_CLEAR))) or 
399
      ((((((((((KP_1 and 
400
      (not (pre KP_1))) or 
401
      (KP_2 and 
402
      (not (pre KP_2)))) or 
403
      (KP_3 and 
404
      (not (pre KP_3)))) or 
405
      (KP_4 and 
406
      (not (pre KP_4)))) or 
407
      (KP_5 and 
408
      (not (pre KP_5)))) or 
409
      (KP_6 and 
410
      (not (pre KP_6)))) or 
411
      (KP_7 and 
412
      (not (pre KP_7)))) or 
413
      (KP_8 and 
414
      (not (pre KP_8)))) or 
415
      (KP_9 and 
416
      (not (pre KP_9)))) or 
417
      (KP_0 and 
418
      (not (pre KP_0))))) or 
419
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
420

    
421
   p20 = (enable or 
422
      (MIDDLE_DIGIT = 0));
423

    
424
   p26 = ((not (enable and 
425
      KP_CLEAR)) or 
426
      (RIGHT_DIGIT = 0));
427

    
428
   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);
429

    
430
   p14 = (true -> ((not (enable and 
431
      (not KP_CLEAR))) or 
432
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
433

    
434
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
435

    
436

    
437
   p8 = (true -> ((not SUSPENDED) or 
438
      (
439
      (if (not (not SUSPENDED))
440
         then 
441
               (if (MWI_FcnMaxI_In15 > 0)
442
                  then MWI_FcnMaxI_In15
443
                  else 0)
444
         else 639) > 0)));
445

    
446
   OK = (true -> ((not COOKING) or 
447
      (
448
      (if (not (not COOKING))
449
         then 
450
               (if (MWI_FcnMaxI_In16 > 0)
451
                  then MWI_FcnMaxI_In16
452
                  else 0)
453
         else 639) > 0)));
454

    
455
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
456

    
457
   p16 = ((not (enable and 
458
      KP_CLEAR)) or 
459
      (LEFT_DIGIT = 0));
460

    
461
   p30 = (true -> ((not (enable and 
462
      (not KP_CLEAR))) or 
463
      ((not ((KP_3 and 
464
      (not (pre KP_3))) and 
465
      ((not (KP_2 and 
466
      (not (pre KP_2)))) and 
467
      ((not (KP_1 and 
468
      (not (pre KP_1)))) and 
469
      (not (KP_0 and 
470
      (not (pre KP_0)))))))) or 
471
      (RIGHT_DIGIT = 3))));
472

    
473
   COOKING = 
474
      (if (2 = microwave_microwave_mode_logic_mode)
475
         then true
476
         else false);
477

    
478
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
479

    
480
   p11 = ((not KP_CLEAR) or 
481
      (not COOKING));
482

    
483
   p9 = (true -> ((not COOKING) or 
484
      DOOR_CLOSED));
485

    
486
   p15 = (enable or 
487
      (LEFT_DIGIT = 0));
488

    
489
   START_PRESSED = (KP_START -> (KP_START and 
490
      (not (pre KP_START))));
491

    
492
   chart_microwave_mode_logic_start = 
493
      (if (START_PRESSED = false)
494
         then 0
495
         else 1);
496

    
497
   chart_microwave_mode_logic_clear_off = 
498
      (if (CLEAR_PRESSED = false)
499
         then 0
500
         else 1);
501

    
502
   chart_microwave_mode_logic_door_closed = 
503
      (if (DOOR_CLOSED = false)
504
         then 0
505
         else 1);
506

    
507
   chart_microwave_mode_logic____wakeup___ = true;
508

    
509
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
510
      (if (pre chart_microwave_mode_logic____wakeup___)
511
         then false
512
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
513

    
514
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
515

    
516
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
517

    
518
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
519

    
520
   chart_microwave_mode_logic_final_state_states___root = 
521
      (if chart_microwave_mode_logic____wakeup___
522
         then 
523
               (if chart_microwave_mode_logic_rlt_evtInitStep
524
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
525
                  else 
526
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
527
                  
528
                  
529
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
530
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
531
                  then 
532
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
533
                           then 
534
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
535
                                    then 
536
                                          
537
                                          3
538
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
539
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
540
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
541
         else chart_microwave_mode_logic_begin_state_states___root);
542

    
543
   chart_microwave_mode_logic_mode = 
544
      (if chart_microwave_mode_logic____wakeup___
545
         then 
546
               (if chart_microwave_mode_logic_rlt_evtInitStep
547
                  then 
548
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
549
                           then 1
550
                           else chart_microwave_mode_logic_begin_state_outports_mode)
551
                  else 
552
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
553
                  
554
                  
555
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
556
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
557
                  then 
558
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
559
                           then 
560
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
561
                                    then 3
562
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
563
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
564
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
565
         else chart_microwave_mode_logic_begin_state_outports_mode);
566

    
567
   chart_microwave_mode_logic_steps_remaining = 
568
      (if chart_microwave_mode_logic____wakeup___
569
         then 
570
               (if chart_microwave_mode_logic_rlt_evtInitStep
571
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
572
                  else 
573
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
574
                  
575
                  
576
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
577
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
578
                  then 
579
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
580
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
581
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
582
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
583
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
584

    
585
   
586
   
587
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
588

    
589
   
590
   
591
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
592
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
593
         then STEPS_TO_COOK
594
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
595

    
596
   
597
   
598
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
599
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
600
      (
601
      (if (chart_microwave_mode_logic_start <> 0)
602
         then true
603
         else false) and 
604
      
605
      (if (
606
         (if ((STEPS_TO_COOK > 0) = false)
607
            then 0
608
            else 1) <> 0)
609
         then true
610
         else false))));
611

    
612
   
613
   
614
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
615
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
616
         then 
617
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
618
                  then 
619
                        
620
                        0
621
                  else chart_microwave_mode_logic_begin_state_states___root)
622
         else chart_microwave_mode_logic_begin_state_states___root);
623

    
624
   
625
   
626
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
627
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
628
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
629
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
630
   
631
   
632

    
633
   
634
   
635
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
636
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
637
         then 
638
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
639
                  then 
640
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
641
                           then 3
642
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
643
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
644
         else chart_microwave_mode_logic_begin_state_outports_mode);
645
   
646
   
647

    
648
   
649
   
650
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
651
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
652
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
653

    
654
   
655
   
656
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
657
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
658
         then 
659
               (if 
660
                  
661
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
662
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
663
                  then 
664
                        
665
                        0
666
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
667
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
668

    
669
   
670
   
671
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
672
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
673
         then 
674
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
675
                  then 
676
                        
677
                        4
678
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
679
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
680
   
681
   
682

    
683
   
684
   
685
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
686
      ((
687
      (if (chart_microwave_mode_logic_start <> 0)
688
         then true
689
         else false) and 
690
      
691
      (if (chart_microwave_mode_logic_door_closed <> 0)
692
         then true
693
         else false)) and 
694
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
695

    
696
   
697
   
698
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
699
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
700

    
701
   
702
   
703
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
704
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
705
         then 
706
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
707
                  then 
708
                        
709
                        1
710
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
711
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
712

    
713
   
714
   
715
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
716
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
717
         then 
718
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
719
                  then 1
720
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
721
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
722

    
723
   
724
   
725
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
726
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
727
         then 
728
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
729
                  then 
730
                        
731
                        2
732
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
733
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
734
   
735
   
736

    
737
   
738
   
739
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
740
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
741
         then 
742
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
743
                  then 2
744
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
745
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
746
   
747
   
748

    
749
   
750
   
751
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
752
      (
753
      (if (chart_microwave_mode_logic_clear_off <> 0)
754
         then true
755
         else false) and 
756
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
757
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
758
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
759

    
760
   
761
   
762
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
763
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
764

    
765
   
766
   
767
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
768
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
769
         then 
770
               (if 
771
                  
772
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
773
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
774
                  then 
775
                        
776
                        0
777
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
778
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
779

    
780
   
781
   
782
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
783
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
784
         then 0
785
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
786

    
787
   
788
   
789
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
790
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
791
         then 
792
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
793
                  then 
794
                        
795
                        4
796
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
797
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
798
   
799
   
800

    
801
   
802
   
803
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
804
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
805
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
806

    
807
   
808
   
809
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
810
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
811
         then 
812
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
813
                  then 1
814
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
815
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
816

    
817
   
818
   
819
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
820
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
821
         then 
822
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
823
                  then 
824
                        
825
                        1
826
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
827
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
828

    
829
   
830
   
831
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
832
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
833
         then 
834
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
835
                  then 
836
                        
837
                        2
838
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
839
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
840
   
841
   
842

    
843
   
844
   
845
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
846
      ((
847
      (if (chart_microwave_mode_logic_clear_off <> 0)
848
         then true
849
         else false) or 
850
      (not 
851
      (if (chart_microwave_mode_logic_door_closed <> 0)
852
         then true
853
         else false))) and 
854
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
855
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
856

    
857
   
858
   
859
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
860
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
861
         then 
862
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
863
                  then 
864
                        
865
                        1
866
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
867
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
868

    
869
   
870
   
871
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
872
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
873
         then 
874
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
875
                  then 2
876
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
877
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
878

    
879
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
880
      (if (not 
881
         
882
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
883
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
884
         then 
885
               
886
               1
887
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
888

    
889
   
890
   
891
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
892
      
893
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
894
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
895
      
896
      
897
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
898
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
899

    
900
   
901
   
902
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
903
      (
904
      
905
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
906
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
907
      
908
      (if (chart_microwave_mode_logic_door_closed <> 0)
909
         then true
910
         else false)));
911

    
912
   
913
   
914
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
915
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
916
         then 
917
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
918
                  then 
919
                        
920
                        2
921
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
922
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
923
   
924
   
925

    
926
   
927
   
928
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
929
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
930
         then 
931
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
932
                  then 2
933
                  else chart_microwave_mode_logic_begin_state_outports_mode)
934
         else chart_microwave_mode_logic_begin_state_outports_mode);
935
   
936
   
937

    
938
   
939
   
940
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
941
      (
942
      
943
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
944
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
945
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
946

    
947
   
948
   
949
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
950
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
951
         then 
952
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
953
                  then 
954
                        
955
                        3
956
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
957
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
958
   
959
   
960

    
961
   
962
   
963
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
964
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
965
         then 
966
               
967
               4
968
         else chart_microwave_mode_logic_begin_state_states___root);
969
   
970
   
971

    
972
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
973

    
974
   p17 = (((not (enable and 
975
      (not KP_CLEAR))) or 
976
      ((not (((((((((KP_1 or 
977
      KP_2) or 
978
      KP_3) or 
979
      KP_4) or 
980
      KP_5) or 
981
      KP_6) or 
982
      KP_7) or 
983
      KP_8) or 
984
      KP_9) or 
985
      KP_0)) or 
986
      (LEFT_DIGIT = 0))) -> ((not (enable and 
987
      (not KP_CLEAR))) or 
988
      ((not ((((((((((KP_1 and 
989
      (not (pre KP_1))) or 
990
      (KP_2 and 
991
      (not (pre KP_2)))) or 
992
      (KP_3 and 
993
      (not (pre KP_3)))) or 
994
      (KP_4 and 
995
      (not (pre KP_4)))) or 
996
      (KP_5 and 
997
      (not (pre KP_5)))) or 
998
      (KP_6 and 
999
      (not (pre KP_6)))) or 
1000
      (KP_7 and 
1001
      (not (pre KP_7)))) or 
1002
      (KP_8 and 
1003
      (not (pre KP_8)))) or 
1004
      (KP_9 and 
1005
      (not (pre KP_9)))) or 
1006
      (KP_0 and 
1007
      (not (pre KP_0))))) or 
1008
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1009

    
1010
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1011

    
1012
   p10 = (true -> ((not COOKING) or 
1013
      (
1014
      (if (not (not COOKING))
1015
         then 
1016
               (if (MWI_FcnMaxI_In16 > 0)
1017
                  then MWI_FcnMaxI_In16
1018
                  else 0)
1019
         else 639) > 0)));
1020

    
1021
   p27 = (((not (enable and 
1022
      (not KP_CLEAR))) or 
1023
      ((not KP_0) or 
1024
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1025
      (not KP_CLEAR))) or 
1026
      ((not (KP_0 and 
1027
      (not (pre KP_0)))) or 
1028
      (RIGHT_DIGIT = 0))));
1029

    
1030
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1031

    
1032
   KP_01 = KP_0;
1033

    
1034
   KP_11 = KP_1;
1035

    
1036
   KP_21 = KP_2;
1037

    
1038
   KP_31 = KP_3;
1039

    
1040
   KP_41 = KP_4;
1041

    
1042
   KP_51 = KP_5;
1043

    
1044
   KP_61 = KP_6;
1045

    
1046
   KP_71 = KP_7;
1047

    
1048
   KP_81 = KP_8;
1049

    
1050
   KP_91 = KP_9;
1051

    
1052
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1053
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1054
         then 
1055
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1056
                  then 0
1057
                  else 
1058
               (if KP_CLEAR
1059
                  then 0
1060
                  else 
1061
               (if 
1062
                  (if (
1063
                     (if (KP_01 and 
1064
                        (not (pre KP_01)))
1065
                        then 0
1066
                        else 
1067
                     (if (KP_11 and 
1068
                        (not (pre KP_11)))
1069
                        then 1
1070
                        else 
1071
                     (if (KP_21 and 
1072
                        (not (pre KP_21)))
1073
                        then 2
1074
                        else 
1075
                     (if (KP_31 and 
1076
                        (not (pre KP_31)))
1077
                        then 3
1078
                        else 
1079
                     (if (KP_41 and 
1080
                        (not (pre KP_41)))
1081
                        then 4
1082
                        else 
1083
                     (if (KP_51 and 
1084
                        (not (pre KP_51)))
1085
                        then 5
1086
                        else 
1087
                     (if (KP_61 and 
1088
                        (not (pre KP_61)))
1089
                        then 6
1090
                        else 
1091
                     (if (KP_71 and 
1092
                        (not (pre KP_71)))
1093
                        then 7
1094
                        else 
1095
                     (if (KP_81 and 
1096
                        (not (pre KP_81)))
1097
                        then 8
1098
                        else 
1099
                     (if (KP_91 and 
1100
                        (not (pre KP_91)))
1101
                        then 9
1102
                        else 10)))))))))) <= 9)
1103
                     then true
1104
                     else false)
1105
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1106
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1107
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1108

    
1109
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1110
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1111
         then 
1112
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1113
                  then 0
1114
                  else 
1115
               (if KP_CLEAR
1116
                  then 0
1117
                  else 
1118
               (if 
1119
                  (if (
1120
                     (if (KP_01 and 
1121
                        (not (pre KP_01)))
1122
                        then 0
1123
                        else 
1124
                     (if (KP_11 and 
1125
                        (not (pre KP_11)))
1126
                        then 1
1127
                        else 
1128
                     (if (KP_21 and 
1129
                        (not (pre KP_21)))
1130
                        then 2
1131
                        else 
1132
                     (if (KP_31 and 
1133
                        (not (pre KP_31)))
1134
                        then 3
1135
                        else 
1136
                     (if (KP_41 and 
1137
                        (not (pre KP_41)))
1138
                        then 4
1139
                        else 
1140
                     (if (KP_51 and 
1141
                        (not (pre KP_51)))
1142
                        then 5
1143
                        else 
1144
                     (if (KP_61 and 
1145
                        (not (pre KP_61)))
1146
                        then 6
1147
                        else 
1148
                     (if (KP_71 and 
1149
                        (not (pre KP_71)))
1150
                        then 7
1151
                        else 
1152
                     (if (KP_81 and 
1153
                        (not (pre KP_81)))
1154
                        then 8
1155
                        else 
1156
                     (if (KP_91 and 
1157
                        (not (pre KP_91)))
1158
                        then 9
1159
                        else 10)))))))))) <= 9)
1160
                     then true
1161
                     else false)
1162
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1163
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1164
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1165

    
1166
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1167
      (if KP_CLEAR
1168
         then 0
1169
         else 
1170
      (if 
1171
         (if (
1172
            (if KP_01
1173
               then 0
1174
               else 
1175
            (if KP_11
1176
               then 1
1177
               else 
1178
            (if KP_21
1179
               then 2
1180
               else 
1181
            (if KP_31
1182
               then 3
1183
               else 
1184
            (if KP_41
1185
               then 4
1186
               else 
1187
            (if KP_51
1188
               then 5
1189
               else 
1190
            (if KP_61
1191
               then 6
1192
               else 
1193
            (if KP_71
1194
               then 7
1195
               else 
1196
            (if KP_81
1197
               then 8
1198
               else 
1199
            (if KP_91
1200
               then 9
1201
               else 10)))))))))) <= 9)
1202
            then true
1203
            else false)
1204
         then 
1205
               (if KP_01
1206
                  then 0
1207
                  else 
1208
               (if KP_11
1209
                  then 1
1210
                  else 
1211
               (if KP_21
1212
                  then 2
1213
                  else 
1214
               (if KP_31
1215
                  then 3
1216
                  else 
1217
               (if KP_41
1218
                  then 4
1219
                  else 
1220
               (if KP_51
1221
                  then 5
1222
                  else 
1223
               (if KP_61
1224
                  then 6
1225
                  else 
1226
               (if KP_71
1227
                  then 7
1228
                  else 
1229
               (if KP_81
1230
                  then 8
1231
                  else 
1232
               (if KP_91
1233
                  then 9
1234
                  else 10))))))))))
1235
         else 0)) -> 
1236
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1237
         then 
1238
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1239
                  then 
1240
                        (if KP_CLEAR
1241
                           then 0
1242
                           else 
1243
                        (if 
1244
                           (if (
1245
                              (if KP_01
1246
                                 then 0
1247
                                 else 
1248
                              (if KP_11
1249
                                 then 1
1250
                                 else 
1251
                              (if KP_21
1252
                                 then 2
1253
                                 else 
1254
                              (if KP_31
1255
                                 then 3
1256
                                 else 
1257
                              (if KP_41
1258
                                 then 4
1259
                                 else 
1260
                              (if KP_51
1261
                                 then 5
1262
                                 else 
1263
                              (if KP_61
1264
                                 then 6
1265
                                 else 
1266
                              (if KP_71
1267
                                 then 7
1268
                                 else 
1269
                              (if KP_81
1270
                                 then 8
1271
                                 else 
1272
                              (if KP_91
1273
                                 then 9
1274
                                 else 10)))))))))) <= 9)
1275
                              then true
1276
                              else false)
1277
                           then 
1278
                                 (if KP_01
1279
                                    then 0
1280
                                    else 
1281
                                 (if KP_11
1282
                                    then 1
1283
                                    else 
1284
                                 (if KP_21
1285
                                    then 2
1286
                                    else 
1287
                                 (if KP_31
1288
                                    then 3
1289
                                    else 
1290
                                 (if KP_41
1291
                                    then 4
1292
                                    else 
1293
                                 (if KP_51
1294
                                    then 5
1295
                                    else 
1296
                                 (if KP_61
1297
                                    then 6
1298
                                    else 
1299
                                 (if KP_71
1300
                                    then 7
1301
                                    else 
1302
                                 (if KP_81
1303
                                    then 8
1304
                                    else 
1305
                                 (if KP_91
1306
                                    then 9
1307
                                    else 10))))))))))
1308
                           else 0))
1309
                  else 
1310
               (if KP_CLEAR
1311
                  then 0
1312
                  else 
1313
               (if 
1314
                  (if (
1315
                     (if (KP_01 and 
1316
                        (not (pre KP_01)))
1317
                        then 0
1318
                        else 
1319
                     (if (KP_11 and 
1320
                        (not (pre KP_11)))
1321
                        then 1
1322
                        else 
1323
                     (if (KP_21 and 
1324
                        (not (pre KP_21)))
1325
                        then 2
1326
                        else 
1327
                     (if (KP_31 and 
1328
                        (not (pre KP_31)))
1329
                        then 3
1330
                        else 
1331
                     (if (KP_41 and 
1332
                        (not (pre KP_41)))
1333
                        then 4
1334
                        else 
1335
                     (if (KP_51 and 
1336
                        (not (pre KP_51)))
1337
                        then 5
1338
                        else 
1339
                     (if (KP_61 and 
1340
                        (not (pre KP_61)))
1341
                        then 6
1342
                        else 
1343
                     (if (KP_71 and 
1344
                        (not (pre KP_71)))
1345
                        then 7
1346
                        else 
1347
                     (if (KP_81 and 
1348
                        (not (pre KP_81)))
1349
                        then 8
1350
                        else 
1351
                     (if (KP_91 and 
1352
                        (not (pre KP_91)))
1353
                        then 9
1354
                        else 10)))))))))) <= 9)
1355
                     then true
1356
                     else false)
1357
                  then 
1358
                        (if (KP_01 and 
1359
                           (not (pre KP_01)))
1360
                           then 0
1361
                           else 
1362
                        (if (KP_11 and 
1363
                           (not (pre KP_11)))
1364
                           then 1
1365
                           else 
1366
                        (if (KP_21 and 
1367
                           (not (pre KP_21)))
1368
                           then 2
1369
                           else 
1370
                        (if (KP_31 and 
1371
                           (not (pre KP_31)))
1372
                           then 3
1373
                           else 
1374
                        (if (KP_41 and 
1375
                           (not (pre KP_41)))
1376
                           then 4
1377
                           else 
1378
                        (if (KP_51 and 
1379
                           (not (pre KP_51)))
1380
                           then 5
1381
                           else 
1382
                        (if (KP_61 and 
1383
                           (not (pre KP_61)))
1384
                           then 6
1385
                           else 
1386
                        (if (KP_71 and 
1387
                           (not (pre KP_71)))
1388
                           then 7
1389
                           else 
1390
                        (if (KP_81 and 
1391
                           (not (pre KP_81)))
1392
                           then 8
1393
                           else 
1394
                        (if (KP_91 and 
1395
                           (not (pre KP_91)))
1396
                           then 9
1397
                           else 10))))))))))
1398
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1399
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1400

    
1401
   STEPS_TO_COOK = (
1402
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1403
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1404
         then 0
1405
         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)) -> 
1406
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1407
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1408
         then 0
1409
         else 
1410
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1411
         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)
1412
         else (pre STEPS_TO_COOK))));
1413

    
1414
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1415
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1416
         then true
1417
         else 
1418
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1419
         then false
1420
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1421

    
1422
   SETUP = 
1423
      (if (1 = microwave_microwave_mode_logic_mode)
1424
         then true
1425
         else false);
1426

    
1427
   p32 = (true -> ((not (enable and 
1428
      (not KP_CLEAR))) or 
1429
      ((not ((KP_5 and 
1430
      (not (pre KP_5))) and 
1431
      ((not (KP_4 and 
1432
      (not (pre KP_4)))) and 
1433
      ((not (KP_3 and 
1434
      (not (pre KP_3)))) and 
1435
      ((not (KP_2 and 
1436
      (not (pre KP_2)))) and 
1437
      ((not (KP_1 and 
1438
      (not (pre KP_1)))) and 
1439
      (not (KP_0 and 
1440
      (not (pre KP_0)))))))))) or 
1441
      (RIGHT_DIGIT = 5))));
1442

    
1443
   enable = (true -> 
1444
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1445
         then true
1446
         else false));
1447

    
1448
   p28 = (true -> ((not (enable and 
1449
      (not KP_CLEAR))) or 
1450
      ((not ((KP_1 and 
1451
      (not (pre KP_1))) and 
1452
      (not (KP_0 and 
1453
      (not (pre KP_0)))))) or 
1454
      (RIGHT_DIGIT = 1))));
1455

    
1456
   p13 = ((not (enable and 
1457
      KP_CLEAR)) or 
1458
      (STEPS_TO_COOK = 0));
1459

    
1460
   p19 = (true -> ((not (enable and 
1461
      (not KP_CLEAR))) or 
1462
      (((((((((((KP_1 and 
1463
      (not (pre KP_1))) or 
1464
      (KP_2 and 
1465
      (not (pre KP_2)))) or 
1466
      (KP_3 and 
1467
      (not (pre KP_3)))) or 
1468
      (KP_4 and 
1469
      (not (pre KP_4)))) or 
1470
      (KP_5 and 
1471
      (not (pre KP_5)))) or 
1472
      (KP_6 and 
1473
      (not (pre KP_6)))) or 
1474
      (KP_7 and 
1475
      (not (pre KP_7)))) or 
1476
      (KP_8 and 
1477
      (not (pre KP_8)))) or 
1478
      (KP_9 and 
1479
      (not (pre KP_9)))) or 
1480
      (KP_0 and 
1481
      (not (pre KP_0)))) or 
1482
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1483

    
1484
   p29 = (true -> ((not (enable and 
1485
      (not KP_CLEAR))) or 
1486
      ((not ((KP_2 and 
1487
      (not (pre KP_2))) and 
1488
      ((not (KP_1 and 
1489
      (not (pre KP_1)))) and 
1490
      (not (KP_0 and 
1491
      (not (pre KP_0))))))) or 
1492
      (RIGHT_DIGIT = 2))));
1493

    
1494
   p34 = (true -> ((not (enable and 
1495
      (not KP_CLEAR))) or 
1496
      ((not ((KP_7 and 
1497
      (not (pre KP_7))) and 
1498
      ((not (KP_6 and 
1499
      (not (pre KP_6)))) and 
1500
      ((not (KP_5 and 
1501
      (not (pre KP_5)))) and 
1502
      ((not (KP_4 and 
1503
      (not (pre KP_4)))) and 
1504
      ((not (KP_3 and 
1505
      (not (pre KP_3)))) and 
1506
      ((not (KP_2 and 
1507
      (not (pre KP_2)))) and 
1508
      ((not (KP_1 and 
1509
      (not (pre KP_1)))) and 
1510
      (not (KP_0 and 
1511
      (not (pre KP_0)))))))))))) or 
1512
      (RIGHT_DIGIT = 7))));
1513

    
1514
   p12 = (enable or 
1515
      (STEPS_TO_COOK = 0));
1516

    
1517
   p21 = ((not (enable and 
1518
      KP_CLEAR)) or 
1519
      (MIDDLE_DIGIT = 0));
1520

    
1521
  --%PROPERTY OK=true;
1522
  --%MAIN;
1523

    
1524
tel
1525