Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / kind_fmcad08 / large / microwave28.lus @ b745c1a8

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