-
Notifications
You must be signed in to change notification settings - Fork 0
/
AST.dot
311 lines (310 loc) · 8.58 KB
/
AST.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
digraph {
n6974434
n6974434[label="ROOT "]
n6974434->n3515585
n3515585[label="ETIQUETA: main"]
n3515585->n3515567
n3515567[label="PRINT()"]
n3515567->n2143968086
n2143968086[label="Cadena: CALCULADORA:"]
n3515585->n3515603
n3515603[label="PRINT()"]
n3515603->n3515600
n3515600[label="Cadena: \n"]
n6974434->n2140509830
n2140509830[label="ETIQUETA: menu"]
n2140509830->n3515561
n3515561[label="PRINT()"]
n3515561->n3515582
n3515582[label="Cadena: ingrese el primer número:"]
n2140509830->n2143968068
n2143968068[label="PRINT()"]
n2143968068->n2143968032
n2143968032[label="Cadena: \n"]
n2140509830->n2143968041
n2143968041[label="Asignacion: $t1"]
n2143968041 ->n3515588
n3515588[label="Read()"]
n2140509830->n2143968047
n2143968047[label="PRINT()"]
n2143968047->n3515618
n3515618[label="Cadena: \n"]
n2140509830->n2143968023
n2143968023[label="PRINT()"]
n2143968023->n3515612
n3515612[label="Cadena: usted ha ingresado:"]
n2140509830->n3515633
n3515633[label="PRINT()"]
n3515633->n3515627
n3515627[label="Cadena: \n"]
n2140509830->n3515639
n3515639[label="PRINT()"]
n3515639->n3515636
n3515636[label="Variable: $t1"]
n2140509830->n3515645
n3515645[label="PRINT()"]
n3515645->n3515642
n3515642[label="Cadena: \n"]
n2140509830->n2143964923
n2143964923[label="PRINT()"]
n2143964923->n3515624
n3515624[label="Cadena: ingrese el segundo número:"]
n2140509830->n2143964917
n2143964917[label="PRINT()"]
n2143964917->n3515594
n3515594[label="Cadena: \n"]
n2140509830->n3518730
n3518730[label="Asignacion: $t2"]
n3518730 ->n3518739
n3518739[label="Read()"]
n2140509830->n3518724
n3518724[label="PRINT()"]
n3518724->n2143964908
n2143964908[label="Cadena: \n"]
n2140509830->n2143964899
n2143964899[label="PRINT()"]
n2143964899->n2143964911
n2143964911[label="Cadena: usted ha ingresado:"]
n2140509830->n6973706
n6973706[label="PRINT()"]
n6973706->n2143961102
n2143961102[label="Cadena: \n"]
n2140509830->n6973808
n6973808[label="PRINT()"]
n6973808->n2143961096
n2143961096[label="Variable: $t2"]
n2140509830->n2140509833
n2140509833[label="PRINT()"]
n2140509833->n3518742
n3518742[label="Cadena: \n"]
n6974434->n2140509725
n2140509725[label="ETIQUETA: operacion"]
n2140509725->n6973820
n6973820[label="PRINT()"]
n6973820->n2140509842
n2140509842[label="Cadena: ¿Qué operación desea realizar? (+,-,*,/)"]
n2140509725->n2143968053
n2143968053[label="PRINT()"]
n2143968053->n2140509809
n2140509809[label="Cadena: \n"]
n2140509725->n2140509839
n2140509839[label="Asignacion: $t3"]
n2140509839 ->n2140509818
n2140509818[label="Read()"]
n2140509725->n6973826
n6973826[label="PRINT()"]
n6973826->n6973841
n6973841[label="Cadena: \n"]
n2140509725->n2140509800
n2140509800[label="PRINT()"]
n2140509800->n6973835
n6973835[label="Cadena: usted ha ingresado:"]
n2140509725->n6973856
n6973856[label="PRINT()"]
n6973856->n6973850
n6973850[label="Cadena: \n"]
n2140509725->n6973862
n6973862[label="PRINT()"]
n6973862->n6973859
n6973859[label="Variable: $t3"]
n2140509725->n6973868
n6973868[label="PRINT()"]
n6973868->n6973865
n6973865[label="Cadena: \n"]
n2140509725->n6973889
n6973889[label="Asignacion: $t4"]
n6973889 ->n2140509824
n2140509824[label=" Cast (Int) "]
n2140509824->n2140509797
n2140509797[label="Variable: $t3"]
n2140509725->n6973886
n6973886[label="Salto Condicional A: suma"]
n6973886 ->n2140509764
n2140509764[label=" == "]
n2140509764->n6973877
n6973877[label="Variable: $t4"]
n2140509764->n2140509758
n2140509758[label="Entero: 43"]
n2140509725->n6973895
n6973895[label="Salto Condicional A: resta"]
n6973895 ->n2140509761
n2140509761[label=" == "]
n2140509761->n6973874
n6973874[label="Variable: $t4"]
n2140509761->n6973892
n6973892[label="Entero: 45"]
n2140509725->n6973907
n6973907[label="Salto Condicional A: mult"]
n6973907 ->n6973904
n6973904[label=" == "]
n6973904->n6973898
n6973898[label="Variable: $t4"]
n6973904->n2140509776
n2140509776[label="Entero: 42"]
n2140509725->n6973919
n6973919[label="Salto Condicional A: div"]
n6973919 ->n6973916
n6973916[label=" == "]
n6973916->n2140509749
n2140509749[label="Variable: $t4"]
n6973916->n6973883
n6973883[label="Entero: 47"]
n2140509725->n2140509737
n2140509737[label="Goto: operacion"]
n6974434->n6973940
n6973940[label="ETIQUETA: suma"]
n6973940->n2140509701
n2140509701[label="Asignacion: $t5"]
n2140509701 ->n2140509719
n2140509719[label=" + "]
n2140509719->n6973943
n6973943[label="Variable: $t1"]
n2140509719->n6973925
n6973925[label="Variable: $t2"]
n6973940->n2140509429
n2140509429[label="Goto: imprimir"]
n6974434->n6973901
n6973901[label="ETIQUETA: resta"]
n6973901->n6974227
n6974227[label="Asignacion: $t5"]
n6974227 ->n2140509435
n2140509435[label=" - "]
n2140509435->n2140509423
n2140509423[label="Variable: $t1"]
n2140509435->n2140509432
n2140509432[label="Variable: $t2"]
n6973901->n2140509408
n2140509408[label="Goto: imprimir"]
n6974434->n2140509698
n2140509698[label="ETIQUETA: mult"]
n2140509698->n6974248
n6974248[label="Asignacion: $t5"]
n6974248 ->n6974239
n6974239[label=" * "]
n6974239->n2140509402
n2140509402[label="Variable: $t1"]
n6974239->n2140509414
n2140509414[label="Variable: $t2"]
n2140509698->n2140509387
n2140509387[label="Goto: imprimir"]
n6974434->n2140509393
n2140509393[label="ETIQUETA: div"]
n2140509393->n2140509366
n2140509366[label="Salto Condicional A: error"]
n2140509366 ->n2140509384
n2140509384[label=" == "]
n2140509384->n6974266
n6974266[label="Variable: $t2"]
n2140509384->n6973817
n6973817[label="Entero: 0"]
n2140509393->n6974272
n6974272[label="Asignacion: $t5"]
n6974272 ->n2140509378
n2140509378[label=" / "]
n2140509378->n2140509375
n2140509375[label="Variable: $t1"]
n2140509378->n6974269
n6974269[label="Variable: $t2"]
n2140509393->n2140509707
n2140509707[label="Goto: imprimir"]
n6974434->n6974311
n6974311[label="ETIQUETA: error"]
n6974311->n6974290
n6974290[label="PRINT()"]
n6974290->n6974296
n6974296[label="Cadena: ERROR: no se puede realizar una división entre 0."]
n6974311->n2140509713
n2140509713[label="PRINT()"]
n2140509713->n2140509339
n2140509339[label="Cadena: \n"]
n6974311->n6974302
n6974302[label="Goto: fin"]
n6974434->n2140509291
n2140509291[label="ETIQUETA: imprimir"]
n2140509291->n2140509390
n2140509390[label="PRINT()"]
n2140509390->n6974299
n6974299[label="Cadena: La respuesta de "]
n2140509291->n6974278
n6974278[label="PRINT()"]
n6974278->n2140509321
n2140509321[label="Variable: $t1"]
n2140509291->n6974323
n6974323[label="PRINT()"]
n6974323->n6974320
n6974320[label="Variable: $t3"]
n2140509291->n6974317
n6974317[label="PRINT()"]
n6974317->n6974329
n6974329[label="Variable: $t2"]
n2140509291->n2140509312
n2140509312[label="PRINT()"]
n2140509312->n2140509315
n2140509315[label="Cadena: es igual a:"]
n2140509291->n2140509306
n2140509306[label="PRINT()"]
n2140509306->n2140509309
n2140509309[label="Cadena: \n"]
n2140509291->n2140509300
n2140509300[label="PRINT()"]
n2140509300->n2140509303
n2140509303[label="Variable: $t5"]
n2140509291->n2140509294
n2140509294[label="PRINT()"]
n2140509294->n2140509297
n2140509297[label="Cadena: \n"]
n6974434->n6974440
n6974440[label="ETIQUETA: fin"]
n6974440->n6974359
n6974359[label="PRINT()"]
n6974359->n2140509333
n2140509333[label="Cadena: ¿Desea seguir ejecutando el programa? (Y/N)"]
n6974440->n6974305
n6974305[label="PRINT()"]
n6974305->n2140509270
n2140509270[label="Cadena: \n"]
n6974440->n6974347
n6974347[label="Asignacion: $t6"]
n6974347 ->n6974365
n6974365[label="Read()"]
n6974440->n2140509354
n2140509354[label="PRINT()"]
n2140509354->n6974380
n6974380[label="Cadena: \n"]
n6974440->n6974404
n6974404[label="Asignacion: $t7"]
n6974404 ->n2140509285
n2140509285[label=" Cast (Int) "]
n2140509285->n2140509258
n2140509258[label="Variable: $t6"]
n6974440->n6974401
n6974401[label="Salto Condicional A: menu"]
n6974401 ->n2140509249
n2140509249[label=" == "]
n2140509249->n6974389
n6974389[label="Variable: $t7"]
n2140509249->n2140509243
n2140509243[label="Entero: 89"]
n6974440->n6974410
n6974410[label="Salto Condicional A: salir"]
n6974410 ->n2140509246
n2140509246[label=" == "]
n2140509246->n2140509261
n2140509261[label="Variable: $t7"]
n2140509246->n6974407
n6974407[label="Entero: 78"]
n6974440->n6974386
n6974386[label="PRINT()"]
n6974386->n6974413
n6974413[label="Cadena: ERROR: Ingresar una opción válida."]
n6974440->n6974419
n6974419[label="PRINT()"]
n6974419->n2140509234
n2140509234[label="Cadena: \n"]
n6974440->n6974422
n6974422[label="Goto: fin"]
n6974434->n2140509288
n2140509288[label="ETIQUETA: salir"]
n2140509288->n6974443
n6974443[label="Exit"]
}