Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

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

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

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

    
281
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
282

    
283
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
284

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
431

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

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

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

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

    
455
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
456

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

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

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

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

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

    
478
   chart_microwave_mode_logic____wakeup___ = true;
479

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
943
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
944

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

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

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

    
992
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
993

    
994
   KP_01 = KP_0;
995

    
996
   KP_11 = KP_1;
997

    
998
   KP_21 = KP_2;
999

    
1000
   KP_31 = KP_3;
1001

    
1002
   KP_41 = KP_4;
1003

    
1004
   KP_51 = KP_5;
1005

    
1006
   KP_61 = KP_6;
1007

    
1008
   KP_71 = KP_7;
1009

    
1010
   KP_81 = KP_8;
1011

    
1012
   KP_91 = KP_9;
1013

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

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

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

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

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

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

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

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

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

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

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

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

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

    
1476
   OK = (enable or 
1477
      (STEPS_TO_COOK = 0));
1478

    
1479
   p21 = ((not (enable and 
1480
      KP_CLEAR)) or 
1481
      (MIDDLE_DIGIT = 0));
1482

    
1483
  --%PROPERTY OK=true;
1484
  --%MAIN;
1485

    
1486
tel
1487