Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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