Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (51.1 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
   p3: bool; 
108
   p4: bool; 
109
   p5: bool; 
110
   p6: bool; 
111
   p7: bool; 
112
   p8: bool; 
113
   p9: bool; 
114
   p10: bool; 
115
   p11: bool; 
116
   p12: bool; 
117
   p13: bool; 
118
   p14: bool; 
119
   p15: bool; 
120
   p16: bool; 
121
   p17: bool; 
122
   p18: bool; 
123
   p19: bool; 
124
   p20: bool; 
125
   p21: bool; 
126
   p22: bool; 
127
   p23: bool; 
128
   p24: bool; 
129
   p25: bool; 
130
   p26: bool; 
131
   p27: bool; 
132
   p28: bool; 
133
   p29: bool; 
134
   p30: bool; 
135
   p31: bool; 
136
   p32: bool; 
137
   p33: bool; 
138
   p34: bool; 
139
   p35: bool; 
140
   p36: bool; 
141
   p37: bool; 
142
   rltTruncByConv1: bool; 
143
   rltTruncByConv: bool;
144

    
145

    
146
let 
147
   rlt__Arrow5 = (639 -> 
148
      (if (not (not SETUP))
149
         then 
150
               (if (MWI_FcnMaxI_In13 > 0)
151
                  then MWI_FcnMaxI_In13
152
                  else 0)
153
         else 639));
154

    
155
   rlt__Arrow4 = (639 -> 
156
      (if (not SUSPENDED)
157
         then 
158
               (if (MWI_FcnMaxI_In12 > 0)
159
                  then MWI_FcnMaxI_In12
160
                  else 0)
161
         else 639));
162

    
163
   rlt__Arrow3 = (639 -> 
164
      (if (not (not COOKING))
165
         then 
166
               (if (MWI_FcnMaxI_In16 > 0)
167
                  then MWI_FcnMaxI_In16
168
                  else 0)
169
         else 639));
170

    
171
   rlt__Arrow2 = (639 -> 
172
      (if (not (not SUSPENDED))
173
         then 
174
               (if (MWI_FcnMaxI_In15 > 0)
175
                  then MWI_FcnMaxI_In15
176
                  else 0)
177
         else 639));
178

    
179
   rlt__Arrow1 = (639 -> 
180
      (if (not COOKING)
181
         then 
182
               (if (MWI_FcnMaxI_In11 > 0)
183
                  then MWI_FcnMaxI_In11
184
                  else 0)
185
         else 639));
186

    
187
   rlt__Arrow = (639 -> 
188
      (if (not SETUP)
189
         then 
190
               (if (MWI_FcnMaxI_In1 > 0)
191
                  then MWI_FcnMaxI_In1
192
                  else 0)
193
         else 639));
194

    
195
   p18 = (((not (enable and 
196
      (not KP_CLEAR))) or 
197
      ((not (((((((((KP_1 or 
198
      KP_2) or 
199
      KP_3) or 
200
      KP_4) or 
201
      KP_5) or 
202
      KP_6) or 
203
      KP_7) or 
204
      KP_8) or 
205
      KP_9) or 
206
      KP_0)) or 
207
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
208
      (not KP_CLEAR))) or 
209
      ((not ((((((((((KP_1 and 
210
      (not (pre KP_1))) or 
211
      (KP_2 and 
212
      (not (pre KP_2)))) or 
213
      (KP_3 and 
214
      (not (pre KP_3)))) or 
215
      (KP_4 and 
216
      (not (pre KP_4)))) or 
217
      (KP_5 and 
218
      (not (pre KP_5)))) or 
219
      (KP_6 and 
220
      (not (pre KP_6)))) or 
221
      (KP_7 and 
222
      (not (pre KP_7)))) or 
223
      (KP_8 and 
224
      (not (pre KP_8)))) or 
225
      (KP_9 and 
226
      (not (pre KP_9)))) or 
227
      (KP_0 and 
228
      (not (pre KP_0))))) or 
229
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
230

    
231
   p23 = (true -> (((not (enable and 
232
      (not KP_CLEAR))) or 
233
      (not ((((((((((KP_1 and 
234
      (not (pre KP_1))) or 
235
      (KP_2 and 
236
      (not (pre KP_2)))) or 
237
      (KP_3 and 
238
      (not (pre KP_3)))) or 
239
      (KP_4 and 
240
      (not (pre KP_4)))) or 
241
      (KP_5 and 
242
      (not (pre KP_5)))) or 
243
      (KP_6 and 
244
      (not (pre KP_6)))) or 
245
      (KP_7 and 
246
      (not (pre KP_7)))) or 
247
      (KP_8 and 
248
      (not (pre KP_8)))) or 
249
      (KP_9 and 
250
      (not (pre KP_9)))) or 
251
      (KP_0 and 
252
      (not (pre KP_0)))))) or 
253
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
254

    
255
   p35 = (true -> ((not (enable and 
256
      (not KP_CLEAR))) or 
257
      ((not ((KP_8 and 
258
      (not (pre KP_8))) and 
259
      ((not (KP_7 and 
260
      (not (pre KP_7)))) and 
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 = 8))));
276

    
277
   p33 = (true -> ((not (enable and 
278
      (not KP_CLEAR))) or 
279
      ((not ((KP_6 and 
280
      (not (pre KP_6))) and 
281
      ((not (KP_5 and 
282
      (not (pre KP_5)))) and 
283
      ((not (KP_4 and 
284
      (not (pre KP_4)))) and 
285
      ((not (KP_3 and 
286
      (not (pre KP_3)))) and 
287
      ((not (KP_2 and 
288
      (not (pre KP_2)))) and 
289
      ((not (KP_1 and 
290
      (not (pre KP_1)))) and 
291
      (not (KP_0 and 
292
      (not (pre KP_0))))))))))) or 
293
      (RIGHT_DIGIT = 6))));
294

    
295
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
296

    
297
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
298

    
299
   p25 = (enable or 
300
      (RIGHT_DIGIT = 0));
301

    
302
   p22 = (true -> (((not (enable and 
303
      (not KP_CLEAR))) or 
304
      (not ((((((((((KP_1 and 
305
      (not (pre KP_1))) or 
306
      (KP_2 and 
307
      (not (pre KP_2)))) or 
308
      (KP_3 and 
309
      (not (pre KP_3)))) or 
310
      (KP_4 and 
311
      (not (pre KP_4)))) or 
312
      (KP_5 and 
313
      (not (pre KP_5)))) or 
314
      (KP_6 and 
315
      (not (pre KP_6)))) or 
316
      (KP_7 and 
317
      (not (pre KP_7)))) or 
318
      (KP_8 and 
319
      (not (pre KP_8)))) or 
320
      (KP_9 and 
321
      (not (pre KP_9)))) or 
322
      (KP_0 and 
323
      (not (pre KP_0)))))) or 
324
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
325

    
326
   p36 = (true -> ((not (enable and 
327
      (not KP_CLEAR))) or 
328
      ((not ((KP_9 and 
329
      (not (pre KP_9))) and 
330
      ((not (KP_8 and 
331
      (not (pre KP_8)))) and 
332
      ((not (KP_7 and 
333
      (not (pre KP_7)))) and 
334
      ((not (KP_6 and 
335
      (not (pre KP_6)))) and 
336
      ((not (KP_5 and 
337
      (not (pre KP_5)))) and 
338
      ((not (KP_4 and 
339
      (not (pre KP_4)))) and 
340
      ((not (KP_3 and 
341
      (not (pre KP_3)))) and 
342
      ((not (KP_2 and 
343
      (not (pre KP_2)))) and 
344
      ((not (KP_1 and 
345
      (not (pre KP_1)))) and 
346
      (not (KP_0 and 
347
      (not (pre KP_0)))))))))))))) or 
348
      (RIGHT_DIGIT = 9))));
349

    
350
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
351

    
352
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
353
      (not (pre KP_CLEAR))));
354

    
355
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
356

    
357
   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));
358

    
359
   SUSPENDED = 
360
      (if (3 = microwave_microwave_mode_logic_mode)
361
         then true
362
         else false);
363

    
364
   p31 = (true -> ((not (enable and 
365
      (not KP_CLEAR))) or 
366
      ((not ((KP_4 and 
367
      (not (pre KP_4))) and 
368
      ((not (KP_3 and 
369
      (not (pre KP_3)))) and 
370
      ((not (KP_2 and 
371
      (not (pre KP_2)))) and 
372
      ((not (KP_1 and 
373
      (not (pre KP_1)))) and 
374
      (not (KP_0 and 
375
      (not (pre KP_0))))))))) or 
376
      (RIGHT_DIGIT = 4))));
377

    
378
   p37 = (true -> ((not (enable and 
379
      (not KP_CLEAR))) or 
380
      (((((((((((KP_1 and 
381
      (not (pre KP_1))) or 
382
      (KP_2 and 
383
      (not (pre KP_2)))) or 
384
      (KP_3 and 
385
      (not (pre KP_3)))) or 
386
      (KP_4 and 
387
      (not (pre KP_4)))) or 
388
      (KP_5 and 
389
      (not (pre KP_5)))) or 
390
      (KP_6 and 
391
      (not (pre KP_6)))) or 
392
      (KP_7 and 
393
      (not (pre KP_7)))) or 
394
      (KP_8 and 
395
      (not (pre KP_8)))) or 
396
      (KP_9 and 
397
      (not (pre KP_9)))) or 
398
      (KP_0 and 
399
      (not (pre KP_0)))) or 
400
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
401

    
402
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
403

    
404
   p4 = (true -> (
405
      (if (not COOKING)
406
         then 
407
               (if (MWI_FcnMaxI_In11 > 0)
408
                  then MWI_FcnMaxI_In11
409
                  else 0)
410
         else 639) > 0));
411

    
412
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
413

    
414
   p24 = (true -> (((not (enable and 
415
      (not KP_CLEAR))) or 
416
      ((((((((((KP_1 and 
417
      (not (pre KP_1))) or 
418
      (KP_2 and 
419
      (not (pre KP_2)))) or 
420
      (KP_3 and 
421
      (not (pre KP_3)))) or 
422
      (KP_4 and 
423
      (not (pre KP_4)))) or 
424
      (KP_5 and 
425
      (not (pre KP_5)))) or 
426
      (KP_6 and 
427
      (not (pre KP_6)))) or 
428
      (KP_7 and 
429
      (not (pre KP_7)))) or 
430
      (KP_8 and 
431
      (not (pre KP_8)))) or 
432
      (KP_9 and 
433
      (not (pre KP_9)))) or 
434
      (KP_0 and 
435
      (not (pre KP_0))))) or 
436
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
437

    
438
   p20 = (enable or 
439
      (MIDDLE_DIGIT = 0));
440

    
441
   p5 = (true -> (
442
      (if (not SUSPENDED)
443
         then 
444
               (if (MWI_FcnMaxI_In12 > 0)
445
                  then MWI_FcnMaxI_In12
446
                  else 0)
447
         else 639) > 0));
448

    
449
   p26 = ((not (enable and 
450
      KP_CLEAR)) or 
451
      (RIGHT_DIGIT = 0));
452

    
453
   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);
454

    
455
   p14 = (true -> ((not (enable and 
456
      (not KP_CLEAR))) or 
457
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
458

    
459
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
460

    
461
   p6 = (true -> ((not SETUP) or 
462
      (
463
      (if (not (not SETUP))
464
         then 
465
               (if (MWI_FcnMaxI_In13 > 0)
466
                  then MWI_FcnMaxI_In13
467
                  else 0)
468
         else 639) > 0)));
469

    
470
   p8 = (true -> ((not SUSPENDED) or 
471
      (
472
      (if (not (not SUSPENDED))
473
         then 
474
               (if (MWI_FcnMaxI_In15 > 0)
475
                  then MWI_FcnMaxI_In15
476
                  else 0)
477
         else 639) > 0)));
478

    
479
   p7 = (true -> ((not COOKING) or 
480
      (
481
      (if (not (not COOKING))
482
         then 
483
               (if (MWI_FcnMaxI_In16 > 0)
484
                  then MWI_FcnMaxI_In16
485
                  else 0)
486
         else 639) > 0)));
487

    
488
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
489

    
490
   p16 = ((not (enable and 
491
      KP_CLEAR)) or 
492
      (LEFT_DIGIT = 0));
493

    
494
   p30 = (true -> ((not (enable and 
495
      (not KP_CLEAR))) or 
496
      ((not ((KP_3 and 
497
      (not (pre KP_3))) and 
498
      ((not (KP_2 and 
499
      (not (pre KP_2)))) and 
500
      ((not (KP_1 and 
501
      (not (pre KP_1)))) and 
502
      (not (KP_0 and 
503
      (not (pre KP_0)))))))) or 
504
      (RIGHT_DIGIT = 3))));
505

    
506
   COOKING = 
507
      (if (2 = microwave_microwave_mode_logic_mode)
508
         then true
509
         else false);
510

    
511
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
512

    
513
   p11 = ((not KP_CLEAR) or 
514
      (not COOKING));
515

    
516
   p9 = (true -> ((not COOKING) or 
517
      DOOR_CLOSED));
518

    
519
   p15 = (enable or 
520
      (LEFT_DIGIT = 0));
521

    
522
   START_PRESSED = (KP_START -> (KP_START and 
523
      (not (pre KP_START))));
524

    
525
   chart_microwave_mode_logic_start = 
526
      (if (START_PRESSED = false)
527
         then 0
528
         else 1);
529

    
530
   chart_microwave_mode_logic_clear_off = 
531
      (if (CLEAR_PRESSED = false)
532
         then 0
533
         else 1);
534

    
535
   chart_microwave_mode_logic_door_closed = 
536
      (if (DOOR_CLOSED = false)
537
         then 0
538
         else 1);
539

    
540
   chart_microwave_mode_logic____wakeup___ = true;
541

    
542
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
543
      (if (pre chart_microwave_mode_logic____wakeup___)
544
         then false
545
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
546

    
547
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
548

    
549
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
550

    
551
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
552

    
553
   chart_microwave_mode_logic_final_state_states___root = 
554
      (if chart_microwave_mode_logic____wakeup___
555
         then 
556
               (if chart_microwave_mode_logic_rlt_evtInitStep
557
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
558
                  else 
559
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
560
                  
561
                  
562
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
563
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
564
                  then 
565
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
566
                           then 
567
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
568
                                    then 
569
                                          
570
                                          3
571
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
572
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
573
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
574
         else chart_microwave_mode_logic_begin_state_states___root);
575

    
576
   chart_microwave_mode_logic_mode = 
577
      (if chart_microwave_mode_logic____wakeup___
578
         then 
579
               (if chart_microwave_mode_logic_rlt_evtInitStep
580
                  then 
581
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
582
                           then 1
583
                           else chart_microwave_mode_logic_begin_state_outports_mode)
584
                  else 
585
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
586
                  
587
                  
588
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
589
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
590
                  then 
591
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
592
                           then 
593
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
594
                                    then 3
595
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
596
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
597
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
598
         else chart_microwave_mode_logic_begin_state_outports_mode);
599

    
600
   chart_microwave_mode_logic_steps_remaining = 
601
      (if chart_microwave_mode_logic____wakeup___
602
         then 
603
               (if chart_microwave_mode_logic_rlt_evtInitStep
604
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
605
                  else 
606
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
607
                  
608
                  
609
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
610
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
611
                  then 
612
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
613
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
614
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
615
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
616
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
617

    
618
   
619
   
620
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
621

    
622
   
623
   
624
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
625
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
626
         then STEPS_TO_COOK
627
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
628

    
629
   
630
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
631
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
632
      (
633
      (if (chart_microwave_mode_logic_start <> 0)
634
         then true
635
         else false) and 
636
      
637
      (if (
638
         (if ((STEPS_TO_COOK > 0) = false)
639
            then 0
640
            else 1) <> 0)
641
         then true
642
         else false))));
643

    
644
   
645
   
646
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
647
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
648
         then 
649
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
650
                  then 
651
                        
652
                        0
653
                  else chart_microwave_mode_logic_begin_state_states___root)
654
         else chart_microwave_mode_logic_begin_state_states___root);
655

    
656
   
657
   
658
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
659
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
660
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
661
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
662
   
663
   
664

    
665
   
666
   
667
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
668
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
669
         then 
670
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
671
                  then 
672
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
673
                           then 3
674
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
675
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
676
         else chart_microwave_mode_logic_begin_state_outports_mode);
677
   
678
   
679

    
680
   
681
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
682
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
683
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
684

    
685
   
686
   
687
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
688
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
689
         then 
690
               (if 
691
                  
692
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
693
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
694
                  then 
695
                        
696
                        0
697
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
698
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
699

    
700
   
701
   
702
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
703
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
704
         then 
705
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
706
                  then 
707
                        
708
                        4
709
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
710
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
711
   
712
   
713

    
714
   
715
   
716
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
717
      ((
718
      (if (chart_microwave_mode_logic_start <> 0)
719
         then true
720
         else false) and 
721
      
722
      (if (chart_microwave_mode_logic_door_closed <> 0)
723
         then true
724
         else false)) and 
725
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
726

    
727
   
728
   
729
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
730
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
731

    
732
   
733
   
734
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
735
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
736
         then 
737
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
738
                  then 
739
                        
740
                        1
741
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
742
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
743

    
744
   
745
   
746
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
747
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
748
         then 
749
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
750
                  then 1
751
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
752
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
753

    
754
   
755
   
756
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
757
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
758
         then 
759
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
760
                  then 
761
                        
762
                        2
763
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
764
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
765
   
766
   
767

    
768
   
769
   
770
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
771
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
772
         then 
773
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
774
                  then 2
775
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
776
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
777
   
778
   
779

    
780
   
781
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
782
      (
783
      (if (chart_microwave_mode_logic_clear_off <> 0)
784
         then true
785
         else false) and 
786
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
787
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
788
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
789

    
790
   
791
   
792
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
793
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
794

    
795
   
796
   
797
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
798
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
799
         then 
800
               (if 
801
                  
802
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
803
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
804
                  then 
805
                        
806
                        0
807
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
808
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
809

    
810
   
811
   
812
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
813
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
814
         then 0
815
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
816

    
817
   
818
   
819
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
820
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
821
         then 
822
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
823
                  then 
824
                        
825
                        4
826
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
827
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
828
   
829
   
830

    
831
   
832
   
833
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
834
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
835
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
836

    
837
   
838
   
839
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
840
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
841
         then 
842
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
843
                  then 1
844
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
845
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
846

    
847
   
848
   
849
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
850
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
851
         then 
852
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
853
                  then 
854
                        
855
                        1
856
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
857
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
858

    
859
   
860
   
861
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
862
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
863
         then 
864
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
865
                  then 
866
                        
867
                        2
868
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
869
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
870
   
871
   
872

    
873
   
874
   
875
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
876
      ((
877
      (if (chart_microwave_mode_logic_clear_off <> 0)
878
         then true
879
         else false) or 
880
      (not 
881
      (if (chart_microwave_mode_logic_door_closed <> 0)
882
         then true
883
         else false))) and 
884
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
885
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
886

    
887
   
888
   
889
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
890
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
891
         then 
892
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
893
                  then 
894
                        
895
                        1
896
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
897
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
898

    
899
   
900
   
901
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
902
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
903
         then 
904
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
905
                  then 2
906
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
907
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
908

    
909
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
910
      (if (not 
911
         
912
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
913
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
914
         then 
915
               
916
               1
917
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
918

    
919
   
920
   
921
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
922
      
923
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
924
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
925
      
926
      
927
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
928
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
929

    
930
   
931
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
932
      (
933
      
934
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
935
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
936
      
937
      (if (chart_microwave_mode_logic_door_closed <> 0)
938
         then true
939
         else false)));
940

    
941
   
942
   
943
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
944
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
945
         then 
946
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
947
                  then 
948
                        
949
                        2
950
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
951
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
952
   
953
   
954

    
955
   
956
   
957
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
958
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
959
         then 
960
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
961
                  then 2
962
                  else chart_microwave_mode_logic_begin_state_outports_mode)
963
         else chart_microwave_mode_logic_begin_state_outports_mode);
964
   
965
   
966

    
967
   
968
   
969
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
970
      (
971
      
972
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
973
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
974
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
975

    
976
   
977
   
978
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
979
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
980
         then 
981
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
982
                  then 
983
                        
984
                        3
985
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
986
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
987
   
988
   
989

    
990
   
991
   
992
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
993
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
994
         then 
995
               
996
               4
997
         else chart_microwave_mode_logic_begin_state_states___root);
998
   
999
   
1000

    
1001
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
1002

    
1003
   p17 = (((not (enable and 
1004
      (not KP_CLEAR))) or 
1005
      ((not (((((((((KP_1 or 
1006
      KP_2) or 
1007
      KP_3) or 
1008
      KP_4) or 
1009
      KP_5) or 
1010
      KP_6) or 
1011
      KP_7) or 
1012
      KP_8) or 
1013
      KP_9) or 
1014
      KP_0)) or 
1015
      (LEFT_DIGIT = 0))) -> ((not (enable and 
1016
      (not KP_CLEAR))) or 
1017
      ((not ((((((((((KP_1 and 
1018
      (not (pre KP_1))) or 
1019
      (KP_2 and 
1020
      (not (pre KP_2)))) or 
1021
      (KP_3 and 
1022
      (not (pre KP_3)))) or 
1023
      (KP_4 and 
1024
      (not (pre KP_4)))) or 
1025
      (KP_5 and 
1026
      (not (pre KP_5)))) or 
1027
      (KP_6 and 
1028
      (not (pre KP_6)))) or 
1029
      (KP_7 and 
1030
      (not (pre KP_7)))) or 
1031
      (KP_8 and 
1032
      (not (pre KP_8)))) or 
1033
      (KP_9 and 
1034
      (not (pre KP_9)))) or 
1035
      (KP_0 and 
1036
      (not (pre KP_0))))) or 
1037
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1038

    
1039
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1040

    
1041
   p10 = (true -> ((not COOKING) or 
1042
      (
1043
      (if (not (not COOKING))
1044
         then 
1045
               (if (MWI_FcnMaxI_In16 > 0)
1046
                  then MWI_FcnMaxI_In16
1047
                  else 0)
1048
         else 639) > 0)));
1049

    
1050
   p27 = (((not (enable and 
1051
      (not KP_CLEAR))) or 
1052
      ((not KP_0) or 
1053
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1054
      (not KP_CLEAR))) or 
1055
      ((not (KP_0 and 
1056
      (not (pre KP_0)))) or 
1057
      (RIGHT_DIGIT = 0))));
1058

    
1059
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1060

    
1061
   KP_01 = KP_0;
1062

    
1063
   KP_11 = KP_1;
1064

    
1065
   KP_21 = KP_2;
1066

    
1067
   KP_31 = KP_3;
1068

    
1069
   KP_41 = KP_4;
1070

    
1071
   KP_51 = KP_5;
1072

    
1073
   KP_61 = KP_6;
1074

    
1075
   KP_71 = KP_7;
1076

    
1077
   KP_81 = KP_8;
1078

    
1079
   KP_91 = KP_9;
1080

    
1081
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1082
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1083
         then 
1084
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1085
                  then 0
1086
                  else 
1087
               (if KP_CLEAR
1088
                  then 0
1089
                  else 
1090
               (if 
1091
                  (if (
1092
                     (if (KP_01 and 
1093
                        (not (pre KP_01)))
1094
                        then 0
1095
                        else 
1096
                     (if (KP_11 and 
1097
                        (not (pre KP_11)))
1098
                        then 1
1099
                        else 
1100
                     (if (KP_21 and 
1101
                        (not (pre KP_21)))
1102
                        then 2
1103
                        else 
1104
                     (if (KP_31 and 
1105
                        (not (pre KP_31)))
1106
                        then 3
1107
                        else 
1108
                     (if (KP_41 and 
1109
                        (not (pre KP_41)))
1110
                        then 4
1111
                        else 
1112
                     (if (KP_51 and 
1113
                        (not (pre KP_51)))
1114
                        then 5
1115
                        else 
1116
                     (if (KP_61 and 
1117
                        (not (pre KP_61)))
1118
                        then 6
1119
                        else 
1120
                     (if (KP_71 and 
1121
                        (not (pre KP_71)))
1122
                        then 7
1123
                        else 
1124
                     (if (KP_81 and 
1125
                        (not (pre KP_81)))
1126
                        then 8
1127
                        else 
1128
                     (if (KP_91 and 
1129
                        (not (pre KP_91)))
1130
                        then 9
1131
                        else 10)))))))))) <= 9)
1132
                     then true
1133
                     else false)
1134
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1135
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1136
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1137

    
1138
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1139
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1140
         then 
1141
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1142
                  then 0
1143
                  else 
1144
               (if KP_CLEAR
1145
                  then 0
1146
                  else 
1147
               (if 
1148
                  (if (
1149
                     (if (KP_01 and 
1150
                        (not (pre KP_01)))
1151
                        then 0
1152
                        else 
1153
                     (if (KP_11 and 
1154
                        (not (pre KP_11)))
1155
                        then 1
1156
                        else 
1157
                     (if (KP_21 and 
1158
                        (not (pre KP_21)))
1159
                        then 2
1160
                        else 
1161
                     (if (KP_31 and 
1162
                        (not (pre KP_31)))
1163
                        then 3
1164
                        else 
1165
                     (if (KP_41 and 
1166
                        (not (pre KP_41)))
1167
                        then 4
1168
                        else 
1169
                     (if (KP_51 and 
1170
                        (not (pre KP_51)))
1171
                        then 5
1172
                        else 
1173
                     (if (KP_61 and 
1174
                        (not (pre KP_61)))
1175
                        then 6
1176
                        else 
1177
                     (if (KP_71 and 
1178
                        (not (pre KP_71)))
1179
                        then 7
1180
                        else 
1181
                     (if (KP_81 and 
1182
                        (not (pre KP_81)))
1183
                        then 8
1184
                        else 
1185
                     (if (KP_91 and 
1186
                        (not (pre KP_91)))
1187
                        then 9
1188
                        else 10)))))))))) <= 9)
1189
                     then true
1190
                     else false)
1191
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1192
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1193
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1194

    
1195
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1196
      (if KP_CLEAR
1197
         then 0
1198
         else 
1199
      (if 
1200
         (if (
1201
            (if KP_01
1202
               then 0
1203
               else 
1204
            (if KP_11
1205
               then 1
1206
               else 
1207
            (if KP_21
1208
               then 2
1209
               else 
1210
            (if KP_31
1211
               then 3
1212
               else 
1213
            (if KP_41
1214
               then 4
1215
               else 
1216
            (if KP_51
1217
               then 5
1218
               else 
1219
            (if KP_61
1220
               then 6
1221
               else 
1222
            (if KP_71
1223
               then 7
1224
               else 
1225
            (if KP_81
1226
               then 8
1227
               else 
1228
            (if KP_91
1229
               then 9
1230
               else 10)))))))))) <= 9)
1231
            then true
1232
            else false)
1233
         then 
1234
               (if KP_01
1235
                  then 0
1236
                  else 
1237
               (if KP_11
1238
                  then 1
1239
                  else 
1240
               (if KP_21
1241
                  then 2
1242
                  else 
1243
               (if KP_31
1244
                  then 3
1245
                  else 
1246
               (if KP_41
1247
                  then 4
1248
                  else 
1249
               (if KP_51
1250
                  then 5
1251
                  else 
1252
               (if KP_61
1253
                  then 6
1254
                  else 
1255
               (if KP_71
1256
                  then 7
1257
                  else 
1258
               (if KP_81
1259
                  then 8
1260
                  else 
1261
               (if KP_91
1262
                  then 9
1263
                  else 10))))))))))
1264
         else 0)) -> 
1265
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1266
         then 
1267
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1268
                  then 
1269
                        (if KP_CLEAR
1270
                           then 0
1271
                           else 
1272
                        (if 
1273
                           (if (
1274
                              (if KP_01
1275
                                 then 0
1276
                                 else 
1277
                              (if KP_11
1278
                                 then 1
1279
                                 else 
1280
                              (if KP_21
1281
                                 then 2
1282
                                 else 
1283
                              (if KP_31
1284
                                 then 3
1285
                                 else 
1286
                              (if KP_41
1287
                                 then 4
1288
                                 else 
1289
                              (if KP_51
1290
                                 then 5
1291
                                 else 
1292
                              (if KP_61
1293
                                 then 6
1294
                                 else 
1295
                              (if KP_71
1296
                                 then 7
1297
                                 else 
1298
                              (if KP_81
1299
                                 then 8
1300
                                 else 
1301
                              (if KP_91
1302
                                 then 9
1303
                                 else 10)))))))))) <= 9)
1304
                              then true
1305
                              else false)
1306
                           then 
1307
                                 (if KP_01
1308
                                    then 0
1309
                                    else 
1310
                                 (if KP_11
1311
                                    then 1
1312
                                    else 
1313
                                 (if KP_21
1314
                                    then 2
1315
                                    else 
1316
                                 (if KP_31
1317
                                    then 3
1318
                                    else 
1319
                                 (if KP_41
1320
                                    then 4
1321
                                    else 
1322
                                 (if KP_51
1323
                                    then 5
1324
                                    else 
1325
                                 (if KP_61
1326
                                    then 6
1327
                                    else 
1328
                                 (if KP_71
1329
                                    then 7
1330
                                    else 
1331
                                 (if KP_81
1332
                                    then 8
1333
                                    else 
1334
                                 (if KP_91
1335
                                    then 9
1336
                                    else 10))))))))))
1337
                           else 0))
1338
                  else 
1339
               (if KP_CLEAR
1340
                  then 0
1341
                  else 
1342
               (if 
1343
                  (if (
1344
                     (if (KP_01 and 
1345
                        (not (pre KP_01)))
1346
                        then 0
1347
                        else 
1348
                     (if (KP_11 and 
1349
                        (not (pre KP_11)))
1350
                        then 1
1351
                        else 
1352
                     (if (KP_21 and 
1353
                        (not (pre KP_21)))
1354
                        then 2
1355
                        else 
1356
                     (if (KP_31 and 
1357
                        (not (pre KP_31)))
1358
                        then 3
1359
                        else 
1360
                     (if (KP_41 and 
1361
                        (not (pre KP_41)))
1362
                        then 4
1363
                        else 
1364
                     (if (KP_51 and 
1365
                        (not (pre KP_51)))
1366
                        then 5
1367
                        else 
1368
                     (if (KP_61 and 
1369
                        (not (pre KP_61)))
1370
                        then 6
1371
                        else 
1372
                     (if (KP_71 and 
1373
                        (not (pre KP_71)))
1374
                        then 7
1375
                        else 
1376
                     (if (KP_81 and 
1377
                        (not (pre KP_81)))
1378
                        then 8
1379
                        else 
1380
                     (if (KP_91 and 
1381
                        (not (pre KP_91)))
1382
                        then 9
1383
                        else 10)))))))))) <= 9)
1384
                     then true
1385
                     else false)
1386
                  then 
1387
                        (if (KP_01 and 
1388
                           (not (pre KP_01)))
1389
                           then 0
1390
                           else 
1391
                        (if (KP_11 and 
1392
                           (not (pre KP_11)))
1393
                           then 1
1394
                           else 
1395
                        (if (KP_21 and 
1396
                           (not (pre KP_21)))
1397
                           then 2
1398
                           else 
1399
                        (if (KP_31 and 
1400
                           (not (pre KP_31)))
1401
                           then 3
1402
                           else 
1403
                        (if (KP_41 and 
1404
                           (not (pre KP_41)))
1405
                           then 4
1406
                           else 
1407
                        (if (KP_51 and 
1408
                           (not (pre KP_51)))
1409
                           then 5
1410
                           else 
1411
                        (if (KP_61 and 
1412
                           (not (pre KP_61)))
1413
                           then 6
1414
                           else 
1415
                        (if (KP_71 and 
1416
                           (not (pre KP_71)))
1417
                           then 7
1418
                           else 
1419
                        (if (KP_81 and 
1420
                           (not (pre KP_81)))
1421
                           then 8
1422
                           else 
1423
                        (if (KP_91 and 
1424
                           (not (pre KP_91)))
1425
                           then 9
1426
                           else 10))))))))))
1427
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1428
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1429

    
1430
   STEPS_TO_COOK = (
1431
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1432
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1433
         then 0
1434
         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)) -> 
1435
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1436
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1437
         then 0
1438
         else 
1439
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1440
         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)
1441
         else (pre STEPS_TO_COOK))));
1442

    
1443
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1444
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1445
         then true
1446
         else 
1447
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1448
         then false
1449
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1450

    
1451
   SETUP = 
1452
      (if (1 = microwave_microwave_mode_logic_mode)
1453
         then true
1454
         else false);
1455

    
1456
   p32 = (true -> ((not (enable and 
1457
      (not KP_CLEAR))) or 
1458
      ((not ((KP_5 and 
1459
      (not (pre KP_5))) and 
1460
      ((not (KP_4 and 
1461
      (not (pre KP_4)))) and 
1462
      ((not (KP_3 and 
1463
      (not (pre KP_3)))) and 
1464
      ((not (KP_2 and 
1465
      (not (pre KP_2)))) and 
1466
      ((not (KP_1 and 
1467
      (not (pre KP_1)))) and 
1468
      (not (KP_0 and 
1469
      (not (pre KP_0)))))))))) or 
1470
      (RIGHT_DIGIT = 5))));
1471

    
1472
   enable = (true -> 
1473
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1474
         then true
1475
         else false));
1476

    
1477
   p3 = (true -> (
1478
      (if (not SETUP)
1479
         then 
1480
               (if (MWI_FcnMaxI_In1 > 0)
1481
                  then MWI_FcnMaxI_In1
1482
                  else 0)
1483
         else 639) > 0));
1484

    
1485
   p28 = (true -> ((not (enable and 
1486
      (not KP_CLEAR))) or 
1487
      ((not ((KP_1 and 
1488
      (not (pre KP_1))) and 
1489
      (not (KP_0 and 
1490
      (not (pre KP_0)))))) or 
1491
      (RIGHT_DIGIT = 1))));
1492

    
1493
   p13 = ((not (enable and 
1494
      KP_CLEAR)) or 
1495
      (STEPS_TO_COOK = 0));
1496

    
1497
   p19 = (true -> ((not (enable and 
1498
      (not KP_CLEAR))) or 
1499
      (((((((((((KP_1 and 
1500
      (not (pre KP_1))) or 
1501
      (KP_2 and 
1502
      (not (pre KP_2)))) or 
1503
      (KP_3 and 
1504
      (not (pre KP_3)))) or 
1505
      (KP_4 and 
1506
      (not (pre KP_4)))) or 
1507
      (KP_5 and 
1508
      (not (pre KP_5)))) or 
1509
      (KP_6 and 
1510
      (not (pre KP_6)))) or 
1511
      (KP_7 and 
1512
      (not (pre KP_7)))) or 
1513
      (KP_8 and 
1514
      (not (pre KP_8)))) or 
1515
      (KP_9 and 
1516
      (not (pre KP_9)))) or 
1517
      (KP_0 and 
1518
      (not (pre KP_0)))) or 
1519
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1520

    
1521
   p29 = (true -> ((not (enable and 
1522
      (not KP_CLEAR))) or 
1523
      ((not ((KP_2 and 
1524
      (not (pre KP_2))) and 
1525
      ((not (KP_1 and 
1526
      (not (pre KP_1)))) and 
1527
      (not (KP_0 and 
1528
      (not (pre KP_0))))))) or 
1529
      (RIGHT_DIGIT = 2))));
1530

    
1531
   p34 = (true -> ((not (enable and 
1532
      (not KP_CLEAR))) or 
1533
      ((not ((KP_7 and 
1534
      (not (pre KP_7))) and 
1535
      ((not (KP_6 and 
1536
      (not (pre KP_6)))) and 
1537
      ((not (KP_5 and 
1538
      (not (pre KP_5)))) and 
1539
      ((not (KP_4 and 
1540
      (not (pre KP_4)))) and 
1541
      ((not (KP_3 and 
1542
      (not (pre KP_3)))) and 
1543
      ((not (KP_2 and 
1544
      (not (pre KP_2)))) and 
1545
      ((not (KP_1 and 
1546
      (not (pre KP_1)))) and 
1547
      (not (KP_0 and 
1548
      (not (pre KP_0)))))))))))) or 
1549
      (RIGHT_DIGIT = 7))));
1550

    
1551
   p12 = (enable or 
1552
      (STEPS_TO_COOK = 0));
1553

    
1554
   p21 = ((not (enable and 
1555
      KP_CLEAR)) or 
1556
      (MIDDLE_DIGIT = 0));
1557

    
1558
   OK = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER >= 0) and 
1559
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER <= 256));
1560

    
1561
   rltTruncByConv1 = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT >= 0) and 
1562
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT <= 256));
1563

    
1564
   rltTruncByConv = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT >= 0) and 
1565
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT <= 256));
1566

    
1567
  --%PROPERTY OK=true;
1568
  --%MAIN;
1569

    
1570
tel
1571