Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / TIMEOUT / microwave22.lus @ b8dc00eb

History | View | Annotate | Download (46.7 KB)

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

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

    
134
   rlt__Arrow4 = (639 -> 
135
      (if (not SUSPENDED)
136
         then 
137
               (if (MWI_FcnMaxI_In12 > 0)
138
                  then MWI_FcnMaxI_In12
139
                  else 0)
140
         else 639));
141

    
142
   rlt__Arrow3 = (639 -> 
143
      (if (not (not COOKING))
144
         then 
145
               (if (MWI_FcnMaxI_In16 > 0)
146
                  then MWI_FcnMaxI_In16
147
                  else 0)
148
         else 639));
149

    
150
   rlt__Arrow2 = (639 -> 
151
      (if (not (not SUSPENDED))
152
         then 
153
               (if (MWI_FcnMaxI_In15 > 0)
154
                  then MWI_FcnMaxI_In15
155
                  else 0)
156
         else 639));
157

    
158
   rlt__Arrow1 = (639 -> 
159
      (if (not COOKING)
160
         then 
161
               (if (MWI_FcnMaxI_In11 > 0)
162
                  then MWI_FcnMaxI_In11
163
                  else 0)
164
         else 639));
165

    
166
   rlt__Arrow = (639 -> 
167
      (if (not SETUP)
168
         then 
169
               (if (MWI_FcnMaxI_In1 > 0)
170
                  then MWI_FcnMaxI_In1
171
                  else 0)
172
         else 639));
173

    
174

    
175
   p23 = (true -> (((not (enable and 
176
      (not KP_CLEAR))) or 
177
      (not ((((((((((KP_1 and 
178
      (not (pre KP_1))) or 
179
      (KP_2 and 
180
      (not (pre KP_2)))) or 
181
      (KP_3 and 
182
      (not (pre KP_3)))) or 
183
      (KP_4 and 
184
      (not (pre KP_4)))) or 
185
      (KP_5 and 
186
      (not (pre KP_5)))) or 
187
      (KP_6 and 
188
      (not (pre KP_6)))) or 
189
      (KP_7 and 
190
      (not (pre KP_7)))) or 
191
      (KP_8 and 
192
      (not (pre KP_8)))) or 
193
      (KP_9 and 
194
      (not (pre KP_9)))) or 
195
      (KP_0 and 
196
      (not (pre KP_0)))))) or 
197
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
198

    
199
   p35 = (true -> ((not (enable and 
200
      (not KP_CLEAR))) or 
201
      ((not ((KP_8 and 
202
      (not (pre KP_8))) and 
203
      ((not (KP_7 and 
204
      (not (pre KP_7)))) and 
205
      ((not (KP_6 and 
206
      (not (pre KP_6)))) and 
207
      ((not (KP_5 and 
208
      (not (pre KP_5)))) and 
209
      ((not (KP_4 and 
210
      (not (pre KP_4)))) and 
211
      ((not (KP_3 and 
212
      (not (pre KP_3)))) and 
213
      ((not (KP_2 and 
214
      (not (pre KP_2)))) and 
215
      ((not (KP_1 and 
216
      (not (pre KP_1)))) and 
217
      (not (KP_0 and 
218
      (not (pre KP_0))))))))))))) or 
219
      (RIGHT_DIGIT = 8))));
220

    
221
   p33 = (true -> ((not (enable and 
222
      (not KP_CLEAR))) or 
223
      ((not ((KP_6 and 
224
      (not (pre KP_6))) and 
225
      ((not (KP_5 and 
226
      (not (pre KP_5)))) and 
227
      ((not (KP_4 and 
228
      (not (pre KP_4)))) and 
229
      ((not (KP_3 and 
230
      (not (pre KP_3)))) and 
231
      ((not (KP_2 and 
232
      (not (pre KP_2)))) and 
233
      ((not (KP_1 and 
234
      (not (pre KP_1)))) and 
235
      (not (KP_0 and 
236
      (not (pre KP_0))))))))))) or 
237
      (RIGHT_DIGIT = 6))));
238

    
239
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
240

    
241
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
242

    
243
   p25 = (enable or 
244
      (RIGHT_DIGIT = 0));
245

    
246
   p22 = (true -> (((not (enable and 
247
      (not KP_CLEAR))) or 
248
      (not ((((((((((KP_1 and 
249
      (not (pre KP_1))) or 
250
      (KP_2 and 
251
      (not (pre KP_2)))) or 
252
      (KP_3 and 
253
      (not (pre KP_3)))) or 
254
      (KP_4 and 
255
      (not (pre KP_4)))) or 
256
      (KP_5 and 
257
      (not (pre KP_5)))) or 
258
      (KP_6 and 
259
      (not (pre KP_6)))) or 
260
      (KP_7 and 
261
      (not (pre KP_7)))) or 
262
      (KP_8 and 
263
      (not (pre KP_8)))) or 
264
      (KP_9 and 
265
      (not (pre KP_9)))) or 
266
      (KP_0 and 
267
      (not (pre KP_0)))))) or 
268
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
269

    
270
   p36 = (true -> ((not (enable and 
271
      (not KP_CLEAR))) or 
272
      ((not ((KP_9 and 
273
      (not (pre KP_9))) and 
274
      ((not (KP_8 and 
275
      (not (pre KP_8)))) and 
276
      ((not (KP_7 and 
277
      (not (pre KP_7)))) and 
278
      ((not (KP_6 and 
279
      (not (pre KP_6)))) and 
280
      ((not (KP_5 and 
281
      (not (pre KP_5)))) and 
282
      ((not (KP_4 and 
283
      (not (pre KP_4)))) and 
284
      ((not (KP_3 and 
285
      (not (pre KP_3)))) and 
286
      ((not (KP_2 and 
287
      (not (pre KP_2)))) and 
288
      ((not (KP_1 and 
289
      (not (pre KP_1)))) and 
290
      (not (KP_0 and 
291
      (not (pre KP_0)))))))))))))) or 
292
      (RIGHT_DIGIT = 9))));
293

    
294
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
295

    
296
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
297
      (not (pre KP_CLEAR))));
298

    
299
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
300

    
301
   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));
302

    
303
   SUSPENDED = 
304
      (if (3 = microwave_microwave_mode_logic_mode)
305
         then true
306
         else false);
307

    
308
   p31 = (true -> ((not (enable and 
309
      (not KP_CLEAR))) or 
310
      ((not ((KP_4 and 
311
      (not (pre KP_4))) and 
312
      ((not (KP_3 and 
313
      (not (pre KP_3)))) and 
314
      ((not (KP_2 and 
315
      (not (pre KP_2)))) and 
316
      ((not (KP_1 and 
317
      (not (pre KP_1)))) and 
318
      (not (KP_0 and 
319
      (not (pre KP_0))))))))) or 
320
      (RIGHT_DIGIT = 4))));
321

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

    
346
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
347

    
348
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
349

    
350
   p24 = (true -> (((not (enable and 
351
      (not KP_CLEAR))) or 
352
      ((((((((((KP_1 and 
353
      (not (pre KP_1))) or 
354
      (KP_2 and 
355
      (not (pre KP_2)))) or 
356
      (KP_3 and 
357
      (not (pre KP_3)))) or 
358
      (KP_4 and 
359
      (not (pre KP_4)))) or 
360
      (KP_5 and 
361
      (not (pre KP_5)))) or 
362
      (KP_6 and 
363
      (not (pre KP_6)))) or 
364
      (KP_7 and 
365
      (not (pre KP_7)))) or 
366
      (KP_8 and 
367
      (not (pre KP_8)))) or 
368
      (KP_9 and 
369
      (not (pre KP_9)))) or 
370
      (KP_0 and 
371
      (not (pre KP_0))))) or 
372
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
373

    
374
   p20 = (enable or 
375
      (MIDDLE_DIGIT = 0));
376

    
377
   p26 = ((not (enable and 
378
      KP_CLEAR)) or 
379
      (RIGHT_DIGIT = 0));
380

    
381
   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);
382

    
383
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
384

    
385

    
386
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
387

    
388

    
389
   p30 = (true -> ((not (enable and 
390
      (not KP_CLEAR))) or 
391
      ((not ((KP_3 and 
392
      (not (pre KP_3))) and 
393
      ((not (KP_2 and 
394
      (not (pre KP_2)))) and 
395
      ((not (KP_1 and 
396
      (not (pre KP_1)))) and 
397
      (not (KP_0 and 
398
      (not (pre KP_0)))))))) or 
399
      (RIGHT_DIGIT = 3))));
400

    
401
   COOKING = 
402
      (if (2 = microwave_microwave_mode_logic_mode)
403
         then true
404
         else false);
405

    
406
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
407

    
408
   START_PRESSED = (KP_START -> (KP_START and 
409
      (not (pre KP_START))));
410

    
411
   chart_microwave_mode_logic_start = 
412
      (if (START_PRESSED = false)
413
         then 0
414
         else 1);
415

    
416
   chart_microwave_mode_logic_clear_off = 
417
      (if (CLEAR_PRESSED = false)
418
         then 0
419
         else 1);
420

    
421
   chart_microwave_mode_logic_door_closed = 
422
      (if (DOOR_CLOSED = false)
423
         then 0
424
         else 1);
425

    
426
   chart_microwave_mode_logic____wakeup___ = true;
427

    
428
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
429
      (if (pre chart_microwave_mode_logic____wakeup___)
430
         then false
431
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
432

    
433
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
434

    
435
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
436

    
437
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
438

    
439
   chart_microwave_mode_logic_final_state_states___root = 
440
      (if chart_microwave_mode_logic____wakeup___
441
         then 
442
               (if chart_microwave_mode_logic_rlt_evtInitStep
443
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
444
                  else 
445
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
446
                  
447
                  
448
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
449
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
450
                  then 
451
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
452
                           then 
453
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
454
                                    then 
455
                                          
456
                                          3
457
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
458
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
459
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
460
         else chart_microwave_mode_logic_begin_state_states___root);
461

    
462
   chart_microwave_mode_logic_mode = 
463
      (if chart_microwave_mode_logic____wakeup___
464
         then 
465
               (if chart_microwave_mode_logic_rlt_evtInitStep
466
                  then 
467
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
468
                           then 1
469
                           else chart_microwave_mode_logic_begin_state_outports_mode)
470
                  else 
471
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
472
                  
473
                  
474
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
475
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
476
                  then 
477
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
478
                           then 
479
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
480
                                    then 3
481
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
482
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
483
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
484
         else chart_microwave_mode_logic_begin_state_outports_mode);
485

    
486
   chart_microwave_mode_logic_steps_remaining = 
487
      (if chart_microwave_mode_logic____wakeup___
488
         then 
489
               (if chart_microwave_mode_logic_rlt_evtInitStep
490
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
491
                  else 
492
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
493
                  
494
                  
495
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
496
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
497
                  then 
498
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
499
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
500
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
501
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
502
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
503

    
504
   
505
   
506
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
507

    
508
   
509
   
510
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
511
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
512
         then STEPS_TO_COOK
513
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
514

    
515
   
516
   
517
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
518
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
519
      (
520
      (if (chart_microwave_mode_logic_start <> 0)
521
         then true
522
         else false) and 
523
      
524
      (if (
525
         (if ((STEPS_TO_COOK > 0) = false)
526
            then 0
527
            else 1) <> 0)
528
         then true
529
         else false))));
530

    
531
   
532
   
533
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
534
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
535
         then 
536
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
537
                  then 
538
                        
539
                        0
540
                  else chart_microwave_mode_logic_begin_state_states___root)
541
         else chart_microwave_mode_logic_begin_state_states___root);
542

    
543
   
544
   
545
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
546
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
547
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
548
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
549
   
550
   
551

    
552
   
553
   
554
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
555
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
556
         then 
557
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
558
                  then 
559
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
560
                           then 3
561
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
562
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
563
         else chart_microwave_mode_logic_begin_state_outports_mode);
564
   
565
   
566

    
567
   
568
   
569
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
570
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
571
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
572

    
573
   
574
   
575
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
576
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
577
         then 
578
               (if 
579
                  
580
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
581
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
582
                  then 
583
                        
584
                        0
585
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
586
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
587

    
588
   
589
   
590
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
591
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
592
         then 
593
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
594
                  then 
595
                        
596
                        4
597
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
598
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
599
   
600
   
601

    
602
   
603
   
604
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
605
      ((
606
      (if (chart_microwave_mode_logic_start <> 0)
607
         then true
608
         else false) and 
609
      
610
      (if (chart_microwave_mode_logic_door_closed <> 0)
611
         then true
612
         else false)) and 
613
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
614

    
615
   
616
   
617
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
618
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
619

    
620
   
621
   
622
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
623
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
624
         then 
625
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
626
                  then 
627
                        
628
                        1
629
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
630
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
631

    
632
   
633
   
634
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
635
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
636
         then 
637
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
638
                  then 1
639
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
640
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
641

    
642
   
643
   
644
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
645
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
646
         then 
647
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
648
                  then 
649
                        
650
                        2
651
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
652
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
653
   
654
   
655

    
656
   
657
   
658
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
659
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
660
         then 
661
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
662
                  then 2
663
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
664
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
665
   
666
   
667

    
668
   
669
   
670
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
671
      (
672
      (if (chart_microwave_mode_logic_clear_off <> 0)
673
         then true
674
         else false) and 
675
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
676
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
677
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
678

    
679
   
680
   
681
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
682
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
683

    
684
   
685
   
686
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
687
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
688
         then 
689
               (if 
690
                  
691
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
692
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
693
                  then 
694
                        
695
                        0
696
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
697
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
698

    
699
   
700
   
701
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
702
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
703
         then 0
704
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
705

    
706
   
707
   
708
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
709
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
710
         then 
711
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
712
                  then 
713
                        
714
                        4
715
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
716
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
717
   
718
   
719

    
720
   
721
   
722
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
723
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
724
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
725

    
726
   
727
   
728
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
729
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
730
         then 
731
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
732
                  then 1
733
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
734
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
735

    
736
   
737
   
738
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
739
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
740
         then 
741
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
742
                  then 
743
                        
744
                        1
745
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
746
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
747

    
748
   
749
   
750
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
751
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
752
         then 
753
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
754
                  then 
755
                        
756
                        2
757
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
758
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
759
   
760
   
761

    
762
   
763
   
764
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
765
      ((
766
      (if (chart_microwave_mode_logic_clear_off <> 0)
767
         then true
768
         else false) or 
769
      (not 
770
      (if (chart_microwave_mode_logic_door_closed <> 0)
771
         then true
772
         else false))) and 
773
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
774
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
775

    
776
   
777
   
778
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
779
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
780
         then 
781
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
782
                  then 
783
                        
784
                        1
785
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
786
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
787

    
788
   
789
   
790
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
791
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
792
         then 
793
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
794
                  then 2
795
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
796
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
797

    
798
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
799
      (if (not 
800
         
801
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
802
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
803
         then 
804
               
805
               1
806
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
807

    
808
   
809
   
810
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
811
      
812
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
813
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
814
      
815
      
816
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
817
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
818

    
819
   
820
   
821
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
822
      (
823
      
824
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
825
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
826
      
827
      (if (chart_microwave_mode_logic_door_closed <> 0)
828
         then true
829
         else false)));
830

    
831
   
832
   
833
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
834
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
835
         then 
836
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
837
                  then 
838
                        
839
                        2
840
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
841
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
842
   
843
   
844

    
845
   
846
   
847
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
848
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
849
         then 
850
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
851
                  then 2
852
                  else chart_microwave_mode_logic_begin_state_outports_mode)
853
         else chart_microwave_mode_logic_begin_state_outports_mode);
854
   
855
   
856

    
857
   
858
   
859
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
860
      (
861
      
862
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
863
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
864
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
865

    
866
   
867
   
868
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
869
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
870
         then 
871
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
872
                  then 
873
                        
874
                        3
875
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
876
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
877
   
878
   
879

    
880
   
881
   
882
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
883
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
884
         then 
885
               
886
               4
887
         else chart_microwave_mode_logic_begin_state_states___root);
888
   
889
   
890

    
891
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
892

    
893

    
894
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
895

    
896
   p27 = (((not (enable and 
897
      (not KP_CLEAR))) or 
898
      ((not KP_0) or 
899
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
900
      (not KP_CLEAR))) or 
901
      ((not (KP_0 and 
902
      (not (pre KP_0)))) or 
903
      (RIGHT_DIGIT = 0))));
904

    
905
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
906

    
907
   KP_01 = KP_0;
908

    
909
   KP_11 = KP_1;
910

    
911
   KP_21 = KP_2;
912

    
913
   KP_31 = KP_3;
914

    
915
   KP_41 = KP_4;
916

    
917
   KP_51 = KP_5;
918

    
919
   KP_61 = KP_6;
920

    
921
   KP_71 = KP_7;
922

    
923
   KP_81 = KP_8;
924

    
925
   KP_91 = KP_9;
926

    
927
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
928
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
929
         then 
930
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
931
                  then 0
932
                  else 
933
               (if KP_CLEAR
934
                  then 0
935
                  else 
936
               (if 
937
                  (if (
938
                     (if (KP_01 and 
939
                        (not (pre KP_01)))
940
                        then 0
941
                        else 
942
                     (if (KP_11 and 
943
                        (not (pre KP_11)))
944
                        then 1
945
                        else 
946
                     (if (KP_21 and 
947
                        (not (pre KP_21)))
948
                        then 2
949
                        else 
950
                     (if (KP_31 and 
951
                        (not (pre KP_31)))
952
                        then 3
953
                        else 
954
                     (if (KP_41 and 
955
                        (not (pre KP_41)))
956
                        then 4
957
                        else 
958
                     (if (KP_51 and 
959
                        (not (pre KP_51)))
960
                        then 5
961
                        else 
962
                     (if (KP_61 and 
963
                        (not (pre KP_61)))
964
                        then 6
965
                        else 
966
                     (if (KP_71 and 
967
                        (not (pre KP_71)))
968
                        then 7
969
                        else 
970
                     (if (KP_81 and 
971
                        (not (pre KP_81)))
972
                        then 8
973
                        else 
974
                     (if (KP_91 and 
975
                        (not (pre KP_91)))
976
                        then 9
977
                        else 10)))))))))) <= 9)
978
                     then true
979
                     else false)
980
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
981
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
982
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
983

    
984
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
985
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
986
         then 
987
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
988
                  then 0
989
                  else 
990
               (if KP_CLEAR
991
                  then 0
992
                  else 
993
               (if 
994
                  (if (
995
                     (if (KP_01 and 
996
                        (not (pre KP_01)))
997
                        then 0
998
                        else 
999
                     (if (KP_11 and 
1000
                        (not (pre KP_11)))
1001
                        then 1
1002
                        else 
1003
                     (if (KP_21 and 
1004
                        (not (pre KP_21)))
1005
                        then 2
1006
                        else 
1007
                     (if (KP_31 and 
1008
                        (not (pre KP_31)))
1009
                        then 3
1010
                        else 
1011
                     (if (KP_41 and 
1012
                        (not (pre KP_41)))
1013
                        then 4
1014
                        else 
1015
                     (if (KP_51 and 
1016
                        (not (pre KP_51)))
1017
                        then 5
1018
                        else 
1019
                     (if (KP_61 and 
1020
                        (not (pre KP_61)))
1021
                        then 6
1022
                        else 
1023
                     (if (KP_71 and 
1024
                        (not (pre KP_71)))
1025
                        then 7
1026
                        else 
1027
                     (if (KP_81 and 
1028
                        (not (pre KP_81)))
1029
                        then 8
1030
                        else 
1031
                     (if (KP_91 and 
1032
                        (not (pre KP_91)))
1033
                        then 9
1034
                        else 10)))))))))) <= 9)
1035
                     then true
1036
                     else false)
1037
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1038
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1039
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1040

    
1041
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1042
      (if KP_CLEAR
1043
         then 0
1044
         else 
1045
      (if 
1046
         (if (
1047
            (if KP_01
1048
               then 0
1049
               else 
1050
            (if KP_11
1051
               then 1
1052
               else 
1053
            (if KP_21
1054
               then 2
1055
               else 
1056
            (if KP_31
1057
               then 3
1058
               else 
1059
            (if KP_41
1060
               then 4
1061
               else 
1062
            (if KP_51
1063
               then 5
1064
               else 
1065
            (if KP_61
1066
               then 6
1067
               else 
1068
            (if KP_71
1069
               then 7
1070
               else 
1071
            (if KP_81
1072
               then 8
1073
               else 
1074
            (if KP_91
1075
               then 9
1076
               else 10)))))))))) <= 9)
1077
            then true
1078
            else false)
1079
         then 
1080
               (if KP_01
1081
                  then 0
1082
                  else 
1083
               (if KP_11
1084
                  then 1
1085
                  else 
1086
               (if KP_21
1087
                  then 2
1088
                  else 
1089
               (if KP_31
1090
                  then 3
1091
                  else 
1092
               (if KP_41
1093
                  then 4
1094
                  else 
1095
               (if KP_51
1096
                  then 5
1097
                  else 
1098
               (if KP_61
1099
                  then 6
1100
                  else 
1101
               (if KP_71
1102
                  then 7
1103
                  else 
1104
               (if KP_81
1105
                  then 8
1106
                  else 
1107
               (if KP_91
1108
                  then 9
1109
                  else 10))))))))))
1110
         else 0)) -> 
1111
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1112
         then 
1113
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1114
                  then 
1115
                        (if KP_CLEAR
1116
                           then 0
1117
                           else 
1118
                        (if 
1119
                           (if (
1120
                              (if KP_01
1121
                                 then 0
1122
                                 else 
1123
                              (if KP_11
1124
                                 then 1
1125
                                 else 
1126
                              (if KP_21
1127
                                 then 2
1128
                                 else 
1129
                              (if KP_31
1130
                                 then 3
1131
                                 else 
1132
                              (if KP_41
1133
                                 then 4
1134
                                 else 
1135
                              (if KP_51
1136
                                 then 5
1137
                                 else 
1138
                              (if KP_61
1139
                                 then 6
1140
                                 else 
1141
                              (if KP_71
1142
                                 then 7
1143
                                 else 
1144
                              (if KP_81
1145
                                 then 8
1146
                                 else 
1147
                              (if KP_91
1148
                                 then 9
1149
                                 else 10)))))))))) <= 9)
1150
                              then true
1151
                              else false)
1152
                           then 
1153
                                 (if KP_01
1154
                                    then 0
1155
                                    else 
1156
                                 (if KP_11
1157
                                    then 1
1158
                                    else 
1159
                                 (if KP_21
1160
                                    then 2
1161
                                    else 
1162
                                 (if KP_31
1163
                                    then 3
1164
                                    else 
1165
                                 (if KP_41
1166
                                    then 4
1167
                                    else 
1168
                                 (if KP_51
1169
                                    then 5
1170
                                    else 
1171
                                 (if KP_61
1172
                                    then 6
1173
                                    else 
1174
                                 (if KP_71
1175
                                    then 7
1176
                                    else 
1177
                                 (if KP_81
1178
                                    then 8
1179
                                    else 
1180
                                 (if KP_91
1181
                                    then 9
1182
                                    else 10))))))))))
1183
                           else 0))
1184
                  else 
1185
               (if KP_CLEAR
1186
                  then 0
1187
                  else 
1188
               (if 
1189
                  (if (
1190
                     (if (KP_01 and 
1191
                        (not (pre KP_01)))
1192
                        then 0
1193
                        else 
1194
                     (if (KP_11 and 
1195
                        (not (pre KP_11)))
1196
                        then 1
1197
                        else 
1198
                     (if (KP_21 and 
1199
                        (not (pre KP_21)))
1200
                        then 2
1201
                        else 
1202
                     (if (KP_31 and 
1203
                        (not (pre KP_31)))
1204
                        then 3
1205
                        else 
1206
                     (if (KP_41 and 
1207
                        (not (pre KP_41)))
1208
                        then 4
1209
                        else 
1210
                     (if (KP_51 and 
1211
                        (not (pre KP_51)))
1212
                        then 5
1213
                        else 
1214
                     (if (KP_61 and 
1215
                        (not (pre KP_61)))
1216
                        then 6
1217
                        else 
1218
                     (if (KP_71 and 
1219
                        (not (pre KP_71)))
1220
                        then 7
1221
                        else 
1222
                     (if (KP_81 and 
1223
                        (not (pre KP_81)))
1224
                        then 8
1225
                        else 
1226
                     (if (KP_91 and 
1227
                        (not (pre KP_91)))
1228
                        then 9
1229
                        else 10)))))))))) <= 9)
1230
                     then true
1231
                     else false)
1232
                  then 
1233
                        (if (KP_01 and 
1234
                           (not (pre KP_01)))
1235
                           then 0
1236
                           else 
1237
                        (if (KP_11 and 
1238
                           (not (pre KP_11)))
1239
                           then 1
1240
                           else 
1241
                        (if (KP_21 and 
1242
                           (not (pre KP_21)))
1243
                           then 2
1244
                           else 
1245
                        (if (KP_31 and 
1246
                           (not (pre KP_31)))
1247
                           then 3
1248
                           else 
1249
                        (if (KP_41 and 
1250
                           (not (pre KP_41)))
1251
                           then 4
1252
                           else 
1253
                        (if (KP_51 and 
1254
                           (not (pre KP_51)))
1255
                           then 5
1256
                           else 
1257
                        (if (KP_61 and 
1258
                           (not (pre KP_61)))
1259
                           then 6
1260
                           else 
1261
                        (if (KP_71 and 
1262
                           (not (pre KP_71)))
1263
                           then 7
1264
                           else 
1265
                        (if (KP_81 and 
1266
                           (not (pre KP_81)))
1267
                           then 8
1268
                           else 
1269
                        (if (KP_91 and 
1270
                           (not (pre KP_91)))
1271
                           then 9
1272
                           else 10))))))))))
1273
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1274
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1275

    
1276
   STEPS_TO_COOK = (
1277
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1278
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1279
         then 0
1280
         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)) -> 
1281
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1282
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1283
         then 0
1284
         else 
1285
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1286
         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)
1287
         else (pre STEPS_TO_COOK))));
1288

    
1289
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1290
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1291
         then true
1292
         else 
1293
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1294
         then false
1295
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1296

    
1297
   SETUP = 
1298
      (if (1 = microwave_microwave_mode_logic_mode)
1299
         then true
1300
         else false);
1301

    
1302
   p32 = (true -> ((not (enable and 
1303
      (not KP_CLEAR))) or 
1304
      ((not ((KP_5 and 
1305
      (not (pre KP_5))) and 
1306
      ((not (KP_4 and 
1307
      (not (pre KP_4)))) and 
1308
      ((not (KP_3 and 
1309
      (not (pre KP_3)))) and 
1310
      ((not (KP_2 and 
1311
      (not (pre KP_2)))) and 
1312
      ((not (KP_1 and 
1313
      (not (pre KP_1)))) and 
1314
      (not (KP_0 and 
1315
      (not (pre KP_0)))))))))) or 
1316
      (RIGHT_DIGIT = 5))));
1317

    
1318
   enable = (true -> 
1319
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1320
         then true
1321
         else false));
1322

    
1323
   p28 = (true -> ((not (enable and 
1324
      (not KP_CLEAR))) or 
1325
      ((not ((KP_1 and 
1326
      (not (pre KP_1))) and 
1327
      (not (KP_0 and 
1328
      (not (pre KP_0)))))) or 
1329
      (RIGHT_DIGIT = 1))));
1330

    
1331
   OK = (true -> ((not (enable and 
1332
      (not KP_CLEAR))) or 
1333
      (((((((((((KP_1 and 
1334
      (not (pre KP_1))) or 
1335
      (KP_2 and 
1336
      (not (pre KP_2)))) or 
1337
      (KP_3 and 
1338
      (not (pre KP_3)))) or 
1339
      (KP_4 and 
1340
      (not (pre KP_4)))) or 
1341
      (KP_5 and 
1342
      (not (pre KP_5)))) or 
1343
      (KP_6 and 
1344
      (not (pre KP_6)))) or 
1345
      (KP_7 and 
1346
      (not (pre KP_7)))) or 
1347
      (KP_8 and 
1348
      (not (pre KP_8)))) or 
1349
      (KP_9 and 
1350
      (not (pre KP_9)))) or 
1351
      (KP_0 and 
1352
      (not (pre KP_0)))) or 
1353
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1354

    
1355
   p29 = (true -> ((not (enable and 
1356
      (not KP_CLEAR))) or 
1357
      ((not ((KP_2 and 
1358
      (not (pre KP_2))) and 
1359
      ((not (KP_1 and 
1360
      (not (pre KP_1)))) and 
1361
      (not (KP_0 and 
1362
      (not (pre KP_0))))))) or 
1363
      (RIGHT_DIGIT = 2))));
1364

    
1365
   p34 = (true -> ((not (enable and 
1366
      (not KP_CLEAR))) or 
1367
      ((not ((KP_7 and 
1368
      (not (pre KP_7))) and 
1369
      ((not (KP_6 and 
1370
      (not (pre KP_6)))) and 
1371
      ((not (KP_5 and 
1372
      (not (pre KP_5)))) and 
1373
      ((not (KP_4 and 
1374
      (not (pre KP_4)))) and 
1375
      ((not (KP_3 and 
1376
      (not (pre KP_3)))) and 
1377
      ((not (KP_2 and 
1378
      (not (pre KP_2)))) and 
1379
      ((not (KP_1 and 
1380
      (not (pre KP_1)))) and 
1381
      (not (KP_0 and 
1382
      (not (pre KP_0)))))))))))) or 
1383
      (RIGHT_DIGIT = 7))));
1384

    
1385
   p21 = ((not (enable and 
1386
      KP_CLEAR)) or 
1387
      (MIDDLE_DIGIT = 0));
1388

    
1389
  --%PROPERTY OK=true;
1390
  --%MAIN;
1391

    
1392
tel
1393