Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (48.4 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
   p18: bool; 
107
   p19: bool; 
108
   p20: bool; 
109
   p21: bool; 
110
   p22: bool; 
111
   p23: bool; 
112
   p24: bool; 
113
   p25: bool; 
114
   p26: bool; 
115
   p27: bool; 
116
   p28: bool; 
117
   p29: bool; 
118
   p30: bool; 
119
   p31: bool; 
120
   p32: bool; 
121
   p33: bool; 
122
   p34: bool; 
123
   p35: bool; 
124
   p36: bool; 
125
   p37: bool; 
126
let 
127
   rlt__Arrow5 = (639 -> 
128
      (if (not (not SETUP))
129
         then 
130
               (if (MWI_FcnMaxI_In13 > 0)
131
                  then MWI_FcnMaxI_In13
132
                  else 0)
133
         else 639));
134
135
   rlt__Arrow4 = (639 -> 
136
      (if (not SUSPENDED)
137
         then 
138
               (if (MWI_FcnMaxI_In12 > 0)
139
                  then MWI_FcnMaxI_In12
140
                  else 0)
141
         else 639));
142
143
   rlt__Arrow3 = (639 -> 
144
      (if (not (not COOKING))
145
         then 
146
               (if (MWI_FcnMaxI_In16 > 0)
147
                  then MWI_FcnMaxI_In16
148
                  else 0)
149
         else 639));
150
151
   rlt__Arrow2 = (639 -> 
152
      (if (not (not SUSPENDED))
153
         then 
154
               (if (MWI_FcnMaxI_In15 > 0)
155
                  then MWI_FcnMaxI_In15
156
                  else 0)
157
         else 639));
158
159
   rlt__Arrow1 = (639 -> 
160
      (if (not COOKING)
161
         then 
162
               (if (MWI_FcnMaxI_In11 > 0)
163
                  then MWI_FcnMaxI_In11
164
                  else 0)
165
         else 639));
166
167
   rlt__Arrow = (639 -> 
168
      (if (not SETUP)
169
         then 
170
               (if (MWI_FcnMaxI_In1 > 0)
171
                  then MWI_FcnMaxI_In1
172
                  else 0)
173
         else 639));
174
175
   p18 = (((not (enable and 
176
      (not KP_CLEAR))) or 
177
      ((not (((((((((KP_1 or 
178
      KP_2) or 
179
      KP_3) or 
180
      KP_4) or 
181
      KP_5) or 
182
      KP_6) or 
183
      KP_7) or 
184
      KP_8) or 
185
      KP_9) or 
186
      KP_0)) or 
187
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
188
      (not KP_CLEAR))) or 
189
      ((not ((((((((((KP_1 and 
190
      (not (pre KP_1))) or 
191
      (KP_2 and 
192
      (not (pre KP_2)))) or 
193
      (KP_3 and 
194
      (not (pre KP_3)))) or 
195
      (KP_4 and 
196
      (not (pre KP_4)))) or 
197
      (KP_5 and 
198
      (not (pre KP_5)))) or 
199
      (KP_6 and 
200
      (not (pre KP_6)))) or 
201
      (KP_7 and 
202
      (not (pre KP_7)))) or 
203
      (KP_8 and 
204
      (not (pre KP_8)))) or 
205
      (KP_9 and 
206
      (not (pre KP_9)))) or 
207
      (KP_0 and 
208
      (not (pre KP_0))))) or 
209
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
210
211
   p23 = (true -> (((not (enable and 
212
      (not KP_CLEAR))) or 
213
      (not ((((((((((KP_1 and 
214
      (not (pre KP_1))) or 
215
      (KP_2 and 
216
      (not (pre KP_2)))) or 
217
      (KP_3 and 
218
      (not (pre KP_3)))) or 
219
      (KP_4 and 
220
      (not (pre KP_4)))) or 
221
      (KP_5 and 
222
      (not (pre KP_5)))) or 
223
      (KP_6 and 
224
      (not (pre KP_6)))) or 
225
      (KP_7 and 
226
      (not (pre KP_7)))) or 
227
      (KP_8 and 
228
      (not (pre KP_8)))) or 
229
      (KP_9 and 
230
      (not (pre KP_9)))) or 
231
      (KP_0 and 
232
      (not (pre KP_0)))))) or 
233
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
234
235
   p35 = (true -> ((not (enable and 
236
      (not KP_CLEAR))) or 
237
      ((not ((KP_8 and 
238
      (not (pre KP_8))) and 
239
      ((not (KP_7 and 
240
      (not (pre KP_7)))) and 
241
      ((not (KP_6 and 
242
      (not (pre KP_6)))) and 
243
      ((not (KP_5 and 
244
      (not (pre KP_5)))) and 
245
      ((not (KP_4 and 
246
      (not (pre KP_4)))) and 
247
      ((not (KP_3 and 
248
      (not (pre KP_3)))) and 
249
      ((not (KP_2 and 
250
      (not (pre KP_2)))) and 
251
      ((not (KP_1 and 
252
      (not (pre KP_1)))) and 
253
      (not (KP_0 and 
254
      (not (pre KP_0))))))))))))) or 
255
      (RIGHT_DIGIT = 8))));
256
257
   p33 = (true -> ((not (enable and 
258
      (not KP_CLEAR))) or 
259
      ((not ((KP_6 and 
260
      (not (pre KP_6))) and 
261
      ((not (KP_5 and 
262
      (not (pre KP_5)))) and 
263
      ((not (KP_4 and 
264
      (not (pre KP_4)))) and 
265
      ((not (KP_3 and 
266
      (not (pre KP_3)))) and 
267
      ((not (KP_2 and 
268
      (not (pre KP_2)))) and 
269
      ((not (KP_1 and 
270
      (not (pre KP_1)))) and 
271
      (not (KP_0 and 
272
      (not (pre KP_0))))))))))) or 
273
      (RIGHT_DIGIT = 6))));
274
275
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
276
277
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
278
279
   p25 = (enable or 
280
      (RIGHT_DIGIT = 0));
281
282
   p22 = (true -> (((not (enable and 
283
      (not KP_CLEAR))) or 
284
      (not ((((((((((KP_1 and 
285
      (not (pre KP_1))) or 
286
      (KP_2 and 
287
      (not (pre KP_2)))) or 
288
      (KP_3 and 
289
      (not (pre KP_3)))) or 
290
      (KP_4 and 
291
      (not (pre KP_4)))) or 
292
      (KP_5 and 
293
      (not (pre KP_5)))) or 
294
      (KP_6 and 
295
      (not (pre KP_6)))) or 
296
      (KP_7 and 
297
      (not (pre KP_7)))) or 
298
      (KP_8 and 
299
      (not (pre KP_8)))) or 
300
      (KP_9 and 
301
      (not (pre KP_9)))) or 
302
      (KP_0 and 
303
      (not (pre KP_0)))))) or 
304
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
305
306
   p36 = (true -> ((not (enable and 
307
      (not KP_CLEAR))) or 
308
      ((not ((KP_9 and 
309
      (not (pre KP_9))) and 
310
      ((not (KP_8 and 
311
      (not (pre KP_8)))) and 
312
      ((not (KP_7 and 
313
      (not (pre KP_7)))) and 
314
      ((not (KP_6 and 
315
      (not (pre KP_6)))) and 
316
      ((not (KP_5 and 
317
      (not (pre KP_5)))) and 
318
      ((not (KP_4 and 
319
      (not (pre KP_4)))) and 
320
      ((not (KP_3 and 
321
      (not (pre KP_3)))) and 
322
      ((not (KP_2 and 
323
      (not (pre KP_2)))) and 
324
      ((not (KP_1 and 
325
      (not (pre KP_1)))) and 
326
      (not (KP_0 and 
327
      (not (pre KP_0)))))))))))))) or 
328
      (RIGHT_DIGIT = 9))));
329
330
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
331
332
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
333
      (not (pre KP_CLEAR))));
334
335
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
336
337
   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));
338
339
   SUSPENDED = 
340
      (if (3 = microwave_microwave_mode_logic_mode)
341
         then true
342
         else false);
343
344
   p31 = (true -> ((not (enable and 
345
      (not KP_CLEAR))) or 
346
      ((not ((KP_4 and 
347
      (not (pre KP_4))) and 
348
      ((not (KP_3 and 
349
      (not (pre KP_3)))) and 
350
      ((not (KP_2 and 
351
      (not (pre KP_2)))) and 
352
      ((not (KP_1 and 
353
      (not (pre KP_1)))) and 
354
      (not (KP_0 and 
355
      (not (pre KP_0))))))))) or 
356
      (RIGHT_DIGIT = 4))));
357
358
   p37 = (true -> ((not (enable and 
359
      (not KP_CLEAR))) or 
360
      (((((((((((KP_1 and 
361
      (not (pre KP_1))) or 
362
      (KP_2 and 
363
      (not (pre KP_2)))) or 
364
      (KP_3 and 
365
      (not (pre KP_3)))) or 
366
      (KP_4 and 
367
      (not (pre KP_4)))) or 
368
      (KP_5 and 
369
      (not (pre KP_5)))) or 
370
      (KP_6 and 
371
      (not (pre KP_6)))) or 
372
      (KP_7 and 
373
      (not (pre KP_7)))) or 
374
      (KP_8 and 
375
      (not (pre KP_8)))) or 
376
      (KP_9 and 
377
      (not (pre KP_9)))) or 
378
      (KP_0 and 
379
      (not (pre KP_0)))) or 
380
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
381
382
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
383
384
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
385
386
   p24 = (true -> (((not (enable and 
387
      (not KP_CLEAR))) or 
388
      ((((((((((KP_1 and 
389
      (not (pre KP_1))) or 
390
      (KP_2 and 
391
      (not (pre KP_2)))) or 
392
      (KP_3 and 
393
      (not (pre KP_3)))) or 
394
      (KP_4 and 
395
      (not (pre KP_4)))) or 
396
      (KP_5 and 
397
      (not (pre KP_5)))) or 
398
      (KP_6 and 
399
      (not (pre KP_6)))) or 
400
      (KP_7 and 
401
      (not (pre KP_7)))) or 
402
      (KP_8 and 
403
      (not (pre KP_8)))) or 
404
      (KP_9 and 
405
      (not (pre KP_9)))) or 
406
      (KP_0 and 
407
      (not (pre KP_0))))) or 
408
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
409
410
   p20 = (enable or 
411
      (MIDDLE_DIGIT = 0));
412
413
   p26 = ((not (enable and 
414
      KP_CLEAR)) or 
415
      (RIGHT_DIGIT = 0));
416
417
   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);
418
419
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
420
421
422
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
423
424
425
   p30 = (true -> ((not (enable and 
426
      (not KP_CLEAR))) or 
427
      ((not ((KP_3 and 
428
      (not (pre KP_3))) and 
429
      ((not (KP_2 and 
430
      (not (pre KP_2)))) and 
431
      ((not (KP_1 and 
432
      (not (pre KP_1)))) and 
433
      (not (KP_0 and 
434
      (not (pre KP_0)))))))) or 
435
      (RIGHT_DIGIT = 3))));
436
437
   COOKING = 
438
      (if (2 = microwave_microwave_mode_logic_mode)
439
         then true
440
         else false);
441
442
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
443
444
   START_PRESSED = (KP_START -> (KP_START and 
445
      (not (pre KP_START))));
446
447
   chart_microwave_mode_logic_start = 
448
      (if (START_PRESSED = false)
449
         then 0
450
         else 1);
451
452
   chart_microwave_mode_logic_clear_off = 
453
      (if (CLEAR_PRESSED = false)
454
         then 0
455
         else 1);
456
457
   chart_microwave_mode_logic_door_closed = 
458
      (if (DOOR_CLOSED = false)
459
         then 0
460
         else 1);
461
462
   chart_microwave_mode_logic____wakeup___ = true;
463
464
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
465
      (if (pre chart_microwave_mode_logic____wakeup___)
466
         then false
467
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
468
469
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
470
471
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
472
473
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
474
475
   chart_microwave_mode_logic_final_state_states___root = 
476
      (if chart_microwave_mode_logic____wakeup___
477
         then 
478
               (if chart_microwave_mode_logic_rlt_evtInitStep
479
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
480
                  else 
481
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
482
                  
483
                  
484
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
485
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
486
                  then 
487
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
488
                           then 
489
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
490
                                    then 
491
                                          
492
                                          3
493
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
494
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
495
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
496
         else chart_microwave_mode_logic_begin_state_states___root);
497
498
   chart_microwave_mode_logic_mode = 
499
      (if chart_microwave_mode_logic____wakeup___
500
         then 
501
               (if chart_microwave_mode_logic_rlt_evtInitStep
502
                  then 
503
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
504
                           then 1
505
                           else chart_microwave_mode_logic_begin_state_outports_mode)
506
                  else 
507
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
508
                  
509
                  
510
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
511
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
512
                  then 
513
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
514
                           then 
515
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
516
                                    then 3
517
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
518
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
519
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
520
         else chart_microwave_mode_logic_begin_state_outports_mode);
521
522
   chart_microwave_mode_logic_steps_remaining = 
523
      (if chart_microwave_mode_logic____wakeup___
524
         then 
525
               (if chart_microwave_mode_logic_rlt_evtInitStep
526
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
527
                  else 
528
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
529
                  
530
                  
531
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
532
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
533
                  then 
534
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
535
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
536
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
537
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
538
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
539
540
   
541
   
542
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
543
544
   
545
   
546
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
547
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
548
         then STEPS_TO_COOK
549
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
550
551
   
552
   
553
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
554
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
555
      (
556
      (if (chart_microwave_mode_logic_start <> 0)
557
         then true
558
         else false) and 
559
      
560
      (if (
561
         (if ((STEPS_TO_COOK > 0) = false)
562
            then 0
563
            else 1) <> 0)
564
         then true
565
         else false))));
566
567
   
568
   
569
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
570
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
571
         then 
572
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
573
                  then 
574
                        
575
                        0
576
                  else chart_microwave_mode_logic_begin_state_states___root)
577
         else chart_microwave_mode_logic_begin_state_states___root);
578
579
   
580
   
581
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
582
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
583
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
584
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
585
   
586
   
587
588
   
589
   
590
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
591
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
592
         then 
593
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
594
                  then 
595
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
596
                           then 3
597
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
598
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
599
         else chart_microwave_mode_logic_begin_state_outports_mode);
600
   
601
   
602
603
   
604
   
605
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
606
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
607
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
608
609
   
610
   
611
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
612
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
613
         then 
614
               (if 
615
                  
616
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
617
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
618
                  then 
619
                        
620
                        0
621
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
622
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
623
624
   
625
   
626
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
627
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
628
         then 
629
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
630
                  then 
631
                        
632
                        4
633
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
634
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
635
   
636
   
637
638
   
639
   
640
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
641
      ((
642
      (if (chart_microwave_mode_logic_start <> 0)
643
         then true
644
         else false) and 
645
      
646
      (if (chart_microwave_mode_logic_door_closed <> 0)
647
         then true
648
         else false)) and 
649
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
650
651
   
652
   
653
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
654
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
655
656
   
657
   
658
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
659
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
660
         then 
661
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
662
                  then 
663
                        
664
                        1
665
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
666
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
667
668
   
669
   
670
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
671
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
672
         then 
673
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
674
                  then 1
675
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
676
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
677
678
   
679
   
680
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
681
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
682
         then 
683
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
684
                  then 
685
                        
686
                        2
687
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
688
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
689
   
690
   
691
692
   
693
   
694
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
695
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
696
         then 
697
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
698
                  then 2
699
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
700
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
701
   
702
   
703
704
   
705
   
706
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
707
      (
708
      (if (chart_microwave_mode_logic_clear_off <> 0)
709
         then true
710
         else false) and 
711
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
712
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
713
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
714
715
   
716
   
717
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
718
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
719
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
723
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
724
         then 
725
               (if 
726
                  
727
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
728
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
729
                  then 
730
                        
731
                        0
732
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
733
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
734
735
   
736
   
737
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
738
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
739
         then 0
740
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
741
742
   
743
   
744
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
745
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
746
         then 
747
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
748
                  then 
749
                        
750
                        4
751
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
752
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
753
   
754
   
755
756
   
757
   
758
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
759
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
760
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
761
762
   
763
   
764
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
765
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
766
         then 
767
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
768
                  then 1
769
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
770
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
771
772
   
773
   
774
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
775
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
776
         then 
777
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
778
                  then 
779
                        
780
                        1
781
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
782
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
783
784
   
785
   
786
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
787
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
788
         then 
789
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
790
                  then 
791
                        
792
                        2
793
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
794
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
795
   
796
   
797
798
   
799
   
800
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
801
      ((
802
      (if (chart_microwave_mode_logic_clear_off <> 0)
803
         then true
804
         else false) or 
805
      (not 
806
      (if (chart_microwave_mode_logic_door_closed <> 0)
807
         then true
808
         else false))) and 
809
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
810
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
811
812
   
813
   
814
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
815
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
816
         then 
817
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
818
                  then 
819
                        
820
                        1
821
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
822
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
823
824
   
825
   
826
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
827
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
828
         then 
829
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
830
                  then 2
831
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
832
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
833
834
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
835
      (if (not 
836
         
837
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
838
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
839
         then 
840
               
841
               1
842
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
843
844
   
845
   
846
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
847
      
848
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
849
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
850
      
851
      
852
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
853
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
854
855
   
856
   
857
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
858
      (
859
      
860
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
861
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
862
      
863
      (if (chart_microwave_mode_logic_door_closed <> 0)
864
         then true
865
         else false)));
866
867
   
868
   
869
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
870
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
871
         then 
872
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
873
                  then 
874
                        
875
                        2
876
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
877
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
878
   
879
   
880
881
   
882
   
883
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
884
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
885
         then 
886
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
887
                  then 2
888
                  else chart_microwave_mode_logic_begin_state_outports_mode)
889
         else chart_microwave_mode_logic_begin_state_outports_mode);
890
   
891
   
892
893
   
894
   
895
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
896
      (
897
      
898
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
899
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
900
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
901
902
   
903
   
904
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
905
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
906
         then 
907
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
908
                  then 
909
                        
910
                        3
911
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
912
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
913
   
914
   
915
916
   
917
   
918
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
919
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
920
         then 
921
               
922
               4
923
         else chart_microwave_mode_logic_begin_state_states___root);
924
   
925
   
926
927
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
928
929
   OK = (((not (enable and 
930
      (not KP_CLEAR))) or 
931
      ((not (((((((((KP_1 or 
932
      KP_2) or 
933
      KP_3) or 
934
      KP_4) or 
935
      KP_5) or 
936
      KP_6) or 
937
      KP_7) or 
938
      KP_8) or 
939
      KP_9) or 
940
      KP_0)) or 
941
      (LEFT_DIGIT = 0))) -> ((not (enable and 
942
      (not KP_CLEAR))) or 
943
      ((not ((((((((((KP_1 and 
944
      (not (pre KP_1))) or 
945
      (KP_2 and 
946
      (not (pre KP_2)))) or 
947
      (KP_3 and 
948
      (not (pre KP_3)))) or 
949
      (KP_4 and 
950
      (not (pre KP_4)))) or 
951
      (KP_5 and 
952
      (not (pre KP_5)))) or 
953
      (KP_6 and 
954
      (not (pre KP_6)))) or 
955
      (KP_7 and 
956
      (not (pre KP_7)))) or 
957
      (KP_8 and 
958
      (not (pre KP_8)))) or 
959
      (KP_9 and 
960
      (not (pre KP_9)))) or 
961
      (KP_0 and 
962
      (not (pre KP_0))))) or 
963
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
964
965
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
966
967
   p27 = (((not (enable and 
968
      (not KP_CLEAR))) or 
969
      ((not KP_0) or 
970
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
971
      (not KP_CLEAR))) or 
972
      ((not (KP_0 and 
973
      (not (pre KP_0)))) or 
974
      (RIGHT_DIGIT = 0))));
975
976
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
977
978
   KP_01 = KP_0;
979
980
   KP_11 = KP_1;
981
982
   KP_21 = KP_2;
983
984
   KP_31 = KP_3;
985
986
   KP_41 = KP_4;
987
988
   KP_51 = KP_5;
989
990
   KP_61 = KP_6;
991
992
   KP_71 = KP_7;
993
994
   KP_81 = KP_8;
995
996
   KP_91 = KP_9;
997
998
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
999
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1000
         then 
1001
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1002
                  then 0
1003
                  else 
1004
               (if KP_CLEAR
1005
                  then 0
1006
                  else 
1007
               (if 
1008
                  (if (
1009
                     (if (KP_01 and 
1010
                        (not (pre KP_01)))
1011
                        then 0
1012
                        else 
1013
                     (if (KP_11 and 
1014
                        (not (pre KP_11)))
1015
                        then 1
1016
                        else 
1017
                     (if (KP_21 and 
1018
                        (not (pre KP_21)))
1019
                        then 2
1020
                        else 
1021
                     (if (KP_31 and 
1022
                        (not (pre KP_31)))
1023
                        then 3
1024
                        else 
1025
                     (if (KP_41 and 
1026
                        (not (pre KP_41)))
1027
                        then 4
1028
                        else 
1029
                     (if (KP_51 and 
1030
                        (not (pre KP_51)))
1031
                        then 5
1032
                        else 
1033
                     (if (KP_61 and 
1034
                        (not (pre KP_61)))
1035
                        then 6
1036
                        else 
1037
                     (if (KP_71 and 
1038
                        (not (pre KP_71)))
1039
                        then 7
1040
                        else 
1041
                     (if (KP_81 and 
1042
                        (not (pre KP_81)))
1043
                        then 8
1044
                        else 
1045
                     (if (KP_91 and 
1046
                        (not (pre KP_91)))
1047
                        then 9
1048
                        else 10)))))))))) <= 9)
1049
                     then true
1050
                     else false)
1051
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1052
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1053
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1054
1055
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1056
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1057
         then 
1058
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1059
                  then 0
1060
                  else 
1061
               (if KP_CLEAR
1062
                  then 0
1063
                  else 
1064
               (if 
1065
                  (if (
1066
                     (if (KP_01 and 
1067
                        (not (pre KP_01)))
1068
                        then 0
1069
                        else 
1070
                     (if (KP_11 and 
1071
                        (not (pre KP_11)))
1072
                        then 1
1073
                        else 
1074
                     (if (KP_21 and 
1075
                        (not (pre KP_21)))
1076
                        then 2
1077
                        else 
1078
                     (if (KP_31 and 
1079
                        (not (pre KP_31)))
1080
                        then 3
1081
                        else 
1082
                     (if (KP_41 and 
1083
                        (not (pre KP_41)))
1084
                        then 4
1085
                        else 
1086
                     (if (KP_51 and 
1087
                        (not (pre KP_51)))
1088
                        then 5
1089
                        else 
1090
                     (if (KP_61 and 
1091
                        (not (pre KP_61)))
1092
                        then 6
1093
                        else 
1094
                     (if (KP_71 and 
1095
                        (not (pre KP_71)))
1096
                        then 7
1097
                        else 
1098
                     (if (KP_81 and 
1099
                        (not (pre KP_81)))
1100
                        then 8
1101
                        else 
1102
                     (if (KP_91 and 
1103
                        (not (pre KP_91)))
1104
                        then 9
1105
                        else 10)))))))))) <= 9)
1106
                     then true
1107
                     else false)
1108
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1109
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1110
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1111
1112
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1113
      (if KP_CLEAR
1114
         then 0
1115
         else 
1116
      (if 
1117
         (if (
1118
            (if KP_01
1119
               then 0
1120
               else 
1121
            (if KP_11
1122
               then 1
1123
               else 
1124
            (if KP_21
1125
               then 2
1126
               else 
1127
            (if KP_31
1128
               then 3
1129
               else 
1130
            (if KP_41
1131
               then 4
1132
               else 
1133
            (if KP_51
1134
               then 5
1135
               else 
1136
            (if KP_61
1137
               then 6
1138
               else 
1139
            (if KP_71
1140
               then 7
1141
               else 
1142
            (if KP_81
1143
               then 8
1144
               else 
1145
            (if KP_91
1146
               then 9
1147
               else 10)))))))))) <= 9)
1148
            then true
1149
            else false)
1150
         then 
1151
               (if KP_01
1152
                  then 0
1153
                  else 
1154
               (if KP_11
1155
                  then 1
1156
                  else 
1157
               (if KP_21
1158
                  then 2
1159
                  else 
1160
               (if KP_31
1161
                  then 3
1162
                  else 
1163
               (if KP_41
1164
                  then 4
1165
                  else 
1166
               (if KP_51
1167
                  then 5
1168
                  else 
1169
               (if KP_61
1170
                  then 6
1171
                  else 
1172
               (if KP_71
1173
                  then 7
1174
                  else 
1175
               (if KP_81
1176
                  then 8
1177
                  else 
1178
               (if KP_91
1179
                  then 9
1180
                  else 10))))))))))
1181
         else 0)) -> 
1182
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1183
         then 
1184
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1185
                  then 
1186
                        (if KP_CLEAR
1187
                           then 0
1188
                           else 
1189
                        (if 
1190
                           (if (
1191
                              (if KP_01
1192
                                 then 0
1193
                                 else 
1194
                              (if KP_11
1195
                                 then 1
1196
                                 else 
1197
                              (if KP_21
1198
                                 then 2
1199
                                 else 
1200
                              (if KP_31
1201
                                 then 3
1202
                                 else 
1203
                              (if KP_41
1204
                                 then 4
1205
                                 else 
1206
                              (if KP_51
1207
                                 then 5
1208
                                 else 
1209
                              (if KP_61
1210
                                 then 6
1211
                                 else 
1212
                              (if KP_71
1213
                                 then 7
1214
                                 else 
1215
                              (if KP_81
1216
                                 then 8
1217
                                 else 
1218
                              (if KP_91
1219
                                 then 9
1220
                                 else 10)))))))))) <= 9)
1221
                              then true
1222
                              else false)
1223
                           then 
1224
                                 (if KP_01
1225
                                    then 0
1226
                                    else 
1227
                                 (if KP_11
1228
                                    then 1
1229
                                    else 
1230
                                 (if KP_21
1231
                                    then 2
1232
                                    else 
1233
                                 (if KP_31
1234
                                    then 3
1235
                                    else 
1236
                                 (if KP_41
1237
                                    then 4
1238
                                    else 
1239
                                 (if KP_51
1240
                                    then 5
1241
                                    else 
1242
                                 (if KP_61
1243
                                    then 6
1244
                                    else 
1245
                                 (if KP_71
1246
                                    then 7
1247
                                    else 
1248
                                 (if KP_81
1249
                                    then 8
1250
                                    else 
1251
                                 (if KP_91
1252
                                    then 9
1253
                                    else 10))))))))))
1254
                           else 0))
1255
                  else 
1256
               (if KP_CLEAR
1257
                  then 0
1258
                  else 
1259
               (if 
1260
                  (if (
1261
                     (if (KP_01 and 
1262
                        (not (pre KP_01)))
1263
                        then 0
1264
                        else 
1265
                     (if (KP_11 and 
1266
                        (not (pre KP_11)))
1267
                        then 1
1268
                        else 
1269
                     (if (KP_21 and 
1270
                        (not (pre KP_21)))
1271
                        then 2
1272
                        else 
1273
                     (if (KP_31 and 
1274
                        (not (pre KP_31)))
1275
                        then 3
1276
                        else 
1277
                     (if (KP_41 and 
1278
                        (not (pre KP_41)))
1279
                        then 4
1280
                        else 
1281
                     (if (KP_51 and 
1282
                        (not (pre KP_51)))
1283
                        then 5
1284
                        else 
1285
                     (if (KP_61 and 
1286
                        (not (pre KP_61)))
1287
                        then 6
1288
                        else 
1289
                     (if (KP_71 and 
1290
                        (not (pre KP_71)))
1291
                        then 7
1292
                        else 
1293
                     (if (KP_81 and 
1294
                        (not (pre KP_81)))
1295
                        then 8
1296
                        else 
1297
                     (if (KP_91 and 
1298
                        (not (pre KP_91)))
1299
                        then 9
1300
                        else 10)))))))))) <= 9)
1301
                     then true
1302
                     else false)
1303
                  then 
1304
                        (if (KP_01 and 
1305
                           (not (pre KP_01)))
1306
                           then 0
1307
                           else 
1308
                        (if (KP_11 and 
1309
                           (not (pre KP_11)))
1310
                           then 1
1311
                           else 
1312
                        (if (KP_21 and 
1313
                           (not (pre KP_21)))
1314
                           then 2
1315
                           else 
1316
                        (if (KP_31 and 
1317
                           (not (pre KP_31)))
1318
                           then 3
1319
                           else 
1320
                        (if (KP_41 and 
1321
                           (not (pre KP_41)))
1322
                           then 4
1323
                           else 
1324
                        (if (KP_51 and 
1325
                           (not (pre KP_51)))
1326
                           then 5
1327
                           else 
1328
                        (if (KP_61 and 
1329
                           (not (pre KP_61)))
1330
                           then 6
1331
                           else 
1332
                        (if (KP_71 and 
1333
                           (not (pre KP_71)))
1334
                           then 7
1335
                           else 
1336
                        (if (KP_81 and 
1337
                           (not (pre KP_81)))
1338
                           then 8
1339
                           else 
1340
                        (if (KP_91 and 
1341
                           (not (pre KP_91)))
1342
                           then 9
1343
                           else 10))))))))))
1344
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1345
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1346
1347
   STEPS_TO_COOK = (
1348
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1349
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1350
         then 0
1351
         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)) -> 
1352
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1353
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1354
         then 0
1355
         else 
1356
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1357
         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)
1358
         else (pre STEPS_TO_COOK))));
1359
1360
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1361
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1362
         then true
1363
         else 
1364
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1365
         then false
1366
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1367
1368
   SETUP = 
1369
      (if (1 = microwave_microwave_mode_logic_mode)
1370
         then true
1371
         else false);
1372
1373
   p32 = (true -> ((not (enable and 
1374
      (not KP_CLEAR))) or 
1375
      ((not ((KP_5 and 
1376
      (not (pre KP_5))) and 
1377
      ((not (KP_4 and 
1378
      (not (pre KP_4)))) and 
1379
      ((not (KP_3 and 
1380
      (not (pre KP_3)))) and 
1381
      ((not (KP_2 and 
1382
      (not (pre KP_2)))) and 
1383
      ((not (KP_1 and 
1384
      (not (pre KP_1)))) and 
1385
      (not (KP_0 and 
1386
      (not (pre KP_0)))))))))) or 
1387
      (RIGHT_DIGIT = 5))));
1388
1389
   enable = (true -> 
1390
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1391
         then true
1392
         else false));
1393
1394
   p28 = (true -> ((not (enable and 
1395
      (not KP_CLEAR))) or 
1396
      ((not ((KP_1 and 
1397
      (not (pre KP_1))) and 
1398
      (not (KP_0 and 
1399
      (not (pre KP_0)))))) or 
1400
      (RIGHT_DIGIT = 1))));
1401
1402
   p19 = (true -> ((not (enable and 
1403
      (not KP_CLEAR))) or 
1404
      (((((((((((KP_1 and 
1405
      (not (pre KP_1))) or 
1406
      (KP_2 and 
1407
      (not (pre KP_2)))) or 
1408
      (KP_3 and 
1409
      (not (pre KP_3)))) or 
1410
      (KP_4 and 
1411
      (not (pre KP_4)))) or 
1412
      (KP_5 and 
1413
      (not (pre KP_5)))) or 
1414
      (KP_6 and 
1415
      (not (pre KP_6)))) or 
1416
      (KP_7 and 
1417
      (not (pre KP_7)))) or 
1418
      (KP_8 and 
1419
      (not (pre KP_8)))) or 
1420
      (KP_9 and 
1421
      (not (pre KP_9)))) or 
1422
      (KP_0 and 
1423
      (not (pre KP_0)))) or 
1424
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1425
1426
   p29 = (true -> ((not (enable and 
1427
      (not KP_CLEAR))) or 
1428
      ((not ((KP_2 and 
1429
      (not (pre KP_2))) and 
1430
      ((not (KP_1 and 
1431
      (not (pre KP_1)))) and 
1432
      (not (KP_0 and 
1433
      (not (pre KP_0))))))) or 
1434
      (RIGHT_DIGIT = 2))));
1435
1436
   p34 = (true -> ((not (enable and 
1437
      (not KP_CLEAR))) or 
1438
      ((not ((KP_7 and 
1439
      (not (pre KP_7))) and 
1440
      ((not (KP_6 and 
1441
      (not (pre KP_6)))) and 
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 = 7))));
1455
1456
   p21 = ((not (enable and 
1457
      KP_CLEAR)) or 
1458
      (MIDDLE_DIGIT = 0));
1459
1460
  --%PROPERTY OK=true;
1461
  --%MAIN;
1462
1463
tel