Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / CEX / microwave12.lus @ b8dc00eb

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

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

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

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

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

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

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

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

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

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

    
284
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
285

    
286
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
287

    
288
   p25 = (enable or 
289
      (RIGHT_DIGIT = 0));
290

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

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

    
339
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
340

    
341
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
342
      (not (pre KP_CLEAR))));
343

    
344
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
345

    
346
   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));
347

    
348
   SUSPENDED = 
349
      (if (3 = microwave_microwave_mode_logic_mode)
350
         then true
351
         else false);
352

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

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

    
391
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
392

    
393
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
394

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

    
419
   p20 = (enable or 
420
      (MIDDLE_DIGIT = 0));
421

    
422
   p26 = ((not (enable and 
423
      KP_CLEAR)) or 
424
      (RIGHT_DIGIT = 0));
425

    
426
   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);
427

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

    
432
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
433

    
434

    
435
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
436

    
437
   p16 = ((not (enable and 
438
      KP_CLEAR)) or 
439
      (LEFT_DIGIT = 0));
440

    
441
   p30 = (true -> ((not (enable and 
442
      (not KP_CLEAR))) or 
443
      ((not ((KP_3 and 
444
      (not (pre KP_3))) and 
445
      ((not (KP_2 and 
446
      (not (pre KP_2)))) and 
447
      ((not (KP_1 and 
448
      (not (pre KP_1)))) and 
449
      (not (KP_0 and 
450
      (not (pre KP_0)))))))) or 
451
      (RIGHT_DIGIT = 3))));
452

    
453
   COOKING = 
454
      (if (2 = microwave_microwave_mode_logic_mode)
455
         then true
456
         else false);
457

    
458
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
459

    
460
   p11 = ((not KP_CLEAR) or 
461
      (not COOKING));
462

    
463
   OK = (true -> ((not COOKING) or 
464
      DOOR_CLOSED));
465

    
466
   p15 = (enable or 
467
      (LEFT_DIGIT = 0));
468

    
469
   START_PRESSED = (KP_START -> (KP_START and 
470
      (not (pre KP_START))));
471

    
472
   chart_microwave_mode_logic_start = 
473
      (if (START_PRESSED = false)
474
         then 0
475
         else 1);
476

    
477
   chart_microwave_mode_logic_clear_off = 
478
      (if (CLEAR_PRESSED = false)
479
         then 0
480
         else 1);
481

    
482
   chart_microwave_mode_logic_door_closed = 
483
      (if (DOOR_CLOSED = false)
484
         then 0
485
         else 1);
486

    
487
   chart_microwave_mode_logic____wakeup___ = true;
488

    
489
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
490
      (if (pre chart_microwave_mode_logic____wakeup___)
491
         then false
492
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
493

    
494
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
495

    
496
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
497

    
498
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
499

    
500
   chart_microwave_mode_logic_final_state_states___root = 
501
      (if chart_microwave_mode_logic____wakeup___
502
         then 
503
               (if chart_microwave_mode_logic_rlt_evtInitStep
504
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
505
                  else 
506
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
507
                  
508
                  
509
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
510
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
511
                  then 
512
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
513
                           then 
514
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
515
                                    then 
516
                                          
517
                                          3
518
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
519
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
520
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
521
         else chart_microwave_mode_logic_begin_state_states___root);
522

    
523
   chart_microwave_mode_logic_mode = 
524
      (if chart_microwave_mode_logic____wakeup___
525
         then 
526
               (if chart_microwave_mode_logic_rlt_evtInitStep
527
                  then 
528
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
529
                           then 1
530
                           else chart_microwave_mode_logic_begin_state_outports_mode)
531
                  else 
532
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
533
                  
534
                  
535
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
536
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
537
                  then 
538
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
539
                           then 
540
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
541
                                    then 3
542
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
543
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
544
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
545
         else chart_microwave_mode_logic_begin_state_outports_mode);
546

    
547
   chart_microwave_mode_logic_steps_remaining = 
548
      (if chart_microwave_mode_logic____wakeup___
549
         then 
550
               (if chart_microwave_mode_logic_rlt_evtInitStep
551
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
552
                  else 
553
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
554
                  
555
                  
556
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
557
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
558
                  then 
559
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
560
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
561
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
562
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
563
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
564

    
565
   
566
   
567
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
568

    
569
   
570
   
571
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
572
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
573
         then STEPS_TO_COOK
574
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
575

    
576
   
577
   
578
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
579
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
580
      (
581
      (if (chart_microwave_mode_logic_start <> 0)
582
         then true
583
         else false) and 
584
      
585
      (if (
586
         (if ((STEPS_TO_COOK > 0) = false)
587
            then 0
588
            else 1) <> 0)
589
         then true
590
         else false))));
591

    
592
   
593
   
594
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
595
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
596
         then 
597
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
598
                  then 
599
                        
600
                        0
601
                  else chart_microwave_mode_logic_begin_state_states___root)
602
         else chart_microwave_mode_logic_begin_state_states___root);
603

    
604
   
605
   
606
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
607
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
608
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
609
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
610
   
611
   
612

    
613
   
614
   
615
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
616
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
617
         then 
618
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
619
                  then 
620
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
621
                           then 3
622
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
623
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
624
         else chart_microwave_mode_logic_begin_state_outports_mode);
625
   
626
   
627

    
628
   
629
   
630
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
631
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
632
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
633

    
634
   
635
   
636
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
637
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
638
         then 
639
               (if 
640
                  
641
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
642
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
643
                  then 
644
                        
645
                        0
646
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
647
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
648

    
649
   
650
   
651
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
652
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
653
         then 
654
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
655
                  then 
656
                        
657
                        4
658
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
659
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
660
   
661
   
662

    
663
   
664
   
665
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
666
      ((
667
      (if (chart_microwave_mode_logic_start <> 0)
668
         then true
669
         else false) and 
670
      
671
      (if (chart_microwave_mode_logic_door_closed <> 0)
672
         then true
673
         else false)) and 
674
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
675

    
676
   
677
   
678
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
679
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
680

    
681
   
682
   
683
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
684
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
685
         then 
686
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
687
                  then 
688
                        
689
                        1
690
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
691
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
696
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
697
         then 
698
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
699
                  then 1
700
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
701
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
702

    
703
   
704
   
705
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
706
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
707
         then 
708
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
709
                  then 
710
                        
711
                        2
712
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
713
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
714
   
715
   
716

    
717
   
718
   
719
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
720
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
721
         then 
722
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
723
                  then 2
724
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
725
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
726
   
727
   
728

    
729
   
730
   
731
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
732
      (
733
      (if (chart_microwave_mode_logic_clear_off <> 0)
734
         then true
735
         else false) and 
736
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
737
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
738
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
739

    
740
   
741
   
742
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
743
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
744

    
745
   
746
   
747
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
748
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
749
         then 
750
               (if 
751
                  
752
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
753
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
754
                  then 
755
                        
756
                        0
757
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
758
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
759

    
760
   
761
   
762
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
763
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
764
         then 0
765
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
766

    
767
   
768
   
769
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
770
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
771
         then 
772
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
773
                  then 
774
                        
775
                        4
776
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
777
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
778
   
779
   
780

    
781
   
782
   
783
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
784
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
785
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
786

    
787
   
788
   
789
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
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 1
794
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
795
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
796

    
797
   
798
   
799
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
800
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
801
         then 
802
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
803
                  then 
804
                        
805
                        1
806
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
807
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
808

    
809
   
810
   
811
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
812
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
813
         then 
814
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
815
                  then 
816
                        
817
                        2
818
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
819
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
820
   
821
   
822

    
823
   
824
   
825
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
826
      ((
827
      (if (chart_microwave_mode_logic_clear_off <> 0)
828
         then true
829
         else false) or 
830
      (not 
831
      (if (chart_microwave_mode_logic_door_closed <> 0)
832
         then true
833
         else false))) and 
834
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
835
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
836

    
837
   
838
   
839
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
840
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
841
         then 
842
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
843
                  then 
844
                        
845
                        1
846
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
847
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
848

    
849
   
850
   
851
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
852
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
853
         then 
854
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
855
                  then 2
856
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
857
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
858

    
859
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
860
      (if (not 
861
         
862
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
863
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
864
         then 
865
               
866
               1
867
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
868

    
869
   
870
   
871
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
872
      
873
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
874
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
875
      
876
      
877
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
878
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
879

    
880
   
881
   
882
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
883
      (
884
      
885
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
886
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
887
      
888
      (if (chart_microwave_mode_logic_door_closed <> 0)
889
         then true
890
         else false)));
891

    
892
   
893
   
894
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
895
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
896
         then 
897
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
898
                  then 
899
                        
900
                        2
901
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
902
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
903
   
904
   
905

    
906
   
907
   
908
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
909
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
910
         then 
911
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
912
                  then 2
913
                  else chart_microwave_mode_logic_begin_state_outports_mode)
914
         else chart_microwave_mode_logic_begin_state_outports_mode);
915
   
916
   
917

    
918
   
919
   
920
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
921
      (
922
      
923
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
924
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
925
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
926

    
927
   
928
   
929
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
930
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
931
         then 
932
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
933
                  then 
934
                        
935
                        3
936
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
937
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
938
   
939
   
940

    
941
   
942
   
943
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
944
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
945
         then 
946
               
947
               4
948
         else chart_microwave_mode_logic_begin_state_states___root);
949
   
950
   
951

    
952
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
953

    
954
   p17 = (((not (enable and 
955
      (not KP_CLEAR))) or 
956
      ((not (((((((((KP_1 or 
957
      KP_2) or 
958
      KP_3) or 
959
      KP_4) or 
960
      KP_5) or 
961
      KP_6) or 
962
      KP_7) or 
963
      KP_8) or 
964
      KP_9) or 
965
      KP_0)) or 
966
      (LEFT_DIGIT = 0))) -> ((not (enable and 
967
      (not KP_CLEAR))) or 
968
      ((not ((((((((((KP_1 and 
969
      (not (pre KP_1))) or 
970
      (KP_2 and 
971
      (not (pre KP_2)))) or 
972
      (KP_3 and 
973
      (not (pre KP_3)))) or 
974
      (KP_4 and 
975
      (not (pre KP_4)))) or 
976
      (KP_5 and 
977
      (not (pre KP_5)))) or 
978
      (KP_6 and 
979
      (not (pre KP_6)))) or 
980
      (KP_7 and 
981
      (not (pre KP_7)))) or 
982
      (KP_8 and 
983
      (not (pre KP_8)))) or 
984
      (KP_9 and 
985
      (not (pre KP_9)))) or 
986
      (KP_0 and 
987
      (not (pre KP_0))))) or 
988
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
989

    
990
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
991

    
992
   p10 = (true -> ((not COOKING) or 
993
      (
994
      (if (not (not COOKING))
995
         then 
996
               (if (MWI_FcnMaxI_In16 > 0)
997
                  then MWI_FcnMaxI_In16
998
                  else 0)
999
         else 639) > 0)));
1000

    
1001
   p27 = (((not (enable and 
1002
      (not KP_CLEAR))) or 
1003
      ((not KP_0) or 
1004
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1005
      (not KP_CLEAR))) or 
1006
      ((not (KP_0 and 
1007
      (not (pre KP_0)))) or 
1008
      (RIGHT_DIGIT = 0))));
1009

    
1010
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1011

    
1012
   KP_01 = KP_0;
1013

    
1014
   KP_11 = KP_1;
1015

    
1016
   KP_21 = KP_2;
1017

    
1018
   KP_31 = KP_3;
1019

    
1020
   KP_41 = KP_4;
1021

    
1022
   KP_51 = KP_5;
1023

    
1024
   KP_61 = KP_6;
1025

    
1026
   KP_71 = KP_7;
1027

    
1028
   KP_81 = KP_8;
1029

    
1030
   KP_91 = KP_9;
1031

    
1032
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1033
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1034
         then 
1035
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1036
                  then 0
1037
                  else 
1038
               (if KP_CLEAR
1039
                  then 0
1040
                  else 
1041
               (if 
1042
                  (if (
1043
                     (if (KP_01 and 
1044
                        (not (pre KP_01)))
1045
                        then 0
1046
                        else 
1047
                     (if (KP_11 and 
1048
                        (not (pre KP_11)))
1049
                        then 1
1050
                        else 
1051
                     (if (KP_21 and 
1052
                        (not (pre KP_21)))
1053
                        then 2
1054
                        else 
1055
                     (if (KP_31 and 
1056
                        (not (pre KP_31)))
1057
                        then 3
1058
                        else 
1059
                     (if (KP_41 and 
1060
                        (not (pre KP_41)))
1061
                        then 4
1062
                        else 
1063
                     (if (KP_51 and 
1064
                        (not (pre KP_51)))
1065
                        then 5
1066
                        else 
1067
                     (if (KP_61 and 
1068
                        (not (pre KP_61)))
1069
                        then 6
1070
                        else 
1071
                     (if (KP_71 and 
1072
                        (not (pre KP_71)))
1073
                        then 7
1074
                        else 
1075
                     (if (KP_81 and 
1076
                        (not (pre KP_81)))
1077
                        then 8
1078
                        else 
1079
                     (if (KP_91 and 
1080
                        (not (pre KP_91)))
1081
                        then 9
1082
                        else 10)))))))))) <= 9)
1083
                     then true
1084
                     else false)
1085
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1086
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1087
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1088

    
1089
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1090
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1091
         then 
1092
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1093
                  then 0
1094
                  else 
1095
               (if KP_CLEAR
1096
                  then 0
1097
                  else 
1098
               (if 
1099
                  (if (
1100
                     (if (KP_01 and 
1101
                        (not (pre KP_01)))
1102
                        then 0
1103
                        else 
1104
                     (if (KP_11 and 
1105
                        (not (pre KP_11)))
1106
                        then 1
1107
                        else 
1108
                     (if (KP_21 and 
1109
                        (not (pre KP_21)))
1110
                        then 2
1111
                        else 
1112
                     (if (KP_31 and 
1113
                        (not (pre KP_31)))
1114
                        then 3
1115
                        else 
1116
                     (if (KP_41 and 
1117
                        (not (pre KP_41)))
1118
                        then 4
1119
                        else 
1120
                     (if (KP_51 and 
1121
                        (not (pre KP_51)))
1122
                        then 5
1123
                        else 
1124
                     (if (KP_61 and 
1125
                        (not (pre KP_61)))
1126
                        then 6
1127
                        else 
1128
                     (if (KP_71 and 
1129
                        (not (pre KP_71)))
1130
                        then 7
1131
                        else 
1132
                     (if (KP_81 and 
1133
                        (not (pre KP_81)))
1134
                        then 8
1135
                        else 
1136
                     (if (KP_91 and 
1137
                        (not (pre KP_91)))
1138
                        then 9
1139
                        else 10)))))))))) <= 9)
1140
                     then true
1141
                     else false)
1142
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1143
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1144
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1145

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

    
1381
   STEPS_TO_COOK = (
1382
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1383
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1384
         then 0
1385
         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)) -> 
1386
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1387
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1388
         then 0
1389
         else 
1390
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1391
         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)
1392
         else (pre STEPS_TO_COOK))));
1393

    
1394
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1395
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1396
         then true
1397
         else 
1398
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1399
         then false
1400
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1401

    
1402
   SETUP = 
1403
      (if (1 = microwave_microwave_mode_logic_mode)
1404
         then true
1405
         else false);
1406

    
1407
   p32 = (true -> ((not (enable and 
1408
      (not KP_CLEAR))) or 
1409
      ((not ((KP_5 and 
1410
      (not (pre KP_5))) and 
1411
      ((not (KP_4 and 
1412
      (not (pre KP_4)))) and 
1413
      ((not (KP_3 and 
1414
      (not (pre KP_3)))) and 
1415
      ((not (KP_2 and 
1416
      (not (pre KP_2)))) and 
1417
      ((not (KP_1 and 
1418
      (not (pre KP_1)))) and 
1419
      (not (KP_0 and 
1420
      (not (pre KP_0)))))))))) or 
1421
      (RIGHT_DIGIT = 5))));
1422

    
1423
   enable = (true -> 
1424
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1425
         then true
1426
         else false));
1427

    
1428
   p28 = (true -> ((not (enable and 
1429
      (not KP_CLEAR))) or 
1430
      ((not ((KP_1 and 
1431
      (not (pre KP_1))) and 
1432
      (not (KP_0 and 
1433
      (not (pre KP_0)))))) or 
1434
      (RIGHT_DIGIT = 1))));
1435

    
1436
   p13 = ((not (enable and 
1437
      KP_CLEAR)) or 
1438
      (STEPS_TO_COOK = 0));
1439

    
1440
   p19 = (true -> ((not (enable and 
1441
      (not KP_CLEAR))) or 
1442
      (((((((((((KP_1 and 
1443
      (not (pre KP_1))) or 
1444
      (KP_2 and 
1445
      (not (pre KP_2)))) or 
1446
      (KP_3 and 
1447
      (not (pre KP_3)))) or 
1448
      (KP_4 and 
1449
      (not (pre KP_4)))) or 
1450
      (KP_5 and 
1451
      (not (pre KP_5)))) or 
1452
      (KP_6 and 
1453
      (not (pre KP_6)))) or 
1454
      (KP_7 and 
1455
      (not (pre KP_7)))) or 
1456
      (KP_8 and 
1457
      (not (pre KP_8)))) or 
1458
      (KP_9 and 
1459
      (not (pre KP_9)))) or 
1460
      (KP_0 and 
1461
      (not (pre KP_0)))) or 
1462
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1463

    
1464
   p29 = (true -> ((not (enable and 
1465
      (not KP_CLEAR))) or 
1466
      ((not ((KP_2 and 
1467
      (not (pre KP_2))) and 
1468
      ((not (KP_1 and 
1469
      (not (pre KP_1)))) and 
1470
      (not (KP_0 and 
1471
      (not (pre KP_0))))))) or 
1472
      (RIGHT_DIGIT = 2))));
1473

    
1474
   p34 = (true -> ((not (enable and 
1475
      (not KP_CLEAR))) or 
1476
      ((not ((KP_7 and 
1477
      (not (pre KP_7))) and 
1478
      ((not (KP_6 and 
1479
      (not (pre KP_6)))) and 
1480
      ((not (KP_5 and 
1481
      (not (pre KP_5)))) and 
1482
      ((not (KP_4 and 
1483
      (not (pre KP_4)))) and 
1484
      ((not (KP_3 and 
1485
      (not (pre KP_3)))) and 
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 = 7))));
1493

    
1494
   p12 = (enable or 
1495
      (STEPS_TO_COOK = 0));
1496

    
1497
   p21 = ((not (enable and 
1498
      KP_CLEAR)) or 
1499
      (MIDDLE_DIGIT = 0));
1500

    
1501
  --%PROPERTY OK=true;
1502
  --%MAIN;
1503

    
1504
tel
1505