Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

    
122
   rlt__Arrow4 = (639 -> 
123
      (if (not SUSPENDED)
124
         then 
125
               (if (MWI_FcnMaxI_In12 > 0)
126
                  then MWI_FcnMaxI_In12
127
                  else 0)
128
         else 639));
129

    
130
   rlt__Arrow3 = (639 -> 
131
      (if (not (not COOKING))
132
         then 
133
               (if (MWI_FcnMaxI_In16 > 0)
134
                  then MWI_FcnMaxI_In16
135
                  else 0)
136
         else 639));
137

    
138
   rlt__Arrow2 = (639 -> 
139
      (if (not (not SUSPENDED))
140
         then 
141
               (if (MWI_FcnMaxI_In15 > 0)
142
                  then MWI_FcnMaxI_In15
143
                  else 0)
144
         else 639));
145

    
146
   rlt__Arrow1 = (639 -> 
147
      (if (not COOKING)
148
         then 
149
               (if (MWI_FcnMaxI_In11 > 0)
150
                  then MWI_FcnMaxI_In11
151
                  else 0)
152
         else 639));
153

    
154
   rlt__Arrow = (639 -> 
155
      (if (not SETUP)
156
         then 
157
               (if (MWI_FcnMaxI_In1 > 0)
158
                  then MWI_FcnMaxI_In1
159
                  else 0)
160
         else 639));
161

    
162

    
163

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

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

    
204
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
205

    
206
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
207

    
208

    
209

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

    
234
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
235

    
236
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
237
      (not (pre KP_CLEAR))));
238

    
239
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
240

    
241
   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));
242

    
243
   SUSPENDED = 
244
      (if (3 = microwave_microwave_mode_logic_mode)
245
         then true
246
         else false);
247

    
248
   OK = (true -> ((not (enable and 
249
      (not KP_CLEAR))) or 
250
      ((not ((KP_4 and 
251
      (not (pre KP_4))) and 
252
      ((not (KP_3 and 
253
      (not (pre KP_3)))) and 
254
      ((not (KP_2 and 
255
      (not (pre KP_2)))) and 
256
      ((not (KP_1 and 
257
      (not (pre KP_1)))) and 
258
      (not (KP_0 and 
259
      (not (pre KP_0))))))))) or 
260
      (RIGHT_DIGIT = 4))));
261

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

    
286
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
287

    
288
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
289

    
290

    
291

    
292

    
293
   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);
294

    
295
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
296

    
297

    
298
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
299

    
300

    
301

    
302
   COOKING = 
303
      (if (2 = microwave_microwave_mode_logic_mode)
304
         then true
305
         else false);
306

    
307
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
308

    
309
   START_PRESSED = (KP_START -> (KP_START and 
310
      (not (pre KP_START))));
311

    
312
   chart_microwave_mode_logic_start = 
313
      (if (START_PRESSED = false)
314
         then 0
315
         else 1);
316

    
317
   chart_microwave_mode_logic_clear_off = 
318
      (if (CLEAR_PRESSED = false)
319
         then 0
320
         else 1);
321

    
322
   chart_microwave_mode_logic_door_closed = 
323
      (if (DOOR_CLOSED = false)
324
         then 0
325
         else 1);
326

    
327
   chart_microwave_mode_logic____wakeup___ = true;
328

    
329
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
330
      (if (pre chart_microwave_mode_logic____wakeup___)
331
         then false
332
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
333

    
334
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
335

    
336
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
337

    
338
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
339

    
340
   chart_microwave_mode_logic_final_state_states___root = 
341
      (if chart_microwave_mode_logic____wakeup___
342
         then 
343
               (if chart_microwave_mode_logic_rlt_evtInitStep
344
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
345
                  else 
346
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
347
                  
348
                  
349
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
350
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
351
                  then 
352
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
353
                           then 
354
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
355
                                    then 
356
                                          
357
                                          3
358
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
359
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
360
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
361
         else chart_microwave_mode_logic_begin_state_states___root);
362

    
363
   chart_microwave_mode_logic_mode = 
364
      (if chart_microwave_mode_logic____wakeup___
365
         then 
366
               (if chart_microwave_mode_logic_rlt_evtInitStep
367
                  then 
368
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
369
                           then 1
370
                           else chart_microwave_mode_logic_begin_state_outports_mode)
371
                  else 
372
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
373
                  
374
                  
375
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
376
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
377
                  then 
378
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
379
                           then 
380
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
381
                                    then 3
382
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
383
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
384
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
385
         else chart_microwave_mode_logic_begin_state_outports_mode);
386

    
387
   chart_microwave_mode_logic_steps_remaining = 
388
      (if chart_microwave_mode_logic____wakeup___
389
         then 
390
               (if chart_microwave_mode_logic_rlt_evtInitStep
391
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
392
                  else 
393
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
394
                  
395
                  
396
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
397
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
398
                  then 
399
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
400
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
401
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
402
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
403
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
404

    
405
   
406
   
407
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
408

    
409
   
410
   
411
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
412
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
413
         then STEPS_TO_COOK
414
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
415

    
416
   
417
   
418
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
419
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
420
      (
421
      (if (chart_microwave_mode_logic_start <> 0)
422
         then true
423
         else false) and 
424
      
425
      (if (
426
         (if ((STEPS_TO_COOK > 0) = false)
427
            then 0
428
            else 1) <> 0)
429
         then true
430
         else false))));
431

    
432
   
433
   
434
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
435
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
436
         then 
437
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
438
                  then 
439
                        
440
                        0
441
                  else chart_microwave_mode_logic_begin_state_states___root)
442
         else chart_microwave_mode_logic_begin_state_states___root);
443

    
444
   
445
   
446
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
447
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
448
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
449
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
450
   
451
   
452

    
453
   
454
   
455
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
456
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
457
         then 
458
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
459
                  then 
460
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
461
                           then 3
462
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
463
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
464
         else chart_microwave_mode_logic_begin_state_outports_mode);
465
   
466
   
467

    
468
   
469
   
470
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
471
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
472
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
473

    
474
   
475
   
476
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
477
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
478
         then 
479
               (if 
480
                  
481
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
482
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
483
                  then 
484
                        
485
                        0
486
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
487
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
488

    
489
   
490
   
491
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
492
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
493
         then 
494
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
495
                  then 
496
                        
497
                        4
498
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
499
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
500
   
501
   
502

    
503
   
504
   
505
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
506
      ((
507
      (if (chart_microwave_mode_logic_start <> 0)
508
         then true
509
         else false) and 
510
      
511
      (if (chart_microwave_mode_logic_door_closed <> 0)
512
         then true
513
         else false)) and 
514
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
515

    
516
   
517
   
518
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
519
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
520

    
521
   
522
   
523
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
524
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
525
         then 
526
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
527
                  then 
528
                        
529
                        1
530
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
531
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
532

    
533
   
534
   
535
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
536
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
537
         then 
538
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
539
                  then 1
540
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
541
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
542

    
543
   
544
   
545
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
546
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
547
         then 
548
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
549
                  then 
550
                        
551
                        2
552
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
553
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
554
   
555
   
556

    
557
   
558
   
559
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
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 2
564
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
565
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
566
   
567
   
568

    
569
   
570
   
571
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
572
      (
573
      (if (chart_microwave_mode_logic_clear_off <> 0)
574
         then true
575
         else false) and 
576
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
577
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
578
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
579

    
580
   
581
   
582
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
583
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
584

    
585
   
586
   
587
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
588
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
589
         then 
590
               (if 
591
                  
592
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
593
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
594
                  then 
595
                        
596
                        0
597
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
598
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
599

    
600
   
601
   
602
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
603
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
604
         then 0
605
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
606

    
607
   
608
   
609
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
610
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
611
         then 
612
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
613
                  then 
614
                        
615
                        4
616
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
617
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
618
   
619
   
620

    
621
   
622
   
623
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
624
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
625
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
626

    
627
   
628
   
629
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
630
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
631
         then 
632
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
633
                  then 1
634
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
635
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
636

    
637
   
638
   
639
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
640
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
641
         then 
642
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
643
                  then 
644
                        
645
                        1
646
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
647
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
648

    
649
   
650
   
651
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
652
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
653
         then 
654
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
655
                  then 
656
                        
657
                        2
658
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
659
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
660
   
661
   
662

    
663
   
664
   
665
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
666
      ((
667
      (if (chart_microwave_mode_logic_clear_off <> 0)
668
         then true
669
         else false) or 
670
      (not 
671
      (if (chart_microwave_mode_logic_door_closed <> 0)
672
         then true
673
         else false))) and 
674
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
675
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
676

    
677
   
678
   
679
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
680
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
681
         then 
682
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
683
                  then 
684
                        
685
                        1
686
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
687
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
688

    
689
   
690
   
691
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
692
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
693
         then 
694
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
695
                  then 2
696
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
697
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
698

    
699
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
700
      (if (not 
701
         
702
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
703
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
704
         then 
705
               
706
               1
707
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
708

    
709
   
710
   
711
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
712
      
713
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
714
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
715
      
716
      
717
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
718
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
719

    
720
   
721
   
722
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
723
      (
724
      
725
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
726
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
727
      
728
      (if (chart_microwave_mode_logic_door_closed <> 0)
729
         then true
730
         else false)));
731

    
732
   
733
   
734
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
735
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
736
         then 
737
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
738
                  then 
739
                        
740
                        2
741
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
742
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
743
   
744
   
745

    
746
   
747
   
748
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
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 2
753
                  else chart_microwave_mode_logic_begin_state_outports_mode)
754
         else chart_microwave_mode_logic_begin_state_outports_mode);
755
   
756
   
757

    
758
   
759
   
760
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
761
      (
762
      
763
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
764
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
765
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
766

    
767
   
768
   
769
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
770
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
771
         then 
772
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
773
                  then 
774
                        
775
                        3
776
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
777
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
778
   
779
   
780

    
781
   
782
   
783
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
784
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
785
         then 
786
               
787
               4
788
         else chart_microwave_mode_logic_begin_state_states___root);
789
   
790
   
791

    
792
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
793

    
794

    
795
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
796

    
797

    
798
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
799

    
800
   KP_01 = KP_0;
801

    
802
   KP_11 = KP_1;
803

    
804
   KP_21 = KP_2;
805

    
806
   KP_31 = KP_3;
807

    
808
   KP_41 = KP_4;
809

    
810
   KP_51 = KP_5;
811

    
812
   KP_61 = KP_6;
813

    
814
   KP_71 = KP_7;
815

    
816
   KP_81 = KP_8;
817

    
818
   KP_91 = KP_9;
819

    
820
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
821
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
822
         then 
823
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
824
                  then 0
825
                  else 
826
               (if KP_CLEAR
827
                  then 0
828
                  else 
829
               (if 
830
                  (if (
831
                     (if (KP_01 and 
832
                        (not (pre KP_01)))
833
                        then 0
834
                        else 
835
                     (if (KP_11 and 
836
                        (not (pre KP_11)))
837
                        then 1
838
                        else 
839
                     (if (KP_21 and 
840
                        (not (pre KP_21)))
841
                        then 2
842
                        else 
843
                     (if (KP_31 and 
844
                        (not (pre KP_31)))
845
                        then 3
846
                        else 
847
                     (if (KP_41 and 
848
                        (not (pre KP_41)))
849
                        then 4
850
                        else 
851
                     (if (KP_51 and 
852
                        (not (pre KP_51)))
853
                        then 5
854
                        else 
855
                     (if (KP_61 and 
856
                        (not (pre KP_61)))
857
                        then 6
858
                        else 
859
                     (if (KP_71 and 
860
                        (not (pre KP_71)))
861
                        then 7
862
                        else 
863
                     (if (KP_81 and 
864
                        (not (pre KP_81)))
865
                        then 8
866
                        else 
867
                     (if (KP_91 and 
868
                        (not (pre KP_91)))
869
                        then 9
870
                        else 10)))))))))) <= 9)
871
                     then true
872
                     else false)
873
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
874
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
875
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
876

    
877
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
878
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
879
         then 
880
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
881
                  then 0
882
                  else 
883
               (if KP_CLEAR
884
                  then 0
885
                  else 
886
               (if 
887
                  (if (
888
                     (if (KP_01 and 
889
                        (not (pre KP_01)))
890
                        then 0
891
                        else 
892
                     (if (KP_11 and 
893
                        (not (pre KP_11)))
894
                        then 1
895
                        else 
896
                     (if (KP_21 and 
897
                        (not (pre KP_21)))
898
                        then 2
899
                        else 
900
                     (if (KP_31 and 
901
                        (not (pre KP_31)))
902
                        then 3
903
                        else 
904
                     (if (KP_41 and 
905
                        (not (pre KP_41)))
906
                        then 4
907
                        else 
908
                     (if (KP_51 and 
909
                        (not (pre KP_51)))
910
                        then 5
911
                        else 
912
                     (if (KP_61 and 
913
                        (not (pre KP_61)))
914
                        then 6
915
                        else 
916
                     (if (KP_71 and 
917
                        (not (pre KP_71)))
918
                        then 7
919
                        else 
920
                     (if (KP_81 and 
921
                        (not (pre KP_81)))
922
                        then 8
923
                        else 
924
                     (if (KP_91 and 
925
                        (not (pre KP_91)))
926
                        then 9
927
                        else 10)))))))))) <= 9)
928
                     then true
929
                     else false)
930
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
931
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
932
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
933

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

    
1169
   STEPS_TO_COOK = (
1170
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1171
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1172
         then 0
1173
         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)) -> 
1174
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1175
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1176
         then 0
1177
         else 
1178
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1179
         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)
1180
         else (pre STEPS_TO_COOK))));
1181

    
1182
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1183
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1184
         then true
1185
         else 
1186
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1187
         then false
1188
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1189

    
1190
   SETUP = 
1191
      (if (1 = microwave_microwave_mode_logic_mode)
1192
         then true
1193
         else false);
1194

    
1195
   p32 = (true -> ((not (enable and 
1196
      (not KP_CLEAR))) or 
1197
      ((not ((KP_5 and 
1198
      (not (pre KP_5))) and 
1199
      ((not (KP_4 and 
1200
      (not (pre KP_4)))) and 
1201
      ((not (KP_3 and 
1202
      (not (pre KP_3)))) and 
1203
      ((not (KP_2 and 
1204
      (not (pre KP_2)))) and 
1205
      ((not (KP_1 and 
1206
      (not (pre KP_1)))) and 
1207
      (not (KP_0 and 
1208
      (not (pre KP_0)))))))))) or 
1209
      (RIGHT_DIGIT = 5))));
1210

    
1211
   enable = (true -> 
1212
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1213
         then true
1214
         else false));
1215

    
1216

    
1217

    
1218

    
1219
   p34 = (true -> ((not (enable and 
1220
      (not KP_CLEAR))) or 
1221
      ((not ((KP_7 and 
1222
      (not (pre KP_7))) and 
1223
      ((not (KP_6 and 
1224
      (not (pre KP_6)))) and 
1225
      ((not (KP_5 and 
1226
      (not (pre KP_5)))) and 
1227
      ((not (KP_4 and 
1228
      (not (pre KP_4)))) and 
1229
      ((not (KP_3 and 
1230
      (not (pre KP_3)))) and 
1231
      ((not (KP_2 and 
1232
      (not (pre KP_2)))) and 
1233
      ((not (KP_1 and 
1234
      (not (pre KP_1)))) and 
1235
      (not (KP_0 and 
1236
      (not (pre KP_0)))))))))))) or 
1237
      (RIGHT_DIGIT = 7))));
1238

    
1239

    
1240
  --%PROPERTY OK=true;
1241
  --%MAIN;
1242

    
1243
tel
1244