Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / kind_fmcad08 / large / microwave13.lus @ 22fe1c93

History | View | Annotate | Download (49.2 KB)

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

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

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

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

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

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

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

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

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

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

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

    
282
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
283

    
284
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
285

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

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

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

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

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

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

    
344
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) - ((((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10) * 10));
345

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

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

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

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

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

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

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

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

    
424
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10);
425

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

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

    
432

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

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

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

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

    
456
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
457

    
458
   p11 = ((not KP_CLEAR) or 
459
      (not COOKING));
460

    
461
   p15 = (enable or 
462
      (LEFT_DIGIT = 0));
463

    
464
   START_PRESSED = (KP_START -> (KP_START and 
465
      (not (pre KP_START))));
466

    
467
   chart_microwave_mode_logic_start = 
468
      (if (START_PRESSED = false)
469
         then 0
470
         else 1);
471

    
472
   chart_microwave_mode_logic_clear_off = 
473
      (if (CLEAR_PRESSED = false)
474
         then 0
475
         else 1);
476

    
477
   chart_microwave_mode_logic_door_closed = 
478
      (if (DOOR_CLOSED = false)
479
         then 0
480
         else 1);
481

    
482
   chart_microwave_mode_logic____wakeup___ = true;
483

    
484
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
485
      (if (pre chart_microwave_mode_logic____wakeup___)
486
         then false
487
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
488

    
489
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
490

    
491
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
492

    
493
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
494

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

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

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

    
560
   
561
   
562
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
563

    
564
   
565
   
566
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
567
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
568
         then STEPS_TO_COOK
569
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
570

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

    
587
   
588
   
589
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
590
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
591
         then 
592
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
593
                  then 
594
                        
595
                        0
596
                  else chart_microwave_mode_logic_begin_state_states___root)
597
         else chart_microwave_mode_logic_begin_state_states___root);
598

    
599
   
600
   
601
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
602
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
603
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
604
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
605
   
606
   
607

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

    
623
   
624
   
625
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
626
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
627
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
628

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

    
644
   
645
   
646
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
647
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
648
         then 
649
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
650
                  then 
651
                        
652
                        4
653
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
654
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
655
   
656
   
657

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

    
671
   
672
   
673
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
674
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
675

    
676
   
677
   
678
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
679
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
680
         then 
681
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
682
                  then 
683
                        
684
                        1
685
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
686
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
687

    
688
   
689
   
690
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
691
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
692
         then 
693
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
694
                  then 1
695
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
696
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
697

    
698
   
699
   
700
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
701
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
702
         then 
703
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
704
                  then 
705
                        
706
                        2
707
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
708
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
709
   
710
   
711

    
712
   
713
   
714
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
715
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
716
         then 
717
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
718
                  then 2
719
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
720
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
721
   
722
   
723

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

    
735
   
736
   
737
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
738
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
739

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

    
755
   
756
   
757
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
758
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
759
         then 0
760
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
761

    
762
   
763
   
764
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
765
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
766
         then 
767
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
768
                  then 
769
                        
770
                        4
771
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
772
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
773
   
774
   
775

    
776
   
777
   
778
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
779
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
780
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
781

    
782
   
783
   
784
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
785
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
786
         then 
787
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
788
                  then 1
789
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
790
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
791

    
792
   
793
   
794
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
795
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
796
         then 
797
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
798
                  then 
799
                        
800
                        1
801
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
802
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
803

    
804
   
805
   
806
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
807
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
808
         then 
809
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
810
                  then 
811
                        
812
                        2
813
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
814
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
815
   
816
   
817

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

    
832
   
833
   
834
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
835
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
836
         then 
837
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
838
                  then 
839
                        
840
                        1
841
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
842
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
843

    
844
   
845
   
846
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
847
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
848
         then 
849
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
850
                  then 2
851
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
852
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
853

    
854
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
855
      (if (not 
856
         
857
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
858
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
859
         then 
860
               
861
               1
862
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
863

    
864
   
865
   
866
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
867
      
868
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
869
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
870
      
871
      
872
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
873
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
874

    
875
   
876
   
877
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
878
      (
879
      
880
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
881
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
882
      
883
      (if (chart_microwave_mode_logic_door_closed <> 0)
884
         then true
885
         else false)));
886

    
887
   
888
   
889
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
890
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
891
         then 
892
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
893
                  then 
894
                        
895
                        2
896
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
897
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
898
   
899
   
900

    
901
   
902
   
903
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
904
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
905
         then 
906
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
907
                  then 2
908
                  else chart_microwave_mode_logic_begin_state_outports_mode)
909
         else chart_microwave_mode_logic_begin_state_outports_mode);
910
   
911
   
912

    
913
   
914
   
915
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
916
      (
917
      
918
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
919
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
920
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
921

    
922
   
923
   
924
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
925
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
926
         then 
927
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
928
                  then 
929
                        
930
                        3
931
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
932
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
933
   
934
   
935

    
936
   
937
   
938
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
939
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
940
         then 
941
               
942
               4
943
         else chart_microwave_mode_logic_begin_state_states___root);
944
   
945
   
946

    
947
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
948

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

    
985
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
986

    
987
   OK = (true -> ((not COOKING) or 
988
      (
989
      (if (not (not COOKING))
990
         then 
991
               (if (MWI_FcnMaxI_In16 > 0)
992
                  then MWI_FcnMaxI_In16
993
                  else 0)
994
         else 639) > 0)));
995

    
996
   p27 = (((not (enable and 
997
      (not KP_CLEAR))) or 
998
      ((not KP_0) or 
999
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1000
      (not KP_CLEAR))) or 
1001
      ((not (KP_0 and 
1002
      (not (pre KP_0)))) or 
1003
      (RIGHT_DIGIT = 0))));
1004

    
1005
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1006

    
1007
   KP_01 = KP_0;
1008

    
1009
   KP_11 = KP_1;
1010

    
1011
   KP_21 = KP_2;
1012

    
1013
   KP_31 = KP_3;
1014

    
1015
   KP_41 = KP_4;
1016

    
1017
   KP_51 = KP_5;
1018

    
1019
   KP_61 = KP_6;
1020

    
1021
   KP_71 = KP_7;
1022

    
1023
   KP_81 = KP_8;
1024

    
1025
   KP_91 = KP_9;
1026

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

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

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

    
1376
   STEPS_TO_COOK = (
1377
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1378
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1379
         then 0
1380
         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)) -> 
1381
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1382
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1383
         then 0
1384
         else 
1385
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1386
         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)
1387
         else (pre STEPS_TO_COOK))));
1388

    
1389
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1390
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1391
         then true
1392
         else 
1393
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1394
         then false
1395
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1396

    
1397
   SETUP = 
1398
      (if (1 = microwave_microwave_mode_logic_mode)
1399
         then true
1400
         else false);
1401

    
1402
   p32 = (true -> ((not (enable and 
1403
      (not KP_CLEAR))) or 
1404
      ((not ((KP_5 and 
1405
      (not (pre KP_5))) and 
1406
      ((not (KP_4 and 
1407
      (not (pre KP_4)))) and 
1408
      ((not (KP_3 and 
1409
      (not (pre KP_3)))) and 
1410
      ((not (KP_2 and 
1411
      (not (pre KP_2)))) and 
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 = 5))));
1417

    
1418
   enable = (true -> 
1419
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1420
         then true
1421
         else false));
1422

    
1423
   p28 = (true -> ((not (enable and 
1424
      (not KP_CLEAR))) or 
1425
      ((not ((KP_1 and 
1426
      (not (pre KP_1))) and 
1427
      (not (KP_0 and 
1428
      (not (pre KP_0)))))) or 
1429
      (RIGHT_DIGIT = 1))));
1430

    
1431
   p13 = ((not (enable and 
1432
      KP_CLEAR)) or 
1433
      (STEPS_TO_COOK = 0));
1434

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

    
1459
   p29 = (true -> ((not (enable and 
1460
      (not KP_CLEAR))) or 
1461
      ((not ((KP_2 and 
1462
      (not (pre KP_2))) and 
1463
      ((not (KP_1 and 
1464
      (not (pre KP_1)))) and 
1465
      (not (KP_0 and 
1466
      (not (pre KP_0))))))) or 
1467
      (RIGHT_DIGIT = 2))));
1468

    
1469
   p34 = (true -> ((not (enable and 
1470
      (not KP_CLEAR))) or 
1471
      ((not ((KP_7 and 
1472
      (not (pre KP_7))) and 
1473
      ((not (KP_6 and 
1474
      (not (pre KP_6)))) and 
1475
      ((not (KP_5 and 
1476
      (not (pre KP_5)))) and 
1477
      ((not (KP_4 and 
1478
      (not (pre KP_4)))) and 
1479
      ((not (KP_3 and 
1480
      (not (pre KP_3)))) and 
1481
      ((not (KP_2 and 
1482
      (not (pre KP_2)))) and 
1483
      ((not (KP_1 and 
1484
      (not (pre KP_1)))) and 
1485
      (not (KP_0 and 
1486
      (not (pre KP_0)))))))))))) or 
1487
      (RIGHT_DIGIT = 7))));
1488

    
1489
   p12 = (enable or 
1490
      (STEPS_TO_COOK = 0));
1491

    
1492
   p21 = ((not (enable and 
1493
      KP_CLEAR)) or 
1494
      (MIDDLE_DIGIT = 0));
1495

    
1496
  --%PROPERTY OK=true;
1497
  --%MAIN;
1498

    
1499
tel
1500