Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

    
136
   rlt__Arrow4 = (639 -> 
137
      (if (not SUSPENDED)
138
         then 
139
               (if (MWI_FcnMaxI_In12 > 0)
140
                  then MWI_FcnMaxI_In12
141
                  else 0)
142
         else 639));
143

    
144
   rlt__Arrow3 = (639 -> 
145
      (if (not (not COOKING))
146
         then 
147
               (if (MWI_FcnMaxI_In16 > 0)
148
                  then MWI_FcnMaxI_In16
149
                  else 0)
150
         else 639));
151

    
152
   rlt__Arrow2 = (639 -> 
153
      (if (not (not SUSPENDED))
154
         then 
155
               (if (MWI_FcnMaxI_In15 > 0)
156
                  then MWI_FcnMaxI_In15
157
                  else 0)
158
         else 639));
159

    
160
   rlt__Arrow1 = (639 -> 
161
      (if (not COOKING)
162
         then 
163
               (if (MWI_FcnMaxI_In11 > 0)
164
                  then MWI_FcnMaxI_In11
165
                  else 0)
166
         else 639));
167

    
168
   rlt__Arrow = (639 -> 
169
      (if (not SETUP)
170
         then 
171
               (if (MWI_FcnMaxI_In1 > 0)
172
                  then MWI_FcnMaxI_In1
173
                  else 0)
174
         else 639));
175

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

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

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

    
258
   p33 = (true -> ((not (enable and 
259
      (not KP_CLEAR))) or 
260
      ((not ((KP_6 and 
261
      (not (pre KP_6))) and 
262
      ((not (KP_5 and 
263
      (not (pre KP_5)))) and 
264
      ((not (KP_4 and 
265
      (not (pre KP_4)))) and 
266
      ((not (KP_3 and 
267
      (not (pre KP_3)))) and 
268
      ((not (KP_2 and 
269
      (not (pre KP_2)))) and 
270
      ((not (KP_1 and 
271
      (not (pre KP_1)))) and 
272
      (not (KP_0 and 
273
      (not (pre KP_0))))))))))) or 
274
      (RIGHT_DIGIT = 6))));
275

    
276
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
277

    
278
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
279

    
280
   p25 = (enable or 
281
      (RIGHT_DIGIT = 0));
282

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

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

    
331
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
332

    
333
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
334
      (not (pre KP_CLEAR))));
335

    
336
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
337

    
338
   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));
339

    
340
   SUSPENDED = 
341
      (if (3 = microwave_microwave_mode_logic_mode)
342
         then true
343
         else false);
344

    
345
   p31 = (true -> ((not (enable and 
346
      (not KP_CLEAR))) or 
347
      ((not ((KP_4 and 
348
      (not (pre KP_4))) and 
349
      ((not (KP_3 and 
350
      (not (pre KP_3)))) and 
351
      ((not (KP_2 and 
352
      (not (pre KP_2)))) and 
353
      ((not (KP_1 and 
354
      (not (pre KP_1)))) and 
355
      (not (KP_0 and 
356
      (not (pre KP_0))))))))) or 
357
      (RIGHT_DIGIT = 4))));
358

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

    
383
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
384

    
385
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
386

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

    
411
   p20 = (enable or 
412
      (MIDDLE_DIGIT = 0));
413

    
414
   p26 = ((not (enable and 
415
      KP_CLEAR)) or 
416
      (RIGHT_DIGIT = 0));
417

    
418
   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);
419

    
420
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
421

    
422

    
423
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
424

    
425
   OK = ((not (enable and 
426
      KP_CLEAR)) or 
427
      (LEFT_DIGIT = 0));
428

    
429
   p30 = (true -> ((not (enable and 
430
      (not KP_CLEAR))) or 
431
      ((not ((KP_3 and 
432
      (not (pre KP_3))) and 
433
      ((not (KP_2 and 
434
      (not (pre KP_2)))) and 
435
      ((not (KP_1 and 
436
      (not (pre KP_1)))) and 
437
      (not (KP_0 and 
438
      (not (pre KP_0)))))))) or 
439
      (RIGHT_DIGIT = 3))));
440

    
441
   COOKING = 
442
      (if (2 = microwave_microwave_mode_logic_mode)
443
         then true
444
         else false);
445

    
446
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
447

    
448
   START_PRESSED = (KP_START -> (KP_START and 
449
      (not (pre KP_START))));
450

    
451
   chart_microwave_mode_logic_start = 
452
      (if (START_PRESSED = false)
453
         then 0
454
         else 1);
455

    
456
   chart_microwave_mode_logic_clear_off = 
457
      (if (CLEAR_PRESSED = false)
458
         then 0
459
         else 1);
460

    
461
   chart_microwave_mode_logic_door_closed = 
462
      (if (DOOR_CLOSED = false)
463
         then 0
464
         else 1);
465

    
466
   chart_microwave_mode_logic____wakeup___ = true;
467

    
468
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
469
      (if (pre chart_microwave_mode_logic____wakeup___)
470
         then false
471
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
472

    
473
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
474

    
475
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
476

    
477
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
478

    
479
   chart_microwave_mode_logic_final_state_states___root = 
480
      (if chart_microwave_mode_logic____wakeup___
481
         then 
482
               (if chart_microwave_mode_logic_rlt_evtInitStep
483
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
484
                  else 
485
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
486
                  
487
                  
488
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
489
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
490
                  then 
491
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
492
                           then 
493
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
494
                                    then 
495
                                          
496
                                          3
497
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
498
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
499
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
500
         else chart_microwave_mode_logic_begin_state_states___root);
501

    
502
   chart_microwave_mode_logic_mode = 
503
      (if chart_microwave_mode_logic____wakeup___
504
         then 
505
               (if chart_microwave_mode_logic_rlt_evtInitStep
506
                  then 
507
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
508
                           then 1
509
                           else chart_microwave_mode_logic_begin_state_outports_mode)
510
                  else 
511
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
512
                  
513
                  
514
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
515
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
516
                  then 
517
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
518
                           then 
519
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
520
                                    then 3
521
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
522
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
523
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
524
         else chart_microwave_mode_logic_begin_state_outports_mode);
525

    
526
   chart_microwave_mode_logic_steps_remaining = 
527
      (if chart_microwave_mode_logic____wakeup___
528
         then 
529
               (if chart_microwave_mode_logic_rlt_evtInitStep
530
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
531
                  else 
532
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
533
                  
534
                  
535
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
536
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
537
                  then 
538
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
539
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
540
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
541
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
542
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
543

    
544
   
545
   
546
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
547

    
548
   
549
   
550
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
551
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
552
         then STEPS_TO_COOK
553
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
554

    
555
   
556
   
557
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
558
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
559
      (
560
      (if (chart_microwave_mode_logic_start <> 0)
561
         then true
562
         else false) and 
563
      
564
      (if (
565
         (if ((STEPS_TO_COOK > 0) = false)
566
            then 0
567
            else 1) <> 0)
568
         then true
569
         else false))));
570

    
571
   
572
   
573
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
574
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
575
         then 
576
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
577
                  then 
578
                        
579
                        0
580
                  else chart_microwave_mode_logic_begin_state_states___root)
581
         else chart_microwave_mode_logic_begin_state_states___root);
582

    
583
   
584
   
585
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
586
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
587
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
588
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
589
   
590
   
591

    
592
   
593
   
594
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
595
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
596
         then 
597
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
598
                  then 
599
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
600
                           then 3
601
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
602
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
603
         else chart_microwave_mode_logic_begin_state_outports_mode);
604
   
605
   
606

    
607
   
608
   
609
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
610
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
611
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
612

    
613
   
614
   
615
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
616
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
617
         then 
618
               (if 
619
                  
620
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
621
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
622
                  then 
623
                        
624
                        0
625
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
626
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
627

    
628
   
629
   
630
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
631
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
632
         then 
633
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
634
                  then 
635
                        
636
                        4
637
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
638
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
639
   
640
   
641

    
642
   
643
   
644
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
645
      ((
646
      (if (chart_microwave_mode_logic_start <> 0)
647
         then true
648
         else false) and 
649
      
650
      (if (chart_microwave_mode_logic_door_closed <> 0)
651
         then true
652
         else false)) and 
653
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
654

    
655
   
656
   
657
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
658
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
659

    
660
   
661
   
662
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
663
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
664
         then 
665
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
666
                  then 
667
                        
668
                        1
669
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
670
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
671

    
672
   
673
   
674
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
675
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
676
         then 
677
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
678
                  then 1
679
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
680
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
681

    
682
   
683
   
684
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
685
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
686
         then 
687
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
688
                  then 
689
                        
690
                        2
691
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
692
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
693
   
694
   
695

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

    
708
   
709
   
710
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
711
      (
712
      (if (chart_microwave_mode_logic_clear_off <> 0)
713
         then true
714
         else false) and 
715
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
716
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
717
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
718

    
719
   
720
   
721
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
722
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
723

    
724
   
725
   
726
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
727
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
728
         then 
729
               (if 
730
                  
731
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
732
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
733
                  then 
734
                        
735
                        0
736
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
737
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
738

    
739
   
740
   
741
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
742
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
743
         then 0
744
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
745

    
746
   
747
   
748
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
749
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
750
         then 
751
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
752
                  then 
753
                        
754
                        4
755
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
756
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
757
   
758
   
759

    
760
   
761
   
762
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
763
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
764
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
765

    
766
   
767
   
768
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
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 1
773
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
774
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
775

    
776
   
777
   
778
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
779
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
780
         then 
781
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
782
                  then 
783
                        
784
                        1
785
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
786
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
787

    
788
   
789
   
790
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
791
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
792
         then 
793
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
794
                  then 
795
                        
796
                        2
797
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
798
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
799
   
800
   
801

    
802
   
803
   
804
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
805
      ((
806
      (if (chart_microwave_mode_logic_clear_off <> 0)
807
         then true
808
         else false) or 
809
      (not 
810
      (if (chart_microwave_mode_logic_door_closed <> 0)
811
         then true
812
         else false))) and 
813
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
814
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
815

    
816
   
817
   
818
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
819
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
820
         then 
821
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
822
                  then 
823
                        
824
                        1
825
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
826
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
827

    
828
   
829
   
830
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
831
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
832
         then 
833
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
834
                  then 2
835
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
836
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
837

    
838
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
839
      (if (not 
840
         
841
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
842
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
843
         then 
844
               
845
               1
846
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
847

    
848
   
849
   
850
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
851
      
852
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
853
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
854
      
855
      
856
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
857
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
858

    
859
   
860
   
861
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
862
      (
863
      
864
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
865
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
866
      
867
      (if (chart_microwave_mode_logic_door_closed <> 0)
868
         then true
869
         else false)));
870

    
871
   
872
   
873
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
874
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
875
         then 
876
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
877
                  then 
878
                        
879
                        2
880
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
881
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
882
   
883
   
884

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

    
897
   
898
   
899
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
900
      (
901
      
902
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
903
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
904
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
905

    
906
   
907
   
908
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
909
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
910
         then 
911
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
912
                  then 
913
                        
914
                        3
915
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
916
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
917
   
918
   
919

    
920
   
921
   
922
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
923
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
924
         then 
925
               
926
               4
927
         else chart_microwave_mode_logic_begin_state_states___root);
928
   
929
   
930

    
931
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
932

    
933
   p17 = (((not (enable and 
934
      (not KP_CLEAR))) or 
935
      ((not (((((((((KP_1 or 
936
      KP_2) or 
937
      KP_3) or 
938
      KP_4) or 
939
      KP_5) or 
940
      KP_6) or 
941
      KP_7) or 
942
      KP_8) or 
943
      KP_9) or 
944
      KP_0)) or 
945
      (LEFT_DIGIT = 0))) -> ((not (enable and 
946
      (not KP_CLEAR))) or 
947
      ((not ((((((((((KP_1 and 
948
      (not (pre KP_1))) or 
949
      (KP_2 and 
950
      (not (pre KP_2)))) or 
951
      (KP_3 and 
952
      (not (pre KP_3)))) or 
953
      (KP_4 and 
954
      (not (pre KP_4)))) or 
955
      (KP_5 and 
956
      (not (pre KP_5)))) or 
957
      (KP_6 and 
958
      (not (pre KP_6)))) or 
959
      (KP_7 and 
960
      (not (pre KP_7)))) or 
961
      (KP_8 and 
962
      (not (pre KP_8)))) or 
963
      (KP_9 and 
964
      (not (pre KP_9)))) or 
965
      (KP_0 and 
966
      (not (pre KP_0))))) or 
967
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
968

    
969
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
970

    
971
   p27 = (((not (enable and 
972
      (not KP_CLEAR))) or 
973
      ((not KP_0) or 
974
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
975
      (not KP_CLEAR))) or 
976
      ((not (KP_0 and 
977
      (not (pre KP_0)))) or 
978
      (RIGHT_DIGIT = 0))));
979

    
980
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
981

    
982
   KP_01 = KP_0;
983

    
984
   KP_11 = KP_1;
985

    
986
   KP_21 = KP_2;
987

    
988
   KP_31 = KP_3;
989

    
990
   KP_41 = KP_4;
991

    
992
   KP_51 = KP_5;
993

    
994
   KP_61 = KP_6;
995

    
996
   KP_71 = KP_7;
997

    
998
   KP_81 = KP_8;
999

    
1000
   KP_91 = KP_9;
1001

    
1002
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1003
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1004
         then 
1005
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1006
                  then 0
1007
                  else 
1008
               (if KP_CLEAR
1009
                  then 0
1010
                  else 
1011
               (if 
1012
                  (if (
1013
                     (if (KP_01 and 
1014
                        (not (pre KP_01)))
1015
                        then 0
1016
                        else 
1017
                     (if (KP_11 and 
1018
                        (not (pre KP_11)))
1019
                        then 1
1020
                        else 
1021
                     (if (KP_21 and 
1022
                        (not (pre KP_21)))
1023
                        then 2
1024
                        else 
1025
                     (if (KP_31 and 
1026
                        (not (pre KP_31)))
1027
                        then 3
1028
                        else 
1029
                     (if (KP_41 and 
1030
                        (not (pre KP_41)))
1031
                        then 4
1032
                        else 
1033
                     (if (KP_51 and 
1034
                        (not (pre KP_51)))
1035
                        then 5
1036
                        else 
1037
                     (if (KP_61 and 
1038
                        (not (pre KP_61)))
1039
                        then 6
1040
                        else 
1041
                     (if (KP_71 and 
1042
                        (not (pre KP_71)))
1043
                        then 7
1044
                        else 
1045
                     (if (KP_81 and 
1046
                        (not (pre KP_81)))
1047
                        then 8
1048
                        else 
1049
                     (if (KP_91 and 
1050
                        (not (pre KP_91)))
1051
                        then 9
1052
                        else 10)))))))))) <= 9)
1053
                     then true
1054
                     else false)
1055
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1056
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1057
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1058

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

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

    
1351
   STEPS_TO_COOK = (
1352
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1353
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1354
         then 0
1355
         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)) -> 
1356
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1357
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1358
         then 0
1359
         else 
1360
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1361
         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)
1362
         else (pre STEPS_TO_COOK))));
1363

    
1364
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1365
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1366
         then true
1367
         else 
1368
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1369
         then false
1370
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1371

    
1372
   SETUP = 
1373
      (if (1 = microwave_microwave_mode_logic_mode)
1374
         then true
1375
         else false);
1376

    
1377
   p32 = (true -> ((not (enable and 
1378
      (not KP_CLEAR))) or 
1379
      ((not ((KP_5 and 
1380
      (not (pre KP_5))) and 
1381
      ((not (KP_4 and 
1382
      (not (pre KP_4)))) and 
1383
      ((not (KP_3 and 
1384
      (not (pre KP_3)))) and 
1385
      ((not (KP_2 and 
1386
      (not (pre KP_2)))) and 
1387
      ((not (KP_1 and 
1388
      (not (pre KP_1)))) and 
1389
      (not (KP_0 and 
1390
      (not (pre KP_0)))))))))) or 
1391
      (RIGHT_DIGIT = 5))));
1392

    
1393
   enable = (true -> 
1394
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1395
         then true
1396
         else false));
1397

    
1398
   p28 = (true -> ((not (enable and 
1399
      (not KP_CLEAR))) or 
1400
      ((not ((KP_1 and 
1401
      (not (pre KP_1))) and 
1402
      (not (KP_0 and 
1403
      (not (pre KP_0)))))) or 
1404
      (RIGHT_DIGIT = 1))));
1405

    
1406
   p19 = (true -> ((not (enable and 
1407
      (not KP_CLEAR))) or 
1408
      (((((((((((KP_1 and 
1409
      (not (pre KP_1))) or 
1410
      (KP_2 and 
1411
      (not (pre KP_2)))) or 
1412
      (KP_3 and 
1413
      (not (pre KP_3)))) or 
1414
      (KP_4 and 
1415
      (not (pre KP_4)))) or 
1416
      (KP_5 and 
1417
      (not (pre KP_5)))) or 
1418
      (KP_6 and 
1419
      (not (pre KP_6)))) or 
1420
      (KP_7 and 
1421
      (not (pre KP_7)))) or 
1422
      (KP_8 and 
1423
      (not (pre KP_8)))) or 
1424
      (KP_9 and 
1425
      (not (pre KP_9)))) or 
1426
      (KP_0 and 
1427
      (not (pre KP_0)))) or 
1428
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1429

    
1430
   p29 = (true -> ((not (enable and 
1431
      (not KP_CLEAR))) or 
1432
      ((not ((KP_2 and 
1433
      (not (pre KP_2))) and 
1434
      ((not (KP_1 and 
1435
      (not (pre KP_1)))) and 
1436
      (not (KP_0 and 
1437
      (not (pre KP_0))))))) or 
1438
      (RIGHT_DIGIT = 2))));
1439

    
1440
   p34 = (true -> ((not (enable and 
1441
      (not KP_CLEAR))) or 
1442
      ((not ((KP_7 and 
1443
      (not (pre KP_7))) and 
1444
      ((not (KP_6 and 
1445
      (not (pre KP_6)))) and 
1446
      ((not (KP_5 and 
1447
      (not (pre KP_5)))) and 
1448
      ((not (KP_4 and 
1449
      (not (pre KP_4)))) and 
1450
      ((not (KP_3 and 
1451
      (not (pre KP_3)))) and 
1452
      ((not (KP_2 and 
1453
      (not (pre KP_2)))) and 
1454
      ((not (KP_1 and 
1455
      (not (pre KP_1)))) and 
1456
      (not (KP_0 and 
1457
      (not (pre KP_0)))))))))))) or 
1458
      (RIGHT_DIGIT = 7))));
1459

    
1460
   p21 = ((not (enable and 
1461
      KP_CLEAR)) or 
1462
      (MIDDLE_DIGIT = 0));
1463

    
1464
  --%PROPERTY OK=true;
1465
  --%MAIN;
1466

    
1467
tel
1468