Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / TIMEOUT / microwave28.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
   p26: bool; 
108
   p27: bool; 
109
   p28: bool; 
110
   p29: bool; 
111
   p30: bool; 
112
   p31: bool; 
113
   p32: bool; 
114
   p33: bool; 
115
   p34: bool; 
116
   p35: bool; 
117
   p36: bool; 
118
   p37: bool; 
119
let 
120
   rlt__Arrow5 = (639 -> 
121
      (if (not (not SETUP))
122
         then 
123
               (if (MWI_FcnMaxI_In13 > 0)
124
                  then MWI_FcnMaxI_In13
125
                  else 0)
126
         else 639));
127

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

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

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

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

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

    
168

    
169

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

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

    
210
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
211

    
212
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
213

    
214
   OK = (enable or 
215
      (RIGHT_DIGIT = 0));
216

    
217

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

    
242
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
243

    
244
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
245
      (not (pre KP_CLEAR))));
246

    
247
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
248

    
249
   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));
250

    
251
   SUSPENDED = 
252
      (if (3 = microwave_microwave_mode_logic_mode)
253
         then true
254
         else false);
255

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

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

    
294
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
295

    
296
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
297

    
298

    
299

    
300
   p26 = ((not (enable and 
301
      KP_CLEAR)) or 
302
      (RIGHT_DIGIT = 0));
303

    
304
   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);
305

    
306
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
307

    
308

    
309
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
310

    
311

    
312
   p30 = (true -> ((not (enable and 
313
      (not KP_CLEAR))) or 
314
      ((not ((KP_3 and 
315
      (not (pre KP_3))) and 
316
      ((not (KP_2 and 
317
      (not (pre KP_2)))) and 
318
      ((not (KP_1 and 
319
      (not (pre KP_1)))) and 
320
      (not (KP_0 and 
321
      (not (pre KP_0)))))))) or 
322
      (RIGHT_DIGIT = 3))));
323

    
324
   COOKING = 
325
      (if (2 = microwave_microwave_mode_logic_mode)
326
         then true
327
         else false);
328

    
329
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
330

    
331
   START_PRESSED = (KP_START -> (KP_START and 
332
      (not (pre KP_START))));
333

    
334
   chart_microwave_mode_logic_start = 
335
      (if (START_PRESSED = false)
336
         then 0
337
         else 1);
338

    
339
   chart_microwave_mode_logic_clear_off = 
340
      (if (CLEAR_PRESSED = false)
341
         then 0
342
         else 1);
343

    
344
   chart_microwave_mode_logic_door_closed = 
345
      (if (DOOR_CLOSED = false)
346
         then 0
347
         else 1);
348

    
349
   chart_microwave_mode_logic____wakeup___ = true;
350

    
351
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
352
      (if (pre chart_microwave_mode_logic____wakeup___)
353
         then false
354
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
355

    
356
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
357

    
358
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
359

    
360
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
361

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

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

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

    
427
   
428
   
429
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
430

    
431
   
432
   
433
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
434
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
435
         then STEPS_TO_COOK
436
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
437

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

    
454
   
455
   
456
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
457
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
458
         then 
459
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
460
                  then 
461
                        
462
                        0
463
                  else chart_microwave_mode_logic_begin_state_states___root)
464
         else chart_microwave_mode_logic_begin_state_states___root);
465

    
466
   
467
   
468
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
469
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
470
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
471
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
472
   
473
   
474

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

    
490
   
491
   
492
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
493
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
494
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
495

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

    
511
   
512
   
513
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
514
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
515
         then 
516
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
517
                  then 
518
                        
519
                        4
520
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
521
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
522
   
523
   
524

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

    
538
   
539
   
540
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
541
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
542

    
543
   
544
   
545
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
546
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
547
         then 
548
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
549
                  then 
550
                        
551
                        1
552
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
553
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
554

    
555
   
556
   
557
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
558
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
559
         then 
560
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
561
                  then 1
562
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
563
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
564

    
565
   
566
   
567
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
568
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
569
         then 
570
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
571
                  then 
572
                        
573
                        2
574
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
575
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
576
   
577
   
578

    
579
   
580
   
581
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
582
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
583
         then 
584
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
585
                  then 2
586
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
587
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
588
   
589
   
590

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

    
602
   
603
   
604
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
605
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
606

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

    
622
   
623
   
624
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
625
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
626
         then 0
627
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
628

    
629
   
630
   
631
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
632
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
633
         then 
634
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
635
                  then 
636
                        
637
                        4
638
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
639
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
640
   
641
   
642

    
643
   
644
   
645
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
646
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
647
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
648

    
649
   
650
   
651
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
652
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
653
         then 
654
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
655
                  then 1
656
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
657
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
658

    
659
   
660
   
661
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
662
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
663
         then 
664
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
665
                  then 
666
                        
667
                        1
668
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
669
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
670

    
671
   
672
   
673
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
674
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
675
         then 
676
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
677
                  then 
678
                        
679
                        2
680
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
681
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
682
   
683
   
684

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

    
699
   
700
   
701
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
702
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
703
         then 
704
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
705
                  then 
706
                        
707
                        1
708
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
709
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
710

    
711
   
712
   
713
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
714
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
715
         then 
716
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
717
                  then 2
718
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
719
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
720

    
721
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
722
      (if (not 
723
         
724
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
725
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
726
         then 
727
               
728
               1
729
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
730

    
731
   
732
   
733
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
734
      
735
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
736
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
737
      
738
      
739
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
740
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
741

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

    
754
   
755
   
756
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
757
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
758
         then 
759
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
760
                  then 
761
                        
762
                        2
763
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
764
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
765
   
766
   
767

    
768
   
769
   
770
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
771
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
772
         then 
773
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
774
                  then 2
775
                  else chart_microwave_mode_logic_begin_state_outports_mode)
776
         else chart_microwave_mode_logic_begin_state_outports_mode);
777
   
778
   
779

    
780
   
781
   
782
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
783
      (
784
      
785
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
786
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
787
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
788

    
789
   
790
   
791
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
792
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
793
         then 
794
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
795
                  then 
796
                        
797
                        3
798
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
799
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
800
   
801
   
802

    
803
   
804
   
805
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
806
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
807
         then 
808
               
809
               4
810
         else chart_microwave_mode_logic_begin_state_states___root);
811
   
812
   
813

    
814
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
815

    
816

    
817
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
818

    
819
   p27 = (((not (enable and 
820
      (not KP_CLEAR))) or 
821
      ((not KP_0) or 
822
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
823
      (not KP_CLEAR))) or 
824
      ((not (KP_0 and 
825
      (not (pre KP_0)))) or 
826
      (RIGHT_DIGIT = 0))));
827

    
828
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
829

    
830
   KP_01 = KP_0;
831

    
832
   KP_11 = KP_1;
833

    
834
   KP_21 = KP_2;
835

    
836
   KP_31 = KP_3;
837

    
838
   KP_41 = KP_4;
839

    
840
   KP_51 = KP_5;
841

    
842
   KP_61 = KP_6;
843

    
844
   KP_71 = KP_7;
845

    
846
   KP_81 = KP_8;
847

    
848
   KP_91 = KP_9;
849

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

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

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

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

    
1212
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1213
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1214
         then true
1215
         else 
1216
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1217
         then false
1218
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1219

    
1220
   SETUP = 
1221
      (if (1 = microwave_microwave_mode_logic_mode)
1222
         then true
1223
         else false);
1224

    
1225
   p32 = (true -> ((not (enable and 
1226
      (not KP_CLEAR))) or 
1227
      ((not ((KP_5 and 
1228
      (not (pre KP_5))) and 
1229
      ((not (KP_4 and 
1230
      (not (pre KP_4)))) and 
1231
      ((not (KP_3 and 
1232
      (not (pre KP_3)))) and 
1233
      ((not (KP_2 and 
1234
      (not (pre KP_2)))) and 
1235
      ((not (KP_1 and 
1236
      (not (pre KP_1)))) and 
1237
      (not (KP_0 and 
1238
      (not (pre KP_0)))))))))) or 
1239
      (RIGHT_DIGIT = 5))));
1240

    
1241
   enable = (true -> 
1242
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1243
         then true
1244
         else false));
1245

    
1246
   p28 = (true -> ((not (enable and 
1247
      (not KP_CLEAR))) or 
1248
      ((not ((KP_1 and 
1249
      (not (pre KP_1))) and 
1250
      (not (KP_0 and 
1251
      (not (pre KP_0)))))) or 
1252
      (RIGHT_DIGIT = 1))));
1253

    
1254

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

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

    
1285

    
1286
  --%PROPERTY OK=true;
1287
  --%MAIN;
1288

    
1289
tel
1290