Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (51.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_rltCheckEntryStateConsistency_0: bool; 
90
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; 
91
   chart_microwave_mode_logic_rlt_evtInitStep: bool; 
92
   chart_microwave_mode_logic_begin_state_states___root: int; 
93
   chart_microwave_mode_logic_begin_state_outports_mode: int; 
94
   chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; 
95
   chart_microwave_mode_logic_final_state_states___root: int; 
96
   chart_microwave_mode_logic_mode: int; 
97
   chart_microwave_mode_logic_steps_remaining: int; 
98
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; 
99
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; 
100
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; 
101
   microwave_microwave_mode_logic_mode: int; 
102
   MWI_FcnMaxI_In16: int; 
103
   MWI_FcnMaxI_In15: int; 
104
   MWI_FcnMaxI_In13: int; 
105
   MWI_FcnMaxI_In12: int; 
106
   MWI_FcnMaxI_In11: int; 
107
   MWI_FcnMaxI_In1: int; 
108
   p3: bool; 
109
   p4: bool; 
110
   p5: bool; 
111
   p6: bool; 
112
   p7: bool; 
113
   p8: bool; 
114
   p9: bool; 
115
   p10: bool; 
116
   p11: bool; 
117
   p12: bool; 
118
   p13: bool; 
119
   p14: bool; 
120
   p15: bool; 
121
   p16: bool; 
122
   p17: bool; 
123
   p18: bool; 
124
   p19: bool; 
125
   p20: bool; 
126
   p21: bool; 
127
   p22: bool; 
128
   p23: bool; 
129
   p24: bool; 
130
   p25: bool; 
131
   p26: bool; 
132
   p27: bool; 
133
   p28: bool; 
134
   p29: bool; 
135
   p30: bool; 
136
   p31: bool; 
137
   p32: bool; 
138
   p33: bool; 
139
   p34: bool; 
140
   p35: bool; 
141
   p36: bool; 
142
   p37: bool; 
143
   rltTruncByConv2: bool; 
144
   rltTruncByConv1: bool; 
145
   rltTruncByConv: bool;
146

    
147

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

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

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

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

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

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

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

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

    
257
   p35 = (true -> ((not (enable and 
258
      (not KP_CLEAR))) or 
259
      ((not ((KP_8 and 
260
      (not (pre KP_8))) and 
261
      ((not (KP_7 and 
262
      (not (pre KP_7)))) and 
263
      ((not (KP_6 and 
264
      (not (pre KP_6)))) and 
265
      ((not (KP_5 and 
266
      (not (pre KP_5)))) and 
267
      ((not (KP_4 and 
268
      (not (pre KP_4)))) and 
269
      ((not (KP_3 and 
270
      (not (pre KP_3)))) and 
271
      ((not (KP_2 and 
272
      (not (pre KP_2)))) and 
273
      ((not (KP_1 and 
274
      (not (pre KP_1)))) and 
275
      (not (KP_0 and 
276
      (not (pre KP_0))))))))))))) or 
277
      (RIGHT_DIGIT = 8))));
278

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

    
297
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
298

    
299
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
300

    
301
   p25 = (enable or 
302
      (RIGHT_DIGIT = 0));
303

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

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

    
352
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
353

    
354
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
355
      (not (pre KP_CLEAR))));
356

    
357
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
358

    
359
   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));
360

    
361
   SUSPENDED = 
362
      (if (3 = microwave_microwave_mode_logic_mode)
363
         then true
364
         else false);
365

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

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

    
404
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
405

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

    
414
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
415

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

    
440
   p20 = (enable or 
441
      (MIDDLE_DIGIT = 0));
442

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

    
451
   p26 = ((not (enable and 
452
      KP_CLEAR)) or 
453
      (RIGHT_DIGIT = 0));
454

    
455
   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);
456

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

    
461
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
462

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

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

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

    
490
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
491

    
492
   p16 = ((not (enable and 
493
      KP_CLEAR)) or 
494
      (LEFT_DIGIT = 0));
495

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

    
508
   COOKING = 
509
      (if (2 = microwave_microwave_mode_logic_mode)
510
         then true
511
         else false);
512

    
513
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
514

    
515
   p11 = ((not KP_CLEAR) or 
516
      (not COOKING));
517

    
518
   p9 = (true -> ((not COOKING) or 
519
      DOOR_CLOSED));
520

    
521
   p15 = (enable or 
522
      (LEFT_DIGIT = 0));
523

    
524
   START_PRESSED = (KP_START -> (KP_START and 
525
      (not (pre KP_START))));
526

    
527
   chart_microwave_mode_logic_start = 
528
      (if (START_PRESSED = false)
529
         then 0
530
         else 1);
531

    
532
   chart_microwave_mode_logic_clear_off = 
533
      (if (CLEAR_PRESSED = false)
534
         then 0
535
         else 1);
536

    
537
   chart_microwave_mode_logic_door_closed = 
538
      (if (DOOR_CLOSED = false)
539
         then 0
540
         else 1);
541

    
542
   chart_microwave_mode_logic____wakeup___ = true;
543

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

    
549
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
550

    
551
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
552

    
553
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
554

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

    
577
   chart_microwave_mode_logic_mode = 
578
      (if chart_microwave_mode_logic____wakeup___
579
         then 
580
               (if chart_microwave_mode_logic_rlt_evtInitStep
581
                  then 
582
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
583
                           then 1
584
                           else chart_microwave_mode_logic_begin_state_outports_mode)
585
                  else 
586
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
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
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
609
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
610
                  then 
611
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
612
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
613
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
614
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
615
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
616

    
617
   
618
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
619

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

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

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

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

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

    
678
   
679
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
680
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
681
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
682

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

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

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

    
725
   
726
   
727
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
728
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
729

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

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

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

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

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

    
788
   
789
   
790
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
791
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
792

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
988
   OK = ((rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 2) or 
989
      (rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 3));
990

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

    
1002
   rlt_enter_microwave_mode_logic_rltCheckEntryStateConsistency_0 = (
1003
      
1004
      ((rlt_enter_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
1005
      (rlt_enter_microwave_mode_logic_rlt_state_2_states___root <= 3)) or 
1006
      (rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 4));
1007

    
1008
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
1009

    
1010
   p17 = (((not (enable and 
1011
      (not KP_CLEAR))) or 
1012
      ((not (((((((((KP_1 or 
1013
      KP_2) or 
1014
      KP_3) or 
1015
      KP_4) or 
1016
      KP_5) or 
1017
      KP_6) or 
1018
      KP_7) or 
1019
      KP_8) or 
1020
      KP_9) or 
1021
      KP_0)) or 
1022
      (LEFT_DIGIT = 0))) -> ((not (enable and 
1023
      (not KP_CLEAR))) or 
1024
      ((not ((((((((((KP_1 and 
1025
      (not (pre KP_1))) or 
1026
      (KP_2 and 
1027
      (not (pre KP_2)))) or 
1028
      (KP_3 and 
1029
      (not (pre KP_3)))) or 
1030
      (KP_4 and 
1031
      (not (pre KP_4)))) or 
1032
      (KP_5 and 
1033
      (not (pre KP_5)))) or 
1034
      (KP_6 and 
1035
      (not (pre KP_6)))) or 
1036
      (KP_7 and 
1037
      (not (pre KP_7)))) or 
1038
      (KP_8 and 
1039
      (not (pre KP_8)))) or 
1040
      (KP_9 and 
1041
      (not (pre KP_9)))) or 
1042
      (KP_0 and 
1043
      (not (pre KP_0))))) or 
1044
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
1045

    
1046
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
1047

    
1048
   p10 = (true -> ((not COOKING) or 
1049
      (
1050
      (if (not (not COOKING))
1051
         then 
1052
               (if (MWI_FcnMaxI_In16 > 0)
1053
                  then MWI_FcnMaxI_In16
1054
                  else 0)
1055
         else 639) > 0)));
1056

    
1057
   p27 = (((not (enable and 
1058
      (not KP_CLEAR))) or 
1059
      ((not KP_0) or 
1060
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
1061
      (not KP_CLEAR))) or 
1062
      ((not (KP_0 and 
1063
      (not (pre KP_0)))) or 
1064
      (RIGHT_DIGIT = 0))));
1065

    
1066
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1067

    
1068
   KP_01 = KP_0;
1069

    
1070
   KP_11 = KP_1;
1071

    
1072
   KP_21 = KP_2;
1073

    
1074
   KP_31 = KP_3;
1075

    
1076
   KP_41 = KP_4;
1077

    
1078
   KP_51 = KP_5;
1079

    
1080
   KP_61 = KP_6;
1081

    
1082
   KP_71 = KP_7;
1083

    
1084
   KP_81 = KP_8;
1085

    
1086
   KP_91 = KP_9;
1087

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

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

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

    
1437
   STEPS_TO_COOK = (
1438
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1439
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1440
         then 0
1441
         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)) -> 
1442
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1443
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1444
         then 0
1445
         else 
1446
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1447
         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)
1448
         else (pre STEPS_TO_COOK))));
1449

    
1450
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1451
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1452
         then true
1453
         else 
1454
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1455
         then false
1456
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1457

    
1458
   SETUP = 
1459
      (if (1 = microwave_microwave_mode_logic_mode)
1460
         then true
1461
         else false);
1462

    
1463
   p32 = (true -> ((not (enable and 
1464
      (not KP_CLEAR))) or 
1465
      ((not ((KP_5 and 
1466
      (not (pre KP_5))) and 
1467
      ((not (KP_4 and 
1468
      (not (pre KP_4)))) and 
1469
      ((not (KP_3 and 
1470
      (not (pre KP_3)))) and 
1471
      ((not (KP_2 and 
1472
      (not (pre KP_2)))) and 
1473
      ((not (KP_1 and 
1474
      (not (pre KP_1)))) and 
1475
      (not (KP_0 and 
1476
      (not (pre KP_0)))))))))) or 
1477
      (RIGHT_DIGIT = 5))));
1478

    
1479
   enable = (true -> 
1480
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1481
         then true
1482
         else false));
1483

    
1484
   p3 = (true -> (
1485
      (if (not SETUP)
1486
         then 
1487
               (if (MWI_FcnMaxI_In1 > 0)
1488
                  then MWI_FcnMaxI_In1
1489
                  else 0)
1490
         else 639) > 0));
1491

    
1492
   p28 = (true -> ((not (enable and 
1493
      (not KP_CLEAR))) or 
1494
      ((not ((KP_1 and 
1495
      (not (pre KP_1))) and 
1496
      (not (KP_0 and 
1497
      (not (pre KP_0)))))) or 
1498
      (RIGHT_DIGIT = 1))));
1499

    
1500
   p13 = ((not (enable and 
1501
      KP_CLEAR)) or 
1502
      (STEPS_TO_COOK = 0));
1503

    
1504
   p19 = (true -> ((not (enable and 
1505
      (not KP_CLEAR))) or 
1506
      (((((((((((KP_1 and 
1507
      (not (pre KP_1))) or 
1508
      (KP_2 and 
1509
      (not (pre KP_2)))) or 
1510
      (KP_3 and 
1511
      (not (pre KP_3)))) or 
1512
      (KP_4 and 
1513
      (not (pre KP_4)))) or 
1514
      (KP_5 and 
1515
      (not (pre KP_5)))) or 
1516
      (KP_6 and 
1517
      (not (pre KP_6)))) or 
1518
      (KP_7 and 
1519
      (not (pre KP_7)))) or 
1520
      (KP_8 and 
1521
      (not (pre KP_8)))) or 
1522
      (KP_9 and 
1523
      (not (pre KP_9)))) or 
1524
      (KP_0 and 
1525
      (not (pre KP_0)))) or 
1526
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1527

    
1528
   p29 = (true -> ((not (enable and 
1529
      (not KP_CLEAR))) or 
1530
      ((not ((KP_2 and 
1531
      (not (pre KP_2))) and 
1532
      ((not (KP_1 and 
1533
      (not (pre KP_1)))) and 
1534
      (not (KP_0 and 
1535
      (not (pre KP_0))))))) or 
1536
      (RIGHT_DIGIT = 2))));
1537

    
1538
   p34 = (true -> ((not (enable and 
1539
      (not KP_CLEAR))) or 
1540
      ((not ((KP_7 and 
1541
      (not (pre KP_7))) and 
1542
      ((not (KP_6 and 
1543
      (not (pre KP_6)))) and 
1544
      ((not (KP_5 and 
1545
      (not (pre KP_5)))) and 
1546
      ((not (KP_4 and 
1547
      (not (pre KP_4)))) and 
1548
      ((not (KP_3 and 
1549
      (not (pre KP_3)))) and 
1550
      ((not (KP_2 and 
1551
      (not (pre KP_2)))) and 
1552
      ((not (KP_1 and 
1553
      (not (pre KP_1)))) and 
1554
      (not (KP_0 and 
1555
      (not (pre KP_0)))))))))))) or 
1556
      (RIGHT_DIGIT = 7))));
1557

    
1558
   p12 = (enable or 
1559
      (STEPS_TO_COOK = 0));
1560

    
1561
   p21 = ((not (enable and 
1562
      KP_CLEAR)) or 
1563
      (MIDDLE_DIGIT = 0));
1564

    
1565
   rltTruncByConv2 = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER >= 0) and 
1566
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER <= 256));
1567

    
1568
   rltTruncByConv1 = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT >= 0) and 
1569
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT <= 256));
1570

    
1571
   rltTruncByConv = ((microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT >= 0) and 
1572
      (microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT <= 256));
1573

    
1574
  --%PROPERTY OK=true;
1575
  --%MAIN;
1576

    
1577
tel
1578