Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (50.1 KB)

1 22fe1c93 ploc
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
   p6: bool; 
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
   OK = (true -> (
426
      (if (not SUSPENDED)
427
         then 
428
               (if (MWI_FcnMaxI_In12 > 0)
429
                  then MWI_FcnMaxI_In12
430
                  else 0)
431
         else 639) > 0));
432
433
   p26 = ((not (enable and 
434
      KP_CLEAR)) or 
435
      (RIGHT_DIGIT = 0));
436
437
   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);
438
439
   p14 = (true -> ((not (enable and 
440
      (not KP_CLEAR))) or 
441
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
442
443
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
444
445
   p6 = (true -> ((not SETUP) or 
446
      (
447
      (if (not (not SETUP))
448
         then 
449
               (if (MWI_FcnMaxI_In13 > 0)
450
                  then MWI_FcnMaxI_In13
451
                  else 0)
452
         else 639) > 0)));
453
454
   p8 = (true -> ((not SUSPENDED) or 
455
      (
456
      (if (not (not SUSPENDED))
457
         then 
458
               (if (MWI_FcnMaxI_In15 > 0)
459
                  then MWI_FcnMaxI_In15
460
                  else 0)
461
         else 639) > 0)));
462
463
   p7 = (true -> ((not COOKING) or 
464
      (
465
      (if (not (not COOKING))
466
         then 
467
               (if (MWI_FcnMaxI_In16 > 0)
468
                  then MWI_FcnMaxI_In16
469
                  else 0)
470
         else 639) > 0)));
471
472
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
473
474
   p16 = ((not (enable and 
475
      KP_CLEAR)) or 
476
      (LEFT_DIGIT = 0));
477
478
   p30 = (true -> ((not (enable and 
479
      (not KP_CLEAR))) or 
480
      ((not ((KP_3 and 
481
      (not (pre KP_3))) and 
482
      ((not (KP_2 and 
483
      (not (pre KP_2)))) and 
484
      ((not (KP_1 and 
485
      (not (pre KP_1)))) and 
486
      (not (KP_0 and 
487
      (not (pre KP_0)))))))) or 
488
      (RIGHT_DIGIT = 3))));
489
490
   COOKING = 
491
      (if (2 = microwave_microwave_mode_logic_mode)
492
         then true
493
         else false);
494
495
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
496
497
   p11 = ((not KP_CLEAR) or 
498
      (not COOKING));
499
500
   p9 = (true -> ((not COOKING) or 
501
      DOOR_CLOSED));
502
503
   p15 = (enable or 
504
      (LEFT_DIGIT = 0));
505
506
   START_PRESSED = (KP_START -> (KP_START and 
507
      (not (pre KP_START))));
508
509
   chart_microwave_mode_logic_start = 
510
      (if (START_PRESSED = false)
511
         then 0
512
         else 1);
513
514
   chart_microwave_mode_logic_clear_off = 
515
      (if (CLEAR_PRESSED = false)
516
         then 0
517
         else 1);
518
519
   chart_microwave_mode_logic_door_closed = 
520
      (if (DOOR_CLOSED = false)
521
         then 0
522
         else 1);
523
524
   chart_microwave_mode_logic____wakeup___ = true;
525
526
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
527
      (if (pre chart_microwave_mode_logic____wakeup___)
528
         then false
529
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
530
531
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
532
533
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
534
535
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
536
537
   chart_microwave_mode_logic_final_state_states___root = 
538
      (if chart_microwave_mode_logic____wakeup___
539
         then 
540
               (if chart_microwave_mode_logic_rlt_evtInitStep
541
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
542
                  else 
543
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
544
                  
545
                  
546
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
547
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
548
                  then 
549
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
550
                           then 
551
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
552
                                    then 
553
                                          
554
                                          3
555
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
556
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
557
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
558
         else chart_microwave_mode_logic_begin_state_states___root);
559
560
   chart_microwave_mode_logic_mode = 
561
      (if chart_microwave_mode_logic____wakeup___
562
         then 
563
               (if chart_microwave_mode_logic_rlt_evtInitStep
564
                  then 
565
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
566
                           then 1
567
                           else chart_microwave_mode_logic_begin_state_outports_mode)
568
                  else 
569
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
570
                  
571
                  
572
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
573
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
574
                  then 
575
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
576
                           then 
577
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
578
                                    then 3
579
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
580
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
581
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
582
         else chart_microwave_mode_logic_begin_state_outports_mode);
583
584
   chart_microwave_mode_logic_steps_remaining = 
585
      (if chart_microwave_mode_logic____wakeup___
586
         then 
587
               (if chart_microwave_mode_logic_rlt_evtInitStep
588
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
589
                  else 
590
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
591
                  
592
                  
593
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
594
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
595
                  then 
596
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
597
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
598
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
599
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
600
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
601
602
   
603
   
604
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
605
606
   
607
   
608
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
609
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
610
         then STEPS_TO_COOK
611
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
612
613
   
614
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
615
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
616
      (
617
      (if (chart_microwave_mode_logic_start <> 0)
618
         then true
619
         else false) and 
620
      
621
      (if (
622
         (if ((STEPS_TO_COOK > 0) = false)
623
            then 0
624
            else 1) <> 0)
625
         then true
626
         else false))));
627
628
   
629
   
630
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
631
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
632
         then 
633
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
634
                  then 
635
                        
636
                        0
637
                  else chart_microwave_mode_logic_begin_state_states___root)
638
         else chart_microwave_mode_logic_begin_state_states___root);
639
640
   
641
   
642
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
643
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
644
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
645
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
646
   
647
   
648
649
   
650
   
651
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
652
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
653
         then 
654
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
655
                  then 
656
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
657
                           then 3
658
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
659
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
660
         else chart_microwave_mode_logic_begin_state_outports_mode);
661
   
662
   
663
664
   
665
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
666
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
667
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
668
669
   
670
   
671
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
672
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
673
         then 
674
               (if 
675
                  
676
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
677
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
678
                  then 
679
                        
680
                        0
681
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
682
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
683
684
   
685
   
686
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
687
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
688
         then 
689
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
690
                  then 
691
                        
692
                        4
693
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
694
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
695
   
696
   
697
698
   
699
   
700
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
701
      ((
702
      (if (chart_microwave_mode_logic_start <> 0)
703
         then true
704
         else false) and 
705
      
706
      (if (chart_microwave_mode_logic_door_closed <> 0)
707
         then true
708
         else false)) and 
709
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
710
711
   
712
   
713
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
714
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
715
716
   
717
   
718
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
719
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
720
         then 
721
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
722
                  then 
723
                        
724
                        1
725
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
726
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
727
728
   
729
   
730
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
731
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
732
         then 
733
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
734
                  then 1
735
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
736
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
737
738
   
739
   
740
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
741
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
742
         then 
743
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
744
                  then 
745
                        
746
                        2
747
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
748
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
749
   
750
   
751
752
   
753
   
754
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
755
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
756
         then 
757
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
758
                  then 2
759
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
760
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
761
   
762
   
763
764
   
765
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
766
      (
767
      (if (chart_microwave_mode_logic_clear_off <> 0)
768
         then true
769
         else false) and 
770
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
771
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
772
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
773
774
   
775
   
776
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
777
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
778
779
   
780
   
781
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
782
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
783
         then 
784
               (if 
785
                  
786
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
787
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
788
                  then 
789
                        
790
                        0
791
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
792
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
793
794
   
795
   
796
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
797
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
798
         then 0
799
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
800
801
   
802
   
803
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
804
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
805
         then 
806
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
807
                  then 
808
                        
809
                        4
810
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
811
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
812
   
813
   
814
815
   
816
   
817
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
818
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
819
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
820
821
   
822
   
823
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
824
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
825
         then 
826
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
827
                  then 1
828
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
829
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
830
831
   
832
   
833
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
834
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
835
         then 
836
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
837
                  then 
838
                        
839
                        1
840
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
841
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
842
843
   
844
   
845
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
846
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
847
         then 
848
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
849
                  then 
850
                        
851
                        2
852
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
853
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
854
   
855
   
856
857
   
858
   
859
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
860
      ((
861
      (if (chart_microwave_mode_logic_clear_off <> 0)
862
         then true
863
         else false) or 
864
      (not 
865
      (if (chart_microwave_mode_logic_door_closed <> 0)
866
         then true
867
         else false))) and 
868
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
869
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
870
871
   
872
   
873
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
874
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
875
         then 
876
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
877
                  then 
878
                        
879
                        1
880
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
881
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
882
883
   
884
   
885
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
886
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
887
         then 
888
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
889
                  then 2
890
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
891
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
892
893
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
894
      (if (not 
895
         
896
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
897
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
898
         then 
899
               
900
               1
901
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
902
903
   
904
   
905
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
906
      
907
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
908
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
909
      
910
      
911
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
912
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
913
914
   
915
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
916
      (
917
      
918
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
919
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
920
      
921
      (if (chart_microwave_mode_logic_door_closed <> 0)
922
         then true
923
         else false)));
924
925
   
926
   
927
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
928
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
929
         then 
930
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
931
                  then 
932
                        
933
                        2
934
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
935
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
936
   
937
   
938
939
   
940
   
941
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
942
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
943
         then 
944
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
945
                  then 2
946
                  else chart_microwave_mode_logic_begin_state_outports_mode)
947
         else chart_microwave_mode_logic_begin_state_outports_mode);
948
   
949
   
950
951
   
952
   
953
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
954
      (
955
      
956
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
957
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
958
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
959
960
   
961
   
962
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
963
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
964
         then 
965
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
966
                  then 
967
                        
968
                        3
969
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
970
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
971
   
972
   
973
974
   
975
   
976
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
977
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
978
         then 
979
               
980
               4
981
         else chart_microwave_mode_logic_begin_state_states___root);
982
   
983
   
984
985
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
986
987
   p17 = (((not (enable and 
988
      (not KP_CLEAR))) or 
989
      ((not (((((((((KP_1 or 
990
      KP_2) or 
991
      KP_3) or 
992
      KP_4) or 
993
      KP_5) or 
994
      KP_6) or 
995
      KP_7) or 
996
      KP_8) or 
997
      KP_9) or 
998
      KP_0)) or 
999
      (LEFT_DIGIT = 0))) -> ((not (enable and 
1000
      (not KP_CLEAR))) or 
1001
      ((not ((((((((((KP_1 and 
1002
      (not (pre KP_1))) or 
1003
      (KP_2 and 
1004
      (not (pre KP_2)))) or 
1005
      (KP_3 and 
1006
      (not (pre KP_3)))) or 
1007
      (KP_4 and 
1008
      (not (pre KP_4)))) or 
1009
      (KP_5 and 
1010
      (not (pre KP_5)))) or 
1011
      (KP_6 and 
1012
      (not (pre KP_6)))) or 
1013
      (KP_7 and 
1014
      (not (pre KP_7)))) or 
1015
      (KP_8 and 
1016
      (not (pre KP_8)))) or 
1017
      (KP_9 and 
1018
      (not (pre KP_9)))) or 
1019
      (KP_0 and 
1020
      (not (pre KP_0))))) or 
1021
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1022
1023
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1024
1025
   p10 = (true -> ((not COOKING) or 
1026
      (
1027
      (if (not (not COOKING))
1028
         then 
1029
               (if (MWI_FcnMaxI_In16 > 0)
1030
                  then MWI_FcnMaxI_In16
1031
                  else 0)
1032
         else 639) > 0)));
1033
1034
   p27 = (((not (enable and 
1035
      (not KP_CLEAR))) or 
1036
      ((not KP_0) or 
1037
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1038
      (not KP_CLEAR))) or 
1039
      ((not (KP_0 and 
1040
      (not (pre KP_0)))) or 
1041
      (RIGHT_DIGIT = 0))));
1042
1043
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1044
1045
   KP_01 = KP_0;
1046
1047
   KP_11 = KP_1;
1048
1049
   KP_21 = KP_2;
1050
1051
   KP_31 = KP_3;
1052
1053
   KP_41 = KP_4;
1054
1055
   KP_51 = KP_5;
1056
1057
   KP_61 = KP_6;
1058
1059
   KP_71 = KP_7;
1060
1061
   KP_81 = KP_8;
1062
1063
   KP_91 = KP_9;
1064
1065
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1066
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1067
         then 
1068
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1069
                  then 0
1070
                  else 
1071
               (if KP_CLEAR
1072
                  then 0
1073
                  else 
1074
               (if 
1075
                  (if (
1076
                     (if (KP_01 and 
1077
                        (not (pre KP_01)))
1078
                        then 0
1079
                        else 
1080
                     (if (KP_11 and 
1081
                        (not (pre KP_11)))
1082
                        then 1
1083
                        else 
1084
                     (if (KP_21 and 
1085
                        (not (pre KP_21)))
1086
                        then 2
1087
                        else 
1088
                     (if (KP_31 and 
1089
                        (not (pre KP_31)))
1090
                        then 3
1091
                        else 
1092
                     (if (KP_41 and 
1093
                        (not (pre KP_41)))
1094
                        then 4
1095
                        else 
1096
                     (if (KP_51 and 
1097
                        (not (pre KP_51)))
1098
                        then 5
1099
                        else 
1100
                     (if (KP_61 and 
1101
                        (not (pre KP_61)))
1102
                        then 6
1103
                        else 
1104
                     (if (KP_71 and 
1105
                        (not (pre KP_71)))
1106
                        then 7
1107
                        else 
1108
                     (if (KP_81 and 
1109
                        (not (pre KP_81)))
1110
                        then 8
1111
                        else 
1112
                     (if (KP_91 and 
1113
                        (not (pre KP_91)))
1114
                        then 9
1115
                        else 10)))))))))) <= 9)
1116
                     then true
1117
                     else false)
1118
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1119
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1120
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1121
1122
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1123
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1124
         then 
1125
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1126
                  then 0
1127
                  else 
1128
               (if KP_CLEAR
1129
                  then 0
1130
                  else 
1131
               (if 
1132
                  (if (
1133
                     (if (KP_01 and 
1134
                        (not (pre KP_01)))
1135
                        then 0
1136
                        else 
1137
                     (if (KP_11 and 
1138
                        (not (pre KP_11)))
1139
                        then 1
1140
                        else 
1141
                     (if (KP_21 and 
1142
                        (not (pre KP_21)))
1143
                        then 2
1144
                        else 
1145
                     (if (KP_31 and 
1146
                        (not (pre KP_31)))
1147
                        then 3
1148
                        else 
1149
                     (if (KP_41 and 
1150
                        (not (pre KP_41)))
1151
                        then 4
1152
                        else 
1153
                     (if (KP_51 and 
1154
                        (not (pre KP_51)))
1155
                        then 5
1156
                        else 
1157
                     (if (KP_61 and 
1158
                        (not (pre KP_61)))
1159
                        then 6
1160
                        else 
1161
                     (if (KP_71 and 
1162
                        (not (pre KP_71)))
1163
                        then 7
1164
                        else 
1165
                     (if (KP_81 and 
1166
                        (not (pre KP_81)))
1167
                        then 8
1168
                        else 
1169
                     (if (KP_91 and 
1170
                        (not (pre KP_91)))
1171
                        then 9
1172
                        else 10)))))))))) <= 9)
1173
                     then true
1174
                     else false)
1175
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1176
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1177
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1178
1179
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1180
      (if KP_CLEAR
1181
         then 0
1182
         else 
1183
      (if 
1184
         (if (
1185
            (if KP_01
1186
               then 0
1187
               else 
1188
            (if KP_11
1189
               then 1
1190
               else 
1191
            (if KP_21
1192
               then 2
1193
               else 
1194
            (if KP_31
1195
               then 3
1196
               else 
1197
            (if KP_41
1198
               then 4
1199
               else 
1200
            (if KP_51
1201
               then 5
1202
               else 
1203
            (if KP_61
1204
               then 6
1205
               else 
1206
            (if KP_71
1207
               then 7
1208
               else 
1209
            (if KP_81
1210
               then 8
1211
               else 
1212
            (if KP_91
1213
               then 9
1214
               else 10)))))))))) <= 9)
1215
            then true
1216
            else false)
1217
         then 
1218
               (if KP_01
1219
                  then 0
1220
                  else 
1221
               (if KP_11
1222
                  then 1
1223
                  else 
1224
               (if KP_21
1225
                  then 2
1226
                  else 
1227
               (if KP_31
1228
                  then 3
1229
                  else 
1230
               (if KP_41
1231
                  then 4
1232
                  else 
1233
               (if KP_51
1234
                  then 5
1235
                  else 
1236
               (if KP_61
1237
                  then 6
1238
                  else 
1239
               (if KP_71
1240
                  then 7
1241
                  else 
1242
               (if KP_81
1243
                  then 8
1244
                  else 
1245
               (if KP_91
1246
                  then 9
1247
                  else 10))))))))))
1248
         else 0)) -> 
1249
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1250
         then 
1251
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1252
                  then 
1253
                        (if KP_CLEAR
1254
                           then 0
1255
                           else 
1256
                        (if 
1257
                           (if (
1258
                              (if KP_01
1259
                                 then 0
1260
                                 else 
1261
                              (if KP_11
1262
                                 then 1
1263
                                 else 
1264
                              (if KP_21
1265
                                 then 2
1266
                                 else 
1267
                              (if KP_31
1268
                                 then 3
1269
                                 else 
1270
                              (if KP_41
1271
                                 then 4
1272
                                 else 
1273
                              (if KP_51
1274
                                 then 5
1275
                                 else 
1276
                              (if KP_61
1277
                                 then 6
1278
                                 else 
1279
                              (if KP_71
1280
                                 then 7
1281
                                 else 
1282
                              (if KP_81
1283
                                 then 8
1284
                                 else 
1285
                              (if KP_91
1286
                                 then 9
1287
                                 else 10)))))))))) <= 9)
1288
                              then true
1289
                              else false)
1290
                           then 
1291
                                 (if KP_01
1292
                                    then 0
1293
                                    else 
1294
                                 (if KP_11
1295
                                    then 1
1296
                                    else 
1297
                                 (if KP_21
1298
                                    then 2
1299
                                    else 
1300
                                 (if KP_31
1301
                                    then 3
1302
                                    else 
1303
                                 (if KP_41
1304
                                    then 4
1305
                                    else 
1306
                                 (if KP_51
1307
                                    then 5
1308
                                    else 
1309
                                 (if KP_61
1310
                                    then 6
1311
                                    else 
1312
                                 (if KP_71
1313
                                    then 7
1314
                                    else 
1315
                                 (if KP_81
1316
                                    then 8
1317
                                    else 
1318
                                 (if KP_91
1319
                                    then 9
1320
                                    else 10))))))))))
1321
                           else 0))
1322
                  else 
1323
               (if KP_CLEAR
1324
                  then 0
1325
                  else 
1326
               (if 
1327
                  (if (
1328
                     (if (KP_01 and 
1329
                        (not (pre KP_01)))
1330
                        then 0
1331
                        else 
1332
                     (if (KP_11 and 
1333
                        (not (pre KP_11)))
1334
                        then 1
1335
                        else 
1336
                     (if (KP_21 and 
1337
                        (not (pre KP_21)))
1338
                        then 2
1339
                        else 
1340
                     (if (KP_31 and 
1341
                        (not (pre KP_31)))
1342
                        then 3
1343
                        else 
1344
                     (if (KP_41 and 
1345
                        (not (pre KP_41)))
1346
                        then 4
1347
                        else 
1348
                     (if (KP_51 and 
1349
                        (not (pre KP_51)))
1350
                        then 5
1351
                        else 
1352
                     (if (KP_61 and 
1353
                        (not (pre KP_61)))
1354
                        then 6
1355
                        else 
1356
                     (if (KP_71 and 
1357
                        (not (pre KP_71)))
1358
                        then 7
1359
                        else 
1360
                     (if (KP_81 and 
1361
                        (not (pre KP_81)))
1362
                        then 8
1363
                        else 
1364
                     (if (KP_91 and 
1365
                        (not (pre KP_91)))
1366
                        then 9
1367
                        else 10)))))))))) <= 9)
1368
                     then true
1369
                     else false)
1370
                  then 
1371
                        (if (KP_01 and 
1372
                           (not (pre KP_01)))
1373
                           then 0
1374
                           else 
1375
                        (if (KP_11 and 
1376
                           (not (pre KP_11)))
1377
                           then 1
1378
                           else 
1379
                        (if (KP_21 and 
1380
                           (not (pre KP_21)))
1381
                           then 2
1382
                           else 
1383
                        (if (KP_31 and 
1384
                           (not (pre KP_31)))
1385
                           then 3
1386
                           else 
1387
                        (if (KP_41 and 
1388
                           (not (pre KP_41)))
1389
                           then 4
1390
                           else 
1391
                        (if (KP_51 and 
1392
                           (not (pre KP_51)))
1393
                           then 5
1394
                           else 
1395
                        (if (KP_61 and 
1396
                           (not (pre KP_61)))
1397
                           then 6
1398
                           else 
1399
                        (if (KP_71 and 
1400
                           (not (pre KP_71)))
1401
                           then 7
1402
                           else 
1403
                        (if (KP_81 and 
1404
                           (not (pre KP_81)))
1405
                           then 8
1406
                           else 
1407
                        (if (KP_91 and 
1408
                           (not (pre KP_91)))
1409
                           then 9
1410
                           else 10))))))))))
1411
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1412
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1413
1414
   STEPS_TO_COOK = (
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 ((((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)) -> 
1419
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1420
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1421
         then 0
1422
         else 
1423
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1424
         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)
1425
         else (pre STEPS_TO_COOK))));
1426
1427
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1428
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1429
         then true
1430
         else 
1431
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1432
         then false
1433
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1434
1435
   SETUP = 
1436
      (if (1 = microwave_microwave_mode_logic_mode)
1437
         then true
1438
         else false);
1439
1440
   p32 = (true -> ((not (enable and 
1441
      (not KP_CLEAR))) or 
1442
      ((not ((KP_5 and 
1443
      (not (pre KP_5))) and 
1444
      ((not (KP_4 and 
1445
      (not (pre KP_4)))) and 
1446
      ((not (KP_3 and 
1447
      (not (pre KP_3)))) and 
1448
      ((not (KP_2 and 
1449
      (not (pre KP_2)))) and 
1450
      ((not (KP_1 and 
1451
      (not (pre KP_1)))) and 
1452
      (not (KP_0 and 
1453
      (not (pre KP_0)))))))))) or 
1454
      (RIGHT_DIGIT = 5))));
1455
1456
   enable = (true -> 
1457
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1458
         then true
1459
         else false));
1460
1461
   p28 = (true -> ((not (enable and 
1462
      (not KP_CLEAR))) or 
1463
      ((not ((KP_1 and 
1464
      (not (pre KP_1))) and 
1465
      (not (KP_0 and 
1466
      (not (pre KP_0)))))) or 
1467
      (RIGHT_DIGIT = 1))));
1468
1469
   p13 = ((not (enable and 
1470
      KP_CLEAR)) or 
1471
      (STEPS_TO_COOK = 0));
1472
1473
   p19 = (true -> ((not (enable and 
1474
      (not KP_CLEAR))) or 
1475
      (((((((((((KP_1 and 
1476
      (not (pre KP_1))) or 
1477
      (KP_2 and 
1478
      (not (pre KP_2)))) or 
1479
      (KP_3 and 
1480
      (not (pre KP_3)))) or 
1481
      (KP_4 and 
1482
      (not (pre KP_4)))) or 
1483
      (KP_5 and 
1484
      (not (pre KP_5)))) or 
1485
      (KP_6 and 
1486
      (not (pre KP_6)))) or 
1487
      (KP_7 and 
1488
      (not (pre KP_7)))) or 
1489
      (KP_8 and 
1490
      (not (pre KP_8)))) or 
1491
      (KP_9 and 
1492
      (not (pre KP_9)))) or 
1493
      (KP_0 and 
1494
      (not (pre KP_0)))) or 
1495
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1496
1497
   p29 = (true -> ((not (enable and 
1498
      (not KP_CLEAR))) or 
1499
      ((not ((KP_2 and 
1500
      (not (pre KP_2))) and 
1501
      ((not (KP_1 and 
1502
      (not (pre KP_1)))) and 
1503
      (not (KP_0 and 
1504
      (not (pre KP_0))))))) or 
1505
      (RIGHT_DIGIT = 2))));
1506
1507
   p34 = (true -> ((not (enable and 
1508
      (not KP_CLEAR))) or 
1509
      ((not ((KP_7 and 
1510
      (not (pre KP_7))) and 
1511
      ((not (KP_6 and 
1512
      (not (pre KP_6)))) and 
1513
      ((not (KP_5 and 
1514
      (not (pre KP_5)))) and 
1515
      ((not (KP_4 and 
1516
      (not (pre KP_4)))) and 
1517
      ((not (KP_3 and 
1518
      (not (pre KP_3)))) and 
1519
      ((not (KP_2 and 
1520
      (not (pre KP_2)))) and 
1521
      ((not (KP_1 and 
1522
      (not (pre KP_1)))) and 
1523
      (not (KP_0 and 
1524
      (not (pre KP_0)))))))))))) or 
1525
      (RIGHT_DIGIT = 7))));
1526
1527
   p12 = (enable or 
1528
      (STEPS_TO_COOK = 0));
1529
1530
   p21 = ((not (enable and 
1531
      KP_CLEAR)) or 
1532
      (MIDDLE_DIGIT = 0));
1533
1534
  --%PROPERTY OK=true;
1535
  --%MAIN;
1536
1537
tel