Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (48.7 KB)

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

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

    
139
   rlt__Arrow4 = (639 -> 
140
      (if (not SUSPENDED)
141
         then 
142
               (if (MWI_FcnMaxI_In12 > 0)
143
                  then MWI_FcnMaxI_In12
144
                  else 0)
145
         else 639));
146

    
147
   rlt__Arrow3 = (639 -> 
148
      (if (not (not COOKING))
149
         then 
150
               (if (MWI_FcnMaxI_In16 > 0)
151
                  then MWI_FcnMaxI_In16
152
                  else 0)
153
         else 639));
154

    
155
   rlt__Arrow2 = (639 -> 
156
      (if (not (not SUSPENDED))
157
         then 
158
               (if (MWI_FcnMaxI_In15 > 0)
159
                  then MWI_FcnMaxI_In15
160
                  else 0)
161
         else 639));
162

    
163
   rlt__Arrow1 = (639 -> 
164
      (if (not COOKING)
165
         then 
166
               (if (MWI_FcnMaxI_In11 > 0)
167
                  then MWI_FcnMaxI_In11
168
                  else 0)
169
         else 639));
170

    
171
   rlt__Arrow = (639 -> 
172
      (if (not SETUP)
173
         then 
174
               (if (MWI_FcnMaxI_In1 > 0)
175
                  then MWI_FcnMaxI_In1
176
                  else 0)
177
         else 639));
178

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

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

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

    
261
   p33 = (true -> ((not (enable and 
262
      (not KP_CLEAR))) or 
263
      ((not ((KP_6 and 
264
      (not (pre KP_6))) and 
265
      ((not (KP_5 and 
266
      (not (pre KP_5)))) and 
267
      ((not (KP_4 and 
268
      (not (pre KP_4)))) and 
269
      ((not (KP_3 and 
270
      (not (pre KP_3)))) and 
271
      ((not (KP_2 and 
272
      (not (pre KP_2)))) and 
273
      ((not (KP_1 and 
274
      (not (pre KP_1)))) and 
275
      (not (KP_0 and 
276
      (not (pre KP_0))))))))))) or 
277
      (RIGHT_DIGIT = 6))));
278

    
279
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
280

    
281
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
282

    
283
   p25 = (enable or 
284
      (RIGHT_DIGIT = 0));
285

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

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

    
334
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
335

    
336
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
337
      (not (pre KP_CLEAR))));
338

    
339
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
340

    
341
   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));
342

    
343
   SUSPENDED = 
344
      (if (3 = microwave_microwave_mode_logic_mode)
345
         then true
346
         else false);
347

    
348
   p31 = (true -> ((not (enable and 
349
      (not KP_CLEAR))) or 
350
      ((not ((KP_4 and 
351
      (not (pre KP_4))) and 
352
      ((not (KP_3 and 
353
      (not (pre KP_3)))) and 
354
      ((not (KP_2 and 
355
      (not (pre KP_2)))) and 
356
      ((not (KP_1 and 
357
      (not (pre KP_1)))) and 
358
      (not (KP_0 and 
359
      (not (pre KP_0))))))))) or 
360
      (RIGHT_DIGIT = 4))));
361

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

    
386
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
387

    
388
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
389

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

    
414
   p20 = (enable or 
415
      (MIDDLE_DIGIT = 0));
416

    
417
   p26 = ((not (enable and 
418
      KP_CLEAR)) or 
419
      (RIGHT_DIGIT = 0));
420

    
421
   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);
422

    
423
   OK = (true -> ((not (enable and 
424
      (not KP_CLEAR))) or 
425
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
426

    
427
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
428

    
429

    
430
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
431

    
432
   p16 = ((not (enable and 
433
      KP_CLEAR)) or 
434
      (LEFT_DIGIT = 0));
435

    
436
   p30 = (true -> ((not (enable and 
437
      (not KP_CLEAR))) or 
438
      ((not ((KP_3 and 
439
      (not (pre KP_3))) and 
440
      ((not (KP_2 and 
441
      (not (pre KP_2)))) and 
442
      ((not (KP_1 and 
443
      (not (pre KP_1)))) and 
444
      (not (KP_0 and 
445
      (not (pre KP_0)))))))) or 
446
      (RIGHT_DIGIT = 3))));
447

    
448
   COOKING = 
449
      (if (2 = microwave_microwave_mode_logic_mode)
450
         then true
451
         else false);
452

    
453
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
454

    
455
   p15 = (enable or 
456
      (LEFT_DIGIT = 0));
457

    
458
   START_PRESSED = (KP_START -> (KP_START and 
459
      (not (pre KP_START))));
460

    
461
   chart_microwave_mode_logic_start = 
462
      (if (START_PRESSED = false)
463
         then 0
464
         else 1);
465

    
466
   chart_microwave_mode_logic_clear_off = 
467
      (if (CLEAR_PRESSED = false)
468
         then 0
469
         else 1);
470

    
471
   chart_microwave_mode_logic_door_closed = 
472
      (if (DOOR_CLOSED = false)
473
         then 0
474
         else 1);
475

    
476
   chart_microwave_mode_logic____wakeup___ = true;
477

    
478
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
479
      (if (pre chart_microwave_mode_logic____wakeup___)
480
         then false
481
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
482

    
483
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
484

    
485
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
486

    
487
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
488

    
489
   chart_microwave_mode_logic_final_state_states___root = 
490
      (if chart_microwave_mode_logic____wakeup___
491
         then 
492
               (if chart_microwave_mode_logic_rlt_evtInitStep
493
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
494
                  else 
495
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
496
                  
497
                  
498
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
499
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
500
                  then 
501
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
502
                           then 
503
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
504
                                    then 
505
                                          
506
                                          3
507
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
508
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
509
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
510
         else chart_microwave_mode_logic_begin_state_states___root);
511

    
512
   chart_microwave_mode_logic_mode = 
513
      (if chart_microwave_mode_logic____wakeup___
514
         then 
515
               (if chart_microwave_mode_logic_rlt_evtInitStep
516
                  then 
517
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
518
                           then 1
519
                           else chart_microwave_mode_logic_begin_state_outports_mode)
520
                  else 
521
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
522
                  
523
                  
524
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
525
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
526
                  then 
527
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
528
                           then 
529
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
530
                                    then 3
531
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
532
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
533
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
534
         else chart_microwave_mode_logic_begin_state_outports_mode);
535

    
536
   chart_microwave_mode_logic_steps_remaining = 
537
      (if chart_microwave_mode_logic____wakeup___
538
         then 
539
               (if chart_microwave_mode_logic_rlt_evtInitStep
540
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
541
                  else 
542
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
543
                  
544
                  
545
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
546
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
547
                  then 
548
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
549
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
550
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
551
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
552
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
553

    
554
   
555
   
556
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
557

    
558
   
559
   
560
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
561
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
562
         then STEPS_TO_COOK
563
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
564

    
565
   
566
   
567
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
568
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
569
      (
570
      (if (chart_microwave_mode_logic_start <> 0)
571
         then true
572
         else false) and 
573
      
574
      (if (
575
         (if ((STEPS_TO_COOK > 0) = false)
576
            then 0
577
            else 1) <> 0)
578
         then true
579
         else false))));
580

    
581
   
582
   
583
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
584
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
585
         then 
586
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
587
                  then 
588
                        
589
                        0
590
                  else chart_microwave_mode_logic_begin_state_states___root)
591
         else chart_microwave_mode_logic_begin_state_states___root);
592

    
593
   
594
   
595
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
596
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
597
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
598
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
599
   
600
   
601

    
602
   
603
   
604
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
605
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
606
         then 
607
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
608
                  then 
609
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
610
                           then 3
611
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
612
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
613
         else chart_microwave_mode_logic_begin_state_outports_mode);
614
   
615
   
616

    
617
   
618
   
619
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
620
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
621
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
622

    
623
   
624
   
625
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
626
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
627
         then 
628
               (if 
629
                  
630
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
631
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
632
                  then 
633
                        
634
                        0
635
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
636
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
637

    
638
   
639
   
640
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
641
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
642
         then 
643
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
644
                  then 
645
                        
646
                        4
647
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
648
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
649
   
650
   
651

    
652
   
653
   
654
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
655
      ((
656
      (if (chart_microwave_mode_logic_start <> 0)
657
         then true
658
         else false) and 
659
      
660
      (if (chart_microwave_mode_logic_door_closed <> 0)
661
         then true
662
         else false)) and 
663
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
664

    
665
   
666
   
667
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
668
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
669

    
670
   
671
   
672
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
673
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
674
         then 
675
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
676
                  then 
677
                        
678
                        1
679
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
680
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
681

    
682
   
683
   
684
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
685
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
686
         then 
687
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
688
                  then 1
689
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
690
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
691

    
692
   
693
   
694
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
695
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
696
         then 
697
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
698
                  then 
699
                        
700
                        2
701
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
702
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
703
   
704
   
705

    
706
   
707
   
708
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
709
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
710
         then 
711
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
712
                  then 2
713
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
714
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
715
   
716
   
717

    
718
   
719
   
720
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
721
      (
722
      (if (chart_microwave_mode_logic_clear_off <> 0)
723
         then true
724
         else false) and 
725
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
726
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
727
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
728

    
729
   
730
   
731
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
732
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
733

    
734
   
735
   
736
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
737
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
738
         then 
739
               (if 
740
                  
741
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
742
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
743
                  then 
744
                        
745
                        0
746
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
747
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
748

    
749
   
750
   
751
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
752
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
753
         then 0
754
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
755

    
756
   
757
   
758
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
759
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
760
         then 
761
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
762
                  then 
763
                        
764
                        4
765
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
766
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
767
   
768
   
769

    
770
   
771
   
772
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
773
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
774
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
775

    
776
   
777
   
778
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
779
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
780
         then 
781
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
782
                  then 1
783
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
784
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
785

    
786
   
787
   
788
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
789
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
790
         then 
791
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
792
                  then 
793
                        
794
                        1
795
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
796
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
797

    
798
   
799
   
800
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
801
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
802
         then 
803
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
804
                  then 
805
                        
806
                        2
807
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
808
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
809
   
810
   
811

    
812
   
813
   
814
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
815
      ((
816
      (if (chart_microwave_mode_logic_clear_off <> 0)
817
         then true
818
         else false) or 
819
      (not 
820
      (if (chart_microwave_mode_logic_door_closed <> 0)
821
         then true
822
         else false))) and 
823
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
824
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
825

    
826
   
827
   
828
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
829
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
830
         then 
831
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
832
                  then 
833
                        
834
                        1
835
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
836
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
837

    
838
   
839
   
840
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
841
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
842
         then 
843
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
844
                  then 2
845
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
846
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
847

    
848
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
849
      (if (not 
850
         
851
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
852
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
853
         then 
854
               
855
               1
856
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
857

    
858
   
859
   
860
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((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))) and 
864
      
865
      
866
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
867
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
868

    
869
   
870
   
871
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
872
      (
873
      
874
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
875
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
876
      
877
      (if (chart_microwave_mode_logic_door_closed <> 0)
878
         then true
879
         else false)));
880

    
881
   
882
   
883
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
884
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
885
         then 
886
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
887
                  then 
888
                        
889
                        2
890
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
891
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
892
   
893
   
894

    
895
   
896
   
897
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
898
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
899
         then 
900
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
901
                  then 2
902
                  else chart_microwave_mode_logic_begin_state_outports_mode)
903
         else chart_microwave_mode_logic_begin_state_outports_mode);
904
   
905
   
906

    
907
   
908
   
909
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
910
      (
911
      
912
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
913
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
914
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
915

    
916
   
917
   
918
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
919
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
920
         then 
921
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
922
                  then 
923
                        
924
                        3
925
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
926
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
927
   
928
   
929

    
930
   
931
   
932
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
933
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
934
         then 
935
               
936
               4
937
         else chart_microwave_mode_logic_begin_state_states___root);
938
   
939
   
940

    
941
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
942

    
943
   p17 = (((not (enable and 
944
      (not KP_CLEAR))) or 
945
      ((not (((((((((KP_1 or 
946
      KP_2) or 
947
      KP_3) or 
948
      KP_4) or 
949
      KP_5) or 
950
      KP_6) or 
951
      KP_7) or 
952
      KP_8) or 
953
      KP_9) or 
954
      KP_0)) or 
955
      (LEFT_DIGIT = 0))) -> ((not (enable and 
956
      (not KP_CLEAR))) or 
957
      ((not ((((((((((KP_1 and 
958
      (not (pre KP_1))) or 
959
      (KP_2 and 
960
      (not (pre KP_2)))) or 
961
      (KP_3 and 
962
      (not (pre KP_3)))) or 
963
      (KP_4 and 
964
      (not (pre KP_4)))) or 
965
      (KP_5 and 
966
      (not (pre KP_5)))) or 
967
      (KP_6 and 
968
      (not (pre KP_6)))) or 
969
      (KP_7 and 
970
      (not (pre KP_7)))) or 
971
      (KP_8 and 
972
      (not (pre KP_8)))) or 
973
      (KP_9 and 
974
      (not (pre KP_9)))) or 
975
      (KP_0 and 
976
      (not (pre KP_0))))) or 
977
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
978

    
979
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
980

    
981
   p27 = (((not (enable and 
982
      (not KP_CLEAR))) or 
983
      ((not KP_0) or 
984
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
985
      (not KP_CLEAR))) or 
986
      ((not (KP_0 and 
987
      (not (pre KP_0)))) or 
988
      (RIGHT_DIGIT = 0))));
989

    
990
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
991

    
992
   KP_01 = KP_0;
993

    
994
   KP_11 = KP_1;
995

    
996
   KP_21 = KP_2;
997

    
998
   KP_31 = KP_3;
999

    
1000
   KP_41 = KP_4;
1001

    
1002
   KP_51 = KP_5;
1003

    
1004
   KP_61 = KP_6;
1005

    
1006
   KP_71 = KP_7;
1007

    
1008
   KP_81 = KP_8;
1009

    
1010
   KP_91 = KP_9;
1011

    
1012
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1013
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1014
         then 
1015
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1016
                  then 0
1017
                  else 
1018
               (if KP_CLEAR
1019
                  then 0
1020
                  else 
1021
               (if 
1022
                  (if (
1023
                     (if (KP_01 and 
1024
                        (not (pre KP_01)))
1025
                        then 0
1026
                        else 
1027
                     (if (KP_11 and 
1028
                        (not (pre KP_11)))
1029
                        then 1
1030
                        else 
1031
                     (if (KP_21 and 
1032
                        (not (pre KP_21)))
1033
                        then 2
1034
                        else 
1035
                     (if (KP_31 and 
1036
                        (not (pre KP_31)))
1037
                        then 3
1038
                        else 
1039
                     (if (KP_41 and 
1040
                        (not (pre KP_41)))
1041
                        then 4
1042
                        else 
1043
                     (if (KP_51 and 
1044
                        (not (pre KP_51)))
1045
                        then 5
1046
                        else 
1047
                     (if (KP_61 and 
1048
                        (not (pre KP_61)))
1049
                        then 6
1050
                        else 
1051
                     (if (KP_71 and 
1052
                        (not (pre KP_71)))
1053
                        then 7
1054
                        else 
1055
                     (if (KP_81 and 
1056
                        (not (pre KP_81)))
1057
                        then 8
1058
                        else 
1059
                     (if (KP_91 and 
1060
                        (not (pre KP_91)))
1061
                        then 9
1062
                        else 10)))))))))) <= 9)
1063
                     then true
1064
                     else false)
1065
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1066
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1067
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1068

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

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

    
1361
   STEPS_TO_COOK = (
1362
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1363
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1364
         then 0
1365
         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)) -> 
1366
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1367
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1368
         then 0
1369
         else 
1370
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1371
         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)
1372
         else (pre STEPS_TO_COOK))));
1373

    
1374
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1375
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1376
         then true
1377
         else 
1378
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1379
         then false
1380
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1381

    
1382
   SETUP = 
1383
      (if (1 = microwave_microwave_mode_logic_mode)
1384
         then true
1385
         else false);
1386

    
1387
   p32 = (true -> ((not (enable and 
1388
      (not KP_CLEAR))) or 
1389
      ((not ((KP_5 and 
1390
      (not (pre KP_5))) and 
1391
      ((not (KP_4 and 
1392
      (not (pre KP_4)))) and 
1393
      ((not (KP_3 and 
1394
      (not (pre KP_3)))) and 
1395
      ((not (KP_2 and 
1396
      (not (pre KP_2)))) and 
1397
      ((not (KP_1 and 
1398
      (not (pre KP_1)))) and 
1399
      (not (KP_0 and 
1400
      (not (pre KP_0)))))))))) or 
1401
      (RIGHT_DIGIT = 5))));
1402

    
1403
   enable = (true -> 
1404
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1405
         then true
1406
         else false));
1407

    
1408
   p28 = (true -> ((not (enable and 
1409
      (not KP_CLEAR))) or 
1410
      ((not ((KP_1 and 
1411
      (not (pre KP_1))) and 
1412
      (not (KP_0 and 
1413
      (not (pre KP_0)))))) or 
1414
      (RIGHT_DIGIT = 1))));
1415

    
1416
   p19 = (true -> ((not (enable and 
1417
      (not KP_CLEAR))) or 
1418
      (((((((((((KP_1 and 
1419
      (not (pre KP_1))) or 
1420
      (KP_2 and 
1421
      (not (pre KP_2)))) or 
1422
      (KP_3 and 
1423
      (not (pre KP_3)))) or 
1424
      (KP_4 and 
1425
      (not (pre KP_4)))) or 
1426
      (KP_5 and 
1427
      (not (pre KP_5)))) or 
1428
      (KP_6 and 
1429
      (not (pre KP_6)))) or 
1430
      (KP_7 and 
1431
      (not (pre KP_7)))) or 
1432
      (KP_8 and 
1433
      (not (pre KP_8)))) or 
1434
      (KP_9 and 
1435
      (not (pre KP_9)))) or 
1436
      (KP_0 and 
1437
      (not (pre KP_0)))) or 
1438
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1439

    
1440
   p29 = (true -> ((not (enable and 
1441
      (not KP_CLEAR))) or 
1442
      ((not ((KP_2 and 
1443
      (not (pre KP_2))) and 
1444
      ((not (KP_1 and 
1445
      (not (pre KP_1)))) and 
1446
      (not (KP_0 and 
1447
      (not (pre KP_0))))))) or 
1448
      (RIGHT_DIGIT = 2))));
1449

    
1450
   p34 = (true -> ((not (enable and 
1451
      (not KP_CLEAR))) or 
1452
      ((not ((KP_7 and 
1453
      (not (pre KP_7))) and 
1454
      ((not (KP_6 and 
1455
      (not (pre KP_6)))) and 
1456
      ((not (KP_5 and 
1457
      (not (pre KP_5)))) and 
1458
      ((not (KP_4 and 
1459
      (not (pre KP_4)))) and 
1460
      ((not (KP_3 and 
1461
      (not (pre KP_3)))) and 
1462
      ((not (KP_2 and 
1463
      (not (pre KP_2)))) and 
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 = 7))));
1469

    
1470
   p21 = ((not (enable and 
1471
      KP_CLEAR)) or 
1472
      (MIDDLE_DIGIT = 0));
1473

    
1474
  --%PROPERTY OK=true;
1475
  --%MAIN;
1476

    
1477
tel
1478