Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

    
173

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

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

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

    
238
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
239

    
240
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
241

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

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

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

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

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

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

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

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

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

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

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

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

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

    
373
   OK = (enable or 
374
      (MIDDLE_DIGIT = 0));
375

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

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

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

    
384

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

    
387

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

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

    
405
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
406

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

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

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

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

    
425
   chart_microwave_mode_logic____wakeup___ = true;
426

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
890
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
891

    
892

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

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

    
904
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
905

    
906
   KP_01 = KP_0;
907

    
908
   KP_11 = KP_1;
909

    
910
   KP_21 = KP_2;
911

    
912
   KP_31 = KP_3;
913

    
914
   KP_41 = KP_4;
915

    
916
   KP_51 = KP_5;
917

    
918
   KP_61 = KP_6;
919

    
920
   KP_71 = KP_7;
921

    
922
   KP_81 = KP_8;
923

    
924
   KP_91 = KP_9;
925

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

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

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

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

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

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

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

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

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

    
1330

    
1331
   p29 = (true -> ((not (enable and 
1332
      (not KP_CLEAR))) or 
1333
      ((not ((KP_2 and 
1334
      (not (pre KP_2))) and 
1335
      ((not (KP_1 and 
1336
      (not (pre KP_1)))) and 
1337
      (not (KP_0 and 
1338
      (not (pre KP_0))))))) or 
1339
      (RIGHT_DIGIT = 2))));
1340

    
1341
   p34 = (true -> ((not (enable and 
1342
      (not KP_CLEAR))) or 
1343
      ((not ((KP_7 and 
1344
      (not (pre KP_7))) and 
1345
      ((not (KP_6 and 
1346
      (not (pre KP_6)))) and 
1347
      ((not (KP_5 and 
1348
      (not (pre KP_5)))) and 
1349
      ((not (KP_4 and 
1350
      (not (pre KP_4)))) and 
1351
      ((not (KP_3 and 
1352
      (not (pre KP_3)))) and 
1353
      ((not (KP_2 and 
1354
      (not (pre KP_2)))) and 
1355
      ((not (KP_1 and 
1356
      (not (pre KP_1)))) and 
1357
      (not (KP_0 and 
1358
      (not (pre KP_0)))))))))))) or 
1359
      (RIGHT_DIGIT = 7))));
1360

    
1361
   p21 = ((not (enable and 
1362
      KP_CLEAR)) or 
1363
      (MIDDLE_DIGIT = 0));
1364

    
1365
  --%PROPERTY OK=true;
1366
  --%MAIN;
1367

    
1368
tel
1369