Project

General

Profile

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

    
140
   rlt__Arrow4 = (639 -> 
141
      (if (not SUSPENDED)
142
         then 
143
               (if (MWI_FcnMaxI_In12 > 0)
144
                  then MWI_FcnMaxI_In12
145
                  else 0)
146
         else 639));
147

    
148
   rlt__Arrow3 = (639 -> 
149
      (if (not (not COOKING))
150
         then 
151
               (if (MWI_FcnMaxI_In16 > 0)
152
                  then MWI_FcnMaxI_In16
153
                  else 0)
154
         else 639));
155

    
156
   rlt__Arrow2 = (639 -> 
157
      (if (not (not SUSPENDED))
158
         then 
159
               (if (MWI_FcnMaxI_In15 > 0)
160
                  then MWI_FcnMaxI_In15
161
                  else 0)
162
         else 639));
163

    
164
   rlt__Arrow1 = (639 -> 
165
      (if (not COOKING)
166
         then 
167
               (if (MWI_FcnMaxI_In11 > 0)
168
                  then MWI_FcnMaxI_In11
169
                  else 0)
170
         else 639));
171

    
172
   rlt__Arrow = (639 -> 
173
      (if (not SETUP)
174
         then 
175
               (if (MWI_FcnMaxI_In1 > 0)
176
                  then MWI_FcnMaxI_In1
177
                  else 0)
178
         else 639));
179

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

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

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

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

    
280
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
281

    
282
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
283

    
284
   p25 = (enable or 
285
      (RIGHT_DIGIT = 0));
286

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

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

    
335
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
336

    
337
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
338
      (not (pre KP_CLEAR))));
339

    
340
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60);
341

    
342
   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));
343

    
344
   SUSPENDED = 
345
      (if (3 = microwave_microwave_mode_logic_mode)
346
         then true
347
         else false);
348

    
349
   p31 = (true -> ((not (enable and 
350
      (not KP_CLEAR))) or 
351
      ((not ((KP_4 and 
352
      (not (pre KP_4))) and 
353
      ((not (KP_3 and 
354
      (not (pre KP_3)))) and 
355
      ((not (KP_2 and 
356
      (not (pre KP_2)))) and 
357
      ((not (KP_1 and 
358
      (not (pre KP_1)))) and 
359
      (not (KP_0 and 
360
      (not (pre KP_0))))))))) or 
361
      (RIGHT_DIGIT = 4))));
362

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

    
387
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
388

    
389
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
390

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

    
415
   p20 = (enable or 
416
      (MIDDLE_DIGIT = 0));
417

    
418
   p26 = ((not (enable and 
419
      KP_CLEAR)) or 
420
      (RIGHT_DIGIT = 0));
421

    
422
   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);
423

    
424
   p14 = (true -> ((not (enable and 
425
      (not KP_CLEAR))) or 
426
      (STEPS_TO_COOK = (((RIGHT_DIGIT + (MIDDLE_DIGIT * 10)) + (LEFT_DIGIT * 60)) * 1))));
427

    
428
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
429

    
430

    
431
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
432

    
433
   p16 = ((not (enable and 
434
      KP_CLEAR)) or 
435
      (LEFT_DIGIT = 0));
436

    
437
   p30 = (true -> ((not (enable and 
438
      (not KP_CLEAR))) or 
439
      ((not ((KP_3 and 
440
      (not (pre KP_3))) and 
441
      ((not (KP_2 and 
442
      (not (pre KP_2)))) and 
443
      ((not (KP_1 and 
444
      (not (pre KP_1)))) and 
445
      (not (KP_0 and 
446
      (not (pre KP_0)))))))) or 
447
      (RIGHT_DIGIT = 3))));
448

    
449
   COOKING = 
450
      (if (2 = microwave_microwave_mode_logic_mode)
451
         then true
452
         else false);
453

    
454
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
455

    
456
   p15 = (enable or 
457
      (LEFT_DIGIT = 0));
458

    
459
   START_PRESSED = (KP_START -> (KP_START and 
460
      (not (pre KP_START))));
461

    
462
   chart_microwave_mode_logic_start = 
463
      (if (START_PRESSED = false)
464
         then 0
465
         else 1);
466

    
467
   chart_microwave_mode_logic_clear_off = 
468
      (if (CLEAR_PRESSED = false)
469
         then 0
470
         else 1);
471

    
472
   chart_microwave_mode_logic_door_closed = 
473
      (if (DOOR_CLOSED = false)
474
         then 0
475
         else 1);
476

    
477
   chart_microwave_mode_logic____wakeup___ = true;
478

    
479
   chart_microwave_mode_logic_rlt_evtInitStep = (true -> 
480
      (if (pre chart_microwave_mode_logic____wakeup___)
481
         then false
482
         else (pre chart_microwave_mode_logic_rlt_evtInitStep)));
483

    
484
   chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root));
485

    
486
   chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode));
487

    
488
   chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining));
489

    
490
   chart_microwave_mode_logic_final_state_states___root = 
491
      (if chart_microwave_mode_logic____wakeup___
492
         then 
493
               (if chart_microwave_mode_logic_rlt_evtInitStep
494
                  then rlt_enter_microwave_mode_logic_rlt_state_2_states___root
495
                  else 
496
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
497
                  
498
                  
499
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
500
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
501
                  then 
502
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
503
                           then 
504
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
505
                                    then 
506
                                          
507
                                          3
508
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
509
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root)
510
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root))
511
         else chart_microwave_mode_logic_begin_state_states___root);
512

    
513
   chart_microwave_mode_logic_mode = 
514
      (if chart_microwave_mode_logic____wakeup___
515
         then 
516
               (if chart_microwave_mode_logic_rlt_evtInitStep
517
                  then 
518
                        (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
519
                           then 1
520
                           else chart_microwave_mode_logic_begin_state_outports_mode)
521
                  else 
522
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
523
                  
524
                  
525
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
526
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
527
                  then 
528
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
529
                           then 
530
                                 (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3))
531
                                    then 3
532
                                    else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
533
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode)
534
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode))
535
         else chart_microwave_mode_logic_begin_state_outports_mode);
536

    
537
   chart_microwave_mode_logic_steps_remaining = 
538
      (if chart_microwave_mode_logic____wakeup___
539
         then 
540
               (if chart_microwave_mode_logic_rlt_evtInitStep
541
                  then chart_microwave_mode_logic_begin_state_outports_steps_remaining
542
                  else 
543
               (if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and 
544
                  
545
                  
546
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
547
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)))
548
                  then 
549
                        (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
550
                           then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1)
551
                           else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining)
552
                  else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining))
553
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
554

    
555
   
556
   
557
   rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4);
558

    
559
   
560
   
561
   rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = 
562
      (if rlt_eval_microwave_mode_logic_rlt_fired_0
563
         then STEPS_TO_COOK
564
         else chart_microwave_mode_logic_begin_state_outports_steps_remaining);
565

    
566
   
567
   
568
   rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and 
569
      ((chart_microwave_mode_logic_begin_state_states___root = 4) and 
570
      (
571
      (if (chart_microwave_mode_logic_start <> 0)
572
         then true
573
         else false) and 
574
      
575
      (if (
576
         (if ((STEPS_TO_COOK > 0) = false)
577
            then 0
578
            else 1) <> 0)
579
         then true
580
         else false))));
581

    
582
   
583
   
584
   rlt_eval_microwave_mode_logic_rlt_state_2_states___root = 
585
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
586
         then 
587
               (if (chart_microwave_mode_logic_begin_state_states___root = 4)
588
                  then 
589
                        
590
                        0
591
                  else chart_microwave_mode_logic_begin_state_states___root)
592
         else chart_microwave_mode_logic_begin_state_states___root);
593

    
594
   
595
   
596
   rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 
597
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
598
         then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root
599
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
600
   
601
   
602

    
603
   
604
   
605
   rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = 
606
      (if rlt_eval_microwave_mode_logic_rlt_fired_1
607
         then 
608
               (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
609
                  then 
610
                        (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
611
                           then 3
612
                           else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
613
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode)
614
         else chart_microwave_mode_logic_begin_state_outports_mode);
615
   
616
   
617

    
618
   
619
   
620
   rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and 
621
      (rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and 
622
      (rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2));
623

    
624
   
625
   
626
   rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 
627
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
628
         then 
629
               (if 
630
                  
631
                  ((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and 
632
                  (rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))
633
                  then 
634
                        
635
                        0
636
                  else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)
637
         else rlt_eval_microwave_mode_logic_rlt_state_3_states___root);
638

    
639
   
640
   
641
   rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 
642
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
643
         then 
644
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
645
                  then 
646
                        
647
                        4
648
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root)
649
         else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root);
650
   
651
   
652

    
653
   
654
   
655
   rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and 
656
      ((
657
      (if (chart_microwave_mode_logic_start <> 0)
658
         then true
659
         else false) and 
660
      
661
      (if (chart_microwave_mode_logic_door_closed <> 0)
662
         then true
663
         else false)) and 
664
      (not rlt_eval_microwave_mode_logic_ON_rlt_fired_1)));
665

    
666
   
667
   
668
   rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or 
669
      rlt_eval_microwave_mode_logic_ON_rlt_fired_1);
670

    
671
   
672
   
673
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 
674
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
675
         then 
676
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3)
677
                  then 
678
                        
679
                        1
680
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root)
681
         else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root);
682

    
683
   
684
   
685
   rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = 
686
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_1
687
         then 
688
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4))
689
                  then 1
690
                  else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)
691
         else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode);
692

    
693
   
694
   
695
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 
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 
700
                        
701
                        2
702
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root)
703
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root);
704
   
705
   
706

    
707
   
708
   
709
   rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = 
710
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_2
711
         then 
712
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2))
713
                  then 2
714
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode)
715
         else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode);
716
   
717
   
718

    
719
   
720
   
721
   rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
722
      (
723
      (if (chart_microwave_mode_logic_clear_off <> 0)
724
         then true
725
         else false) and 
726
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and 
727
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and 
728
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_1)));
729

    
730
   
731
   
732
   rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or 
733
      rlt_eval_microwave_mode_logic_ON_rlt_complete_1);
734

    
735
   
736
   
737
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 
738
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
739
         then 
740
               (if 
741
                  
742
                  ((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and 
743
                  (rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3))
744
                  then 
745
                        
746
                        0
747
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root)
748
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root);
749

    
750
   
751
   
752
   rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = 
753
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
754
         then 0
755
         else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining);
756

    
757
   
758
   
759
   rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 
760
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
761
         then 
762
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
763
                  then 
764
                        
765
                        4
766
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root)
767
         else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root);
768
   
769
   
770

    
771
   
772
   
773
   rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and 
774
      ((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
775
      (not rlt_eval_microwave_mode_logic_ON_rlt_complete_2)));
776

    
777
   
778
   
779
   rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = 
780
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_4
781
         then 
782
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4))
783
                  then 1
784
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode)
785
         else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode);
786

    
787
   
788
   
789
   rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 
790
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
791
         then 
792
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2)
793
                  then 
794
                        
795
                        1
796
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root)
797
         else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root);
798

    
799
   
800
   
801
   rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 
802
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
803
         then 
804
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
805
                  then 
806
                        
807
                        2
808
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root)
809
         else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root);
810
   
811
   
812

    
813
   
814
   
815
   rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and 
816
      ((
817
      (if (chart_microwave_mode_logic_clear_off <> 0)
818
         then true
819
         else false) or 
820
      (not 
821
      (if (chart_microwave_mode_logic_door_closed <> 0)
822
         then true
823
         else false))) and 
824
      (not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or 
825
      rlt_eval_microwave_mode_logic_ON_rlt_complete_2))));
826

    
827
   
828
   
829
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 
830
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_6
831
         then 
832
               (if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2)
833
                  then 
834
                        
835
                        1
836
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root)
837
         else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root);
838

    
839
   
840
   
841
   rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = 
842
      (if rlt_eval_microwave_mode_logic_ON_rlt_fired_5
843
         then 
844
               (if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2))
845
                  then 2
846
                  else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode)
847
         else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode);
848

    
849
   rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 
850
      (if (not 
851
         
852
         ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
853
         (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3)))
854
         then 
855
               
856
               1
857
         else rlt_eval_microwave_mode_logic_rlt_state_2_states___root);
858

    
859
   
860
   
861
   rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not 
862
      
863
      ((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and 
864
      (rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and 
865
      
866
      
867
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
868
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)));
869

    
870
   
871
   
872
   rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
873
      (
874
      
875
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and 
876
      (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and 
877
      
878
      (if (chart_microwave_mode_logic_door_closed <> 0)
879
         then true
880
         else false)));
881

    
882
   
883
   
884
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 
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 
889
                        
890
                        2
891
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root)
892
         else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root);
893
   
894
   
895

    
896
   
897
   
898
   rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = 
899
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_1
900
         then 
901
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2))
902
                  then 2
903
                  else chart_microwave_mode_logic_begin_state_outports_mode)
904
         else chart_microwave_mode_logic_begin_state_outports_mode);
905
   
906
   
907

    
908
   
909
   
910
   rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and 
911
      (
912
      
913
      ((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and 
914
      (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and 
915
      (not rlt_enter_microwave_mode_logic_ON_rlt_fired_1)));
916

    
917
   
918
   
919
   rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = 
920
      (if rlt_enter_microwave_mode_logic_ON_rlt_fired_2
921
         then 
922
               (if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3))
923
                  then 
924
                        
925
                        3
926
                  else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root)
927
         else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root);
928
   
929
   
930

    
931
   
932
   
933
   rlt_enter_microwave_mode_logic_rlt_state_2_states___root = 
934
      (if (not (chart_microwave_mode_logic_begin_state_states___root = 4))
935
         then 
936
               
937
               4
938
         else chart_microwave_mode_logic_begin_state_states___root);
939
   
940
   
941

    
942
   microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode;
943

    
944
   p17 = (((not (enable and 
945
      (not KP_CLEAR))) or 
946
      ((not (((((((((KP_1 or 
947
      KP_2) or 
948
      KP_3) or 
949
      KP_4) or 
950
      KP_5) or 
951
      KP_6) or 
952
      KP_7) or 
953
      KP_8) or 
954
      KP_9) or 
955
      KP_0)) or 
956
      (LEFT_DIGIT = 0))) -> ((not (enable and 
957
      (not KP_CLEAR))) or 
958
      ((not ((((((((((KP_1 and 
959
      (not (pre KP_1))) or 
960
      (KP_2 and 
961
      (not (pre KP_2)))) or 
962
      (KP_3 and 
963
      (not (pre KP_3)))) or 
964
      (KP_4 and 
965
      (not (pre KP_4)))) or 
966
      (KP_5 and 
967
      (not (pre KP_5)))) or 
968
      (KP_6 and 
969
      (not (pre KP_6)))) or 
970
      (KP_7 and 
971
      (not (pre KP_7)))) or 
972
      (KP_8 and 
973
      (not (pre KP_8)))) or 
974
      (KP_9 and 
975
      (not (pre KP_9)))) or 
976
      (KP_0 and 
977
      (not (pre KP_0))))) or 
978
      (LEFT_DIGIT = (pre MIDDLE_DIGIT)))));
979

    
980
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
981

    
982
   p27 = (((not (enable and 
983
      (not KP_CLEAR))) or 
984
      ((not KP_0) or 
985
      (RIGHT_DIGIT = 0))) -> ((not (enable and 
986
      (not KP_CLEAR))) or 
987
      ((not (KP_0 and 
988
      (not (pre KP_0)))) or 
989
      (RIGHT_DIGIT = 0))));
990

    
991
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
992

    
993
   KP_01 = KP_0;
994

    
995
   KP_11 = KP_1;
996

    
997
   KP_21 = KP_2;
998

    
999
   KP_31 = KP_3;
1000

    
1001
   KP_41 = KP_4;
1002

    
1003
   KP_51 = KP_5;
1004

    
1005
   KP_61 = KP_6;
1006

    
1007
   KP_71 = KP_7;
1008

    
1009
   KP_81 = KP_8;
1010

    
1011
   KP_91 = KP_9;
1012

    
1013
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1014
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1015
         then 
1016
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1017
                  then 0
1018
                  else 
1019
               (if KP_CLEAR
1020
                  then 0
1021
                  else 
1022
               (if 
1023
                  (if (
1024
                     (if (KP_01 and 
1025
                        (not (pre KP_01)))
1026
                        then 0
1027
                        else 
1028
                     (if (KP_11 and 
1029
                        (not (pre KP_11)))
1030
                        then 1
1031
                        else 
1032
                     (if (KP_21 and 
1033
                        (not (pre KP_21)))
1034
                        then 2
1035
                        else 
1036
                     (if (KP_31 and 
1037
                        (not (pre KP_31)))
1038
                        then 3
1039
                        else 
1040
                     (if (KP_41 and 
1041
                        (not (pre KP_41)))
1042
                        then 4
1043
                        else 
1044
                     (if (KP_51 and 
1045
                        (not (pre KP_51)))
1046
                        then 5
1047
                        else 
1048
                     (if (KP_61 and 
1049
                        (not (pre KP_61)))
1050
                        then 6
1051
                        else 
1052
                     (if (KP_71 and 
1053
                        (not (pre KP_71)))
1054
                        then 7
1055
                        else 
1056
                     (if (KP_81 and 
1057
                        (not (pre KP_81)))
1058
                        then 8
1059
                        else 
1060
                     (if (KP_91 and 
1061
                        (not (pre KP_91)))
1062
                        then 9
1063
                        else 10)))))))))) <= 9)
1064
                     then true
1065
                     else false)
1066
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
1067
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
1068
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
1069

    
1070
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
1071
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1072
         then 
1073
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1074
                  then 0
1075
                  else 
1076
               (if KP_CLEAR
1077
                  then 0
1078
                  else 
1079
               (if 
1080
                  (if (
1081
                     (if (KP_01 and 
1082
                        (not (pre KP_01)))
1083
                        then 0
1084
                        else 
1085
                     (if (KP_11 and 
1086
                        (not (pre KP_11)))
1087
                        then 1
1088
                        else 
1089
                     (if (KP_21 and 
1090
                        (not (pre KP_21)))
1091
                        then 2
1092
                        else 
1093
                     (if (KP_31 and 
1094
                        (not (pre KP_31)))
1095
                        then 3
1096
                        else 
1097
                     (if (KP_41 and 
1098
                        (not (pre KP_41)))
1099
                        then 4
1100
                        else 
1101
                     (if (KP_51 and 
1102
                        (not (pre KP_51)))
1103
                        then 5
1104
                        else 
1105
                     (if (KP_61 and 
1106
                        (not (pre KP_61)))
1107
                        then 6
1108
                        else 
1109
                     (if (KP_71 and 
1110
                        (not (pre KP_71)))
1111
                        then 7
1112
                        else 
1113
                     (if (KP_81 and 
1114
                        (not (pre KP_81)))
1115
                        then 8
1116
                        else 
1117
                     (if (KP_91 and 
1118
                        (not (pre KP_91)))
1119
                        then 9
1120
                        else 10)))))))))) <= 9)
1121
                     then true
1122
                     else false)
1123
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
1124
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
1125
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
1126

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

    
1362
   STEPS_TO_COOK = (
1363
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1364
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1365
         then 0
1366
         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)) -> 
1367
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1368
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1369
         then 0
1370
         else 
1371
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1372
         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)
1373
         else (pre STEPS_TO_COOK))));
1374

    
1375
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1376
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1377
         then true
1378
         else 
1379
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1380
         then false
1381
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1382

    
1383
   SETUP = 
1384
      (if (1 = microwave_microwave_mode_logic_mode)
1385
         then true
1386
         else false);
1387

    
1388
   p32 = (true -> ((not (enable and 
1389
      (not KP_CLEAR))) or 
1390
      ((not ((KP_5 and 
1391
      (not (pre KP_5))) and 
1392
      ((not (KP_4 and 
1393
      (not (pre KP_4)))) and 
1394
      ((not (KP_3 and 
1395
      (not (pre KP_3)))) and 
1396
      ((not (KP_2 and 
1397
      (not (pre KP_2)))) and 
1398
      ((not (KP_1 and 
1399
      (not (pre KP_1)))) and 
1400
      (not (KP_0 and 
1401
      (not (pre KP_0)))))))))) or 
1402
      (RIGHT_DIGIT = 5))));
1403

    
1404
   enable = (true -> 
1405
      (if (1 = (pre microwave_microwave_mode_logic_mode))
1406
         then true
1407
         else false));
1408

    
1409
   p28 = (true -> ((not (enable and 
1410
      (not KP_CLEAR))) or 
1411
      ((not ((KP_1 and 
1412
      (not (pre KP_1))) and 
1413
      (not (KP_0 and 
1414
      (not (pre KP_0)))))) or 
1415
      (RIGHT_DIGIT = 1))));
1416

    
1417
   OK = ((not (enable and 
1418
      KP_CLEAR)) or 
1419
      (STEPS_TO_COOK = 0));
1420

    
1421
   p19 = (true -> ((not (enable and 
1422
      (not KP_CLEAR))) or 
1423
      (((((((((((KP_1 and 
1424
      (not (pre KP_1))) or 
1425
      (KP_2 and 
1426
      (not (pre KP_2)))) or 
1427
      (KP_3 and 
1428
      (not (pre KP_3)))) or 
1429
      (KP_4 and 
1430
      (not (pre KP_4)))) or 
1431
      (KP_5 and 
1432
      (not (pre KP_5)))) or 
1433
      (KP_6 and 
1434
      (not (pre KP_6)))) or 
1435
      (KP_7 and 
1436
      (not (pre KP_7)))) or 
1437
      (KP_8 and 
1438
      (not (pre KP_8)))) or 
1439
      (KP_9 and 
1440
      (not (pre KP_9)))) or 
1441
      (KP_0 and 
1442
      (not (pre KP_0)))) or 
1443
      (LEFT_DIGIT = (pre LEFT_DIGIT)))));
1444

    
1445
   p29 = (true -> ((not (enable and 
1446
      (not KP_CLEAR))) or 
1447
      ((not ((KP_2 and 
1448
      (not (pre KP_2))) and 
1449
      ((not (KP_1 and 
1450
      (not (pre KP_1)))) and 
1451
      (not (KP_0 and 
1452
      (not (pre KP_0))))))) or 
1453
      (RIGHT_DIGIT = 2))));
1454

    
1455
   p34 = (true -> ((not (enable and 
1456
      (not KP_CLEAR))) or 
1457
      ((not ((KP_7 and 
1458
      (not (pre KP_7))) and 
1459
      ((not (KP_6 and 
1460
      (not (pre KP_6)))) and 
1461
      ((not (KP_5 and 
1462
      (not (pre KP_5)))) and 
1463
      ((not (KP_4 and 
1464
      (not (pre KP_4)))) and 
1465
      ((not (KP_3 and 
1466
      (not (pre KP_3)))) and 
1467
      ((not (KP_2 and 
1468
      (not (pre KP_2)))) and 
1469
      ((not (KP_1 and 
1470
      (not (pre KP_1)))) and 
1471
      (not (KP_0 and 
1472
      (not (pre KP_0)))))))))))) or 
1473
      (RIGHT_DIGIT = 7))));
1474

    
1475
   p21 = ((not (enable and 
1476
      KP_CLEAR)) or 
1477
      (MIDDLE_DIGIT = 0));
1478

    
1479
--!k:2;
1480
--!PROPERTY: OK=true;
1481
  --%MAIN;
1482

    
1483
tel
1484

    
(15-15/23)