Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

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

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

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

    
283
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
284

    
285
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
286

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
433

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

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

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

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

    
457
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
458

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

    
462
   OK = (true -> ((not COOKING) or 
463
      DOOR_CLOSED));
464

    
465
   p15 = (enable or 
466
      (LEFT_DIGIT = 0));
467

    
468
   START_PRESSED = (KP_START -> (KP_START and 
469
      (not (pre KP_START))));
470

    
471
   chart_microwave_mode_logic_start = 
472
      (if (START_PRESSED = false)
473
         then 0
474
         else 1);
475

    
476
   chart_microwave_mode_logic_clear_off = 
477
      (if (CLEAR_PRESSED = false)
478
         then 0
479
         else 1);
480

    
481
   chart_microwave_mode_logic_door_closed = 
482
      (if (DOOR_CLOSED = false)
483
         then 0
484
         else 1);
485

    
486
   chart_microwave_mode_logic____wakeup___ = true;
487

    
488
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
489
      (if (pre chart_microwave_mode_logic____wakeup___)
490
         then false
491
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
492

    
493
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
494

    
495
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
496

    
497
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
498

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

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

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

    
564
   
565
   
566
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
567

    
568
   
569
   
570
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
571
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
572
         then STEPS_TO_COOK
573
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
574

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

    
591
   
592
   
593
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
594
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
595
         then 
596
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
597
                  then 
598
                        
599
                        0
600
                  else chart_microwave_mode_logic_begin_state_states___root)
601
         else chart_microwave_mode_logic_begin_state_states___root);
602

    
603
   
604
   
605
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
606
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
607
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
608
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
609
   
610
   
611

    
612
   
613
   
614
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
615
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
616
         then 
617
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
618
                  then 
619
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
620
                           then 3
621
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
622
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
623
         else chart_microwave_mode_logic_begin_state_outports_mode);
624
   
625
   
626

    
627
   
628
   
629
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
630
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
631
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
632

    
633
   
634
   
635
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
636
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
637
         then 
638
               (if 
639
                  
640
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
641
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
642
                  then 
643
                        
644
                        0
645
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
646
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
647

    
648
   
649
   
650
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
651
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
652
         then 
653
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
654
                  then 
655
                        
656
                        4
657
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
658
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
659
   
660
   
661

    
662
   
663
   
664
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
665
      ((
666
      (if (chart_microwave_mode_logic_start <> 0)
667
         then true
668
         else false) and 
669
      
670
      (if (chart_microwave_mode_logic_door_closed <> 0)
671
         then true
672
         else false)) and 
673
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
674

    
675
   
676
   
677
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
678
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
679

    
680
   
681
   
682
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
683
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
684
         then 
685
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
686
                  then 
687
                        
688
                        1
689
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
690
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
691

    
692
   
693
   
694
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
695
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
696
         then 
697
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
698
                  then 1
699
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
700
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
701

    
702
   
703
   
704
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
705
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
706
         then 
707
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
708
                  then 
709
                        
710
                        2
711
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
712
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
713
   
714
   
715

    
716
   
717
   
718
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
719
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
720
         then 
721
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
722
                  then 2
723
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
724
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
725
   
726
   
727

    
728
   
729
   
730
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
731
      (
732
      (if (chart_microwave_mode_logic_clear_off <> 0)
733
         then true
734
         else false) and 
735
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
736
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
737
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
738

    
739
   
740
   
741
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
742
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
743

    
744
   
745
   
746
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
747
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
748
         then 
749
               (if 
750
                  
751
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
752
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
753
                  then 
754
                        
755
                        0
756
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
757
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
758

    
759
   
760
   
761
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
762
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
763
         then 0
764
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
765

    
766
   
767
   
768
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
769
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
770
         then 
771
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
772
                  then 
773
                        
774
                        4
775
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
776
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
777
   
778
   
779

    
780
   
781
   
782
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
783
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
784
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
785

    
786
   
787
   
788
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
789
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
790
         then 
791
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
792
                  then 1
793
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
794
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
795

    
796
   
797
   
798
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
799
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
800
         then 
801
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
802
                  then 
803
                        
804
                        1
805
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
806
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
807

    
808
   
809
   
810
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
811
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
812
         then 
813
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
814
                  then 
815
                        
816
                        2
817
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
818
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
819
   
820
   
821

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

    
836
   
837
   
838
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
839
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
840
         then 
841
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
842
                  then 
843
                        
844
                        1
845
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
846
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
847

    
848
   
849
   
850
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
851
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
852
         then 
853
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
854
                  then 2
855
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
856
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
857

    
858
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
859
      (if (not 
860
         
861
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
862
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
863
         then 
864
               
865
               1
866
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
867

    
868
   
869
   
870
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
871
      
872
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
873
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
874
      
875
      
876
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
877
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
878

    
879
   
880
   
881
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
882
      (
883
      
884
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
885
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
886
      
887
      (if (chart_microwave_mode_logic_door_closed <> 0)
888
         then true
889
         else false)));
890

    
891
   
892
   
893
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
894
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
895
         then 
896
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
897
                  then 
898
                        
899
                        2
900
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
901
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
902
   
903
   
904

    
905
   
906
   
907
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
908
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
909
         then 
910
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
911
                  then 2
912
                  else chart_microwave_mode_logic_begin_state_outports_mode)
913
         else chart_microwave_mode_logic_begin_state_outports_mode);
914
   
915
   
916

    
917
   
918
   
919
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
920
      (
921
      
922
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
923
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
924
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
925

    
926
   
927
   
928
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
929
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
930
         then 
931
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
932
                  then 
933
                        
934
                        3
935
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
936
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
937
   
938
   
939

    
940
   
941
   
942
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
943
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
944
         then 
945
               
946
               4
947
         else chart_microwave_mode_logic_begin_state_states___root);
948
   
949
   
950

    
951
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
952

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

    
989
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
990

    
991
   p10 = (true -> ((not COOKING) or 
992
      (
993
      (if (not (not COOKING))
994
         then 
995
               (if (MWI_FcnMaxI_In16 > 0)
996
                  then MWI_FcnMaxI_In16
997
                  else 0)
998
         else 639) > 0)));
999

    
1000
   p27 = (((not (enable and 
1001
      (not KP_CLEAR))) or 
1002
      ((not KP_0) or 
1003
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1004
      (not KP_CLEAR))) or 
1005
      ((not (KP_0 and 
1006
      (not (pre KP_0)))) or 
1007
      (RIGHT_DIGIT = 0))));
1008

    
1009
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1010

    
1011
   KP_01 = KP_0;
1012

    
1013
   KP_11 = KP_1;
1014

    
1015
   KP_21 = KP_2;
1016

    
1017
   KP_31 = KP_3;
1018

    
1019
   KP_41 = KP_4;
1020

    
1021
   KP_51 = KP_5;
1022

    
1023
   KP_61 = KP_6;
1024

    
1025
   KP_71 = KP_7;
1026

    
1027
   KP_81 = KP_8;
1028

    
1029
   KP_91 = KP_9;
1030

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

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

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

    
1380
   STEPS_TO_COOK = (
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 ((((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)) -> 
1385
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1386
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1387
         then 0
1388
         else 
1389
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1390
         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)
1391
         else (pre STEPS_TO_COOK))));
1392

    
1393
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1394
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1395
         then true
1396
         else 
1397
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1398
         then false
1399
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1400

    
1401
   SETUP = 
1402
      (if (1 = microwave_microwave_mode_logic_mode)
1403
         then true
1404
         else false);
1405

    
1406
   p32 = (true -> ((not (enable and 
1407
      (not KP_CLEAR))) or 
1408
      ((not ((KP_5 and 
1409
      (not (pre KP_5))) and 
1410
      ((not (KP_4 and 
1411
      (not (pre KP_4)))) and 
1412
      ((not (KP_3 and 
1413
      (not (pre KP_3)))) and 
1414
      ((not (KP_2 and 
1415
      (not (pre KP_2)))) and 
1416
      ((not (KP_1 and 
1417
      (not (pre KP_1)))) and 
1418
      (not (KP_0 and 
1419
      (not (pre KP_0)))))))))) or 
1420
      (RIGHT_DIGIT = 5))));
1421

    
1422
   enable = (true -> 
1423
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1424
         then true
1425
         else false));
1426

    
1427
   p28 = (true -> ((not (enable and 
1428
      (not KP_CLEAR))) or 
1429
      ((not ((KP_1 and 
1430
      (not (pre KP_1))) and 
1431
      (not (KP_0 and 
1432
      (not (pre KP_0)))))) or 
1433
      (RIGHT_DIGIT = 1))));
1434

    
1435
   p13 = ((not (enable and 
1436
      KP_CLEAR)) or 
1437
      (STEPS_TO_COOK = 0));
1438

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

    
1463
   p29 = (true -> ((not (enable and 
1464
      (not KP_CLEAR))) or 
1465
      ((not ((KP_2 and 
1466
      (not (pre KP_2))) and 
1467
      ((not (KP_1 and 
1468
      (not (pre KP_1)))) and 
1469
      (not (KP_0 and 
1470
      (not (pre KP_0))))))) or 
1471
      (RIGHT_DIGIT = 2))));
1472

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

    
1493
   p12 = (enable or 
1494
      (STEPS_TO_COOK = 0));
1495

    
1496
   p21 = ((not (enable and 
1497
      KP_CLEAR)) or 
1498
      (MIDDLE_DIGIT = 0));
1499

    
1500
  --%PROPERTY OK=true;
1501
  --%MAIN;
1502

    
1503
tel
1504