Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / microwave31.lus @ 9b45f3df

History | View | Annotate | Download (44.2 KB)

1 fa9e78e5 bourbouh
node top(KP_START: bool; 
2
      KP_CLEAR: bool; 
3
      KP_0: bool; 
4
      KP_1: bool; 
5
      KP_2: bool; 
6
      KP_3: bool; 
7
      KP_4: bool; 
8
      KP_5: bool; 
9
      KP_6: bool; 
10
      KP_7: bool; 
11
      KP_8: bool; 
12
      KP_9: bool; 
13
      DOOR_CLOSED: bool
14
) returns (OK:bool);
15
16
   
17 2d37a1e1 ploc
--@ contract guarantees OK;
18 fa9e78e5 bourbouh
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 9b45f3df ploc
   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 fa9e78e5 bourbouh
   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 9b45f3df ploc
   microwave_microwave_mode__logic_mode_: int; 
101 fa9e78e5 bourbouh
   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
   p29: bool; 
108
   p30: bool; 
109
   p31: bool; 
110
   p32: bool; 
111
   p33: bool; 
112
   p34: bool; 
113
   p35: bool; 
114
   p36: bool; 
115
   p37: bool; 
116
let 
117
   rlt__Arrow5 = (639 -> 
118
      (if (not (not SETUP))
119
         then 
120
               (if (MWI_FcnMaxI_In13 > 0)
121
                  then MWI_FcnMaxI_In13
122
                  else 0)
123
         else 639));
124
125
   rlt__Arrow4 = (639 -> 
126
      (if (not SUSPENDED)
127
         then 
128
               (if (MWI_FcnMaxI_In12 > 0)
129
                  then MWI_FcnMaxI_In12
130
                  else 0)
131
         else 639));
132
133
   rlt__Arrow3 = (639 -> 
134
      (if (not (not COOKING))
135
         then 
136
               (if (MWI_FcnMaxI_In16 > 0)
137
                  then MWI_FcnMaxI_In16
138
                  else 0)
139
         else 639));
140
141
   rlt__Arrow2 = (639 -> 
142
      (if (not (not SUSPENDED))
143
         then 
144
               (if (MWI_FcnMaxI_In15 > 0)
145
                  then MWI_FcnMaxI_In15
146
                  else 0)
147
         else 639));
148
149
   rlt__Arrow1 = (639 -> 
150
      (if (not COOKING)
151
         then 
152
               (if (MWI_FcnMaxI_In11 > 0)
153
                  then MWI_FcnMaxI_In11
154
                  else 0)
155
         else 639));
156
157
   rlt__Arrow = (639 -> 
158
      (if (not SETUP)
159
         then 
160
               (if (MWI_FcnMaxI_In1 > 0)
161
                  then MWI_FcnMaxI_In1
162
                  else 0)
163
         else 639));
164
165
166
167
   p35 = (true -> ((not (enable and 
168
      (not KP_CLEAR))) or 
169
      ((not ((KP_8 and 
170
      (not (pre KP_8))) and 
171
      ((not (KP_7 and 
172
      (not (pre KP_7)))) and 
173
      ((not (KP_6 and 
174
      (not (pre KP_6)))) and 
175
      ((not (KP_5 and 
176
      (not (pre KP_5)))) and 
177
      ((not (KP_4 and 
178
      (not (pre KP_4)))) and 
179
      ((not (KP_3 and 
180
      (not (pre KP_3)))) and 
181
      ((not (KP_2 and 
182
      (not (pre KP_2)))) and 
183
      ((not (KP_1 and 
184
      (not (pre KP_1)))) and 
185
      (not (KP_0 and 
186
      (not (pre KP_0))))))))))))) or 
187
      (RIGHT_DIGIT = 8))));
188
189
   p33 = (true -> ((not (enable and 
190
      (not KP_CLEAR))) or 
191
      ((not ((KP_6 and 
192
      (not (pre KP_6))) and 
193
      ((not (KP_5 and 
194
      (not (pre KP_5)))) and 
195
      ((not (KP_4 and 
196
      (not (pre KP_4)))) and 
197
      ((not (KP_3 and 
198
      (not (pre KP_3)))) and 
199
      ((not (KP_2 and 
200
      (not (pre KP_2)))) and 
201
      ((not (KP_1 and 
202
      (not (pre KP_1)))) and 
203
      (not (KP_0 and 
204
      (not (pre KP_0))))))))))) or 
205
      (RIGHT_DIGIT = 6))));
206
207
   MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT;
208
209
   RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER;
210
211
212
213
   p36 = (true -> ((not (enable and 
214
      (not KP_CLEAR))) or 
215
      ((not ((KP_9 and 
216
      (not (pre KP_9))) and 
217
      ((not (KP_8 and 
218
      (not (pre KP_8)))) and 
219
      ((not (KP_7 and 
220
      (not (pre KP_7)))) and 
221
      ((not (KP_6 and 
222
      (not (pre KP_6)))) and 
223
      ((not (KP_5 and 
224
      (not (pre KP_5)))) and 
225
      ((not (KP_4 and 
226
      (not (pre KP_4)))) and 
227
      ((not (KP_3 and 
228
      (not (pre KP_3)))) and 
229
      ((not (KP_2 and 
230
      (not (pre KP_2)))) and 
231
      ((not (KP_1 and 
232
      (not (pre KP_1)))) and 
233
      (not (KP_0 and 
234
      (not (pre KP_0)))))))))))))) or 
235
      (RIGHT_DIGIT = 9))));
236
237
   MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1);
238
239
   CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and 
240
      (not (pre KP_CLEAR))));
241
242 9b45f3df ploc
   microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode__logic_steps_remaining div 1) div 60);
243 fa9e78e5 bourbouh
244 9b45f3df ploc
   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));
245 fa9e78e5 bourbouh
246
   SUSPENDED = 
247 9b45f3df ploc
      (if (3 = microwave_microwave_mode__logic_mode_)
248 fa9e78e5 bourbouh
         then true
249
         else false);
250
251
   p31 = (true -> ((not (enable and 
252
      (not KP_CLEAR))) or 
253
      ((not ((KP_4 and 
254
      (not (pre KP_4))) and 
255
      ((not (KP_3 and 
256
      (not (pre KP_3)))) and 
257
      ((not (KP_2 and 
258
      (not (pre KP_2)))) and 
259
      ((not (KP_1 and 
260
      (not (pre KP_1)))) and 
261
      (not (KP_0 and 
262
      (not (pre KP_0))))))))) or 
263
      (RIGHT_DIGIT = 4))));
264
265
   p37 = (true -> ((not (enable and 
266
      (not KP_CLEAR))) or 
267
      (((((((((((KP_1 and 
268
      (not (pre KP_1))) or 
269
      (KP_2 and 
270
      (not (pre KP_2)))) or 
271
      (KP_3 and 
272
      (not (pre KP_3)))) or 
273
      (KP_4 and 
274
      (not (pre KP_4)))) or 
275
      (KP_5 and 
276
      (not (pre KP_5)))) or 
277
      (KP_6 and 
278
      (not (pre KP_6)))) or 
279
      (KP_7 and 
280
      (not (pre KP_7)))) or 
281
      (KP_8 and 
282
      (not (pre KP_8)))) or 
283
      (KP_9 and 
284
      (not (pre KP_9)))) or 
285
      (KP_0 and 
286
      (not (pre KP_0)))) or 
287
      (RIGHT_DIGIT = (pre RIGHT_DIGIT)))));
288
289
   MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1);
290
291
   MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1);
292
293
294
295
296 9b45f3df ploc
   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);
297 fa9e78e5 bourbouh
298
   MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1);
299
300
301
   MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1);
302
303
304
   p30 = (true -> ((not (enable and 
305
      (not KP_CLEAR))) or 
306
      ((not ((KP_3 and 
307
      (not (pre KP_3))) and 
308
      ((not (KP_2 and 
309
      (not (pre KP_2)))) and 
310
      ((not (KP_1 and 
311
      (not (pre KP_1)))) and 
312
      (not (KP_0 and 
313
      (not (pre KP_0)))))))) or 
314
      (RIGHT_DIGIT = 3))));
315
316
   COOKING = 
317 9b45f3df ploc
      (if (2 = microwave_microwave_mode__logic_mode_)
318 fa9e78e5 bourbouh
         then true
319
         else false);
320
321
   LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT;
322
323
   START_PRESSED = (KP_START -> (KP_START and 
324
      (not (pre KP_START))));
325
326 9b45f3df ploc
   chart_microwave_mode__logic_start = 
327 fa9e78e5 bourbouh
      (if (START_PRESSED = false)
328
         then 0
329
         else 1);
330
331 9b45f3df ploc
   chart_microwave_mode__logic_clear_off = 
332 fa9e78e5 bourbouh
      (if (CLEAR_PRESSED = false)
333
         then 0
334
         else 1);
335
336 9b45f3df ploc
   chart_microwave_mode__logic_door_closed = 
337 fa9e78e5 bourbouh
      (if (DOOR_CLOSED = false)
338
         then 0
339
         else 1);
340
341 9b45f3df ploc
   chart_microwave_mode__logic____wakeup___ = true;
342 fa9e78e5 bourbouh
343 9b45f3df ploc
   chart_microwave_mode__logic_rlt_evtInitStep = (true -> 
344
      (if (pre chart_microwave_mode__logic____wakeup___)
345 fa9e78e5 bourbouh
         then false
346 9b45f3df ploc
         else (pre chart_microwave_mode__logic_rlt_evtInitStep)));
347 fa9e78e5 bourbouh
348 9b45f3df ploc
   chart_microwave_mode__logic_begin_state_states___root = (0 -> (pre chart_microwave_mode__logic_final_state_states___root));
349 fa9e78e5 bourbouh
350 9b45f3df ploc
   chart_microwave_mode__logic_begin_state_outports_mode_ = (0 -> (pre chart_microwave_mode__logic_mode_));
351 fa9e78e5 bourbouh
352 9b45f3df ploc
   chart_microwave_mode__logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode__logic_steps_remaining));
353 fa9e78e5 bourbouh
354 9b45f3df ploc
   chart_microwave_mode__logic_final_state_states___root = 
355
      (if chart_microwave_mode__logic____wakeup___
356 fa9e78e5 bourbouh
         then 
357 9b45f3df ploc
               (if chart_microwave_mode__logic_rlt_evtInitStep
358
                  then rlt_enter_microwave_mode__logic_rlt_state_2_states___root
359 fa9e78e5 bourbouh
                  else 
360 9b45f3df ploc
               (if ((not rlt_eval_microwave_mode__logic_rlt_fired_1) and 
361 fa9e78e5 bourbouh
                  
362
                  
363 9b45f3df ploc
                  ((rlt_eval_microwave_mode__logic_rlt_state_3_states___root >= 1) and 
364
                  (rlt_eval_microwave_mode__logic_rlt_state_3_states___root <= 3)))
365 fa9e78e5 bourbouh
                  then 
366 9b45f3df ploc
                        (if rlt_eval_microwave_mode__logic_ON_rlt_fired_6
367 fa9e78e5 bourbouh
                           then 
368 9b45f3df ploc
                                 (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_11_states___root = 3))
369 fa9e78e5 bourbouh
                                    then 
370
                                          
371
                                          3
372 9b45f3df ploc
                                    else rlt_eval_microwave_mode__logic_ON_rlt_state_11_states___root)
373
                           else rlt_eval_microwave_mode__logic_ON_rlt_state_11_states___root)
374
                  else rlt_eval_microwave_mode__logic_rlt_state_3_states___root))
375
         else chart_microwave_mode__logic_begin_state_states___root);
376 fa9e78e5 bourbouh
377 9b45f3df ploc
   chart_microwave_mode__logic_mode_ = 
378
      (if chart_microwave_mode__logic____wakeup___
379 fa9e78e5 bourbouh
         then 
380 9b45f3df ploc
               (if chart_microwave_mode__logic_rlt_evtInitStep
381 fa9e78e5 bourbouh
                  then 
382 9b45f3df ploc
                        (if (not (chart_microwave_mode__logic_begin_state_states___root = 4))
383 fa9e78e5 bourbouh
                           then 1
384 9b45f3df ploc
                           else chart_microwave_mode__logic_begin_state_outports_mode_)
385 fa9e78e5 bourbouh
                  else 
386 9b45f3df ploc
               (if ((not rlt_eval_microwave_mode__logic_rlt_fired_1) and 
387 fa9e78e5 bourbouh
                  
388
                  
389 9b45f3df ploc
                  ((rlt_eval_microwave_mode__logic_rlt_state_3_states___root >= 1) and 
390
                  (rlt_eval_microwave_mode__logic_rlt_state_3_states___root <= 3)))
391 fa9e78e5 bourbouh
                  then 
392 9b45f3df ploc
                        (if rlt_eval_microwave_mode__logic_ON_rlt_fired_6
393 fa9e78e5 bourbouh
                           then 
394 9b45f3df ploc
                                 (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_11_states___root = 3))
395 fa9e78e5 bourbouh
                                    then 3
396 9b45f3df ploc
                                    else rlt_eval_microwave_mode__logic_ON_rlt_state_11_outports_mode_)
397
                           else rlt_eval_microwave_mode__logic_ON_rlt_state_11_outports_mode_)
398
                  else rlt_eval_microwave_mode__logic_rlt_state_3_outports_mode_))
399
         else chart_microwave_mode__logic_begin_state_outports_mode_);
400 fa9e78e5 bourbouh
401 9b45f3df ploc
   chart_microwave_mode__logic_steps_remaining = 
402
      (if chart_microwave_mode__logic____wakeup___
403 fa9e78e5 bourbouh
         then 
404 9b45f3df ploc
               (if chart_microwave_mode__logic_rlt_evtInitStep
405
                  then chart_microwave_mode__logic_begin_state_outports_steps_remaining
406 fa9e78e5 bourbouh
                  else 
407 9b45f3df ploc
               (if ((not rlt_eval_microwave_mode__logic_rlt_fired_1) and 
408 fa9e78e5 bourbouh
                  
409
                  
410 9b45f3df ploc
                  ((rlt_eval_microwave_mode__logic_rlt_state_3_states___root >= 1) and 
411
                  (rlt_eval_microwave_mode__logic_rlt_state_3_states___root <= 3)))
412 fa9e78e5 bourbouh
                  then 
413 9b45f3df ploc
                        (if rlt_eval_microwave_mode__logic_ON_rlt_fired_5
414
                           then (rlt_eval_microwave_mode__logic_ON_rlt_state_6_outports_steps_remaining - 1)
415
                           else rlt_eval_microwave_mode__logic_ON_rlt_state_6_outports_steps_remaining)
416
                  else rlt_eval_microwave_mode__logic_rlt_state_1_outports_steps_remaining))
417
         else chart_microwave_mode__logic_begin_state_outports_steps_remaining);
418 fa9e78e5 bourbouh
419
   
420
   
421 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_fired_0 = (chart_microwave_mode__logic_begin_state_states___root = 4);
422 fa9e78e5 bourbouh
423
   
424
   
425 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_state_1_outports_steps_remaining = 
426
      (if rlt_eval_microwave_mode__logic_rlt_fired_0
427 fa9e78e5 bourbouh
         then STEPS_TO_COOK
428 9b45f3df ploc
         else chart_microwave_mode__logic_begin_state_outports_steps_remaining);
429 fa9e78e5 bourbouh
430
   
431
   
432 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_fired_1 = (rlt_eval_microwave_mode__logic_rlt_fired_0 and 
433
      ((chart_microwave_mode__logic_begin_state_states___root = 4) and 
434 fa9e78e5 bourbouh
      (
435 9b45f3df ploc
      (if (chart_microwave_mode__logic_start <> 0)
436 fa9e78e5 bourbouh
         then true
437
         else false) and 
438
      
439
      (if (
440
         (if ((STEPS_TO_COOK > 0) = false)
441
            then 0
442
            else 1) <> 0)
443
         then true
444
         else false))));
445
446
   
447
   
448 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_state_2_states___root = 
449
      (if rlt_eval_microwave_mode__logic_rlt_fired_1
450 fa9e78e5 bourbouh
         then 
451 9b45f3df ploc
               (if (chart_microwave_mode__logic_begin_state_states___root = 4)
452 fa9e78e5 bourbouh
                  then 
453
                        
454
                        0
455 9b45f3df ploc
                  else chart_microwave_mode__logic_begin_state_states___root)
456
         else chart_microwave_mode__logic_begin_state_states___root);
457 fa9e78e5 bourbouh
458
   
459
   
460 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_state_3_states___root = 
461
      (if rlt_eval_microwave_mode__logic_rlt_fired_1
462
         then rlt_enter_microwave_mode__logic_ON_rlt_state_4_states___root
463
         else rlt_eval_microwave_mode__logic_rlt_state_2_states___root);
464 fa9e78e5 bourbouh
   
465
   
466
467
   
468
   
469 9b45f3df ploc
   rlt_eval_microwave_mode__logic_rlt_state_3_outports_mode_ = 
470
      (if rlt_eval_microwave_mode__logic_rlt_fired_1
471 fa9e78e5 bourbouh
         then 
472 9b45f3df ploc
               (if rlt_enter_microwave_mode__logic_ON_rlt_fired_2
473 fa9e78e5 bourbouh
                  then 
474 9b45f3df ploc
                        (if (not (rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root = 3))
475 fa9e78e5 bourbouh
                           then 3
476 9b45f3df ploc
                           else rlt_enter_microwave_mode__logic_ON_rlt_state_2_outports_mode_)
477
                  else rlt_enter_microwave_mode__logic_ON_rlt_state_2_outports_mode_)
478
         else chart_microwave_mode__logic_begin_state_outports_mode_);
479 fa9e78e5 bourbouh
   
480
   
481
482
   
483
   
484 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode__logic_rlt_state_3_states___root = 2) and 
485
      (rlt_eval_microwave_mode__logic_rlt_state_1_outports_steps_remaining <= 0)) and 
486
      (rlt_eval_microwave_mode__logic_rlt_state_3_states___root = 2));
487 fa9e78e5 bourbouh
488
   
489
   
490 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_1_states___root = 
491
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_1
492 fa9e78e5 bourbouh
         then 
493
               (if 
494
                  
495 9b45f3df ploc
                  ((rlt_eval_microwave_mode__logic_rlt_state_3_states___root >= 1) and 
496
                  (rlt_eval_microwave_mode__logic_rlt_state_3_states___root <= 3))
497 fa9e78e5 bourbouh
                  then 
498
                        
499
                        0
500 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_rlt_state_3_states___root)
501
         else rlt_eval_microwave_mode__logic_rlt_state_3_states___root);
502 fa9e78e5 bourbouh
503
   
504
   
505 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_2_states___root = 
506
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_1
507 fa9e78e5 bourbouh
         then 
508 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_1_states___root = 4))
509 fa9e78e5 bourbouh
                  then 
510
                        
511
                        4
512 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_1_states___root)
513
         else rlt_eval_microwave_mode__logic_ON_rlt_state_1_states___root);
514 fa9e78e5 bourbouh
   
515
   
516
517
   
518
   
519 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode__logic_ON_rlt_state_2_states___root = 3) and 
520 fa9e78e5 bourbouh
      ((
521 9b45f3df ploc
      (if (chart_microwave_mode__logic_start <> 0)
522 fa9e78e5 bourbouh
         then true
523
         else false) and 
524
      
525 9b45f3df ploc
      (if (chart_microwave_mode__logic_door_closed <> 0)
526 fa9e78e5 bourbouh
         then true
527
         else false)) and 
528 9b45f3df ploc
      (not rlt_eval_microwave_mode__logic_ON_rlt_fired_1)));
529 fa9e78e5 bourbouh
530
   
531
   
532 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode__logic_ON_rlt_fired_2 or 
533
      rlt_eval_microwave_mode__logic_ON_rlt_fired_1);
534 fa9e78e5 bourbouh
535
   
536
   
537 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_3_states___root = 
538
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_2
539 fa9e78e5 bourbouh
         then 
540 9b45f3df ploc
               (if (rlt_eval_microwave_mode__logic_ON_rlt_state_2_states___root = 3)
541 fa9e78e5 bourbouh
                  then 
542
                        
543
                        1
544 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_2_states___root)
545
         else rlt_eval_microwave_mode__logic_ON_rlt_state_2_states___root);
546 fa9e78e5 bourbouh
547
   
548
   
549 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_3_outports_mode_ = 
550
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_1
551 fa9e78e5 bourbouh
         then 
552 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_1_states___root = 4))
553 fa9e78e5 bourbouh
                  then 1
554 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_rlt_state_3_outports_mode_)
555
         else rlt_eval_microwave_mode__logic_rlt_state_3_outports_mode_);
556 fa9e78e5 bourbouh
557
   
558
   
559 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root = 
560
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_2
561 fa9e78e5 bourbouh
         then 
562 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_3_states___root = 2))
563 fa9e78e5 bourbouh
                  then 
564
                        
565
                        2
566 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_3_states___root)
567
         else rlt_eval_microwave_mode__logic_ON_rlt_state_3_states___root);
568 fa9e78e5 bourbouh
   
569
   
570
571
   
572
   
573 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_4_outports_mode_ = 
574
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_2
575 fa9e78e5 bourbouh
         then 
576 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_3_states___root = 2))
577 fa9e78e5 bourbouh
                  then 2
578 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_3_outports_mode_)
579
         else rlt_eval_microwave_mode__logic_ON_rlt_state_3_outports_mode_);
580 fa9e78e5 bourbouh
   
581
   
582
583
   
584
   
585 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root = 3) and 
586 fa9e78e5 bourbouh
      (
587 9b45f3df ploc
      (if (chart_microwave_mode__logic_clear_off <> 0)
588 fa9e78e5 bourbouh
         then true
589
         else false) and 
590 9b45f3df ploc
      (not rlt_eval_microwave_mode__logic_ON_rlt_complete_1))) and 
591
      ((rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root = 3) and 
592
      (not rlt_eval_microwave_mode__logic_ON_rlt_complete_1)));
593 fa9e78e5 bourbouh
594
   
595
   
596 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode__logic_ON_rlt_fired_4 or 
597
      rlt_eval_microwave_mode__logic_ON_rlt_complete_1);
598 fa9e78e5 bourbouh
599
   
600
   
601 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_6_states___root = 
602
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_4
603 fa9e78e5 bourbouh
         then 
604
               (if 
605
                  
606 9b45f3df ploc
                  ((rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root >= 1) and 
607
                  (rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root <= 3))
608 fa9e78e5 bourbouh
                  then 
609
                        
610
                        0
611 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root)
612
         else rlt_eval_microwave_mode__logic_ON_rlt_state_4_states___root);
613 fa9e78e5 bourbouh
614
   
615
   
616 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_6_outports_steps_remaining = 
617
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_4
618 fa9e78e5 bourbouh
         then 0
619 9b45f3df ploc
         else rlt_eval_microwave_mode__logic_rlt_state_1_outports_steps_remaining);
620 fa9e78e5 bourbouh
621
   
622
   
623 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_7_states___root = 
624
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_4
625 fa9e78e5 bourbouh
         then 
626 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_6_states___root = 4))
627 fa9e78e5 bourbouh
                  then 
628
                        
629
                        4
630 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_6_states___root)
631
         else rlt_eval_microwave_mode__logic_ON_rlt_state_6_states___root);
632 fa9e78e5 bourbouh
   
633
   
634
635
   
636
   
637 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode__logic_ON_rlt_state_7_states___root = 2) and 
638
      ((rlt_eval_microwave_mode__logic_ON_rlt_state_6_outports_steps_remaining > 0) and 
639
      (not rlt_eval_microwave_mode__logic_ON_rlt_complete_2)));
640 fa9e78e5 bourbouh
641
   
642
   
643 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_8_outports_mode_ = 
644
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_4
645 fa9e78e5 bourbouh
         then 
646 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_6_states___root = 4))
647 fa9e78e5 bourbouh
                  then 1
648 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_4_outports_mode_)
649
         else rlt_eval_microwave_mode__logic_ON_rlt_state_4_outports_mode_);
650 fa9e78e5 bourbouh
651
   
652
   
653 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_9_states___root = 
654
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_5
655 fa9e78e5 bourbouh
         then 
656 9b45f3df ploc
               (if (rlt_eval_microwave_mode__logic_ON_rlt_state_7_states___root = 2)
657 fa9e78e5 bourbouh
                  then 
658
                        
659
                        1
660 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_7_states___root)
661
         else rlt_eval_microwave_mode__logic_ON_rlt_state_7_states___root);
662 fa9e78e5 bourbouh
663
   
664
   
665 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_10_states___root = 
666
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_5
667 fa9e78e5 bourbouh
         then 
668 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_9_states___root = 2))
669 fa9e78e5 bourbouh
                  then 
670
                        
671
                        2
672 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_9_states___root)
673
         else rlt_eval_microwave_mode__logic_ON_rlt_state_9_states___root);
674 fa9e78e5 bourbouh
   
675
   
676
677
   
678
   
679 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode__logic_ON_rlt_state_10_states___root = 2) and 
680 fa9e78e5 bourbouh
      ((
681 9b45f3df ploc
      (if (chart_microwave_mode__logic_clear_off <> 0)
682 fa9e78e5 bourbouh
         then true
683
         else false) or 
684
      (not 
685 9b45f3df ploc
      (if (chart_microwave_mode__logic_door_closed <> 0)
686 fa9e78e5 bourbouh
         then true
687
         else false))) and 
688 9b45f3df ploc
      (not (rlt_eval_microwave_mode__logic_ON_rlt_fired_5 or 
689
      rlt_eval_microwave_mode__logic_ON_rlt_complete_2))));
690 fa9e78e5 bourbouh
691
   
692
   
693 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_11_states___root = 
694
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_6
695 fa9e78e5 bourbouh
         then 
696 9b45f3df ploc
               (if (rlt_eval_microwave_mode__logic_ON_rlt_state_10_states___root = 2)
697 fa9e78e5 bourbouh
                  then 
698
                        
699
                        1
700 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_10_states___root)
701
         else rlt_eval_microwave_mode__logic_ON_rlt_state_10_states___root);
702 fa9e78e5 bourbouh
703
   
704
   
705 9b45f3df ploc
   rlt_eval_microwave_mode__logic_ON_rlt_state_11_outports_mode_ = 
706
      (if rlt_eval_microwave_mode__logic_ON_rlt_fired_5
707 fa9e78e5 bourbouh
         then 
708 9b45f3df ploc
               (if (not (rlt_eval_microwave_mode__logic_ON_rlt_state_9_states___root = 2))
709 fa9e78e5 bourbouh
                  then 2
710 9b45f3df ploc
                  else rlt_eval_microwave_mode__logic_ON_rlt_state_8_outports_mode_)
711
         else rlt_eval_microwave_mode__logic_ON_rlt_state_8_outports_mode_);
712 fa9e78e5 bourbouh
713 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root = 
714 fa9e78e5 bourbouh
      (if (not 
715
         
716 9b45f3df ploc
         ((rlt_eval_microwave_mode__logic_rlt_state_2_states___root >= 1) and 
717
         (rlt_eval_microwave_mode__logic_rlt_state_2_states___root <= 3)))
718 fa9e78e5 bourbouh
         then 
719
               
720
               1
721 9b45f3df ploc
         else rlt_eval_microwave_mode__logic_rlt_state_2_states___root);
722 fa9e78e5 bourbouh
723
   
724
   
725 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_fired_0 = ((not 
726 fa9e78e5 bourbouh
      
727 9b45f3df ploc
      ((rlt_eval_microwave_mode__logic_rlt_state_2_states___root >= 1) and 
728
      (rlt_eval_microwave_mode__logic_rlt_state_2_states___root <= 3))) and 
729 fa9e78e5 bourbouh
      
730
      
731 9b45f3df ploc
      ((rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root >= 1) and 
732
      (rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root <= 3)));
733 fa9e78e5 bourbouh
734
   
735
   
736 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode__logic_ON_rlt_fired_0 and 
737 fa9e78e5 bourbouh
      (
738
      
739 9b45f3df ploc
      ((rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root >= 1) and 
740
      (rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root <= 3)) and 
741 fa9e78e5 bourbouh
      
742 9b45f3df ploc
      (if (chart_microwave_mode__logic_door_closed <> 0)
743 fa9e78e5 bourbouh
         then true
744
         else false)));
745
746
   
747
   
748 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root = 
749
      (if rlt_enter_microwave_mode__logic_ON_rlt_fired_1
750 fa9e78e5 bourbouh
         then 
751 9b45f3df ploc
               (if (not (rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root = 2))
752 fa9e78e5 bourbouh
                  then 
753
                        
754
                        2
755 9b45f3df ploc
                  else rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root)
756
         else rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root);
757 fa9e78e5 bourbouh
   
758
   
759
760
   
761
   
762 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_state_2_outports_mode_ = 
763
      (if rlt_enter_microwave_mode__logic_ON_rlt_fired_1
764 fa9e78e5 bourbouh
         then 
765 9b45f3df ploc
               (if (not (rlt_enter_microwave_mode__logic_ON_rlt_state_1_states___root = 2))
766 fa9e78e5 bourbouh
                  then 2
767 9b45f3df ploc
                  else chart_microwave_mode__logic_begin_state_outports_mode_)
768
         else chart_microwave_mode__logic_begin_state_outports_mode_);
769 fa9e78e5 bourbouh
   
770
   
771
772
   
773
   
774 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode__logic_ON_rlt_fired_0 and 
775 fa9e78e5 bourbouh
      (
776
      
777 9b45f3df ploc
      ((rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root >= 1) and 
778
      (rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root <= 3)) and 
779
      (not rlt_enter_microwave_mode__logic_ON_rlt_fired_1)));
780 fa9e78e5 bourbouh
781
   
782
   
783 9b45f3df ploc
   rlt_enter_microwave_mode__logic_ON_rlt_state_4_states___root = 
784
      (if rlt_enter_microwave_mode__logic_ON_rlt_fired_2
785 fa9e78e5 bourbouh
         then 
786 9b45f3df ploc
               (if (not (rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root = 3))
787 fa9e78e5 bourbouh
                  then 
788
                        
789
                        3
790 9b45f3df ploc
                  else rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root)
791
         else rlt_enter_microwave_mode__logic_ON_rlt_state_2_states___root);
792 fa9e78e5 bourbouh
   
793
   
794
795
   
796
   
797 9b45f3df ploc
   rlt_enter_microwave_mode__logic_rlt_state_2_states___root = 
798
      (if (not (chart_microwave_mode__logic_begin_state_states___root = 4))
799 fa9e78e5 bourbouh
         then 
800
               
801
               4
802 9b45f3df ploc
         else chart_microwave_mode__logic_begin_state_states___root);
803 fa9e78e5 bourbouh
   
804
   
805
806 9b45f3df ploc
   microwave_microwave_mode__logic_mode_ = chart_microwave_mode__logic_mode_;
807 fa9e78e5 bourbouh
808
809
   MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1);
810
811
812
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable;
813
814
   KP_01 = KP_0;
815
816
   KP_11 = KP_1;
817
818
   KP_21 = KP_2;
819
820
   KP_31 = KP_3;
821
822
   KP_41 = KP_4;
823
824
   KP_51 = KP_5;
825
826
   KP_61 = KP_6;
827
828
   KP_71 = KP_7;
829
830
   KP_81 = KP_8;
831
832
   KP_91 = KP_9;
833
834
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
835
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
836
         then 
837
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
838
                  then 0
839
                  else 
840
               (if KP_CLEAR
841
                  then 0
842
                  else 
843
               (if 
844
                  (if (
845
                     (if (KP_01 and 
846
                        (not (pre KP_01)))
847
                        then 0
848
                        else 
849
                     (if (KP_11 and 
850
                        (not (pre KP_11)))
851
                        then 1
852
                        else 
853
                     (if (KP_21 and 
854
                        (not (pre KP_21)))
855
                        then 2
856
                        else 
857
                     (if (KP_31 and 
858
                        (not (pre KP_31)))
859
                        then 3
860
                        else 
861
                     (if (KP_41 and 
862
                        (not (pre KP_41)))
863
                        then 4
864
                        else 
865
                     (if (KP_51 and 
866
                        (not (pre KP_51)))
867
                        then 5
868
                        else 
869
                     (if (KP_61 and 
870
                        (not (pre KP_61)))
871
                        then 6
872
                        else 
873
                     (if (KP_71 and 
874
                        (not (pre KP_71)))
875
                        then 7
876
                        else 
877
                     (if (KP_81 and 
878
                        (not (pre KP_81)))
879
                        then 8
880
                        else 
881
                     (if (KP_91 and 
882
                        (not (pre KP_91)))
883
                        then 9
884
                        else 10)))))))))) <= 9)
885
                     then true
886
                     else false)
887
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)
888
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))))
889
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)));
890
891
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> 
892
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
893
         then 
894
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
895
                  then 0
896
                  else 
897
               (if KP_CLEAR
898
                  then 0
899
                  else 
900
               (if 
901
                  (if (
902
                     (if (KP_01 and 
903
                        (not (pre KP_01)))
904
                        then 0
905
                        else 
906
                     (if (KP_11 and 
907
                        (not (pre KP_11)))
908
                        then 1
909
                        else 
910
                     (if (KP_21 and 
911
                        (not (pre KP_21)))
912
                        then 2
913
                        else 
914
                     (if (KP_31 and 
915
                        (not (pre KP_31)))
916
                        then 3
917
                        else 
918
                     (if (KP_41 and 
919
                        (not (pre KP_41)))
920
                        then 4
921
                        else 
922
                     (if (KP_51 and 
923
                        (not (pre KP_51)))
924
                        then 5
925
                        else 
926
                     (if (KP_61 and 
927
                        (not (pre KP_61)))
928
                        then 6
929
                        else 
930
                     (if (KP_71 and 
931
                        (not (pre KP_71)))
932
                        then 7
933
                        else 
934
                     (if (KP_81 and 
935
                        (not (pre KP_81)))
936
                        then 8
937
                        else 
938
                     (if (KP_91 and 
939
                        (not (pre KP_91)))
940
                        then 9
941
                        else 10)))))))))) <= 9)
942
                     then true
943
                     else false)
944
                  then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)
945
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))))
946
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)));
947
948
   microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = (
949
      (if KP_CLEAR
950
         then 0
951
         else 
952
      (if 
953
         (if (
954
            (if KP_01
955
               then 0
956
               else 
957
            (if KP_11
958
               then 1
959
               else 
960
            (if KP_21
961
               then 2
962
               else 
963
            (if KP_31
964
               then 3
965
               else 
966
            (if KP_41
967
               then 4
968
               else 
969
            (if KP_51
970
               then 5
971
               else 
972
            (if KP_61
973
               then 6
974
               else 
975
            (if KP_71
976
               then 7
977
               else 
978
            (if KP_81
979
               then 8
980
               else 
981
            (if KP_91
982
               then 9
983
               else 10)))))))))) <= 9)
984
            then true
985
            else false)
986
         then 
987
               (if KP_01
988
                  then 0
989
                  else 
990
               (if KP_11
991
                  then 1
992
                  else 
993
               (if KP_21
994
                  then 2
995
                  else 
996
               (if KP_31
997
                  then 3
998
                  else 
999
               (if KP_41
1000
                  then 4
1001
                  else 
1002
               (if KP_51
1003
                  then 5
1004
                  else 
1005
               (if KP_61
1006
                  then 6
1007
                  else 
1008
               (if KP_71
1009
                  then 7
1010
                  else 
1011
               (if KP_81
1012
                  then 8
1013
                  else 
1014
               (if KP_91
1015
                  then 9
1016
                  else 10))))))))))
1017
         else 0)) -> 
1018
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1019
         then 
1020
               (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step
1021
                  then 
1022
                        (if KP_CLEAR
1023
                           then 0
1024
                           else 
1025
                        (if 
1026
                           (if (
1027
                              (if KP_01
1028
                                 then 0
1029
                                 else 
1030
                              (if KP_11
1031
                                 then 1
1032
                                 else 
1033
                              (if KP_21
1034
                                 then 2
1035
                                 else 
1036
                              (if KP_31
1037
                                 then 3
1038
                                 else 
1039
                              (if KP_41
1040
                                 then 4
1041
                                 else 
1042
                              (if KP_51
1043
                                 then 5
1044
                                 else 
1045
                              (if KP_61
1046
                                 then 6
1047
                                 else 
1048
                              (if KP_71
1049
                                 then 7
1050
                                 else 
1051
                              (if KP_81
1052
                                 then 8
1053
                                 else 
1054
                              (if KP_91
1055
                                 then 9
1056
                                 else 10)))))))))) <= 9)
1057
                              then true
1058
                              else false)
1059
                           then 
1060
                                 (if KP_01
1061
                                    then 0
1062
                                    else 
1063
                                 (if KP_11
1064
                                    then 1
1065
                                    else 
1066
                                 (if KP_21
1067
                                    then 2
1068
                                    else 
1069
                                 (if KP_31
1070
                                    then 3
1071
                                    else 
1072
                                 (if KP_41
1073
                                    then 4
1074
                                    else 
1075
                                 (if KP_51
1076
                                    then 5
1077
                                    else 
1078
                                 (if KP_61
1079
                                    then 6
1080
                                    else 
1081
                                 (if KP_71
1082
                                    then 7
1083
                                    else 
1084
                                 (if KP_81
1085
                                    then 8
1086
                                    else 
1087
                                 (if KP_91
1088
                                    then 9
1089
                                    else 10))))))))))
1090
                           else 0))
1091
                  else 
1092
               (if KP_CLEAR
1093
                  then 0
1094
                  else 
1095
               (if 
1096
                  (if (
1097
                     (if (KP_01 and 
1098
                        (not (pre KP_01)))
1099
                        then 0
1100
                        else 
1101
                     (if (KP_11 and 
1102
                        (not (pre KP_11)))
1103
                        then 1
1104
                        else 
1105
                     (if (KP_21 and 
1106
                        (not (pre KP_21)))
1107
                        then 2
1108
                        else 
1109
                     (if (KP_31 and 
1110
                        (not (pre KP_31)))
1111
                        then 3
1112
                        else 
1113
                     (if (KP_41 and 
1114
                        (not (pre KP_41)))
1115
                        then 4
1116
                        else 
1117
                     (if (KP_51 and 
1118
                        (not (pre KP_51)))
1119
                        then 5
1120
                        else 
1121
                     (if (KP_61 and 
1122
                        (not (pre KP_61)))
1123
                        then 6
1124
                        else 
1125
                     (if (KP_71 and 
1126
                        (not (pre KP_71)))
1127
                        then 7
1128
                        else 
1129
                     (if (KP_81 and 
1130
                        (not (pre KP_81)))
1131
                        then 8
1132
                        else 
1133
                     (if (KP_91 and 
1134
                        (not (pre KP_91)))
1135
                        then 9
1136
                        else 10)))))))))) <= 9)
1137
                     then true
1138
                     else false)
1139
                  then 
1140
                        (if (KP_01 and 
1141
                           (not (pre KP_01)))
1142
                           then 0
1143
                           else 
1144
                        (if (KP_11 and 
1145
                           (not (pre KP_11)))
1146
                           then 1
1147
                           else 
1148
                        (if (KP_21 and 
1149
                           (not (pre KP_21)))
1150
                           then 2
1151
                           else 
1152
                        (if (KP_31 and 
1153
                           (not (pre KP_31)))
1154
                           then 3
1155
                           else 
1156
                        (if (KP_41 and 
1157
                           (not (pre KP_41)))
1158
                           then 4
1159
                           else 
1160
                        (if (KP_51 and 
1161
                           (not (pre KP_51)))
1162
                           then 5
1163
                           else 
1164
                        (if (KP_61 and 
1165
                           (not (pre KP_61)))
1166
                           then 6
1167
                           else 
1168
                        (if (KP_71 and 
1169
                           (not (pre KP_71)))
1170
                           then 7
1171
                           else 
1172
                        (if (KP_81 and 
1173
                           (not (pre KP_81)))
1174
                           then 8
1175
                           else 
1176
                        (if (KP_91 and 
1177
                           (not (pre KP_91)))
1178
                           then 9
1179
                           else 10))))))))))
1180
                  else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))))
1181
         else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)));
1182
1183
   STEPS_TO_COOK = (
1184
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1185
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1186
         then 0
1187
         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)) -> 
1188
      (if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and 
1189
         (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock))
1190
         then 0
1191
         else 
1192
      (if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock
1193
         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)
1194
         else (pre STEPS_TO_COOK))));
1195
1196
   rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> 
1197
      (if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1198
         then true
1199
         else 
1200
      (if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)
1201
         then false
1202
         else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step))));
1203
1204
   SETUP = 
1205 9b45f3df ploc
      (if (1 = microwave_microwave_mode__logic_mode_)
1206 fa9e78e5 bourbouh
         then true
1207
         else false);
1208
1209
   p32 = (true -> ((not (enable and 
1210
      (not KP_CLEAR))) or 
1211
      ((not ((KP_5 and 
1212
      (not (pre KP_5))) and 
1213
      ((not (KP_4 and 
1214
      (not (pre KP_4)))) and 
1215
      ((not (KP_3 and 
1216
      (not (pre KP_3)))) and 
1217
      ((not (KP_2 and 
1218
      (not (pre KP_2)))) and 
1219
      ((not (KP_1 and 
1220
      (not (pre KP_1)))) and 
1221
      (not (KP_0 and 
1222
      (not (pre KP_0)))))))))) or 
1223
      (RIGHT_DIGIT = 5))));
1224
1225
   enable = (true -> 
1226 9b45f3df ploc
      (if (1 = (pre microwave_microwave_mode__logic_mode_))
1227 fa9e78e5 bourbouh
         then true
1228
         else false));
1229
1230
   OK = (true -> ((not (enable and 
1231
      (not KP_CLEAR))) or 
1232
      ((not ((KP_1 and 
1233
      (not (pre KP_1))) and 
1234
      (not (KP_0 and 
1235
      (not (pre KP_0)))))) or 
1236
      (RIGHT_DIGIT = 1))));
1237
1238
1239
   p29 = (true -> ((not (enable and 
1240
      (not KP_CLEAR))) or 
1241
      ((not ((KP_2 and 
1242
      (not (pre KP_2))) and 
1243
      ((not (KP_1 and 
1244
      (not (pre KP_1)))) and 
1245
      (not (KP_0 and 
1246
      (not (pre KP_0))))))) or 
1247
      (RIGHT_DIGIT = 2))));
1248
1249
   p34 = (true -> ((not (enable and 
1250
      (not KP_CLEAR))) or 
1251
      ((not ((KP_7 and 
1252
      (not (pre KP_7))) and 
1253
      ((not (KP_6 and 
1254
      (not (pre KP_6)))) and 
1255
      ((not (KP_5 and 
1256
      (not (pre KP_5)))) and 
1257
      ((not (KP_4 and 
1258
      (not (pre KP_4)))) and 
1259
      ((not (KP_3 and 
1260
      (not (pre KP_3)))) and 
1261
      ((not (KP_2 and 
1262
      (not (pre KP_2)))) and 
1263
      ((not (KP_1 and 
1264
      (not (pre KP_1)))) and 
1265
      (not (KP_0 and 
1266
      (not (pre KP_0)))))))))))) or 
1267
      (RIGHT_DIGIT = 7))));
1268
1269
1270
  --%PROPERTY OK=true;
1271
  --%MAIN;
1272
1273
tel