Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (49.9 KB)

1

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

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

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

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

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

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

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

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

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

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

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

    
287
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
288

    
289
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
290

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

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

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

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

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

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

    
349
   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));
350

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
487
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
488

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

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

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

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

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

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

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

    
516
   chart_microwave_mode_logic____wakeup___ = true;
517

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
981
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
982

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

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

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

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

    
1039
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1040

    
1041
   KP_01 = KP_0;
1042

    
1043
   KP_11 = KP_1;
1044

    
1045
   KP_21 = KP_2;
1046

    
1047
   KP_31 = KP_3;
1048

    
1049
   KP_41 = KP_4;
1050

    
1051
   KP_51 = KP_5;
1052

    
1053
   KP_61 = KP_6;
1054

    
1055
   KP_71 = KP_7;
1056

    
1057
   KP_81 = KP_8;
1058

    
1059
   KP_91 = KP_9;
1060

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
1533
tel
1534