Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (50 KB)

1

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

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

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

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

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

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

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

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

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

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

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

    
288
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
289

    
290
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
291

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

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

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

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

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

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

    
350
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) - ((((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10) * 10));
351

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

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

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

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

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

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

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

    
426
   p26 = ((not (enable and 
427
      KP_CLEAR)) or 
428
      (RIGHT_DIGIT = 0));
429

    
430
   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);
431

    
432
   p14 = (true -> ((not (enable and 
433
      (not KP_CLEAR))) or 
434
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
435

    
436
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
437

    
438
   OK = (true -> ((not SETUP) or 
439
      (
440
      (if (not (not SETUP))
441
         then 
442
               (if (MWI_FcnMaxI_In13 > 0)
443
                  then MWI_FcnMaxI_In13
444
                  else 0)
445
         else 639) > 0)));
446

    
447
   p8 = (true -> ((not SUSPENDED) or 
448
      (
449
      (if (not (not SUSPENDED))
450
         then 
451
               (if (MWI_FcnMaxI_In15 > 0)
452
                  then MWI_FcnMaxI_In15
453
                  else 0)
454
         else 639) > 0)));
455

    
456
   p7 = (true -> ((not COOKING) or 
457
      (
458
      (if (not (not COOKING))
459
         then 
460
               (if (MWI_FcnMaxI_In16 > 0)
461
                  then MWI_FcnMaxI_In16
462
                  else 0)
463
         else 639) > 0)));
464

    
465
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
466

    
467
   p16 = ((not (enable and 
468
      KP_CLEAR)) or 
469
      (LEFT_DIGIT = 0));
470

    
471
   p30 = (true -> ((not (enable and 
472
      (not KP_CLEAR))) or 
473
      ((not ((KP_3 and 
474
      (not (pre KP_3))) and 
475
      ((not (KP_2 and 
476
      (not (pre KP_2)))) and 
477
      ((not (KP_1 and 
478
      (not (pre KP_1)))) and 
479
      (not (KP_0 and 
480
      (not (pre KP_0)))))))) or 
481
      (RIGHT_DIGIT = 3))));
482

    
483
   COOKING = 
484
      (if (2 = microwave_microwave_mode_logic_mode)
485
         then true
486
         else false);
487

    
488
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
489

    
490
   p11 = ((not KP_CLEAR) or 
491
      (not COOKING));
492

    
493
   p9 = (true -> ((not COOKING) or 
494
      DOOR_CLOSED));
495

    
496
   p15 = (enable or 
497
      (LEFT_DIGIT = 0));
498

    
499
   START_PRESSED = (KP_START -> (KP_START and 
500
      (not (pre KP_START))));
501

    
502
   chart_microwave_mode_logic_start = 
503
      (if (START_PRESSED = false)
504
         then 0
505
         else 1);
506

    
507
   chart_microwave_mode_logic_clear_off = 
508
      (if (CLEAR_PRESSED = false)
509
         then 0
510
         else 1);
511

    
512
   chart_microwave_mode_logic_door_closed = 
513
      (if (DOOR_CLOSED = false)
514
         then 0
515
         else 1);
516

    
517
   chart_microwave_mode_logic____wakeup___ = true;
518

    
519
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
520
      (if (pre chart_microwave_mode_logic____wakeup___)
521
         then false
522
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
523

    
524
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
525

    
526
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
527

    
528
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
529

    
530
   chart_microwave_mode_logic_final_state_states___root = 
531
      (if chart_microwave_mode_logic____wakeup___
532
         then 
533
               (if chart_microwave_mode_logic_rlt_evtInitStep
534
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
535
                  else 
536
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
537
                  
538
                  
539
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
540
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
541
                  then 
542
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
543
                           then 
544
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
545
                                    then 
546
                                          
547
                                          3
548
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
549
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
550
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
551
         else chart_microwave_mode_logic_begin_state_states___root);
552

    
553
   chart_microwave_mode_logic_mode = 
554
      (if chart_microwave_mode_logic____wakeup___
555
         then 
556
               (if chart_microwave_mode_logic_rlt_evtInitStep
557
                  then 
558
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
559
                           then 1
560
                           else chart_microwave_mode_logic_begin_state_outports_mode)
561
                  else 
562
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
563
                  
564
                  
565
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
566
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
567
                  then 
568
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
569
                           then 
570
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
571
                                    then 3
572
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
573
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
574
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
575
         else chart_microwave_mode_logic_begin_state_outports_mode);
576

    
577
   chart_microwave_mode_logic_steps_remaining = 
578
      (if chart_microwave_mode_logic____wakeup___
579
         then 
580
               (if chart_microwave_mode_logic_rlt_evtInitStep
581
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
582
                  else 
583
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
584
                  
585
                  
586
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
587
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
588
                  then 
589
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
590
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
591
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
592
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
593
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
594

    
595
   
596
   
597
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
598

    
599
   
600
   
601
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
602
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
603
         then STEPS_TO_COOK
604
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
605

    
606
   
607
   
608
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
609
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
610
      (
611
      (if (chart_microwave_mode_logic_start <> 0)
612
         then true
613
         else false) and 
614
      
615
      (if (
616
         (if ((STEPS_TO_COOK > 0) = false)
617
            then 0
618
            else 1) <> 0)
619
         then true
620
         else false))));
621

    
622
   
623
   
624
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
625
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
626
         then 
627
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
628
                  then 
629
                        
630
                        0
631
                  else chart_microwave_mode_logic_begin_state_states___root)
632
         else chart_microwave_mode_logic_begin_state_states___root);
633

    
634
   
635
   
636
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
637
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
638
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
639
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
640
   
641
   
642

    
643
   
644
   
645
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
646
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
647
         then 
648
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
649
                  then 
650
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
651
                           then 3
652
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
653
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
654
         else chart_microwave_mode_logic_begin_state_outports_mode);
655
   
656
   
657

    
658
   
659
   
660
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
661
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
662
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
663

    
664
   
665
   
666
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
667
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
668
         then 
669
               (if 
670
                  
671
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
672
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
673
                  then 
674
                        
675
                        0
676
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
677
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
678

    
679
   
680
   
681
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
682
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
683
         then 
684
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
685
                  then 
686
                        
687
                        4
688
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
689
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
690
   
691
   
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
696
      ((
697
      (if (chart_microwave_mode_logic_start <> 0)
698
         then true
699
         else false) and 
700
      
701
      (if (chart_microwave_mode_logic_door_closed <> 0)
702
         then true
703
         else false)) and 
704
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
705

    
706
   
707
   
708
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
709
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
710

    
711
   
712
   
713
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
714
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
715
         then 
716
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
717
                  then 
718
                        
719
                        1
720
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
721
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
722

    
723
   
724
   
725
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
726
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
727
         then 
728
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
729
                  then 1
730
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
731
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
732

    
733
   
734
   
735
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
736
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
737
         then 
738
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
739
                  then 
740
                        
741
                        2
742
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
743
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
744
   
745
   
746

    
747
   
748
   
749
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
750
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
751
         then 
752
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
753
                  then 2
754
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
755
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
756
   
757
   
758

    
759
   
760
   
761
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
762
      (
763
      (if (chart_microwave_mode_logic_clear_off <> 0)
764
         then true
765
         else false) and 
766
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
767
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
768
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
769

    
770
   
771
   
772
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
773
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
774

    
775
   
776
   
777
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
778
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
779
         then 
780
               (if 
781
                  
782
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
783
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
784
                  then 
785
                        
786
                        0
787
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
788
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
789

    
790
   
791
   
792
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
793
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
794
         then 0
795
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
796

    
797
   
798
   
799
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
800
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
801
         then 
802
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
803
                  then 
804
                        
805
                        4
806
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
807
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
808
   
809
   
810

    
811
   
812
   
813
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
814
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
815
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
816

    
817
   
818
   
819
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
820
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
821
         then 
822
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
823
                  then 1
824
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
825
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
826

    
827
   
828
   
829
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
830
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
831
         then 
832
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
833
                  then 
834
                        
835
                        1
836
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
837
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
838

    
839
   
840
   
841
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
842
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
843
         then 
844
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
845
                  then 
846
                        
847
                        2
848
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
849
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
850
   
851
   
852

    
853
   
854
   
855
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
856
      ((
857
      (if (chart_microwave_mode_logic_clear_off <> 0)
858
         then true
859
         else false) or 
860
      (not 
861
      (if (chart_microwave_mode_logic_door_closed <> 0)
862
         then true
863
         else false))) and 
864
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
865
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
866

    
867
   
868
   
869
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
870
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
871
         then 
872
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
873
                  then 
874
                        
875
                        1
876
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
877
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
878

    
879
   
880
   
881
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
882
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
883
         then 
884
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
885
                  then 2
886
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
887
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
888

    
889
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
890
      (if (not 
891
         
892
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
893
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
894
         then 
895
               
896
               1
897
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
898

    
899
   
900
   
901
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
902
      
903
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
904
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
905
      
906
      
907
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
908
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
909

    
910
   
911
   
912
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
913
      (
914
      
915
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
916
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
917
      
918
      (if (chart_microwave_mode_logic_door_closed <> 0)
919
         then true
920
         else false)));
921

    
922
   
923
   
924
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
925
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
926
         then 
927
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
928
                  then 
929
                        
930
                        2
931
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
932
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
933
   
934
   
935

    
936
   
937
   
938
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
939
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
940
         then 
941
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
942
                  then 2
943
                  else chart_microwave_mode_logic_begin_state_outports_mode)
944
         else chart_microwave_mode_logic_begin_state_outports_mode);
945
   
946
   
947

    
948
   
949
   
950
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
951
      (
952
      
953
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
954
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
955
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
956

    
957
   
958
   
959
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
960
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
961
         then 
962
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
963
                  then 
964
                        
965
                        3
966
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
967
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
968
   
969
   
970

    
971
   
972
   
973
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
974
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
975
         then 
976
               
977
               4
978
         else chart_microwave_mode_logic_begin_state_states___root);
979
   
980
   
981

    
982
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
983

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

    
1020
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1021

    
1022
   p10 = (true -> ((not COOKING) or 
1023
      (
1024
      (if (not (not COOKING))
1025
         then 
1026
               (if (MWI_FcnMaxI_In16 > 0)
1027
                  then MWI_FcnMaxI_In16
1028
                  else 0)
1029
         else 639) > 0)));
1030

    
1031
   p27 = (((not (enable and 
1032
      (not KP_CLEAR))) or 
1033
      ((not KP_0) or 
1034
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1035
      (not KP_CLEAR))) or 
1036
      ((not (KP_0 and 
1037
      (not (pre KP_0)))) or 
1038
      (RIGHT_DIGIT = 0))));
1039

    
1040
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1041

    
1042
   KP_01 = KP_0;
1043

    
1044
   KP_11 = KP_1;
1045

    
1046
   KP_21 = KP_2;
1047

    
1048
   KP_31 = KP_3;
1049

    
1050
   KP_41 = KP_4;
1051

    
1052
   KP_51 = KP_5;
1053

    
1054
   KP_61 = KP_6;
1055

    
1056
   KP_71 = KP_7;
1057

    
1058
   KP_81 = KP_8;
1059

    
1060
   KP_91 = KP_9;
1061

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

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

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

    
1411
   STEPS_TO_COOK = (
1412
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1413
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1414
         then 0
1415
         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)) -> 
1416
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1417
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1418
         then 0
1419
         else 
1420
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1421
         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)
1422
         else (pre STEPS_TO_COOK))));
1423

    
1424
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1425
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1426
         then true
1427
         else 
1428
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1429
         then false
1430
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1431

    
1432
   SETUP = 
1433
      (if (1 = microwave_microwave_mode_logic_mode)
1434
         then true
1435
         else false);
1436

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

    
1453
   enable = (true -> 
1454
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1455
         then true
1456
         else false));
1457

    
1458
   p28 = (true -> ((not (enable and 
1459
      (not KP_CLEAR))) or 
1460
      ((not ((KP_1 and 
1461
      (not (pre KP_1))) and 
1462
      (not (KP_0 and 
1463
      (not (pre KP_0)))))) or 
1464
      (RIGHT_DIGIT = 1))));
1465

    
1466
   p13 = ((not (enable and 
1467
      KP_CLEAR)) or 
1468
      (STEPS_TO_COOK = 0));
1469

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

    
1494
   p29 = (true -> ((not (enable and 
1495
      (not KP_CLEAR))) or 
1496
      ((not ((KP_2 and 
1497
      (not (pre KP_2))) and 
1498
      ((not (KP_1 and 
1499
      (not (pre KP_1)))) and 
1500
      (not (KP_0 and 
1501
      (not (pre KP_0))))))) or 
1502
      (RIGHT_DIGIT = 2))));
1503

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

    
1524
   p12 = (enable or 
1525
      (STEPS_TO_COOK = 0));
1526

    
1527
   p21 = ((not (enable and 
1528
      KP_CLEAR)) or 
1529
      (MIDDLE_DIGIT = 0));
1530

    
1531
  --%PROPERTY OK=true;
1532
  --%MAIN;
1533

    
1534
tel
1535