Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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

    
167

    
168

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

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

    
209
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
210

    
211
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
212

    
213

    
214

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

    
239
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
240

    
241
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
242
      (not (pre KP_CLEAR))));
243

    
244
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
245

    
246
   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));
247

    
248
   SUSPENDED = 
249
      (if (3 = microwave_microwave_mode_logic_mode)
250
         then true
251
         else false);
252

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

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

    
291
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
292

    
293
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
294

    
295

    
296

    
297
   OK = ((not (enable and 
298
      KP_CLEAR)) or 
299
      (RIGHT_DIGIT = 0));
300

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

    
303
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
304

    
305

    
306
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
307

    
308

    
309
   p30 = (true -> ((not (enable and 
310
      (not KP_CLEAR))) or 
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 = 3))));
320

    
321
   COOKING = 
322
      (if (2 = microwave_microwave_mode_logic_mode)
323
         then true
324
         else false);
325

    
326
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
327

    
328
   START_PRESSED = (KP_START -> (KP_START and 
329
      (not (pre KP_START))));
330

    
331
   chart_microwave_mode_logic_start = 
332
      (if (START_PRESSED = false)
333
         then 0
334
         else 1);
335

    
336
   chart_microwave_mode_logic_clear_off = 
337
      (if (CLEAR_PRESSED = false)
338
         then 0
339
         else 1);
340

    
341
   chart_microwave_mode_logic_door_closed = 
342
      (if (DOOR_CLOSED = false)
343
         then 0
344
         else 1);
345

    
346
   chart_microwave_mode_logic____wakeup___ = true;
347

    
348
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
349
      (if (pre chart_microwave_mode_logic____wakeup___)
350
         then false
351
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
352

    
353
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
354

    
355
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
356

    
357
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
358

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

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

    
406
   chart_microwave_mode_logic_steps_remaining = 
407
      (if chart_microwave_mode_logic____wakeup___
408
         then 
409
               (if chart_microwave_mode_logic_rlt_evtInitStep
410
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
411
                  else 
412
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
413
                  
414
                  
415
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
416
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
417
                  then 
418
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
419
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
420
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
421
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
422
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
423

    
424
   
425
   
426
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
427

    
428
   
429
   
430
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
431
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
432
         then STEPS_TO_COOK
433
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
434

    
435
   
436
   
437
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
438
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
439
      (
440
      (if (chart_microwave_mode_logic_start <> 0)
441
         then true
442
         else false) and 
443
      
444
      (if (
445
         (if ((STEPS_TO_COOK > 0) = false)
446
            then 0
447
            else 1) <> 0)
448
         then true
449
         else false))));
450

    
451
   
452
   
453
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
454
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
455
         then 
456
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
457
                  then 
458
                        
459
                        0
460
                  else chart_microwave_mode_logic_begin_state_states___root)
461
         else chart_microwave_mode_logic_begin_state_states___root);
462

    
463
   
464
   
465
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
466
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
467
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
468
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
469
   
470
   
471

    
472
   
473
   
474
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
475
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
476
         then 
477
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
478
                  then 
479
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
480
                           then 3
481
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
482
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
483
         else chart_microwave_mode_logic_begin_state_outports_mode);
484
   
485
   
486

    
487
   
488
   
489
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
490
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
491
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
492

    
493
   
494
   
495
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
496
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
497
         then 
498
               (if 
499
                  
500
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
501
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
502
                  then 
503
                        
504
                        0
505
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
506
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
507

    
508
   
509
   
510
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
511
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
512
         then 
513
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
514
                  then 
515
                        
516
                        4
517
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
518
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
519
   
520
   
521

    
522
   
523
   
524
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
525
      ((
526
      (if (chart_microwave_mode_logic_start <> 0)
527
         then true
528
         else false) and 
529
      
530
      (if (chart_microwave_mode_logic_door_closed <> 0)
531
         then true
532
         else false)) and 
533
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
534

    
535
   
536
   
537
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
538
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
539

    
540
   
541
   
542
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
543
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
544
         then 
545
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
546
                  then 
547
                        
548
                        1
549
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
550
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
551

    
552
   
553
   
554
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
555
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
556
         then 
557
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
558
                  then 1
559
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
560
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
561

    
562
   
563
   
564
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
565
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
566
         then 
567
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
568
                  then 
569
                        
570
                        2
571
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
572
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
573
   
574
   
575

    
576
   
577
   
578
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
579
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
580
         then 
581
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
582
                  then 2
583
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
584
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
585
   
586
   
587

    
588
   
589
   
590
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
591
      (
592
      (if (chart_microwave_mode_logic_clear_off <> 0)
593
         then true
594
         else false) and 
595
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
596
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
597
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
598

    
599
   
600
   
601
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
602
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
603

    
604
   
605
   
606
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
607
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
608
         then 
609
               (if 
610
                  
611
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
612
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
613
                  then 
614
                        
615
                        0
616
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
617
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
618

    
619
   
620
   
621
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
622
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
623
         then 0
624
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
625

    
626
   
627
   
628
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
629
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
630
         then 
631
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
632
                  then 
633
                        
634
                        4
635
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
636
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
637
   
638
   
639

    
640
   
641
   
642
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
643
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
644
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
645

    
646
   
647
   
648
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
649
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
650
         then 
651
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
652
                  then 1
653
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
654
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
655

    
656
   
657
   
658
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
659
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
660
         then 
661
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
662
                  then 
663
                        
664
                        1
665
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
666
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
667

    
668
   
669
   
670
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
671
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
672
         then 
673
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
674
                  then 
675
                        
676
                        2
677
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
678
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
679
   
680
   
681

    
682
   
683
   
684
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
685
      ((
686
      (if (chart_microwave_mode_logic_clear_off <> 0)
687
         then true
688
         else false) or 
689
      (not 
690
      (if (chart_microwave_mode_logic_door_closed <> 0)
691
         then true
692
         else false))) and 
693
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
694
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
695

    
696
   
697
   
698
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
699
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
700
         then 
701
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
702
                  then 
703
                        
704
                        1
705
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
706
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
707

    
708
   
709
   
710
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
711
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
712
         then 
713
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
714
                  then 2
715
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
716
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
717

    
718
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
719
      (if (not 
720
         
721
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
722
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
723
         then 
724
               
725
               1
726
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
727

    
728
   
729
   
730
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
731
      
732
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
733
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
734
      
735
      
736
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
737
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
738

    
739
   
740
   
741
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
742
      (
743
      
744
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
745
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
746
      
747
      (if (chart_microwave_mode_logic_door_closed <> 0)
748
         then true
749
         else false)));
750

    
751
   
752
   
753
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
754
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
755
         then 
756
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
757
                  then 
758
                        
759
                        2
760
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
761
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
762
   
763
   
764

    
765
   
766
   
767
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
768
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
769
         then 
770
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
771
                  then 2
772
                  else chart_microwave_mode_logic_begin_state_outports_mode)
773
         else chart_microwave_mode_logic_begin_state_outports_mode);
774
   
775
   
776

    
777
   
778
   
779
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
780
      (
781
      
782
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
783
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
784
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
785

    
786
   
787
   
788
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
789
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
790
         then 
791
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
792
                  then 
793
                        
794
                        3
795
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
796
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
797
   
798
   
799

    
800
   
801
   
802
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
803
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
804
         then 
805
               
806
               4
807
         else chart_microwave_mode_logic_begin_state_states___root);
808
   
809
   
810

    
811
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
812

    
813

    
814
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
815

    
816
   p27 = (((not (enable and 
817
      (not KP_CLEAR))) or 
818
      ((not KP_0) or 
819
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
820
      (not KP_CLEAR))) or 
821
      ((not (KP_0 and 
822
      (not (pre KP_0)))) or 
823
      (RIGHT_DIGIT = 0))));
824

    
825
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
826

    
827
   KP_01 = KP_0;
828

    
829
   KP_11 = KP_1;
830

    
831
   KP_21 = KP_2;
832

    
833
   KP_31 = KP_3;
834

    
835
   KP_41 = KP_4;
836

    
837
   KP_51 = KP_5;
838

    
839
   KP_61 = KP_6;
840

    
841
   KP_71 = KP_7;
842

    
843
   KP_81 = KP_8;
844

    
845
   KP_91 = KP_9;
846

    
847
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
848
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
849
         then 
850
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
851
                  then 0
852
                  else 
853
               (if KP_CLEAR
854
                  then 0
855
                  else 
856
               (if 
857
                  (if (
858
                     (if (KP_01 and 
859
                        (not (pre KP_01)))
860
                        then 0
861
                        else 
862
                     (if (KP_11 and 
863
                        (not (pre KP_11)))
864
                        then 1
865
                        else 
866
                     (if (KP_21 and 
867
                        (not (pre KP_21)))
868
                        then 2
869
                        else 
870
                     (if (KP_31 and 
871
                        (not (pre KP_31)))
872
                        then 3
873
                        else 
874
                     (if (KP_41 and 
875
                        (not (pre KP_41)))
876
                        then 4
877
                        else 
878
                     (if (KP_51 and 
879
                        (not (pre KP_51)))
880
                        then 5
881
                        else 
882
                     (if (KP_61 and 
883
                        (not (pre KP_61)))
884
                        then 6
885
                        else 
886
                     (if (KP_71 and 
887
                        (not (pre KP_71)))
888
                        then 7
889
                        else 
890
                     (if (KP_81 and 
891
                        (not (pre KP_81)))
892
                        then 8
893
                        else 
894
                     (if (KP_91 and 
895
                        (not (pre KP_91)))
896
                        then 9
897
                        else 10)))))))))) <= 9)
898
                     then true
899
                     else false)
900
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
901
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
902
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
903

    
904
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
905
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
906
         then 
907
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
908
                  then 0
909
                  else 
910
               (if KP_CLEAR
911
                  then 0
912
                  else 
913
               (if 
914
                  (if (
915
                     (if (KP_01 and 
916
                        (not (pre KP_01)))
917
                        then 0
918
                        else 
919
                     (if (KP_11 and 
920
                        (not (pre KP_11)))
921
                        then 1
922
                        else 
923
                     (if (KP_21 and 
924
                        (not (pre KP_21)))
925
                        then 2
926
                        else 
927
                     (if (KP_31 and 
928
                        (not (pre KP_31)))
929
                        then 3
930
                        else 
931
                     (if (KP_41 and 
932
                        (not (pre KP_41)))
933
                        then 4
934
                        else 
935
                     (if (KP_51 and 
936
                        (not (pre KP_51)))
937
                        then 5
938
                        else 
939
                     (if (KP_61 and 
940
                        (not (pre KP_61)))
941
                        then 6
942
                        else 
943
                     (if (KP_71 and 
944
                        (not (pre KP_71)))
945
                        then 7
946
                        else 
947
                     (if (KP_81 and 
948
                        (not (pre KP_81)))
949
                        then 8
950
                        else 
951
                     (if (KP_91 and 
952
                        (not (pre KP_91)))
953
                        then 9
954
                        else 10)))))))))) <= 9)
955
                     then true
956
                     else false)
957
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
958
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
959
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
960

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

    
1196
   STEPS_TO_COOK = (
1197
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1198
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1199
         then 0
1200
         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)) -> 
1201
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1202
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1203
         then 0
1204
         else 
1205
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1206
         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)
1207
         else (pre STEPS_TO_COOK))));
1208

    
1209
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1210
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1211
         then true
1212
         else 
1213
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1214
         then false
1215
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1216

    
1217
   SETUP = 
1218
      (if (1 = microwave_microwave_mode_logic_mode)
1219
         then true
1220
         else false);
1221

    
1222
   p32 = (true -> ((not (enable and 
1223
      (not KP_CLEAR))) or 
1224
      ((not ((KP_5 and 
1225
      (not (pre KP_5))) and 
1226
      ((not (KP_4 and 
1227
      (not (pre KP_4)))) and 
1228
      ((not (KP_3 and 
1229
      (not (pre KP_3)))) and 
1230
      ((not (KP_2 and 
1231
      (not (pre KP_2)))) and 
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 = 5))));
1237

    
1238
   enable = (true -> 
1239
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1240
         then true
1241
         else false));
1242

    
1243
   p28 = (true -> ((not (enable and 
1244
      (not KP_CLEAR))) or 
1245
      ((not ((KP_1 and 
1246
      (not (pre KP_1))) and 
1247
      (not (KP_0 and 
1248
      (not (pre KP_0)))))) or 
1249
      (RIGHT_DIGIT = 1))));
1250

    
1251

    
1252
   p29 = (true -> ((not (enable and 
1253
      (not KP_CLEAR))) or 
1254
      ((not ((KP_2 and 
1255
      (not (pre KP_2))) and 
1256
      ((not (KP_1 and 
1257
      (not (pre KP_1)))) and 
1258
      (not (KP_0 and 
1259
      (not (pre KP_0))))))) or 
1260
      (RIGHT_DIGIT = 2))));
1261

    
1262
   p34 = (true -> ((not (enable and 
1263
      (not KP_CLEAR))) or 
1264
      ((not ((KP_7 and 
1265
      (not (pre KP_7))) and 
1266
      ((not (KP_6 and 
1267
      (not (pre KP_6)))) and 
1268
      ((not (KP_5 and 
1269
      (not (pre KP_5)))) and 
1270
      ((not (KP_4 and 
1271
      (not (pre KP_4)))) and 
1272
      ((not (KP_3 and 
1273
      (not (pre KP_3)))) and 
1274
      ((not (KP_2 and 
1275
      (not (pre KP_2)))) and 
1276
      ((not (KP_1 and 
1277
      (not (pre KP_1)))) and 
1278
      (not (KP_0 and 
1279
      (not (pre KP_0)))))))))))) or 
1280
      (RIGHT_DIGIT = 7))));
1281

    
1282

    
1283
  --%PROPERTY OK=true;
1284
  --%MAIN;
1285

    
1286
tel
1287