Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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

    
136
   rlt__Arrow4 = (639 -> 
137
      (if (not SUSPENDED)
138
         then 
139
               (if (MWI_FcnMaxI_In12 > 0)
140
                  then MWI_FcnMaxI_In12
141
                  else 0)
142
         else 639));
143

    
144
   rlt__Arrow3 = (639 -> 
145
      (if (not (not COOKING))
146
         then 
147
               (if (MWI_FcnMaxI_In16 > 0)
148
                  then MWI_FcnMaxI_In16
149
                  else 0)
150
         else 639));
151

    
152
   rlt__Arrow2 = (639 -> 
153
      (if (not (not SUSPENDED))
154
         then 
155
               (if (MWI_FcnMaxI_In15 > 0)
156
                  then MWI_FcnMaxI_In15
157
                  else 0)
158
         else 639));
159

    
160
   rlt__Arrow1 = (639 -> 
161
      (if (not COOKING)
162
         then 
163
               (if (MWI_FcnMaxI_In11 > 0)
164
                  then MWI_FcnMaxI_In11
165
                  else 0)
166
         else 639));
167

    
168
   rlt__Arrow = (639 -> 
169
      (if (not SETUP)
170
         then 
171
               (if (MWI_FcnMaxI_In1 > 0)
172
                  then MWI_FcnMaxI_In1
173
                  else 0)
174
         else 639));
175

    
176
   p18 = (((not (enable and 
177
      (not KP_CLEAR))) or 
178
      ((not (((((((((KP_1 or 
179
      KP_2) or 
180
      KP_3) or 
181
      KP_4) or 
182
      KP_5) or 
183
      KP_6) or 
184
      KP_7) or 
185
      KP_8) or 
186
      KP_9) or 
187
      KP_0)) or 
188
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))) -> ((not (enable and 
189
      (not KP_CLEAR))) or 
190
      ((not ((((((((((KP_1 and 
191
      (not (pre KP_1))) or 
192
      (KP_2 and 
193
      (not (pre KP_2)))) or 
194
      (KP_3 and 
195
      (not (pre KP_3)))) or 
196
      (KP_4 and 
197
      (not (pre KP_4)))) or 
198
      (KP_5 and 
199
      (not (pre KP_5)))) or 
200
      (KP_6 and 
201
      (not (pre KP_6)))) or 
202
      (KP_7 and 
203
      (not (pre KP_7)))) or 
204
      (KP_8 and 
205
      (not (pre KP_8)))) or 
206
      (KP_9 and 
207
      (not (pre KP_9)))) or 
208
      (KP_0 and 
209
      (not (pre KP_0))))) or 
210
      (LEFT_DIGIT = ((STEPS_TO_COOK div 1) div 60)))));
211

    
212
   p23 = (true -> (((not (enable and 
213
      (not KP_CLEAR))) or 
214
      (not ((((((((((KP_1 and 
215
      (not (pre KP_1))) or 
216
      (KP_2 and 
217
      (not (pre KP_2)))) or 
218
      (KP_3 and 
219
      (not (pre KP_3)))) or 
220
      (KP_4 and 
221
      (not (pre KP_4)))) or 
222
      (KP_5 and 
223
      (not (pre KP_5)))) or 
224
      (KP_6 and 
225
      (not (pre KP_6)))) or 
226
      (KP_7 and 
227
      (not (pre KP_7)))) or 
228
      (KP_8 and 
229
      (not (pre KP_8)))) or 
230
      (KP_9 and 
231
      (not (pre KP_9)))) or 
232
      (KP_0 and 
233
      (not (pre KP_0)))))) or 
234
      (MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10))));
235

    
236
   p35 = (true -> ((not (enable and 
237
      (not KP_CLEAR))) or 
238
      ((not ((KP_8 and 
239
      (not (pre KP_8))) and 
240
      ((not (KP_7 and 
241
      (not (pre KP_7)))) and 
242
      ((not (KP_6 and 
243
      (not (pre KP_6)))) and 
244
      ((not (KP_5 and 
245
      (not (pre KP_5)))) and 
246
      ((not (KP_4 and 
247
      (not (pre KP_4)))) and 
248
      ((not (KP_3 and 
249
      (not (pre KP_3)))) and 
250
      ((not (KP_2 and 
251
      (not (pre KP_2)))) and 
252
      ((not (KP_1 and 
253
      (not (pre KP_1)))) and 
254
      (not (KP_0 and 
255
      (not (pre KP_0))))))))))))) or 
256
      (RIGHT_DIGIT = 8))));
257

    
258
   p33 = (true -> ((not (enable and 
259
      (not KP_CLEAR))) or 
260
      ((not ((KP_6 and 
261
      (not (pre KP_6))) and 
262
      ((not (KP_5 and 
263
      (not (pre KP_5)))) and 
264
      ((not (KP_4 and 
265
      (not (pre KP_4)))) and 
266
      ((not (KP_3 and 
267
      (not (pre KP_3)))) and 
268
      ((not (KP_2 and 
269
      (not (pre KP_2)))) and 
270
      ((not (KP_1 and 
271
      (not (pre KP_1)))) and 
272
      (not (KP_0 and 
273
      (not (pre KP_0))))))))))) or 
274
      (RIGHT_DIGIT = 6))));
275

    
276
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
277

    
278
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
279

    
280
   p25 = (enable or 
281
      (RIGHT_DIGIT = 0));
282

    
283
   p22 = (true -> (((not (enable and 
284
      (not KP_CLEAR))) or 
285
      (not ((((((((((KP_1 and 
286
      (not (pre KP_1))) or 
287
      (KP_2 and 
288
      (not (pre KP_2)))) or 
289
      (KP_3 and 
290
      (not (pre KP_3)))) or 
291
      (KP_4 and 
292
      (not (pre KP_4)))) or 
293
      (KP_5 and 
294
      (not (pre KP_5)))) or 
295
      (KP_6 and 
296
      (not (pre KP_6)))) or 
297
      (KP_7 and 
298
      (not (pre KP_7)))) or 
299
      (KP_8 and 
300
      (not (pre KP_8)))) or 
301
      (KP_9 and 
302
      (not (pre KP_9)))) or 
303
      (KP_0 and 
304
      (not (pre KP_0)))))) or 
305
      (MIDDLE_DIGIT = (pre RIGHT_DIGIT))));
306

    
307
   p36 = (true -> ((not (enable and 
308
      (not KP_CLEAR))) or 
309
      ((not ((KP_9 and 
310
      (not (pre KP_9))) and 
311
      ((not (KP_8 and 
312
      (not (pre KP_8)))) and 
313
      ((not (KP_7 and 
314
      (not (pre KP_7)))) and 
315
      ((not (KP_6 and 
316
      (not (pre KP_6)))) and 
317
      ((not (KP_5 and 
318
      (not (pre KP_5)))) and 
319
      ((not (KP_4 and 
320
      (not (pre KP_4)))) and 
321
      ((not (KP_3 and 
322
      (not (pre KP_3)))) and 
323
      ((not (KP_2 and 
324
      (not (pre KP_2)))) and 
325
      ((not (KP_1 and 
326
      (not (pre KP_1)))) and 
327
      (not (KP_0 and 
328
      (not (pre KP_0)))))))))))))) or 
329
      (RIGHT_DIGIT = 9))));
330

    
331
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
332

    
333
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
334
      (not (pre KP_CLEAR))));
335

    
336
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
337

    
338
   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));
339

    
340
   SUSPENDED = 
341
      (if (3 = microwave_microwave_mode_logic_mode)
342
         then true
343
         else false);
344

    
345
   p31 = (true -> ((not (enable and 
346
      (not KP_CLEAR))) or 
347
      ((not ((KP_4 and 
348
      (not (pre KP_4))) and 
349
      ((not (KP_3 and 
350
      (not (pre KP_3)))) and 
351
      ((not (KP_2 and 
352
      (not (pre KP_2)))) and 
353
      ((not (KP_1 and 
354
      (not (pre KP_1)))) and 
355
      (not (KP_0 and 
356
      (not (pre KP_0))))))))) or 
357
      (RIGHT_DIGIT = 4))));
358

    
359
   p37 = (true -> ((not (enable and 
360
      (not KP_CLEAR))) or 
361
      (((((((((((KP_1 and 
362
      (not (pre KP_1))) or 
363
      (KP_2 and 
364
      (not (pre KP_2)))) or 
365
      (KP_3 and 
366
      (not (pre KP_3)))) or 
367
      (KP_4 and 
368
      (not (pre KP_4)))) or 
369
      (KP_5 and 
370
      (not (pre KP_5)))) or 
371
      (KP_6 and 
372
      (not (pre KP_6)))) or 
373
      (KP_7 and 
374
      (not (pre KP_7)))) or 
375
      (KP_8 and 
376
      (not (pre KP_8)))) or 
377
      (KP_9 and 
378
      (not (pre KP_9)))) or 
379
      (KP_0 and 
380
      (not (pre KP_0)))) or 
381
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
382

    
383
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
384

    
385
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
386

    
387
   p24 = (true -> (((not (enable and 
388
      (not KP_CLEAR))) or 
389
      ((((((((((KP_1 and 
390
      (not (pre KP_1))) or 
391
      (KP_2 and 
392
      (not (pre KP_2)))) or 
393
      (KP_3 and 
394
      (not (pre KP_3)))) or 
395
      (KP_4 and 
396
      (not (pre KP_4)))) or 
397
      (KP_5 and 
398
      (not (pre KP_5)))) or 
399
      (KP_6 and 
400
      (not (pre KP_6)))) or 
401
      (KP_7 and 
402
      (not (pre KP_7)))) or 
403
      (KP_8 and 
404
      (not (pre KP_8)))) or 
405
      (KP_9 and 
406
      (not (pre KP_9)))) or 
407
      (KP_0 and 
408
      (not (pre KP_0))))) or 
409
      (MIDDLE_DIGIT = (pre MIDDLE_DIGIT))));
410

    
411
   p20 = (enable or 
412
      (MIDDLE_DIGIT = 0));
413

    
414
   p26 = ((not (enable and 
415
      KP_CLEAR)) or 
416
      (RIGHT_DIGIT = 0));
417

    
418
   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);
419

    
420
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
421

    
422

    
423
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
424

    
425

    
426
   p30 = (true -> ((not (enable and 
427
      (not KP_CLEAR))) or 
428
      ((not ((KP_3 and 
429
      (not (pre KP_3))) and 
430
      ((not (KP_2 and 
431
      (not (pre KP_2)))) and 
432
      ((not (KP_1 and 
433
      (not (pre KP_1)))) and 
434
      (not (KP_0 and 
435
      (not (pre KP_0)))))))) or 
436
      (RIGHT_DIGIT = 3))));
437

    
438
   COOKING = 
439
      (if (2 = microwave_microwave_mode_logic_mode)
440
         then true
441
         else false);
442

    
443
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
444

    
445
   START_PRESSED = (KP_START -> (KP_START and 
446
      (not (pre KP_START))));
447

    
448
   chart_microwave_mode_logic_start = 
449
      (if (START_PRESSED = false)
450
         then 0
451
         else 1);
452

    
453
   chart_microwave_mode_logic_clear_off = 
454
      (if (CLEAR_PRESSED = false)
455
         then 0
456
         else 1);
457

    
458
   chart_microwave_mode_logic_door_closed = 
459
      (if (DOOR_CLOSED = false)
460
         then 0
461
         else 1);
462

    
463
   chart_microwave_mode_logic____wakeup___ = true;
464

    
465
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
466
      (if (pre chart_microwave_mode_logic____wakeup___)
467
         then false
468
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
469

    
470
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
471

    
472
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
473

    
474
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
475

    
476
   chart_microwave_mode_logic_final_state_states___root = 
477
      (if chart_microwave_mode_logic____wakeup___
478
         then 
479
               (if chart_microwave_mode_logic_rlt_evtInitStep
480
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
481
                  else 
482
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
483
                  
484
                  
485
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
486
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
487
                  then 
488
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
489
                           then 
490
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
491
                                    then 
492
                                          
493
                                          3
494
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
495
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
496
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
497
         else chart_microwave_mode_logic_begin_state_states___root);
498

    
499
   chart_microwave_mode_logic_mode = 
500
      (if chart_microwave_mode_logic____wakeup___
501
         then 
502
               (if chart_microwave_mode_logic_rlt_evtInitStep
503
                  then 
504
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
505
                           then 1
506
                           else chart_microwave_mode_logic_begin_state_outports_mode)
507
                  else 
508
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
509
                  
510
                  
511
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
512
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
513
                  then 
514
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
515
                           then 
516
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
517
                                    then 3
518
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
519
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
520
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
521
         else chart_microwave_mode_logic_begin_state_outports_mode);
522

    
523
   chart_microwave_mode_logic_steps_remaining = 
524
      (if chart_microwave_mode_logic____wakeup___
525
         then 
526
               (if chart_microwave_mode_logic_rlt_evtInitStep
527
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
528
                  else 
529
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
530
                  
531
                  
532
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
533
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
534
                  then 
535
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
536
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
537
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
538
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
539
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
540

    
541
   
542
   
543
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
544

    
545
   
546
   
547
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
548
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
549
         then STEPS_TO_COOK
550
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
551

    
552
   
553
   
554
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
555
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
556
      (
557
      (if (chart_microwave_mode_logic_start <> 0)
558
         then true
559
         else false) and 
560
      
561
      (if (
562
         (if ((STEPS_TO_COOK > 0) = false)
563
            then 0
564
            else 1) <> 0)
565
         then true
566
         else false))));
567

    
568
   
569
   
570
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
571
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
572
         then 
573
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
574
                  then 
575
                        
576
                        0
577
                  else chart_microwave_mode_logic_begin_state_states___root)
578
         else chart_microwave_mode_logic_begin_state_states___root);
579

    
580
   
581
   
582
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
583
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
584
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
585
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
586
   
587
   
588

    
589
   
590
   
591
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
592
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
593
         then 
594
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
595
                  then 
596
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
597
                           then 3
598
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
599
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
600
         else chart_microwave_mode_logic_begin_state_outports_mode);
601
   
602
   
603

    
604
   
605
   
606
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
607
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
608
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
609

    
610
   
611
   
612
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
613
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
614
         then 
615
               (if 
616
                  
617
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
618
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
619
                  then 
620
                        
621
                        0
622
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
623
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
624

    
625
   
626
   
627
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
628
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
629
         then 
630
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
631
                  then 
632
                        
633
                        4
634
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
635
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
636
   
637
   
638

    
639
   
640
   
641
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
642
      ((
643
      (if (chart_microwave_mode_logic_start <> 0)
644
         then true
645
         else false) and 
646
      
647
      (if (chart_microwave_mode_logic_door_closed <> 0)
648
         then true
649
         else false)) and 
650
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
651

    
652
   
653
   
654
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
655
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
656

    
657
   
658
   
659
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
660
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
661
         then 
662
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
663
                  then 
664
                        
665
                        1
666
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
667
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
668

    
669
   
670
   
671
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
672
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
673
         then 
674
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
675
                  then 1
676
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
677
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
678

    
679
   
680
   
681
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
682
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
683
         then 
684
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
685
                  then 
686
                        
687
                        2
688
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
689
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
690
   
691
   
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
696
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
697
         then 
698
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
699
                  then 2
700
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
701
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
702
   
703
   
704

    
705
   
706
   
707
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
708
      (
709
      (if (chart_microwave_mode_logic_clear_off <> 0)
710
         then true
711
         else false) and 
712
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
713
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
714
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
715

    
716
   
717
   
718
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
719
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
720

    
721
   
722
   
723
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
724
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
725
         then 
726
               (if 
727
                  
728
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
729
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
730
                  then 
731
                        
732
                        0
733
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
734
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
735

    
736
   
737
   
738
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
739
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
740
         then 0
741
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
742

    
743
   
744
   
745
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
746
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
747
         then 
748
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
749
                  then 
750
                        
751
                        4
752
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
753
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
754
   
755
   
756

    
757
   
758
   
759
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
760
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
761
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
762

    
763
   
764
   
765
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
766
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
767
         then 
768
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
769
                  then 1
770
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
771
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
772

    
773
   
774
   
775
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
776
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
777
         then 
778
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
779
                  then 
780
                        
781
                        1
782
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
783
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
784

    
785
   
786
   
787
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
788
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
789
         then 
790
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
791
                  then 
792
                        
793
                        2
794
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
795
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
796
   
797
   
798

    
799
   
800
   
801
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
802
      ((
803
      (if (chart_microwave_mode_logic_clear_off <> 0)
804
         then true
805
         else false) or 
806
      (not 
807
      (if (chart_microwave_mode_logic_door_closed <> 0)
808
         then true
809
         else false))) and 
810
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
811
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
812

    
813
   
814
   
815
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
816
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
817
         then 
818
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
819
                  then 
820
                        
821
                        1
822
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
823
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
824

    
825
   
826
   
827
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
828
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
829
         then 
830
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
831
                  then 2
832
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
833
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
834

    
835
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
836
      (if (not 
837
         
838
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
839
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
840
         then 
841
               
842
               1
843
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
844

    
845
   
846
   
847
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
848
      
849
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
850
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
851
      
852
      
853
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
854
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
855

    
856
   
857
   
858
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
859
      (
860
      
861
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
862
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
863
      
864
      (if (chart_microwave_mode_logic_door_closed <> 0)
865
         then true
866
         else false)));
867

    
868
   
869
   
870
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
871
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
872
         then 
873
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
874
                  then 
875
                        
876
                        2
877
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
878
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
879
   
880
   
881

    
882
   
883
   
884
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
885
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
886
         then 
887
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
888
                  then 2
889
                  else chart_microwave_mode_logic_begin_state_outports_mode)
890
         else chart_microwave_mode_logic_begin_state_outports_mode);
891
   
892
   
893

    
894
   
895
   
896
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
897
      (
898
      
899
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
900
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
901
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
902

    
903
   
904
   
905
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
906
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
907
         then 
908
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
909
                  then 
910
                        
911
                        3
912
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
913
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
914
   
915
   
916

    
917
   
918
   
919
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
920
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
921
         then 
922
               
923
               4
924
         else chart_microwave_mode_logic_begin_state_states___root);
925
   
926
   
927

    
928
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
929

    
930
   OK = (((not (enable and 
931
      (not KP_CLEAR))) or 
932
      ((not (((((((((KP_1 or 
933
      KP_2) or 
934
      KP_3) or 
935
      KP_4) or 
936
      KP_5) or 
937
      KP_6) or 
938
      KP_7) or 
939
      KP_8) or 
940
      KP_9) or 
941
      KP_0)) or 
942
      (LEFT_DIGIT = 0))) -> ((not (enable and 
943
      (not KP_CLEAR))) or 
944
      ((not ((((((((((KP_1 and 
945
      (not (pre KP_1))) or 
946
      (KP_2 and 
947
      (not (pre KP_2)))) or 
948
      (KP_3 and 
949
      (not (pre KP_3)))) or 
950
      (KP_4 and 
951
      (not (pre KP_4)))) or 
952
      (KP_5 and 
953
      (not (pre KP_5)))) or 
954
      (KP_6 and 
955
      (not (pre KP_6)))) or 
956
      (KP_7 and 
957
      (not (pre KP_7)))) or 
958
      (KP_8 and 
959
      (not (pre KP_8)))) or 
960
      (KP_9 and 
961
      (not (pre KP_9)))) or 
962
      (KP_0 and 
963
      (not (pre KP_0))))) or 
964
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
965

    
966
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
967

    
968
   p27 = (((not (enable and 
969
      (not KP_CLEAR))) or 
970
      ((not KP_0) or 
971
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
972
      (not KP_CLEAR))) or 
973
      ((not (KP_0 and 
974
      (not (pre KP_0)))) or 
975
      (RIGHT_DIGIT = 0))));
976

    
977
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
978

    
979
   KP_01 = KP_0;
980

    
981
   KP_11 = KP_1;
982

    
983
   KP_21 = KP_2;
984

    
985
   KP_31 = KP_3;
986

    
987
   KP_41 = KP_4;
988

    
989
   KP_51 = KP_5;
990

    
991
   KP_61 = KP_6;
992

    
993
   KP_71 = KP_7;
994

    
995
   KP_81 = KP_8;
996

    
997
   KP_91 = KP_9;
998

    
999
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1000
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1001
         then 
1002
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1003
                  then 0
1004
                  else 
1005
               (if KP_CLEAR
1006
                  then 0
1007
                  else 
1008
               (if 
1009
                  (if (
1010
                     (if (KP_01 and 
1011
                        (not (pre KP_01)))
1012
                        then 0
1013
                        else 
1014
                     (if (KP_11 and 
1015
                        (not (pre KP_11)))
1016
                        then 1
1017
                        else 
1018
                     (if (KP_21 and 
1019
                        (not (pre KP_21)))
1020
                        then 2
1021
                        else 
1022
                     (if (KP_31 and 
1023
                        (not (pre KP_31)))
1024
                        then 3
1025
                        else 
1026
                     (if (KP_41 and 
1027
                        (not (pre KP_41)))
1028
                        then 4
1029
                        else 
1030
                     (if (KP_51 and 
1031
                        (not (pre KP_51)))
1032
                        then 5
1033
                        else 
1034
                     (if (KP_61 and 
1035
                        (not (pre KP_61)))
1036
                        then 6
1037
                        else 
1038
                     (if (KP_71 and 
1039
                        (not (pre KP_71)))
1040
                        then 7
1041
                        else 
1042
                     (if (KP_81 and 
1043
                        (not (pre KP_81)))
1044
                        then 8
1045
                        else 
1046
                     (if (KP_91 and 
1047
                        (not (pre KP_91)))
1048
                        then 9
1049
                        else 10)))))))))) <= 9)
1050
                     then true
1051
                     else false)
1052
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1053
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1054
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1055

    
1056
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1057
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1058
         then 
1059
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1060
                  then 0
1061
                  else 
1062
               (if KP_CLEAR
1063
                  then 0
1064
                  else 
1065
               (if 
1066
                  (if (
1067
                     (if (KP_01 and 
1068
                        (not (pre KP_01)))
1069
                        then 0
1070
                        else 
1071
                     (if (KP_11 and 
1072
                        (not (pre KP_11)))
1073
                        then 1
1074
                        else 
1075
                     (if (KP_21 and 
1076
                        (not (pre KP_21)))
1077
                        then 2
1078
                        else 
1079
                     (if (KP_31 and 
1080
                        (not (pre KP_31)))
1081
                        then 3
1082
                        else 
1083
                     (if (KP_41 and 
1084
                        (not (pre KP_41)))
1085
                        then 4
1086
                        else 
1087
                     (if (KP_51 and 
1088
                        (not (pre KP_51)))
1089
                        then 5
1090
                        else 
1091
                     (if (KP_61 and 
1092
                        (not (pre KP_61)))
1093
                        then 6
1094
                        else 
1095
                     (if (KP_71 and 
1096
                        (not (pre KP_71)))
1097
                        then 7
1098
                        else 
1099
                     (if (KP_81 and 
1100
                        (not (pre KP_81)))
1101
                        then 8
1102
                        else 
1103
                     (if (KP_91 and 
1104
                        (not (pre KP_91)))
1105
                        then 9
1106
                        else 10)))))))))) <= 9)
1107
                     then true
1108
                     else false)
1109
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1110
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1111
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1112

    
1113
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
1114
      (if KP_CLEAR
1115
         then 0
1116
         else 
1117
      (if 
1118
         (if (
1119
            (if KP_01
1120
               then 0
1121
               else 
1122
            (if KP_11
1123
               then 1
1124
               else 
1125
            (if KP_21
1126
               then 2
1127
               else 
1128
            (if KP_31
1129
               then 3
1130
               else 
1131
            (if KP_41
1132
               then 4
1133
               else 
1134
            (if KP_51
1135
               then 5
1136
               else 
1137
            (if KP_61
1138
               then 6
1139
               else 
1140
            (if KP_71
1141
               then 7
1142
               else 
1143
            (if KP_81
1144
               then 8
1145
               else 
1146
            (if KP_91
1147
               then 9
1148
               else 10)))))))))) <= 9)
1149
            then true
1150
            else false)
1151
         then 
1152
               (if KP_01
1153
                  then 0
1154
                  else 
1155
               (if KP_11
1156
                  then 1
1157
                  else 
1158
               (if KP_21
1159
                  then 2
1160
                  else 
1161
               (if KP_31
1162
                  then 3
1163
                  else 
1164
               (if KP_41
1165
                  then 4
1166
                  else 
1167
               (if KP_51
1168
                  then 5
1169
                  else 
1170
               (if KP_61
1171
                  then 6
1172
                  else 
1173
               (if KP_71
1174
                  then 7
1175
                  else 
1176
               (if KP_81
1177
                  then 8
1178
                  else 
1179
               (if KP_91
1180
                  then 9
1181
                  else 10))))))))))
1182
         else 0)) -> 
1183
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1184
         then 
1185
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1186
                  then 
1187
                        (if KP_CLEAR
1188
                           then 0
1189
                           else 
1190
                        (if 
1191
                           (if (
1192
                              (if KP_01
1193
                                 then 0
1194
                                 else 
1195
                              (if KP_11
1196
                                 then 1
1197
                                 else 
1198
                              (if KP_21
1199
                                 then 2
1200
                                 else 
1201
                              (if KP_31
1202
                                 then 3
1203
                                 else 
1204
                              (if KP_41
1205
                                 then 4
1206
                                 else 
1207
                              (if KP_51
1208
                                 then 5
1209
                                 else 
1210
                              (if KP_61
1211
                                 then 6
1212
                                 else 
1213
                              (if KP_71
1214
                                 then 7
1215
                                 else 
1216
                              (if KP_81
1217
                                 then 8
1218
                                 else 
1219
                              (if KP_91
1220
                                 then 9
1221
                                 else 10)))))))))) <= 9)
1222
                              then true
1223
                              else false)
1224
                           then 
1225
                                 (if KP_01
1226
                                    then 0
1227
                                    else 
1228
                                 (if KP_11
1229
                                    then 1
1230
                                    else 
1231
                                 (if KP_21
1232
                                    then 2
1233
                                    else 
1234
                                 (if KP_31
1235
                                    then 3
1236
                                    else 
1237
                                 (if KP_41
1238
                                    then 4
1239
                                    else 
1240
                                 (if KP_51
1241
                                    then 5
1242
                                    else 
1243
                                 (if KP_61
1244
                                    then 6
1245
                                    else 
1246
                                 (if KP_71
1247
                                    then 7
1248
                                    else 
1249
                                 (if KP_81
1250
                                    then 8
1251
                                    else 
1252
                                 (if KP_91
1253
                                    then 9
1254
                                    else 10))))))))))
1255
                           else 0))
1256
                  else 
1257
               (if KP_CLEAR
1258
                  then 0
1259
                  else 
1260
               (if 
1261
                  (if (
1262
                     (if (KP_01 and 
1263
                        (not (pre KP_01)))
1264
                        then 0
1265
                        else 
1266
                     (if (KP_11 and 
1267
                        (not (pre KP_11)))
1268
                        then 1
1269
                        else 
1270
                     (if (KP_21 and 
1271
                        (not (pre KP_21)))
1272
                        then 2
1273
                        else 
1274
                     (if (KP_31 and 
1275
                        (not (pre KP_31)))
1276
                        then 3
1277
                        else 
1278
                     (if (KP_41 and 
1279
                        (not (pre KP_41)))
1280
                        then 4
1281
                        else 
1282
                     (if (KP_51 and 
1283
                        (not (pre KP_51)))
1284
                        then 5
1285
                        else 
1286
                     (if (KP_61 and 
1287
                        (not (pre KP_61)))
1288
                        then 6
1289
                        else 
1290
                     (if (KP_71 and 
1291
                        (not (pre KP_71)))
1292
                        then 7
1293
                        else 
1294
                     (if (KP_81 and 
1295
                        (not (pre KP_81)))
1296
                        then 8
1297
                        else 
1298
                     (if (KP_91 and 
1299
                        (not (pre KP_91)))
1300
                        then 9
1301
                        else 10)))))))))) <= 9)
1302
                     then true
1303
                     else false)
1304
                  then 
1305
                        (if (KP_01 and 
1306
                           (not (pre KP_01)))
1307
                           then 0
1308
                           else 
1309
                        (if (KP_11 and 
1310
                           (not (pre KP_11)))
1311
                           then 1
1312
                           else 
1313
                        (if (KP_21 and 
1314
                           (not (pre KP_21)))
1315
                           then 2
1316
                           else 
1317
                        (if (KP_31 and 
1318
                           (not (pre KP_31)))
1319
                           then 3
1320
                           else 
1321
                        (if (KP_41 and 
1322
                           (not (pre KP_41)))
1323
                           then 4
1324
                           else 
1325
                        (if (KP_51 and 
1326
                           (not (pre KP_51)))
1327
                           then 5
1328
                           else 
1329
                        (if (KP_61 and 
1330
                           (not (pre KP_61)))
1331
                           then 6
1332
                           else 
1333
                        (if (KP_71 and 
1334
                           (not (pre KP_71)))
1335
                           then 7
1336
                           else 
1337
                        (if (KP_81 and 
1338
                           (not (pre KP_81)))
1339
                           then 8
1340
                           else 
1341
                        (if (KP_91 and 
1342
                           (not (pre KP_91)))
1343
                           then 9
1344
                           else 10))))))))))
1345
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1346
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1347

    
1348
   STEPS_TO_COOK = (
1349
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1350
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1351
         then 0
1352
         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)) -> 
1353
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1354
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1355
         then 0
1356
         else 
1357
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1358
         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)
1359
         else (pre STEPS_TO_COOK))));
1360

    
1361
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1362
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1363
         then true
1364
         else 
1365
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1366
         then false
1367
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1368

    
1369
   SETUP = 
1370
      (if (1 = microwave_microwave_mode_logic_mode)
1371
         then true
1372
         else false);
1373

    
1374
   p32 = (true -> ((not (enable and 
1375
      (not KP_CLEAR))) or 
1376
      ((not ((KP_5 and 
1377
      (not (pre KP_5))) and 
1378
      ((not (KP_4 and 
1379
      (not (pre KP_4)))) and 
1380
      ((not (KP_3 and 
1381
      (not (pre KP_3)))) and 
1382
      ((not (KP_2 and 
1383
      (not (pre KP_2)))) and 
1384
      ((not (KP_1 and 
1385
      (not (pre KP_1)))) and 
1386
      (not (KP_0 and 
1387
      (not (pre KP_0)))))))))) or 
1388
      (RIGHT_DIGIT = 5))));
1389

    
1390
   enable = (true -> 
1391
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1392
         then true
1393
         else false));
1394

    
1395
   p28 = (true -> ((not (enable and 
1396
      (not KP_CLEAR))) or 
1397
      ((not ((KP_1 and 
1398
      (not (pre KP_1))) and 
1399
      (not (KP_0 and 
1400
      (not (pre KP_0)))))) or 
1401
      (RIGHT_DIGIT = 1))));
1402

    
1403
   p19 = (true -> ((not (enable and 
1404
      (not KP_CLEAR))) or 
1405
      (((((((((((KP_1 and 
1406
      (not (pre KP_1))) or 
1407
      (KP_2 and 
1408
      (not (pre KP_2)))) or 
1409
      (KP_3 and 
1410
      (not (pre KP_3)))) or 
1411
      (KP_4 and 
1412
      (not (pre KP_4)))) or 
1413
      (KP_5 and 
1414
      (not (pre KP_5)))) or 
1415
      (KP_6 and 
1416
      (not (pre KP_6)))) or 
1417
      (KP_7 and 
1418
      (not (pre KP_7)))) or 
1419
      (KP_8 and 
1420
      (not (pre KP_8)))) or 
1421
      (KP_9 and 
1422
      (not (pre KP_9)))) or 
1423
      (KP_0 and 
1424
      (not (pre KP_0)))) or 
1425
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1426

    
1427
   p29 = (true -> ((not (enable and 
1428
      (not KP_CLEAR))) or 
1429
      ((not ((KP_2 and 
1430
      (not (pre KP_2))) and 
1431
      ((not (KP_1 and 
1432
      (not (pre KP_1)))) and 
1433
      (not (KP_0 and 
1434
      (not (pre KP_0))))))) or 
1435
      (RIGHT_DIGIT = 2))));
1436

    
1437
   p34 = (true -> ((not (enable and 
1438
      (not KP_CLEAR))) or 
1439
      ((not ((KP_7 and 
1440
      (not (pre KP_7))) and 
1441
      ((not (KP_6 and 
1442
      (not (pre KP_6)))) and 
1443
      ((not (KP_5 and 
1444
      (not (pre KP_5)))) and 
1445
      ((not (KP_4 and 
1446
      (not (pre KP_4)))) and 
1447
      ((not (KP_3 and 
1448
      (not (pre KP_3)))) and 
1449
      ((not (KP_2 and 
1450
      (not (pre KP_2)))) and 
1451
      ((not (KP_1 and 
1452
      (not (pre KP_1)))) and 
1453
      (not (KP_0 and 
1454
      (not (pre KP_0)))))))))))) or 
1455
      (RIGHT_DIGIT = 7))));
1456

    
1457
   p21 = ((not (enable and 
1458
      KP_CLEAR)) or 
1459
      (MIDDLE_DIGIT = 0));
1460

    
1461
  --%PROPERTY OK=true;
1462
  --%MAIN;
1463

    
1464
tel
1465