Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

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

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

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

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

    
282
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
283

    
284
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
285

    
286
   p25 = (enable or 
287
      (RIGHT_DIGIT = 0));
288

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

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

    
337
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
338

    
339
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
340
      (not (pre KP_CLEAR))));
341

    
342
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
343

    
344
   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));
345

    
346
   SUSPENDED = 
347
      (if (3 = microwave_microwave_mode_logic_mode)
348
         then true
349
         else false);
350

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

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

    
389
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
390

    
391
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
392

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

    
417
   p20 = (enable or 
418
      (MIDDLE_DIGIT = 0));
419

    
420
   p26 = ((not (enable and 
421
      KP_CLEAR)) or 
422
      (RIGHT_DIGIT = 0));
423

    
424
   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);
425

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

    
430
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
431

    
432

    
433
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
434

    
435
   p16 = ((not (enable and 
436
      KP_CLEAR)) or 
437
      (LEFT_DIGIT = 0));
438

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

    
451
   COOKING = 
452
      (if (2 = microwave_microwave_mode_logic_mode)
453
         then true
454
         else false);
455

    
456
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
457

    
458
   p15 = (enable or 
459
      (LEFT_DIGIT = 0));
460

    
461
   START_PRESSED = (KP_START -> (KP_START and 
462
      (not (pre KP_START))));
463

    
464
   chart_microwave_mode_logic_start = 
465
      (if (START_PRESSED = false)
466
         then 0
467
         else 1);
468

    
469
   chart_microwave_mode_logic_clear_off = 
470
      (if (CLEAR_PRESSED = false)
471
         then 0
472
         else 1);
473

    
474
   chart_microwave_mode_logic_door_closed = 
475
      (if (DOOR_CLOSED = false)
476
         then 0
477
         else 1);
478

    
479
   chart_microwave_mode_logic____wakeup___ = true;
480

    
481
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
482
      (if (pre chart_microwave_mode_logic____wakeup___)
483
         then false
484
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
485

    
486
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
487

    
488
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
489

    
490
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
491

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

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

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

    
557
   
558
   
559
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
560

    
561
   
562
   
563
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
564
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
565
         then STEPS_TO_COOK
566
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
567

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

    
584
   
585
   
586
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
587
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
588
         then 
589
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
590
                  then 
591
                        
592
                        0
593
                  else chart_microwave_mode_logic_begin_state_states___root)
594
         else chart_microwave_mode_logic_begin_state_states___root);
595

    
596
   
597
   
598
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
599
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
600
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
601
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
602
   
603
   
604

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

    
620
   
621
   
622
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
623
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
624
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
625

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

    
641
   
642
   
643
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
644
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
645
         then 
646
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
647
                  then 
648
                        
649
                        4
650
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
651
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
652
   
653
   
654

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

    
668
   
669
   
670
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
671
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
672

    
673
   
674
   
675
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
676
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
677
         then 
678
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
679
                  then 
680
                        
681
                        1
682
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
683
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
684

    
685
   
686
   
687
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
688
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
689
         then 
690
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
691
                  then 1
692
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
693
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
694

    
695
   
696
   
697
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
698
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
699
         then 
700
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
701
                  then 
702
                        
703
                        2
704
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
705
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
706
   
707
   
708

    
709
   
710
   
711
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
712
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
713
         then 
714
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
715
                  then 2
716
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
717
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
718
   
719
   
720

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

    
732
   
733
   
734
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
735
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
736

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

    
752
   
753
   
754
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
755
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
756
         then 0
757
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
758

    
759
   
760
   
761
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
762
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
763
         then 
764
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
765
                  then 
766
                        
767
                        4
768
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
769
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
770
   
771
   
772

    
773
   
774
   
775
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
776
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
777
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
778

    
779
   
780
   
781
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
782
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
783
         then 
784
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
785
                  then 1
786
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
787
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
788

    
789
   
790
   
791
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
792
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
793
         then 
794
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
795
                  then 
796
                        
797
                        1
798
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
799
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
800

    
801
   
802
   
803
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
804
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
805
         then 
806
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
807
                  then 
808
                        
809
                        2
810
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
811
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
812
   
813
   
814

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

    
829
   
830
   
831
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
832
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
833
         then 
834
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
835
                  then 
836
                        
837
                        1
838
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
839
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
840

    
841
   
842
   
843
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
844
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
845
         then 
846
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
847
                  then 2
848
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
849
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
850

    
851
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
852
      (if (not 
853
         
854
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
855
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
856
         then 
857
               
858
               1
859
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
860

    
861
   
862
   
863
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
864
      
865
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
866
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
867
      
868
      
869
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
870
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
871

    
872
   
873
   
874
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 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)) and 
879
      
880
      (if (chart_microwave_mode_logic_door_closed <> 0)
881
         then true
882
         else false)));
883

    
884
   
885
   
886
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
887
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
888
         then 
889
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
890
                  then 
891
                        
892
                        2
893
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
894
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
895
   
896
   
897

    
898
   
899
   
900
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
901
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
902
         then 
903
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
904
                  then 2
905
                  else chart_microwave_mode_logic_begin_state_outports_mode)
906
         else chart_microwave_mode_logic_begin_state_outports_mode);
907
   
908
   
909

    
910
   
911
   
912
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
913
      (
914
      
915
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
916
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
917
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
918

    
919
   
920
   
921
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
922
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
923
         then 
924
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
925
                  then 
926
                        
927
                        3
928
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
929
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
930
   
931
   
932

    
933
   
934
   
935
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
936
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
937
         then 
938
               
939
               4
940
         else chart_microwave_mode_logic_begin_state_states___root);
941
   
942
   
943

    
944
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
945

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

    
982
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
983

    
984
   p27 = (((not (enable and 
985
      (not KP_CLEAR))) or 
986
      ((not KP_0) or 
987
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
988
      (not KP_CLEAR))) or 
989
      ((not (KP_0 and 
990
      (not (pre KP_0)))) or 
991
      (RIGHT_DIGIT = 0))));
992

    
993
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
994

    
995
   KP_01 = KP_0;
996

    
997
   KP_11 = KP_1;
998

    
999
   KP_21 = KP_2;
1000

    
1001
   KP_31 = KP_3;
1002

    
1003
   KP_41 = KP_4;
1004

    
1005
   KP_51 = KP_5;
1006

    
1007
   KP_61 = KP_6;
1008

    
1009
   KP_71 = KP_7;
1010

    
1011
   KP_81 = KP_8;
1012

    
1013
   KP_91 = KP_9;
1014

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

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

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

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

    
1377
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1378
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1379
         then true
1380
         else 
1381
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1382
         then false
1383
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1384

    
1385
   SETUP = 
1386
      (if (1 = microwave_microwave_mode_logic_mode)
1387
         then true
1388
         else false);
1389

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

    
1406
   enable = (true -> 
1407
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1408
         then true
1409
         else false));
1410

    
1411
   p28 = (true -> ((not (enable and 
1412
      (not KP_CLEAR))) or 
1413
      ((not ((KP_1 and 
1414
      (not (pre KP_1))) and 
1415
      (not (KP_0 and 
1416
      (not (pre KP_0)))))) or 
1417
      (RIGHT_DIGIT = 1))));
1418

    
1419
   p13 = ((not (enable and 
1420
      KP_CLEAR)) or 
1421
      (STEPS_TO_COOK = 0));
1422

    
1423
   p19 = (true -> ((not (enable and 
1424
      (not KP_CLEAR))) or 
1425
      (((((((((((KP_1 and 
1426
      (not (pre KP_1))) or 
1427
      (KP_2 and 
1428
      (not (pre KP_2)))) or 
1429
      (KP_3 and 
1430
      (not (pre KP_3)))) or 
1431
      (KP_4 and 
1432
      (not (pre KP_4)))) or 
1433
      (KP_5 and 
1434
      (not (pre KP_5)))) or 
1435
      (KP_6 and 
1436
      (not (pre KP_6)))) or 
1437
      (KP_7 and 
1438
      (not (pre KP_7)))) or 
1439
      (KP_8 and 
1440
      (not (pre KP_8)))) or 
1441
      (KP_9 and 
1442
      (not (pre KP_9)))) or 
1443
      (KP_0 and 
1444
      (not (pre KP_0)))) or 
1445
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1446

    
1447
   p29 = (true -> ((not (enable and 
1448
      (not KP_CLEAR))) or 
1449
      ((not ((KP_2 and 
1450
      (not (pre KP_2))) and 
1451
      ((not (KP_1 and 
1452
      (not (pre KP_1)))) and 
1453
      (not (KP_0 and 
1454
      (not (pre KP_0))))))) or 
1455
      (RIGHT_DIGIT = 2))));
1456

    
1457
   p34 = (true -> ((not (enable and 
1458
      (not KP_CLEAR))) or 
1459
      ((not ((KP_7 and 
1460
      (not (pre KP_7))) and 
1461
      ((not (KP_6 and 
1462
      (not (pre KP_6)))) and 
1463
      ((not (KP_5 and 
1464
      (not (pre KP_5)))) and 
1465
      ((not (KP_4 and 
1466
      (not (pre KP_4)))) and 
1467
      ((not (KP_3 and 
1468
      (not (pre KP_3)))) and 
1469
      ((not (KP_2 and 
1470
      (not (pre KP_2)))) and 
1471
      ((not (KP_1 and 
1472
      (not (pre KP_1)))) and 
1473
      (not (KP_0 and 
1474
      (not (pre KP_0)))))))))))) or 
1475
      (RIGHT_DIGIT = 7))));
1476

    
1477
   OK = ((not KP_CLEAR) or 
1478
      (not COOKING));
1479

    
1480
   p12 = (enable or 
1481
      (STEPS_TO_COOK = 0));
1482

    
1483
   p21 = ((not (enable and 
1484
      KP_CLEAR)) or 
1485
      (MIDDLE_DIGIT = 0));
1486

    
1487
  --%PROPERTY OK=true;
1488
  --%MAIN;
1489

    
1490
tel
1491