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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
|
/** Copyright (C) 2016 Free Software Foundation, Inc.
This generated file meltrunsup-inc.cc is part of GCC.
[DON'T EDIT THIS GENERATED FILE]
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>.
**/
/* start of code generated by generate_runtypesupport_cod2ctype */
melt_ptr_t melt_code_to_ctype (int code)
{
switch (code)
{
/* #1: CTYPE_BASIC_BLOCK */
case MELTBPAR_BB:
return MELT_PREDEF(CTYPE_BASIC_BLOCK);
/* #2: CTYPE_BITMAP */
case MELTBPAR_BITMAP:
return MELT_PREDEF(CTYPE_BITMAP);
/* #3: CTYPE_CSTRING */
case MELTBPAR_CSTRING:
return MELT_PREDEF(CTYPE_CSTRING);
/* #4: CTYPE_DOUBLE */
case MELTBPAR_DOUBLE:
return MELT_PREDEF(CTYPE_DOUBLE);
/* #5: CTYPE_EDGE */
case MELTBPAR_EDGE:
return MELT_PREDEF(CTYPE_EDGE);
/* #6: CTYPE_GIMPLE */
case MELTBPAR_GIMPLE:
return MELT_PREDEF(CTYPE_GIMPLE);
/* #7: CTYPE_GIMPLE_SEQ */
case MELTBPAR_GIMPLESEQ:
return MELT_PREDEF(CTYPE_GIMPLE_SEQ);
/* #8: CTYPE_LONG */
case MELTBPAR_LONG:
return MELT_PREDEF(CTYPE_LONG);
/* #9: CTYPE_LOOP */
case MELTBPAR_LOOP:
return MELT_PREDEF(CTYPE_LOOP);
/* #10: CTYPE_RTVEC */
case MELTBPAR_RTVEC:
return MELT_PREDEF(CTYPE_RTVEC);
/* #11: CTYPE_RTX */
case MELTBPAR_RTX:
return MELT_PREDEF(CTYPE_RTX);
/* #12: CTYPE_TREE */
case MELTBPAR_TREE:
return MELT_PREDEF(CTYPE_TREE);
/* #13: CTYPE_VALUE */
case MELTBPAR_PTR:
return MELT_PREDEF(CTYPE_VALUE);
/* #14: CTYPE_VOID */
default:
break;
} /*end switch code*/
return NULL;
} /* end of generated melt_code_to_ctype */
/** start of code generated by generate_runtypesupport_mag2str **/
const char* melt_obmag_string (int i)
{
#define MELT_MAG2STR_CACHEBUF 17
#define MELT_MAG2STR_MAGLEN 16
static char melt_cacheobmagbuf[MELT_MAG2STR_CACHEBUF][MELT_MAG2STR_MAGLEN] ;
switch (i)
{
case 0:
return "MeltObMag!0" ;
/*gtyctype #1 CTYPE_BASIC_BLOCK*/
case MELTOBMAG_BASICBLOCK:
return "MELTOBMAG_BASICBLOCK";
case MELTOBMAG_MAPBASICBLOCKS:
return "MELTOBMAG_MAPBASICBLOCKS";
/*gtyctype #2 CTYPE_BITMAP*/
case MELTOBMAG_BITMAP:
return "MELTOBMAG_BITMAP";
case MELTOBMAG_MAPBITMAPS:
return "MELTOBMAG_MAPBITMAPS";
/*gtyctype #3 CTYPE_CSTRING*/
/*runtypesupport_mag2str no boxed magic */
/*runtypesupport_mag2str no map magic */
/*gtyctype #4 CTYPE_DOUBLE*/
/*runtypesupport_mag2str no boxed magic */
/*runtypesupport_mag2str no map magic */
/*gtyctype #5 CTYPE_EDGE*/
case MELTOBMAG_EDGE:
return "MELTOBMAG_EDGE";
case MELTOBMAG_MAPEDGES:
return "MELTOBMAG_MAPEDGES";
/*gtyctype #6 CTYPE_GIMPLE*/
case MELTOBMAG_GIMPLE:
return "MELTOBMAG_GIMPLE";
case MELTOBMAG_MAPGIMPLES:
return "MELTOBMAG_MAPGIMPLES";
/*gtyctype #7 CTYPE_GIMPLE_SEQ*/
case MELTOBMAG_GIMPLESEQ:
return "MELTOBMAG_GIMPLESEQ";
case MELTOBMAG_MAPGIMPLESEQS:
return "MELTOBMAG_MAPGIMPLESEQS";
/*gtyctype #8 CTYPE_LONG*/
/*runtypesupport_mag2str no boxed magic */
/*runtypesupport_mag2str no map magic */
/*gtyctype #9 CTYPE_LOOP*/
case MELTOBMAG_LOOP:
return "MELTOBMAG_LOOP";
case MELTOBMAG_MAPLOOPS:
return "MELTOBMAG_MAPLOOPS";
/*gtyctype #10 CTYPE_RTVEC*/
case MELTOBMAG_RTVEC:
return "MELTOBMAG_RTVEC";
case MELTOBMAG_MAPRTVECS:
return "MELTOBMAG_MAPRTVECS";
/*gtyctype #11 CTYPE_RTX*/
case MELTOBMAG_RTX:
return "MELTOBMAG_RTX";
case MELTOBMAG_MAPRTXS:
return "MELTOBMAG_MAPRTXS";
/*gtyctype #12 CTYPE_TREE*/
case MELTOBMAG_TREE:
return "MELTOBMAG_TREE";
case MELTOBMAG_MAPTREES:
return "MELTOBMAG_MAPTREES";
/*gtyctype #13 CTYPE_VALUE*/
/*runtypesupport_mag2str no boxed magic */
/*runtypesupport_mag2str no map magic */
/*gtyctype #14 CTYPE_VOID*/
/*runtypesupport_mag2str no boxed magic */
/*runtypesupport_mag2str no map magic */
/*valdesc #1 VALDESC_BUCKETLONGS*/
case MELTOBMAG_BUCKETLONGS:
return "MELTOBMAG_BUCKETLONGS";
/*valdesc #2 VALDESC_CLOSURE*/
case MELTOBMAG_CLOSURE:
return "MELTOBMAG_CLOSURE";
/*valdesc #3 VALDESC_DECAY*/
case MELTOBMAG_DECAY:
return "MELTOBMAG_DECAY";
/*valdesc #4 VALDESC_DOUBLE*/
case MELTOBMAG_DOUBLE:
return "MELTOBMAG_DOUBLE";
/*valdesc #5 VALDESC_HOOK*/
case MELTOBMAG_HOOK:
return "MELTOBMAG_HOOK";
/*valdesc #6 VALDESC_INT*/
case MELTOBMAG_INT:
return "MELTOBMAG_INT";
/*valdesc #7 VALDESC_JSONOBJECT*/
case MELTOBMAG_JSONOBJECT:
return "MELTOBMAG_JSONOBJECT";
/*valdesc #8 VALDESC_LIST*/
case MELTOBMAG_LIST:
return "MELTOBMAG_LIST";
/*valdesc #9 VALDESC_MAPOBJECTS*/
case MELTOBMAG_MAPOBJECTS:
return "MELTOBMAG_MAPOBJECTS";
/*valdesc #10 VALDESC_MAPSTRINGS*/
case MELTOBMAG_MAPSTRINGS:
return "MELTOBMAG_MAPSTRINGS";
/*valdesc #11 VALDESC_MIXBIGINT*/
case MELTOBMAG_MIXBIGINT:
return "MELTOBMAG_MIXBIGINT";
/*valdesc #12 VALDESC_MIXINT*/
case MELTOBMAG_MIXINT:
return "MELTOBMAG_MIXINT";
/*valdesc #13 VALDESC_MIXLOC*/
case MELTOBMAG_MIXLOC:
return "MELTOBMAG_MIXLOC";
/*valdesc #14 VALDESC_MULTIPLE*/
case MELTOBMAG_MULTIPLE:
return "MELTOBMAG_MULTIPLE";
/*valdesc #15 VALDESC_OBJECT*/
case MELTOBMAG_OBJECT:
return "MELTOBMAG_OBJECT";
/*valdesc #16 VALDESC_PAIR*/
case MELTOBMAG_PAIR:
return "MELTOBMAG_PAIR";
/*valdesc #17 VALDESC_REAL*/
case MELTOBMAG_REAL:
return "MELTOBMAG_REAL";
/*valdesc #18 VALDESC_ROUTINE*/
case MELTOBMAG_ROUTINE:
return "MELTOBMAG_ROUTINE";
/*valdesc #19 VALDESC_SPECIAL_DATA*/
case MELTOBMAG_SPECIAL_DATA:
return "MELTOBMAG_SPECIAL_DATA";
/*valdesc #20 VALDESC_STRBUF*/
case MELTOBMAG_STRBUF:
return "MELTOBMAG_STRBUF";
/*valdesc #21 VALDESC_STRING*/
case MELTOBMAG_STRING:
return "MELTOBMAG_STRING";
default:
{
int ix = (i & 0x3ffffff) % MELT_MAG2STR_CACHEBUF;
snprintf (melt_cacheobmagbuf[ix], MELT_MAG2STR_MAGLEN-1, "?MeltObjMag?%d", i);
return melt_cacheobmagbuf[ix];
}
} /* end switch */
} /* end generated melt_obmag_string */
/** end of code generated by generate_runtypesupport_mag2str **/
/** generated by generate_runtypesupport_forwcopy_fun **/
/* cheney like forwarding generated function (emitted in warmelt-modes)*/
melt_ptr_t
melt_forwarded_copy (melt_ptr_t p)
{
/* header generated by generate_runtypesupport_forwcopy_fun */
melt_ptr_t n = NULL;
int mag = 0;
///
#if MELT_HAVE_RUNTIME_DEBUG > 0
if (MELT_UNLIKELY(melt_alptr_1 != NULL && (void*) p == melt_alptr_1))
{
melt_debuggc_eprintf("melt_forwarded_copy #%ld src alptr_1 %p",
melt_nb_garbcoll, melt_alptr_1);
melt_break_alptr_1("forwardcopy src=alptr1");
};
if (MELT_UNLIKELY(melt_alptr_2 != NULL && (void*) p == melt_alptr_2))
{
melt_debuggc_eprintf("melt_forwarded_copy #%ld src alptr_2 %p",
melt_nb_garbcoll, melt_alptr_2);
melt_break_alptr_2("forwardcopy src=alptr2");
};
#endif /*MELT_HAVE_RUNTIME_DEBUG*/
///
if (MELT_UNLIKELY(p->u_discr == MELT_FORWARDED_DISCR))
return ((struct meltforward_st *) p)->forward;
gcc_assert (melt_is_young (p));
gcc_assert (p->u_discr);
gcc_assert (p->u_discr != MELT_FORWARDED_DISCR);
if (p->u_discr->meltobj_class == MELT_FORWARDED_DISCR)
mag =
((meltobject_ptr_t)
(((struct meltforward_st *) p->u_discr)->forward))->meltobj_magic;
else
mag = p->u_discr->meltobj_magic;
melt_forward_counter++;
switch (mag) /* end of generated header of melt_forwarded_copy */
{
/* value descriptor forward copy for melt_forwarded_copy */
/*valdesc #1 VALDESC_BUCKETLONGS*/
case MELTOBMAG_BUCKETLONGS:
{
struct meltbucketlongs_st*src = (struct meltbucketlongs_st*) p;
struct meltbucketlongs_st*dst = NULL;
/* copy chunk from VALDESC_BUCKETLONGS in warmelt-base.melt */
// in file warmelt-base.melt line 2779
/* ggc_alloc_meltbucketlongs_st should be gengtype generated for VALDESC_BUCKETLONGS */
unsigned lnix = src->buckl_lenix;
unsigned len = melt_primtab[lnix];
unsigned ucnt = 0;
unsigned ix = 0;
size_t sz = len*sizeof (struct melt_bucketlongentry_st)
+ offsetof(struct meltbucketlongs_st, buckl_entab);
gcc_assert (lnix > 0);
gcc_assert (len > 0);
dst = /* Don't need a cleared allocation! */
ggc_alloc_meltbucketlongs_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
dst->buckl_lenix = src->buckl_lenix;
dst->buckl_aux = src->buckl_aux;
dst->buckl_xnum = src->buckl_xnum;
ucnt = dst->buckl_ucount = src->buckl_ucount;
for (ix = 0;
ix < ucnt;
ix++)
dst->buckl_entab[ix] = src->buckl_entab[ix];
for (ix = ucnt;
ix < len;
ix++)
{
dst->buckl_entab[ix].ebl_at = 0L;
dst->buckl_entab[ix].ebl_va = NULL;
}
/* end copy chunk VALDESC_BUCKETLONGS */
n = (melt_ptr_t) dst;
break;
}
/*valdesc #2 VALDESC_CLOSURE*/
case MELTOBMAG_CLOSURE:
{
struct meltclosure_st*src = (struct meltclosure_st*) p;
struct meltclosure_st*dst = NULL;
/* copy VALDESC_CLOSURE in warmelt-base.melt */
// in file warmelt-base.melt line 2553
/* ggc_alloc_meltclosure_st should be gengtype generated for VALDESC_CLOSURE */
#ifndef ggc_alloc_meltclosure_st
#define ggc_alloc_meltclosure_st(SIZE) ((struct meltclosure_st *)(ggc_internal_alloc (SIZE)))
#endif /* ggc_alloc_meltclosure_st */
int nbv = (int) src->nbval;
size_t sz = nbv*sizeof(void*) + offsetof(struct meltclosure_st, tabval);
dst =
/* Don't need a cleared allocation! */
ggc_alloc_meltclosure_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
dst->rout = src->rout;
dst->nbval = (unsigned) nbv;
for (int ix = 0;
ix < nbv;
ix++)
dst->tabval[ix] = src->tabval[ix];
n = (melt_ptr_t) dst;
break;
}
/*valdesc #3 VALDESC_DECAY*/
case MELTOBMAG_DECAY:
{
struct meltdecay_st*src = (struct meltdecay_st*) p;
struct meltdecay_st*dst = NULL;
/* from VALDESC_DECAY in warmelt-base.melt */
// in file warmelt-base.melt line 2443
/* ggc_alloc_meltdecay_st should be gengtype generated for VALDESC_DECAY */
#ifndef ggc_alloc_meltdecay_st
#define ggc_alloc_meltdecay_st() ((struct meltdecay_st *)(ggc_internal_alloc (sizeof (struct meltdecay_st))))
#endif /* ggc_alloc_meltdecay_st */
dst = ggc_alloc_meltdecay_st ();
*dst = *src;
melt_forwarded_copy_byte_count += sizeof(*dst);
n = (melt_ptr_t) dst;
break;
}
/*valdesc #4 VALDESC_DOUBLE*/
case MELTOBMAG_DOUBLE:
{
struct meltdouble_st*src = (struct meltdouble_st*) p;
struct meltdouble_st*dst = NULL;
/* from VALDESC_DOUBLE in warmelt-base.melt */
/* ggc_alloc_meltdouble_st should be gengtype generated for VALDESC_DOUBLE */
#ifndef ggc_alloc_meltdouble_st
#define ggc_alloc_meltdouble_st() ((struct meltdouble_st *)(ggc_internal_alloc (sizeof (struct meltdouble_st))))
#endif
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltdouble_st ();
melt_forwarded_copy_byte_count += sizeof(*dst);
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #5 VALDESC_HOOK*/
case MELTOBMAG_HOOK:
{
struct melthook_st*src = (struct melthook_st*) p;
struct melthook_st*dst = NULL;
/* from VALDESC_HOOK in warmelt-base.melt */
// in file warmelt-base.melt line 2712
/* ggc_alloc_melthook_st should be gengtype generated for VALDESC_HOOK */
#ifndef ggc_alloc_melthook_st
#define ggc_alloc_melthook_st(SIZE) ((struct melthook_st *)(ggc_internal_alloc (SIZE)))
#endif
int nbv = (int) src->nbval;
int ix = 0;
size_t sz = nbv*sizeof(void*) + offsetof(struct melthook_st, tabval);
dst =
/* Don't need a cleared allocation! */
ggc_alloc_melthook_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
strncpy (dst->hookname, src->hookname, MELT_HOOKNAME_LEN);
dst->hookname[MELT_HOOKNAME_LEN - 1] = 0;
dst->nbval = (unsigned) nbv;
dst->hookad = src->hookad;
for (ix = 0;
ix < nbv;
ix++)
dst->tabval[ix] = src->tabval[ix];
dst->hookdata = src->hookdata;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #6 VALDESC_INT*/
case MELTOBMAG_INT:
{
struct meltint_st*src = (struct meltint_st*) p;
struct meltint_st*dst = NULL;
/* from VALDESC_INT */
/* ggc_alloc_meltint_st should be gengtype generated for VALDESC_INT */
#ifndef ggc_alloc_meltint_st
#define ggc_alloc_meltint_st() ((struct meltint_st *)(ggc_internal_alloc (sizeof (struct meltint_st))))
#endif
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltint_st ();
melt_forwarded_copy_byte_count += sizeof(*dst);
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #7 VALDESC_JSONOBJECT*/
case MELTOBMAG_JSONOBJECT:
{
struct meltjsonobject_st*src = (struct meltjsonobject_st*) p;
struct meltjsonobject_st*dst = NULL;
/* copy chunk from VALDESC_JSONOBJECT in warmelt-base.melt */
// in file warmelt-base.melt line 2942
/* ggc_alloc_meltjsonobject_st should be gengtype generated for VALDESC_JSONOBJECT */
unsigned srcsize = src->jsob_size;
size_t sz = srcsize * sizeof(melt_jsonobentry_st)
+ offsetof(struct meltjsonobject_st, jsob_entab);
dst = /* Don't need a cleared allocation! */
ggc_alloc_meltjsonobject_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
dst->jsob_aux = src->jsob_aux;
dst->jsob_size = srcsize;
for (unsigned ix = 0;
ix < srcsize;
ix++)
dst->jsob_entab[ix] = src->jsob_entab[ix];
/* end copy chunk VALDESC_JSONOBJECT */
n = (melt_ptr_t) dst;
break;
}
/*valdesc #8 VALDESC_LIST*/
case MELTOBMAG_LIST:
{
struct meltlist_st*src = (struct meltlist_st*) p;
struct meltlist_st*dst = NULL;
/* copy chunk from VALDESC_LIST */
// in file warmelt-base.melt line 3149
/* ggc_alloc_meltlist_st should be gengtype generated for VALDESC_LIST */
#ifndef ggc_alloc_meltlist_st
#define ggc_alloc_meltlist_st() ((struct meltlist_st *)(ggc_internal_alloc (sizeof (struct meltlist_st))))
#endif
dst =
/* Don't need a cleared allocation! */
ggc_alloc_meltlist_st ();
*dst = *src;
melt_forwarded_copy_byte_count += sizeof(*dst);
/* end chunk from VALDESC_LIST */
n = (melt_ptr_t) dst;
break;
}
/*valdesc #9 VALDESC_MAPOBJECTS*/
case MELTOBMAG_MAPOBJECTS:
{
struct meltmapobjects_st*src = (struct meltmapobjects_st*) p;
struct meltmapobjects_st*dst = NULL;
/* copy VALDESC_MAPOBJECTS in warmelt-base.melt */
// in file warmelt-base.melt line 2218
/* ggc_alloc_meltmapobjects_st should be gengtype generated for VALDESC_MAPOBJECTS */
#ifndef ggc_alloc_meltmapobjects_st
#define ggc_alloc_meltmapobjects_st() ((struct meltmapobjects_st *)(ggc_internal_alloc(sizeof(struct meltmapobjects_st))))
#endif /* ggc_alloc_meltmapobjects_st */
#ifndef ggc_alloc_vec_entryobjectsmelt_st
#define ggc_alloc_vec_entryobjectsmelt_st(N) ((struct entryobjectsmelt_st *) (ggc_internal_alloc(sizeof(struct entryobjectsmelt_st)*(N))))
#endif /* ggc_alloc_vec_entryobjectsmelt_st */
#ifndef ggc_alloc_cleared_vec_entryobjectsmelt_st
#define ggc_alloc_cleared_vec_entryobjectsmelt_st(N) ((struct entryobjectsmelt_st *) (ggc_internal_cleared_alloc(sizeof(struct entryobjectsmelt_st)*(N))))
#endif /* ggc_alloc_cleared_vec_entryobjectsmelt_st */
int siz = melt_primtab[src->lenix];
size_t sz = 0;
dst =
/* copychunk mapobject on't need a cleared allocation. */
ggc_alloc_meltmapobjects_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_hash = src->meltmap_hash;
dst->meltmap_aux = src->meltmap_aux;
sz = sizeof(*dst);
if (siz > 0 && src->entab)
{
/* Don't need a cleared allocation. */
dst->entab = ggc_alloc_vec_entryobjectsmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
sz += siz * sizeof(dst->entab[0]);
}
else
dst->entab = NULL;
melt_forwarded_copy_byte_count += sz;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #10 VALDESC_MAPSTRINGS*/
case MELTOBMAG_MAPSTRINGS:
{
struct meltmapstrings_st*src = (struct meltmapstrings_st*) p;
struct meltmapstrings_st*dst = NULL;
/* copy VALDESC_MAPSTRINGS in warmelt-base.melt */
// in file warmelt-base.melt line 2331
/* ggc_alloc_meltmapstrings_st should be gengtype generated for VALDESC_MAPSTRINGS */
#ifndef ggc_alloc_meltmapstrings_st
#define ggc_alloc_meltmapstrings_st() ((struct meltmapstrings_st *)(ggc_internal_alloc (sizeof (struct meltmapstrings_st))))
#endif /* ggc_alloc_meltmapstrings_st */
#ifndef ggc_alloc_vec_entrystringsmelt_st
#define ggc_alloc_vec_entrystringsmelt_st(N) ((struct entrystringsmelt_st *)(ggc_internal_alloc (sizeof (struct entrystringsmelt_st)*(N))))
#endif /* ggc_alloc_vec_entrystringsmelt_st */
#ifndef ggc_alloc_cleared_vec_entrystringsmelt_st
#define ggc_alloc_cleared_vec_entrystringsmelt_st(N) ((struct entrystringsmelt_st *)(ggc_internal_cleared_alloc (sizeof (struct entrystringsmelt_st)*(N))))
#endif /* ggc_alloc_cleared_vec_entrystringsmelt_st */
int siz = melt_primtab[src->lenix];
size_t sz = 0;
dst =
/* copychunk mapstring on't need a cleared allocation. */
ggc_alloc_meltmapstrings_st ();
sz = sizeof (*dst);
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
/* Don't need a cleared allocation. */
dst->entab = ggc_alloc_vec_entrystringsmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
sz += siz * sizeof(dst->entab[0]);
}
else
dst->entab = NULL;
melt_forwarded_copy_byte_count += sz;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #11 VALDESC_MIXBIGINT*/
case MELTOBMAG_MIXBIGINT:
{
struct meltmixbigint_st*src = (struct meltmixbigint_st*) p;
struct meltmixbigint_st*dst = NULL;
/* from VALDESC_MIXBIGINT in warmelt-base.melt */
// in file warmelt-base.melt line 3339
/* ggc_alloc_meltmixbigint_st should be gengtype generated for VALDESC_MIXBIGINT */
#ifndef ggc_alloc_meltmixbigint_st
#define ggc_alloc_meltmixbigint_st(SIZE) ((struct meltmixbigint_st *)(ggc_internal_alloc (SIZE)))
#endif
unsigned blen = src->biglen;
size_t sz = blen*sizeof(long) + offsetof(struct meltmixbigint_st, tabig);
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltmixbigint_st (sz);
dst->discr = src->discr;
dst->ptrval = src->ptrval;
dst->negative = src->negative;
dst->biglen = blen;
memcpy (dst->tabig, src->tabig, blen*sizeof(dst->tabig[0]));
melt_forwarded_copy_byte_count += sz;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #12 VALDESC_MIXINT*/
case MELTOBMAG_MIXINT:
{
struct meltmixint_st*src = (struct meltmixint_st*) p;
struct meltmixint_st*dst = NULL;
/* from VALDESC_MIXINT in warmelt-base.melt */
// in file warmelt-base.melt line 3269
/* ggc_alloc_meltmixint_st should be gengtype generated for VALDESC_MIXINT */
#ifndef ggc_alloc_meltmixint_st
#define ggc_alloc_meltmixint_st() ((struct meltmixint_st *)(ggc_internal_alloc (sizeof (struct meltmixint_st))))
#endif
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltmixint_st ();
melt_forwarded_copy_byte_count += sizeof(*dst);
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #13 VALDESC_MIXLOC*/
case MELTOBMAG_MIXLOC:
{
struct meltmixloc_st*src = (struct meltmixloc_st*) p;
struct meltmixloc_st*dst = NULL;
/* from VALDESC_MIXLOC in warmelt-base.melt */
// in file warmelt-base.melt line 3301
/* ggc_alloc_meltmixloc_st should be gengtype generated for VALDESC_MIXLOC */
#ifndef ggc_alloc_meltmixloc_st
#define ggc_alloc_meltmixloc_st() ((struct meltmixloc_st *)(ggc_internal_alloc (sizeof (struct meltmixloc_st))))
#endif
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltmixloc_st ();
*dst = *src;
melt_forwarded_copy_byte_count += sizeof(*dst);
n = (melt_ptr_t) dst;
break;
}
/*valdesc #14 VALDESC_MULTIPLE*/
case MELTOBMAG_MULTIPLE:
{
struct meltmultiple_st*src = (struct meltmultiple_st*) p;
struct meltmultiple_st*dst = NULL;
/* copy chunk from VALDESC_MULTIPLE in warmelt-base.melt */
// in file warmelt-base.melt line 2485
/* ggc_alloc_meltmultiple_st should be gengtype generated for VALDESC_MULTIPLE */
#ifndef ggc_alloc_meltmultiple_st
#define ggc_alloc_meltmultiple_st(SIZE) ((struct meltmultiple_st *)(ggc_internal_alloc(SIZE)))
#endif /* ggc_alloc_meltmultiple_st */
int nbv = (int) src->nbval;
size_t sz = nbv*sizeof(void*) + offsetof(struct meltmultiple_st, tabval);
dst =
/* Don't need a cleared allocation! */
ggc_alloc_meltmultiple_st (sz);
melt_forwarded_copy_byte_count += sz;
/* we cannot copy the whole src, because MELT_FLEXIBLE_DIM might be
1 and nbval could be 0 */
dst->discr = src->discr;
dst->nbval = src->nbval;
for (int ix = 0;
ix < nbv;
ix++)
dst->tabval[ix] = src->tabval[ix];
/* end copy chunk from VALDESC_MULTIPLE */
n = (melt_ptr_t) dst;
break;
}
/*valdesc #15 VALDESC_OBJECT*/
case MELTOBMAG_OBJECT:
{
struct meltobject_st*src = (struct meltobject_st*) p;
struct meltobject_st*dst = NULL;
/* from VALDESC_OBJECT file warmelt-base.melt */
// in file warmelt-base.melt line 2101
/* ggc_alloc_meltobject_st should be gengtype generated for VALDESC_OBJECT */
#ifndef ggc_alloc_meltobject_st
#define ggc_alloc_meltobject_st(SIZE) ((struct meltobject_st *)(ggc_internal_alloc (SIZE)))
#endif /* ggc_alloc_meltobject_st */
int ix = 0;
int oblen = (int) (src->obj_len);
size_t sz = 0;
/* We don't need to clear at allocation, since the object is
explicitly filled here! */
sz = oblen*sizeof(void*)
+ offsetof(struct meltobject_st, obj_vartab);
dst = ggc_alloc_meltobject_st (sz);
melt_forwarded_copy_byte_count += sz;
/* we cannot copy the whole src, because MELT_FLEXIBLE_DIM might be 1 */
dst->meltobj_class = src->meltobj_class;
dst->obj_hash = src->obj_hash;
dst->obj_num = src->obj_num;
dst->obj_len = oblen;
for (ix = 0;
ix < oblen;
ix++)
dst->obj_vartab[ix] = src->obj_vartab[ix];
n = (melt_ptr_t) dst;
break;
}
/*valdesc #16 VALDESC_PAIR*/
case MELTOBMAG_PAIR:
{
struct meltpair_st*src = (struct meltpair_st*) p;
struct meltpair_st*dst = NULL;
/* copy VALDESC_PAIR in warmelt-base.melt */
// in file warmelt-base.melt line 3112
/* ggc_alloc_meltpair_st should be gengtype gengtype for VALDESC_PAIR */
#ifndef ggc_alloc_meltpair_st
#define ggc_alloc_meltpair_st() ((struct meltpair_st *)(ggc_internal_alloc (sizeof (struct meltpair_st))))
#endif
dst = /* Don't need a cleared allocation. */
ggc_alloc_meltpair_st ();
*dst = *src;
melt_forwarded_copy_byte_count += sizeof(*dst);
n = (melt_ptr_t) dst;
break;
}
/*valdesc #17 VALDESC_REAL*/
case MELTOBMAG_REAL:
{
struct meltreal_st*src = (struct meltreal_st*) p;
struct meltreal_st*dst = NULL;
/* from VALDESC_REAL in warmelt-base.melt */
// in file warmelt-base.melt line 3376
/* ggc_alloc_meltreal_st should be gengtype generated for VALDESC_REAL */
#ifndef ggc_alloc_meltreal_st
#define ggc_alloc_meltreal_st() ((struct meltreal_st *)(ggc_internal_alloc (sizeof (struct meltreal_st))))
#endif
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltreal_st ();
melt_forwarded_copy_byte_count += sizeof(*dst);
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #18 VALDESC_ROUTINE*/
case MELTOBMAG_ROUTINE:
{
struct meltroutine_st*src = (struct meltroutine_st*) p;
struct meltroutine_st*dst = NULL;
/* from VALDESC_ROUTINE in warmelt-base.melt */
// in file warmelt-base.melt line 2638
/* ggc_alloc_meltroutine_st should be gengtype generated for VALDESC_ROUTINE */
#ifndef ggc_alloc_meltroutine_st
#define ggc_alloc_meltroutine_st(SIZE) ((struct meltroutine_st *)(ggc_internal_alloc (SIZE)))
#endif
int nbv = (int) src->nbval;
size_t sz = nbv*sizeof(void*) + offsetof(struct meltroutine_st, tabval);
int ix = 0;
dst =
/* Don't need a cleared allocation! */
ggc_alloc_meltroutine_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
strncpy (dst->routdescr, src->routdescr, MELT_ROUTDESCR_LEN);
dst->routdescr[MELT_ROUTDESCR_LEN - 1] = 0;
dst->nbval = (unsigned) nbv;
dst->routfunad = src->routfunad;
for (ix = 0;
ix < nbv;
ix++)
dst->tabval[ix] = src->tabval[ix];
dst->routdata = src->routdata;
n = (melt_ptr_t) dst;
break;
}
/*valdesc #19 VALDESC_SPECIAL_DATA*/
case MELTOBMAG_SPECIAL_DATA:
{
struct meltspecialdata_st*src = (struct meltspecialdata_st*) p;
struct meltspecialdata_st*dst = NULL;
/* from VALDESC_SPECIAL_DATA in warmelt-base.melt */
// in file warmelt-base.melt line 3407
/* ggc_alloc_meltspecialdata_st should be gengtype generated for VALDESC_SPECIAL_DATA */
#ifndef ggc_alloc_meltspecialdata_st
#define ggc_alloc_meltspecialdata_st() ((struct meltspecialdata_st *)(ggc_internal_alloc (sizeof (struct meltspecialdata_st))))
#endif
dst = ggc_alloc_meltspecialdata_st ();
*dst = *src;
/* mark the new copy! */
dst->meltspec_mark = 1;
/* add the new copy to the old (major) special list */
dst->meltspec_next = melt_oldspecdatalist;
melt_oldspecdatalist = dst;
melt_forwarded_copy_byte_count += sizeof(*dst);
n = (melt_ptr_t) dst;
break;
}
/*valdesc #20 VALDESC_STRBUF*/
case MELTOBMAG_STRBUF:
{
struct meltstrbuf_st*src = (struct meltstrbuf_st*) p;
struct meltstrbuf_st*dst = NULL;
/* copy chunk from VALDESC_STRBUF in warmelt-base.melt */
// in file warmelt-base.melt line 3056
/* ggc_alloc_meltstrbuf_st should be gengtype gengtype for VALDESC_STRBUF */
#ifndef ggc_alloc_meltstrbuf_st
#define ggc_alloc_meltstrbuf_st() ((struct meltstrbuf_st *)(ggc_internal_alloc (sizeof (struct meltstrbuf_st))))
#endif
unsigned blen = melt_primtab[src->buflenix];
size_t sz = sizeof(*dst);
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltstrbuf_st ();
dst->discr = src->discr;
dst->bufstart = src->bufstart;
dst->bufend = src->bufend;
dst->buflenix = src->buflenix;
if (blen > 0)
{
dst->bufzn = CONST_CAST (char *, ggc_alloc_string (src->bufzn, blen+1));
dst->bufzn[blen] = (char)0;
sz += blen+1;
}
else
dst->bufzn = NULL;
melt_forwarded_copy_byte_count += sz;
/* end copy chunk from VALDESC_STRBUF */
n = (melt_ptr_t) dst;
break;
}
/*valdesc #21 VALDESC_STRING*/
case MELTOBMAG_STRING:
{
struct meltstring_st*src = (struct meltstring_st*) p;
struct meltstring_st*dst = NULL;
/* copy from VALDESC_STRING file warmelt-base.melt */
// in file warmelt-base.melt line 3007
/* ggc_alloc_meltstring_st should be gengtype generated for VALDESC_STRING */
#ifndef ggc_alloc_meltstring_st
#define ggc_alloc_meltstring_st(SIZE) ((struct meltstring_st *)(ggc_internal_alloc (SIZE)))
#endif
int srclen = (src->val)?strlen (src->val):0;
size_t sz = offsetof(struct meltstring_st, val) + (srclen+1);
dst =
/* Don't need a cleared allocation. */
ggc_alloc_meltstring_st (sz);
melt_forwarded_copy_byte_count += sz;
dst->discr = src->discr;
memcpy (dst->val, src->val, srclen);
dst->val[srclen] = (char)0;
dst->slen = (unsigned) srclen;
/* end copy from VALDESC_STRING */
n = (melt_ptr_t) dst;
break;
}
/* gty ctype forward copy for melt_forwarded_copy */
/*forwcopy gtyctype #1 CTYPE_BASIC_BLOCK generated in warmelt-modes */
case MELTOBMAG_BASICBLOCK:
{
/* macro ggc_alloc_meltbasicblock_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltbasicblock_st
#define ggc_alloc_meltbasicblock_st() ((struct meltbasicblock_st*)(ggc_internal_alloc (sizeof (struct meltbasicblock_st))))
#endif /* ggc_alloc_meltbasicblock_st */
struct meltbasicblock_st *src = (struct meltbasicblock_st*) p;
struct meltbasicblock_st *dst = ggc_alloc_meltbasicblock_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPBASICBLOCKS:
{
/* ggc_alloc_meltmapbasicblocks_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmapbasicblocks_st
#define ggc_alloc_meltmapbasicblocks_st() ((struct meltmapbasicblocks_st*) (ggc_internal_alloc (sizeof (struct meltmapbasicblocks_st))))
#endif /* ggc_alloc_meltmapbasicblocks_st */
/* ggc_alloc_vec_entrybasicblockmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entrybasicblockmelt_st
#define ggc_alloc_vec_entrybasicblockmelt_st(N) ((struct entrybasicblockmelt_st*) (ggc_internal_alloc (sizeof (struct entrybasicblockmelt_st) * (N))))
#endif
struct meltmapbasicblocks_st *src = (struct meltmapbasicblocks_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmapbasicblocks_st *dst = ggc_alloc_meltmapbasicblocks_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entrybasicblockmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #2 CTYPE_BITMAP generated in warmelt-modes */
case MELTOBMAG_BITMAP:
{
/* macro ggc_alloc_meltbitmap_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltbitmap_st
#define ggc_alloc_meltbitmap_st() ((struct meltbitmap_st*)(ggc_internal_alloc (sizeof (struct meltbitmap_st))))
#endif /* ggc_alloc_meltbitmap_st */
struct meltbitmap_st *src = (struct meltbitmap_st*) p;
struct meltbitmap_st *dst = ggc_alloc_meltbitmap_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPBITMAPS:
{
/* ggc_alloc_meltmapbitmaps_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmapbitmaps_st
#define ggc_alloc_meltmapbitmaps_st() ((struct meltmapbitmaps_st*) (ggc_internal_alloc (sizeof (struct meltmapbitmaps_st))))
#endif /* ggc_alloc_meltmapbitmaps_st */
/* ggc_alloc_vec_entrybitmapmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entrybitmapmelt_st
#define ggc_alloc_vec_entrybitmapmelt_st(N) ((struct entrybitmapmelt_st*) (ggc_internal_alloc (sizeof (struct entrybitmapmelt_st) * (N))))
#endif
struct meltmapbitmaps_st *src = (struct meltmapbitmaps_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmapbitmaps_st *dst = ggc_alloc_meltmapbitmaps_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entrybitmapmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #3 CTYPE_EDGE generated in warmelt-modes */
case MELTOBMAG_EDGE:
{
/* macro ggc_alloc_meltedge_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltedge_st
#define ggc_alloc_meltedge_st() ((struct meltedge_st*)(ggc_internal_alloc (sizeof (struct meltedge_st))))
#endif /* ggc_alloc_meltedge_st */
struct meltedge_st *src = (struct meltedge_st*) p;
struct meltedge_st *dst = ggc_alloc_meltedge_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPEDGES:
{
/* ggc_alloc_meltmapedges_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmapedges_st
#define ggc_alloc_meltmapedges_st() ((struct meltmapedges_st*) (ggc_internal_alloc (sizeof (struct meltmapedges_st))))
#endif /* ggc_alloc_meltmapedges_st */
/* ggc_alloc_vec_entryedgemelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entryedgemelt_st
#define ggc_alloc_vec_entryedgemelt_st(N) ((struct entryedgemelt_st*) (ggc_internal_alloc (sizeof (struct entryedgemelt_st) * (N))))
#endif
struct meltmapedges_st *src = (struct meltmapedges_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmapedges_st *dst = ggc_alloc_meltmapedges_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entryedgemelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #4 CTYPE_GIMPLE generated in warmelt-modes */
case MELTOBMAG_GIMPLE:
{
/* macro ggc_alloc_meltgimple_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltgimple_st
#define ggc_alloc_meltgimple_st() ((struct meltgimple_st*)(ggc_internal_alloc (sizeof (struct meltgimple_st))))
#endif /* ggc_alloc_meltgimple_st */
struct meltgimple_st *src = (struct meltgimple_st*) p;
struct meltgimple_st *dst = ggc_alloc_meltgimple_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPGIMPLES:
{
/* ggc_alloc_meltmapgimples_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmapgimples_st
#define ggc_alloc_meltmapgimples_st() ((struct meltmapgimples_st*) (ggc_internal_alloc (sizeof (struct meltmapgimples_st))))
#endif /* ggc_alloc_meltmapgimples_st */
/* ggc_alloc_vec_entrygimplemelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entrygimplemelt_st
#define ggc_alloc_vec_entrygimplemelt_st(N) ((struct entrygimplemelt_st*) (ggc_internal_alloc (sizeof (struct entrygimplemelt_st) * (N))))
#endif
struct meltmapgimples_st *src = (struct meltmapgimples_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmapgimples_st *dst = ggc_alloc_meltmapgimples_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entrygimplemelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #5 CTYPE_GIMPLE_SEQ generated in warmelt-modes */
case MELTOBMAG_GIMPLESEQ:
{
/* macro ggc_alloc_meltgimpleseq_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltgimpleseq_st
#define ggc_alloc_meltgimpleseq_st() ((struct meltgimpleseq_st*)(ggc_internal_alloc (sizeof (struct meltgimpleseq_st))))
#endif /* ggc_alloc_meltgimpleseq_st */
struct meltgimpleseq_st *src = (struct meltgimpleseq_st*) p;
struct meltgimpleseq_st *dst = ggc_alloc_meltgimpleseq_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPGIMPLESEQS:
{
/* ggc_alloc_meltmapgimpleseqs_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmapgimpleseqs_st
#define ggc_alloc_meltmapgimpleseqs_st() ((struct meltmapgimpleseqs_st*) (ggc_internal_alloc (sizeof (struct meltmapgimpleseqs_st))))
#endif /* ggc_alloc_meltmapgimpleseqs_st */
/* ggc_alloc_vec_entrygimpleseqmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entrygimpleseqmelt_st
#define ggc_alloc_vec_entrygimpleseqmelt_st(N) ((struct entrygimpleseqmelt_st*) (ggc_internal_alloc (sizeof (struct entrygimpleseqmelt_st) * (N))))
#endif
struct meltmapgimpleseqs_st *src = (struct meltmapgimpleseqs_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmapgimpleseqs_st *dst = ggc_alloc_meltmapgimpleseqs_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entrygimpleseqmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #6 CTYPE_LOOP generated in warmelt-modes */
case MELTOBMAG_LOOP:
{
/* macro ggc_alloc_meltloop_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltloop_st
#define ggc_alloc_meltloop_st() ((struct meltloop_st*)(ggc_internal_alloc (sizeof (struct meltloop_st))))
#endif /* ggc_alloc_meltloop_st */
struct meltloop_st *src = (struct meltloop_st*) p;
struct meltloop_st *dst = ggc_alloc_meltloop_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPLOOPS:
{
/* ggc_alloc_meltmaploops_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmaploops_st
#define ggc_alloc_meltmaploops_st() ((struct meltmaploops_st*) (ggc_internal_alloc (sizeof (struct meltmaploops_st))))
#endif /* ggc_alloc_meltmaploops_st */
/* ggc_alloc_vec_entryloopmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entryloopmelt_st
#define ggc_alloc_vec_entryloopmelt_st(N) ((struct entryloopmelt_st*) (ggc_internal_alloc (sizeof (struct entryloopmelt_st) * (N))))
#endif
struct meltmaploops_st *src = (struct meltmaploops_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmaploops_st *dst = ggc_alloc_meltmaploops_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entryloopmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #7 CTYPE_RTVEC generated in warmelt-modes */
case MELTOBMAG_RTVEC:
{
/* macro ggc_alloc_meltrtvec_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltrtvec_st
#define ggc_alloc_meltrtvec_st() ((struct meltrtvec_st*)(ggc_internal_alloc (sizeof (struct meltrtvec_st))))
#endif /* ggc_alloc_meltrtvec_st */
struct meltrtvec_st *src = (struct meltrtvec_st*) p;
struct meltrtvec_st *dst = ggc_alloc_meltrtvec_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPRTVECS:
{
/* ggc_alloc_meltmaprtvecs_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmaprtvecs_st
#define ggc_alloc_meltmaprtvecs_st() ((struct meltmaprtvecs_st*) (ggc_internal_alloc (sizeof (struct meltmaprtvecs_st))))
#endif /* ggc_alloc_meltmaprtvecs_st */
/* ggc_alloc_vec_entryrtvecmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entryrtvecmelt_st
#define ggc_alloc_vec_entryrtvecmelt_st(N) ((struct entryrtvecmelt_st*) (ggc_internal_alloc (sizeof (struct entryrtvecmelt_st) * (N))))
#endif
struct meltmaprtvecs_st *src = (struct meltmaprtvecs_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmaprtvecs_st *dst = ggc_alloc_meltmaprtvecs_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entryrtvecmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #8 CTYPE_RTX generated in warmelt-modes */
case MELTOBMAG_RTX:
{
/* macro ggc_alloc_meltrtx_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltrtx_st
#define ggc_alloc_meltrtx_st() ((struct meltrtx_st*)(ggc_internal_alloc (sizeof (struct meltrtx_st))))
#endif /* ggc_alloc_meltrtx_st */
struct meltrtx_st *src = (struct meltrtx_st*) p;
struct meltrtx_st *dst = ggc_alloc_meltrtx_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPRTXS:
{
/* ggc_alloc_meltmaprtxs_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmaprtxs_st
#define ggc_alloc_meltmaprtxs_st() ((struct meltmaprtxs_st*) (ggc_internal_alloc (sizeof (struct meltmaprtxs_st))))
#endif /* ggc_alloc_meltmaprtxs_st */
/* ggc_alloc_vec_entryrtxmelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entryrtxmelt_st
#define ggc_alloc_vec_entryrtxmelt_st(N) ((struct entryrtxmelt_st*) (ggc_internal_alloc (sizeof (struct entryrtxmelt_st) * (N))))
#endif
struct meltmaprtxs_st *src = (struct meltmaprtxs_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmaprtxs_st *dst = ggc_alloc_meltmaprtxs_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entryrtxmelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/*forwcopy gtyctype #9 CTYPE_TREE generated in warmelt-modes */
case MELTOBMAG_TREE:
{
/* macro ggc_alloc_melttree_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_melttree_st
#define ggc_alloc_melttree_st() ((struct melttree_st*)(ggc_internal_alloc (sizeof (struct melttree_st))))
#endif /* ggc_alloc_melttree_st */
struct melttree_st *src = (struct melttree_st*) p;
struct melttree_st *dst = ggc_alloc_melttree_st ();
*dst = *src;
n = (melt_ptr_t) dst;
break;
}
case MELTOBMAG_MAPTREES:
{
/* ggc_alloc_meltmaptrees_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_meltmaptrees_st
#define ggc_alloc_meltmaptrees_st() ((struct meltmaptrees_st*) (ggc_internal_alloc (sizeof (struct meltmaptrees_st))))
#endif /* ggc_alloc_meltmaptrees_st */
/* ggc_alloc_vec_entrytreemelt_st should be generated by gengtype not by runtypesupport_forwcopy */
#ifndef ggc_alloc_vec_entrytreemelt_st
#define ggc_alloc_vec_entrytreemelt_st(N) ((struct entrytreemelt_st*) (ggc_internal_alloc (sizeof (struct entrytreemelt_st) * (N))))
#endif
struct meltmaptrees_st *src = (struct meltmaptrees_st*) p;
int siz = melt_primtab[src->lenix];
struct meltmaptrees_st *dst = ggc_alloc_meltmaptrees_st ();
dst->discr = src->discr;
dst->count = src->count;
dst->lenix = src->lenix;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = src->meltmap_hash;
if (siz > 0 && src->entab)
{
dst->entab = ggc_alloc_vec_entrytreemelt_st (siz);
memcpy (dst->entab, src->entab, siz * sizeof (dst->entab[0]));
}
else dst->entab = NULL;
n = (melt_ptr_t) dst;
break;
}
/* trailer generated by generate_runtypesupport_forwcopy_fun */
default:
melt_fatal_error ("MELT corruption: forward invalid p=%p discr=%p magic=%d [%s]",
(void *) p, (void *) p->u_discr, mag, melt_obmag_string (mag));
} /* end switch (mag) */
melt_debuggc_eprintf ("melt_forwarded_copy#%ld/%04ld %p => %p %s",
melt_nb_garbcoll, melt_forward_counter, (void*)p,
(void*)n, melt_obmag_string (mag));
if (n)
{
gcc_assert (n->u_discr != NULL);
gcc_assert (n->u_discr != MELT_FORWARDED_DISCR);
#if MELT_HAVE_RUNTIME_DEBUG > 0
if (melt_alptr_1 && (void*)melt_alptr_1 == (void*)n)
{
fprintf (stderr, "melt_forwarded_copy to alptr_1 %p mag %d\n", melt_alptr_1, mag);
fflush (stderr);
melt_debuggc_eprintf("melt_forwarded_copy #%ld alptr_1 %p mag %d",
melt_nb_garbcoll, melt_alptr_1, mag);
melt_break_alptr_1 ("forwarded copy to alptr_1");
}
if (melt_alptr_2 && (void*)melt_alptr_2 == (void*)n)
{
fprintf (stderr, "melt_forwarded_copy to alptr_2 %p mag %d\n", melt_alptr_2, mag);
fflush (stderr);
melt_debuggc_eprintf("melt_forwarded_copy #%ld alptr_2 %p",
melt_nb_garbcoll, melt_alptr_2);
melt_break_alptr_2 ("forwarded copy to alptr_2");
};
#endif /*MELT_HAVE_RUNTIME_DEBUG*/
p->u_forward.discr = MELT_FORWARDED_DISCR;
p->u_forward.forward = n;
gcc_assert (melt_scangcvect != NULL);
{
unsigned long ulen = melt_scangcvect->vv_ulen;
if (MELT_UNLIKELY(ulen + 3 < melt_scangcvect->vv_size))
{
unsigned long newsiz = ((ulen + ulen/4 + 100)|0x3f) + 1;
melt_resize_scangcvect (newsiz);
}
melt_scangcvect->vv_tab[ulen] = n;
melt_scangcvect->vv_ulen = ulen+1;
}
if (MELT_UNLIKELY((void*)n->u_discr == (void*)p))
n->u_discr = (meltobject_ptr_t)n;
}
return n;
} /* end of melt_forwarded_copy generated by generate_runtypesupport_forwcopy_fun */
/** end of code generated by generate_runtypesupport_forwcopy_fun **/
/** start of code generated by generate_runtypesupport_scanning **/
/* header from generate_runtypesupport_scanning */
/* The melt_scanning routine is mostly Chesney like ; however some types,
including objects, strbuf, stringmaps, objectmaps, all the other
*maps, contain a pointer to a non value ; this pointer should be
carefully updated if it was young. */
static void
melt_scanning (melt_ptr_t p)
{
unsigned omagic = 0;
if (!p)
return;
gcc_assert (p != (void *) HTAB_DELETED_ENTRY);
gcc_assert (p->u_discr != NULL);
if (MELT_UNLIKELY(p->u_discr == MELT_FORWARDED_DISCR))
p = ((struct meltforward_st *) p)->forward;
gcc_assert (p->u_discr != MELT_FORWARDED_DISCR);
MELT_FORWARDED (p->u_discr);
gcc_assert (!melt_is_young (p));
omagic = p->u_discr->meltobj_magic;
switch (omagic)
{
/* end of header from generate_runtypesupport_scanning*/
/*valdesc #1 VALDESC_BUCKETLONGS*/
case MELTOBMAG_BUCKETLONGS:
{
struct meltbucketlongs_st*src = (struct meltbucketlongs_st*) p;
/* forwarding chunk from VALDESC_BUCKETLONGS in warmelt-base.melt */
// in file warmelt-base.melt line 2840
unsigned lnix = src->buckl_lenix;
unsigned len = melt_primtab[lnix];
unsigned ucnt = src->buckl_ucount;
unsigned ix = 0;
gcc_assert (lnix > 0);
gcc_assert (len > 0);
MELT_FORWARDED (src->buckl_aux);
gcc_assert (ucnt <= len);
for (ix = 0;
ix < ucnt;
ix++)
MELT_FORWARDED (src->buckl_entab[ix].ebl_va);
/* end forwarding VALDESC_BUCKETLONGS */
break;
}
/*valdesc #2 VALDESC_CLOSURE*/
case MELTOBMAG_CLOSURE:
{
struct meltclosure_st*src = (struct meltclosure_st*) p;
/* forwarding from VALDESC_CLOSURE in warmelt-base.melt */
// in file warmelt-base.melt line 2573
int nbval = (int) src->nbval;
MELT_FORWARDED (src->rout);
for (int ix = 0;
ix < nbval;
ix++)
MELT_FORWARDED (src->tabval[ix]);
break;
}
/*valdesc #3 VALDESC_DECAY*/
case MELTOBMAG_DECAY:
{
struct meltdecay_st*src = (struct meltdecay_st*) p;
/* from VALDESC_DECAY in warmelt-base.melt */
// in file warmelt-base.melt line 2454
MELT_FORWARDED (src->val);
break;
}
/*valdesc #4 VALDESC_DOUBLE*/
case MELTOBMAG_DOUBLE:
{
break;
}
/*valdesc #5 VALDESC_HOOK*/
case MELTOBMAG_HOOK:
{
struct melthook_st*src = (struct melthook_st*) p;
/* from VALDESC_HOOK in warmelt-base.melt */
// in file warmelt-base.melt line 2737
int nbval = (int) src->nbval;
int ix = 0;
for (ix = 0;
ix < nbval;
ix++)
MELT_FORWARDED (src->tabval[ix]);
MELT_FORWARDED (src->hookdata);
break;
}
/*valdesc #6 VALDESC_INT*/
case MELTOBMAG_INT:
{
break;
}
/*valdesc #7 VALDESC_JSONOBJECT*/
case MELTOBMAG_JSONOBJECT:
{
struct meltjsonobject_st*src = (struct meltjsonobject_st*) p;
/* forwarding chunk from VALDESC_JSONOBJECT in warmelt-base.melt */
// in file warmelt-base.melt line 2971
unsigned srcsize = src->jsob_size;
MELT_FORWARDED(src->jsob_aux);
for (unsigned ix = 0;
ix < srcsize;
ix++)
{
MELT_FORWARDED(src->jsob_entab[ix].jsonob_name);
MELT_FORWARDED(src->jsob_entab[ix].jsonob_val);
};
/* end forwarding chunk VALDESC_JSONOBJECT */
break;
}
/*valdesc #8 VALDESC_LIST*/
case MELTOBMAG_LIST:
{
struct meltlist_st*src = (struct meltlist_st*) p;
/* from VALDESC_LIST in warmelt-base.melt */
// in file warmelt-base.melt line 3182
MELT_FORWARDED (src->first);
MELT_FORWARDED (src->last);
break;
}
/*valdesc #9 VALDESC_MAPOBJECTS*/
case MELTOBMAG_MAPOBJECTS:
{
struct meltmapobjects_st*src = (struct meltmapobjects_st*) p;
/* forwarding from VALDESC_MAPOBJECTS in warmelt-base.melt */
// in file warmelt-base.melt line 2278
int siz, ix;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab)
break;
siz = melt_primtab[src->lenix];
gcc_assert (siz > 0);
if (melt_is_young (src->entab))
{
struct entryobjectsmelt_st *newtab =
/* Don't need a cleared allocation! */
ggc_alloc_vec_entryobjectsmelt_st (siz);
memcpy (newtab, src->entab,
siz * sizeof (struct entryobjectsmelt_st));
src->entab = newtab;
}
for (ix = 0;
ix < siz;
ix++)
{
meltobject_ptr_t at = src->entab[ix].e_at;
if (!at || at == (void *) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
}
MELT_FORWARDED (at);
src->entab[ix].e_at = at;
MELT_FORWARDED (src->entab[ix].e_va);
}
/* end forwarding from VALDESC_MAPOBJECTS */
break;
}
/*valdesc #10 VALDESC_MAPSTRINGS*/
case MELTOBMAG_MAPSTRINGS:
{
struct meltmapstrings_st*src = (struct meltmapstrings_st*) p;
/* forwarding from VALDESC_MAPSTRINGS in warmelt-base.melt */
// in file warmelt-base.melt line 2392
int ix, siz;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab)
break;
siz = melt_primtab[src->lenix];
gcc_assert (siz > 0);
if (melt_is_young (src->entab))
{
struct entrystringsmelt_st *newtab
/* Don't need a cleared allocation! */
= ggc_alloc_vec_entrystringsmelt_st (siz);
memcpy (newtab, src->entab,
siz * sizeof (struct entrystringsmelt_st));
src->entab = newtab;
}
for (ix = 0;
ix < siz;
ix++)
{
const char *at = src->entab[ix].e_at;
if (!at || at == (void *) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
}
if (melt_is_young ((const void *) at))
src->entab[ix].e_at = (const char *) ggc_strdup (at);
MELT_FORWARDED (src->entab[ix].e_va);
}
/* end forwarding from VALDESC_MAPSTRINGS */
break;
}
/*valdesc #11 VALDESC_MIXBIGINT*/
case MELTOBMAG_MIXBIGINT:
{
struct meltmixbigint_st*src = (struct meltmixbigint_st*) p;
/* from VALDESC_MIXBIGINT file warmelt-base.melt */
// in file warmelt-base.melt line 3357
MELT_FORWARDED (src->ptrval);
break;
}
/*valdesc #12 VALDESC_MIXINT*/
case MELTOBMAG_MIXINT:
{
struct meltmixint_st*src = (struct meltmixint_st*) p;
/* from VALDESC_MIXINT file warmelt-base.melt */
MELT_FORWARDED (src->ptrval);
break;
}
/*valdesc #13 VALDESC_MIXLOC*/
case MELTOBMAG_MIXLOC:
{
struct meltmixloc_st*src = (struct meltmixloc_st*) p;
/* from VALDESC_MIXLOC file warmelt-base.melt */
// in file warmelt-base.melt line 3314
MELT_FORWARDED (src->ptrval);
break;
}
/*valdesc #14 VALDESC_MULTIPLE*/
case MELTOBMAG_MULTIPLE:
{
struct meltmultiple_st*src = (struct meltmultiple_st*) p;
/* forwarding chunk from VALDESC_MULTIPLE in warmelt-base.melt */
// in file warmelt-base.melt line 2520
int nbval = (int) src->nbval;
for (int ix = 0;
ix < nbval;
ix++)
MELT_FORWARDED (src->tabval[ix]);
/* end forwarding chunk from VALDESC_MULTIPLE */
break;
}
/*valdesc #15 VALDESC_OBJECT*/
case MELTOBMAG_OBJECT:
{
struct meltobject_st*src = (struct meltobject_st*) p;
/* from VALDESC_OBJECT */
// in file warmelt-base.melt line 2170
int ix = 0;
int oblen = (int) (src->obj_len);
for (ix = 0; ix < oblen; ix++)
MELT_FORWARDED (src->obj_vartab[ix]);
#if MELT_HAVE_RUNTIME_DEBUG > 0
/* for low level debugging with gdb, we may want to catch some forwarding operations */
if (melt_alptr_1 && (void*) src == melt_alptr_1)
melt_break_alptr_1 ("forwardobj src=alptr1");
if (melt_alptr_2 && (void*) src == melt_alptr_2)
melt_break_alptr_2 ("forwardobj src=alptr2");
if (src->obj_hash == melt_objhash_1)
melt_break_objhash_1("forwardobj src with objhash1");
if (src->obj_hash == melt_objhash_2)
melt_break_objhash_2("forwardobj src with objhash2");
#endif /* MELT_HAVE_RUNTIME_DEBUG */
break;
}
/*valdesc #16 VALDESC_PAIR*/
case MELTOBMAG_PAIR:
{
struct meltpair_st*src = (struct meltpair_st*) p;
/* forward VALDESC_PAIR in warmelt-base.melt */
// in file warmelt-base.melt line 3124
MELT_FORWARDED (src->hd);
MELT_FORWARDED (src->tl);
break;
}
/*valdesc #17 VALDESC_REAL*/
case MELTOBMAG_REAL:
{
break;
}
/*valdesc #18 VALDESC_ROUTINE*/
case MELTOBMAG_ROUTINE:
{
struct meltroutine_st*src = (struct meltroutine_st*) p;
/* from VALDESC_ROUTINE in warmelt-base.melt */
// in file warmelt-base.melt line 2663
int nbval = (int) src->nbval;
for (int ix = 0;
ix < nbval;
ix++)
MELT_FORWARDED (src->tabval[ix]);
MELT_FORWARDED (src->routdata);
break;
}
/*valdesc #19 VALDESC_SPECIAL_DATA*/
case MELTOBMAG_SPECIAL_DATA:
{
struct meltspecialdata_st*src = (struct meltspecialdata_st*) p;
/* from VALDESC_SPECIAL_DATA file warmelt-base.melt */
src->meltspec_mark = 1;
MELT_FORWARDED (src->meltspec_value);
break;
}
/*valdesc #20 VALDESC_STRBUF*/
case MELTOBMAG_STRBUF:
{
break;
}
/*valdesc #21 VALDESC_STRING*/
case MELTOBMAG_STRING:
{
break;
}
/* GTY-ed ctypes scan forward for melt_scanning */
/*gtyctype #1 CTYPE_BASIC_BLOCK*/
case MELTOBMAG_BASICBLOCK:
break;
case MELTOBMAG_MAPBASICBLOCKS:
{
struct meltmapbasicblocks_st *src = (struct meltmapbasicblocks_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entrybasicblockmelt_st* newtab = ggc_alloc_vec_entrybasicblockmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entrybasicblockmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_basicblockptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPBASICBLOCKS */
break;
/*gtyctype #2 CTYPE_BITMAP*/
case MELTOBMAG_BITMAP:
break;
case MELTOBMAG_MAPBITMAPS:
{
struct meltmapbitmaps_st *src = (struct meltmapbitmaps_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entrybitmapmelt_st* newtab = ggc_alloc_vec_entrybitmapmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entrybitmapmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_bitmapptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPBITMAPS */
break;
/*gtyctype #3 CTYPE_EDGE*/
case MELTOBMAG_EDGE:
break;
case MELTOBMAG_MAPEDGES:
{
struct meltmapedges_st *src = (struct meltmapedges_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entryedgemelt_st* newtab = ggc_alloc_vec_entryedgemelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entryedgemelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_edgeptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPEDGES */
break;
/*gtyctype #4 CTYPE_GIMPLE*/
case MELTOBMAG_GIMPLE:
break;
case MELTOBMAG_MAPGIMPLES:
{
struct meltmapgimples_st *src = (struct meltmapgimples_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entrygimplemelt_st* newtab = ggc_alloc_vec_entrygimplemelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entrygimplemelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_gimpleptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPGIMPLES */
break;
/*gtyctype #5 CTYPE_GIMPLE_SEQ*/
case MELTOBMAG_GIMPLESEQ:
break;
case MELTOBMAG_MAPGIMPLESEQS:
{
struct meltmapgimpleseqs_st *src = (struct meltmapgimpleseqs_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entrygimpleseqmelt_st* newtab = ggc_alloc_vec_entrygimpleseqmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entrygimpleseqmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_gimpleseqptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPGIMPLESEQS */
break;
/*gtyctype #6 CTYPE_LOOP*/
case MELTOBMAG_LOOP:
break;
case MELTOBMAG_MAPLOOPS:
{
struct meltmaploops_st *src = (struct meltmaploops_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entryloopmelt_st* newtab = ggc_alloc_vec_entryloopmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entryloopmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_loopptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPLOOPS */
break;
/*gtyctype #7 CTYPE_RTVEC*/
case MELTOBMAG_RTVEC:
break;
case MELTOBMAG_MAPRTVECS:
{
struct meltmaprtvecs_st *src = (struct meltmaprtvecs_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entryrtvecmelt_st* newtab = ggc_alloc_vec_entryrtvecmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entryrtvecmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_rtvecptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPRTVECS */
break;
/*gtyctype #8 CTYPE_RTX*/
case MELTOBMAG_RTX:
break;
case MELTOBMAG_MAPRTXS:
{
struct meltmaprtxs_st *src = (struct meltmaprtxs_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entryrtxmelt_st* newtab = ggc_alloc_vec_entryrtxmelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entryrtxmelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_rtxptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPRTXS */
break;
/*gtyctype #9 CTYPE_TREE*/
case MELTOBMAG_TREE:
break;
case MELTOBMAG_MAPTREES:
{
struct meltmaptrees_st *src = (struct meltmaptrees_st*) p;
int siz=0, ix=0;
MELT_FORWARDED(src->meltmap_aux);
if (!src->entab) break;
siz = melt_primtab[src->lenix];
gcc_assert (siz>0);
if (melt_is_young (src->entab))
{
struct entrytreemelt_st* newtab = ggc_alloc_vec_entrytreemelt_st (siz);
memcpy (newtab, src->entab, siz * sizeof (struct entrytreemelt_st));
src->entab = newtab;
} /*end if young entab */
for (ix = 0; ix < siz; ix++)
{
melt_treeptr_t at = src->entab[ix].e_at;
if (!at || (void*) at == (void*) HTAB_DELETED_ENTRY)
{
src->entab[ix].e_va = NULL;
continue;
} /*end if empty at */
MELT_FORWARDED (src->entab[ix].e_va);
} /*end for ix*/
}; /* end case MELTOBMAG_MAPTREES */
break;
/* trailer generated by generate_runtypesupport_scanning */
default:
/* gcc_unreachable (); */
melt_fatal_error ("melt melt_scanning GC: corrupted heap, p=%p omagic=%d\n",
(void *) p, (int) omagic);
}
} /* end of melt_scanning generated by generate_runtypesupport_scanning */
/**end of code generated by generate_runtypesupport_scanning **/
/** start of code generated by generate_runtypesupport_boxingfun **/
/*gtyctype #1 CTYPE_BASIC_BLOCK*/
melt_ptr_t
meltgc_new_basicblock(meltobject_ptr_t discr_p, melt_basicblockptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_BASIC_BLOCK);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_BASICBLOCK) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltbasicblock_st), 0);
((struct meltbasicblock_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltbasicblock_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_basicblock */
void
meltgc_basicblock_updatebox(melt_ptr_t box_p, melt_basicblockptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_BASICBLOCK) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_BASIC_BLOCK))
goto end ;
((struct meltbasicblock_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_basicblock_updatebox */
/*gtyctype #2 CTYPE_BITMAP*/
melt_ptr_t
meltgc_new_bitmap(meltobject_ptr_t discr_p, melt_bitmapptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_BITMAP);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_BITMAP) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltbitmap_st), 0);
((struct meltbitmap_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltbitmap_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_bitmap */
void
meltgc_bitmap_updatebox(melt_ptr_t box_p, melt_bitmapptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_BITMAP) goto end;
((struct meltbitmap_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_bitmap_updatebox */
/*gtyctype #3 CTYPE_EDGE*/
melt_ptr_t
meltgc_new_edge(meltobject_ptr_t discr_p, melt_edgeptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_EDGE);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_EDGE) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltedge_st), 0);
((struct meltedge_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltedge_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_edge */
void
meltgc_edge_updatebox(melt_ptr_t box_p, melt_edgeptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_EDGE) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_EDGE))
goto end ;
((struct meltedge_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_edge_updatebox */
/*gtyctype #4 CTYPE_GIMPLE*/
melt_ptr_t
meltgc_new_gimple(meltobject_ptr_t discr_p, melt_gimpleptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_GIMPLE);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_GIMPLE) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltgimple_st), 0);
((struct meltgimple_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltgimple_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_gimple */
void
meltgc_gimple_updatebox(melt_ptr_t box_p, melt_gimpleptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_GIMPLE) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_GIMPLE))
goto end ;
((struct meltgimple_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_gimple_updatebox */
/*gtyctype #5 CTYPE_GIMPLE_SEQ*/
melt_ptr_t
meltgc_new_gimpleseq(meltobject_ptr_t discr_p, melt_gimpleseqptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_GIMPLE_SEQ);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_GIMPLESEQ) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltgimpleseq_st), 0);
((struct meltgimpleseq_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltgimpleseq_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_gimpleseq */
void
meltgc_gimpleseq_updatebox(melt_ptr_t box_p, melt_gimpleseqptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_GIMPLESEQ) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_GIMPLE_SEQ))
goto end ;
((struct meltgimpleseq_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_gimpleseq_updatebox */
/*gtyctype #6 CTYPE_LOOP*/
melt_ptr_t
meltgc_new_loop(meltobject_ptr_t discr_p, melt_loopptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_LOOP);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_LOOP) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltloop_st), 0);
((struct meltloop_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltloop_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_loop */
void
melt_loop_updatebox(melt_ptr_t box_p, melt_loopptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_LOOP) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_LOOP))
goto end ;
((struct meltloop_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun melt_loop_updatebox */
/*gtyctype #7 CTYPE_RTVEC*/
melt_ptr_t
meltgc_new_rtvec(meltobject_ptr_t discr_p, melt_rtvecptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_RTVEC);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_RTVEC) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltrtvec_st), 0);
((struct meltrtvec_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltrtvec_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_rtvec */
void
meltgc_rtvec_updatebox(melt_ptr_t box_p, melt_rtvecptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_RTVEC) goto end;
((struct meltrtvec_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_rtvec_updatebox */
/*gtyctype #8 CTYPE_RTX*/
melt_ptr_t
meltgc_new_rtx(meltobject_ptr_t discr_p, melt_rtxptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_RTX);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_RTX) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct meltrtx_st), 0);
((struct meltrtx_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct meltrtx_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_rtx */
void
meltgc_rtx_updatebox(melt_ptr_t box_p, melt_rtxptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_RTX) goto end;
((struct meltrtx_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_rtx_updatebox */
/*gtyctype #9 CTYPE_TREE*/
melt_ptr_t
meltgc_new_tree(meltobject_ptr_t discr_p, melt_treeptr_t val) /*runtypesupport generated boxingfun*/
{
MELT_ENTERFRAME (2, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define discrv meltfram__.mcfr_varptr[1]
discrv = (melt_ptr_t) discr_p;
if (!discrv) discrv = MELT_PREDEF(DISCR_TREE);
if (melt_magic_discr((melt_ptr_t)discrv) != MELTOBMAG_OBJECT) goto end;
if (((meltobject_ptr_t)(discrv))->meltobj_magic != MELTOBMAG_TREE) goto end;
resv = (melt_ptr_t) meltgc_allocate (sizeof (struct melttree_st), 0);
((struct melttree_st*) (resv))->discr = (meltobject_ptr_t)discrv;
((struct melttree_st*) (resv))->val = val;
end:
MELT_EXITFRAME ();
return ((melt_ptr_t)(resv));
#undef resv
#undef discrv
} /* end generated boxingfun meltgc_new_tree */
void
meltgc_tree_updatebox(melt_ptr_t box_p, melt_treeptr_t val) /*generated updateboxfun */
{
MELT_ENTERFRAME (1, NULL);
#define boxv meltfram__.mcfr_varptr[0]
boxv = box_p;
if (melt_magic_discr((melt_ptr_t)boxv) != MELTOBMAG_TREE) goto end;
if (((melt_ptr_t) boxv)->u_discr
/* generated updatebox nonconst */
== (meltobject_ptr_t) MELT_PREDEF (DISCR_CONSTANT_TREE))
goto end ;
((struct melttree_st*) (boxv))->val = val;
meltgc_touch ((melt_ptr_t)boxv);
end:
MELT_EXITFRAME ();
#undef boxv
} /* end generated updateboxfun meltgc_tree_updatebox */
/** end of code generated by generate_runtypesupport_boxingfun **/
/** generated by generate_runtypesupport_cloning_fun **/
/* generated cloning routine head */
melt_ptr_t
meltgc_clone_with_discriminant (melt_ptr_t srcval_p, melt_ptr_t newdiscr_p)
{
unsigned srcmagic = 0;
unsigned newmagic = 0;
MELT_ENTERFRAME (5, NULL);
#define resv meltfram__.mcfr_varptr[0]
#define srcvalv meltfram__.mcfr_varptr[1]
#define newdiscrv meltfram__.mcfr_varptr[2]
#define srcdiscrv meltfram__.mcfr_varptr[3]
#define compv meltfram__.mcfr_varptr[4]
srcvalv = srcval_p;
newdiscrv = newdiscr_p;
resv = srcvalv;
if (!srcvalv)
goto end;
srcdiscrv = (melt_ptr_t) (((melt_ptr_t)srcvalv)->u_discr);
if (!newdiscrv)
newdiscrv = srcdiscrv;
if (melt_magic_discr((melt_ptr_t)newdiscrv) != MELTOBMAG_OBJECT
|| ((meltobject_ptr_t)newdiscrv)->obj_len < MELTLENGTH_CLASS_DISCRIMINANT)
goto end;
if (!melt_is_instance_of((melt_ptr_t)newdiscrv,
MELT_PREDEF (CLASS_DISCRIMINANT)))
goto end;
srcmagic = melt_magic_discr ((melt_ptr_t)srcvalv);
newmagic = ((meltobject_ptr_t)newdiscrv)->meltobj_magic;
if (srcmagic != newmagic)
goto end;
switch (srcmagic) /* end cloning heeader */
{
/*** cloning 9 GTY-ed ctypes ***/
/*cloning gtyctype #1 CTYPE_BASIC_BLOCK */
case MELTOBMAG_BASICBLOCK : /* cloning boxed value CTYPE_BASIC_BLOCK */
{
struct meltbasicblock_st *src = (struct meltbasicblock_st *) srcvalv;
struct meltbasicblock_st *dst = (struct meltbasicblock_st *) meltgc_allocate (sizeof(struct meltbasicblock_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPBASICBLOCKS : /* cloning map value CTYPE_BASIC_BLOCK */
{
struct meltmapbasicblocks_st *src = (struct meltmapbasicblocks_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmapbasicblocks_st *dst =
(struct meltmapbasicblocks_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_basicblockptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_basicblockptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #2 CTYPE_BITMAP */
case MELTOBMAG_BITMAP : /* cloning boxed value CTYPE_BITMAP */
{
struct meltbitmap_st *src = (struct meltbitmap_st *) srcvalv;
struct meltbitmap_st *dst = (struct meltbitmap_st *) meltgc_allocate (sizeof(struct meltbitmap_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPBITMAPS : /* cloning map value CTYPE_BITMAP */
{
struct meltmapbitmaps_st *src = (struct meltmapbitmaps_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmapbitmaps_st *dst =
(struct meltmapbitmaps_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_bitmapptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_bitmapptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #3 CTYPE_EDGE */
case MELTOBMAG_EDGE : /* cloning boxed value CTYPE_EDGE */
{
struct meltedge_st *src = (struct meltedge_st *) srcvalv;
struct meltedge_st *dst = (struct meltedge_st *) meltgc_allocate (sizeof(struct meltedge_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPEDGES : /* cloning map value CTYPE_EDGE */
{
struct meltmapedges_st *src = (struct meltmapedges_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmapedges_st *dst =
(struct meltmapedges_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_edgeptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_edgeptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #4 CTYPE_GIMPLE */
case MELTOBMAG_GIMPLE : /* cloning boxed value CTYPE_GIMPLE */
{
struct meltgimple_st *src = (struct meltgimple_st *) srcvalv;
struct meltgimple_st *dst = (struct meltgimple_st *) meltgc_allocate (sizeof(struct meltgimple_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPGIMPLES : /* cloning map value CTYPE_GIMPLE */
{
struct meltmapgimples_st *src = (struct meltmapgimples_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmapgimples_st *dst =
(struct meltmapgimples_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_gimpleptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_gimpleptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #5 CTYPE_GIMPLE_SEQ */
case MELTOBMAG_GIMPLESEQ : /* cloning boxed value CTYPE_GIMPLE_SEQ */
{
struct meltgimpleseq_st *src = (struct meltgimpleseq_st *) srcvalv;
struct meltgimpleseq_st *dst = (struct meltgimpleseq_st *) meltgc_allocate (sizeof(struct meltgimpleseq_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPGIMPLESEQS : /* cloning map value CTYPE_GIMPLE_SEQ */
{
struct meltmapgimpleseqs_st *src = (struct meltmapgimpleseqs_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmapgimpleseqs_st *dst =
(struct meltmapgimpleseqs_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_gimpleseqptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_gimpleseqptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #6 CTYPE_LOOP */
case MELTOBMAG_LOOP : /* cloning boxed value CTYPE_LOOP */
{
struct meltloop_st *src = (struct meltloop_st *) srcvalv;
struct meltloop_st *dst = (struct meltloop_st *) meltgc_allocate (sizeof(struct meltloop_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPLOOPS : /* cloning map value CTYPE_LOOP */
{
struct meltmaploops_st *src = (struct meltmaploops_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmaploops_st *dst =
(struct meltmaploops_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_loopptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_loopptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #7 CTYPE_RTVEC */
case MELTOBMAG_RTVEC : /* cloning boxed value CTYPE_RTVEC */
{
struct meltrtvec_st *src = (struct meltrtvec_st *) srcvalv;
struct meltrtvec_st *dst = (struct meltrtvec_st *) meltgc_allocate (sizeof(struct meltrtvec_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPRTVECS : /* cloning map value CTYPE_RTVEC */
{
struct meltmaprtvecs_st *src = (struct meltmaprtvecs_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmaprtvecs_st *dst =
(struct meltmaprtvecs_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_rtvecptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_rtvecptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #8 CTYPE_RTX */
case MELTOBMAG_RTX : /* cloning boxed value CTYPE_RTX */
{
struct meltrtx_st *src = (struct meltrtx_st *) srcvalv;
struct meltrtx_st *dst = (struct meltrtx_st *) meltgc_allocate (sizeof(struct meltrtx_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPRTXS : /* cloning map value CTYPE_RTX */
{
struct meltmaprtxs_st *src = (struct meltmaprtxs_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmaprtxs_st *dst =
(struct meltmaprtxs_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_rtxptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_rtxptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/*cloning gtyctype #9 CTYPE_TREE */
case MELTOBMAG_TREE : /* cloning boxed value CTYPE_TREE */
{
struct melttree_st *src = (struct melttree_st *) srcvalv;
struct melttree_st *dst = (struct melttree_st *) meltgc_allocate (sizeof(struct melttree_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t) newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
case MELTOBMAG_MAPTREES : /* cloning map value CTYPE_TREE */
{
struct meltmaptrees_st *src = (struct meltmaptrees_st *) srcvalv;
unsigned oldlen = melt_primtab[src->lenix];
unsigned newlen = 4*src->count/3 + 5;
struct meltmaptrees_st *dst =
(struct meltmaptrees_st *) meltgc_raw_new_mappointers((meltobject_ptr_t)newdiscrv, newlen);
unsigned ix = 0;
dst->meltmap_aux = src->meltmap_aux;
if (src->entab)
for (ix=0; ix<oldlen;
ix++)
{
melt_ptr_t curva = src->entab[ix].e_va;
melt_treeptr_t curat = src->entab[ix].e_at;
if (curva != NULL && curat != (melt_treeptr_t) HTAB_DELETED_ENTRY)
meltgc_raw_put_mappointers((void*)dst, (const void*)curat, curva);
}
resv = (melt_ptr_t) dst;
};
break;
/******* cloning the 21 value descriptors *******/
/** cloning value descriptor #1 VALDESC_BUCKETLONGS **/
/*explicit cloning for VALDESC_BUCKETLONGS*/
case MELTOBMAG_BUCKETLONGS:
{
struct meltbucketlongs_st *src = (struct meltbucketlongs_st*) srcvalv;
struct meltbucketlongs_st *dst = NULL;
/* explicit clone chunk for VALDESC_BUCKETLONGS:*/
/* cloning chunk from VALDESC_BUCKETLONGS in warmelt-base.melt */
// in file warmelt-base.melt line 2810
unsigned lnix = src->buckl_lenix;
unsigned len = melt_primtab[lnix];
unsigned cnt = src->buckl_ucount;
unsigned dstlen = 0;
unsigned ix = 0;
gcc_assert (lnix > 0);
gcc_assert (len > 0);
gcc_assert (cnt <= len);
dst = (struct meltbucketlongs_st*)
meltgc_new_longsbucket ((meltobject_ptr_t)newdiscrv, cnt + cnt/8 + 2);
resv = (melt_ptr_t) dst;
dstlen = melt_primtab[dst->buckl_lenix];
dst->buckl_aux = src->buckl_aux;
dst->buckl_xnum = src->buckl_xnum;
dst->buckl_lenix = src->buckl_lenix;
for (ix = 0;
ix < cnt;
ix++)
dst->buckl_entab[ix] = src->buckl_entab[ix];
for (ix = cnt;
ix < dstlen;
ix++)
{
dst->buckl_entab[ix].ebl_at = 0L;
dst->buckl_entab[ix].ebl_va = NULL;
}
/* end clone chunk VALDESC_BUCKETLONGS */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #2 VALDESC_CLOSURE **/
/*explicit cloning for VALDESC_CLOSURE*/
case MELTOBMAG_CLOSURE:
{
struct meltclosure_st *src = (struct meltclosure_st*) srcvalv;
struct meltclosure_st *dst = NULL;
/* explicit clone chunk for VALDESC_CLOSURE:*/
/* cloning from VALDESC_CLOSURE in warmelt-base.melt*/
// in file warmelt-base.melt line 2582
unsigned nbval = (int) src->nbval;
dst
= (struct meltclosure_st*)meltgc_allocate (sizeof(struct meltclosure_st),
nbval*sizeof(void*));
resv = (melt_ptr_t) dst;
src = (struct meltclosure_st*)srcvalv;
dst->discr = (meltobject_ptr_t)newdiscrv;
dst->rout = src->rout;
for (unsigned ix = 0;
ix < nbval;
ix++)
dst->tabval[ix] = src->tabval[ix];
/* end cloning from VALDESC_CLOSURE */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #3 VALDESC_DECAY **/
/*default cloning for VALDESC_DECAY*/
case MELTOBMAG_DECAY:
{
struct meltdecay_st *src = (struct meltdecay_st*) srcvalv;
struct meltdecay_st *dst =
(struct meltdecay_st*) meltgc_allocate (sizeof(struct meltdecay_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #4 VALDESC_DOUBLE **/
/*default cloning for VALDESC_DOUBLE*/
case MELTOBMAG_DOUBLE:
{
struct meltdouble_st *src = (struct meltdouble_st*) srcvalv;
struct meltdouble_st *dst =
(struct meltdouble_st*) meltgc_allocate (sizeof(struct meltdouble_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #5 VALDESC_HOOK **/
/*no cloning for VALDESC_HOOK*/
case MELTOBMAG_HOOK:
break;
/** cloning value descriptor #6 VALDESC_INT **/
/*default cloning for VALDESC_INT*/
case MELTOBMAG_INT:
{
struct meltint_st *src = (struct meltint_st*) srcvalv;
struct meltint_st *dst =
(struct meltint_st*) meltgc_allocate (sizeof(struct meltint_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #7 VALDESC_JSONOBJECT **/
/*explicit cloning for VALDESC_JSONOBJECT*/
case MELTOBMAG_JSONOBJECT:
{
struct meltjsonobject_st *src = (struct meltjsonobject_st*) srcvalv;
struct meltjsonobject_st *dst = NULL;
/* explicit clone chunk for VALDESC_JSONOBJECT:*/
/* cloning chunk from VALDESC_JSONOBJECT in warmelt-base.melt */
// in file warmelt-base.melt line 2960
unsigned srcsize = src->jsob_size;
dst = (struct meltjsonobject_st*)meltgc_allocate(sizeof(struct meltjsonobject_st),
srcsize*sizeof(melt_jsonobentry_st));
dst->discr = (meltobject_ptr_t)newdiscrv;
dst->jsob_aux = src->jsob_aux;
for (unsigned ix=0; ix<srcsize; ix++)
dst->jsob_entab[ix] = src->jsob_entab[ix];
/* end cloning chunk VALDESC_JSONOBJECT */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #8 VALDESC_LIST **/
/*explicit cloning for VALDESC_LIST*/
case MELTOBMAG_LIST:
{
struct meltlist_st *src = (struct meltlist_st*) srcvalv;
struct meltlist_st *dst = NULL;
/* explicit clone chunk for VALDESC_LIST:*/
/* cloning from VALDESC_LIST in warmelt-base.melt */
// in file warmelt-base.melt line 3162
struct meltpair_st* curpair = NULL;
dst = (struct meltlist_st*) meltgc_new_list ((meltobject_ptr_t)newdiscrv);
resv = (melt_ptr_t) dst;
src = (struct meltlist_st*) srcvalv;
for (curpair = ((struct meltlist_st *) src)->first;
melt_magic_discr ((melt_ptr_t) curpair) == MELTOBMAG_PAIR;
curpair = (struct meltpair_st *) (curpair->tl))
{
src = (struct meltlist_st*) srcvalv;
dst = (struct meltlist_st*) resv;
compv = (melt_ptr_t) curpair;
meltgc_append_list ((melt_ptr_t) resv, curpair->hd);
/* copy, because GC might have moved values. */
curpair = (struct meltpair_st*) compv;
src = (struct meltlist_st*) srcvalv;
dst = (struct meltlist_st*) resv;
}
/* end cloning from VALDESC_LIST */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #9 VALDESC_MAPOBJECTS **/
/*explicit cloning for VALDESC_MAPOBJECTS*/
case MELTOBMAG_MAPOBJECTS:
{
struct meltmapobjects_st *src = (struct meltmapobjects_st*) srcvalv;
struct meltmapobjects_st *dst = NULL;
/* explicit clone chunk for VALDESC_MAPOBJECTS:*/
/* cloning, from VALDESC_MAPOBJECTS in warmelt-base.melt */
// in file warmelt-base.melt line 2252
unsigned srccount = src->count;
unsigned srclen = melt_primtab[src->lenix];
unsigned newlen = 4*srccount/3+4;
dst = (struct meltmapobjects_st*)
meltgc_new_mapobjects ((meltobject_ptr_t)newdiscrv, newlen);
resv = (melt_ptr_t) dst;
dst->meltmap_hash = melt_nonzerohash ();
dst->meltmap_aux = src->meltmap_aux;
for (unsigned srcix = 0;
srcix < srclen;
srcix++)
{
meltobject_ptr_t curat = NULL;
melt_ptr_t curva = NULL;
src = (struct meltmapobjects_st*) srcvalv;
curat = src->entab[srcix].e_at;
curva = src->entab[srcix].e_va;
if (!curat || curat == (meltobject_ptr_t) HTAB_DELETED_ENTRY
|| !curva)
continue;
meltgc_put_mapobjects((meltmapobjects_ptr_t)resv, curat, curva);
/* update the dst, since it could have moved */
dst = (struct meltmapobjects_st*) resv;
} /* end cloning, from VALDESC_MAPOBJECTS */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #10 VALDESC_MAPSTRINGS **/
/*explicit cloning for VALDESC_MAPSTRINGS*/
case MELTOBMAG_MAPSTRINGS:
{
struct meltmapstrings_st *src = (struct meltmapstrings_st*) srcvalv;
struct meltmapstrings_st *dst = NULL;
/* explicit clone chunk for VALDESC_MAPSTRINGS:*/
/* cloning from VALDESC_MAPSTRINGS in warmelt-base.melt */
// in file warmelt-base.melt line 2365
unsigned srccount = src->count;
unsigned srclen = melt_primtab[src->lenix];
unsigned newlen = 4*srccount/3+4;
dst = (struct meltmapstrings_st*) meltgc_new_mapstrings ((meltobject_ptr_t)newdiscrv, newlen);
resv = (melt_ptr_t) dst;
dst->meltmap_aux = src->meltmap_aux;
dst->meltmap_hash = melt_nonzerohash ();
for (unsigned srcix = 0;
srcix < srclen;
srcix++)
{
const char* curat = NULL;
melt_ptr_t curva = NULL;
src = (struct meltmapstrings_st*) srcvalv;
dst = (struct meltmapstrings_st*) resv;
curat = src->entab[srcix].e_at;
if (!curat || curat == (const char*) HTAB_DELETED_ENTRY || !curat[0])
continue;
curva = src->entab[srcix].e_va;
if (!curva)
continue;
meltgc_put_mapstrings (dst, curat, curva);
dst = (struct meltmapstrings_st*) resv;
}
/* end cloning from VALDESC_MAPSTRINGS */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #11 VALDESC_MIXBIGINT **/
/*no cloning for VALDESC_MIXBIGINT*/
case MELTOBMAG_MIXBIGINT:
break;
/** cloning value descriptor #12 VALDESC_MIXINT **/
/*default cloning for VALDESC_MIXINT*/
case MELTOBMAG_MIXINT:
{
struct meltmixint_st *src = (struct meltmixint_st*) srcvalv;
struct meltmixint_st *dst =
(struct meltmixint_st*) meltgc_allocate (sizeof(struct meltmixint_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #13 VALDESC_MIXLOC **/
/*default cloning for VALDESC_MIXLOC*/
case MELTOBMAG_MIXLOC:
{
struct meltmixloc_st *src = (struct meltmixloc_st*) srcvalv;
struct meltmixloc_st *dst =
(struct meltmixloc_st*) meltgc_allocate (sizeof(struct meltmixloc_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #14 VALDESC_MULTIPLE **/
/*explicit cloning for VALDESC_MULTIPLE*/
case MELTOBMAG_MULTIPLE:
{
struct meltmultiple_st *src = (struct meltmultiple_st*) srcvalv;
struct meltmultiple_st *dst = NULL;
/* explicit clone chunk for VALDESC_MULTIPLE:*/
/* cloning from VALDESC_MULTIPLE in warmelt-base.melt */
// in file warmelt-base.melt line 2507
unsigned srclen = src->nbval;
dst =
(struct meltmultiple_st*) meltgc_new_multiple ((meltobject_ptr_t)newdiscrv, srclen);
resv = (melt_ptr_t) dst;
src = (struct meltmultiple_st*) srcvalv; /* could have moved */
for (unsigned srcix = 0;
srcix < srclen;
srcix++)
dst->tabval[srcix] = src->tabval[srcix];
/* end cloning from VALDESC_MULTIPLE */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #15 VALDESC_OBJECT **/
/*explicit cloning for VALDESC_OBJECT*/
case MELTOBMAG_OBJECT:
{
struct meltobject_st *src = (struct meltobject_st*) srcvalv;
struct meltobject_st *dst = NULL;
/* explicit clone chunk for VALDESC_OBJECT:*/
/* cloning, from VALDESC_OBJECT */
// in file warmelt-base.melt line 2127
unsigned newlen = 0;
unsigned srclen = src->obj_len;
unsigned slotix = 0;
if (melt_is_subclass_of((meltobject_ptr_t)srcdiscrv,
(meltobject_ptr_t)newdiscrv))
{
newlen =
melt_multiple_length ((melt_ptr_t)
(((meltobject_ptr_t)newdiscrv)->obj_vartab[MELTFIELD_CLASS_FIELDS]));
gcc_assert (newlen <= srclen);
dst = meltgc_new_raw_object ((meltobject_ptr_t)newdiscrv, newlen);
for (slotix = 0;
slotix < newlen;
slotix++)
dst->obj_vartab[slotix] = src->obj_vartab[slotix];
dst->obj_num = src->obj_num;
}
else if (melt_is_subclass_of((meltobject_ptr_t)newdiscrv,
(meltobject_ptr_t)srcdiscrv))
{
newlen =
melt_multiple_length ((melt_ptr_t)
(((meltobject_ptr_t)newdiscrv)->obj_vartab[MELTFIELD_CLASS_FIELDS]));
gcc_assert (newlen >= srclen);
dst = meltgc_new_raw_object ((meltobject_ptr_t)newdiscrv, newlen);
for (slotix = 0;
slotix < srclen;
slotix++)
dst->obj_vartab[slotix] = src->obj_vartab[slotix];
dst->obj_num = src->obj_num;
}
#if MELT_HAVE_RUNTIME_DEBUG > 0
/* for low level debugging with gdb, we may want to catch some clone operations */
if (melt_alptr_1 && (void*) src == melt_alptr_1)
melt_break_alptr_1 ("cloneobj src=alptr1");
if (melt_alptr_2 && (void*) src == melt_alptr_2)
melt_break_alptr_2 ("cloneobj src=alptr2");
if (src->obj_hash == melt_objhash_1)
melt_break_objhash_1("cloneobj src with objhash1");
if (src->obj_hash == melt_objhash_2)
melt_break_objhash_2("cloneobj src with objhash2");
#endif /* MELT_HAVE_RUNTIME_DEBUG */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #16 VALDESC_PAIR **/
/*default cloning for VALDESC_PAIR*/
case MELTOBMAG_PAIR:
{
struct meltpair_st *src = (struct meltpair_st*) srcvalv;
struct meltpair_st *dst =
(struct meltpair_st*) meltgc_allocate (sizeof(struct meltpair_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #17 VALDESC_REAL **/
/*default cloning for VALDESC_REAL*/
case MELTOBMAG_REAL:
{
struct meltreal_st *src = (struct meltreal_st*) srcvalv;
struct meltreal_st *dst =
(struct meltreal_st*) meltgc_allocate (sizeof(struct meltreal_st), 0);
*dst = *src;
dst->discr = (meltobject_ptr_t)newdiscrv;
resv = (melt_ptr_t) dst;
}
break;
/** cloning value descriptor #18 VALDESC_ROUTINE **/
/*no cloning for VALDESC_ROUTINE*/
case MELTOBMAG_ROUTINE:
break;
/** cloning value descriptor #19 VALDESC_SPECIAL_DATA **/
/*no cloning for VALDESC_SPECIAL_DATA*/
case MELTOBMAG_SPECIAL_DATA:
break;
/** cloning value descriptor #20 VALDESC_STRBUF **/
/*explicit cloning for VALDESC_STRBUF*/
case MELTOBMAG_STRBUF:
{
struct meltstrbuf_st *src = (struct meltstrbuf_st*) srcvalv;
struct meltstrbuf_st *dst = NULL;
/* explicit clone chunk for VALDESC_STRBUF:*/
/* clone chunk from VALDESC_STRBUF in warmelt-base.melt */
// in file warmelt-base.melt line 3082
dst = (struct meltstrbuf_st*)
meltgc_new_strbuf ((meltobject_ptr_t)newdiscrv, NULL);
resv = (melt_ptr_t) dst;
src = (struct meltstrbuf_st*)srcvalv;
meltgc_add_strbuf ((melt_ptr_t) dst, melt_strbuf_str ((melt_ptr_t)src));
/* end clone chunk from VALDESC_STRBUF */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/** cloning value descriptor #21 VALDESC_STRING **/
/*explicit cloning for VALDESC_STRING*/
case MELTOBMAG_STRING:
{
struct meltstring_st *src = (struct meltstring_st*) srcvalv;
struct meltstring_st *dst = NULL;
/* explicit clone chunk for VALDESC_STRING:*/
/* clone from VALDESC_STRING file warmelt-base.melt */
// in file warmelt-base.melt line 3025
dst = (struct meltstring_st*)
meltgc_new_stringdup ((meltobject_ptr_t)newdiscrv,
src->val);
resv = (melt_ptr_t) dst;
/* end clone from VALDESC_STRING */
;
if (dst)
resv = (melt_ptr_t) dst;
};
break;
/* generated cloning routine trailer */
default:
;
} /*end switch srcmagic for cloning */
end:
MELT_EXITFRAME();
return (melt_ptr_t) resv;
} /* end of generated meltgc_clone_with_discriminant */
#undef resv
#undef srcvalv
#undef newdiscrv
#undef discrv
#undef compv
/*code generated by generate_runtypesupport_predefined_hooks for 161 predefined */
/*predefined hook definition HOOK_ALL_IPA_PASSES_END #112*/
void melthookproc_HOOK_ALL_IPA_PASSES_END()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_ALL_IPA_PASSES_END*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_ALL_IPA_PASSES_END);
typedef void melthooksig_HOOK_ALL_IPA_PASSES_END_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_ALL_IPA_PASSES_END exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_ALL_IPA_PASSES_END is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_ALL_IPA_PASSES_END */
melthooksig_HOOK_ALL_IPA_PASSES_END_t *melthookptr_HOOK_ALL_IPA_PASSES_END =
reinterpret_cast <melthooksig_HOOK_ALL_IPA_PASSES_END_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_ALL_IPA_PASSES_END",
melthookptr_HOOK_ALL_IPA_PASSES_END);
/* check predefhook HOOK_ALL_IPA_PASSES_END name */
melt_assertmsg("check predefhook name HOOK_ALL_IPA_PASSES_END",
!strncmp (melthkp->hookname,
"HOOK_ALL_IPA_PASSES_END", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_ALL_IPA_PASSES_END) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_ALL_IPA_PASSES_END */
/*predefined hook definition HOOK_ALL_IPA_PASSES_START #113*/
void melthookproc_HOOK_ALL_IPA_PASSES_START()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_ALL_IPA_PASSES_START*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_ALL_IPA_PASSES_START);
typedef void melthooksig_HOOK_ALL_IPA_PASSES_START_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_ALL_IPA_PASSES_START exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_ALL_IPA_PASSES_START is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_ALL_IPA_PASSES_START */
melthooksig_HOOK_ALL_IPA_PASSES_START_t *melthookptr_HOOK_ALL_IPA_PASSES_START =
reinterpret_cast <melthooksig_HOOK_ALL_IPA_PASSES_START_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_ALL_IPA_PASSES_START",
melthookptr_HOOK_ALL_IPA_PASSES_START);
/* check predefhook HOOK_ALL_IPA_PASSES_START name */
melt_assertmsg("check predefhook name HOOK_ALL_IPA_PASSES_START",
!strncmp (melthkp->hookname,
"HOOK_ALL_IPA_PASSES_START", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_ALL_IPA_PASSES_START) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_ALL_IPA_PASSES_START */
/*predefined hook definition HOOK_ALL_PASSES_END #114*/
void melthookproc_HOOK_ALL_PASSES_END()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_ALL_PASSES_END*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_ALL_PASSES_END);
typedef void melthooksig_HOOK_ALL_PASSES_END_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_ALL_PASSES_END exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_ALL_PASSES_END is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_ALL_PASSES_END */
melthooksig_HOOK_ALL_PASSES_END_t *melthookptr_HOOK_ALL_PASSES_END =
reinterpret_cast <melthooksig_HOOK_ALL_PASSES_END_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_ALL_PASSES_END",
melthookptr_HOOK_ALL_PASSES_END);
/* check predefhook HOOK_ALL_PASSES_END name */
melt_assertmsg("check predefhook name HOOK_ALL_PASSES_END",
!strncmp (melthkp->hookname,
"HOOK_ALL_PASSES_END", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_ALL_PASSES_END) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_ALL_PASSES_END */
/*predefined hook definition HOOK_ALL_PASSES_START #115*/
void melthookproc_HOOK_ALL_PASSES_START()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_ALL_PASSES_START*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_ALL_PASSES_START);
typedef void melthooksig_HOOK_ALL_PASSES_START_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_ALL_PASSES_START exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_ALL_PASSES_START is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_ALL_PASSES_START */
melthooksig_HOOK_ALL_PASSES_START_t *melthookptr_HOOK_ALL_PASSES_START =
reinterpret_cast <melthooksig_HOOK_ALL_PASSES_START_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_ALL_PASSES_START",
melthookptr_HOOK_ALL_PASSES_START);
/* check predefhook HOOK_ALL_PASSES_START name */
melt_assertmsg("check predefhook name HOOK_ALL_PASSES_START",
!strncmp (melthkp->hookname,
"HOOK_ALL_PASSES_START", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_ALL_PASSES_START) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_ALL_PASSES_START */
/*predefined hook definition HOOK_EARLY_GIMPLE_PASSES_END #116*/
void melthookproc_HOOK_EARLY_GIMPLE_PASSES_END()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_EARLY_GIMPLE_PASSES_END*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_EARLY_GIMPLE_PASSES_END);
typedef void melthooksig_HOOK_EARLY_GIMPLE_PASSES_END_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_EARLY_GIMPLE_PASSES_END exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_EARLY_GIMPLE_PASSES_END is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_EARLY_GIMPLE_PASSES_END */
melthooksig_HOOK_EARLY_GIMPLE_PASSES_END_t *melthookptr_HOOK_EARLY_GIMPLE_PASSES_END =
reinterpret_cast <melthooksig_HOOK_EARLY_GIMPLE_PASSES_END_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_EARLY_GIMPLE_PASSES_END",
melthookptr_HOOK_EARLY_GIMPLE_PASSES_END);
/* check predefhook HOOK_EARLY_GIMPLE_PASSES_END name */
melt_assertmsg("check predefhook name HOOK_EARLY_GIMPLE_PASSES_END",
!strncmp (melthkp->hookname,
"HOOK_EARLY_GIMPLE_PASSES_END", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_EARLY_GIMPLE_PASSES_END) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_EARLY_GIMPLE_PASSES_END */
/*predefined hook definition HOOK_EARLY_GIMPLE_PASSES_START #117*/
void melthookproc_HOOK_EARLY_GIMPLE_PASSES_START()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_EARLY_GIMPLE_PASSES_START*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_EARLY_GIMPLE_PASSES_START);
typedef void melthooksig_HOOK_EARLY_GIMPLE_PASSES_START_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_EARLY_GIMPLE_PASSES_START exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_EARLY_GIMPLE_PASSES_START is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_EARLY_GIMPLE_PASSES_START */
melthooksig_HOOK_EARLY_GIMPLE_PASSES_START_t *melthookptr_HOOK_EARLY_GIMPLE_PASSES_START =
reinterpret_cast <melthooksig_HOOK_EARLY_GIMPLE_PASSES_START_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_EARLY_GIMPLE_PASSES_START",
melthookptr_HOOK_EARLY_GIMPLE_PASSES_START);
/* check predefhook HOOK_EARLY_GIMPLE_PASSES_START name */
melt_assertmsg("check predefhook name HOOK_EARLY_GIMPLE_PASSES_START",
!strncmp (melthkp->hookname,
"HOOK_EARLY_GIMPLE_PASSES_START", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_EARLY_GIMPLE_PASSES_START) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_EARLY_GIMPLE_PASSES_START */
/*predefined hook definition HOOK_EXIT_FINALIZER #118*/
void melthookproc_HOOK_EXIT_FINALIZER()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_EXIT_FINALIZER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_EXIT_FINALIZER);
typedef void melthooksig_HOOK_EXIT_FINALIZER_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_EXIT_FINALIZER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_EXIT_FINALIZER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_EXIT_FINALIZER */
melthooksig_HOOK_EXIT_FINALIZER_t *melthookptr_HOOK_EXIT_FINALIZER =
reinterpret_cast <melthooksig_HOOK_EXIT_FINALIZER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_EXIT_FINALIZER",
melthookptr_HOOK_EXIT_FINALIZER);
/* check predefhook HOOK_EXIT_FINALIZER name */
melt_assertmsg("check predefhook name HOOK_EXIT_FINALIZER",
!strncmp (melthkp->hookname,
"HOOK_EXIT_FINALIZER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_EXIT_FINALIZER) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_EXIT_FINALIZER */
/*predefined hook definition HOOK_FINISH_DECL #119*/
void melthookproc_HOOK_FINISH_DECL(melt_treeptr_t meltin_TFNDECL_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_FINISH_DECL*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_FINISH_DECL);
typedef void melthooksig_HOOK_FINISH_DECL_t (melt_ptr_t, melt_treeptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_FINISH_DECL exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_FINISH_DECL is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_FINISH_DECL */
melthooksig_HOOK_FINISH_DECL_t *melthookptr_HOOK_FINISH_DECL =
reinterpret_cast <melthooksig_HOOK_FINISH_DECL_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_FINISH_DECL",
melthookptr_HOOK_FINISH_DECL);
/* check predefhook HOOK_FINISH_DECL name */
melt_assertmsg("check predefhook name HOOK_FINISH_DECL",
!strncmp (melthkp->hookname,
"HOOK_FINISH_DECL", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_FINISH_DECL) ((melt_ptr_t)melthkp,
meltin_TFNDECL_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_FINISH_DECL */
/*predefined hook definition HOOK_FINISH_TYPE #120*/
void melthookproc_HOOK_FINISH_TYPE(melt_treeptr_t meltin_TFNDECL_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_FINISH_TYPE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_FINISH_TYPE);
typedef void melthooksig_HOOK_FINISH_TYPE_t (melt_ptr_t, melt_treeptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_FINISH_TYPE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_FINISH_TYPE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_FINISH_TYPE */
melthooksig_HOOK_FINISH_TYPE_t *melthookptr_HOOK_FINISH_TYPE =
reinterpret_cast <melthooksig_HOOK_FINISH_TYPE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_FINISH_TYPE",
melthookptr_HOOK_FINISH_TYPE);
/* check predefhook HOOK_FINISH_TYPE name */
melt_assertmsg("check predefhook name HOOK_FINISH_TYPE",
!strncmp (melthkp->hookname,
"HOOK_FINISH_TYPE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_FINISH_TYPE) ((melt_ptr_t)melthkp,
meltin_TFNDECL_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_FINISH_TYPE */
/*predefined hook definition HOOK_FINISH_UNIT #121*/
void melthookproc_HOOK_FINISH_UNIT()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_FINISH_UNIT*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_FINISH_UNIT);
typedef void melthooksig_HOOK_FINISH_UNIT_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_FINISH_UNIT exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_FINISH_UNIT is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_FINISH_UNIT */
melthooksig_HOOK_FINISH_UNIT_t *melthookptr_HOOK_FINISH_UNIT =
reinterpret_cast <melthooksig_HOOK_FINISH_UNIT_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_FINISH_UNIT",
melthookptr_HOOK_FINISH_UNIT);
/* check predefhook HOOK_FINISH_UNIT name */
melt_assertmsg("check predefhook name HOOK_FINISH_UNIT",
!strncmp (melthkp->hookname,
"HOOK_FINISH_UNIT", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_FINISH_UNIT) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_FINISH_UNIT */
/*predefined hook definition HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER #122*/
melt_ptr_t melthookproc_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER(melt_ptr_t meltin_PREVENV_p0, const char* meltin_MODULNAME_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER);
typedef melt_ptr_t melthooksig_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER_t (melt_ptr_t, melt_ptr_t, const char*);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER */
melthooksig_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER_t *melthookptr_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER =
reinterpret_cast <melthooksig_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER",
melthookptr_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER);
/* check predefhook HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER name */
melt_assertmsg("check predefhook name HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER",
!strncmp (melthkp->hookname,
"HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER) ((melt_ptr_t)melthkp,
meltin_PREVENV_p0,
meltin_MODULNAME_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_FRESH_ENVIRONMENT_REFERENCE_MAKER */
/*predefined hook definition HOOK_GIMPLE_EXECUTE #123*/
long melthookproc_HOOK_GIMPLE_EXECUTE()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_GIMPLE_EXECUTE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_GIMPLE_EXECUTE);
typedef long melthooksig_HOOK_GIMPLE_EXECUTE_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_GIMPLE_EXECUTE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_GIMPLE_EXECUTE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_GIMPLE_EXECUTE */
melthooksig_HOOK_GIMPLE_EXECUTE_t *melthookptr_HOOK_GIMPLE_EXECUTE =
reinterpret_cast <melthooksig_HOOK_GIMPLE_EXECUTE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_GIMPLE_EXECUTE",
melthookptr_HOOK_GIMPLE_EXECUTE);
/* check predefhook HOOK_GIMPLE_EXECUTE name */
melt_assertmsg("check predefhook name HOOK_GIMPLE_EXECUTE",
!strncmp (melthkp->hookname,
"HOOK_GIMPLE_EXECUTE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_GIMPLE_EXECUTE) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_GIMPLE_EXECUTE */
/*predefined hook definition HOOK_GIMPLE_GATE #124*/
long melthookproc_HOOK_GIMPLE_GATE()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_GIMPLE_GATE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_GIMPLE_GATE);
typedef long melthooksig_HOOK_GIMPLE_GATE_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_GIMPLE_GATE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_GIMPLE_GATE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_GIMPLE_GATE */
melthooksig_HOOK_GIMPLE_GATE_t *melthookptr_HOOK_GIMPLE_GATE =
reinterpret_cast <melthooksig_HOOK_GIMPLE_GATE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_GIMPLE_GATE",
melthookptr_HOOK_GIMPLE_GATE);
/* check predefhook HOOK_GIMPLE_GATE name */
melt_assertmsg("check predefhook name HOOK_GIMPLE_GATE",
!strncmp (melthkp->hookname,
"HOOK_GIMPLE_GATE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_GIMPLE_GATE) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_GIMPLE_GATE */
/*predefined hook definition HOOK_HANDLE_ATTRIBUTE #125*/
melt_treeptr_t melthookproc_HOOK_HANDLE_ATTRIBUTE(melt_treeptr_t meltin_TR_IN_NODE_p0, melt_treeptr_t meltin_TR_NAME_p1, melt_treeptr_t meltin_TR_ARGS_p2, long meltin_FLAGS_p3, melt_treeptr_t* meltout_TR_OUT_NODE_o0, long* meltout_OUT_NO_ADD_ATTRS_o1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_HANDLE_ATTRIBUTE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_HANDLE_ATTRIBUTE);
typedef melt_treeptr_t melthooksig_HOOK_HANDLE_ATTRIBUTE_t (melt_ptr_t, melt_treeptr_t, melt_treeptr_t, melt_treeptr_t, long, melt_treeptr_t* , long* );
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_HANDLE_ATTRIBUTE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_HANDLE_ATTRIBUTE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_HANDLE_ATTRIBUTE */
melthooksig_HOOK_HANDLE_ATTRIBUTE_t *melthookptr_HOOK_HANDLE_ATTRIBUTE =
reinterpret_cast <melthooksig_HOOK_HANDLE_ATTRIBUTE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_HANDLE_ATTRIBUTE",
melthookptr_HOOK_HANDLE_ATTRIBUTE);
/* check predefhook HOOK_HANDLE_ATTRIBUTE name */
melt_assertmsg("check predefhook name HOOK_HANDLE_ATTRIBUTE",
!strncmp (melthkp->hookname,
"HOOK_HANDLE_ATTRIBUTE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_HANDLE_ATTRIBUTE) ((melt_ptr_t)melthkp,
meltin_TR_IN_NODE_p0,
meltin_TR_NAME_p1,
meltin_TR_ARGS_p2,
meltin_FLAGS_p3,
meltout_TR_OUT_NODE_o0,
meltout_OUT_NO_ADD_ATTRS_o1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_HANDLE_ATTRIBUTE */
/*predefined hook definition HOOK_HANDLE_SIGALRM #126*/
void melthookproc_HOOK_HANDLE_SIGALRM()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_HANDLE_SIGALRM*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_HANDLE_SIGALRM);
typedef void melthooksig_HOOK_HANDLE_SIGALRM_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGALRM exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGALRM is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_HANDLE_SIGALRM */
melthooksig_HOOK_HANDLE_SIGALRM_t *melthookptr_HOOK_HANDLE_SIGALRM =
reinterpret_cast <melthooksig_HOOK_HANDLE_SIGALRM_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_HANDLE_SIGALRM",
melthookptr_HOOK_HANDLE_SIGALRM);
/* check predefhook HOOK_HANDLE_SIGALRM name */
melt_assertmsg("check predefhook name HOOK_HANDLE_SIGALRM",
!strncmp (melthkp->hookname,
"HOOK_HANDLE_SIGALRM", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_HANDLE_SIGALRM) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_HANDLE_SIGALRM */
/*predefined hook definition HOOK_HANDLE_SIGCHLD #127*/
void melthookproc_HOOK_HANDLE_SIGCHLD()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_HANDLE_SIGCHLD*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_HANDLE_SIGCHLD);
typedef void melthooksig_HOOK_HANDLE_SIGCHLD_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGCHLD exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGCHLD is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_HANDLE_SIGCHLD */
melthooksig_HOOK_HANDLE_SIGCHLD_t *melthookptr_HOOK_HANDLE_SIGCHLD =
reinterpret_cast <melthooksig_HOOK_HANDLE_SIGCHLD_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_HANDLE_SIGCHLD",
melthookptr_HOOK_HANDLE_SIGCHLD);
/* check predefhook HOOK_HANDLE_SIGCHLD name */
melt_assertmsg("check predefhook name HOOK_HANDLE_SIGCHLD",
!strncmp (melthkp->hookname,
"HOOK_HANDLE_SIGCHLD", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_HANDLE_SIGCHLD) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_HANDLE_SIGCHLD */
/*predefined hook definition HOOK_HANDLE_SIGIO #128*/
void melthookproc_HOOK_HANDLE_SIGIO()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_HANDLE_SIGIO*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_HANDLE_SIGIO);
typedef void melthooksig_HOOK_HANDLE_SIGIO_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGIO exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_HANDLE_SIGIO is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_HANDLE_SIGIO */
melthooksig_HOOK_HANDLE_SIGIO_t *melthookptr_HOOK_HANDLE_SIGIO =
reinterpret_cast <melthooksig_HOOK_HANDLE_SIGIO_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_HANDLE_SIGIO",
melthookptr_HOOK_HANDLE_SIGIO);
/* check predefhook HOOK_HANDLE_SIGIO name */
melt_assertmsg("check predefhook name HOOK_HANDLE_SIGIO",
!strncmp (melthkp->hookname,
"HOOK_HANDLE_SIGIO", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_HANDLE_SIGIO) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_HANDLE_SIGIO */
/*predefined hook definition HOOK_INTERN_KEYWORD #129*/
melt_ptr_t melthookproc_HOOK_INTERN_KEYWORD(melt_ptr_t meltin_KEYWV_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_INTERN_KEYWORD*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_INTERN_KEYWORD);
typedef melt_ptr_t melthooksig_HOOK_INTERN_KEYWORD_t (melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_INTERN_KEYWORD exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_INTERN_KEYWORD is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_INTERN_KEYWORD */
melthooksig_HOOK_INTERN_KEYWORD_t *melthookptr_HOOK_INTERN_KEYWORD =
reinterpret_cast <melthooksig_HOOK_INTERN_KEYWORD_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_INTERN_KEYWORD",
melthookptr_HOOK_INTERN_KEYWORD);
/* check predefhook HOOK_INTERN_KEYWORD name */
melt_assertmsg("check predefhook name HOOK_INTERN_KEYWORD",
!strncmp (melthkp->hookname,
"HOOK_INTERN_KEYWORD", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_INTERN_KEYWORD) ((melt_ptr_t)melthkp,
meltin_KEYWV_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_INTERN_KEYWORD */
/*predefined hook definition HOOK_INTERN_SYMBOL #130*/
melt_ptr_t melthookproc_HOOK_INTERN_SYMBOL(melt_ptr_t meltin_SYMBV_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_INTERN_SYMBOL*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_INTERN_SYMBOL);
typedef melt_ptr_t melthooksig_HOOK_INTERN_SYMBOL_t (melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_INTERN_SYMBOL exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_INTERN_SYMBOL is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_INTERN_SYMBOL */
melthooksig_HOOK_INTERN_SYMBOL_t *melthookptr_HOOK_INTERN_SYMBOL =
reinterpret_cast <melthooksig_HOOK_INTERN_SYMBOL_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_INTERN_SYMBOL",
melthookptr_HOOK_INTERN_SYMBOL);
/* check predefhook HOOK_INTERN_SYMBOL name */
melt_assertmsg("check predefhook name HOOK_INTERN_SYMBOL",
!strncmp (melthkp->hookname,
"HOOK_INTERN_SYMBOL", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_INTERN_SYMBOL) ((melt_ptr_t)melthkp,
meltin_SYMBV_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_INTERN_SYMBOL */
/*predefined hook definition HOOK_INSTALL_ATTRIBUTES #131*/
void melthookproc_HOOK_INSTALL_ATTRIBUTES()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_INSTALL_ATTRIBUTES*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_INSTALL_ATTRIBUTES);
typedef void melthooksig_HOOK_INSTALL_ATTRIBUTES_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_INSTALL_ATTRIBUTES exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_INSTALL_ATTRIBUTES is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_INSTALL_ATTRIBUTES */
melthooksig_HOOK_INSTALL_ATTRIBUTES_t *melthookptr_HOOK_INSTALL_ATTRIBUTES =
reinterpret_cast <melthooksig_HOOK_INSTALL_ATTRIBUTES_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_INSTALL_ATTRIBUTES",
melthookptr_HOOK_INSTALL_ATTRIBUTES);
/* check predefhook HOOK_INSTALL_ATTRIBUTES name */
melt_assertmsg("check predefhook name HOOK_INSTALL_ATTRIBUTES",
!strncmp (melthkp->hookname,
"HOOK_INSTALL_ATTRIBUTES", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_INSTALL_ATTRIBUTES) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_INSTALL_ATTRIBUTES */
/*predefined hook definition HOOK_LOW_DEBUG_VALUE_AT #132*/
void melthookproc_HOOK_LOW_DEBUG_VALUE_AT(melt_ptr_t meltin_VAL_p0, const char* meltin_FILENAME_p1, long meltin_LINENO_p2, const char* meltin_MSG_p3, long meltin_COUNT_p4)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_LOW_DEBUG_VALUE_AT*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_LOW_DEBUG_VALUE_AT);
typedef void melthooksig_HOOK_LOW_DEBUG_VALUE_AT_t (melt_ptr_t, melt_ptr_t, const char*, long, const char*, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_LOW_DEBUG_VALUE_AT exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_LOW_DEBUG_VALUE_AT is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_LOW_DEBUG_VALUE_AT */
melthooksig_HOOK_LOW_DEBUG_VALUE_AT_t *melthookptr_HOOK_LOW_DEBUG_VALUE_AT =
reinterpret_cast <melthooksig_HOOK_LOW_DEBUG_VALUE_AT_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_LOW_DEBUG_VALUE_AT",
melthookptr_HOOK_LOW_DEBUG_VALUE_AT);
/* check predefhook HOOK_LOW_DEBUG_VALUE_AT name */
melt_assertmsg("check predefhook name HOOK_LOW_DEBUG_VALUE_AT",
!strncmp (melthkp->hookname,
"HOOK_LOW_DEBUG_VALUE_AT", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_LOW_DEBUG_VALUE_AT) ((melt_ptr_t)melthkp,
meltin_VAL_p0,
meltin_FILENAME_p1,
meltin_LINENO_p2,
meltin_MSG_p3,
meltin_COUNT_p4);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_LOW_DEBUG_VALUE_AT */
/*predefined hook definition HOOK_LOW_STDERR_VALUE_AT #133*/
void melthookproc_HOOK_LOW_STDERR_VALUE_AT(melt_ptr_t meltin_VAL_p0, const char* meltin_FILENAME_p1, long meltin_LINENO_p2, const char* meltin_MSG_p3, long meltin_COUNT_p4)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_LOW_STDERR_VALUE_AT*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_LOW_STDERR_VALUE_AT);
typedef void melthooksig_HOOK_LOW_STDERR_VALUE_AT_t (melt_ptr_t, melt_ptr_t, const char*, long, const char*, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_LOW_STDERR_VALUE_AT exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_LOW_STDERR_VALUE_AT is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_LOW_STDERR_VALUE_AT */
melthooksig_HOOK_LOW_STDERR_VALUE_AT_t *melthookptr_HOOK_LOW_STDERR_VALUE_AT =
reinterpret_cast <melthooksig_HOOK_LOW_STDERR_VALUE_AT_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_LOW_STDERR_VALUE_AT",
melthookptr_HOOK_LOW_STDERR_VALUE_AT);
/* check predefhook HOOK_LOW_STDERR_VALUE_AT name */
melt_assertmsg("check predefhook name HOOK_LOW_STDERR_VALUE_AT",
!strncmp (melthkp->hookname,
"HOOK_LOW_STDERR_VALUE_AT", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_LOW_STDERR_VALUE_AT) ((melt_ptr_t)melthkp,
meltin_VAL_p0,
meltin_FILENAME_p1,
meltin_LINENO_p2,
meltin_MSG_p3,
meltin_COUNT_p4);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_LOW_STDERR_VALUE_AT */
/*predefined hook definition HOOK_MACRO_EXPORTER #134*/
void melthookproc_HOOK_MACRO_EXPORTER(melt_ptr_t meltin_SYM_p0, melt_ptr_t meltin_VAL_p1, melt_ptr_t meltin_CONTENV_p2)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_MACRO_EXPORTER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_MACRO_EXPORTER);
typedef void melthooksig_HOOK_MACRO_EXPORTER_t (melt_ptr_t, melt_ptr_t, melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_MACRO_EXPORTER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_MACRO_EXPORTER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_MACRO_EXPORTER */
melthooksig_HOOK_MACRO_EXPORTER_t *melthookptr_HOOK_MACRO_EXPORTER =
reinterpret_cast <melthooksig_HOOK_MACRO_EXPORTER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_MACRO_EXPORTER",
melthookptr_HOOK_MACRO_EXPORTER);
/* check predefhook HOOK_MACRO_EXPORTER name */
melt_assertmsg("check predefhook name HOOK_MACRO_EXPORTER",
!strncmp (melthkp->hookname,
"HOOK_MACRO_EXPORTER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_MACRO_EXPORTER) ((melt_ptr_t)melthkp,
meltin_SYM_p0,
meltin_VAL_p1,
meltin_CONTENV_p2);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_MACRO_EXPORTER */
/*predefined hook definition HOOK_MACRO_INSTALLER #135*/
void melthookproc_HOOK_MACRO_INSTALLER(melt_ptr_t meltin_MBIND_p0, melt_ptr_t meltin_MEXPCLOS_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_MACRO_INSTALLER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_MACRO_INSTALLER);
typedef void melthooksig_HOOK_MACRO_INSTALLER_t (melt_ptr_t, melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_MACRO_INSTALLER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_MACRO_INSTALLER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_MACRO_INSTALLER */
melthooksig_HOOK_MACRO_INSTALLER_t *melthookptr_HOOK_MACRO_INSTALLER =
reinterpret_cast <melthooksig_HOOK_MACRO_INSTALLER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_MACRO_INSTALLER",
melthookptr_HOOK_MACRO_INSTALLER);
/* check predefhook HOOK_MACRO_INSTALLER name */
melt_assertmsg("check predefhook name HOOK_MACRO_INSTALLER",
!strncmp (melthkp->hookname,
"HOOK_MACRO_INSTALLER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_MACRO_INSTALLER) ((melt_ptr_t)melthkp,
meltin_MBIND_p0,
meltin_MEXPCLOS_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_MACRO_INSTALLER */
/*predefined hook definition HOOK_MELT_DO_INITIAL_MODE #136*/
void melthookproc_HOOK_MELT_DO_INITIAL_MODE(melt_ptr_t meltin_MODATA_p0, const char* meltin_MODSTR_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_MELT_DO_INITIAL_MODE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_MELT_DO_INITIAL_MODE);
typedef void melthooksig_HOOK_MELT_DO_INITIAL_MODE_t (melt_ptr_t, melt_ptr_t, const char*);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_MELT_DO_INITIAL_MODE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_MELT_DO_INITIAL_MODE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_MELT_DO_INITIAL_MODE */
melthooksig_HOOK_MELT_DO_INITIAL_MODE_t *melthookptr_HOOK_MELT_DO_INITIAL_MODE =
reinterpret_cast <melthooksig_HOOK_MELT_DO_INITIAL_MODE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_MELT_DO_INITIAL_MODE",
melthookptr_HOOK_MELT_DO_INITIAL_MODE);
/* check predefhook HOOK_MELT_DO_INITIAL_MODE name */
melt_assertmsg("check predefhook name HOOK_MELT_DO_INITIAL_MODE",
!strncmp (melthkp->hookname,
"HOOK_MELT_DO_INITIAL_MODE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_MELT_DO_INITIAL_MODE) ((melt_ptr_t)melthkp,
meltin_MODATA_p0,
meltin_MODSTR_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_MELT_DO_INITIAL_MODE */
/*predefined hook definition HOOK_MELT_MAKE_LOCATION #137*/
melt_ptr_t melthookproc_HOOK_MELT_MAKE_LOCATION(const char* meltin_FILENAME_p0, long meltin_LINENO_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_MELT_MAKE_LOCATION*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_MELT_MAKE_LOCATION);
typedef melt_ptr_t melthooksig_HOOK_MELT_MAKE_LOCATION_t (melt_ptr_t, const char*, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_MELT_MAKE_LOCATION exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_MELT_MAKE_LOCATION is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_MELT_MAKE_LOCATION */
melthooksig_HOOK_MELT_MAKE_LOCATION_t *melthookptr_HOOK_MELT_MAKE_LOCATION =
reinterpret_cast <melthooksig_HOOK_MELT_MAKE_LOCATION_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_MELT_MAKE_LOCATION",
melthookptr_HOOK_MELT_MAKE_LOCATION);
/* check predefhook HOOK_MELT_MAKE_LOCATION name */
melt_assertmsg("check predefhook name HOOK_MELT_MAKE_LOCATION",
!strncmp (melthkp->hookname,
"HOOK_MELT_MAKE_LOCATION", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_MELT_MAKE_LOCATION) ((melt_ptr_t)melthkp,
meltin_FILENAME_p0,
meltin_LINENO_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_MELT_MAKE_LOCATION */
/*predefined hook definition HOOK_NAMED_KEYWORD #138*/
melt_ptr_t melthookproc_HOOK_NAMED_KEYWORD(const char* meltin_NAM_p0, long meltin_CREATE_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_NAMED_KEYWORD*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_NAMED_KEYWORD);
typedef melt_ptr_t melthooksig_HOOK_NAMED_KEYWORD_t (melt_ptr_t, const char*, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_NAMED_KEYWORD exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_NAMED_KEYWORD is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_NAMED_KEYWORD */
melthooksig_HOOK_NAMED_KEYWORD_t *melthookptr_HOOK_NAMED_KEYWORD =
reinterpret_cast <melthooksig_HOOK_NAMED_KEYWORD_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_NAMED_KEYWORD",
melthookptr_HOOK_NAMED_KEYWORD);
/* check predefhook HOOK_NAMED_KEYWORD name */
melt_assertmsg("check predefhook name HOOK_NAMED_KEYWORD",
!strncmp (melthkp->hookname,
"HOOK_NAMED_KEYWORD", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_NAMED_KEYWORD) ((melt_ptr_t)melthkp,
meltin_NAM_p0,
meltin_CREATE_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_NAMED_KEYWORD */
/*predefined hook definition HOOK_NAMED_SYMBOL #139*/
melt_ptr_t melthookproc_HOOK_NAMED_SYMBOL(const char* meltin_NAM_p0, long meltin_CREATE_p1)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_NAMED_SYMBOL*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_NAMED_SYMBOL);
typedef melt_ptr_t melthooksig_HOOK_NAMED_SYMBOL_t (melt_ptr_t, const char*, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_NAMED_SYMBOL exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_NAMED_SYMBOL is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_NAMED_SYMBOL */
melthooksig_HOOK_NAMED_SYMBOL_t *melthookptr_HOOK_NAMED_SYMBOL =
reinterpret_cast <melthooksig_HOOK_NAMED_SYMBOL_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_NAMED_SYMBOL",
melthookptr_HOOK_NAMED_SYMBOL);
/* check predefhook HOOK_NAMED_SYMBOL name */
melt_assertmsg("check predefhook name HOOK_NAMED_SYMBOL",
!strncmp (melthkp->hookname,
"HOOK_NAMED_SYMBOL", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_NAMED_SYMBOL) ((melt_ptr_t)melthkp,
meltin_NAM_p0,
meltin_CREATE_p1);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_NAMED_SYMBOL */
/*predefined hook definition HOOK_OVERRIDE_GATE #140*/
void melthookproc_HOOK_OVERRIDE_GATE(long meltin_BEFOREGATE_p0, long* meltout_AFTERGATE_o0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_OVERRIDE_GATE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_OVERRIDE_GATE);
typedef void melthooksig_HOOK_OVERRIDE_GATE_t (melt_ptr_t, long, long* );
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_OVERRIDE_GATE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_OVERRIDE_GATE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_OVERRIDE_GATE */
melthooksig_HOOK_OVERRIDE_GATE_t *melthookptr_HOOK_OVERRIDE_GATE =
reinterpret_cast <melthooksig_HOOK_OVERRIDE_GATE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_OVERRIDE_GATE",
melthookptr_HOOK_OVERRIDE_GATE);
/* check predefhook HOOK_OVERRIDE_GATE name */
melt_assertmsg("check predefhook name HOOK_OVERRIDE_GATE",
!strncmp (melthkp->hookname,
"HOOK_OVERRIDE_GATE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_OVERRIDE_GATE) ((melt_ptr_t)melthkp,
meltin_BEFOREGATE_p0,
meltout_AFTERGATE_o0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_OVERRIDE_GATE */
/*predefined hook definition HOOK_PASS_EXECUTION #141*/
void melthookproc_HOOK_PASS_EXECUTION(const char* meltin_PASSNAME_p0, long meltin_PASSNUM_p1, long meltin_TYPENUM_p2)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_PASS_EXECUTION*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_PASS_EXECUTION);
typedef void melthooksig_HOOK_PASS_EXECUTION_t (melt_ptr_t, const char*, long, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_PASS_EXECUTION exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_PASS_EXECUTION is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_PASS_EXECUTION */
melthooksig_HOOK_PASS_EXECUTION_t *melthookptr_HOOK_PASS_EXECUTION =
reinterpret_cast <melthooksig_HOOK_PASS_EXECUTION_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_PASS_EXECUTION",
melthookptr_HOOK_PASS_EXECUTION);
/* check predefhook HOOK_PASS_EXECUTION name */
melt_assertmsg("check predefhook name HOOK_PASS_EXECUTION",
!strncmp (melthkp->hookname,
"HOOK_PASS_EXECUTION", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_PASS_EXECUTION) ((melt_ptr_t)melthkp,
meltin_PASSNAME_p0,
meltin_PASSNUM_p1,
meltin_TYPENUM_p2);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_PASS_EXECUTION */
/*predefined hook definition HOOK_PATMACRO_EXPORTER #142*/
void melthookproc_HOOK_PATMACRO_EXPORTER(melt_ptr_t meltin_SYM_p0, melt_ptr_t meltin_MACVAL_p1, melt_ptr_t meltin_PATVAL_p2, melt_ptr_t meltin_CONTENV_p3)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_PATMACRO_EXPORTER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_PATMACRO_EXPORTER);
typedef void melthooksig_HOOK_PATMACRO_EXPORTER_t (melt_ptr_t, melt_ptr_t, melt_ptr_t, melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_PATMACRO_EXPORTER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_PATMACRO_EXPORTER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_PATMACRO_EXPORTER */
melthooksig_HOOK_PATMACRO_EXPORTER_t *melthookptr_HOOK_PATMACRO_EXPORTER =
reinterpret_cast <melthooksig_HOOK_PATMACRO_EXPORTER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_PATMACRO_EXPORTER",
melthookptr_HOOK_PATMACRO_EXPORTER);
/* check predefhook HOOK_PATMACRO_EXPORTER name */
melt_assertmsg("check predefhook name HOOK_PATMACRO_EXPORTER",
!strncmp (melthkp->hookname,
"HOOK_PATMACRO_EXPORTER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_PATMACRO_EXPORTER) ((melt_ptr_t)melthkp,
meltin_SYM_p0,
meltin_MACVAL_p1,
meltin_PATVAL_p2,
meltin_CONTENV_p3);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_PATMACRO_EXPORTER */
/*predefined hook definition HOOK_POLL_INPUTS #143*/
void melthookproc_HOOK_POLL_INPUTS(long meltin_DELAYMS_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_POLL_INPUTS*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_POLL_INPUTS);
typedef void melthooksig_HOOK_POLL_INPUTS_t (melt_ptr_t, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_POLL_INPUTS exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_POLL_INPUTS is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_POLL_INPUTS */
melthooksig_HOOK_POLL_INPUTS_t *melthookptr_HOOK_POLL_INPUTS =
reinterpret_cast <melthooksig_HOOK_POLL_INPUTS_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_POLL_INPUTS",
melthookptr_HOOK_POLL_INPUTS);
/* check predefhook HOOK_POLL_INPUTS name */
melt_assertmsg("check predefhook name HOOK_POLL_INPUTS",
!strncmp (melthkp->hookname,
"HOOK_POLL_INPUTS", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_POLL_INPUTS) ((melt_ptr_t)melthkp,
meltin_DELAYMS_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_POLL_INPUTS */
/*predefined hook definition HOOK_PRE_GENERICIZE #144*/
void melthookproc_HOOK_PRE_GENERICIZE(melt_treeptr_t meltin_TFNDECL_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_PRE_GENERICIZE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_PRE_GENERICIZE);
typedef void melthooksig_HOOK_PRE_GENERICIZE_t (melt_ptr_t, melt_treeptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_PRE_GENERICIZE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_PRE_GENERICIZE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_PRE_GENERICIZE */
melthooksig_HOOK_PRE_GENERICIZE_t *melthookptr_HOOK_PRE_GENERICIZE =
reinterpret_cast <melthooksig_HOOK_PRE_GENERICIZE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_PRE_GENERICIZE",
melthookptr_HOOK_PRE_GENERICIZE);
/* check predefhook HOOK_PRE_GENERICIZE name */
melt_assertmsg("check predefhook name HOOK_PRE_GENERICIZE",
!strncmp (melthkp->hookname,
"HOOK_PRE_GENERICIZE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_PRE_GENERICIZE) ((melt_ptr_t)melthkp,
meltin_TFNDECL_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_PRE_GENERICIZE */
/*predefined hook definition HOOK_PROCESS_PRAGMA #145*/
void melthookproc_HOOK_PROCESS_PRAGMA(long meltin_LIX_p0)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_PROCESS_PRAGMA*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_PROCESS_PRAGMA);
typedef void melthooksig_HOOK_PROCESS_PRAGMA_t (melt_ptr_t, long);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_PROCESS_PRAGMA exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_PROCESS_PRAGMA is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_PROCESS_PRAGMA */
melthooksig_HOOK_PROCESS_PRAGMA_t *melthookptr_HOOK_PROCESS_PRAGMA =
reinterpret_cast <melthooksig_HOOK_PROCESS_PRAGMA_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_PROCESS_PRAGMA",
melthookptr_HOOK_PROCESS_PRAGMA);
/* check predefhook HOOK_PROCESS_PRAGMA name */
melt_assertmsg("check predefhook name HOOK_PROCESS_PRAGMA",
!strncmp (melthkp->hookname,
"HOOK_PROCESS_PRAGMA", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_PROCESS_PRAGMA) ((melt_ptr_t)melthkp,
meltin_LIX_p0);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_PROCESS_PRAGMA */
/*predefined hook definition HOOK_REGISTER_PRAGMAS #146*/
void melthookproc_HOOK_REGISTER_PRAGMAS()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_REGISTER_PRAGMAS*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_REGISTER_PRAGMAS);
typedef void melthooksig_HOOK_REGISTER_PRAGMAS_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_REGISTER_PRAGMAS exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_REGISTER_PRAGMAS is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_REGISTER_PRAGMAS */
melthooksig_HOOK_REGISTER_PRAGMAS_t *melthookptr_HOOK_REGISTER_PRAGMAS =
reinterpret_cast <melthooksig_HOOK_REGISTER_PRAGMAS_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_REGISTER_PRAGMAS",
melthookptr_HOOK_REGISTER_PRAGMAS);
/* check predefhook HOOK_REGISTER_PRAGMAS name */
melt_assertmsg("check predefhook name HOOK_REGISTER_PRAGMAS",
!strncmp (melthkp->hookname,
"HOOK_REGISTER_PRAGMAS", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_REGISTER_PRAGMAS) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_REGISTER_PRAGMAS */
/*predefined hook definition HOOK_RTL_EXECUTE #147*/
long melthookproc_HOOK_RTL_EXECUTE()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_RTL_EXECUTE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_RTL_EXECUTE);
typedef long melthooksig_HOOK_RTL_EXECUTE_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_RTL_EXECUTE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_RTL_EXECUTE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_RTL_EXECUTE */
melthooksig_HOOK_RTL_EXECUTE_t *melthookptr_HOOK_RTL_EXECUTE =
reinterpret_cast <melthooksig_HOOK_RTL_EXECUTE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_RTL_EXECUTE",
melthookptr_HOOK_RTL_EXECUTE);
/* check predefhook HOOK_RTL_EXECUTE name */
melt_assertmsg("check predefhook name HOOK_RTL_EXECUTE",
!strncmp (melthkp->hookname,
"HOOK_RTL_EXECUTE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_RTL_EXECUTE) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_RTL_EXECUTE */
/*predefined hook definition HOOK_RTL_GATE #148*/
long melthookproc_HOOK_RTL_GATE()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_RTL_GATE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_RTL_GATE);
typedef long melthooksig_HOOK_RTL_GATE_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_RTL_GATE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_RTL_GATE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_RTL_GATE */
melthooksig_HOOK_RTL_GATE_t *melthookptr_HOOK_RTL_GATE =
reinterpret_cast <melthooksig_HOOK_RTL_GATE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_RTL_GATE",
melthookptr_HOOK_RTL_GATE);
/* check predefhook HOOK_RTL_GATE name */
melt_assertmsg("check predefhook name HOOK_RTL_GATE",
!strncmp (melthkp->hookname,
"HOOK_RTL_GATE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_RTL_GATE) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_RTL_GATE */
/*predefined hook definition HOOK_SIMPLE_IPA_EXECUTE #149*/
long melthookproc_HOOK_SIMPLE_IPA_EXECUTE()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_SIMPLE_IPA_EXECUTE*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_SIMPLE_IPA_EXECUTE);
typedef long melthooksig_HOOK_SIMPLE_IPA_EXECUTE_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_SIMPLE_IPA_EXECUTE exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_SIMPLE_IPA_EXECUTE is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_SIMPLE_IPA_EXECUTE */
melthooksig_HOOK_SIMPLE_IPA_EXECUTE_t *melthookptr_HOOK_SIMPLE_IPA_EXECUTE =
reinterpret_cast <melthooksig_HOOK_SIMPLE_IPA_EXECUTE_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_SIMPLE_IPA_EXECUTE",
melthookptr_HOOK_SIMPLE_IPA_EXECUTE);
/* check predefhook HOOK_SIMPLE_IPA_EXECUTE name */
melt_assertmsg("check predefhook name HOOK_SIMPLE_IPA_EXECUTE",
!strncmp (melthkp->hookname,
"HOOK_SIMPLE_IPA_EXECUTE", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_SIMPLE_IPA_EXECUTE) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_SIMPLE_IPA_EXECUTE */
/*predefined hook definition HOOK_SORT_COMPARE_LESS #150*/
long melthookproc_HOOK_SORT_COMPARE_LESS(melt_ptr_t meltin_LEFT_p0, melt_ptr_t meltin_RIGHT_p1, melt_ptr_t meltin_CMP_p2)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_SORT_COMPARE_LESS*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_SORT_COMPARE_LESS);
typedef long melthooksig_HOOK_SORT_COMPARE_LESS_t (melt_ptr_t, melt_ptr_t, melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_SORT_COMPARE_LESS exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_SORT_COMPARE_LESS is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_SORT_COMPARE_LESS */
melthooksig_HOOK_SORT_COMPARE_LESS_t *melthookptr_HOOK_SORT_COMPARE_LESS =
reinterpret_cast <melthooksig_HOOK_SORT_COMPARE_LESS_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_SORT_COMPARE_LESS",
melthookptr_HOOK_SORT_COMPARE_LESS);
/* check predefhook HOOK_SORT_COMPARE_LESS name */
melt_assertmsg("check predefhook name HOOK_SORT_COMPARE_LESS",
!strncmp (melthkp->hookname,
"HOOK_SORT_COMPARE_LESS", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_SORT_COMPARE_LESS) ((melt_ptr_t)melthkp,
meltin_LEFT_p0,
meltin_RIGHT_p1,
meltin_CMP_p2);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_SORT_COMPARE_LESS */
/*predefined hook definition HOOK_START_UNIT #151*/
void melthookproc_HOOK_START_UNIT()
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_START_UNIT*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_START_UNIT);
typedef void melthooksig_HOOK_START_UNIT_t (melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_START_UNIT exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_START_UNIT is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_START_UNIT */
melthooksig_HOOK_START_UNIT_t *melthookptr_HOOK_START_UNIT =
reinterpret_cast <melthooksig_HOOK_START_UNIT_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_START_UNIT",
melthookptr_HOOK_START_UNIT);
/* check predefhook HOOK_START_UNIT name */
melt_assertmsg("check predefhook name HOOK_START_UNIT",
!strncmp (melthkp->hookname,
"HOOK_START_UNIT", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_START_UNIT) ((melt_ptr_t)melthkp);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_START_UNIT */
/*predefined hook definition HOOK_SYMBOL_IMPORTER #152*/
melt_ptr_t melthookproc_HOOK_SYMBOL_IMPORTER(const char* meltin_SYMNAMESTR_p0, const char* meltin_MODULENAMESTR_p1, melt_ptr_t meltin_PARENV_p2)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_SYMBOL_IMPORTER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_SYMBOL_IMPORTER);
typedef melt_ptr_t melthooksig_HOOK_SYMBOL_IMPORTER_t (melt_ptr_t, const char*, const char*, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_SYMBOL_IMPORTER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_SYMBOL_IMPORTER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_SYMBOL_IMPORTER */
melthooksig_HOOK_SYMBOL_IMPORTER_t *melthookptr_HOOK_SYMBOL_IMPORTER =
reinterpret_cast <melthooksig_HOOK_SYMBOL_IMPORTER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_SYMBOL_IMPORTER",
melthookptr_HOOK_SYMBOL_IMPORTER);
/* check predefhook HOOK_SYMBOL_IMPORTER name */
melt_assertmsg("check predefhook name HOOK_SYMBOL_IMPORTER",
!strncmp (melthkp->hookname,
"HOOK_SYMBOL_IMPORTER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_SYMBOL_IMPORTER) ((melt_ptr_t)melthkp,
meltin_SYMNAMESTR_p0,
meltin_MODULENAMESTR_p1,
meltin_PARENV_p2);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_SYMBOL_IMPORTER */
/*predefined hook definition HOOK_VALUE_EXPORTER #153*/
void melthookproc_HOOK_VALUE_EXPORTER(melt_ptr_t meltin_SYM_p0, melt_ptr_t meltin_VAL_p1, melt_ptr_t meltin_CONTENV_p2)
{
/* code emitted by generate_runtypesupport_predefined_hooks for HOOK_VALUE_EXPORTER*/
#ifndef MELT_SKIP_HOOK_PREDEFINED_CODE
melthook_ptr_t melthkp = (melthook_ptr_t) MELT_PREDEF (HOOK_VALUE_EXPORTER);
typedef void melthooksig_HOOK_VALUE_EXPORTER_t (melt_ptr_t, melt_ptr_t, melt_ptr_t, melt_ptr_t);
/*checkhook exist*/ melt_assertmsg (" check predefhook HOOK_VALUE_EXPORTER exists",
melthkp != NULL);
/*checkhook ishook*/ melt_assertmsg (" check predefhook HOOK_VALUE_EXPORTER is hook",
melt_magic_discr ((melt_ptr_t) melthkp) == MELTOBMAG_HOOK);
/* check hook routine HOOK_VALUE_EXPORTER */
melthooksig_HOOK_VALUE_EXPORTER_t *melthookptr_HOOK_VALUE_EXPORTER =
reinterpret_cast <melthooksig_HOOK_VALUE_EXPORTER_t*>
(melthkp->hookad) ;
melt_assertmsg("check predefhook routine HOOK_VALUE_EXPORTER",
melthookptr_HOOK_VALUE_EXPORTER);
/* check predefhook HOOK_VALUE_EXPORTER name */
melt_assertmsg("check predefhook name HOOK_VALUE_EXPORTER",
!strncmp (melthkp->hookname,
"HOOK_VALUE_EXPORTER", MELT_HOOKNAME_LEN-1));
return (*melthookptr_HOOK_VALUE_EXPORTER) ((melt_ptr_t)melthkp,
meltin_SYM_p0,
meltin_VAL_p1,
meltin_CONTENV_p2);
#endif /* MELT_SKIP_HOOK_PREDEFINED_CODE */
} /* end melthookproc_HOOK_VALUE_EXPORTER */
/* end of code generated by generate_runtypesupport_predefined_hooks for 161 predefined */
/*** End of code file meltbuild-sources/generated/meltrunsup-inc.cc generated on 2016 May 11
* by GCC MELT 6.0.0 20160415 (experimental) [melt-branch revision 236126] MELT_1.3.rc1+ . ***/
|