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