Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (48.6 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
   p16: bool; 
108
   p17: bool; 
109
   p18: bool; 
110
   p19: bool; 
111
   p20: bool; 
112
   p21: bool; 
113
   p22: bool; 
114
   p23: bool; 
115
   p24: bool; 
116
   p25: bool; 
117
   p26: bool; 
118
   p27: bool; 
119
   p28: bool; 
120
   p29: bool; 
121
   p30: bool; 
122
   p31: bool; 
123
   p32: bool; 
124
   p33: bool; 
125
   p34: bool; 
126
   p35: bool; 
127
   p36: bool; 
128
   p37: bool; 
129
let 
130
   rlt__Arrow5 = (639 -> 
131
      (if (not (not SETUP))
132
         then 
133
               (if (MWI_FcnMaxI_In13 > 0)
134
                  then MWI_FcnMaxI_In13
135
                  else 0)
136
         else 639));
137

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

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

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

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

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

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

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

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

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

    
278
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
279

    
280
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
281

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
424

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

    
427
   p16 = ((not (enable and 
428
      KP_CLEAR)) or 
429
      (LEFT_DIGIT = 0));
430

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

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

    
448
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
449

    
450
   OK = (enable or 
451
      (LEFT_DIGIT = 0));
452

    
453
   START_PRESSED = (KP_START -> (KP_START and 
454
      (not (pre KP_START))));
455

    
456
   chart_microwave_mode_logic_start = 
457
      (if (START_PRESSED = false)
458
         then 0
459
         else 1);
460

    
461
   chart_microwave_mode_logic_clear_off = 
462
      (if (CLEAR_PRESSED = false)
463
         then 0
464
         else 1);
465

    
466
   chart_microwave_mode_logic_door_closed = 
467
      (if (DOOR_CLOSED = false)
468
         then 0
469
         else 1);
470

    
471
   chart_microwave_mode_logic____wakeup___ = true;
472

    
473
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
474
      (if (pre chart_microwave_mode_logic____wakeup___)
475
         then false
476
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
477

    
478
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
479

    
480
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
481

    
482
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
483

    
484
   chart_microwave_mode_logic_final_state_states___root = 
485
      (if chart_microwave_mode_logic____wakeup___
486
         then 
487
               (if chart_microwave_mode_logic_rlt_evtInitStep
488
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
489
                  else 
490
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
491
                  
492
                  
493
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
494
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
495
                  then 
496
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
497
                           then 
498
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
499
                                    then 
500
                                          
501
                                          3
502
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
503
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
504
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
505
         else chart_microwave_mode_logic_begin_state_states___root);
506

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

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

    
549
   
550
   
551
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
552

    
553
   
554
   
555
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
556
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
557
         then STEPS_TO_COOK
558
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
559

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

    
576
   
577
   
578
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
579
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
580
         then 
581
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
582
                  then 
583
                        
584
                        0
585
                  else chart_microwave_mode_logic_begin_state_states___root)
586
         else chart_microwave_mode_logic_begin_state_states___root);
587

    
588
   
589
   
590
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
591
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
592
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
593
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
594
   
595
   
596

    
597
   
598
   
599
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
600
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
601
         then 
602
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
603
                  then 
604
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
605
                           then 3
606
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
607
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
608
         else chart_microwave_mode_logic_begin_state_outports_mode);
609
   
610
   
611

    
612
   
613
   
614
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
615
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
616
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
617

    
618
   
619
   
620
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
621
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
622
         then 
623
               (if 
624
                  
625
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
626
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
627
                  then 
628
                        
629
                        0
630
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
631
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
632

    
633
   
634
   
635
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
636
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
637
         then 
638
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
639
                  then 
640
                        
641
                        4
642
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
643
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
644
   
645
   
646

    
647
   
648
   
649
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
650
      ((
651
      (if (chart_microwave_mode_logic_start <> 0)
652
         then true
653
         else false) and 
654
      
655
      (if (chart_microwave_mode_logic_door_closed <> 0)
656
         then true
657
         else false)) and 
658
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
659

    
660
   
661
   
662
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
663
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
664

    
665
   
666
   
667
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
668
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
669
         then 
670
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
671
                  then 
672
                        
673
                        1
674
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
675
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
676

    
677
   
678
   
679
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
680
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
681
         then 
682
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
683
                  then 1
684
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
685
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
686

    
687
   
688
   
689
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
690
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
691
         then 
692
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
693
                  then 
694
                        
695
                        2
696
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
697
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
698
   
699
   
700

    
701
   
702
   
703
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
704
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
705
         then 
706
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
707
                  then 2
708
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
709
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
710
   
711
   
712

    
713
   
714
   
715
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
716
      (
717
      (if (chart_microwave_mode_logic_clear_off <> 0)
718
         then true
719
         else false) and 
720
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
721
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
722
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
723

    
724
   
725
   
726
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
727
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
728

    
729
   
730
   
731
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
732
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
733
         then 
734
               (if 
735
                  
736
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
737
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
738
                  then 
739
                        
740
                        0
741
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
742
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
743

    
744
   
745
   
746
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
747
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
748
         then 0
749
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
750

    
751
   
752
   
753
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
754
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
755
         then 
756
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
757
                  then 
758
                        
759
                        4
760
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
761
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
762
   
763
   
764

    
765
   
766
   
767
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
768
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
769
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
770

    
771
   
772
   
773
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
774
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
775
         then 
776
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
777
                  then 1
778
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
779
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
780

    
781
   
782
   
783
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
784
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
785
         then 
786
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
787
                  then 
788
                        
789
                        1
790
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
791
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
792

    
793
   
794
   
795
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
796
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
797
         then 
798
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
799
                  then 
800
                        
801
                        2
802
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
803
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
804
   
805
   
806

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

    
821
   
822
   
823
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
824
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
825
         then 
826
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
827
                  then 
828
                        
829
                        1
830
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
831
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
832

    
833
   
834
   
835
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
836
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
837
         then 
838
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
839
                  then 2
840
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
841
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
842

    
843
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
844
      (if (not 
845
         
846
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
847
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
848
         then 
849
               
850
               1
851
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
852

    
853
   
854
   
855
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
856
      
857
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
858
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
859
      
860
      
861
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
862
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
863

    
864
   
865
   
866
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
867
      (
868
      
869
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
870
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
871
      
872
      (if (chart_microwave_mode_logic_door_closed <> 0)
873
         then true
874
         else false)));
875

    
876
   
877
   
878
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
879
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
880
         then 
881
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
882
                  then 
883
                        
884
                        2
885
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
886
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
887
   
888
   
889

    
890
   
891
   
892
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
893
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
894
         then 
895
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
896
                  then 2
897
                  else chart_microwave_mode_logic_begin_state_outports_mode)
898
         else chart_microwave_mode_logic_begin_state_outports_mode);
899
   
900
   
901

    
902
   
903
   
904
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
905
      (
906
      
907
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
908
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
909
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
910

    
911
   
912
   
913
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
914
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
915
         then 
916
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
917
                  then 
918
                        
919
                        3
920
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
921
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
922
   
923
   
924

    
925
   
926
   
927
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
928
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
929
         then 
930
               
931
               4
932
         else chart_microwave_mode_logic_begin_state_states___root);
933
   
934
   
935

    
936
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
937

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

    
974
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
975

    
976
   p27 = (((not (enable and 
977
      (not KP_CLEAR))) or 
978
      ((not KP_0) or 
979
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
980
      (not KP_CLEAR))) or 
981
      ((not (KP_0 and 
982
      (not (pre KP_0)))) or 
983
      (RIGHT_DIGIT = 0))));
984

    
985
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
986

    
987
   KP_01 = KP_0;
988

    
989
   KP_11 = KP_1;
990

    
991
   KP_21 = KP_2;
992

    
993
   KP_31 = KP_3;
994

    
995
   KP_41 = KP_4;
996

    
997
   KP_51 = KP_5;
998

    
999
   KP_61 = KP_6;
1000

    
1001
   KP_71 = KP_7;
1002

    
1003
   KP_81 = KP_8;
1004

    
1005
   KP_91 = KP_9;
1006

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

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

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

    
1356
   STEPS_TO_COOK = (
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 ((((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)) -> 
1361
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1362
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1363
         then 0
1364
         else 
1365
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1366
         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)
1367
         else (pre STEPS_TO_COOK))));
1368

    
1369
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1370
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1371
         then true
1372
         else 
1373
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1374
         then false
1375
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1376

    
1377
   SETUP = 
1378
      (if (1 = microwave_microwave_mode_logic_mode)
1379
         then true
1380
         else false);
1381

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

    
1398
   enable = (true -> 
1399
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1400
         then true
1401
         else false));
1402

    
1403
   p28 = (true -> ((not (enable and 
1404
      (not KP_CLEAR))) or 
1405
      ((not ((KP_1 and 
1406
      (not (pre KP_1))) and 
1407
      (not (KP_0 and 
1408
      (not (pre KP_0)))))) or 
1409
      (RIGHT_DIGIT = 1))));
1410

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

    
1435
   p29 = (true -> ((not (enable and 
1436
      (not KP_CLEAR))) or 
1437
      ((not ((KP_2 and 
1438
      (not (pre KP_2))) and 
1439
      ((not (KP_1 and 
1440
      (not (pre KP_1)))) and 
1441
      (not (KP_0 and 
1442
      (not (pre KP_0))))))) or 
1443
      (RIGHT_DIGIT = 2))));
1444

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

    
1465
   p21 = ((not (enable and 
1466
      KP_CLEAR)) or 
1467
      (MIDDLE_DIGIT = 0));
1468

    
1469
  --%PROPERTY OK=true;
1470
  --%MAIN;
1471

    
1472
tel
1473