Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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