Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (43.8 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
   p29: bool; 
108
   p30: bool; 
109
   p31: bool; 
110
   p32: bool; 
111
   p33: bool; 
112
   p34: bool; 
113
   p35: bool; 
114
   p36: bool; 
115
   p37: bool; 
116
let 
117
   rlt__Arrow5 = (639 -> 
118
      (if (not (not SETUP))
119
         then 
120
               (if (MWI_FcnMaxI_In13 > 0)
121
                  then MWI_FcnMaxI_In13
122
                  else 0)
123
         else 639));
124

    
125
   rlt__Arrow4 = (639 -> 
126
      (if (not SUSPENDED)
127
         then 
128
               (if (MWI_FcnMaxI_In12 > 0)
129
                  then MWI_FcnMaxI_In12
130
                  else 0)
131
         else 639));
132

    
133
   rlt__Arrow3 = (639 -> 
134
      (if (not (not COOKING))
135
         then 
136
               (if (MWI_FcnMaxI_In16 > 0)
137
                  then MWI_FcnMaxI_In16
138
                  else 0)
139
         else 639));
140

    
141
   rlt__Arrow2 = (639 -> 
142
      (if (not (not SUSPENDED))
143
         then 
144
               (if (MWI_FcnMaxI_In15 > 0)
145
                  then MWI_FcnMaxI_In15
146
                  else 0)
147
         else 639));
148

    
149
   rlt__Arrow1 = (639 -> 
150
      (if (not COOKING)
151
         then 
152
               (if (MWI_FcnMaxI_In11 > 0)
153
                  then MWI_FcnMaxI_In11
154
                  else 0)
155
         else 639));
156

    
157
   rlt__Arrow = (639 -> 
158
      (if (not SETUP)
159
         then 
160
               (if (MWI_FcnMaxI_In1 > 0)
161
                  then MWI_FcnMaxI_In1
162
                  else 0)
163
         else 639));
164

    
165

    
166

    
167
   p35 = (true -> ((not (enable and 
168
      (not KP_CLEAR))) or 
169
      ((not ((KP_8 and 
170
      (not (pre KP_8))) and 
171
      ((not (KP_7 and 
172
      (not (pre KP_7)))) and 
173
      ((not (KP_6 and 
174
      (not (pre KP_6)))) and 
175
      ((not (KP_5 and 
176
      (not (pre KP_5)))) and 
177
      ((not (KP_4 and 
178
      (not (pre KP_4)))) and 
179
      ((not (KP_3 and 
180
      (not (pre KP_3)))) and 
181
      ((not (KP_2 and 
182
      (not (pre KP_2)))) and 
183
      ((not (KP_1 and 
184
      (not (pre KP_1)))) and 
185
      (not (KP_0 and 
186
      (not (pre KP_0))))))))))))) or 
187
      (RIGHT_DIGIT = 8))));
188

    
189
   p33 = (true -> ((not (enable and 
190
      (not KP_CLEAR))) or 
191
      ((not ((KP_6 and 
192
      (not (pre KP_6))) and 
193
      ((not (KP_5 and 
194
      (not (pre KP_5)))) and 
195
      ((not (KP_4 and 
196
      (not (pre KP_4)))) and 
197
      ((not (KP_3 and 
198
      (not (pre KP_3)))) and 
199
      ((not (KP_2 and 
200
      (not (pre KP_2)))) and 
201
      ((not (KP_1 and 
202
      (not (pre KP_1)))) and 
203
      (not (KP_0 and 
204
      (not (pre KP_0))))))))))) or 
205
      (RIGHT_DIGIT = 6))));
206

    
207
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
208

    
209
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
210

    
211

    
212

    
213
   p36 = (true -> ((not (enable and 
214
      (not KP_CLEAR))) or 
215
      ((not ((KP_9 and 
216
      (not (pre KP_9))) and 
217
      ((not (KP_8 and 
218
      (not (pre KP_8)))) and 
219
      ((not (KP_7 and 
220
      (not (pre KP_7)))) and 
221
      ((not (KP_6 and 
222
      (not (pre KP_6)))) and 
223
      ((not (KP_5 and 
224
      (not (pre KP_5)))) and 
225
      ((not (KP_4 and 
226
      (not (pre KP_4)))) and 
227
      ((not (KP_3 and 
228
      (not (pre KP_3)))) and 
229
      ((not (KP_2 and 
230
      (not (pre KP_2)))) and 
231
      ((not (KP_1 and 
232
      (not (pre KP_1)))) and 
233
      (not (KP_0 and 
234
      (not (pre KP_0)))))))))))))) or 
235
      (RIGHT_DIGIT = 9))));
236

    
237
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
238

    
239
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
240
      (not (pre KP_CLEAR))));
241

    
242
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
243

    
244
   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));
245

    
246
   SUSPENDED = 
247
      (if (3 = microwave_microwave_mode_logic_mode)
248
         then true
249
         else false);
250

    
251
   p31 = (true -> ((not (enable and 
252
      (not KP_CLEAR))) or 
253
      ((not ((KP_4 and 
254
      (not (pre KP_4))) and 
255
      ((not (KP_3 and 
256
      (not (pre KP_3)))) and 
257
      ((not (KP_2 and 
258
      (not (pre KP_2)))) and 
259
      ((not (KP_1 and 
260
      (not (pre KP_1)))) and 
261
      (not (KP_0 and 
262
      (not (pre KP_0))))))))) or 
263
      (RIGHT_DIGIT = 4))));
264

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

    
289
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
290

    
291
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
292

    
293

    
294

    
295

    
296
   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);
297

    
298
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
299

    
300

    
301
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
302

    
303

    
304
   p30 = (true -> ((not (enable and 
305
      (not KP_CLEAR))) or 
306
      ((not ((KP_3 and 
307
      (not (pre KP_3))) and 
308
      ((not (KP_2 and 
309
      (not (pre KP_2)))) and 
310
      ((not (KP_1 and 
311
      (not (pre KP_1)))) and 
312
      (not (KP_0 and 
313
      (not (pre KP_0)))))))) or 
314
      (RIGHT_DIGIT = 3))));
315

    
316
   COOKING = 
317
      (if (2 = microwave_microwave_mode_logic_mode)
318
         then true
319
         else false);
320

    
321
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
322

    
323
   START_PRESSED = (KP_START -> (KP_START and 
324
      (not (pre KP_START))));
325

    
326
   chart_microwave_mode_logic_start = 
327
      (if (START_PRESSED = false)
328
         then 0
329
         else 1);
330

    
331
   chart_microwave_mode_logic_clear_off = 
332
      (if (CLEAR_PRESSED = false)
333
         then 0
334
         else 1);
335

    
336
   chart_microwave_mode_logic_door_closed = 
337
      (if (DOOR_CLOSED = false)
338
         then 0
339
         else 1);
340

    
341
   chart_microwave_mode_logic____wakeup___ = true;
342

    
343
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
344
      (if (pre chart_microwave_mode_logic____wakeup___)
345
         then false
346
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
347

    
348
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
349

    
350
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
351

    
352
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
353

    
354
   chart_microwave_mode_logic_final_state_states___root = 
355
      (if chart_microwave_mode_logic____wakeup___
356
         then 
357
               (if chart_microwave_mode_logic_rlt_evtInitStep
358
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
359
                  else 
360
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
361
                  
362
                  
363
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
364
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
365
                  then 
366
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
367
                           then 
368
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
369
                                    then 
370
                                          
371
                                          3
372
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
373
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
374
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
375
         else chart_microwave_mode_logic_begin_state_states___root);
376

    
377
   chart_microwave_mode_logic_mode = 
378
      (if chart_microwave_mode_logic____wakeup___
379
         then 
380
               (if chart_microwave_mode_logic_rlt_evtInitStep
381
                  then 
382
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
383
                           then 1
384
                           else chart_microwave_mode_logic_begin_state_outports_mode)
385
                  else 
386
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
387
                  
388
                  
389
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
390
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
391
                  then 
392
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
393
                           then 
394
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
395
                                    then 3
396
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
397
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
398
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
399
         else chart_microwave_mode_logic_begin_state_outports_mode);
400

    
401
   chart_microwave_mode_logic_steps_remaining = 
402
      (if chart_microwave_mode_logic____wakeup___
403
         then 
404
               (if chart_microwave_mode_logic_rlt_evtInitStep
405
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
406
                  else 
407
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
408
                  
409
                  
410
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
411
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
412
                  then 
413
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
414
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
415
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
416
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
417
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
418

    
419
   
420
   
421
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
422

    
423
   
424
   
425
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
426
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
427
         then STEPS_TO_COOK
428
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
429

    
430
   
431
   
432
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
433
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
434
      (
435
      (if (chart_microwave_mode_logic_start <> 0)
436
         then true
437
         else false) and 
438
      
439
      (if (
440
         (if ((STEPS_TO_COOK > 0) = false)
441
            then 0
442
            else 1) <> 0)
443
         then true
444
         else false))));
445

    
446
   
447
   
448
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
449
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
450
         then 
451
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
452
                  then 
453
                        
454
                        0
455
                  else chart_microwave_mode_logic_begin_state_states___root)
456
         else chart_microwave_mode_logic_begin_state_states___root);
457

    
458
   
459
   
460
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
461
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
462
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
463
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
464
   
465
   
466

    
467
   
468
   
469
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
470
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
471
         then 
472
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
473
                  then 
474
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
475
                           then 3
476
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
477
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
478
         else chart_microwave_mode_logic_begin_state_outports_mode);
479
   
480
   
481

    
482
   
483
   
484
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
485
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
486
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
487

    
488
   
489
   
490
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
491
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
492
         then 
493
               (if 
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
                        
499
                        0
500
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
501
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
502

    
503
   
504
   
505
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
506
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
507
         then 
508
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
509
                  then 
510
                        
511
                        4
512
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
513
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
514
   
515
   
516

    
517
   
518
   
519
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
520
      ((
521
      (if (chart_microwave_mode_logic_start <> 0)
522
         then true
523
         else false) and 
524
      
525
      (if (chart_microwave_mode_logic_door_closed <> 0)
526
         then true
527
         else false)) and 
528
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
529

    
530
   
531
   
532
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
533
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
534

    
535
   
536
   
537
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
538
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
539
         then 
540
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
541
                  then 
542
                        
543
                        1
544
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
545
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
546

    
547
   
548
   
549
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
550
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
551
         then 
552
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
553
                  then 1
554
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
555
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
556

    
557
   
558
   
559
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
560
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
561
         then 
562
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
563
                  then 
564
                        
565
                        2
566
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
567
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
568
   
569
   
570

    
571
   
572
   
573
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
574
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
575
         then 
576
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
577
                  then 2
578
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
579
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
580
   
581
   
582

    
583
   
584
   
585
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
586
      (
587
      (if (chart_microwave_mode_logic_clear_off <> 0)
588
         then true
589
         else false) and 
590
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
591
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
592
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
593

    
594
   
595
   
596
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
597
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
598

    
599
   
600
   
601
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
602
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
603
         then 
604
               (if 
605
                  
606
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
607
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
608
                  then 
609
                        
610
                        0
611
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
612
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
613

    
614
   
615
   
616
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
617
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
618
         then 0
619
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
620

    
621
   
622
   
623
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
624
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
625
         then 
626
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
627
                  then 
628
                        
629
                        4
630
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
631
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
632
   
633
   
634

    
635
   
636
   
637
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
638
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
639
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
640

    
641
   
642
   
643
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
644
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
645
         then 
646
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
647
                  then 1
648
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
649
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
650

    
651
   
652
   
653
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
654
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
655
         then 
656
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
657
                  then 
658
                        
659
                        1
660
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
661
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
662

    
663
   
664
   
665
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
666
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
667
         then 
668
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
669
                  then 
670
                        
671
                        2
672
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
673
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
674
   
675
   
676

    
677
   
678
   
679
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
680
      ((
681
      (if (chart_microwave_mode_logic_clear_off <> 0)
682
         then true
683
         else false) or 
684
      (not 
685
      (if (chart_microwave_mode_logic_door_closed <> 0)
686
         then true
687
         else false))) and 
688
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
689
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
690

    
691
   
692
   
693
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
694
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
695
         then 
696
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
697
                  then 
698
                        
699
                        1
700
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
701
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
702

    
703
   
704
   
705
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
706
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
707
         then 
708
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
709
                  then 2
710
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
711
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
712

    
713
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
714
      (if (not 
715
         
716
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
717
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
718
         then 
719
               
720
               1
721
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
722

    
723
   
724
   
725
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
726
      
727
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
728
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
729
      
730
      
731
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
732
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
733

    
734
   
735
   
736
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
737
      (
738
      
739
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
740
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
741
      
742
      (if (chart_microwave_mode_logic_door_closed <> 0)
743
         then true
744
         else false)));
745

    
746
   
747
   
748
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
749
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
750
         then 
751
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
752
                  then 
753
                        
754
                        2
755
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
756
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
757
   
758
   
759

    
760
   
761
   
762
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
763
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
764
         then 
765
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
766
                  then 2
767
                  else chart_microwave_mode_logic_begin_state_outports_mode)
768
         else chart_microwave_mode_logic_begin_state_outports_mode);
769
   
770
   
771

    
772
   
773
   
774
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
775
      (
776
      
777
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
778
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
779
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
780

    
781
   
782
   
783
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
784
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
785
         then 
786
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
787
                  then 
788
                        
789
                        3
790
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
791
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
792
   
793
   
794

    
795
   
796
   
797
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
798
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
799
         then 
800
               
801
               4
802
         else chart_microwave_mode_logic_begin_state_states___root);
803
   
804
   
805

    
806
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
807

    
808

    
809
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
810

    
811

    
812
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
813

    
814
   KP_01 = KP_0;
815

    
816
   KP_11 = KP_1;
817

    
818
   KP_21 = KP_2;
819

    
820
   KP_31 = KP_3;
821

    
822
   KP_41 = KP_4;
823

    
824
   KP_51 = KP_5;
825

    
826
   KP_61 = KP_6;
827

    
828
   KP_71 = KP_7;
829

    
830
   KP_81 = KP_8;
831

    
832
   KP_91 = KP_9;
833

    
834
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
835
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
836
         then 
837
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
838
                  then 0
839
                  else 
840
               (if KP_CLEAR
841
                  then 0
842
                  else 
843
               (if 
844
                  (if (
845
                     (if (KP_01 and 
846
                        (not (pre KP_01)))
847
                        then 0
848
                        else 
849
                     (if (KP_11 and 
850
                        (not (pre KP_11)))
851
                        then 1
852
                        else 
853
                     (if (KP_21 and 
854
                        (not (pre KP_21)))
855
                        then 2
856
                        else 
857
                     (if (KP_31 and 
858
                        (not (pre KP_31)))
859
                        then 3
860
                        else 
861
                     (if (KP_41 and 
862
                        (not (pre KP_41)))
863
                        then 4
864
                        else 
865
                     (if (KP_51 and 
866
                        (not (pre KP_51)))
867
                        then 5
868
                        else 
869
                     (if (KP_61 and 
870
                        (not (pre KP_61)))
871
                        then 6
872
                        else 
873
                     (if (KP_71 and 
874
                        (not (pre KP_71)))
875
                        then 7
876
                        else 
877
                     (if (KP_81 and 
878
                        (not (pre KP_81)))
879
                        then 8
880
                        else 
881
                     (if (KP_91 and 
882
                        (not (pre KP_91)))
883
                        then 9
884
                        else 10)))))))))) <= 9)
885
                     then true
886
                     else false)
887
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
888
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
889
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
890

    
891
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
892
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
893
         then 
894
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
895
                  then 0
896
                  else 
897
               (if KP_CLEAR
898
                  then 0
899
                  else 
900
               (if 
901
                  (if (
902
                     (if (KP_01 and 
903
                        (not (pre KP_01)))
904
                        then 0
905
                        else 
906
                     (if (KP_11 and 
907
                        (not (pre KP_11)))
908
                        then 1
909
                        else 
910
                     (if (KP_21 and 
911
                        (not (pre KP_21)))
912
                        then 2
913
                        else 
914
                     (if (KP_31 and 
915
                        (not (pre KP_31)))
916
                        then 3
917
                        else 
918
                     (if (KP_41 and 
919
                        (not (pre KP_41)))
920
                        then 4
921
                        else 
922
                     (if (KP_51 and 
923
                        (not (pre KP_51)))
924
                        then 5
925
                        else 
926
                     (if (KP_61 and 
927
                        (not (pre KP_61)))
928
                        then 6
929
                        else 
930
                     (if (KP_71 and 
931
                        (not (pre KP_71)))
932
                        then 7
933
                        else 
934
                     (if (KP_81 and 
935
                        (not (pre KP_81)))
936
                        then 8
937
                        else 
938
                     (if (KP_91 and 
939
                        (not (pre KP_91)))
940
                        then 9
941
                        else 10)))))))))) <= 9)
942
                     then true
943
                     else false)
944
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
945
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
946
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
947

    
948
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
949
      (if KP_CLEAR
950
         then 0
951
         else 
952
      (if 
953
         (if (
954
            (if KP_01
955
               then 0
956
               else 
957
            (if KP_11
958
               then 1
959
               else 
960
            (if KP_21
961
               then 2
962
               else 
963
            (if KP_31
964
               then 3
965
               else 
966
            (if KP_41
967
               then 4
968
               else 
969
            (if KP_51
970
               then 5
971
               else 
972
            (if KP_61
973
               then 6
974
               else 
975
            (if KP_71
976
               then 7
977
               else 
978
            (if KP_81
979
               then 8
980
               else 
981
            (if KP_91
982
               then 9
983
               else 10)))))))))) <= 9)
984
            then true
985
            else false)
986
         then 
987
               (if KP_01
988
                  then 0
989
                  else 
990
               (if KP_11
991
                  then 1
992
                  else 
993
               (if KP_21
994
                  then 2
995
                  else 
996
               (if KP_31
997
                  then 3
998
                  else 
999
               (if KP_41
1000
                  then 4
1001
                  else 
1002
               (if KP_51
1003
                  then 5
1004
                  else 
1005
               (if KP_61
1006
                  then 6
1007
                  else 
1008
               (if KP_71
1009
                  then 7
1010
                  else 
1011
               (if KP_81
1012
                  then 8
1013
                  else 
1014
               (if KP_91
1015
                  then 9
1016
                  else 10))))))))))
1017
         else 0)) -> 
1018
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1019
         then 
1020
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1021
                  then 
1022
                        (if KP_CLEAR
1023
                           then 0
1024
                           else 
1025
                        (if 
1026
                           (if (
1027
                              (if KP_01
1028
                                 then 0
1029
                                 else 
1030
                              (if KP_11
1031
                                 then 1
1032
                                 else 
1033
                              (if KP_21
1034
                                 then 2
1035
                                 else 
1036
                              (if KP_31
1037
                                 then 3
1038
                                 else 
1039
                              (if KP_41
1040
                                 then 4
1041
                                 else 
1042
                              (if KP_51
1043
                                 then 5
1044
                                 else 
1045
                              (if KP_61
1046
                                 then 6
1047
                                 else 
1048
                              (if KP_71
1049
                                 then 7
1050
                                 else 
1051
                              (if KP_81
1052
                                 then 8
1053
                                 else 
1054
                              (if KP_91
1055
                                 then 9
1056
                                 else 10)))))))))) <= 9)
1057
                              then true
1058
                              else false)
1059
                           then 
1060
                                 (if KP_01
1061
                                    then 0
1062
                                    else 
1063
                                 (if KP_11
1064
                                    then 1
1065
                                    else 
1066
                                 (if KP_21
1067
                                    then 2
1068
                                    else 
1069
                                 (if KP_31
1070
                                    then 3
1071
                                    else 
1072
                                 (if KP_41
1073
                                    then 4
1074
                                    else 
1075
                                 (if KP_51
1076
                                    then 5
1077
                                    else 
1078
                                 (if KP_61
1079
                                    then 6
1080
                                    else 
1081
                                 (if KP_71
1082
                                    then 7
1083
                                    else 
1084
                                 (if KP_81
1085
                                    then 8
1086
                                    else 
1087
                                 (if KP_91
1088
                                    then 9
1089
                                    else 10))))))))))
1090
                           else 0))
1091
                  else 
1092
               (if KP_CLEAR
1093
                  then 0
1094
                  else 
1095
               (if 
1096
                  (if (
1097
                     (if (KP_01 and 
1098
                        (not (pre KP_01)))
1099
                        then 0
1100
                        else 
1101
                     (if (KP_11 and 
1102
                        (not (pre KP_11)))
1103
                        then 1
1104
                        else 
1105
                     (if (KP_21 and 
1106
                        (not (pre KP_21)))
1107
                        then 2
1108
                        else 
1109
                     (if (KP_31 and 
1110
                        (not (pre KP_31)))
1111
                        then 3
1112
                        else 
1113
                     (if (KP_41 and 
1114
                        (not (pre KP_41)))
1115
                        then 4
1116
                        else 
1117
                     (if (KP_51 and 
1118
                        (not (pre KP_51)))
1119
                        then 5
1120
                        else 
1121
                     (if (KP_61 and 
1122
                        (not (pre KP_61)))
1123
                        then 6
1124
                        else 
1125
                     (if (KP_71 and 
1126
                        (not (pre KP_71)))
1127
                        then 7
1128
                        else 
1129
                     (if (KP_81 and 
1130
                        (not (pre KP_81)))
1131
                        then 8
1132
                        else 
1133
                     (if (KP_91 and 
1134
                        (not (pre KP_91)))
1135
                        then 9
1136
                        else 10)))))))))) <= 9)
1137
                     then true
1138
                     else false)
1139
                  then 
1140
                        (if (KP_01 and 
1141
                           (not (pre KP_01)))
1142
                           then 0
1143
                           else 
1144
                        (if (KP_11 and 
1145
                           (not (pre KP_11)))
1146
                           then 1
1147
                           else 
1148
                        (if (KP_21 and 
1149
                           (not (pre KP_21)))
1150
                           then 2
1151
                           else 
1152
                        (if (KP_31 and 
1153
                           (not (pre KP_31)))
1154
                           then 3
1155
                           else 
1156
                        (if (KP_41 and 
1157
                           (not (pre KP_41)))
1158
                           then 4
1159
                           else 
1160
                        (if (KP_51 and 
1161
                           (not (pre KP_51)))
1162
                           then 5
1163
                           else 
1164
                        (if (KP_61 and 
1165
                           (not (pre KP_61)))
1166
                           then 6
1167
                           else 
1168
                        (if (KP_71 and 
1169
                           (not (pre KP_71)))
1170
                           then 7
1171
                           else 
1172
                        (if (KP_81 and 
1173
                           (not (pre KP_81)))
1174
                           then 8
1175
                           else 
1176
                        (if (KP_91 and 
1177
                           (not (pre KP_91)))
1178
                           then 9
1179
                           else 10))))))))))
1180
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1181
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1182

    
1183
   STEPS_TO_COOK = (
1184
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1185
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1186
         then 0
1187
         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)) -> 
1188
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1189
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1190
         then 0
1191
         else 
1192
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1193
         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)
1194
         else (pre STEPS_TO_COOK))));
1195

    
1196
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1197
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1198
         then true
1199
         else 
1200
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1201
         then false
1202
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1203

    
1204
   SETUP = 
1205
      (if (1 = microwave_microwave_mode_logic_mode)
1206
         then true
1207
         else false);
1208

    
1209
   p32 = (true -> ((not (enable and 
1210
      (not KP_CLEAR))) or 
1211
      ((not ((KP_5 and 
1212
      (not (pre KP_5))) and 
1213
      ((not (KP_4 and 
1214
      (not (pre KP_4)))) and 
1215
      ((not (KP_3 and 
1216
      (not (pre KP_3)))) and 
1217
      ((not (KP_2 and 
1218
      (not (pre KP_2)))) and 
1219
      ((not (KP_1 and 
1220
      (not (pre KP_1)))) and 
1221
      (not (KP_0 and 
1222
      (not (pre KP_0)))))))))) or 
1223
      (RIGHT_DIGIT = 5))));
1224

    
1225
   enable = (true -> 
1226
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1227
         then true
1228
         else false));
1229

    
1230
   OK = (true -> ((not (enable and 
1231
      (not KP_CLEAR))) or 
1232
      ((not ((KP_1 and 
1233
      (not (pre KP_1))) and 
1234
      (not (KP_0 and 
1235
      (not (pre KP_0)))))) or 
1236
      (RIGHT_DIGIT = 1))));
1237

    
1238

    
1239
   p29 = (true -> ((not (enable and 
1240
      (not KP_CLEAR))) or 
1241
      ((not ((KP_2 and 
1242
      (not (pre KP_2))) and 
1243
      ((not (KP_1 and 
1244
      (not (pre KP_1)))) and 
1245
      (not (KP_0 and 
1246
      (not (pre KP_0))))))) or 
1247
      (RIGHT_DIGIT = 2))));
1248

    
1249
   p34 = (true -> ((not (enable and 
1250
      (not KP_CLEAR))) or 
1251
      ((not ((KP_7 and 
1252
      (not (pre KP_7))) and 
1253
      ((not (KP_6 and 
1254
      (not (pre KP_6)))) and 
1255
      ((not (KP_5 and 
1256
      (not (pre KP_5)))) and 
1257
      ((not (KP_4 and 
1258
      (not (pre KP_4)))) and 
1259
      ((not (KP_3 and 
1260
      (not (pre KP_3)))) and 
1261
      ((not (KP_2 and 
1262
      (not (pre KP_2)))) and 
1263
      ((not (KP_1 and 
1264
      (not (pre KP_1)))) and 
1265
      (not (KP_0 and 
1266
      (not (pre KP_0)))))))))))) or 
1267
      (RIGHT_DIGIT = 7))));
1268

    
1269

    
1270
  --%PROPERTY OK=true;
1271
  --%MAIN;
1272

    
1273
tel
1274