Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (50.1 KB)

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

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

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

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

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

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

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

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

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

    
248
   p35 = (true -> ((not (enable and 
249
      (not KP_CLEAR))) or 
250
      ((not ((KP_8 and 
251
      (not (pre KP_8))) and 
252
      ((not (KP_7 and 
253
      (not (pre KP_7)))) and 
254
      ((not (KP_6 and 
255
      (not (pre KP_6)))) and 
256
      ((not (KP_5 and 
257
      (not (pre KP_5)))) and 
258
      ((not (KP_4 and 
259
      (not (pre KP_4)))) and 
260
      ((not (KP_3 and 
261
      (not (pre KP_3)))) and 
262
      ((not (KP_2 and 
263
      (not (pre KP_2)))) and 
264
      ((not (KP_1 and 
265
      (not (pre KP_1)))) and 
266
      (not (KP_0 and 
267
      (not (pre KP_0))))))))))))) or 
268
      (RIGHT_DIGIT = 8))));
269

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

    
288
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
289

    
290
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
291

    
292
   p25 = (enable or 
293
      (RIGHT_DIGIT = 0));
294

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

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

    
343
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
344

    
345
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
346
      (not (pre KP_CLEAR))));
347

    
348
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
349

    
350
   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));
351

    
352
   SUSPENDED = 
353
      (if (3 = microwave_microwave_mode_logic_mode)
354
         then true
355
         else false);
356

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

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

    
395
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
396

    
397
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
398

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

    
423
   p20 = (enable or 
424
      (MIDDLE_DIGIT = 0));
425

    
426
   OK = (true -> (
427
      (if (not SUSPENDED)
428
         then 
429
               (if (MWI_FcnMaxI_In12 > 0)
430
                  then MWI_FcnMaxI_In12
431
                  else 0)
432
         else 639) > 0));
433

    
434
   p26 = ((not (enable and 
435
      KP_CLEAR)) or 
436
      (RIGHT_DIGIT = 0));
437

    
438
   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);
439

    
440
   p14 = (true -> ((not (enable and 
441
      (not KP_CLEAR))) or 
442
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
443

    
444
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
445

    
446
   p6 = (true -> ((not SETUP) or 
447
      (
448
      (if (not (not SETUP))
449
         then 
450
               (if (MWI_FcnMaxI_In13 > 0)
451
                  then MWI_FcnMaxI_In13
452
                  else 0)
453
         else 639) > 0)));
454

    
455
   p8 = (true -> ((not SUSPENDED) or 
456
      (
457
      (if (not (not SUSPENDED))
458
         then 
459
               (if (MWI_FcnMaxI_In15 > 0)
460
                  then MWI_FcnMaxI_In15
461
                  else 0)
462
         else 639) > 0)));
463

    
464
   p7 = (true -> ((not COOKING) or 
465
      (
466
      (if (not (not COOKING))
467
         then 
468
               (if (MWI_FcnMaxI_In16 > 0)
469
                  then MWI_FcnMaxI_In16
470
                  else 0)
471
         else 639) > 0)));
472

    
473
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
474

    
475
   p16 = ((not (enable and 
476
      KP_CLEAR)) or 
477
      (LEFT_DIGIT = 0));
478

    
479
   p30 = (true -> ((not (enable and 
480
      (not KP_CLEAR))) or 
481
      ((not ((KP_3 and 
482
      (not (pre KP_3))) and 
483
      ((not (KP_2 and 
484
      (not (pre KP_2)))) and 
485
      ((not (KP_1 and 
486
      (not (pre KP_1)))) and 
487
      (not (KP_0 and 
488
      (not (pre KP_0)))))))) or 
489
      (RIGHT_DIGIT = 3))));
490

    
491
   COOKING = 
492
      (if (2 = microwave_microwave_mode_logic_mode)
493
         then true
494
         else false);
495

    
496
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
497

    
498
   p11 = ((not KP_CLEAR) or 
499
      (not COOKING));
500

    
501
   p9 = (true -> ((not COOKING) or 
502
      DOOR_CLOSED));
503

    
504
   p15 = (enable or 
505
      (LEFT_DIGIT = 0));
506

    
507
   START_PRESSED = (KP_START -> (KP_START and 
508
      (not (pre KP_START))));
509

    
510
   chart_microwave_mode_logic_start = 
511
      (if (START_PRESSED = false)
512
         then 0
513
         else 1);
514

    
515
   chart_microwave_mode_logic_clear_off = 
516
      (if (CLEAR_PRESSED = false)
517
         then 0
518
         else 1);
519

    
520
   chart_microwave_mode_logic_door_closed = 
521
      (if (DOOR_CLOSED = false)
522
         then 0
523
         else 1);
524

    
525
   chart_microwave_mode_logic____wakeup___ = true;
526

    
527
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
528
      (if (pre chart_microwave_mode_logic____wakeup___)
529
         then false
530
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
531

    
532
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
533

    
534
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
535

    
536
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
537

    
538
   chart_microwave_mode_logic_final_state_states___root = 
539
      (if chart_microwave_mode_logic____wakeup___
540
         then 
541
               (if chart_microwave_mode_logic_rlt_evtInitStep
542
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
543
                  else 
544
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
545
                  
546
                  
547
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
548
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
549
                  then 
550
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
551
                           then 
552
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
553
                                    then 
554
                                          
555
                                          3
556
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
557
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
558
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
559
         else chart_microwave_mode_logic_begin_state_states___root);
560

    
561
   chart_microwave_mode_logic_mode = 
562
      (if chart_microwave_mode_logic____wakeup___
563
         then 
564
               (if chart_microwave_mode_logic_rlt_evtInitStep
565
                  then 
566
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
567
                           then 1
568
                           else chart_microwave_mode_logic_begin_state_outports_mode)
569
                  else 
570
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
571
                  
572
                  
573
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
574
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
575
                  then 
576
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
577
                           then 
578
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
579
                                    then 3
580
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
581
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
582
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
583
         else chart_microwave_mode_logic_begin_state_outports_mode);
584

    
585
   chart_microwave_mode_logic_steps_remaining = 
586
      (if chart_microwave_mode_logic____wakeup___
587
         then 
588
               (if chart_microwave_mode_logic_rlt_evtInitStep
589
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
590
                  else 
591
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
592
                  
593
                  
594
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
595
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
596
                  then 
597
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
598
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
599
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
600
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
601
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
602

    
603
   
604
   
605
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
606

    
607
   
608
   
609
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
610
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
611
         then STEPS_TO_COOK
612
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
613

    
614
   
615
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
616
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
617
      (
618
      (if (chart_microwave_mode_logic_start <> 0)
619
         then true
620
         else false) and 
621
      
622
      (if (
623
         (if ((STEPS_TO_COOK > 0) = false)
624
            then 0
625
            else 1) <> 0)
626
         then true
627
         else false))));
628

    
629
   
630
   
631
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
632
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
633
         then 
634
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
635
                  then 
636
                        
637
                        0
638
                  else chart_microwave_mode_logic_begin_state_states___root)
639
         else chart_microwave_mode_logic_begin_state_states___root);
640

    
641
   
642
   
643
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
644
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
645
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
646
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
647
   
648
   
649

    
650
   
651
   
652
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
653
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
654
         then 
655
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
656
                  then 
657
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
658
                           then 3
659
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
660
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
661
         else chart_microwave_mode_logic_begin_state_outports_mode);
662
   
663
   
664

    
665
   
666
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
667
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
668
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
669

    
670
   
671
   
672
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
673
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
674
         then 
675
               (if 
676
                  
677
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
678
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
679
                  then 
680
                        
681
                        0
682
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
683
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
684

    
685
   
686
   
687
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
688
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
689
         then 
690
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
691
                  then 
692
                        
693
                        4
694
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
695
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
696
   
697
   
698

    
699
   
700
   
701
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
702
      ((
703
      (if (chart_microwave_mode_logic_start <> 0)
704
         then true
705
         else false) and 
706
      
707
      (if (chart_microwave_mode_logic_door_closed <> 0)
708
         then true
709
         else false)) and 
710
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
711

    
712
   
713
   
714
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
715
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
716

    
717
   
718
   
719
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
720
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
721
         then 
722
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
723
                  then 
724
                        
725
                        1
726
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
727
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
728

    
729
   
730
   
731
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
732
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
733
         then 
734
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
735
                  then 1
736
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
737
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
738

    
739
   
740
   
741
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
742
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
743
         then 
744
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
745
                  then 
746
                        
747
                        2
748
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
749
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
750
   
751
   
752

    
753
   
754
   
755
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
756
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
757
         then 
758
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
759
                  then 2
760
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
761
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
762
   
763
   
764

    
765
   
766
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
767
      (
768
      (if (chart_microwave_mode_logic_clear_off <> 0)
769
         then true
770
         else false) and 
771
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
772
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
773
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
774

    
775
   
776
   
777
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
778
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
779

    
780
   
781
   
782
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
783
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
784
         then 
785
               (if 
786
                  
787
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
788
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
789
                  then 
790
                        
791
                        0
792
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
793
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
794

    
795
   
796
   
797
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
798
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
799
         then 0
800
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
801

    
802
   
803
   
804
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
805
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
806
         then 
807
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
808
                  then 
809
                        
810
                        4
811
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
812
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
813
   
814
   
815

    
816
   
817
   
818
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
819
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
820
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
821

    
822
   
823
   
824
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
825
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
826
         then 
827
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
828
                  then 1
829
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
830
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
831

    
832
   
833
   
834
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
835
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
836
         then 
837
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
838
                  then 
839
                        
840
                        1
841
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
842
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
843

    
844
   
845
   
846
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
847
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
848
         then 
849
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
850
                  then 
851
                        
852
                        2
853
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
854
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
855
   
856
   
857

    
858
   
859
   
860
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
861
      ((
862
      (if (chart_microwave_mode_logic_clear_off <> 0)
863
         then true
864
         else false) or 
865
      (not 
866
      (if (chart_microwave_mode_logic_door_closed <> 0)
867
         then true
868
         else false))) and 
869
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
870
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
871

    
872
   
873
   
874
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
875
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
876
         then 
877
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
878
                  then 
879
                        
880
                        1
881
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
882
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
883

    
884
   
885
   
886
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
887
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
888
         then 
889
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
890
                  then 2
891
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
892
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
893

    
894
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
895
      (if (not 
896
         
897
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
898
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
899
         then 
900
               
901
               1
902
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
903

    
904
   
905
   
906
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
907
      
908
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
909
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
910
      
911
      
912
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
913
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
914

    
915
   
916
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
917
      (
918
      
919
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
920
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
921
      
922
      (if (chart_microwave_mode_logic_door_closed <> 0)
923
         then true
924
         else false)));
925

    
926
   
927
   
928
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
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 
933
                        
934
                        2
935
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
936
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
937
   
938
   
939

    
940
   
941
   
942
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
943
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
944
         then 
945
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
946
                  then 2
947
                  else chart_microwave_mode_logic_begin_state_outports_mode)
948
         else chart_microwave_mode_logic_begin_state_outports_mode);
949
   
950
   
951

    
952
   
953
   
954
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
955
      (
956
      
957
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
958
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
959
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
960

    
961
   
962
   
963
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
964
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
965
         then 
966
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
967
                  then 
968
                        
969
                        3
970
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
971
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
972
   
973
   
974

    
975
   
976
   
977
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
978
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
979
         then 
980
               
981
               4
982
         else chart_microwave_mode_logic_begin_state_states___root);
983
   
984
   
985

    
986
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
987

    
988
   p17 = (((not (enable and 
989
      (not KP_CLEAR))) or 
990
      ((not (((((((((KP_1 or 
991
      KP_2) or 
992
      KP_3) or 
993
      KP_4) or 
994
      KP_5) or 
995
      KP_6) or 
996
      KP_7) or 
997
      KP_8) or 
998
      KP_9) or 
999
      KP_0)) or 
1000
      (LEFT_DIGIT = 0))) -> ((not (enable and 
1001
      (not KP_CLEAR))) or 
1002
      ((not ((((((((((KP_1 and 
1003
      (not (pre KP_1))) or 
1004
      (KP_2 and 
1005
      (not (pre KP_2)))) or 
1006
      (KP_3 and 
1007
      (not (pre KP_3)))) or 
1008
      (KP_4 and 
1009
      (not (pre KP_4)))) or 
1010
      (KP_5 and 
1011
      (not (pre KP_5)))) or 
1012
      (KP_6 and 
1013
      (not (pre KP_6)))) or 
1014
      (KP_7 and 
1015
      (not (pre KP_7)))) or 
1016
      (KP_8 and 
1017
      (not (pre KP_8)))) or 
1018
      (KP_9 and 
1019
      (not (pre KP_9)))) or 
1020
      (KP_0 and 
1021
      (not (pre KP_0))))) or 
1022
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1023

    
1024
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1025

    
1026
   p10 = (true -> ((not COOKING) or 
1027
      (
1028
      (if (not (not COOKING))
1029
         then 
1030
               (if (MWI_FcnMaxI_In16 > 0)
1031
                  then MWI_FcnMaxI_In16
1032
                  else 0)
1033
         else 639) > 0)));
1034

    
1035
   p27 = (((not (enable and 
1036
      (not KP_CLEAR))) or 
1037
      ((not KP_0) or 
1038
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1039
      (not KP_CLEAR))) or 
1040
      ((not (KP_0 and 
1041
      (not (pre KP_0)))) or 
1042
      (RIGHT_DIGIT = 0))));
1043

    
1044
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1045

    
1046
   KP_01 = KP_0;
1047

    
1048
   KP_11 = KP_1;
1049

    
1050
   KP_21 = KP_2;
1051

    
1052
   KP_31 = KP_3;
1053

    
1054
   KP_41 = KP_4;
1055

    
1056
   KP_51 = KP_5;
1057

    
1058
   KP_61 = KP_6;
1059

    
1060
   KP_71 = KP_7;
1061

    
1062
   KP_81 = KP_8;
1063

    
1064
   KP_91 = KP_9;
1065

    
1066
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1067
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1068
         then 
1069
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1070
                  then 0
1071
                  else 
1072
               (if KP_CLEAR
1073
                  then 0
1074
                  else 
1075
               (if 
1076
                  (if (
1077
                     (if (KP_01 and 
1078
                        (not (pre KP_01)))
1079
                        then 0
1080
                        else 
1081
                     (if (KP_11 and 
1082
                        (not (pre KP_11)))
1083
                        then 1
1084
                        else 
1085
                     (if (KP_21 and 
1086
                        (not (pre KP_21)))
1087
                        then 2
1088
                        else 
1089
                     (if (KP_31 and 
1090
                        (not (pre KP_31)))
1091
                        then 3
1092
                        else 
1093
                     (if (KP_41 and 
1094
                        (not (pre KP_41)))
1095
                        then 4
1096
                        else 
1097
                     (if (KP_51 and 
1098
                        (not (pre KP_51)))
1099
                        then 5
1100
                        else 
1101
                     (if (KP_61 and 
1102
                        (not (pre KP_61)))
1103
                        then 6
1104
                        else 
1105
                     (if (KP_71 and 
1106
                        (not (pre KP_71)))
1107
                        then 7
1108
                        else 
1109
                     (if (KP_81 and 
1110
                        (not (pre KP_81)))
1111
                        then 8
1112
                        else 
1113
                     (if (KP_91 and 
1114
                        (not (pre KP_91)))
1115
                        then 9
1116
                        else 10)))))))))) <= 9)
1117
                     then true
1118
                     else false)
1119
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1120
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1121
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1122

    
1123
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1124
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1125
         then 
1126
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1127
                  then 0
1128
                  else 
1129
               (if KP_CLEAR
1130
                  then 0
1131
                  else 
1132
               (if 
1133
                  (if (
1134
                     (if (KP_01 and 
1135
                        (not (pre KP_01)))
1136
                        then 0
1137
                        else 
1138
                     (if (KP_11 and 
1139
                        (not (pre KP_11)))
1140
                        then 1
1141
                        else 
1142
                     (if (KP_21 and 
1143
                        (not (pre KP_21)))
1144
                        then 2
1145
                        else 
1146
                     (if (KP_31 and 
1147
                        (not (pre KP_31)))
1148
                        then 3
1149
                        else 
1150
                     (if (KP_41 and 
1151
                        (not (pre KP_41)))
1152
                        then 4
1153
                        else 
1154
                     (if (KP_51 and 
1155
                        (not (pre KP_51)))
1156
                        then 5
1157
                        else 
1158
                     (if (KP_61 and 
1159
                        (not (pre KP_61)))
1160
                        then 6
1161
                        else 
1162
                     (if (KP_71 and 
1163
                        (not (pre KP_71)))
1164
                        then 7
1165
                        else 
1166
                     (if (KP_81 and 
1167
                        (not (pre KP_81)))
1168
                        then 8
1169
                        else 
1170
                     (if (KP_91 and 
1171
                        (not (pre KP_91)))
1172
                        then 9
1173
                        else 10)))))))))) <= 9)
1174
                     then true
1175
                     else false)
1176
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1177
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1178
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1179

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

    
1415
   STEPS_TO_COOK = (
1416
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1417
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1418
         then 0
1419
         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)) -> 
1420
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1421
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1422
         then 0
1423
         else 
1424
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1425
         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)
1426
         else (pre STEPS_TO_COOK))));
1427

    
1428
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1429
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1430
         then true
1431
         else 
1432
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1433
         then false
1434
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1435

    
1436
   SETUP = 
1437
      (if (1 = microwave_microwave_mode_logic_mode)
1438
         then true
1439
         else false);
1440

    
1441
   p32 = (true -> ((not (enable and 
1442
      (not KP_CLEAR))) or 
1443
      ((not ((KP_5 and 
1444
      (not (pre KP_5))) and 
1445
      ((not (KP_4 and 
1446
      (not (pre KP_4)))) and 
1447
      ((not (KP_3 and 
1448
      (not (pre KP_3)))) and 
1449
      ((not (KP_2 and 
1450
      (not (pre KP_2)))) and 
1451
      ((not (KP_1 and 
1452
      (not (pre KP_1)))) and 
1453
      (not (KP_0 and 
1454
      (not (pre KP_0)))))))))) or 
1455
      (RIGHT_DIGIT = 5))));
1456

    
1457
   enable = (true -> 
1458
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1459
         then true
1460
         else false));
1461

    
1462
   p28 = (true -> ((not (enable and 
1463
      (not KP_CLEAR))) or 
1464
      ((not ((KP_1 and 
1465
      (not (pre KP_1))) and 
1466
      (not (KP_0 and 
1467
      (not (pre KP_0)))))) or 
1468
      (RIGHT_DIGIT = 1))));
1469

    
1470
   p13 = ((not (enable and 
1471
      KP_CLEAR)) or 
1472
      (STEPS_TO_COOK = 0));
1473

    
1474
   p19 = (true -> ((not (enable and 
1475
      (not KP_CLEAR))) or 
1476
      (((((((((((KP_1 and 
1477
      (not (pre KP_1))) or 
1478
      (KP_2 and 
1479
      (not (pre KP_2)))) or 
1480
      (KP_3 and 
1481
      (not (pre KP_3)))) or 
1482
      (KP_4 and 
1483
      (not (pre KP_4)))) or 
1484
      (KP_5 and 
1485
      (not (pre KP_5)))) or 
1486
      (KP_6 and 
1487
      (not (pre KP_6)))) or 
1488
      (KP_7 and 
1489
      (not (pre KP_7)))) or 
1490
      (KP_8 and 
1491
      (not (pre KP_8)))) or 
1492
      (KP_9 and 
1493
      (not (pre KP_9)))) or 
1494
      (KP_0 and 
1495
      (not (pre KP_0)))) or 
1496
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1497

    
1498
   p29 = (true -> ((not (enable and 
1499
      (not KP_CLEAR))) or 
1500
      ((not ((KP_2 and 
1501
      (not (pre KP_2))) and 
1502
      ((not (KP_1 and 
1503
      (not (pre KP_1)))) and 
1504
      (not (KP_0 and 
1505
      (not (pre KP_0))))))) or 
1506
      (RIGHT_DIGIT = 2))));
1507

    
1508
   p34 = (true -> ((not (enable and 
1509
      (not KP_CLEAR))) or 
1510
      ((not ((KP_7 and 
1511
      (not (pre KP_7))) and 
1512
      ((not (KP_6 and 
1513
      (not (pre KP_6)))) and 
1514
      ((not (KP_5 and 
1515
      (not (pre KP_5)))) and 
1516
      ((not (KP_4 and 
1517
      (not (pre KP_4)))) and 
1518
      ((not (KP_3 and 
1519
      (not (pre KP_3)))) and 
1520
      ((not (KP_2 and 
1521
      (not (pre KP_2)))) and 
1522
      ((not (KP_1 and 
1523
      (not (pre KP_1)))) and 
1524
      (not (KP_0 and 
1525
      (not (pre KP_0)))))))))))) or 
1526
      (RIGHT_DIGIT = 7))));
1527

    
1528
   p12 = (enable or 
1529
      (STEPS_TO_COOK = 0));
1530

    
1531
   p21 = ((not (enable and 
1532
      KP_CLEAR)) or 
1533
      (MIDDLE_DIGIT = 0));
1534

    
1535
  --%PROPERTY OK=true;
1536
  --%MAIN;
1537

    
1538
tel
1539