Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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