Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / SAFE / microwave02.lus @ b8dc00eb

History | View | Annotate | Download (51.4 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
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; 
30
   KP_01: bool; 
31
   KP_11: bool; 
32
   KP_21: bool; 
33
   KP_31: bool; 
34
   KP_41: bool; 
35
   KP_51: bool; 
36
   KP_61: bool; 
37
   KP_71: bool; 
38
   KP_81: bool; 
39
   KP_91: bool; 
40
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; 
41
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; 
42
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; 
43
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; 
44
   rlt__Arrow5: int; 
45
   rlt__Arrow4: int; 
46
   rlt__Arrow3: int; 
47
   rlt__Arrow2: int; 
48
   rlt__Arrow1: int; 
49
   rlt__Arrow: int; 
50
   chart_microwave_mode_logic_start: int; 
51
   chart_microwave_mode_logic_clear_off: int; 
52
   chart_microwave_mode_logic_door_closed: int; 
53
   chart_microwave_mode_logic____wakeup___: bool; 
54
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; 
55
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
56
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
57
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; 
58
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; 
59
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; 
60
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; 
61
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
62
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; 
63
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; 
64
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; 
65
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; 
66
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; 
67
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; 
68
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; 
69
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; 
70
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; 
71
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; 
72
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; 
73
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; 
74
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; 
75
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; 
76
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; 
77
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; 
78
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; 
79
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; 
80
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; 
81
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; 
82
   rlt_eval_microwave_mode_logic_rlt_fired_0: bool; 
83
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; 
84
   rlt_eval_microwave_mode_logic_rlt_fired_1: bool; 
85
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; 
86
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; 
87
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; 
88
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; 
89
   chart_microwave_mode_logic_rlt_evtInitStep: bool; 
90
   chart_microwave_mode_logic_begin_state_states___root: int; 
91
   chart_microwave_mode_logic_begin_state_outports_mode: int; 
92
   chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; 
93
   chart_microwave_mode_logic_final_state_states___root: int; 
94
   chart_microwave_mode_logic_mode: int; 
95
   chart_microwave_mode_logic_steps_remaining: int; 
96
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; 
97
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; 
98
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; 
99
   microwave_microwave_mode_logic_mode: int; 
100
   MWI_FcnMaxI_In16: int; 
101
   MWI_FcnMaxI_In15: int; 
102
   MWI_FcnMaxI_In13: int; 
103
   MWI_FcnMaxI_In12: int; 
104
   MWI_FcnMaxI_In11: int; 
105
   MWI_FcnMaxI_In1: int; 
106
   p3: bool; 
107
   p4: bool; 
108
   p5: bool; 
109
   p6: bool; 
110
   p7: bool; 
111
   p8: bool; 
112
   p9: bool; 
113
   p10: bool; 
114
   p11: bool; 
115
   p12: bool; 
116
   p13: bool; 
117
   p14: bool; 
118
   p15: bool; 
119
   p16: bool; 
120
   p17: bool; 
121
   p18: bool; 
122
   p19: bool; 
123
   p20: bool; 
124
   p21: bool; 
125
   p22: bool; 
126
   p23: bool; 
127
   p24: bool; 
128
   p25: bool; 
129
   p26: bool; 
130
   p27: bool; 
131
   p28: bool; 
132
   p29: bool; 
133
   p30: bool; 
134
   p31: bool; 
135
   p32: bool; 
136
   p33: bool; 
137
   p34: bool; 
138
   p35: bool; 
139
   p36: bool; 
140
   p37: bool; 
141
   rltTruncByConv2: 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
   OK = (
1002
      
1003
      ((rlt_enter_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
1004
      (rlt_enter_microwave_mode_logic_rlt_state_2_states___root <= 3)) or 
1005
      (rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 4));
1006

    
1007
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
1008

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

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

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

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

    
1065
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
1066

    
1067
   KP_01 = KP_0;
1068

    
1069
   KP_11 = KP_1;
1070

    
1071
   KP_21 = KP_2;
1072

    
1073
   KP_31 = KP_3;
1074

    
1075
   KP_41 = KP_4;
1076

    
1077
   KP_51 = KP_5;
1078

    
1079
   KP_61 = KP_6;
1080

    
1081
   KP_71 = KP_7;
1082

    
1083
   KP_81 = KP_8;
1084

    
1085
   KP_91 = KP_9;
1086

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
1576
tel
1577