Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (46 KB)

1
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
   p23: bool; 
107
   p24: bool; 
108
   p25: bool; 
109
   p26: bool; 
110
   p27: bool; 
111
   p28: bool; 
112
   p29: bool; 
113
   p30: bool; 
114
   p31: bool; 
115
   p32: bool; 
116
   p33: bool; 
117
   p34: bool; 
118
   p35: bool; 
119
   p36: bool; 
120
   p37: bool; 
121
let 
122
   rlt__Arrow5 = (639 -> 
123
      (if (not (not SETUP))
124
         then 
125
               (if (MWI_FcnMaxI_In13 > 0)
126
                  then MWI_FcnMaxI_In13
127
                  else 0)
128
         else 639));
129

    
130
   rlt__Arrow4 = (639 -> 
131
      (if (not SUSPENDED)
132
         then 
133
               (if (MWI_FcnMaxI_In12 > 0)
134
                  then MWI_FcnMaxI_In12
135
                  else 0)
136
         else 639));
137

    
138
   rlt__Arrow3 = (639 -> 
139
      (if (not (not COOKING))
140
         then 
141
               (if (MWI_FcnMaxI_In16 > 0)
142
                  then MWI_FcnMaxI_In16
143
                  else 0)
144
         else 639));
145

    
146
   rlt__Arrow2 = (639 -> 
147
      (if (not (not SUSPENDED))
148
         then 
149
               (if (MWI_FcnMaxI_In15 > 0)
150
                  then MWI_FcnMaxI_In15
151
                  else 0)
152
         else 639));
153

    
154
   rlt__Arrow1 = (639 -> 
155
      (if (not COOKING)
156
         then 
157
               (if (MWI_FcnMaxI_In11 > 0)
158
                  then MWI_FcnMaxI_In11
159
                  else 0)
160
         else 639));
161

    
162
   rlt__Arrow = (639 -> 
163
      (if (not SETUP)
164
         then 
165
               (if (MWI_FcnMaxI_In1 > 0)
166
                  then MWI_FcnMaxI_In1
167
                  else 0)
168
         else 639));
169

    
170

    
171
   p23 = (true -> (((not (enable and 
172
      (not KP_CLEAR))) or 
173
      (not ((((((((((KP_1 and 
174
      (not (pre KP_1))) or 
175
      (KP_2 and 
176
      (not (pre KP_2)))) or 
177
      (KP_3 and 
178
      (not (pre KP_3)))) or 
179
      (KP_4 and 
180
      (not (pre KP_4)))) or 
181
      (KP_5 and 
182
      (not (pre KP_5)))) or 
183
      (KP_6 and 
184
      (not (pre KP_6)))) or 
185
      (KP_7 and 
186
      (not (pre KP_7)))) or 
187
      (KP_8 and 
188
      (not (pre KP_8)))) or 
189
      (KP_9 and 
190
      (not (pre KP_9)))) or 
191
      (KP_0 and 
192
      (not (pre KP_0)))))) or 
193
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*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
   OK = (true -> (((not (enable and 
243
      (not KP_CLEAR))) or 
244
      (not ((((((((((KP_1 and 
245
      (not (pre KP_1))) or 
246
      (KP_2 and 
247
      (not (pre KP_2)))) or 
248
      (KP_3 and 
249
      (not (pre KP_3)))) or 
250
      (KP_4 and 
251
      (not (pre KP_4)))) or 
252
      (KP_5 and 
253
      (not (pre KP_5)))) or 
254
      (KP_6 and 
255
      (not (pre KP_6)))) or 
256
      (KP_7 and 
257
      (not (pre KP_7)))) or 
258
      (KP_8 and 
259
      (not (pre KP_8)))) or 
260
      (KP_9 and 
261
      (not (pre KP_9)))) or 
262
      (KP_0 and 
263
      (not (pre KP_0)))))) or 
264
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
265

    
266
   p36 = (true -> ((not (enable and 
267
      (not KP_CLEAR))) or 
268
      ((not ((KP_9 and 
269
      (not (pre KP_9))) and 
270
      ((not (KP_8 and 
271
      (not (pre KP_8)))) and 
272
      ((not (KP_7 and 
273
      (not (pre KP_7)))) and 
274
      ((not (KP_6 and 
275
      (not (pre KP_6)))) and 
276
      ((not (KP_5 and 
277
      (not (pre KP_5)))) and 
278
      ((not (KP_4 and 
279
      (not (pre KP_4)))) and 
280
      ((not (KP_3 and 
281
      (not (pre KP_3)))) and 
282
      ((not (KP_2 and 
283
      (not (pre KP_2)))) and 
284
      ((not (KP_1 and 
285
      (not (pre KP_1)))) and 
286
      (not (KP_0 and 
287
      (not (pre KP_0)))))))))))))) or 
288
      (RIGHT_DIGIT = 9))));
289

    
290
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
291

    
292
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
293
      (not (pre KP_CLEAR))));
294

    
295
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
296

    
297
   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));
298

    
299
   SUSPENDED = 
300
      (if (3 = microwave_microwave_mode_logic_mode)
301
         then true
302
         else false);
303

    
304
   p31 = (true -> ((not (enable and 
305
      (not KP_CLEAR))) or 
306
      ((not ((KP_4 and 
307
      (not (pre KP_4))) and 
308
      ((not (KP_3 and 
309
      (not (pre KP_3)))) and 
310
      ((not (KP_2 and 
311
      (not (pre KP_2)))) and 
312
      ((not (KP_1 and 
313
      (not (pre KP_1)))) and 
314
      (not (KP_0 and 
315
      (not (pre KP_0))))))))) or 
316
      (RIGHT_DIGIT = 4))));
317

    
318
   p37 = (true -> ((not (enable and 
319
      (not KP_CLEAR))) or 
320
      (((((((((((KP_1 and 
321
      (not (pre KP_1))) or 
322
      (KP_2 and 
323
      (not (pre KP_2)))) or 
324
      (KP_3 and 
325
      (not (pre KP_3)))) or 
326
      (KP_4 and 
327
      (not (pre KP_4)))) or 
328
      (KP_5 and 
329
      (not (pre KP_5)))) or 
330
      (KP_6 and 
331
      (not (pre KP_6)))) or 
332
      (KP_7 and 
333
      (not (pre KP_7)))) or 
334
      (KP_8 and 
335
      (not (pre KP_8)))) or 
336
      (KP_9 and 
337
      (not (pre KP_9)))) or 
338
      (KP_0 and 
339
      (not (pre KP_0)))) or 
340
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
341

    
342
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
343

    
344
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
345

    
346
   p24 = (true -> (((not (enable and 
347
      (not KP_CLEAR))) or 
348
      ((((((((((KP_1 and 
349
      (not (pre KP_1))) or 
350
      (KP_2 and 
351
      (not (pre KP_2)))) or 
352
      (KP_3 and 
353
      (not (pre KP_3)))) or 
354
      (KP_4 and 
355
      (not (pre KP_4)))) or 
356
      (KP_5 and 
357
      (not (pre KP_5)))) or 
358
      (KP_6 and 
359
      (not (pre KP_6)))) or 
360
      (KP_7 and 
361
      (not (pre KP_7)))) or 
362
      (KP_8 and 
363
      (not (pre KP_8)))) or 
364
      (KP_9 and 
365
      (not (pre KP_9)))) or 
366
      (KP_0 and 
367
      (not (pre KP_0))))) or 
368
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
369

    
370

    
371
   p26 = ((not (enable and 
372
      KP_CLEAR)) or 
373
      (RIGHT_DIGIT = 0));
374

    
375
   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);
376

    
377
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
378

    
379

    
380
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
381

    
382

    
383
   p30 = (true -> ((not (enable and 
384
      (not KP_CLEAR))) or 
385
      ((not ((KP_3 and 
386
      (not (pre KP_3))) and 
387
      ((not (KP_2 and 
388
      (not (pre KP_2)))) and 
389
      ((not (KP_1 and 
390
      (not (pre KP_1)))) and 
391
      (not (KP_0 and 
392
      (not (pre KP_0)))))))) or 
393
      (RIGHT_DIGIT = 3))));
394

    
395
   COOKING = 
396
      (if (2 = microwave_microwave_mode_logic_mode)
397
         then true
398
         else false);
399

    
400
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
401

    
402
   START_PRESSED = (KP_START -> (KP_START and 
403
      (not (pre KP_START))));
404

    
405
   chart_microwave_mode_logic_start = 
406
      (if (START_PRESSED = false)
407
         then 0
408
         else 1);
409

    
410
   chart_microwave_mode_logic_clear_off = 
411
      (if (CLEAR_PRESSED = false)
412
         then 0
413
         else 1);
414

    
415
   chart_microwave_mode_logic_door_closed = 
416
      (if (DOOR_CLOSED = false)
417
         then 0
418
         else 1);
419

    
420
   chart_microwave_mode_logic____wakeup___ = true;
421

    
422
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
423
      (if (pre chart_microwave_mode_logic____wakeup___)
424
         then false
425
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
426

    
427
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
428

    
429
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
430

    
431
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
432

    
433
   chart_microwave_mode_logic_final_state_states___root = 
434
      (if chart_microwave_mode_logic____wakeup___
435
         then 
436
               (if chart_microwave_mode_logic_rlt_evtInitStep
437
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
438
                  else 
439
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
440
                  
441
                  
442
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
443
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
444
                  then 
445
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
446
                           then 
447
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
448
                                    then 
449
                                          
450
                                          3
451
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
452
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
453
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
454
         else chart_microwave_mode_logic_begin_state_states___root);
455

    
456
   chart_microwave_mode_logic_mode = 
457
      (if chart_microwave_mode_logic____wakeup___
458
         then 
459
               (if chart_microwave_mode_logic_rlt_evtInitStep
460
                  then 
461
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
462
                           then 1
463
                           else chart_microwave_mode_logic_begin_state_outports_mode)
464
                  else 
465
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
466
                  
467
                  
468
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
469
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
470
                  then 
471
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
472
                           then 
473
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
474
                                    then 3
475
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
476
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
477
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
478
         else chart_microwave_mode_logic_begin_state_outports_mode);
479

    
480
   chart_microwave_mode_logic_steps_remaining = 
481
      (if chart_microwave_mode_logic____wakeup___
482
         then 
483
               (if chart_microwave_mode_logic_rlt_evtInitStep
484
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
485
                  else 
486
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
487
                  
488
                  
489
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
490
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
491
                  then 
492
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
493
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
494
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
495
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
496
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
497

    
498
   
499
   
500
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
501

    
502
   
503
   
504
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
505
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
506
         then STEPS_TO_COOK
507
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
508

    
509
   
510
   
511
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
512
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
513
      (
514
      (if (chart_microwave_mode_logic_start <> 0)
515
         then true
516
         else false) and 
517
      
518
      (if (
519
         (if ((STEPS_TO_COOK > 0) = false)
520
            then 0
521
            else 1) <> 0)
522
         then true
523
         else false))));
524

    
525
   
526
   
527
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
528
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
529
         then 
530
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
531
                  then 
532
                        
533
                        0
534
                  else chart_microwave_mode_logic_begin_state_states___root)
535
         else chart_microwave_mode_logic_begin_state_states___root);
536

    
537
   
538
   
539
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
540
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
541
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
542
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
543
   
544
   
545

    
546
   
547
   
548
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
549
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
550
         then 
551
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
552
                  then 
553
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
554
                           then 3
555
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
556
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
557
         else chart_microwave_mode_logic_begin_state_outports_mode);
558
   
559
   
560

    
561
   
562
   
563
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
564
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
565
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
566

    
567
   
568
   
569
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
570
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
571
         then 
572
               (if 
573
                  
574
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
575
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
576
                  then 
577
                        
578
                        0
579
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
580
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
581

    
582
   
583
   
584
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
585
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
586
         then 
587
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
588
                  then 
589
                        
590
                        4
591
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
592
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
593
   
594
   
595

    
596
   
597
   
598
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
599
      ((
600
      (if (chart_microwave_mode_logic_start <> 0)
601
         then true
602
         else false) and 
603
      
604
      (if (chart_microwave_mode_logic_door_closed <> 0)
605
         then true
606
         else false)) and 
607
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
608

    
609
   
610
   
611
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
612
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
617
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
618
         then 
619
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
620
                  then 
621
                        
622
                        1
623
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
624
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
625

    
626
   
627
   
628
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
629
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
630
         then 
631
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
632
                  then 1
633
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
634
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
635

    
636
   
637
   
638
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
639
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
640
         then 
641
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
642
                  then 
643
                        
644
                        2
645
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
646
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
647
   
648
   
649

    
650
   
651
   
652
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
653
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
654
         then 
655
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
656
                  then 2
657
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
658
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
659
   
660
   
661

    
662
   
663
   
664
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
665
      (
666
      (if (chart_microwave_mode_logic_clear_off <> 0)
667
         then true
668
         else false) and 
669
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
670
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
671
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
672

    
673
   
674
   
675
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
676
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
677

    
678
   
679
   
680
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
681
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
682
         then 
683
               (if 
684
                  
685
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
686
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
687
                  then 
688
                        
689
                        0
690
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
691
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
696
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
697
         then 0
698
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
699

    
700
   
701
   
702
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
703
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
704
         then 
705
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
706
                  then 
707
                        
708
                        4
709
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
710
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
711
   
712
   
713

    
714
   
715
   
716
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
717
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
718
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
719

    
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
723
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
724
         then 
725
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
726
                  then 1
727
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
728
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
729

    
730
   
731
   
732
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
733
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
734
         then 
735
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
736
                  then 
737
                        
738
                        1
739
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
740
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
741

    
742
   
743
   
744
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
745
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
746
         then 
747
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
748
                  then 
749
                        
750
                        2
751
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
752
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
753
   
754
   
755

    
756
   
757
   
758
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
759
      ((
760
      (if (chart_microwave_mode_logic_clear_off <> 0)
761
         then true
762
         else false) or 
763
      (not 
764
      (if (chart_microwave_mode_logic_door_closed <> 0)
765
         then true
766
         else false))) and 
767
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
768
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
769

    
770
   
771
   
772
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
773
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
774
         then 
775
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
776
                  then 
777
                        
778
                        1
779
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
780
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
781

    
782
   
783
   
784
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
785
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
786
         then 
787
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
788
                  then 2
789
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
790
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
791

    
792
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
793
      (if (not 
794
         
795
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
796
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
797
         then 
798
               
799
               1
800
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
801

    
802
   
803
   
804
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
805
      
806
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
807
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
808
      
809
      
810
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
811
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
812

    
813
   
814
   
815
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
816
      (
817
      
818
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
819
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
820
      
821
      (if (chart_microwave_mode_logic_door_closed <> 0)
822
         then true
823
         else false)));
824

    
825
   
826
   
827
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
828
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
829
         then 
830
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
831
                  then 
832
                        
833
                        2
834
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
835
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
836
   
837
   
838

    
839
   
840
   
841
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
842
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
843
         then 
844
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
845
                  then 2
846
                  else chart_microwave_mode_logic_begin_state_outports_mode)
847
         else chart_microwave_mode_logic_begin_state_outports_mode);
848
   
849
   
850

    
851
   
852
   
853
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
854
      (
855
      
856
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
857
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
858
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
859

    
860
   
861
   
862
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
863
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
864
         then 
865
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
866
                  then 
867
                        
868
                        3
869
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
870
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
871
   
872
   
873

    
874
   
875
   
876
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
877
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
878
         then 
879
               
880
               4
881
         else chart_microwave_mode_logic_begin_state_states___root);
882
   
883
   
884

    
885
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
886

    
887

    
888
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
889

    
890
   p27 = (((not (enable and 
891
      (not KP_CLEAR))) or 
892
      ((not KP_0) or 
893
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
894
      (not KP_CLEAR))) or 
895
      ((not (KP_0 and 
896
      (not (pre KP_0)))) or 
897
      (RIGHT_DIGIT = 0))));
898

    
899
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
900

    
901
   KP_01 = KP_0;
902

    
903
   KP_11 = KP_1;
904

    
905
   KP_21 = KP_2;
906

    
907
   KP_31 = KP_3;
908

    
909
   KP_41 = KP_4;
910

    
911
   KP_51 = KP_5;
912

    
913
   KP_61 = KP_6;
914

    
915
   KP_71 = KP_7;
916

    
917
   KP_81 = KP_8;
918

    
919
   KP_91 = KP_9;
920

    
921
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
922
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
923
         then 
924
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
925
                  then 0
926
                  else 
927
               (if KP_CLEAR
928
                  then 0
929
                  else 
930
               (if 
931
                  (if (
932
                     (if (KP_01 and 
933
                        (not (pre KP_01)))
934
                        then 0
935
                        else 
936
                     (if (KP_11 and 
937
                        (not (pre KP_11)))
938
                        then 1
939
                        else 
940
                     (if (KP_21 and 
941
                        (not (pre KP_21)))
942
                        then 2
943
                        else 
944
                     (if (KP_31 and 
945
                        (not (pre KP_31)))
946
                        then 3
947
                        else 
948
                     (if (KP_41 and 
949
                        (not (pre KP_41)))
950
                        then 4
951
                        else 
952
                     (if (KP_51 and 
953
                        (not (pre KP_51)))
954
                        then 5
955
                        else 
956
                     (if (KP_61 and 
957
                        (not (pre KP_61)))
958
                        then 6
959
                        else 
960
                     (if (KP_71 and 
961
                        (not (pre KP_71)))
962
                        then 7
963
                        else 
964
                     (if (KP_81 and 
965
                        (not (pre KP_81)))
966
                        then 8
967
                        else 
968
                     (if (KP_91 and 
969
                        (not (pre KP_91)))
970
                        then 9
971
                        else 10)))))))))) <= 9)
972
                     then true
973
                     else false)
974
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
975
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
976
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
977

    
978
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
979
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
980
         then 
981
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
982
                  then 0
983
                  else 
984
               (if KP_CLEAR
985
                  then 0
986
                  else 
987
               (if 
988
                  (if (
989
                     (if (KP_01 and 
990
                        (not (pre KP_01)))
991
                        then 0
992
                        else 
993
                     (if (KP_11 and 
994
                        (not (pre KP_11)))
995
                        then 1
996
                        else 
997
                     (if (KP_21 and 
998
                        (not (pre KP_21)))
999
                        then 2
1000
                        else 
1001
                     (if (KP_31 and 
1002
                        (not (pre KP_31)))
1003
                        then 3
1004
                        else 
1005
                     (if (KP_41 and 
1006
                        (not (pre KP_41)))
1007
                        then 4
1008
                        else 
1009
                     (if (KP_51 and 
1010
                        (not (pre KP_51)))
1011
                        then 5
1012
                        else 
1013
                     (if (KP_61 and 
1014
                        (not (pre KP_61)))
1015
                        then 6
1016
                        else 
1017
                     (if (KP_71 and 
1018
                        (not (pre KP_71)))
1019
                        then 7
1020
                        else 
1021
                     (if (KP_81 and 
1022
                        (not (pre KP_81)))
1023
                        then 8
1024
                        else 
1025
                     (if (KP_91 and 
1026
                        (not (pre KP_91)))
1027
                        then 9
1028
                        else 10)))))))))) <= 9)
1029
                     then true
1030
                     else false)
1031
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1032
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1033
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1034

    
1035
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1036
      (if KP_CLEAR
1037
         then 0
1038
         else 
1039
      (if 
1040
         (if (
1041
            (if KP_01
1042
               then 0
1043
               else 
1044
            (if KP_11
1045
               then 1
1046
               else 
1047
            (if KP_21
1048
               then 2
1049
               else 
1050
            (if KP_31
1051
               then 3
1052
               else 
1053
            (if KP_41
1054
               then 4
1055
               else 
1056
            (if KP_51
1057
               then 5
1058
               else 
1059
            (if KP_61
1060
               then 6
1061
               else 
1062
            (if KP_71
1063
               then 7
1064
               else 
1065
            (if KP_81
1066
               then 8
1067
               else 
1068
            (if KP_91
1069
               then 9
1070
               else 10)))))))))) <= 9)
1071
            then true
1072
            else false)
1073
         then 
1074
               (if KP_01
1075
                  then 0
1076
                  else 
1077
               (if KP_11
1078
                  then 1
1079
                  else 
1080
               (if KP_21
1081
                  then 2
1082
                  else 
1083
               (if KP_31
1084
                  then 3
1085
                  else 
1086
               (if KP_41
1087
                  then 4
1088
                  else 
1089
               (if KP_51
1090
                  then 5
1091
                  else 
1092
               (if KP_61
1093
                  then 6
1094
                  else 
1095
               (if KP_71
1096
                  then 7
1097
                  else 
1098
               (if KP_81
1099
                  then 8
1100
                  else 
1101
               (if KP_91
1102
                  then 9
1103
                  else 10))))))))))
1104
         else 0)) -> 
1105
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1106
         then 
1107
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1108
                  then 
1109
                        (if KP_CLEAR
1110
                           then 0
1111
                           else 
1112
                        (if 
1113
                           (if (
1114
                              (if KP_01
1115
                                 then 0
1116
                                 else 
1117
                              (if KP_11
1118
                                 then 1
1119
                                 else 
1120
                              (if KP_21
1121
                                 then 2
1122
                                 else 
1123
                              (if KP_31
1124
                                 then 3
1125
                                 else 
1126
                              (if KP_41
1127
                                 then 4
1128
                                 else 
1129
                              (if KP_51
1130
                                 then 5
1131
                                 else 
1132
                              (if KP_61
1133
                                 then 6
1134
                                 else 
1135
                              (if KP_71
1136
                                 then 7
1137
                                 else 
1138
                              (if KP_81
1139
                                 then 8
1140
                                 else 
1141
                              (if KP_91
1142
                                 then 9
1143
                                 else 10)))))))))) <= 9)
1144
                              then true
1145
                              else false)
1146
                           then 
1147
                                 (if KP_01
1148
                                    then 0
1149
                                    else 
1150
                                 (if KP_11
1151
                                    then 1
1152
                                    else 
1153
                                 (if KP_21
1154
                                    then 2
1155
                                    else 
1156
                                 (if KP_31
1157
                                    then 3
1158
                                    else 
1159
                                 (if KP_41
1160
                                    then 4
1161
                                    else 
1162
                                 (if KP_51
1163
                                    then 5
1164
                                    else 
1165
                                 (if KP_61
1166
                                    then 6
1167
                                    else 
1168
                                 (if KP_71
1169
                                    then 7
1170
                                    else 
1171
                                 (if KP_81
1172
                                    then 8
1173
                                    else 
1174
                                 (if KP_91
1175
                                    then 9
1176
                                    else 10))))))))))
1177
                           else 0))
1178
                  else 
1179
               (if KP_CLEAR
1180
                  then 0
1181
                  else 
1182
               (if 
1183
                  (if (
1184
                     (if (KP_01 and 
1185
                        (not (pre KP_01)))
1186
                        then 0
1187
                        else 
1188
                     (if (KP_11 and 
1189
                        (not (pre KP_11)))
1190
                        then 1
1191
                        else 
1192
                     (if (KP_21 and 
1193
                        (not (pre KP_21)))
1194
                        then 2
1195
                        else 
1196
                     (if (KP_31 and 
1197
                        (not (pre KP_31)))
1198
                        then 3
1199
                        else 
1200
                     (if (KP_41 and 
1201
                        (not (pre KP_41)))
1202
                        then 4
1203
                        else 
1204
                     (if (KP_51 and 
1205
                        (not (pre KP_51)))
1206
                        then 5
1207
                        else 
1208
                     (if (KP_61 and 
1209
                        (not (pre KP_61)))
1210
                        then 6
1211
                        else 
1212
                     (if (KP_71 and 
1213
                        (not (pre KP_71)))
1214
                        then 7
1215
                        else 
1216
                     (if (KP_81 and 
1217
                        (not (pre KP_81)))
1218
                        then 8
1219
                        else 
1220
                     (if (KP_91 and 
1221
                        (not (pre KP_91)))
1222
                        then 9
1223
                        else 10)))))))))) <= 9)
1224
                     then true
1225
                     else false)
1226
                  then 
1227
                        (if (KP_01 and 
1228
                           (not (pre KP_01)))
1229
                           then 0
1230
                           else 
1231
                        (if (KP_11 and 
1232
                           (not (pre KP_11)))
1233
                           then 1
1234
                           else 
1235
                        (if (KP_21 and 
1236
                           (not (pre KP_21)))
1237
                           then 2
1238
                           else 
1239
                        (if (KP_31 and 
1240
                           (not (pre KP_31)))
1241
                           then 3
1242
                           else 
1243
                        (if (KP_41 and 
1244
                           (not (pre KP_41)))
1245
                           then 4
1246
                           else 
1247
                        (if (KP_51 and 
1248
                           (not (pre KP_51)))
1249
                           then 5
1250
                           else 
1251
                        (if (KP_61 and 
1252
                           (not (pre KP_61)))
1253
                           then 6
1254
                           else 
1255
                        (if (KP_71 and 
1256
                           (not (pre KP_71)))
1257
                           then 7
1258
                           else 
1259
                        (if (KP_81 and 
1260
                           (not (pre KP_81)))
1261
                           then 8
1262
                           else 
1263
                        (if (KP_91 and 
1264
                           (not (pre KP_91)))
1265
                           then 9
1266
                           else 10))))))))))
1267
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1268
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1269

    
1270
   STEPS_TO_COOK = (
1271
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1272
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1273
         then 0
1274
         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)) -> 
1275
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1276
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1277
         then 0
1278
         else 
1279
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1280
         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)
1281
         else (pre STEPS_TO_COOK))));
1282

    
1283
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1284
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1285
         then true
1286
         else 
1287
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1288
         then false
1289
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1290

    
1291
   SETUP = 
1292
      (if (1 = microwave_microwave_mode_logic_mode)
1293
         then true
1294
         else false);
1295

    
1296
   p32 = (true -> ((not (enable and 
1297
      (not KP_CLEAR))) or 
1298
      ((not ((KP_5 and 
1299
      (not (pre KP_5))) and 
1300
      ((not (KP_4 and 
1301
      (not (pre KP_4)))) and 
1302
      ((not (KP_3 and 
1303
      (not (pre KP_3)))) and 
1304
      ((not (KP_2 and 
1305
      (not (pre KP_2)))) and 
1306
      ((not (KP_1 and 
1307
      (not (pre KP_1)))) and 
1308
      (not (KP_0 and 
1309
      (not (pre KP_0)))))))))) or 
1310
      (RIGHT_DIGIT = 5))));
1311

    
1312
   enable = (true -> 
1313
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1314
         then true
1315
         else false));
1316

    
1317
   p28 = (true -> ((not (enable and 
1318
      (not KP_CLEAR))) or 
1319
      ((not ((KP_1 and 
1320
      (not (pre KP_1))) and 
1321
      (not (KP_0 and 
1322
      (not (pre KP_0)))))) or 
1323
      (RIGHT_DIGIT = 1))));
1324

    
1325

    
1326
   p29 = (true -> ((not (enable and 
1327
      (not KP_CLEAR))) or 
1328
      ((not ((KP_2 and 
1329
      (not (pre KP_2))) and 
1330
      ((not (KP_1 and 
1331
      (not (pre KP_1)))) and 
1332
      (not (KP_0 and 
1333
      (not (pre KP_0))))))) or 
1334
      (RIGHT_DIGIT = 2))));
1335

    
1336
   p34 = (true -> ((not (enable and 
1337
      (not KP_CLEAR))) or 
1338
      ((not ((KP_7 and 
1339
      (not (pre KP_7))) and 
1340
      ((not (KP_6 and 
1341
      (not (pre KP_6)))) and 
1342
      ((not (KP_5 and 
1343
      (not (pre KP_5)))) and 
1344
      ((not (KP_4 and 
1345
      (not (pre KP_4)))) and 
1346
      ((not (KP_3 and 
1347
      (not (pre KP_3)))) and 
1348
      ((not (KP_2 and 
1349
      (not (pre KP_2)))) and 
1350
      ((not (KP_1 and 
1351
      (not (pre KP_1)))) and 
1352
      (not (KP_0 and 
1353
      (not (pre KP_0)))))))))))) or 
1354
      (RIGHT_DIGIT = 7))));
1355

    
1356

    
1357
  --%PROPERTY OK=true;
1358
  --%MAIN;
1359

    
1360
tel
1361