Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / all files / microwave19.lus @ b8dc00eb

History | View | Annotate | Download (48.5 KB)

1
--@ ensures OK;
2
node top(KP_START: bool; 
3
      KP_CLEAR: bool; 
4
      KP_0: bool; 
5
      KP_1: bool; 
6
      KP_2: bool; 
7
      KP_3: bool; 
8
      KP_4: bool; 
9
      KP_5: bool; 
10
      KP_6: bool; 
11
      KP_7: bool; 
12
      KP_8: bool; 
13
      KP_9: bool; 
14
      DOOR_CLOSED: bool
15
) returns (OK:bool);
16

    
17
   
18
var
19
   LEFT_DIGIT: int; 
20
      SETUP: bool; 
21
      COOKING: bool; 
22
      SUSPENDED: bool; 
23
      START_PRESSED: bool; 
24
      CLEAR_PRESSED: bool; 
25
      MIDDLE_DIGIT: int; 
26
      RIGHT_DIGIT: int; 
27
      enable: bool; 
28
      STEPS_TO_COOK: int;
29
      
30
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; 
31
   KP_01: bool; 
32
   KP_11: bool; 
33
   KP_21: bool; 
34
   KP_31: bool; 
35
   KP_41: bool; 
36
   KP_51: bool; 
37
   KP_61: bool; 
38
   KP_71: bool; 
39
   KP_81: bool; 
40
   KP_91: bool; 
41
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; 
42
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; 
43
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; 
44
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; 
45
   rlt__Arrow5: int; 
46
   rlt__Arrow4: int; 
47
   rlt__Arrow3: int; 
48
   rlt__Arrow2: int; 
49
   rlt__Arrow1: int; 
50
   rlt__Arrow: int; 
51
   chart_microwave_mode_logic_start: int; 
52
   chart_microwave_mode_logic_clear_off: int; 
53
   chart_microwave_mode_logic_door_closed: int; 
54
   chart_microwave_mode_logic____wakeup___: bool; 
55
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; 
56
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
57
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
58
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; 
59
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; 
60
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; 
61
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; 
62
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
63
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; 
64
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; 
65
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; 
66
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; 
67
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; 
68
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; 
69
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; 
70
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; 
71
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; 
72
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; 
73
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; 
74
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; 
75
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; 
76
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
77
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; 
78
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; 
79
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
80
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; 
81
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; 
82
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
83
   rlt_eval_microwave_mode_logic_rlt_fired_0: bool; 
84
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; 
85
   rlt_eval_microwave_mode_logic_rlt_fired_1: bool; 
86
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; 
87
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; 
88
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; 
89
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; 
90
   chart_microwave_mode_logic_rlt_evtInitStep: bool; 
91
   chart_microwave_mode_logic_begin_state_states___root: int; 
92
   chart_microwave_mode_logic_begin_state_outports_mode: int; 
93
   chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; 
94
   chart_microwave_mode_logic_final_state_states___root: int; 
95
   chart_microwave_mode_logic_mode: int; 
96
   chart_microwave_mode_logic_steps_remaining: int; 
97
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; 
98
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; 
99
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; 
100
   microwave_microwave_mode_logic_mode: int; 
101
   MWI_FcnMaxI_In16: int; 
102
   MWI_FcnMaxI_In15: int; 
103
   MWI_FcnMaxI_In13: int; 
104
   MWI_FcnMaxI_In12: int; 
105
   MWI_FcnMaxI_In11: int; 
106
   MWI_FcnMaxI_In1: int; 
107
   p17: bool; 
108
   p18: bool; 
109
   p19: bool; 
110
   p20: bool; 
111
   p21: bool; 
112
   p22: bool; 
113
   p23: bool; 
114
   p24: bool; 
115
   p25: bool; 
116
   p26: bool; 
117
   p27: bool; 
118
   p28: bool; 
119
   p29: bool; 
120
   p30: bool; 
121
   p31: bool; 
122
   p32: bool; 
123
   p33: bool; 
124
   p34: bool; 
125
   p35: bool; 
126
   p36: bool; 
127
   p37: bool; 
128
let 
129
   rlt__Arrow5 = (639 -> 
130
      (if (not (not SETUP))
131
         then 
132
               (if (MWI_FcnMaxI_In13 > 0)
133
                  then MWI_FcnMaxI_In13
134
                  else 0)
135
         else 639));
136

    
137
   rlt__Arrow4 = (639 -> 
138
      (if (not SUSPENDED)
139
         then 
140
               (if (MWI_FcnMaxI_In12 > 0)
141
                  then MWI_FcnMaxI_In12
142
                  else 0)
143
         else 639));
144

    
145
   rlt__Arrow3 = (639 -> 
146
      (if (not (not COOKING))
147
         then 
148
               (if (MWI_FcnMaxI_In16 > 0)
149
                  then MWI_FcnMaxI_In16
150
                  else 0)
151
         else 639));
152

    
153
   rlt__Arrow2 = (639 -> 
154
      (if (not (not SUSPENDED))
155
         then 
156
               (if (MWI_FcnMaxI_In15 > 0)
157
                  then MWI_FcnMaxI_In15
158
                  else 0)
159
         else 639));
160

    
161
   rlt__Arrow1 = (639 -> 
162
      (if (not COOKING)
163
         then 
164
               (if (MWI_FcnMaxI_In11 > 0)
165
                  then MWI_FcnMaxI_In11
166
                  else 0)
167
         else 639));
168

    
169
   rlt__Arrow = (639 -> 
170
      (if (not SETUP)
171
         then 
172
               (if (MWI_FcnMaxI_In1 > 0)
173
                  then MWI_FcnMaxI_In1
174
                  else 0)
175
         else 639));
176

    
177
   p18 = (((not (enable and 
178
      (not KP_CLEAR))) or 
179
      ((not (((((((((KP_1 or 
180
      KP_2) or 
181
      KP_3) or 
182
      KP_4) or 
183
      KP_5) or 
184
      KP_6) or 
185
      KP_7) or 
186
      KP_8) or 
187
      KP_9) or 
188
      KP_0)) or 
189
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
190
      (not KP_CLEAR))) or 
191
      ((not ((((((((((KP_1 and 
192
      (not (pre KP_1))) or 
193
      (KP_2 and 
194
      (not (pre KP_2)))) or 
195
      (KP_3 and 
196
      (not (pre KP_3)))) or 
197
      (KP_4 and 
198
      (not (pre KP_4)))) or 
199
      (KP_5 and 
200
      (not (pre KP_5)))) or 
201
      (KP_6 and 
202
      (not (pre KP_6)))) or 
203
      (KP_7 and 
204
      (not (pre KP_7)))) or 
205
      (KP_8 and 
206
      (not (pre KP_8)))) or 
207
      (KP_9 and 
208
      (not (pre KP_9)))) or 
209
      (KP_0 and 
210
      (not (pre KP_0))))) or 
211
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
212

    
213
   p23 = (true -> (((not (enable and 
214
      (not KP_CLEAR))) or 
215
      (not ((((((((((KP_1 and 
216
      (not (pre KP_1))) or 
217
      (KP_2 and 
218
      (not (pre KP_2)))) or 
219
      (KP_3 and 
220
      (not (pre KP_3)))) or 
221
      (KP_4 and 
222
      (not (pre KP_4)))) or 
223
      (KP_5 and 
224
      (not (pre KP_5)))) or 
225
      (KP_6 and 
226
      (not (pre KP_6)))) or 
227
      (KP_7 and 
228
      (not (pre KP_7)))) or 
229
      (KP_8 and 
230
      (not (pre KP_8)))) or 
231
      (KP_9 and 
232
      (not (pre KP_9)))) or 
233
      (KP_0 and 
234
      (not (pre KP_0)))))) or 
235
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
236

    
237
   p35 = (true -> ((not (enable and 
238
      (not KP_CLEAR))) or 
239
      ((not ((KP_8 and 
240
      (not (pre KP_8))) and 
241
      ((not (KP_7 and 
242
      (not (pre KP_7)))) and 
243
      ((not (KP_6 and 
244
      (not (pre KP_6)))) and 
245
      ((not (KP_5 and 
246
      (not (pre KP_5)))) and 
247
      ((not (KP_4 and 
248
      (not (pre KP_4)))) and 
249
      ((not (KP_3 and 
250
      (not (pre KP_3)))) and 
251
      ((not (KP_2 and 
252
      (not (pre KP_2)))) and 
253
      ((not (KP_1 and 
254
      (not (pre KP_1)))) and 
255
      (not (KP_0 and 
256
      (not (pre KP_0))))))))))))) or 
257
      (RIGHT_DIGIT = 8))));
258

    
259
   p33 = (true -> ((not (enable and 
260
      (not KP_CLEAR))) or 
261
      ((not ((KP_6 and 
262
      (not (pre KP_6))) and 
263
      ((not (KP_5 and 
264
      (not (pre KP_5)))) and 
265
      ((not (KP_4 and 
266
      (not (pre KP_4)))) and 
267
      ((not (KP_3 and 
268
      (not (pre KP_3)))) and 
269
      ((not (KP_2 and 
270
      (not (pre KP_2)))) and 
271
      ((not (KP_1 and 
272
      (not (pre KP_1)))) and 
273
      (not (KP_0 and 
274
      (not (pre KP_0))))))))))) or 
275
      (RIGHT_DIGIT = 6))));
276

    
277
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
278

    
279
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
280

    
281
   p25 = (enable or 
282
      (RIGHT_DIGIT = 0));
283

    
284
   p22 = (true -> (((not (enable and 
285
      (not KP_CLEAR))) or 
286
      (not ((((((((((KP_1 and 
287
      (not (pre KP_1))) or 
288
      (KP_2 and 
289
      (not (pre KP_2)))) or 
290
      (KP_3 and 
291
      (not (pre KP_3)))) or 
292
      (KP_4 and 
293
      (not (pre KP_4)))) or 
294
      (KP_5 and 
295
      (not (pre KP_5)))) or 
296
      (KP_6 and 
297
      (not (pre KP_6)))) or 
298
      (KP_7 and 
299
      (not (pre KP_7)))) or 
300
      (KP_8 and 
301
      (not (pre KP_8)))) or 
302
      (KP_9 and 
303
      (not (pre KP_9)))) or 
304
      (KP_0 and 
305
      (not (pre KP_0)))))) or 
306
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
307

    
308
   p36 = (true -> ((not (enable and 
309
      (not KP_CLEAR))) or 
310
      ((not ((KP_9 and 
311
      (not (pre KP_9))) and 
312
      ((not (KP_8 and 
313
      (not (pre KP_8)))) and 
314
      ((not (KP_7 and 
315
      (not (pre KP_7)))) and 
316
      ((not (KP_6 and 
317
      (not (pre KP_6)))) and 
318
      ((not (KP_5 and 
319
      (not (pre KP_5)))) and 
320
      ((not (KP_4 and 
321
      (not (pre KP_4)))) and 
322
      ((not (KP_3 and 
323
      (not (pre KP_3)))) and 
324
      ((not (KP_2 and 
325
      (not (pre KP_2)))) and 
326
      ((not (KP_1 and 
327
      (not (pre KP_1)))) and 
328
      (not (KP_0 and 
329
      (not (pre KP_0)))))))))))))) or 
330
      (RIGHT_DIGIT = 9))));
331

    
332
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
333

    
334
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
335
      (not (pre KP_CLEAR))));
336

    
337
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
338

    
339
   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));
340

    
341
   SUSPENDED = 
342
      (if (3 = microwave_microwave_mode_logic_mode)
343
         then true
344
         else false);
345

    
346
   p31 = (true -> ((not (enable and 
347
      (not KP_CLEAR))) or 
348
      ((not ((KP_4 and 
349
      (not (pre KP_4))) and 
350
      ((not (KP_3 and 
351
      (not (pre KP_3)))) and 
352
      ((not (KP_2 and 
353
      (not (pre KP_2)))) and 
354
      ((not (KP_1 and 
355
      (not (pre KP_1)))) and 
356
      (not (KP_0 and 
357
      (not (pre KP_0))))))))) or 
358
      (RIGHT_DIGIT = 4))));
359

    
360
   p37 = (true -> ((not (enable and 
361
      (not KP_CLEAR))) or 
362
      (((((((((((KP_1 and 
363
      (not (pre KP_1))) or 
364
      (KP_2 and 
365
      (not (pre KP_2)))) or 
366
      (KP_3 and 
367
      (not (pre KP_3)))) or 
368
      (KP_4 and 
369
      (not (pre KP_4)))) or 
370
      (KP_5 and 
371
      (not (pre KP_5)))) or 
372
      (KP_6 and 
373
      (not (pre KP_6)))) or 
374
      (KP_7 and 
375
      (not (pre KP_7)))) or 
376
      (KP_8 and 
377
      (not (pre KP_8)))) or 
378
      (KP_9 and 
379
      (not (pre KP_9)))) or 
380
      (KP_0 and 
381
      (not (pre KP_0)))) or 
382
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
383

    
384
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
385

    
386
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
387

    
388
   p24 = (true -> (((not (enable and 
389
      (not KP_CLEAR))) or 
390
      ((((((((((KP_1 and 
391
      (not (pre KP_1))) or 
392
      (KP_2 and 
393
      (not (pre KP_2)))) or 
394
      (KP_3 and 
395
      (not (pre KP_3)))) or 
396
      (KP_4 and 
397
      (not (pre KP_4)))) or 
398
      (KP_5 and 
399
      (not (pre KP_5)))) or 
400
      (KP_6 and 
401
      (not (pre KP_6)))) or 
402
      (KP_7 and 
403
      (not (pre KP_7)))) or 
404
      (KP_8 and 
405
      (not (pre KP_8)))) or 
406
      (KP_9 and 
407
      (not (pre KP_9)))) or 
408
      (KP_0 and 
409
      (not (pre KP_0))))) or 
410
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
411

    
412
   p20 = (enable or 
413
      (MIDDLE_DIGIT = 0));
414

    
415
   p26 = ((not (enable and 
416
      KP_CLEAR)) or 
417
      (RIGHT_DIGIT = 0));
418

    
419
   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);
420

    
421
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
422

    
423

    
424
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
425

    
426
   OK = ((not (enable and 
427
      KP_CLEAR)) or 
428
      (LEFT_DIGIT = 0));
429

    
430
   p30 = (true -> ((not (enable and 
431
      (not KP_CLEAR))) or 
432
      ((not ((KP_3 and 
433
      (not (pre KP_3))) and 
434
      ((not (KP_2 and 
435
      (not (pre KP_2)))) and 
436
      ((not (KP_1 and 
437
      (not (pre KP_1)))) and 
438
      (not (KP_0 and 
439
      (not (pre KP_0)))))))) or 
440
      (RIGHT_DIGIT = 3))));
441

    
442
   COOKING = 
443
      (if (2 = microwave_microwave_mode_logic_mode)
444
         then true
445
         else false);
446

    
447
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
448

    
449
   START_PRESSED = (KP_START -> (KP_START and 
450
      (not (pre KP_START))));
451

    
452
   chart_microwave_mode_logic_start = 
453
      (if (START_PRESSED = false)
454
         then 0
455
         else 1);
456

    
457
   chart_microwave_mode_logic_clear_off = 
458
      (if (CLEAR_PRESSED = false)
459
         then 0
460
         else 1);
461

    
462
   chart_microwave_mode_logic_door_closed = 
463
      (if (DOOR_CLOSED = false)
464
         then 0
465
         else 1);
466

    
467
   chart_microwave_mode_logic____wakeup___ = true;
468

    
469
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
470
      (if (pre chart_microwave_mode_logic____wakeup___)
471
         then false
472
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
473

    
474
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
475

    
476
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
477

    
478
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
479

    
480
   chart_microwave_mode_logic_final_state_states___root = 
481
      (if chart_microwave_mode_logic____wakeup___
482
         then 
483
               (if chart_microwave_mode_logic_rlt_evtInitStep
484
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
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_6
493
                           then 
494
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
495
                                    then 
496
                                          
497
                                          3
498
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
499
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
500
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
501
         else chart_microwave_mode_logic_begin_state_states___root);
502

    
503
   chart_microwave_mode_logic_mode = 
504
      (if chart_microwave_mode_logic____wakeup___
505
         then 
506
               (if chart_microwave_mode_logic_rlt_evtInitStep
507
                  then 
508
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
509
                           then 1
510
                           else chart_microwave_mode_logic_begin_state_outports_mode)
511
                  else 
512
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
513
                  
514
                  
515
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
516
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
517
                  then 
518
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
519
                           then 
520
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
521
                                    then 3
522
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
523
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
524
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
525
         else chart_microwave_mode_logic_begin_state_outports_mode);
526

    
527
   chart_microwave_mode_logic_steps_remaining = 
528
      (if chart_microwave_mode_logic____wakeup___
529
         then 
530
               (if chart_microwave_mode_logic_rlt_evtInitStep
531
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
532
                  else 
533
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
534
                  
535
                  
536
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
537
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
538
                  then 
539
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
540
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
541
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
542
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
543
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
544

    
545
   
546
   
547
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
548

    
549
   
550
   
551
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
552
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
553
         then STEPS_TO_COOK
554
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
555

    
556
   
557
   
558
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
559
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
560
      (
561
      (if (chart_microwave_mode_logic_start <> 0)
562
         then true
563
         else false) and 
564
      
565
      (if (
566
         (if ((STEPS_TO_COOK > 0) = false)
567
            then 0
568
            else 1) <> 0)
569
         then true
570
         else false))));
571

    
572
   
573
   
574
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
575
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
576
         then 
577
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
578
                  then 
579
                        
580
                        0
581
                  else chart_microwave_mode_logic_begin_state_states___root)
582
         else chart_microwave_mode_logic_begin_state_states___root);
583

    
584
   
585
   
586
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
587
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
588
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
589
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
590
   
591
   
592

    
593
   
594
   
595
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
596
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
597
         then 
598
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
599
                  then 
600
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
601
                           then 3
602
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
603
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
604
         else chart_microwave_mode_logic_begin_state_outports_mode);
605
   
606
   
607

    
608
   
609
   
610
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
611
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
612
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
617
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
618
         then 
619
               (if 
620
                  
621
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
622
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
623
                  then 
624
                        
625
                        0
626
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
627
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
628

    
629
   
630
   
631
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
632
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
633
         then 
634
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
635
                  then 
636
                        
637
                        4
638
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
639
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
640
   
641
   
642

    
643
   
644
   
645
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
646
      ((
647
      (if (chart_microwave_mode_logic_start <> 0)
648
         then true
649
         else false) and 
650
      
651
      (if (chart_microwave_mode_logic_door_closed <> 0)
652
         then true
653
         else false)) and 
654
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
655

    
656
   
657
   
658
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
659
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
660

    
661
   
662
   
663
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
664
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
665
         then 
666
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
667
                  then 
668
                        
669
                        1
670
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
671
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
672

    
673
   
674
   
675
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
676
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
677
         then 
678
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
679
                  then 1
680
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
681
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
682

    
683
   
684
   
685
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
686
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
687
         then 
688
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
689
                  then 
690
                        
691
                        2
692
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
693
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
694
   
695
   
696

    
697
   
698
   
699
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
700
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
701
         then 
702
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
703
                  then 2
704
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
705
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
706
   
707
   
708

    
709
   
710
   
711
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
712
      (
713
      (if (chart_microwave_mode_logic_clear_off <> 0)
714
         then true
715
         else false) and 
716
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
717
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
718
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
719

    
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
723
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
724

    
725
   
726
   
727
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
728
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
729
         then 
730
               (if 
731
                  
732
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
733
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
734
                  then 
735
                        
736
                        0
737
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
738
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
739

    
740
   
741
   
742
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
743
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
744
         then 0
745
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
746

    
747
   
748
   
749
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
750
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
751
         then 
752
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
753
                  then 
754
                        
755
                        4
756
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
757
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
758
   
759
   
760

    
761
   
762
   
763
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
764
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
765
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
766

    
767
   
768
   
769
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
770
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
771
         then 
772
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
773
                  then 1
774
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
775
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
776

    
777
   
778
   
779
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
780
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
781
         then 
782
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
783
                  then 
784
                        
785
                        1
786
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
787
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
788

    
789
   
790
   
791
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
792
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
793
         then 
794
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
795
                  then 
796
                        
797
                        2
798
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
799
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
800
   
801
   
802

    
803
   
804
   
805
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
806
      ((
807
      (if (chart_microwave_mode_logic_clear_off <> 0)
808
         then true
809
         else false) or 
810
      (not 
811
      (if (chart_microwave_mode_logic_door_closed <> 0)
812
         then true
813
         else false))) and 
814
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
815
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
816

    
817
   
818
   
819
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
820
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
821
         then 
822
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
823
                  then 
824
                        
825
                        1
826
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
827
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
828

    
829
   
830
   
831
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
832
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
833
         then 
834
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
835
                  then 2
836
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
837
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
838

    
839
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
840
      (if (not 
841
         
842
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
843
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
844
         then 
845
               
846
               1
847
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
848

    
849
   
850
   
851
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
852
      
853
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
854
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
855
      
856
      
857
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
858
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
859

    
860
   
861
   
862
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
863
      (
864
      
865
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
866
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
867
      
868
      (if (chart_microwave_mode_logic_door_closed <> 0)
869
         then true
870
         else false)));
871

    
872
   
873
   
874
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
875
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
876
         then 
877
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
878
                  then 
879
                        
880
                        2
881
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
882
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
883
   
884
   
885

    
886
   
887
   
888
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
889
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
890
         then 
891
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
892
                  then 2
893
                  else chart_microwave_mode_logic_begin_state_outports_mode)
894
         else chart_microwave_mode_logic_begin_state_outports_mode);
895
   
896
   
897

    
898
   
899
   
900
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
901
      (
902
      
903
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
904
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
905
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
906

    
907
   
908
   
909
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
910
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
911
         then 
912
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
913
                  then 
914
                        
915
                        3
916
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
917
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
918
   
919
   
920

    
921
   
922
   
923
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
924
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
925
         then 
926
               
927
               4
928
         else chart_microwave_mode_logic_begin_state_states___root);
929
   
930
   
931

    
932
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
933

    
934
   p17 = (((not (enable and 
935
      (not KP_CLEAR))) or 
936
      ((not (((((((((KP_1 or 
937
      KP_2) or 
938
      KP_3) or 
939
      KP_4) or 
940
      KP_5) or 
941
      KP_6) or 
942
      KP_7) or 
943
      KP_8) or 
944
      KP_9) or 
945
      KP_0)) or 
946
      (LEFT_DIGIT = 0))) -> ((not (enable and 
947
      (not KP_CLEAR))) or 
948
      ((not ((((((((((KP_1 and 
949
      (not (pre KP_1))) or 
950
      (KP_2 and 
951
      (not (pre KP_2)))) or 
952
      (KP_3 and 
953
      (not (pre KP_3)))) or 
954
      (KP_4 and 
955
      (not (pre KP_4)))) or 
956
      (KP_5 and 
957
      (not (pre KP_5)))) or 
958
      (KP_6 and 
959
      (not (pre KP_6)))) or 
960
      (KP_7 and 
961
      (not (pre KP_7)))) or 
962
      (KP_8 and 
963
      (not (pre KP_8)))) or 
964
      (KP_9 and 
965
      (not (pre KP_9)))) or 
966
      (KP_0 and 
967
      (not (pre KP_0))))) or 
968
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
969

    
970
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
971

    
972
   p27 = (((not (enable and 
973
      (not KP_CLEAR))) or 
974
      ((not KP_0) or 
975
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
976
      (not KP_CLEAR))) or 
977
      ((not (KP_0 and 
978
      (not (pre KP_0)))) or 
979
      (RIGHT_DIGIT = 0))));
980

    
981
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
982

    
983
   KP_01 = KP_0;
984

    
985
   KP_11 = KP_1;
986

    
987
   KP_21 = KP_2;
988

    
989
   KP_31 = KP_3;
990

    
991
   KP_41 = KP_4;
992

    
993
   KP_51 = KP_5;
994

    
995
   KP_61 = KP_6;
996

    
997
   KP_71 = KP_7;
998

    
999
   KP_81 = KP_8;
1000

    
1001
   KP_91 = KP_9;
1002

    
1003
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1004
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1005
         then 
1006
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1007
                  then 0
1008
                  else 
1009
               (if KP_CLEAR
1010
                  then 0
1011
                  else 
1012
               (if 
1013
                  (if (
1014
                     (if (KP_01 and 
1015
                        (not (pre KP_01)))
1016
                        then 0
1017
                        else 
1018
                     (if (KP_11 and 
1019
                        (not (pre KP_11)))
1020
                        then 1
1021
                        else 
1022
                     (if (KP_21 and 
1023
                        (not (pre KP_21)))
1024
                        then 2
1025
                        else 
1026
                     (if (KP_31 and 
1027
                        (not (pre KP_31)))
1028
                        then 3
1029
                        else 
1030
                     (if (KP_41 and 
1031
                        (not (pre KP_41)))
1032
                        then 4
1033
                        else 
1034
                     (if (KP_51 and 
1035
                        (not (pre KP_51)))
1036
                        then 5
1037
                        else 
1038
                     (if (KP_61 and 
1039
                        (not (pre KP_61)))
1040
                        then 6
1041
                        else 
1042
                     (if (KP_71 and 
1043
                        (not (pre KP_71)))
1044
                        then 7
1045
                        else 
1046
                     (if (KP_81 and 
1047
                        (not (pre KP_81)))
1048
                        then 8
1049
                        else 
1050
                     (if (KP_91 and 
1051
                        (not (pre KP_91)))
1052
                        then 9
1053
                        else 10)))))))))) <= 9)
1054
                     then true
1055
                     else false)
1056
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1057
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1058
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1059

    
1060
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1061
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1062
         then 
1063
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1064
                  then 0
1065
                  else 
1066
               (if KP_CLEAR
1067
                  then 0
1068
                  else 
1069
               (if 
1070
                  (if (
1071
                     (if (KP_01 and 
1072
                        (not (pre KP_01)))
1073
                        then 0
1074
                        else 
1075
                     (if (KP_11 and 
1076
                        (not (pre KP_11)))
1077
                        then 1
1078
                        else 
1079
                     (if (KP_21 and 
1080
                        (not (pre KP_21)))
1081
                        then 2
1082
                        else 
1083
                     (if (KP_31 and 
1084
                        (not (pre KP_31)))
1085
                        then 3
1086
                        else 
1087
                     (if (KP_41 and 
1088
                        (not (pre KP_41)))
1089
                        then 4
1090
                        else 
1091
                     (if (KP_51 and 
1092
                        (not (pre KP_51)))
1093
                        then 5
1094
                        else 
1095
                     (if (KP_61 and 
1096
                        (not (pre KP_61)))
1097
                        then 6
1098
                        else 
1099
                     (if (KP_71 and 
1100
                        (not (pre KP_71)))
1101
                        then 7
1102
                        else 
1103
                     (if (KP_81 and 
1104
                        (not (pre KP_81)))
1105
                        then 8
1106
                        else 
1107
                     (if (KP_91 and 
1108
                        (not (pre KP_91)))
1109
                        then 9
1110
                        else 10)))))))))) <= 9)
1111
                     then true
1112
                     else false)
1113
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1114
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1115
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1116

    
1117
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1118
      (if KP_CLEAR
1119
         then 0
1120
         else 
1121
      (if 
1122
         (if (
1123
            (if KP_01
1124
               then 0
1125
               else 
1126
            (if KP_11
1127
               then 1
1128
               else 
1129
            (if KP_21
1130
               then 2
1131
               else 
1132
            (if KP_31
1133
               then 3
1134
               else 
1135
            (if KP_41
1136
               then 4
1137
               else 
1138
            (if KP_51
1139
               then 5
1140
               else 
1141
            (if KP_61
1142
               then 6
1143
               else 
1144
            (if KP_71
1145
               then 7
1146
               else 
1147
            (if KP_81
1148
               then 8
1149
               else 
1150
            (if KP_91
1151
               then 9
1152
               else 10)))))))))) <= 9)
1153
            then true
1154
            else false)
1155
         then 
1156
               (if KP_01
1157
                  then 0
1158
                  else 
1159
               (if KP_11
1160
                  then 1
1161
                  else 
1162
               (if KP_21
1163
                  then 2
1164
                  else 
1165
               (if KP_31
1166
                  then 3
1167
                  else 
1168
               (if KP_41
1169
                  then 4
1170
                  else 
1171
               (if KP_51
1172
                  then 5
1173
                  else 
1174
               (if KP_61
1175
                  then 6
1176
                  else 
1177
               (if KP_71
1178
                  then 7
1179
                  else 
1180
               (if KP_81
1181
                  then 8
1182
                  else 
1183
               (if KP_91
1184
                  then 9
1185
                  else 10))))))))))
1186
         else 0)) -> 
1187
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1188
         then 
1189
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1190
                  then 
1191
                        (if KP_CLEAR
1192
                           then 0
1193
                           else 
1194
                        (if 
1195
                           (if (
1196
                              (if KP_01
1197
                                 then 0
1198
                                 else 
1199
                              (if KP_11
1200
                                 then 1
1201
                                 else 
1202
                              (if KP_21
1203
                                 then 2
1204
                                 else 
1205
                              (if KP_31
1206
                                 then 3
1207
                                 else 
1208
                              (if KP_41
1209
                                 then 4
1210
                                 else 
1211
                              (if KP_51
1212
                                 then 5
1213
                                 else 
1214
                              (if KP_61
1215
                                 then 6
1216
                                 else 
1217
                              (if KP_71
1218
                                 then 7
1219
                                 else 
1220
                              (if KP_81
1221
                                 then 8
1222
                                 else 
1223
                              (if KP_91
1224
                                 then 9
1225
                                 else 10)))))))))) <= 9)
1226
                              then true
1227
                              else false)
1228
                           then 
1229
                                 (if KP_01
1230
                                    then 0
1231
                                    else 
1232
                                 (if KP_11
1233
                                    then 1
1234
                                    else 
1235
                                 (if KP_21
1236
                                    then 2
1237
                                    else 
1238
                                 (if KP_31
1239
                                    then 3
1240
                                    else 
1241
                                 (if KP_41
1242
                                    then 4
1243
                                    else 
1244
                                 (if KP_51
1245
                                    then 5
1246
                                    else 
1247
                                 (if KP_61
1248
                                    then 6
1249
                                    else 
1250
                                 (if KP_71
1251
                                    then 7
1252
                                    else 
1253
                                 (if KP_81
1254
                                    then 8
1255
                                    else 
1256
                                 (if KP_91
1257
                                    then 9
1258
                                    else 10))))))))))
1259
                           else 0))
1260
                  else 
1261
               (if KP_CLEAR
1262
                  then 0
1263
                  else 
1264
               (if 
1265
                  (if (
1266
                     (if (KP_01 and 
1267
                        (not (pre KP_01)))
1268
                        then 0
1269
                        else 
1270
                     (if (KP_11 and 
1271
                        (not (pre KP_11)))
1272
                        then 1
1273
                        else 
1274
                     (if (KP_21 and 
1275
                        (not (pre KP_21)))
1276
                        then 2
1277
                        else 
1278
                     (if (KP_31 and 
1279
                        (not (pre KP_31)))
1280
                        then 3
1281
                        else 
1282
                     (if (KP_41 and 
1283
                        (not (pre KP_41)))
1284
                        then 4
1285
                        else 
1286
                     (if (KP_51 and 
1287
                        (not (pre KP_51)))
1288
                        then 5
1289
                        else 
1290
                     (if (KP_61 and 
1291
                        (not (pre KP_61)))
1292
                        then 6
1293
                        else 
1294
                     (if (KP_71 and 
1295
                        (not (pre KP_71)))
1296
                        then 7
1297
                        else 
1298
                     (if (KP_81 and 
1299
                        (not (pre KP_81)))
1300
                        then 8
1301
                        else 
1302
                     (if (KP_91 and 
1303
                        (not (pre KP_91)))
1304
                        then 9
1305
                        else 10)))))))))) <= 9)
1306
                     then true
1307
                     else false)
1308
                  then 
1309
                        (if (KP_01 and 
1310
                           (not (pre KP_01)))
1311
                           then 0
1312
                           else 
1313
                        (if (KP_11 and 
1314
                           (not (pre KP_11)))
1315
                           then 1
1316
                           else 
1317
                        (if (KP_21 and 
1318
                           (not (pre KP_21)))
1319
                           then 2
1320
                           else 
1321
                        (if (KP_31 and 
1322
                           (not (pre KP_31)))
1323
                           then 3
1324
                           else 
1325
                        (if (KP_41 and 
1326
                           (not (pre KP_41)))
1327
                           then 4
1328
                           else 
1329
                        (if (KP_51 and 
1330
                           (not (pre KP_51)))
1331
                           then 5
1332
                           else 
1333
                        (if (KP_61 and 
1334
                           (not (pre KP_61)))
1335
                           then 6
1336
                           else 
1337
                        (if (KP_71 and 
1338
                           (not (pre KP_71)))
1339
                           then 7
1340
                           else 
1341
                        (if (KP_81 and 
1342
                           (not (pre KP_81)))
1343
                           then 8
1344
                           else 
1345
                        (if (KP_91 and 
1346
                           (not (pre KP_91)))
1347
                           then 9
1348
                           else 10))))))))))
1349
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1350
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1351

    
1352
   STEPS_TO_COOK = (
1353
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1354
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1355
         then 0
1356
         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)) -> 
1357
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1358
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1359
         then 0
1360
         else 
1361
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1362
         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)
1363
         else (pre STEPS_TO_COOK))));
1364

    
1365
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1366
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1367
         then true
1368
         else 
1369
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1370
         then false
1371
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1372

    
1373
   SETUP = 
1374
      (if (1 = microwave_microwave_mode_logic_mode)
1375
         then true
1376
         else false);
1377

    
1378
   p32 = (true -> ((not (enable and 
1379
      (not KP_CLEAR))) or 
1380
      ((not ((KP_5 and 
1381
      (not (pre KP_5))) and 
1382
      ((not (KP_4 and 
1383
      (not (pre KP_4)))) and 
1384
      ((not (KP_3 and 
1385
      (not (pre KP_3)))) and 
1386
      ((not (KP_2 and 
1387
      (not (pre KP_2)))) and 
1388
      ((not (KP_1 and 
1389
      (not (pre KP_1)))) and 
1390
      (not (KP_0 and 
1391
      (not (pre KP_0)))))))))) or 
1392
      (RIGHT_DIGIT = 5))));
1393

    
1394
   enable = (true -> 
1395
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1396
         then true
1397
         else false));
1398

    
1399
   p28 = (true -> ((not (enable and 
1400
      (not KP_CLEAR))) or 
1401
      ((not ((KP_1 and 
1402
      (not (pre KP_1))) and 
1403
      (not (KP_0 and 
1404
      (not (pre KP_0)))))) or 
1405
      (RIGHT_DIGIT = 1))));
1406

    
1407
   p19 = (true -> ((not (enable and 
1408
      (not KP_CLEAR))) or 
1409
      (((((((((((KP_1 and 
1410
      (not (pre KP_1))) or 
1411
      (KP_2 and 
1412
      (not (pre KP_2)))) or 
1413
      (KP_3 and 
1414
      (not (pre KP_3)))) or 
1415
      (KP_4 and 
1416
      (not (pre KP_4)))) or 
1417
      (KP_5 and 
1418
      (not (pre KP_5)))) or 
1419
      (KP_6 and 
1420
      (not (pre KP_6)))) or 
1421
      (KP_7 and 
1422
      (not (pre KP_7)))) or 
1423
      (KP_8 and 
1424
      (not (pre KP_8)))) or 
1425
      (KP_9 and 
1426
      (not (pre KP_9)))) or 
1427
      (KP_0 and 
1428
      (not (pre KP_0)))) or 
1429
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1430

    
1431
   p29 = (true -> ((not (enable and 
1432
      (not KP_CLEAR))) or 
1433
      ((not ((KP_2 and 
1434
      (not (pre KP_2))) and 
1435
      ((not (KP_1 and 
1436
      (not (pre KP_1)))) and 
1437
      (not (KP_0 and 
1438
      (not (pre KP_0))))))) or 
1439
      (RIGHT_DIGIT = 2))));
1440

    
1441
   p34 = (true -> ((not (enable and 
1442
      (not KP_CLEAR))) or 
1443
      ((not ((KP_7 and 
1444
      (not (pre KP_7))) and 
1445
      ((not (KP_6 and 
1446
      (not (pre KP_6)))) and 
1447
      ((not (KP_5 and 
1448
      (not (pre KP_5)))) and 
1449
      ((not (KP_4 and 
1450
      (not (pre KP_4)))) and 
1451
      ((not (KP_3 and 
1452
      (not (pre KP_3)))) and 
1453
      ((not (KP_2 and 
1454
      (not (pre KP_2)))) and 
1455
      ((not (KP_1 and 
1456
      (not (pre KP_1)))) and 
1457
      (not (KP_0 and 
1458
      (not (pre KP_0)))))))))))) or 
1459
      (RIGHT_DIGIT = 7))));
1460

    
1461
   p21 = ((not (enable and 
1462
      KP_CLEAR)) or 
1463
      (MIDDLE_DIGIT = 0));
1464

    
1465
  --%PROPERTY OK=true;
1466
  --%MAIN;
1467

    
1468
tel
1469