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
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
|
-- Tree node definitions.
-- Copyright (C) 2002, 2003, 2004, 2005 Tristan Gingold
--
-- GHDL 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 2, or (at your option) any later
-- version.
--
-- GHDL 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 GHDL; see the file COPYING. If not, write to the Free
-- Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-- 02111-1307, USA.
with Ada.Unchecked_Deallocation;
with Types; use Types;
with Tokens; use Tokens;
with Nodes;
with Lists;
with Flists;
package Iirs is
-- This package defines the semantic tree and functions to handle it.
-- The tree is roughly based on IIR (Internal Intermediate Representation),
-- [AIRE/CE Advanced Intermediate Representation with Extensibility,
-- Common Environment. http://www.vhdl.org/aire/index.html [DEAD LINK] ]
-- but oriented object features are not used, and often, functions
-- or fields have changed.
-- Note: this tree is also used during syntaxic analysis, but with
-- a little bit different meanings for the fields.
-- The parser (parse package) build the tree.
-- The semantic pass (sem, sem_expr, sem_names, ...) transforms it into a
-- semantic tree.
-- Documentation:
-- Only the semantic aspect is to be fully documented.
-- The syntaxic aspect is only used between parse and sem.
-- Each node of the tree is a record of type iir, based on the private (so
-- hidden) type nodes.node_type.
--
-- Each node in the tree should be referenced only once (as this is a
-- tree). There are some exceptions to this rule for space optimization
-- purpose:
-- - the interface list of implicit subprograms are shared among the
-- implicit subprograms.
--
-- As the tree represents an AST it is in fact a graph: for there are links
-- from names to the declaration. However these links are marked
-- explicitely as Ref. A Ref doesn't own the node.
--
-- The distinction between owner and reference is very important as it
-- allows to use this meta-model for processing: displaying the tree
-- (without creating infinite loops), copying the tree for instantiation...
--
-- There is a little bit of overhead due to this choice:
-- - some fields looks duplicated: for example an object declaration has
-- both a type field and a subtype indication field, array subtypes
-- have both an index_subtype_list and an index_constraint_list.
-- - Maybe_Ref trick: the Is_Ref flag tells whether the Maybe_Ref are
-- owner or ref.
-- - Maybe_Forward_Ref: the Is_Forward_Ref tells whether the field is
-- ref or forward_ref
-- The root of a semantic tree is a library_declaration.
-- All the library_declarations are kept in a private list, held by
-- package libraries.
-- Exemple of a tree:
-- library_declaration
-- +-- design_file
-- +-- design_unit
-- | +-- entity_declaration
-- +-- design_unit
-- +-- architecture_body
-- ...
-- Since the tree can represent all the libraries and their contents, it
-- is not always loaded into memory.
-- When a library is loaded, only library_declaration, design_file,
-- design_unit and library_unit nodes are created. When a design_unit is
-- really loaded, the design_unit node is not replaced but modified (ie,
-- access to this node are still valid).
-- To add a new kind of node:
-- the name should be of the form iir_kind_NAME
-- add iir_kind_NAME in the definition of type iir_kind_type
-- document the node below: grammar, methods.
-- for each methods, add the name if the case statement in the body
-- (this enables the methods)
-- add an entry in disp_tree (debugging)
-- handle this node in Errorout.Disp_Node
-- Meta-grammar
-- This file is processed by a tool to automatically generate the body, so
-- it must follow a meta-grammar.
--
-- The low level representation is described in nodes.ads.
--
-- The literals for the nodes must be declared in this file like this:
-- type Iir_Kind is
-- (
-- Iir_Kind_AAA,
-- ...
-- Iir_Kind_ZZZ
-- );
-- The tool doesn't check for uniqness as this is done by the compiler.
--
-- It is possible to declare ranges of kinds like this:
-- subtype Iir_Kinds_RANGE is Iir_Kind range
-- Iir_Kind_FIRST ..
-- --Iir_Kind_MID
-- Iir_Kind_LAST;
-- Literals Iir_Kind_MID are optionnal (FIXME: make them required ?), but
-- if present all the values between FIRST and LAST must be present.
--
-- The methods appear after the comment: ' -- General methods.'
-- They have the following format:
-- -- Field: FIELD ATTR (CONV)
-- function Get_NAME (PNAME : PTYPE) return RTYPE;
-- procedure Set_NAME (PNAME : PTYPE; RNAME : RTYPE);
-- 'FIELD' indicate which field of the node is used to store the value.
-- ATTR is optional and if present must be one of:
-- Ref: the field is a reference to an existing node
-- Chain: the field contains a chain of nodes
-- Chain_Next: the field contains the next element of a chain (present
-- only on one field: Set/Get_Chain).
-- ' (CONV)' is present if the type of the value (indicated by RTYPE) is
-- different from the type of the field. CONV can be either 'uc' or 'pos'.
-- 'uc' indicates an unchecked conversion while 'pos' a pos/val conversion.
--
-- Nodes content is described between ' -- Start of Iir_Kind.' and
-- ' -- End of Iir_Kind.' like this:
-- -- Iir_Kind_NODE1 (FORMAT1)
-- -- Iir_Kind_NODE2 (FORMAT2)
-- --
-- -- Get/Set_NAME1 (FIELD1)
-- --
-- -- Get/Set_NAME2 (FIELD2)
-- -- Get/Set_NAME3 (Alias FIELD2)
-- --
-- -- Only for Iir_Kind_NODE1:
-- -- Get/Set_NAME4 (FIELD3)
-- Severals nodes can be described at once; at least one must be described.
-- Fields FIELD1, FIELD2, FIELD3 must be different, unless 'Alias ' is
-- present. The number of spaces is significant. The 'Only for ' lines
-- are optionnal and there may be severals of them.
-------------------------------------------------
-- General methods (can be used on all nodes): --
-------------------------------------------------
-- Create a node of kind KIND.
-- function Create_Iir (Kind: Iir_Kind) return Iir;
--
-- Deallocate a node. Deallocate fields that where allocated by
-- create_iir.
-- procedure Free_Iir (Target: in out Iir);
--
-- Get the kind of the iir.
-- See below for the (public) list of kinds.
-- function Get_Kind (N : Iir) return Iir_Kind;
-- Get the location of the node: ie the current position in the source
-- file when the node was created. This is a little bit fuzzy.
--
-- procedure Set_Location (Target: in out Iir; Location: Location_Type);
-- function Get_Location (Target: in out Iir) return Location_Type;
--
-- Copy a location from a node to another one.
-- procedure Location_Copy (Target: in out Iir; Src: in Iir);
-- The next line marks the start of the node description.
-- Start of Iir_Kind.
--------------------------------------------------
-- A set of methods are associed with a kind. --
--------------------------------------------------
-- Iir_Kind_Design_File (Medium)
-- LRM93 11
-- design_file ::= design_unit { design_unit }
--
-- The library containing this design file.
-- Get/Set_Library (Field0)
-- Get/Set_Parent (Alias Field0)
--
-- Get/Set_File_Dependence_List (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Time when the whole file has been analyzed. This allows ordering
-- analysis and detecting obsolete units across libraries.
-- Get/Set_Analysis_Time_Stamp (Field3)
--
-- Get/Set_File_Checksum (Field4)
--
-- Get the chain of unit contained in the file. This is a simply linked
-- chain, but the tail is kept to speed-up appending operation.
-- Get/Set_First_Design_Unit (Field5)
--
-- Get/Set_Last_Design_Unit (Field6)
--
-- Identifier for the design file file name and dirname.
-- Get/Set_Design_File_Filename (Field12)
-- Get/Set_Design_File_Directory (Field11)
--
-- Flag used during elaboration. Set when the file was already seen.
-- Get/Set_Elab_Flag (Flag3)
-- Iir_Kind_Design_Unit (Medium)
-- LRM93 11
-- design_unit ::= context_clause library_unit
--
-- The design_file containing this design unit.
-- Get/Set_Design_File (Field0)
-- Get/Set_Parent (Alias Field0)
--
-- Get the chain of context clause.
-- Get/Set_Context_Items (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- This is a symbolic date, only used as a order of analysis of design
-- units.
-- Get/Set_Date (Field4)
--
-- Get/Set the library unit, which can be an entity, an architecture,
-- a package, a package body or a configuration.
-- Get/Set_Library_Unit (Field5)
--
-- Collision chain for units.
-- Get/Set_Hash_Chain (Field7)
--
-- Get the list of design units that must be analysed before this unit.
-- See LRM93 11.4 for the rules defining the order of analysis.
-- Get/Set_Dependence_List (Field8)
--
-- FIXME: this field can be put in the library_unit, since it is only used
-- when the units have been analyzed.
-- Get/Set_Analysis_Checks_List (Field9)
--
-- Set the line and the offset in the line, only for the library manager.
-- This is valid until the file is really loaded in memory. On loading,
-- location will contain all this informations.
-- Get/Set_Design_Unit_Source_Pos (Field10)
--
-- Get/Set_Design_Unit_Source_Line (Field11)
--
-- Get/Set_Design_Unit_Source_Col (Field12)
--
-- Get/Set the date state, which indicates whether this design unit is in
-- memory or not.
-- Get/Set_Date_State (State1)
--
-- Flag used during elaboration. Set when the file was already seen.
-- Get/Set_Elab_Flag (Flag3)
--
-- Flags used during configuration
-- Get/Set_Configuration_Mark_Flag (Flag4)
-- Get/Set_Configuration_Done_Flag (Flag5)
-- Iir_Kind_Library_Clause (Short)
--
-- LRM08 13.2 Design libraries
--
-- library_clause ::= LIBRARY logical_name_list ;
--
-- logical_name_list ::= logical_name { , logical_name }
--
-- logical_name ::= identifier
--
-- Note: a library_clause node is created for every logical_name.
-- As a consequence, the scope of the library starts after the logical_name
-- and not after the library_clause. However, since an identifier
-- can only be used as a logical_name, and since the second occurence has
-- no effect, this is correct.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Library_Declaration (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Has_Identifier_List (Flag3)
---------------
-- Literals --
---------------
-- Iir_Kind_String_Literal8 (Short)
--
-- Used for computed literals. Literal_Origin contains the expression
-- whose value was computed during analysis and replaces the expression.
-- Get/Set_Literal_Origin (Field2)
--
-- Same as Type, but marked as property of that node.
-- Get/Set_Literal_Subtype (Field3)
--
-- Get/Set_Type (Field1)
--
-- Number of literals in the expanded string.
-- Get/Set_String_Length (Field4)
--
-- Before analysis, this is the ASCII code of each character in the string.
-- After analysis, this is the position of each literal.
-- Get/Set_String8_Id (Field5)
--
-- Base of the bit_string (corresponds to letters 'b', 'o', 'd' or 'x' in
-- the base specifier).
-- Get/Set_Bit_String_Base (Flag12,Flag13,Flag14)
--
-- Get/Set_Expr_Staticness (State1)
--
-- True if the bit string is signed, (ie letter 's' is present in the base
-- specifier).
-- Get/Set_Has_Signed (Flag1)
--
-- True if the letter 'u' is present in the base specifier.
-- Get/Set_Has_Sign (Flag2)
--
-- True if the integer specifying the length is present.
-- Get/Set_Has_Length (Flag3)
-- Iir_Kind_Integer_Literal (Short)
--
-- Get/Set the value of the integer.
-- Get/Set_Value (Field4,Field5)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Floating_Point_Literal (Short)
--
-- The value of the literal.
-- Get/Set_Fp_Value (Field4,Field5)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Null_Literal (Short)
-- The null literal, which can be a disconnection or a null access.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Physical_Int_Literal (Short)
-- Iir_Kind_Physical_Fp_Literal (Short)
--
-- Get/Set_Literal_Origin (Field2)
--
-- The physical unit of the literal.
-- Get/Set_Physical_Unit (Field3)
--
-- The name of the physical unit (if any).
-- Get/Set_Unit_Name (Field0)
--
-- Get/Set_Type (Field1)
--
-- Must be set to locally except for time literal, which is globally.
-- Get/Set_Expr_Staticness (State1)
--
-- Only for Iir_Kind_Physical_Int_Literal:
-- The multiplicand.
-- Get/Set_Value (Field4,Field5)
--
-- Only for Iir_Kind_Physical_Fp_Literal:
-- The multiplicand.
-- Get/Set_Fp_Value (Field4,Field5)
-- Iir_Kind_Simple_Aggregate (Short)
-- This node can only be generated by evaluation: it is an unidimentional
-- positional aggregate.
--
-- Same as Type, but marked as property of that node.
-- Get/Set_Literal_Subtype (Field3)
--
-- Get/Set_Literal_Origin (Field2)
--
-- List of elements
-- Get/Set_Simple_Aggregate_List (Field4)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Overflow_Literal (Short)
-- This node can only be generated by evaluation to represent an error: out
-- of range, division by zero...
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Unaffected_Waveform (Short)
-- The 'unaffected' reserved word when it appears in the sources.
--
-- Unaffected replaces a waveform element, so it is considered to be part
-- of a chain. But it is always alone in the chain.
-- Get/Set_Chain (Field2)
-------------
-- Tuples --
-------------
-- Iir_Kind_Association_Element_By_Expression (Short)
-- Iir_Kind_Association_Element_Open (Short)
-- Iir_Kind_Association_Element_By_Individual (Short)
-- Iir_Kind_Association_Element_Package (Short)
-- Iir_Kind_Association_Element_Type (Short)
-- Iir_Kind_Association_Element_Subprogram (Short)
-- These are used for association element of an association list with
-- an interface (ie subprogram call, port map, generic map).
--
-- Get/Set_Formal (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Only for Iir_Kind_Association_Element_Package:
-- Only for Iir_Kind_Association_Element_Type:
-- Only for Iir_Kind_Association_Element_Subprogram:
-- Get/Set_Actual (Field3)
--
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Get/Set_Individual_Association_Chain (Field4)
--
-- A function call or a type conversion for the actual.
-- FIXME: should be a name ?
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Get/Set_Actual_Conversion (Field4)
--
-- Only for Iir_Kind_Association_Element_Type:
-- Get/Set_Subprogram_Association_Chain (Field4)
--
-- A function call or a type conversion for the formal.
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Get/Set_Formal_Conversion (Field5)
--
-- Owner of Actual_Type if needed.
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Get/Set_Actual_Type_Definition (Field3)
--
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Only for Iir_Kind_Association_Element_Type:
-- Get/Set_Actual_Type (Field5)
--
-- Get/Set the whole association flag (true if the formal is associated in
-- whole and not individually, see LRM93 4.3.2.2)
-- Get/Set_Whole_Association_Flag (Flag1)
--
-- Get/Set_Collapse_Signal_Flag (Flag2)
--
-- Only for Iir_Kind_Association_Element_Open:
-- Get/Set_Artificial_Flag (Flag3)
--
-- Get/Set_In_Formal_Flag (Flag4)
--
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Must be Locally unless there is an error on one choice.
-- Get/Set_Choice_Staticness (State1)
-- Iir_Kind_Waveform_Element (Short)
--
-- Get/Set_We_Value (Field1)
--
-- Get/Set_Time (Field3)
--
-- Get/Set_Chain (Field2)
-- Iir_Kind_Conditional_Waveform (Short)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Waveform_Chain (Field5)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Conditional_Expression (Short)
-- LRM08 10.5.3
-- conditional_expressions ::=
-- expression WHEN condition
-- { ELSE expression WHEN condition }
-- [ ELSE expression ]
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Choice_By_Others (Short)
-- Iir_Kind_Choice_By_None (Short)
-- Iir_Kind_Choice_By_Range (Short)
-- Iir_Kind_Choice_By_Name (Short)
-- Iir_Kind_Choice_By_Expression (Short)
-- (Iir_Kinds_Choice)
--
--
-- The location of the first alternative is set on:
-- 'when' for case statement, selected assignment and case generate,
-- '(' or ',' for aggregates.
-- The location of the following alternatives is set on '|'.
--
-- Get/Set_Parent (Field0)
--
-- For a list of choices, only the first one is associated, the following
-- associations have the same_alternative_flag set.
-- Get/Set_Chain (Field2)
--
-- These are elements of an choice chain, which is used for
-- case_statement, concurrent_selected_signal_assignment, aggregates.
--
-- Get/Set what is associated with the choice. There are two different
-- nodes, one for simple association and the other for chain association.
-- They don't have the same properties (normal vs chain), so the right
-- field must be selected according to the property to have working
-- walkers. Both fields are never used at the same time.
--
-- For:
-- * an expression for an aggregate
-- * an individual association
-- * a generate_statement_body chain for a case_generate_statement
-- Get/Set_Associated_Expr (Field3)
-- Get/Set_Associated_Block (Alias Field3)
--
-- For
-- * a waveform_chain for a concurrent_selected_signal_assignment,
-- * a sequential statement chain for a case_statement.
-- Get/Set_Associated_Chain (Field4)
--
-- Should be a simple_name.
-- Only for Iir_Kind_Choice_By_Name:
-- Get/Set_Choice_Name (Field5)
--
-- Only for Iir_Kind_Choice_By_Expression:
-- Get/Set_Choice_Expression (Field5)
--
-- Only for Iir_Kind_Choice_By_Range:
-- Get/Set_Choice_Range (Field5)
--
-- Get/Set_Same_Alternative_Flag (Flag1)
--
-- Only for Iir_Kind_Choice_By_Range:
-- Only for Iir_Kind_Choice_By_Expression:
-- Get/Set_Choice_Staticness (State1)
-- Iir_Kind_Entity_Aspect_Entity (Short)
--
-- Get/Set_Entity_Name (Field2)
--
-- A simple name for the architecture. The named entity can be:
-- * Null_Iir if the architecture is not known.
-- * a design unit if the architecture is known but not loaded.
-- * an architecture body if the architecture is loaded.
-- Get/Set_Architecture (Field3)
-- Iir_Kind_Entity_Aspect_Open (Short)
-- Iir_Kind_Entity_Aspect_Configuration (Short)
--
-- Get/Set_Configuration_Name (Field1)
-- Iir_Kind_Block_Configuration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Only use_clause are allowed here.
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Configuration_Item_Chain (Field3)
--
-- Single linked list of block configuration that apply to the same
-- for scheme generate block.
-- Get/Set_Prev_Block_Configuration (Field4)
--
-- Note: for default block configurations of iterative generate statement,
-- the block specification is an indexed_name, whose index_list is others.
-- The name designates either a block statement or a generate statement
-- body.
-- Get/Set_Block_Specification (Field5)
-- Iir_Kind_Binding_Indication (Medium)
--
-- Get/Set_Default_Entity_Aspect (Field1)
--
-- The entity aspect.
-- It is a iir_kind_entity_aspect_entity, iir_kind_entity_aspect_open or
-- iir_kind_entity_aspect_configuration. This may be transformed into a
-- declaration by semantic.
-- Get/Set_Entity_Aspect (Field3)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
-- Iir_Kind_Component_Configuration (Short)
-- Iir_Kind_Configuration_Specification (Short)
--
-- LRM08 7.3 Configuration specification
--
-- configuration_specification ::=
-- simple_configuration_specification
-- | compound_configuration_specification
--
-- simple_configuration_specification ::=
-- FOR component_specification binding_indication ;
-- [ END FOR ; ]
--
-- compound_configuration_specification ::=
-- FOR component_specification binding_indication ;
-- verification_unit_binding_indication ;
-- { verification_unit_binding_indication ; }
-- END FOR ;
--
-- component_specification ::=
-- instantiation_list : component_name
--
-- instantiation_list ::=
-- instantiation_label { , instantiation_label }
-- | OTHERS
-- | ALL
--
-- The location points to 'for'.
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Component_Name (Field4)
--
-- A list, list_others or list_all.
-- Get/Set_Instantiation_List (Field1)
--
-- Only for Iir_Kind_Component_Configuration:
-- Get/Set_Block_Configuration (Field5)
--
-- Get/Set_Binding_Indication (Field3)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Disconnection_Specification (Short)
--
-- LRM08 7.4 Disconnection specification
--
-- disconnection_specification ::=
-- DISCONNECT guarded_signal_specification AFTER time_expression ;
--
-- guarded_signal_specification ::=
-- guarded_signal_list : type_mark
--
-- signal_list ::=
-- signal_name { , signal_name }
-- | OTHERS
-- | ALL
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Signal_List (Field3)
--
-- Get/Set_Type_Mark (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Block_Header (Medium)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
-- Iir_Kind_Entity_Class (Short)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Entity_Class (Field3)
-- Iir_Kind_Attribute_Specification (Medium)
--
-- LRM08 7.2 Attribute specification
--
-- attribute_specification ::=
-- ATTRIBUTE attribute_designator OF entity_specification
-- IS expression ;
--
-- entity_specification ::= entity_name_list : entity_class
--
-- entity_name_list ::=
-- entity_designator { , entity_designator }
-- | OTHERS
-- | ALL
--
-- entity_designator ::= entity_tag [ signature ]
--
-- entity_tag ::= simple_name | character_literal | operator_symbol
--
-- LRM08 8.6 Attribute names
--
-- attribute_designator ::= /attribute/_simple_name
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Entity_Class (Field3)
--
-- Get/Set_Entity_Name_List (Field8)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Attribute_Value_Spec_Chain (Field4)
--
-- Always a simple name.
-- Get/Set_Attribute_Designator (Field6)
--
-- Get/Set_Attribute_Specification_Chain (Field7)
-- Iir_Kind_Attribute_Value (Short)
-- An attribute value is the element of the chain of attribute of an
-- entity, marking the entity as decorated by the attribute.
-- This node is built only by sem.
-- In fact, the node is member of the chain of attribute of an entity, and
-- of the chain of entity of the attribute specification.
-- This makes elaboration (and more precisely, expression evaluation)
-- easier.
--
-- Chain of attribute_value for the attribute specification
-- Get/Set_Spec_Chain (Field2)
--
-- Get/Set_Type (Field1)
--
-- Chain of all attribute_value for the node containing declarations
-- Get/Set_Value_Chain (Field0)
--
-- Get/Set_Designated_Entity (Field3)
--
-- Get/Set_Attribute_Specification (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Psl_Expression (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Psl_Expression (Field3)
-- Iir_Kind_Signature (Medium)
--
-- LRM08 4.5.3 Signatures
--
-- signature ::= '[' [ type_mark { , type_mark } ] [ RETURN type_mark ] ']'
--
-- Get/Set_Signature_Prefix (Field1)
--
-- Get/Set_Type_Marks_List (Field2)
--
-- Get/Set_Return_Type_Mark (Field8)
-- Iir_Kind_Overload_List (Short)
--
-- Get/Set_Overload_List (Field1)
-------------------
-- Declarations --
-------------------
-- Iir_Kind_Entity_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Has_Begin (Flag10)
-- Iir_Kind_Architecture_Body (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Name of the entity declaration for the architecture.
-- Get/Set_Entity_Name (Field2)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- The default configuration created by canon. This is a design unit.
-- Get/Set_Default_Configuration_Declaration (Field6)
--
-- Get/Set_Foreign_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Configuration_Declaration (Short)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Name of the entity of a configuration.
-- Get/Set_Entity_Name (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Block_Configuration (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Package_Header (Medium)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
-- Iir_Kind_Package_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Package_Header (Field6)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- For nested packages
-- Get/Set_Chain (Field2)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Package_Body (Field5)
--
-- Get/Set_Package_Origin (Field7)
--
-- If true, the package need a body.
-- Get/Set_Need_Body (Flag1)
--
-- True for uninstantiated package that will be macro-expanded for
-- simulation. The macro-expansion is done by canon, so controlled by
-- back-end. The reason of macro-expansion is presence of interface
-- type.
-- Get/Set_Macro_Expanded_Flag (Flag2)
--
-- True if the package declaration has least one package instantiation
-- declaration whose uninstantiated declaration needs both a body and
-- macro-expansion. In that case, the instantiation needs macro-expansion
-- of their body.
-- Get/Set_Need_Instance_Bodies (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Package_Body (Short)
-- Note: a body is not a declaration, that's the reason why there is no
-- _declaration suffix in the name.
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- For nested packages.
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- The corresponding package declaration.
-- Get/Set_Package (Field5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Package_Instantiation_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get/Set_Identifier (Field3)
--
-- The name of the uninstantiated package as it appear in the sources. May
-- be Null_Iir.
-- Get/Set_Uninstantiated_Package_Name (Field7)
--
-- The uninstantiated package declaration.
-- Get/Set_Uninstantiated_Package_Decl (Field9)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- For nested packages
-- Get/Set_Chain (Field2)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Package_Body (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Context_Declaration (Short)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get the chain of context clause.
-- Get/Set_Context_Items (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Library_Declaration (Short)
--
-- Design files in the library.
-- Get/Set_Design_File_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- This node is used to contain all a library. Only internaly used.
-- Name (identifier) of the library.
-- Get/Set_Identifier (Field3)
--
-- Most recent date in this library.
-- Get/Set_Date (Field4)
--
-- Get/Set_Library_Directory (Field5)
--
-- Used to compute dependences.
-- Get/Set_Elab_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Component_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Has_Is (Flag7)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- LRM08 6.6 Alias declarations
--
-- alias_declaration ::=
-- ALIAS alias_designator [ : subtype_indication ] IS
-- name [ signature ] ;
--
-- alias_designator ::= identifier | character_literal | operator_symbol
--
-- Object aliases and non-object aliases are represented by two different
-- nodes, as their semantic is different. The parser only creates object
-- alias declaration nodes, but sem_decl replaces the node for non-object
-- alias declarations.
-- Iir_Kind_Object_Alias_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Name (Field4)
--
-- The subtype indication may not be present.
-- Get/Set_Subtype_Indication (Field5)
--
-- The type can be deduced from the subtype indication, but this field is
-- present for uniformity (and speed).
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Non_Object_Alias_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Name (Field4)
--
-- Get/Set_Alias_Signature (Field5)
--
-- Set when the alias was implicitely created (by Sem) because of an
-- explicit alias of a type.
-- Get/Set_Implicit_Alias_Flag (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Anonymous_Type_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type_Definition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Used for informative purpose only.
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Definition (Field4)
--
-- Set if the type declaration completes an incomplete type declaration
-- Get/Set_Incomplete_Type_Declaration (Field5)
-- Iir_Kind_Type_Declaration (Short)
--
-- LRM08 6.3 Type declarations
--
-- type_declaration ::=
-- full_type_declaration
-- | incomplete_type_declaration
--
-- full_type_declaration ::=
-- TYPE identifier IS type_definition ;
--
-- type_definition ::=
-- scalar_type_definition
-- | composite_type_definition
-- | access_type_definition
-- | file_type_definition
-- | protected_type_definition
--
-- LRM08 5.4.2 Incomplete type declarations
--
-- incomplete_type_declaration ::=
-- TYPE identifier ;
--
-- Get/Set_Parent (Field0)
--
-- Definition of the type.
-- Note: the type definition can be a real type (unconstrained array,
-- enumeration, file, record, access) or a subtype (integer, floating
-- point).
-- The parser set this field to null_iir for an incomplete type
-- declaration. This field is set to an incomplete_type_definition node
-- when analyzed.
-- Get/Set_Type_Definition (Field1)
-- Get/Set_Type (Alias Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Set if the type declaration completes an incomplete type declaration
-- Get/Set_Incomplete_Type_Declaration (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Subtype_Declaration (Short)
--
-- LRM08 6.3 Subtype declarations
--
-- subtype_declaration ::=
-- SUBTYPE identifier IS subtype_indication ;
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- For integer and real types, the subtype_indication of the implicitly
-- declared subtype for the type is the subtype definition.
-- Get/Set_Subtype_Indication (Field5)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Nature_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Nature (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Subnature_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Nature (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Interface_Signal_Declaration (Short)
-- Iir_Kind_Interface_Constant_Declaration (Short)
-- Iir_Kind_Interface_Variable_Declaration (Short)
-- Iir_Kind_Interface_File_Declaration (Short)
--
-- Get/Set the parent of an interface declaration.
-- The parent is an entity declaration, a subprogram specification, a
-- component declaration, a loop statement, a block declaration or ??
-- Useful to distinguish a port and an interface.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Must always be null_iir for iir_kind_interface_file_declaration.
-- Get/Set_Default_Value (Field4)
--
-- The type can be deduced from the subtype indication, but this field is
-- present for uniformity (and speed).
-- Get/Set_Type (Field1)
--
-- Get/Set_Mode (Flag13,Flag14,Flag15)
--
-- Only for Iir_Kind_Interface_Signal_Declaration:
-- Get/Set_Has_Disconnect_Flag (Flag1)
--
-- Only for Iir_Kind_Interface_Signal_Declaration:
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Only for Iir_Kind_Interface_Signal_Declaration:
-- Get/Set_Guarded_Signal_Flag (Flag8)
--
-- Only for Iir_Kind_Interface_Signal_Declaration:
-- Get/Set_Signal_Kind (Flag9)
--
-- Get/Set_Has_Mode (Flag10)
--
-- Get/Set_Has_Class (Flag11)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Only for Iir_Kind_Interface_Signal_Declaration:
-- Get/Set_Open_Flag (Flag7)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Interface_Type_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Interface_Type_Subprograms (Field4)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Interface_Package_Declaration (Medium)
--
-- LRM08 6.5.5 Interface package declarations
--
-- interface_package_declaration ::=
-- PACKAGE identifier IS NEW /uninstantiated_package/_name
-- interface_package_generic_map_aspect
--
-- interface_package_generic_map_aspect ::=
-- generic_map_aspect
-- | GENERIC MAP ( <> ) -- Represented by Null_Iir
-- | GENERIC MAP ( DEFAULT ) -- Not yet implemented
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Uninstantiated_Package_Name (Field7)
--
-- Get/Set_Uninstantiated_Package_Decl (Field9)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_Function_Declaration (Medium)
-- Iir_Kind_Procedure_Declaration (Medium)
--
-- LRM08 4.2 Subprogram declarations
--
-- subprogram_declaration ::= subprogram_specification ;
--
-- subprogram_specification ::=
-- procedure_specification | function_specification
--
-- procedure_specification ::=
-- PROCEDURE designator
-- subprogram_header
-- [ [ PARAMETER ] ( formal_parameter_list ) ]
--
-- function_specification ::=
-- [ PURE | IMPURE ] FUNCTION designator
-- subprogram_header
-- [ [ PARAMETER ] ( formal_parameter_list ) ] RETURN type_mark
--
-- designator ::= identifier | operator_symbol
--
-- operator_symbol ::= string_literal
--
-- Note: the subprogram specification of a body is kept, but should be
-- ignored if there is a subprogram declaration. The function
-- Is_Second_Subprogram_Specification returns True on such specification.
--
-- The declaration containing this subrogram declaration.
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Return_Type (Field1)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Type (Alias Field1)
--
-- Get/Set_Chain (Field2)
--
-- For string, the identifier is the corresponding reserved word.
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subprogram_Hash (Field4)
--
-- Get/Set_Interface_Declaration_Chain (Field5)
--
-- Get/Set_Generic_Chain (Field6)
--
-- --Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Implicit_Definition (Field7)
--
-- Get/Set_Return_Type_Mark (Field8)
--
-- Get/Set_Subprogram_Body (Field9)
--
-- Get/Set_Subprogram_Depth (Field10)
--
-- Get/Set_Overload_Number (Field12)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Pure_Flag (Flag2)
--
-- Only for Iir_Kind_Procedure_Declaration:
-- Get/Set_Passive_Flag (Flag2)
--
-- Get/Set_Foreign_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Resolution_Function_Flag (Flag7)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Has_Pure (Flag8)
--
-- True is the specification is immediately followed by a body.
-- Get/Set_Has_Body (Flag9)
--
-- Get/Set_Has_Parameter (Flag10)
--
-- Only for Iir_Kind_Procedure_Declaration:
-- Get/Set_Suspend_Flag (Flag11)
--
-- For an explicit subprogram: true if the declaration is an homograph of
-- an implicit operation of a type.
-- Get/Set_Hide_Implicit_Flag (Flag12)
--
-- Get/Set_Wait_State (State1)
--
-- Only for Iir_Kind_Procedure_Declaration:
-- Get/Set_Purity_State (State2)
--
-- Get/Set_All_Sensitized_State (State3)
-- Iir_Kind_Function_Body (Medium)
-- Iir_Kind_Procedure_Body (Medium)
--
-- LRM08 4.3 Subprogram bodies
--
-- subprogram_body ::=
-- subprogram_specification IS
-- subprogram_declarative_part
-- BEGIN
-- subprogram_statement_part
-- END [ subprogram_kind ] [ designator ] ;
--
-- subprogram_kind ::= PROCEDURE | FUNCTION
--
-- Get/Set_Parent (Field0)
--
-- The parse stage always puts a declaration before a body.
-- Sem will remove the declaration if there is a forward declaration.
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Impure_Depth (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Get/Set_Subprogram_Specification (Field6)
--
-- Get/Set_Callees_List (Field7)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Only for Iir_Kind_Procedure_Body:
-- Get/Set_Suspend_Flag (Flag11)
-- Iir_Kind_Interface_Function_Declaration (Medium)
-- Iir_Kind_Interface_Procedure_Declaration (Medium)
--
-- LRM08 6.5.4 Interface subprogram declarations
--
-- interface_subprogram_declaration ::=
-- interface_subprogram_specification
-- [ IS interface_subprogram_default ]
--
-- interface_subprogram_specification ::=
-- interface_procedure_specification | interface_function_specification
--
-- interface_procedure_specification ::=
-- PROCEDURE designator
-- [ [ PARAMETER ] ( formal_parameter_list ) ]
--
-- interface_function_specification ::=
-- [ PURE | IMPURE ] FUNCTION designator
-- [ [ PARAMETER ] ( formal_parameter_list ) ] RETURN type_mark
--
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_Interface_Function_Declaration:
-- Get/Set_Return_Type (Field1)
--
-- Only for Iir_Kind_Interface_Function_Declaration:
-- Get/Set_Type (Alias Field1)
--
-- Get/Set_Chain (Field2)
--
-- For string, the identifier is the corresponding reserved word.
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subprogram_Hash (Field4)
--
-- Get/Set_Interface_Declaration_Chain (Field5)
--
-- Get/Set_Return_Type_Mark (Field8)
--
-- Get/Set_Subprogram_Depth (Field10)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Only for Iir_Kind_Interface_Function_Declaration:
-- Get/Set_Pure_Flag (Flag2)
--
-- Get/Set_Foreign_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Only for Iir_Kind_Interface_Function_Declaration:
-- Get/Set_Resolution_Function_Flag (Flag7)
--
-- Only for Iir_Kind_Interface_Function_Declaration:
-- Get/Set_Has_Pure (Flag8)
--
-- Get/Set_Has_Parameter (Flag10)
--
-- Get/Set_All_Sensitized_State (State3)
-- Iir_Kind_Signal_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Get/Set_Default_Value (Field4)
--
-- Get/Set_Type (Field1)
--
-- For a non-resolved signal: null_iir if the signal has no driver, or
-- a process/concurrent_statement for which the signal should have a
-- driver. This is used to catch at analyse time unresolved signals with
-- several drivers.
-- -- Get/Set_Signal_Driver (Field7)
--
-- Get/Set_Has_Disconnect_Flag (Flag1)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Guarded_Signal_Flag (Flag8)
--
-- Get/Set_Signal_Kind (Flag9)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Guard_Signal_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Guard_Expression (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Guard_Sensitivity_List (Field4)
--
-- Get/Set_Block_Statement (Field5)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Guarded_Signal_Flag (Flag8)
--
-- Get/Set_Signal_Kind (Flag9)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Signal_Attribute_Declaration (Short)
--
-- Chain of implicit signals created from signal attribute. This is just
-- an helper so that translation can create these implicit signals at the
-- same time as user signal declarations.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Chain of signals
-- Get/Set_Signal_Attribute_Chain (Field3)
-- Iir_Kind_Constant_Declaration (Medium)
-- Iir_Kind_Iterator_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- For iterator, this is the reconstructed subtype indication.
-- Get/Set_Subtype_Indication (Field5)
--
-- Only for Iir_Kind_Iterator_Declaration:
-- Get/Set_Discrete_Range (Field6)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Default value of a deferred constant points to the full constant
-- declaration.
-- Get/Set_Default_Value (Field4)
--
-- Note that the type may be extracted from the default_value if the subtype
-- indication is unconstrained.
-- Get/Set_Type (Field1)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Summary:
-- | constant C1 : integer; -- Deferred declaration (in a package)
-- | constant C2 : integer := 4; -- Declaration
-- | constant C1 : integer := 3; -- Full declaration (in a body)
-- | NAME Deferred_declaration Deferred_declaration_flag
-- | C1 Null_iir or C1' (*) True
-- | C2 Null_Iir False
-- | C1' C1 False
-- |(*): Deferred_declaration is Null_Iir as long as the full declaration
-- | has not been analyzed.
-- Get/Set_Deferred_Declaration (Field6)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Get/Set_Deferred_Declaration_Flag (Flag1)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Variable_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Get/Set_Default_Value (Field4)
--
-- Get/Set_Type (Field1)
--
-- True if the variable is a shared variable.
-- Get/Set_Shared_Flag (Flag2)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_File_Declaration (Medium)
--
-- LRM08 6.4.2.5 File declarations
--
-- file_declaration ::=
-- FILE identifier_list : subtype_indication [ file_open_information ] ;
--
-- file_open_information ::=
-- [ OPEN file_open_kind_expression ] IS file_logical_name
--
-- file_logical_name ::= string_expression
--
-- LRM87
--
-- file_declaration ::=
-- FILE identifier : subtype_indication IS [ mode ] file_logical_name ;
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Get/Set_File_Logical_Name (Field6)
--
-- This is not used in vhdl 87.
-- Get/Set_File_Open_Kind (Field7)
--
-- This is used only in vhdl 87.
-- Get/Set_Mode (Flag13,Flag14,Flag15)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Has_Mode (Flag10)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Element_Declaration (Short)
--
-- LRM08 5.3.3 Record types
--
-- element_declaration ::=
-- identifier_list : element_subtype_definition ;
--
-- identifier_list ::= identifier { , identifier }
--
-- element_subtype_definition ::= subtype_indication
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Return the position of the element in the record, starting from 0 for
-- the first record element, increasing by one for each successive element.
-- Get/Set_Element_Position (Field4)
--
-- The type can be deduced from the subtype indication, but this field is
-- present for uniformity (and speed).
-- Get/Set_Type (Field1)
--
-- The 'primary' element declaration, the one declared in the record type
-- definition. Other element declarations might be created for new
-- constraints in record subtypes.
-- Get/Set_Base_Element_Declaration (Field2)
--
-- Get/Set_Has_Identifier_List (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Record_Element_Constraint (Short)
--
-- Record subtype definition which defines this constraint.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Corresponding element_declaration. FIXME: remove as supersided by
-- element_position.
-- Get/Set_Element_Declaration (Field5)
--
-- Get/Set_Identifier (Field3)
--
-- Return the position of the element in the record, starting from 0 for
-- the first record element, increasing by one for each successive element.
-- Get/Set_Element_Position (Field4)
--
-- Get/Set_Base_Element_Declaration (Field2)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Attribute_Declaration (Short)
--
-- LRM08 6.7 Attribute declarations
--
-- attribute_declaration ::=
-- ATTRIBUTE identifier : type_mark ;
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Type_Mark (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Group_Template_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- List of entity class entry.
-- To handle `<>', the last element of the list can be an entity_class of
-- kind tok_box.
-- Get/Set_Entity_Class_Entry_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Group_Declaration (Short)
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- List of constituents.
-- Get/Set_Group_Constituent_List (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Group_Template_Name (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Psl_Endpoint_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Always boolean.
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Psl_Declaration (Field6)
--
-- Get/Set_PSL_Clock (Field7)
--
-- Get/Set_PSL_NFA (Field8)
--
-- Number of states in the NFA.
-- Get/Set_PSL_Nbr_States (Field9)
--
-- Get/Set_PSL_Clock_Sensitivity (Field10)
--
-- True if at least one of the NFA edge has the EOS flag.
-- Get/Set_PSL_EOS_Flag (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Psl_Declaration (Medium)
-- A psl sequence or property declaration.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Psl_Declaration (Field6)
--
-- Valid only for property declaration.
-- Get/Set_PSL_Clock (Field7)
--
-- Valid only for property declaration without parameters.
-- Get/Set_PSL_NFA (Field8)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Terminal_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Nature (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Free_Quantity_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Default_Value (Field4)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Across_Quantity_Declaration (Medium)
-- Iir_Kind_Through_Quantity_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Default_Value (Field4)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Plus_Terminal (Field8)
--
-- Get/Set_Minus_Terminal (Field9)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Use_Clause (Short)
--
-- LRM08 12.4 Use clauses
--
-- use_clause ::=
-- USE selected_name { , selected_name } ;
--
-- Location is on 'USE'.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Selected_Name (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Use_Clause_Chain (Field3)
-- Iir_Kind_Context_Reference (Short)
--
-- LRM08 13.4 Context clauses
--
-- context_reference ::=
-- CONTEXT selected_name { , selected_name }
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Selected_Name (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Context_Reference_Chain (Field3)
-----------------------
-- type definitions --
-----------------------
-- For Iir_Kinds_Type_And_Subtype_Definition:
--
-- Type_Declarator:
-- Points to the type declaration or subtype declaration that has created
-- this definition. For some types, such as integer and floating point
-- types, both type and subtype points to the declaration.
-- However, there are cases where a type definition doesn't point to
-- a declarator: anonymous subtype created by index contraints, or
-- anonymous subtype created by an object declaration.
-- Note: a type definition cannot be anoynymous.
-- Get/Set_Type_Declarator (Field3)
--
-- The base type.
-- For a subtype, it returns the type.
-- For a type, it must return the type itself.
-- Get/Set_Base_Type (Field4)
--
-- The staticness of a type, according to LRM93 7.4.1.
-- Note: These types definition are always locally static:
-- enumeration, integer, floating.
-- However, their subtype are not necessary locally static.
-- Get/Set_Type_Staticness (State1)
--
-- The resolved flag of a subtype, according to LRM93 2.4
-- Get/Set_Resolved_Flag (Flag1)
--
-- The signal_type flag of a type definition.
-- It is true when the type can be used for a signal.
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Enumeration_Type_Definition (Short)
--
-- Return the list of literals. This list is created when the node is
-- created.
-- Get/Set_Enumeration_Literal_List (Field2)
--
-- Get the range of the type (This is just an ascending range from the
-- first literal to the last declared literal).
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Always itself
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Only_Characters_Flag (Flag4)
--
-- Get/Set_Is_Character_Type (Flag5)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Enumeration_Literal (Short)
--
-- Nota: two literals of the same type are equal iff their value is the
-- same; in other words, there may be severals literals with the same
-- value.
--
-- The parent of an enumeration_literal is the same parent as the type
-- declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
-- Get/Set_Return_Type (Alias Field1)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subprogram_Hash (Field4)
--
-- The value of an enumeration literal is the position.
-- Get/Set_Enum_Pos (Field5)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Never set to true, but possible when used as a prefix of an expanded
-- name in a overloaded subprogram.
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Physical_Type_Definition (Short)
--
-- The range_constraint from the type declaration.
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Unit_Chain (Field2)
-- Get/Set_Primary_Unit (Alias Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Unit_Declaration (Short)
--
-- LRM08 5.2.4 Physical types
--
-- primary_unit_declaration ::= identifier ;
--
-- secondary_unit_declaration ::= identifier = physical_literal ;
--
-- physical_literal ::= [ abstract_literal ] /unit/_name
--
-- The parent of a physical unit is the same parent as the type
-- declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- The Physical_Literal is the expression that defines the value of a
-- unit. It is evaluated during analysis and thus expressed as a multiple
-- of the primary unit. That's true even for the primary unit whose value
-- is thus 1.
-- Get/Set_Physical_Literal (Field4)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Visible_Flag (Flag4)
-- LRM08 5.2 Scalar types
--
-- range_constraint ::= RANGE range
--
-- range ::=
-- range_attribute_name
-- | simple_expression direction simple_expression
--
-- direction ::= to | downto
-- Iir_Kind_Integer_Type_Definition (Short)
-- Iir_Kind_Floating_Type_Definition (Short)
--
-- The range_constraint from the type declaration.
-- Get/Set_Range_Constraint (Field1)
--
-- The type declarator that has created this type.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Type staticness is always locally.
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Array_Type_Definition (Medium)
--
-- LRM08 5.3.2 Array types / LRM93 3.2.1
--
-- unbounded_array_definition ::=
-- ARRAY ( index_subtype_definition { , index_subtype_definition } )
-- OF element_subtype_indication
--
-- index_subtype_definition ::= type_mark RANGE <>
--
-- This is a list of type marks.
-- Get/Set_Index_Subtype_Definition_List (Field6)
--
-- Get/Set_Element_Subtype_Indication (Field2)
--
-- Same as the index_subtype_definition_list.
-- Get/Set_Index_Subtype_List (Field9)
--
-- Get/Set_Element_Subtype (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Constraint_State (State2)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Always false.
-- Get/Set_Index_Constraint_Flag (Flag4)
-- Iir_Kind_Record_Type_Definition (Short)
--
-- LRM08 5.3.3 Record types / LRM93 3.2.2 Record types
--
-- record_type_definition ::=
-- RECORD
-- element_declaration
-- { element_declaration }
-- END RECORD [ /record_type/_simple_name ]
--
-- Get/Set_Elements_Declaration_List (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Constraint_State (State2)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Access_Type_Definition (Short)
--
-- LRM08 5.4 Access types
--
-- access_type_definition ::= ACCESS subtype_indication
--
-- The subtype_indication as it appears. Can designate an
-- incomplete_type_definition.
-- Get/Set_Designated_Subtype_Indication (Field5)
--
-- The resolved designated type.
-- Get/Set_Designated_Type (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Next access type that also referenced the same incomplete type when
-- defined.
-- Get/Set_Incomplete_Type_Ref_Chain (Field0)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_File_Type_Definition (Short)
--
-- Get/Set_File_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- True if this is the std.textio.text file type, which may require special
-- handling.
-- Get/Set_Text_File_Flag (Flag4)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Incomplete_Type_Definition (Short)
-- Type definition for an incomplete type. This is created during the
-- analysis of the incomplete type declaration.
--
-- Chain of access_type_definition that designated this type. This is
-- simply a forward_ref as the access type is declared after the
-- incomplete type.
-- Get/Set_Incomplete_Type_Ref_Chain (Field0)
--
-- Set to the incomplete type declaration.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Set to the complete type definition when completed.
-- Get/Set_Complete_Type_Definition (Field5)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Interface_Type_Definition (Short)
-- Type definition for an interface type.
--
-- Set to interface type declaration.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Set only during analysis of association: type associated with this
-- interface, so that references to this interface can use the actual
-- type.
-- Get/Set_Associated_Type (Field5)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Protected_Type_Declaration (Short)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Protected_Type_Body (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Protected_Type_Body (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Protected_Type_Declaration (Field4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Wildcard_Type_Definition (Short)
-- A wildcard type doesn't correspond to a type defined by VHDL. It
-- is used only during analysis to temporary set the type of an entity
-- when the type is not precisely known but restricted to some class of
-- types. Eg: the type of an aggregate is not known before being
-- determined by the context, but can only be an array or a record.
-- Wildcard types are statically created by std_package and the set of
-- restrictions depends on the node. See std_package.ads
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Type_Staticness (State1)
--------------------------
-- subtype definitions --
--------------------------
-- LRM08 6.3 Subtype declarations
--
-- subtype_indication ::=
-- [ resolution_indication ] type_mark [ constraint ]
--
-- There is no uniq representation for a subtype indication. If there is
-- only a type_mark, then a subtype indication is represented by a name
-- (a simple name or an expanded name); otherwise it is represented by one
-- of the subtype definition node.
--
-- resolution_indication ::=
-- resolution_function_name | ( element_resolution )
--
-- element_resolution ::= array_element_resolution | record_resolution
--
-- If there is no constraint but a resolution function name, the subtype
-- indication is represented by a subtype_definition (which will be
-- replaced by the correct subtype definition). If there is an array
-- element resolution the subtype indication is represented by an array
-- subtype definition, and if there is a record resolution, it is
-- represented by a record subtype definition.
--
-- constraint ::=
-- range_constraint
-- | index_constraint
-- | array_constraint
-- | record_constraint
--
-- There is no node for constraint, it is directly represented by one of
-- the rhs.
--
-- element_constraint ::=
-- array_constraint
-- | record_constraint
--
-- Likewise, there is no node for element_constraint.
--
-- index_constraint ::= ( discrete_range { , discrete_range } )
--
-- An index_constraint is represented by an array_subtype_definition.
--
-- discrete_range ::= /discrete/_subtype_indication | range
--
-- array_constraint ::=
-- index_constraint [ array_element_constraint ]
-- | ( OPEN ) [ array_element_constraint ]
--
-- An array_constraint is also represented by an array_subtype_definition.
--
-- array_element_constraint ::= element_constraint
--
-- There is no node for array_element_constraint.
--
-- record_constraint ::=
-- ( record_element_constraint { , record_element_constraint } )
--
-- A record_constraint is represented by a record_subtype_definition.
--
-- record_element_constraint ::=
-- record_element_simple_name element_constraint
--
-- Represented by Record_Element_Constraint.
-- Iir_Kind_Enumeration_Subtype_Definition (Short)
-- Iir_Kind_Integer_Subtype_Definition (Short)
-- Iir_Kind_Physical_Subtype_Definition (Short)
--
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Indication (Field5)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Floating_Subtype_Definition (Medium)
--
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Indication (Field5)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Is_Ref (Flag12)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Access_Subtype_Definition (Short)
--
-- Get/Set_Designated_Type (Field1)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Designated_Subtype_Indication (Field5)
--
-- Note: no resolution function for access subtype.
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
-- Iir_Kind_Array_Element_Resolution (Short)
--
-- LRM08 6.3 Subtype declarations
--
-- array_element_resolution ::= resolution_indication
--
-- The indication as it appears in the sources.
-- Get/Set_Resolution_Indication (Field5)
--
-- The subtype definition of the element. Owner of it.
-- Get/Set_Element_Subtype_Indication (Field2)
-- Iir_Kind_Record_Resolution (Short)
--
-- LRM08 6.3 Subtype declarations
--
-- record_resolution ::=
-- record_element_resolution { , record_element_resolution }
--
-- Get/Set_Record_Element_Resolution_Chain (Field1)
-- Iir_Kind_Record_Element_Resolution (Short)
--
-- LRM08 6.3 Subtype declarations
--
-- record_element_resolution ::=
-- /record_element/_simple_name resolution_indication
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Resolution_Indication (Field5)
-- Iir_Kind_Record_Subtype_Definition (Medium)
--
-- Get/Set_Elements_Declaration_List (Field1)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Indication (Field5)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Constraint_State (State2)
-- Iir_Kind_Array_Subtype_Definition (Medium)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Resolution_Indication (Field5)
--
-- The index_constraint list as it appears in the subtype indication (if
-- present). This is a list of subtype indication.
-- Get/Set_Index_Constraint_List (Field6)
--
-- The type of the index. This is either the index_constraint list or the
-- index subtypes of the type_mark.
-- Get/Set_Index_Subtype_List (Field9)
--
-- Get/Set_Array_Element_Constraint (Field8)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Element_Subtype (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Constraint_State (State2)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Index_Constraint_Flag (Flag4)
-- Iir_Kind_Range_Expression (Short)
--
-- There are two fields for both limits: those that own the node
-- (Left_Limit_Expr and Right_Limit_Expr) and those that reference the node
-- (Left_Limit and Right_Limit). Always use the reference (they cannot be
-- Null_Iir, while the owner nodes can be Null_Iir. Set the owner nodes
-- only for owning purpose.
-- Get/Set_Left_Limit_Expr (Field2)
--
-- Get/Set_Right_Limit_Expr (Field3)
--
-- Get/Set_Range_Origin (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Left_Limit (Field4)
--
-- Get/Set_Right_Limit (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Direction (State2)
-- Iir_Kind_Subtype_Definition (Medium)
-- Such a node is only created by parse and transformed into the correct
-- kind (enumeration_subtype, integer_subtype...) by sem.
--
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Subtype_Type_Mark (Field2)
--
-- Get/Set_Resolution_Indication (Field5)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Is_Ref (Flag12)
-------------------------
-- Nature definitions --
-------------------------
-- Iir_Kind_Scalar_Nature_Definition (Medium)
--
-- Get/Set_Reference (Field2)
--
-- The declarator that has created this nature type.
-- Get/Set_Nature_Declarator (Field3)
--
-- C-- Get/Set_Base_Type (Field4)
--
-- Type staticness is always locally.
-- C-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Across_Type (Field7)
--
-- Get/Set_Through_Type (Field8)
----------------------------
-- concurrent statements --
----------------------------
-- Iir_Kind_Concurrent_Conditional_Signal_Assignment (Medium)
-- Iir_Kind_Concurrent_Selected_Signal_Assignment (Medium)
-- Iir_Kind_Concurrent_Simple_Signal_Assignment (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Reject_Time_Expression (Field4)
--
-- Only for Iir_Kind_Concurrent_Simple_Signal_Assignment:
-- Get/Set_Waveform_Chain (Field5)
--
-- Only for Iir_Kind_Concurrent_Selected_Signal_Assignment:
-- Get/Set_Expression (Field5)
--
-- Only for Iir_Kind_Concurrent_Conditional_Signal_Assignment:
-- Get/Set_Conditional_Waveform_Chain (Field5)
--
-- Only for Iir_Kind_Concurrent_Selected_Signal_Assignment:
-- Get/Set_Selected_Waveform_Chain (Field7)
--
-- If the assignment is guarded, then get_guard must return the
-- declaration of the signal guard, otherwise, null_iir.
-- If the guard signal decl is not known, as a kludge and only to mark this
-- assignment guarded, the guard can be this assignment.
-- Get/Set_Guard (Field8)
--
-- Get/Set_Delay_Mechanism (Flag1)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- True if the target of the assignment is guarded
-- Get/Set_Guarded_Target_State (State1)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Sensitized_Process_Statement (Medium)
-- Iir_Kind_Process_Statement (Medium)
--
-- Location is on the label, or 'postponed' or 'process'.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- The concurrent statement at the origin of that process. This is
-- Null_Iir for a user process.
-- Get/Set_Process_Origin (Field8)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Only for Iir_Kind_Sensitized_Process_Statement:
-- Get/Set_Sensitivity_List (Field6)
--
-- Get/Set_Callees_List (Field7)
--
-- Get/Set_Wait_State (State1)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Get/Set_Passive_Flag (Flag2)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Has_Label (Flag6)
--
-- Get/Set_Has_Is (Flag7)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_End_Has_Postponed (Flag10)
--
-- Only for Iir_Kind_Process_Statement:
-- Get/Set_Suspend_Flag (Flag11)
--
-- Only for Iir_Kind_Sensitized_Process_Statement:
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Concurrent_Assertion_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Assertion_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Severity_Expression (Field4)
--
-- Get/Set_Report_Expression (Field5)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Psl_Default_Clock (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Psl_Boolean (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
-- Iir_Kind_Psl_Assert_Statement (Medium)
-- Iir_Kind_Psl_Cover_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_Psl_Assert_Statement:
-- Get/Set_Psl_Property (Field1)
--
-- Only for Iir_Kind_Psl_Cover_Statement:
-- Get/Set_Psl_Sequence (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Severity_Expression (Field4)
--
-- Get/Set_Report_Expression (Field5)
--
-- The following fields are set by canon.
-- Get/Set_PSL_Clock (Field7)
--
-- Get/Set_PSL_NFA (Field8)
--
-- Number of states in the NFA.
-- Get/Set_PSL_Nbr_States (Field9)
--
-- Get/Set_PSL_Clock_Sensitivity (Field10)
--
-- True if at least one of the NFA edge has the EOS flag.
-- Get/Set_PSL_EOS_Flag (Flag1)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Component_Instantiation_Statement (Medium)
--
-- LRM08 11.7 Component instantiation statements
--
-- component_instantiation_statement ::=
-- instantiation_label :
-- instantiated_unit
-- [ generic_map_aspect ]
-- [ port_map_aspect ] ;
--
-- instantiated_unit ::=
-- [ COMPONENT ] component_name
-- | ENTITY entity_name [ ( architecture_identifier ) ]
-- | CONFIGURATION configuration_name
--
-- Get/Set_Parent (Field0)
--
-- Unit instantiated. This is a name, an entity_aspect_entity or an
-- entity_aspect_configuration.
-- Get/Set_Instantiated_Unit (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Default_Binding_Indication (Field5)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
--
-- Configuration:
-- In case of a configuration specification, the node is put into
-- default configuration. In the absence of a specification, the
-- default entity aspect, if any; if none, this field is null_iir.
-- Get/Set_Configuration_Specification (Field7)
--
-- During Sem and elaboration, the configuration field can be filled by
-- a component configuration declaration.
--
-- Configuration for this component.
-- FIXME: must be get/set_binding_indication.
-- Get/Set_Component_Configuration (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Has_Component (Flag5)
-- Iir_Kind_Block_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- get/set_guard_decl is used for semantic analysis, in order to add
-- a signal declaration.
-- Get/Set_Guard_Decl (Field8)
--
-- Get/Set_Block_Header (Field7)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Block_Block_Configuration (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Generate_Statement_Body (Short)
-- LRM08 11.8 Generate statements
--
-- generate_statement_body ::=
-- [ block_declarative_part
-- BEGIN ]
-- { concurrent_statement }
-- [ END [ alternative_label ] ; ]
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- The block configuration for this statement body.
-- Get/Set_Generate_Block_Configuration (Field2)
--
-- Get/Set_Alternative_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Has_Label (Flag6)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Has_Begin (Flag10)
--
-- Get/Set_Has_End (Flag11)
-- Iir_Kind_For_Generate_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- The parameters specification is represented by an Iterator_Declaration.
-- Get/Set_Parameter_Specification (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Generate_Statement_Body (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_If_Generate_Else_Clause (Short)
--
-- Get/Set_Parent (Field0)
--
-- Null_Iir for the else clause.
-- Get/Set_Condition (Field1)
--
-- Get/Set_Generate_Statement_Body (Field4)
--
-- Get/Set_Generate_Else_Clause (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_If_Generate_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Null_Iir for the else clause.
-- Get/Set_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Generate_Statement_Body (Field4)
--
-- Get/Set_Generate_Else_Clause (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Case_Generate_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Chain is composed of Iir_Kind_Choice_By_XXX.
-- Get/Set_Case_Statement_Alternative_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
--
-- Get/Set_End_Has_Identifier (Flag9)
-- Iir_Kind_Simple_Simultaneous_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Simultaneous_Left (Field5)
--
-- Get/Set_Simultaneous_Right (Field6)
--
-- Get/Set_Tolerance (Field7)
--
-- Get/Set_Visible_Flag (Flag4)
----------------------------
-- sequential statements --
----------------------------
-- Iir_Kind_If_Statement (Short)
-- Iir_Kind_Elsif (Short)
--
-- LRM08 10.8
-- if_statement ::=
-- [ /if/_label : ]
-- IF condition THEN
-- sequence_of_statements
-- { ELSIF condition THEN
-- sequence_of_statements }
-- [ ELSE
-- sequence_of_satements ]
-- END IF [ /if/_label ] ;
--
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Label (Field3)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Identifier (Alias Field3)
--
-- May be NULL only for an iir_kind_elsif node, and then means the else
-- clause.
-- Get/Set_Condition (Field1)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Must be an Iir_kind_elsif node, or NULL for no more elsif clauses.
-- Get/Set_Else_Clause (Field4)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Chain (Field2)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Suspend_Flag (Flag11)
--
-- Get/Set_Is_Ref (Flag12)
-- LRM08 10.10 Loop statement / LRM93 8.9
--
-- loop_statement ::=
-- [ loop_label : ]
-- [ iteration_scheme ] LOOP
-- sequence_of_statements
-- END LOOP [ loop_label ] ;
--
-- iteration_scheme ::=
-- WHILE condition
-- | FOR loop_parameter_specification
--
-- parameter_specification ::=
-- identifier IN discrete_range
-- Iir_Kind_For_Loop_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- The parameters specification is represented by an Iterator_Declaration.
-- Get/Set_Parameter_Specification (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Suspend_Flag (Flag11)
-- Iir_Kind_While_Loop_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Suspend_Flag (Flag11)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Exit_Statement (Short)
-- Iir_Kind_Next_Statement (Short)
--
-- LRM08 10.11 Next statement
--
-- next_statement ::=
-- [ label : ] NEXT [ loop_label ] [ WHEN condition ] ;
--
-- LRM08 10.12 Exit statement
--
-- exit_statement ::=
-- [ label : ] exit [ loop_label ] [ when condition ] ;
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Loop_Label (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Simple_Signal_Assignment_Statement (Short)
-- Iir_Kind_Conditional_Signal_Assignment_Statement (Short)
-- Iir_Kind_Selected_Waveform_Assignment_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Reject_Time_Expression (Field4)
--
-- Only for Iir_Kind_Simple_Signal_Assignment_Statement:
-- The waveform.
-- If the waveform_chain is null_iir, then the signal assignment is a
-- disconnection statement, ie TARGET <= null_iir after disconection_time,
-- where disconnection_time is specified by a disconnection specification.
-- Get/Set_Waveform_Chain (Field5)
--
-- Only for Iir_Kind_Conditional_Signal_Assignment_Statement:
-- Get/Set_Conditional_Waveform_Chain (Field5)
--
-- Only for Iir_Kind_Selected_Waveform_Assignment_Statement:
-- Get/Set_Expression (Field5)
--
-- Only for Iir_Kind_Selected_Waveform_Assignment_Statement:
-- Get/Set_Selected_Waveform_Chain (Field7)
--
-- Get/Set_Delay_Mechanism (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- True if the target of the assignment is guarded
-- Get/Set_Guarded_Target_State (State1)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Variable_Assignment_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Conditional_Variable_Assignment_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Conditional_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Assertion_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Assertion_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Severity_Expression (Field4)
--
-- Get/Set_Report_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Report_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Severity_Expression (Field4)
--
-- Get/Set_Report_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Wait_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Timeout_Clause (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Condition_Clause (Field5)
--
-- Get/Set_Sensitivity_List (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Ref (Flag12)
-- Iir_Kind_Return_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Type of the return value of the function. This is a copy of
-- return_type.
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Case_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Chain is composed of Iir_Kind_Choice_By_XXX.
-- Get/Set_Case_Statement_Alternative_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Identifier (Flag9)
--
-- Get/Set_Suspend_Flag (Flag11)
-- Iir_Kind_Procedure_Call_Statement (Short)
-- Iir_Kind_Concurrent_Procedure_Call_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Procedure_Call (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Only for Iir_Kind_Concurrent_Procedure_Call_Statement:
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Suspend_Flag (Flag11)
-- Iir_Kind_Procedure_Call (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Parameter_Association_Chain (Field2)
--
-- Procedure declaration corresponding to the procedure to call.
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Method_Object (Field4)
-- Iir_Kind_Null_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Visible_Flag (Flag4)
----------------
-- operators --
----------------
-- Iir_Kinds_Monadic_Operator (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Operand (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Expr_staticness is defined by LRM93 7.4
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kinds_Dyadic_Operator (Short)
--
-- Get/Set_Type (Field1)
--
-- Left and Right operands.
-- Get/Set_Left (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Right (Field4)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Function_Call (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Parameter_Association_Chain (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Method_Object (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Aggregate (Short)
--
-- Get/Set_Association_Choices_Chain (Field4)
--
-- Same as Type, but marked as property of that node.
-- Get/Set_Literal_Subtype (Field3)
--
-- Exist for symetry with other literals, but must never be set. The
-- content of the aggregate is modified during evaluation, not the
-- aggregate itself.
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Aggregate_Info (Field5)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- If true, the aggregate can be statically built. This is an optimization
-- and the conditions are defined in sem_expr.
-- Get/Set_Aggregate_Expand_Flag (Flag1)
-- Iir_Kind_Aggregate_Info (Short)
--
-- Get info for the next dimension. NULL_IIR terminated.
-- Get/Set_Sub_Aggregate_Info (Field1)
--
-- For array aggregate only:
-- If TRUE, the choices are not locally static.
-- This flag is only valid when the array aggregate is constrained, ie
-- has no 'others' choice.
-- Get/Set_Aggr_Dynamic_Flag (Flag3)
--
-- If TRUE, the aggregate is named, else it is positionnal.
-- Get/Set_Aggr_Named_Flag (Flag4)
--
-- The following three fields are used to check bounds of an array
-- aggregate.
-- For named aggregate, low and high bounds are computed, for positionnal
-- aggregate, the (minimum) number of elements is computed.
-- Note there may be elements beyond the bounds, due to other choice.
-- These fields may apply for the aggregate or for the aggregate and its
-- brothers if the node is for a sub-aggregate.
--
-- The low and high index choice, if any.
-- Get/Set_Aggr_Low_Limit (Field2)
--
-- Get/Set_Aggr_High_Limit (Field3)
--
-- The minimum number of elements, if any. This is a minimax.
-- Get/Set_Aggr_Min_Length (Field4)
--
-- True if the choice list has an 'others' choice.
-- Get/Set_Aggr_Others_Flag (Flag2)
-- Iir_Kind_Parenthesis_Expression (Short)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Qualified_Expression (Short)
--
-- LRM08 9.3.5 Qualified expressions
--
-- qualified_expression ::=
-- type_mark ' ( expression )
-- | type_mark ' aggregate
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Type_Mark (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Type_Conversion (Short)
--
-- LRM08 9.3.6 Type conversions
--
-- type_conversion ::= type_mark ( expression )
--
-- Get/Set_Type (Field1)
--
-- If the type mark denotes an unconstrained array and the expression is
-- locally static, the result should be locally static according to vhdl93
-- (which is not clear on that point). As a subtype is created, it is
-- referenced by this field.
-- Get/Set_Type_Conversion_Subtype (Field3)
--
-- Get/Set_Type_Mark (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Allocator_By_Expression (Short)
-- Iir_Kind_Allocator_By_Subtype (Short)
--
-- LRM08 9.3.7 Allocators
--
-- allocator ::=
-- NEW subtype_indication
-- | NEW qualified_expression
--
-- Get/Set_Type (Field1)
--
-- Only for Iir_Kind_Allocator_By_Expression:
-- Contains the expression for a by expression allocator.
-- Get/Set_Expression (Field5)
--
-- Only for Iir_Kind_Allocator_By_Subtype:
-- Contains the subtype indication for a by subtype allocator.
-- Get/Set_Subtype_Indication (Field5)
--
-- Only for Iir_Kind_Allocator_By_Subtype:
-- Same as subtype indication but set when the allocator defines a new
-- subtype. Used to track when an anonymous subtype is created.
-- Get/Set_Allocator_Subtype (Field3)
--
-- To ease analysis: set to the designated type (either the type of the
-- expression or the subtype)
-- Get/Set_Allocator_Designated_Type (Field2)
--
-- Get/Set_Expr_Staticness (State1)
------------
-- Names --
------------
-- Iir_Kind_Simple_Name (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Alias_Declaration (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Character_Literal (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Alias_Declaration (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Operator_Symbol (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Alias_Declaration (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
-- Iir_Kind_Reference_Name (Short)
--
-- This doesn't correspond to a name in the sources. This is an artificial
-- name in the tree which is owned and reference another name.
--
-- Get/Set_Named_Entity (Field4)
--
-- The name from which the reference was created. Can be Null_Iir if the
-- reference was created directly from a declaration.
-- Get/Set_Referenced_Name (Field2)
--
-- Get/Set_Is_Forward_Ref (Flag1)
-- Iir_Kind_Selected_Name (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Alias_Declaration (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Selected_By_All_Name (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Indexed_Name (Short)
-- Select the element designed with the INDEX_LIST from array PREFIX.
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Index_List (Field2)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Slice_Name (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Suffix (Field2)
--
-- Get/Set_Slice_Subtype (Field3)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Parenthesis_Name (Short)
-- Created by the parser, and mutated into the correct iir node: it can be
-- either a function call, an indexed array, a type conversion or a slice
-- name.
--
-- Get/Set_Prefix (Field0)
--
-- Always returns null_iir.
-- Get/Set_Type (Field1)
--
-- Get/Set_Association_Chain (Field2)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Is_Forward_Ref (Flag1)
-- Iir_Kind_Selected_Element (Short)
-- A record element selection. This corresponds to a reffined selected
-- names. The production doesn't exist in the VHDL grammar.
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Selected_Element (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Implicit_Dereference (Short)
-- Iir_Kind_Dereference (Short)
-- An implicit access dereference.
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_External_Constant_Name (Short)
-- Iir_Kind_External_Signal_Name (Short)
-- Iir_Kind_External_Variable_Name (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_External_Pathname (Field3)
--
-- Get/Set_Subtype_Indication (Field5)
--
-- Only for Iir_Kind_External_Variable_Name:
-- Get/Set_Shared_Flag (Flag2)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Package_Pathname (Short)
-- This node represents only the library_logical_name. Package and object
-- simple_names are represented by Selected_Name.
--
-- Get/Set_Pathname_Suffix (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Is_Forward_Ref (Flag1)
-- Iir_Kind_Absolute_Pathname (Short)
-- Represents only the '.'.
--
-- Get/Set_Pathname_Suffix (Field2)
-- Iir_Kind_Relative_Pathname (Short)
-- Represents only one '^.'
--
-- Get/Set_Pathname_Suffix (Field2)
-- Iir_Kind_Pathname_Element (Short)
--
-- Get/Set_Pathname_Suffix (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Pathname_Expression (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
-----------------
-- Attributes --
-----------------
-- Iir_Kind_Attribute_Name (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Attribute_Signature (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Is_Forward_Ref (Flag1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Base_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
-- Iir_Kind_Left_Type_Attribute (Short)
-- Iir_Kind_Right_Type_Attribute (Short)
-- Iir_Kind_High_Type_Attribute (Short)
-- Iir_Kind_Low_Type_Attribute (Short)
-- Iir_Kind_Ascending_Type_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Range_Array_Attribute (Short)
-- Iir_Kind_Reverse_Range_Array_Attribute (Short)
-- Iir_Kind_Left_Array_Attribute (Short)
-- Iir_Kind_Right_Array_Attribute (Short)
-- Iir_Kind_High_Array_Attribute (Short)
-- Iir_Kind_Low_Array_Attribute (Short)
-- Iir_Kind_Ascending_Array_Attribute (Short)
-- Iir_Kind_Length_Array_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Set only when known to be constrained.
-- Get/Set_Index_Subtype (Field2)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Subtype_Attribute (Short)
-- Iir_Kind_Element_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Stable_Attribute (Short)
-- Iir_Kind_Delayed_Attribute (Short)
-- Iir_Kind_Quiet_Attribute (Short)
-- Iir_Kind_Transaction_Attribute (Short)
-- (Iir_Kinds_Signal_Attribute)
--
-- Get/Set_Prefix (Field0)
--
-- Not used by Iir_Kind_Transaction_Attribute
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Type (Field1)
--
-- Next attribute signal in the chain owned by the
-- signal_attribute_declaration. Usual Get/Set_Chain is not used here as
-- the chain is composed only of forward references.
-- Get/Set_Attr_Chain (Field2)
--
-- Head of the chain. Used only to ease the reconstruction of the chain.
-- Get/Set_Signal_Attribute_Declaration (Field3)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Event_Attribute (Short)
-- Iir_Kind_Last_Event_Attribute (Short)
-- Iir_Kind_Last_Value_Attribute (Short)
-- Iir_Kind_Active_Attribute (Short)
-- Iir_Kind_Last_Active_Attribute (Short)
-- Iir_Kind_Driving_Attribute (Short)
-- Iir_Kind_Driving_Value_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Pos_Attribute (Short)
-- Iir_Kind_Val_Attribute (Short)
-- Iir_Kind_Succ_Attribute (Short)
-- Iir_Kind_Pred_Attribute (Short)
-- Iir_Kind_Leftof_Attribute (Short)
-- Iir_Kind_Rightof_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Image_Attribute (Short)
-- Iir_Kind_Value_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Simple_Name_Attribute (Short)
-- Iir_Kind_Instance_Name_Attribute (Short)
-- Iir_Kind_Path_Name_Attribute (Short)
--
-- Get/Set_Prefix (Field0)
--
-- Only for Iir_Kind_Simple_Name_Attribute:
-- Get/Set_Simple_Name_Identifier (Field3)
--
-- Only for Iir_Kind_Simple_Name_Attribute:
-- Get/Set_Simple_Name_Subtype (Field4)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Behavior_Attribute (Short)
-- Iir_Kind_Structure_Attribute (Short)
-- FIXME: to describe (Short)
-- Iir_Kind_Error (Short)
-- Can be used instead of an expression or a type.
-- Get/Set_Type (Field1)
--
-- Get/Set_Error_Origin (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Type_Staticness (Alias State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Unused (Short)
-- End of Iir_Kind.
type Iir_Kind is
(
Iir_Kind_Unused,
Iir_Kind_Error,
Iir_Kind_Design_File,
Iir_Kind_Design_Unit,
Iir_Kind_Library_Clause,
Iir_Kind_Use_Clause,
Iir_Kind_Context_Reference,
-- Literals.
Iir_Kind_Integer_Literal,
Iir_Kind_Floating_Point_Literal,
Iir_Kind_Null_Literal,
Iir_Kind_String_Literal8,
Iir_Kind_Physical_Int_Literal,
Iir_Kind_Physical_Fp_Literal,
Iir_Kind_Simple_Aggregate,
Iir_Kind_Overflow_Literal,
Iir_Kind_Unaffected_Waveform,
-- Tuple,
Iir_Kind_Waveform_Element,
Iir_Kind_Conditional_Waveform,
Iir_Kind_Conditional_Expression,
Iir_Kind_Association_Element_By_Expression,
Iir_Kind_Association_Element_By_Individual,
Iir_Kind_Association_Element_Open,
Iir_Kind_Association_Element_Package,
Iir_Kind_Association_Element_Type,
Iir_Kind_Association_Element_Subprogram,
Iir_Kind_Choice_By_Range,
Iir_Kind_Choice_By_Expression,
Iir_Kind_Choice_By_Others,
Iir_Kind_Choice_By_None,
Iir_Kind_Choice_By_Name,
Iir_Kind_Entity_Aspect_Entity,
Iir_Kind_Entity_Aspect_Configuration,
Iir_Kind_Entity_Aspect_Open,
Iir_Kind_Block_Configuration,
Iir_Kind_Block_Header,
Iir_Kind_Component_Configuration,
Iir_Kind_Binding_Indication,
Iir_Kind_Entity_Class,
Iir_Kind_Attribute_Value,
Iir_Kind_Signature,
Iir_Kind_Aggregate_Info,
Iir_Kind_Procedure_Call,
Iir_Kind_Record_Element_Constraint,
Iir_Kind_Array_Element_Resolution,
Iir_Kind_Record_Resolution,
Iir_Kind_Record_Element_Resolution,
Iir_Kind_Attribute_Specification,
Iir_Kind_Disconnection_Specification,
Iir_Kind_Configuration_Specification,
-- Type definitions.
-- iir_kinds_type_and_subtype_definition
-- kinds: disc: discrete, st: subtype.
Iir_Kind_Access_Type_Definition,
Iir_Kind_Incomplete_Type_Definition,
Iir_Kind_Interface_Type_Definition,
Iir_Kind_File_Type_Definition,
Iir_Kind_Protected_Type_Declaration,
Iir_Kind_Record_Type_Definition, -- composite
Iir_Kind_Array_Type_Definition, -- composite, array
Iir_Kind_Array_Subtype_Definition, -- composite, array, st
Iir_Kind_Record_Subtype_Definition, -- composite, st
Iir_Kind_Access_Subtype_Definition, -- st
Iir_Kind_Physical_Subtype_Definition, -- scalar, st, rng
Iir_Kind_Floating_Subtype_Definition, -- scalar, st, rng
Iir_Kind_Integer_Subtype_Definition, -- scalar, disc, st, rng
Iir_Kind_Enumeration_Subtype_Definition, -- scalar, disc, st, rng
Iir_Kind_Enumeration_Type_Definition, -- scalar, disc, rng
Iir_Kind_Integer_Type_Definition, -- scalar, disc
Iir_Kind_Floating_Type_Definition, -- scalar
Iir_Kind_Physical_Type_Definition, -- scalar
Iir_Kind_Range_Expression,
Iir_Kind_Protected_Type_Body,
Iir_Kind_Wildcard_Type_Definition,
Iir_Kind_Subtype_Definition, -- temporary (must not appear after sem).
-- Nature definition
Iir_Kind_Scalar_Nature_Definition,
-- Lists.
Iir_Kind_Overload_List, -- used internally by sem_expr.
-- Declarations.
Iir_Kind_Type_Declaration,
Iir_Kind_Anonymous_Type_Declaration,
Iir_Kind_Subtype_Declaration,
Iir_Kind_Nature_Declaration,
Iir_Kind_Subnature_Declaration,
Iir_Kind_Package_Declaration,
Iir_Kind_Package_Instantiation_Declaration,
Iir_Kind_Package_Body,
Iir_Kind_Configuration_Declaration,
Iir_Kind_Entity_Declaration,
Iir_Kind_Architecture_Body,
Iir_Kind_Context_Declaration,
Iir_Kind_Package_Header,
Iir_Kind_Unit_Declaration,
Iir_Kind_Library_Declaration,
Iir_Kind_Component_Declaration,
Iir_Kind_Attribute_Declaration,
Iir_Kind_Group_Template_Declaration,
Iir_Kind_Group_Declaration,
Iir_Kind_Element_Declaration,
Iir_Kind_Non_Object_Alias_Declaration,
Iir_Kind_Psl_Declaration,
Iir_Kind_Psl_Endpoint_Declaration,
Iir_Kind_Terminal_Declaration,
Iir_Kind_Free_Quantity_Declaration,
Iir_Kind_Across_Quantity_Declaration,
Iir_Kind_Through_Quantity_Declaration,
Iir_Kind_Enumeration_Literal,
Iir_Kind_Function_Declaration, -- Subprg, Func
Iir_Kind_Procedure_Declaration, -- Subprg, Proc
Iir_Kind_Function_Body,
Iir_Kind_Procedure_Body,
Iir_Kind_Object_Alias_Declaration, -- object
Iir_Kind_File_Declaration, -- object
Iir_Kind_Guard_Signal_Declaration, -- object
Iir_Kind_Signal_Declaration, -- object
Iir_Kind_Variable_Declaration, -- object
Iir_Kind_Constant_Declaration, -- object
Iir_Kind_Iterator_Declaration, -- object
Iir_Kind_Interface_Constant_Declaration, -- object, interface
Iir_Kind_Interface_Variable_Declaration, -- object, interface
Iir_Kind_Interface_Signal_Declaration, -- object, interface
Iir_Kind_Interface_File_Declaration, -- object, interface
Iir_Kind_Interface_Type_Declaration, -- interface
Iir_Kind_Interface_Package_Declaration, -- interface
Iir_Kind_Interface_Function_Declaration, -- interface
Iir_Kind_Interface_Procedure_Declaration, -- interface
Iir_Kind_Signal_Attribute_Declaration,
-- Expressions.
Iir_Kind_Identity_Operator,
Iir_Kind_Negation_Operator,
Iir_Kind_Absolute_Operator,
Iir_Kind_Not_Operator,
Iir_Kind_Condition_Operator,
Iir_Kind_Reduction_And_Operator,
Iir_Kind_Reduction_Or_Operator,
Iir_Kind_Reduction_Nand_Operator,
Iir_Kind_Reduction_Nor_Operator,
Iir_Kind_Reduction_Xor_Operator,
Iir_Kind_Reduction_Xnor_Operator,
Iir_Kind_And_Operator,
Iir_Kind_Or_Operator,
Iir_Kind_Nand_Operator,
Iir_Kind_Nor_Operator,
Iir_Kind_Xor_Operator,
Iir_Kind_Xnor_Operator,
Iir_Kind_Equality_Operator,
Iir_Kind_Inequality_Operator,
Iir_Kind_Less_Than_Operator,
Iir_Kind_Less_Than_Or_Equal_Operator,
Iir_Kind_Greater_Than_Operator,
Iir_Kind_Greater_Than_Or_Equal_Operator,
Iir_Kind_Match_Equality_Operator,
Iir_Kind_Match_Inequality_Operator,
Iir_Kind_Match_Less_Than_Operator,
Iir_Kind_Match_Less_Than_Or_Equal_Operator,
Iir_Kind_Match_Greater_Than_Operator,
Iir_Kind_Match_Greater_Than_Or_Equal_Operator,
Iir_Kind_Sll_Operator,
Iir_Kind_Sla_Operator,
Iir_Kind_Srl_Operator,
Iir_Kind_Sra_Operator,
Iir_Kind_Rol_Operator,
Iir_Kind_Ror_Operator,
Iir_Kind_Addition_Operator,
Iir_Kind_Substraction_Operator,
Iir_Kind_Concatenation_Operator,
Iir_Kind_Multiplication_Operator,
Iir_Kind_Division_Operator,
Iir_Kind_Modulus_Operator,
Iir_Kind_Remainder_Operator,
Iir_Kind_Exponentiation_Operator,
Iir_Kind_Function_Call,
Iir_Kind_Aggregate,
Iir_Kind_Parenthesis_Expression,
Iir_Kind_Qualified_Expression,
Iir_Kind_Type_Conversion,
Iir_Kind_Allocator_By_Expression,
Iir_Kind_Allocator_By_Subtype,
Iir_Kind_Selected_Element,
Iir_Kind_Dereference,
Iir_Kind_Implicit_Dereference,
Iir_Kind_Slice_Name,
Iir_Kind_Indexed_Name,
Iir_Kind_Psl_Expression,
-- Concurrent statements.
Iir_Kind_Sensitized_Process_Statement,
Iir_Kind_Process_Statement,
Iir_Kind_Concurrent_Simple_Signal_Assignment,
Iir_Kind_Concurrent_Conditional_Signal_Assignment,
Iir_Kind_Concurrent_Selected_Signal_Assignment,
Iir_Kind_Concurrent_Assertion_Statement,
Iir_Kind_Concurrent_Procedure_Call_Statement,
Iir_Kind_Psl_Assert_Statement,
Iir_Kind_Psl_Cover_Statement,
Iir_Kind_Block_Statement,
Iir_Kind_If_Generate_Statement,
Iir_Kind_Case_Generate_Statement,
Iir_Kind_For_Generate_Statement,
Iir_Kind_Component_Instantiation_Statement,
Iir_Kind_Psl_Default_Clock,
Iir_Kind_Simple_Simultaneous_Statement,
Iir_Kind_Generate_Statement_Body,
Iir_Kind_If_Generate_Else_Clause,
-- Iir_Kind_Sequential_Statement
Iir_Kind_Simple_Signal_Assignment_Statement,
Iir_Kind_Conditional_Signal_Assignment_Statement,
Iir_Kind_Selected_Waveform_Assignment_Statement,
Iir_Kind_Null_Statement,
Iir_Kind_Assertion_Statement,
Iir_Kind_Report_Statement,
Iir_Kind_Wait_Statement,
Iir_Kind_Variable_Assignment_Statement,
Iir_Kind_Conditional_Variable_Assignment_Statement,
Iir_Kind_Return_Statement,
Iir_Kind_For_Loop_Statement,
Iir_Kind_While_Loop_Statement,
Iir_Kind_Next_Statement,
Iir_Kind_Exit_Statement,
Iir_Kind_Case_Statement,
Iir_Kind_Procedure_Call_Statement,
Iir_Kind_If_Statement,
Iir_Kind_Elsif,
-- Names
Iir_Kind_Character_Literal, -- denoting_name
Iir_Kind_Simple_Name, -- denoting_name
Iir_Kind_Selected_Name, -- denoting_name
Iir_Kind_Operator_Symbol, -- denoting_name
Iir_Kind_Reference_Name, -- denoting_name
Iir_Kind_Selected_By_All_Name,
Iir_Kind_Parenthesis_Name,
Iir_Kind_External_Constant_Name,
Iir_Kind_External_Signal_Name,
Iir_Kind_External_Variable_Name,
Iir_Kind_Package_Pathname,
Iir_Kind_Absolute_Pathname,
Iir_Kind_Relative_Pathname,
Iir_Kind_Pathname_Element,
-- Attributes
Iir_Kind_Base_Attribute,
Iir_Kind_Subtype_Attribute,
Iir_Kind_Element_Attribute,
Iir_Kind_Left_Type_Attribute, -- type_attribute
Iir_Kind_Right_Type_Attribute, -- type_attribute
Iir_Kind_High_Type_Attribute, -- type_attribute
Iir_Kind_Low_Type_Attribute, -- type_attribute
Iir_Kind_Ascending_Type_Attribute, -- type_attribute
Iir_Kind_Image_Attribute,
Iir_Kind_Value_Attribute,
Iir_Kind_Pos_Attribute, -- scalar_type_attribute
Iir_Kind_Val_Attribute, -- scalar_type_attribute
Iir_Kind_Succ_Attribute, -- scalar_type_attribute
Iir_Kind_Pred_Attribute, -- scalar_type_attribute
Iir_Kind_Leftof_Attribute, -- scalar_type_attribute
Iir_Kind_Rightof_Attribute, -- scalar_type_attribute
Iir_Kind_Delayed_Attribute, -- signal_attribute
Iir_Kind_Stable_Attribute, -- signal_attribute
Iir_Kind_Quiet_Attribute, -- signal_attribute
Iir_Kind_Transaction_Attribute, -- signal_attribute
Iir_Kind_Event_Attribute, -- signal_value_attribute
Iir_Kind_Active_Attribute, -- signal_value_attribute
Iir_Kind_Last_Event_Attribute, -- signal_value_attribute
Iir_Kind_Last_Active_Attribute, -- signal_value_attribute
Iir_Kind_Last_Value_Attribute, -- signal_value_attribute
Iir_Kind_Driving_Attribute, -- signal_value_attribute
Iir_Kind_Driving_Value_Attribute, -- signal_value_attribute
Iir_Kind_Behavior_Attribute,
Iir_Kind_Structure_Attribute,
Iir_Kind_Simple_Name_Attribute,
Iir_Kind_Instance_Name_Attribute,
Iir_Kind_Path_Name_Attribute,
Iir_Kind_Left_Array_Attribute, -- array_attribute
Iir_Kind_Right_Array_Attribute, -- array_attribute
Iir_Kind_High_Array_Attribute, -- array_attribute
Iir_Kind_Low_Array_Attribute, -- array_attribute
Iir_Kind_Length_Array_Attribute, -- array_attribute
Iir_Kind_Ascending_Array_Attribute, -- array_attribute
Iir_Kind_Range_Array_Attribute, -- array_attribute
Iir_Kind_Reverse_Range_Array_Attribute, -- array_attribute
Iir_Kind_Attribute_Name
);
-- Return TRUE iif K is K1 or K is K2.
function Kind_In (K : Iir_Kind; K1, K2 : Iir_Kind) return Boolean;
pragma Inline (Kind_In);
type Iir_Signal_Kind is
(
Iir_Register_Kind,
Iir_Bus_Kind
);
-- If the order of elements in IIR_MODE is modified, also modify the
-- order in GRT (types and rtis).
type Iir_Mode is
(
Iir_Unknown_Mode,
Iir_Linkage_Mode,
Iir_Buffer_Mode,
Iir_Out_Mode,
Iir_Inout_Mode,
Iir_In_Mode
);
subtype Iir_In_Modes is Iir_Mode range Iir_Inout_Mode .. Iir_In_Mode;
subtype Iir_Out_Modes is Iir_Mode range Iir_Out_Mode .. Iir_Inout_Mode;
subtype Iir_Parameter_Modes is Iir_Mode range Iir_Out_Mode .. Iir_In_Mode;
type Iir_Delay_Mechanism is (Iir_Inertial_Delay, Iir_Transport_Delay);
type Iir_Direction is (Iir_To, Iir_Downto);
-- LRM93 2.7 (conformance rules).
-- To keep this simple, the layout is stored as a bit-string.
-- Fields are:
-- Get_Has_type: set if the interface is the last of a list.
-- Get_Has_Mode: set if mode is explicit
-- has_class: set if class (constant, signal, variable or file) is explicit
--
-- Exemple:
-- procedure P ( A, B: integer;
-- constant C: in bit;
-- D: inout bit;
-- variable E: bit;
-- F, G: in bit;
-- constant H, I: bit;
-- constant J, K: in bit);
-- A:
-- B: has_type
-- C, has_class, has_mode, has_type
-- D: has_mode, has_type
-- E, has_class, has_type
-- F: has_mode
-- G: has_mode, has_type
-- H: has_class
-- I: has_class, has_type
-- J: has_class, has_mode
-- K: has_class, has_mode, has_type
-- List of predefined operators and functions.
type Iir_Predefined_Functions is
(
Iir_Predefined_Error,
-- Predefined operators for BOOLEAN type
-- LRM08 9.2.2 Logical Operators
Iir_Predefined_Boolean_And,
Iir_Predefined_Boolean_Or,
Iir_Predefined_Boolean_Nand,
Iir_Predefined_Boolean_Nor,
Iir_Predefined_Boolean_Xor,
Iir_Predefined_Boolean_Xnor,
Iir_Predefined_Boolean_Not,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Boolean_Rising_Edge,
Iir_Predefined_Boolean_Falling_Edge,
-- Predefined operators for any enumeration type.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Enum_Equality,
Iir_Predefined_Enum_Inequality,
Iir_Predefined_Enum_Less,
Iir_Predefined_Enum_Less_Equal,
Iir_Predefined_Enum_Greater,
Iir_Predefined_Enum_Greater_Equal,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Enum_Minimum,
Iir_Predefined_Enum_Maximum,
Iir_Predefined_Enum_To_String,
-- Predefined operators for BIT type.
-- LRM08 9.2.2 Logical Operators
Iir_Predefined_Bit_And,
Iir_Predefined_Bit_Or,
Iir_Predefined_Bit_Nand,
Iir_Predefined_Bit_Nor,
Iir_Predefined_Bit_Xor,
Iir_Predefined_Bit_Xnor,
Iir_Predefined_Bit_Not,
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Bit_Match_Equality,
Iir_Predefined_Bit_Match_Inequality,
Iir_Predefined_Bit_Match_Less,
Iir_Predefined_Bit_Match_Less_Equal,
Iir_Predefined_Bit_Match_Greater,
Iir_Predefined_Bit_Match_Greater_Equal,
-- LRM08 9.2.9 Condition operator
Iir_Predefined_Bit_Condition,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Bit_Rising_Edge,
Iir_Predefined_Bit_Falling_Edge,
-- Predefined operators for any integer type.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Integer_Equality,
Iir_Predefined_Integer_Inequality,
Iir_Predefined_Integer_Less,
Iir_Predefined_Integer_Less_Equal,
Iir_Predefined_Integer_Greater,
Iir_Predefined_Integer_Greater_Equal,
-- LRM08 9.2.6 Sign operators
Iir_Predefined_Integer_Identity,
Iir_Predefined_Integer_Negation,
-- LRM08 9.2.8 Miscellaneous operators
Iir_Predefined_Integer_Absolute,
-- LRM08 9.2.5 Adding operators
Iir_Predefined_Integer_Plus,
Iir_Predefined_Integer_Minus,
-- LRM08 9.2.7 Multiplying operators
Iir_Predefined_Integer_Mul,
Iir_Predefined_Integer_Div,
Iir_Predefined_Integer_Mod,
Iir_Predefined_Integer_Rem,
-- LRM08 9.2.8 Miscellaneous operators
Iir_Predefined_Integer_Exp,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Integer_Minimum,
Iir_Predefined_Integer_Maximum,
Iir_Predefined_Integer_To_String,
-- Predefined operators for any floating type.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Floating_Equality,
Iir_Predefined_Floating_Inequality,
Iir_Predefined_Floating_Less,
Iir_Predefined_Floating_Less_Equal,
Iir_Predefined_Floating_Greater,
Iir_Predefined_Floating_Greater_Equal,
-- LRM08 9.2.6 Sign operators
Iir_Predefined_Floating_Identity,
Iir_Predefined_Floating_Negation,
-- LRM08 9.2.8 Miscellaneous operators
Iir_Predefined_Floating_Absolute,
-- LRM08 9.2.5 Adding operators
Iir_Predefined_Floating_Plus,
Iir_Predefined_Floating_Minus,
-- LRM08 9.2.7 Multiplying operators
Iir_Predefined_Floating_Mul,
Iir_Predefined_Floating_Div,
-- LRM08 9.2.8 Miscellaneous operators
Iir_Predefined_Floating_Exp,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Floating_Minimum,
Iir_Predefined_Floating_Maximum,
Iir_Predefined_Floating_To_String,
Iir_Predefined_Real_To_String_Digits,
Iir_Predefined_Real_To_String_Format,
-- Predefined operator for universal types.
-- LRM08 9.2.7 Multiplying operators
Iir_Predefined_Universal_R_I_Mul,
Iir_Predefined_Universal_I_R_Mul,
Iir_Predefined_Universal_R_I_Div,
-- Predefined operators for physical types.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Physical_Equality,
Iir_Predefined_Physical_Inequality,
Iir_Predefined_Physical_Less,
Iir_Predefined_Physical_Less_Equal,
Iir_Predefined_Physical_Greater,
Iir_Predefined_Physical_Greater_Equal,
-- LRM08 9.2.6 Sign operators
Iir_Predefined_Physical_Identity,
Iir_Predefined_Physical_Negation,
-- LRM08 9.2.8 Miscellaneous operators
Iir_Predefined_Physical_Absolute,
-- LRM08 9.2.5 Adding operators
Iir_Predefined_Physical_Plus,
Iir_Predefined_Physical_Minus,
-- LRM08 9.2.7 Multiplying operators
Iir_Predefined_Physical_Integer_Mul,
Iir_Predefined_Physical_Real_Mul,
Iir_Predefined_Integer_Physical_Mul,
Iir_Predefined_Real_Physical_Mul,
Iir_Predefined_Physical_Integer_Div,
Iir_Predefined_Physical_Real_Div,
Iir_Predefined_Physical_Physical_Div,
-- LRM08 5.2.6 Predefined operations on scalar types.
Iir_Predefined_Physical_Minimum,
Iir_Predefined_Physical_Maximum,
Iir_Predefined_Physical_To_String,
Iir_Predefined_Time_To_String_Unit,
-- Predefined operators for access.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Access_Equality,
Iir_Predefined_Access_Inequality,
-- Predefined operators for record.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Record_Equality,
Iir_Predefined_Record_Inequality,
-- Predefined operators for array.
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Array_Equality,
Iir_Predefined_Array_Inequality,
Iir_Predefined_Array_Less,
Iir_Predefined_Array_Less_Equal,
Iir_Predefined_Array_Greater,
Iir_Predefined_Array_Greater_Equal,
-- LRM08 9.2.5 Adding operators
Iir_Predefined_Array_Array_Concat,
Iir_Predefined_Array_Element_Concat,
Iir_Predefined_Element_Array_Concat,
Iir_Predefined_Element_Element_Concat,
-- LRM08 5.3.2.4 Predefined operations on array types
Iir_Predefined_Array_Minimum,
Iir_Predefined_Array_Maximum,
Iir_Predefined_Vector_Minimum,
Iir_Predefined_Vector_Maximum,
-- LRM08 9.2.4 Shift operators
Iir_Predefined_Array_Sll,
Iir_Predefined_Array_Srl,
Iir_Predefined_Array_Sla,
Iir_Predefined_Array_Sra,
Iir_Predefined_Array_Rol,
Iir_Predefined_Array_Ror,
-- LRM08 9.2.2 Logical operators
-- Predefined operators for one dimensional array.
-- For bit and boolean type, the operations are the same. To be
-- neutral, we use TF (for True/False) instead of Bit, Boolean or
-- Logic.
Iir_Predefined_TF_Array_And,
Iir_Predefined_TF_Array_Or,
Iir_Predefined_TF_Array_Nand,
Iir_Predefined_TF_Array_Nor,
Iir_Predefined_TF_Array_Xor,
Iir_Predefined_TF_Array_Xnor,
Iir_Predefined_TF_Array_Not,
-- LRM08 9.2.2 Logical operators
Iir_Predefined_TF_Reduction_And,
Iir_Predefined_TF_Reduction_Or,
Iir_Predefined_TF_Reduction_Nand,
Iir_Predefined_TF_Reduction_Nor,
Iir_Predefined_TF_Reduction_Xor,
Iir_Predefined_TF_Reduction_Xnor,
Iir_Predefined_TF_Reduction_Not,
-- LRM08 9.2.2 Logical operators
Iir_Predefined_TF_Array_Element_And,
Iir_Predefined_TF_Element_Array_And,
Iir_Predefined_TF_Array_Element_Or,
Iir_Predefined_TF_Element_Array_Or,
Iir_Predefined_TF_Array_Element_Nand,
Iir_Predefined_TF_Element_Array_Nand,
Iir_Predefined_TF_Array_Element_Nor,
Iir_Predefined_TF_Element_Array_Nor,
Iir_Predefined_TF_Array_Element_Xor,
Iir_Predefined_TF_Element_Array_Xor,
Iir_Predefined_TF_Array_Element_Xnor,
Iir_Predefined_TF_Element_Array_Xnor,
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Bit_Array_Match_Equality,
Iir_Predefined_Bit_Array_Match_Inequality,
-- LRM08 5.3.2.4 Predefined operations on array types
Iir_Predefined_Array_Char_To_String,
Iir_Predefined_Bit_Vector_To_Ostring,
Iir_Predefined_Bit_Vector_To_Hstring,
-- LRM08 9.2.3 Relational Operators
-- IEEE.Std_Logic_1164.Std_Ulogic
Iir_Predefined_Std_Ulogic_Match_Equality,
Iir_Predefined_Std_Ulogic_Match_Inequality,
Iir_Predefined_Std_Ulogic_Match_Less,
Iir_Predefined_Std_Ulogic_Match_Less_Equal,
Iir_Predefined_Std_Ulogic_Match_Greater,
Iir_Predefined_Std_Ulogic_Match_Greater_Equal,
-- LRM08 9.2.3 Relational Operators
Iir_Predefined_Std_Ulogic_Array_Match_Equality,
Iir_Predefined_Std_Ulogic_Array_Match_Inequality,
-- -- Predefined attribute functions.
-- Iir_Predefined_Attribute_Image,
-- Iir_Predefined_Attribute_Value,
-- Iir_Predefined_Attribute_Pos,
-- Iir_Predefined_Attribute_Val,
-- Iir_Predefined_Attribute_Succ,
-- Iir_Predefined_Attribute_Pred,
-- Iir_Predefined_Attribute_Leftof,
-- Iir_Predefined_Attribute_Rightof,
-- Iir_Predefined_Attribute_Left,
-- Iir_Predefined_Attribute_Right,
-- Iir_Predefined_Attribute_Event,
-- Iir_Predefined_Attribute_Active,
-- Iir_Predefined_Attribute_Last_Event,
-- Iir_Predefined_Attribute_Last_Active,
-- Iir_Predefined_Attribute_Last_Value,
-- Iir_Predefined_Attribute_Driving,
-- Iir_Predefined_Attribute_Driving_Value,
-- Impure subprograms.
-- LRM08 5.4.3 Allocation and deallocation of objects
Iir_Predefined_Deallocate,
-- LRM08 5.5.2 File operations
Iir_Predefined_File_Open,
Iir_Predefined_File_Open_Status,
Iir_Predefined_File_Close,
Iir_Predefined_Read,
Iir_Predefined_Read_Length,
Iir_Predefined_Flush,
Iir_Predefined_Write,
Iir_Predefined_Endfile,
-- Misc impure functions.
Iir_Predefined_Now_Function,
-- A not predefined and not known function. User function.
Iir_Predefined_None,
-- Defined in package ieee.std_logic_1164
-- Std_Ulogic operations.
Iir_Predefined_Ieee_1164_Scalar_And,
Iir_Predefined_Ieee_1164_Scalar_Nand,
Iir_Predefined_Ieee_1164_Scalar_Or,
Iir_Predefined_Ieee_1164_Scalar_Nor,
Iir_Predefined_Ieee_1164_Scalar_Xor,
Iir_Predefined_Ieee_1164_Scalar_Xnor,
Iir_Predefined_Ieee_1164_Scalar_Not,
-- Std_Logic_Vector or Std_Ulogic_Vector operations.
-- Length of the result is the length of the left operand.
Iir_Predefined_Ieee_1164_Vector_And,
Iir_Predefined_Ieee_1164_Vector_Nand,
Iir_Predefined_Ieee_1164_Vector_Or,
Iir_Predefined_Ieee_1164_Vector_Nor,
Iir_Predefined_Ieee_1164_Vector_Xor,
Iir_Predefined_Ieee_1164_Vector_Xnor,
Iir_Predefined_Ieee_1164_Vector_Not,
-- Numeric_Std.
-- Abbreviations:
-- Uns: Unsigned, Sgn: Signed, Nat: Natural, Int: Integer.
Iir_Predefined_Ieee_Numeric_Std_Add_Uns_Uns,
Iir_Predefined_Ieee_Numeric_Std_Add_Uns_Nat,
Iir_Predefined_Ieee_Numeric_Std_Add_Nat_Uns,
Iir_Predefined_Ieee_Numeric_Std_Add_Sgn_Sgn,
Iir_Predefined_Ieee_Numeric_Std_Add_Sgn_Int,
Iir_Predefined_Ieee_Numeric_Std_Add_Int_Sgn,
Iir_Predefined_Ieee_Numeric_Std_Eq_Uns_Uns,
Iir_Predefined_Ieee_Numeric_Std_Eq_Uns_Nat,
Iir_Predefined_Ieee_Numeric_Std_Eq_Nat_Uns,
Iir_Predefined_Ieee_Numeric_Std_Eq_Sgn_Sgn,
Iir_Predefined_Ieee_Numeric_Std_Eq_Sgn_Int,
Iir_Predefined_Ieee_Numeric_Std_Eq_Int_Sgn
);
-- Return TRUE iff FUNC is a short-cut predefined function.
function Iir_Predefined_Shortcut_P (Func : Iir_Predefined_Functions)
return Boolean;
-- Pure and impure functions form a partition of implicit functions.
subtype Iir_Predefined_Pure_Functions is Iir_Predefined_Functions range
Iir_Predefined_Boolean_And ..
Iir_Predefined_Functions'Pred (Iir_Predefined_Deallocate);
subtype Iir_Predefined_Impure_Functions is Iir_Predefined_Functions range
Iir_Predefined_Deallocate ..
Iir_Predefined_Functions'Pred (Iir_Predefined_None);
subtype Iir_Predefined_TF_Array_Functions
is Iir_Predefined_Functions range
Iir_Predefined_TF_Array_And ..
--Iir_Predefined_TF_Array_Or
--Iir_Predefined_TF_Array_Nand
--Iir_Predefined_TF_Array_Nor
--Iir_Predefined_TF_Array_Xor
--Iir_Predefined_TF_Array_Xnor
Iir_Predefined_TF_Array_Not;
subtype Iir_Predefined_Dyadic_TF_Array_Functions
is Iir_Predefined_Functions range
Iir_Predefined_TF_Array_And ..
--Iir_Predefined_TF_Array_Or
--Iir_Predefined_TF_Array_Nand
--Iir_Predefined_TF_Array_Nor
--Iir_Predefined_TF_Array_Xor
Iir_Predefined_TF_Array_Xnor;
subtype Iir_Predefined_Shift_Functions is Iir_Predefined_Functions range
Iir_Predefined_Array_Sll ..
--Iir_Predefined_Array_Srl
--Iir_Predefined_Array_Sla
--Iir_Predefined_Array_Sra
--Iir_Predefined_Array_Rol
Iir_Predefined_Array_Ror;
subtype Iir_Predefined_Concat_Functions is Iir_Predefined_Functions range
Iir_Predefined_Array_Array_Concat ..
--Iir_Predefined_Array_Element_Concat
--Iir_Predefined_Element_Array_Concat
Iir_Predefined_Element_Element_Concat;
subtype Iir_Predefined_Std_Ulogic_Match_Ordering_Functions is
Iir_Predefined_Functions range
Iir_Predefined_Std_Ulogic_Match_Less ..
--Iir_Predefined_Std_Ulogic_Match_Less_Equal
--Iir_Predefined_Std_Ulogic_Match_Greater
Iir_Predefined_Std_Ulogic_Match_Greater_Equal;
-- Subtype for implicit subprograms. These have no corresponding bodies.
-- Implicit and explicit subprograms are partitions: they are disjoint
-- and cover all the cases.
subtype Iir_Predefined_Implicit is Iir_Predefined_Functions range
Iir_Predefined_Error ..
Iir_Predefined_Functions'Pred (Iir_Predefined_None);
-- Subtype for exlicit subprograms. These require a corresponding body.
subtype Iir_Predefined_Explicit is Iir_Predefined_Functions range
Iir_Predefined_None ..
Iir_Predefined_Functions'Last;
-- Explicit known subprograms (from ieee)
subtype Iir_Predefined_IEEE_Explicit is Iir_Predefined_Functions range
Iir_Predefined_Functions'Succ (Iir_Predefined_None) ..
Iir_Predefined_Functions'Last;
-- Staticness as defined by LRM93 6.1 and 7.4
type Iir_Staticness is (Unknown, None, Globally, Locally);
-- Staticness as defined by LRM93 6.1 and 7.4
function Min (L,R: Iir_Staticness) return Iir_Staticness renames
Iir_Staticness'Min;
-- Purity state of a procedure.
-- PURE means the procedure is pure.
-- IMPURE means the procedure is impure: it references a file object or
-- a signal or a variable declared outside a subprogram, or it calls an
-- impure subprogram.
-- MAYBE_IMPURE means the procedure references a signal or a variable
-- declared in a subprogram. The relative position of a parent has to
-- be considered. The list of callees must not be checked.
-- UNKNOWN is like MAYBE_IMPURE, but the subprogram has a list of callees
-- whose purity is not yet known. As a consequence, a direct or
-- indirect call to such a procedure cannot be proved to be allowed
-- in a pure function.
-- Note: UNKNOWN is the default state. At any impure call, the state is
-- set to IMPURE. Only at the end of body analysis and only if the
-- callee list is empty, the state can be set either to MAYBE_IMPURE or
-- PURE.
type Iir_Pure_State is (Unknown, Pure, Maybe_Impure, Impure);
-- State of subprograms for validity of use in all-sensitized process.
-- INVALID_SIGNAL means that the subprogram is in a package and
-- reads a signal or that the subprogram calls (indirectly) such
-- a subprogram. In this case, the subprogram cannot be called from
-- an all-sensitized process.
-- READ_SIGNAL means that the subprogram reads a signal and is defined
-- in an entity or an architecture or that the subprogram calls
-- (indirectly) such a subprogram. In this case, the subprogram can
-- be called from an all-sensitized process and the reference will be
-- part of the sensitivity list.
-- NO_SIGNAL means that the subprogram doesn't read any signal and don't
-- call such a subprogram. The subprogram can be called from an
-- all-sensitized process but there is no need to track this call.
-- UNKNOWN means that the state is not yet defined.
type Iir_All_Sensitized is
(Unknown, No_Signal, Read_Signal, Invalid_Signal);
-- Constraint state of a type.
-- See LRM08 5.1 for definition.
type Iir_Constraint is
(Unconstrained, Partially_Constrained, Fully_Constrained);
-- The kind of an inteface list.
type Interface_Kind_Type is (Generic_Interface_List,
Port_Interface_List,
Procedure_Parameter_Interface_List,
Function_Parameter_Interface_List);
subtype Parameter_Interface_List is Interface_Kind_Type range
Procedure_Parameter_Interface_List ..
Function_Parameter_Interface_List;
---------------
-- subranges --
---------------
-- These subtypes are used for ranges, for `case' statments or for the `in'
-- operator.
-- In order to be correctly parsed by check_iir, the declaration must
-- follow these rules:
-- * the first line must be "subtype Iir_Kinds_NAME is Iir_Kind_range"
-- * the second line must be the lowest bound of the range, followed by "..
-- * comments line
-- * the last line must be the highest bound of the range, followed by ";"
-- subtype Iir_Kinds_List is Iir_Kind range
-- Iir_Kind_List ..
-- Iir_Kind_Callees_List;
subtype Iir_Kinds_Library_Unit_Declaration is Iir_Kind range
Iir_Kind_Package_Declaration ..
--Iir_Kind_Package_Instantiation_Declaration
--Iir_Kind_Package_Body
--Iir_Kind_Configuration_Declaration
--Iir_Kind_Entity_Declaration
--Iir_Kind_Architecture_Body
Iir_Kind_Context_Declaration;
subtype Iir_Kinds_Package_Declaration is Iir_Kind range
Iir_Kind_Package_Declaration ..
Iir_Kind_Package_Instantiation_Declaration;
-- Note: does not include iir_kind_enumeration_literal since it is
-- considered as a declaration.
subtype Iir_Kinds_Literal is Iir_Kind range
Iir_Kind_Integer_Literal ..
--Iir_Kind_Floating_Point_Literal
--Iir_Kind_Null_Literal
--Iir_Kind_String_Literal8
--Iir_Kind_Physical_Int_Literal
Iir_Kind_Physical_Fp_Literal;
subtype Iir_Kinds_Array_Type_Definition is Iir_Kind range
Iir_Kind_Array_Type_Definition ..
Iir_Kind_Array_Subtype_Definition;
subtype Iir_Kinds_Type_And_Subtype_Definition is Iir_Kind range
Iir_Kind_Access_Type_Definition ..
--Iir_Kind_Incomplete_Type_Definition
--Iir_Kind_Interface_Type_Definition
--Iir_Kind_File_Type_Definition
--Iir_Kind_Protected_Type_Declaration
--Iir_Kind_Record_Type_Definition
--Iir_Kind_Array_Type_Definition
--Iir_Kind_Array_Subtype_Definition
--Iir_Kind_Record_Subtype_Definition
--Iir_Kind_Access_Subtype_Definition
--Iir_Kind_Physical_Subtype_Definition
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
--Iir_Kind_Integer_Type_Definition
--Iir_Kind_Floating_Type_Definition
Iir_Kind_Physical_Type_Definition;
subtype Iir_Kinds_Subtype_Definition is Iir_Kind range
Iir_Kind_Array_Subtype_Definition ..
--Iir_Kind_Record_Subtype_Definition
--Iir_Kind_Access_Subtype_Definition
--Iir_Kind_Physical_Subtype_Definition
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
Iir_Kind_Enumeration_Subtype_Definition;
subtype Iir_Kinds_Scalar_Subtype_Definition is Iir_Kind range
Iir_Kind_Physical_Subtype_Definition ..
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
Iir_Kind_Enumeration_Subtype_Definition;
subtype Iir_Kinds_Scalar_Type_And_Subtype_Definition is Iir_Kind range
Iir_Kind_Physical_Subtype_Definition ..
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
--Iir_Kind_Integer_Type_Definition
--Iir_Kind_Floating_Type_Definition
Iir_Kind_Physical_Type_Definition;
subtype Iir_Kinds_Range_Type_Definition is Iir_Kind range
Iir_Kind_Physical_Subtype_Definition ..
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
--Iir_Kind_Enumeration_Subtype_Definition
Iir_Kind_Enumeration_Type_Definition;
subtype Iir_Kinds_Discrete_Type_Definition is Iir_Kind range
Iir_Kind_Integer_Subtype_Definition ..
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
Iir_Kind_Integer_Type_Definition;
-- subtype Iir_Kinds_Discrete_Subtype_Definition is Iir_Kind range
-- Iir_Kind_Integer_Subtype_Definition ..
-- Iir_Kind_Enumeration_Subtype_Definition;
subtype Iir_Kinds_Composite_Type_Definition is Iir_Kind range
Iir_Kind_Record_Type_Definition ..
--Iir_Kind_Array_Type_Definition
--Iir_Kind_Array_Subtype_Definition
Iir_Kind_Record_Subtype_Definition;
subtype Iir_Kinds_Type_Declaration is Iir_Kind range
Iir_Kind_Type_Declaration ..
--Iir_Kind_Anonymous_Type_Declaration
Iir_Kind_Subtype_Declaration;
subtype Iir_Kinds_Nonoverloadable_Declaration is Iir_Kind range
Iir_Kind_Type_Declaration ..
Iir_Kind_Element_Declaration;
subtype Iir_Kinds_Monadic_Operator is Iir_Kind range
Iir_Kind_Identity_Operator ..
--Iir_Kind_Negation_Operator
--Iir_Kind_Absolute_Operator
--Iir_Kind_Not_Operator
--Iir_Kind_Condition_Operator
--Iir_Kind_Reduction_And_Operator
--Iir_Kind_Reduction_Or_Operator
--Iir_Kind_Reduction_Nand_Operator
--Iir_Kind_Reduction_Nor_Operator
--Iir_Kind_Reduction_Xor_Operator
Iir_Kind_Reduction_Xnor_Operator;
subtype Iir_Kinds_Dyadic_Operator is Iir_Kind range
Iir_Kind_And_Operator ..
--Iir_Kind_Or_Operator
--Iir_Kind_Nand_Operator
--Iir_Kind_Nor_Operator
--Iir_Kind_Xor_Operator
--Iir_Kind_Xnor_Operator
--Iir_Kind_Equality_Operator
--Iir_Kind_Inequality_Operator
--Iir_Kind_Less_Than_Operator
--Iir_Kind_Less_Than_Or_Equal_Operator
--Iir_Kind_Greater_Than_Operator
--Iir_Kind_Greater_Than_Or_Equal_Operator
--Iir_Kind_Match_Equality_Operator
--Iir_Kind_Match_Inequality_Operator
--Iir_Kind_Match_Less_Than_Operator
--Iir_Kind_Match_Less_Than_Or_Equal_Operator
--Iir_Kind_Match_Greater_Than_Operator
--Iir_Kind_Match_Greater_Than_Or_Equal_Operator
--Iir_Kind_Sll_Operator
--Iir_Kind_Sla_Operator
--Iir_Kind_Srl_Operator
--Iir_Kind_Sra_Operator
--Iir_Kind_Rol_Operator
--Iir_Kind_Ror_Operator
--Iir_Kind_Addition_Operator
--Iir_Kind_Substraction_Operator
--Iir_Kind_Concatenation_Operator
--Iir_Kind_Multiplication_Operator
--Iir_Kind_Division_Operator
--Iir_Kind_Modulus_Operator
--Iir_Kind_Remainder_Operator
Iir_Kind_Exponentiation_Operator;
subtype Iir_Kinds_Functions_And_Literals is Iir_Kind range
Iir_Kind_Enumeration_Literal ..
Iir_Kind_Function_Declaration;
subtype Iir_Kinds_Subprogram_Declaration is Iir_Kind range
Iir_Kind_Function_Declaration ..
Iir_Kind_Procedure_Declaration;
subtype Iir_Kinds_Subprogram_Body is Iir_Kind range
Iir_Kind_Function_Body ..
Iir_Kind_Procedure_Body;
subtype Iir_Kinds_Process_Statement is Iir_Kind range
Iir_Kind_Sensitized_Process_Statement ..
Iir_Kind_Process_Statement;
subtype Iir_Kinds_Interface_Object_Declaration is Iir_Kind range
Iir_Kind_Interface_Constant_Declaration ..
--Iir_Kind_Interface_Variable_Declaration
--Iir_Kind_Interface_Signal_Declaration
Iir_Kind_Interface_File_Declaration;
subtype Iir_Kinds_Interface_Subprogram_Declaration is Iir_Kind range
Iir_Kind_Interface_Function_Declaration ..
Iir_Kind_Interface_Procedure_Declaration;
subtype Iir_Kinds_Interface_Declaration is Iir_Kind range
Iir_Kind_Interface_Constant_Declaration ..
--Iir_Kind_Interface_Variable_Declaration
--Iir_Kind_Interface_Signal_Declaration
--Iir_Kind_Interface_File_Declaration
--Iir_Kind_Interface_Type_Declaration
--Iir_Kind_Interface_Package_Declaration
--Iir_Kind_Interface_Function_Declaration
Iir_Kind_Interface_Procedure_Declaration;
subtype Iir_Kinds_Object_Declaration is Iir_Kind range
Iir_Kind_Object_Alias_Declaration ..
--Iir_Kind_File_Declaration
--Iir_Kind_Guard_Signal_Declaration
--Iir_Kind_Signal_Declaration
--Iir_Kind_Variable_Declaration
--Iir_Kind_Constant_Declaration
--Iir_Kind_Iterator_Declaration
--Iir_Kind_Interface_Constant_Declaration
--Iir_Kind_Interface_Variable_Declaration
--Iir_Kind_Interface_Signal_Declaration
Iir_Kind_Interface_File_Declaration;
subtype Iir_Kinds_Branch_Quantity_Declaration is Iir_Kind range
Iir_Kind_Across_Quantity_Declaration ..
Iir_Kind_Through_Quantity_Declaration;
subtype Iir_Kinds_Quantity_Declaration is Iir_Kind range
Iir_Kind_Free_Quantity_Declaration ..
--Iir_Kind_Across_Quantity_Declaration
Iir_Kind_Through_Quantity_Declaration;
subtype Iir_Kinds_Non_Alias_Object_Declaration is Iir_Kind range
Iir_Kind_File_Declaration ..
--Iir_Kind_Guard_Signal_Declaration
--Iir_Kind_Signal_Declaration
--Iir_Kind_Variable_Declaration
--Iir_Kind_Constant_Declaration
--Iir_Kind_Iterator_Declaration
--Iir_Kind_Interface_Constant_Declaration
--Iir_Kind_Interface_Variable_Declaration
--Iir_Kind_Interface_Signal_Declaration
Iir_Kind_Interface_File_Declaration;
subtype Iir_Kinds_Association_Element is Iir_Kind range
Iir_Kind_Association_Element_By_Expression ..
--Iir_Kind_Association_Element_By_Individual
Iir_Kind_Association_Element_Open;
subtype Iir_Kinds_Choice is Iir_Kind range
Iir_Kind_Choice_By_Range ..
--Iir_Kind_Choice_By_Expression
--Iir_Kind_Choice_By_Others
--Iir_Kind_Choice_By_None
Iir_Kind_Choice_By_Name;
-- Choices in a case statement.
subtype Iir_Kinds_Case_Choice is Iir_Kind range
Iir_Kind_Choice_By_Range ..
--Iir_Kind_Choice_By_Expression
Iir_Kind_Choice_By_Others;
-- Choices in array aggregate.
subtype Iir_Kinds_Array_Choice is Iir_Kind range
Iir_Kind_Choice_By_Range ..
--Iir_Kind_Choice_By_Expression
--Iir_Kind_Choice_By_Others
Iir_Kind_Choice_By_None;
-- Choices in record aggregate.
subtype Iir_Kinds_Record_Choice is Iir_Kind range
Iir_Kind_Choice_By_Others ..
--Iir_Kind_Choice_By_None
Iir_Kind_Choice_By_Name;
subtype Iir_Kinds_Entity_Aspect is Iir_Kind range
Iir_Kind_Entity_Aspect_Entity ..
--Iir_Kind_Entity_Aspect_Configuration
Iir_Kind_Entity_Aspect_Open;
subtype Iir_Kinds_Denoting_Name is Iir_Kind range
Iir_Kind_Character_Literal ..
--Iir_Kind_Simple_Name
--Iir_Kind_Selected_Name
--Iir_Kind_Operator_Symbol
Iir_Kind_Reference_Name;
subtype Iir_Kinds_Name is Iir_Kind range
Iir_Kind_Character_Literal ..
--Iir_Kind_Simple_Name
--Iir_Kind_Selected_Name
--Iir_Kind_Operator_Symbol
--Iir_Kind_Reference_Name
--Iir_Kind_Selected_By_All_Name
Iir_Kind_Parenthesis_Name;
subtype Iir_Kinds_Dereference is Iir_Kind range
Iir_Kind_Dereference ..
Iir_Kind_Implicit_Dereference;
subtype Iir_Kinds_External_Name is Iir_Kind range
Iir_Kind_External_Constant_Name ..
--Iir_Kind_External_Signal_Name
Iir_Kind_External_Variable_Name;
-- Any attribute that is an expression.
subtype Iir_Kinds_Expression_Attribute is Iir_Kind range
Iir_Kind_Left_Type_Attribute ..
--Iir_Kind_Right_Type_Attribute
--Iir_Kind_High_Type_Attribute
--Iir_Kind_Low_Type_Attribute
--Iir_Kind_Ascending_Type_Attribute
--Iir_Kind_Image_Attribute
--Iir_Kind_Value_Attribute
--Iir_Kind_Pos_Attribute
--Iir_Kind_Val_Attribute
--Iir_Kind_Succ_Attribute
--Iir_Kind_Pred_Attribute
--Iir_Kind_Leftof_Attribute
--Iir_Kind_Rightof_Attribute
--Iir_Kind_Delayed_Attribute
--Iir_Kind_Stable_Attribute
--Iir_Kind_Quiet_Attribute
--Iir_Kind_Transaction_Attribute
--Iir_Kind_Event_Attribute
--Iir_Kind_Active_Attribute
--Iir_Kind_Last_Event_Attribute
--Iir_Kind_Last_Active_Attribute
--Iir_Kind_Last_Value_Attribute
--Iir_Kind_Driving_Attribute
--Iir_Kind_Driving_Value_Attribute
--Iir_Kind_Behavior_Attribute
--Iir_Kind_Structure_Attribute
--Iir_Kind_Simple_Name_Attribute
--Iir_Kind_Instance_Name_Attribute
--Iir_Kind_Path_Name_Attribute
--Iir_Kind_Left_Array_Attribute
--Iir_Kind_Right_Array_Attribute
--Iir_Kind_High_Array_Attribute
--Iir_Kind_Low_Array_Attribute
--Iir_Kind_Length_Array_Attribute
Iir_Kind_Ascending_Array_Attribute;
-- All the attributes.
subtype Iir_Kinds_Attribute is Iir_Kind range
Iir_Kind_Base_Attribute ..
Iir_Kind_Reverse_Range_Array_Attribute;
-- Attributes of scalar types.
subtype Iir_Kinds_Type_Attribute is Iir_Kind range
Iir_Kind_Left_Type_Attribute ..
--Iir_Kind_Right_Type_Attribute
--Iir_Kind_High_Type_Attribute
--Iir_Kind_Low_Type_Attribute
Iir_Kind_Ascending_Type_Attribute;
-- Attributes whose result is a type.
subtype Iir_Kinds_Subtype_Attribute is Iir_Kind range
Iir_Kind_Base_Attribute ..
--Iir_Kind_Subtype_Attribute
Iir_Kind_Element_Attribute;
subtype Iir_Kinds_Scalar_Type_Attribute is Iir_Kind range
Iir_Kind_Pos_Attribute ..
--Iir_Kind_Val_Attribute
--Iir_Kind_Succ_Attribute
--Iir_Kind_Pred_Attribute
--Iir_Kind_Leftof_Attribute
Iir_Kind_Rightof_Attribute;
subtype Iir_Kinds_Array_Attribute is Iir_Kind range
Iir_Kind_Left_Array_Attribute ..
--Iir_Kind_Right_Array_Attribute
--Iir_Kind_High_Array_Attribute
--Iir_Kind_Low_Array_Attribute
--Iir_Kind_Length_Array_Attribute
--Iir_Kind_Ascending_Array_Attribute
--Iir_Kind_Range_Array_Attribute
Iir_Kind_Reverse_Range_Array_Attribute;
subtype Iir_Kinds_Signal_Attribute is Iir_Kind range
Iir_Kind_Delayed_Attribute ..
--Iir_Kind_Stable_Attribute
--Iir_Kind_Quiet_Attribute
Iir_Kind_Transaction_Attribute;
subtype Iir_Kinds_Signal_Value_Attribute is Iir_Kind range
Iir_Kind_Event_Attribute ..
--Iir_Kind_Active_Attribute
--Iir_Kind_Last_Event_Attribute
--Iir_Kind_Last_Active_Attribute
--Iir_Kind_Last_Value_Attribute
--Iir_Kind_Driving_Attribute
Iir_Kind_Driving_Value_Attribute;
subtype Iir_Kinds_Name_Attribute is Iir_Kind range
Iir_Kind_Simple_Name_Attribute ..
--Iir_Kind_Instance_Name_Attribute
Iir_Kind_Path_Name_Attribute;
subtype Iir_Kinds_Concurrent_Statement is Iir_Kind range
Iir_Kind_Sensitized_Process_Statement ..
--Iir_Kind_Process_Statement
--Iir_Kind_Concurrent_Simple_Signal_Assignment
--Iir_Kind_Concurrent_Conditional_Signal_Assignment
--Iir_Kind_Concurrent_Selected_Signal_Assignment
--Iir_Kind_Concurrent_Assertion_Statement
--Iir_Kind_Concurrent_Procedure_Call_Statement
--Iir_Kind_Psl_Assert_Statement
--Iir_Kind_Psl_Cover_Statement
--Iir_Kind_Block_Statement
--Iir_Kind_If_Generate_Statement
--Iir_Kind_Case_Generate_Statement
--Iir_Kind_For_Generate_Statement
--Iir_Kind_Component_Instantiation_Statement
Iir_Kind_Psl_Default_Clock;
subtype Iir_Kinds_Simple_Concurrent_Statement is Iir_Kind range
Iir_Kind_Sensitized_Process_Statement ..
--Iir_Kind_Process_Statement
--Iir_Kind_Concurrent_Simple_Signal_Assignment
--Iir_Kind_Concurrent_Conditional_Signal_Assignment
--Iir_Kind_Concurrent_Selected_Signal_Assignment
--Iir_Kind_Concurrent_Assertion_Statement
--Iir_Kind_Concurrent_Procedure_Call_Statement
--Iir_Kind_Psl_Assert_Statement
Iir_Kind_Psl_Cover_Statement;
subtype Iir_Kinds_Concurrent_Signal_Assignment is Iir_Kind range
Iir_Kind_Concurrent_Simple_Signal_Assignment ..
--Iir_Kind_Concurrent_Conditional_Signal_Assignment
Iir_Kind_Concurrent_Selected_Signal_Assignment;
subtype Iir_Kinds_If_Case_Generate_Statement is Iir_Kind range
Iir_Kind_If_Generate_Statement ..
Iir_Kind_Case_Generate_Statement;
subtype Iir_Kinds_Sequential_Statement is Iir_Kind range
Iir_Kind_Simple_Signal_Assignment_Statement ..
--Iir_Kind_Conditional_Signal_Assignment_Statement
--Iir_Kind_Selected_Waveform_Assignment_Statement
--Iir_Kind_Null_Statement
--Iir_Kind_Assertion_Statement
--Iir_Kind_Report_Statement
--Iir_Kind_Wait_Statement
--Iir_Kind_Variable_Assignment_Statement
--Iir_Kind_Conditional_Variable_Assignment_Statement
--Iir_Kind_Return_Statement
--Iir_Kind_For_Loop_Statement
--Iir_Kind_While_Loop_Statement
--Iir_Kind_Next_Statement
--Iir_Kind_Exit_Statement
--Iir_Kind_Case_Statement
--Iir_Kind_Procedure_Call_Statement
Iir_Kind_If_Statement;
subtype Iir_Kinds_Variable_Assignment_Statement is Iir_Kind range
Iir_Kind_Variable_Assignment_Statement ..
Iir_Kind_Conditional_Variable_Assignment_Statement;
subtype Iir_Kinds_Allocator is Iir_Kind range
Iir_Kind_Allocator_By_Expression ..
Iir_Kind_Allocator_By_Subtype;
subtype Iir_Kinds_Clause is Iir_Kind range
Iir_Kind_Library_Clause ..
--Iir_Kind_Use_Clause
Iir_Kind_Context_Reference;
subtype Iir_Kinds_Specification is Iir_Kind range
Iir_Kind_Attribute_Specification ..
--Iir_Kind_Disconnection_Specification
Iir_Kind_Configuration_Specification;
-- Nodes and lists.
subtype Iir is Nodes.Node_Type;
Null_Iir : constant Iir := Nodes.Null_Node;
-- Return True iff Node is null / not set.
function Is_Null (Node : Iir) return Boolean;
pragma Inline (Is_Null);
-- Return True iff Node is not null / set.
function Is_Valid (Node : Iir) return Boolean;
pragma Inline (Is_Valid);
function "=" (L, R : Iir) return Boolean renames Nodes."=";
function Get_Last_Node return Iir renames Nodes.Get_Last_Node;
subtype Iir_List is Lists.List_Type;
Null_Iir_List : constant Iir_List := Lists.Null_List;
Iir_List_All : constant Iir_List := Lists.List_All;
subtype List_Iterator is Lists.Iterator;
function Is_Null_List (Node : Iir_List) return Boolean;
pragma Inline (Is_Null_List);
function Create_Iir_List return Iir_List
renames Lists.Create_List;
procedure Append_Element (L : Iir_List; E : Iir)
renames Lists.Append_Element;
procedure Add_Element (L : Iir_List; E : Iir)
renames Lists.Add_Element;
procedure Destroy_Iir_List (L : in out Iir_List)
renames Lists.Destroy_List;
function Get_Nbr_Elements (L : Iir_List) return Natural
renames Lists.Get_Nbr_Elements;
function Get_First_Element (L : Iir_List) return Iir
renames Lists.Get_First_Element;
function Is_Empty (L : Iir_List) return Boolean
renames Lists.Is_Empty;
function List_Iterate (List : Iir_List) return List_Iterator
renames Lists.Iterate;
function List_Iterate_Safe (List : Iir_List) return List_Iterator
renames Lists.Iterate_Safe;
function Is_Valid (It : List_Iterator) return Boolean
renames Lists.Is_Valid;
function Is_First (It : List_Iterator) return Boolean
renames Lists.Is_First;
procedure Next (It : in out List_Iterator)
renames Lists.Next;
function Get_Element (It : List_Iterator) return Iir
renames Lists.Get_Element;
procedure Set_Element (It : List_Iterator; El : Iir)
renames Lists.Set_Element;
function "=" (L, R : Iir_List) return Boolean renames Lists."=";
subtype Iir_Flist is Flists.Flist_Type;
Null_Iir_Flist : constant Iir_Flist := Flists.Null_Flist;
Iir_Flist_Others : constant Iir_Flist := Flists.Flist_Others;
Iir_Flist_All : constant Iir_Flist := Flists.Flist_All;
subtype Iir_Flists_All_Others is Iir_Flist
range Iir_Flist_Others .. Iir_Flist_All;
Flist_First : constant Natural := Flists.Ffirst;
function Flist_Last (Flist : Iir_Flist) return Natural
renames Flists.Flast;
function Create_Iir_Flist (Len : Natural) return Iir_Flist
renames Flists.Create_Flist;
function Get_Nth_Element (Flist : Iir_Flist; N : Natural) return Iir
renames Flists.Get_Nth_Element;
procedure Set_Nth_Element (Flist : Iir_Flist; N : Natural; El : Iir)
renames Flists.Set_Nth_Element;
function Get_Nbr_Elements (Flist : Iir_Flist) return Natural
renames Flists.Length;
procedure Destroy_Iir_Flist (Flist : in out Iir_Flist)
renames Flists.Destroy_Flist;
function "=" (L, R : Iir_Flist) return Boolean renames Flists."=";
-- This is used only for lists.
type Iir_Array is array (Natural range <>) of Iir;
type Iir_Array_Acc is access Iir_Array;
procedure Free is new Ada.Unchecked_Deallocation
(Object => Iir_Array, Name => Iir_Array_Acc);
-- Date State.
-- This indicates the origin of the data information.
-- This also indicates the state of the unit (loaded or not).
type Date_State_Type is
(
-- The unit is not yet in the library.
Date_Extern,
-- The unit is not loaded (still on the disk).
-- All the informations come from the library file.
Date_Disk,
-- The unit has been parsed, but not analyzed.
-- Only the date information come from the library.
Date_Parse,
-- The unit has been analyzed.
Date_Analyze
);
-- A date is used for analysis order. All design units from a library
-- are ordered according to the date.
type Date_Type is new Nat32;
-- The unit is obsoleted (ie replaced) by a more recently analyzed design
-- unit.another design unit.
-- If another design unit depends (directly or not) on an obseleted design
-- unit, it is also obsolete, and cannot be defined.
Date_Obsolete : constant Date_Type := 0;
-- The unit was not analyzed.
Date_Not_Analyzed : constant Date_Type := 1;
-- The unit has been analyzed but it has bad dependences.
Date_Bad_Analyze : constant Date_Type := 2;
-- The unit has been parsed but not analyzed.
Date_Parsed : constant Date_Type := 4;
-- The unit is being analyzed.
Date_Analyzing : constant Date_Type := 5;
-- This unit has just been analyzed and should be marked at the last
-- analyzed unit.
Date_Analyzed : constant Date_Type := 6;
-- Used only for default configuration.
-- Such units are always up-to-date.
Date_Uptodate : constant Date_Type := 7;
subtype Date_Valid is Date_Type range 10 .. Date_Type'Last;
-- Predefined depth values.
-- Depth of a subprogram not declared in another subprogram.
Iir_Depth_Top : constant Iir_Int32 := 0;
-- Purity depth of a pure subprogram.
Iir_Depth_Pure : constant Iir_Int32 := Iir_Int32'Last;
-- Purity depth of an impure subprogram.
Iir_Depth_Impure : constant Iir_Int32 := -1;
type Number_Base_Type is (Base_None, Base_2, Base_8, Base_10, Base_16);
-- design file
subtype Iir_Design_File is Iir;
subtype Iir_Design_Unit is Iir;
subtype Iir_Library_Clause is Iir;
-- Literals.
--subtype Iir_Text_Literal is Iir;
subtype Iir_Character_Literal is Iir;
subtype Iir_Integer_Literal is Iir;
subtype Iir_Floating_Point_Literal is Iir;
subtype Iir_Null_Literal is Iir;
subtype Iir_Physical_Int_Literal is Iir;
subtype Iir_Physical_Fp_Literal is Iir;
subtype Iir_Enumeration_Literal is Iir;
subtype Iir_Simple_Aggregate is Iir;
subtype Iir_Enumeration_Type_Definition is Iir;
subtype Iir_Enumeration_Subtype_Definition is Iir;
subtype Iir_Range_Expression is Iir;
subtype Iir_Integer_Subtype_Definition is Iir;
subtype Iir_Integer_Type_Definition is Iir;
subtype Iir_Floating_Subtype_Definition is Iir;
subtype Iir_Floating_Type_Definition is Iir;
subtype Iir_Array_Type_Definition is Iir;
subtype Iir_Record_Type_Definition is Iir;
subtype Iir_Protected_Type_Declaration is Iir;
subtype Iir_Protected_Type_Body is Iir;
subtype Iir_Subtype_Definition is Iir;
subtype Iir_Array_Subtype_Definition is Iir;
subtype Iir_Physical_Type_Definition is Iir;
subtype Iir_Physical_Subtype_Definition is Iir;
subtype Iir_Access_Type_Definition is Iir;
subtype Iir_Access_Subtype_Definition is Iir;
subtype Iir_File_Type_Definition is Iir;
subtype Iir_Waveform_Element is Iir;
subtype Iir_Conditional_Waveform is Iir;
subtype Iir_Association_Element_By_Expression is Iir;
subtype Iir_Association_Element_By_Individual is Iir;
subtype Iir_Association_Element_Open is Iir;
subtype Iir_Signature is Iir;
subtype Iir_Unit_Declaration is Iir;
subtype Iir_Entity_Aspect_Entity is Iir;
subtype Iir_Entity_Aspect_Configuration is Iir;
subtype Iir_Entity_Aspect_Open is Iir;
subtype Iir_Block_Configuration is Iir;
subtype Iir_Block_Header is Iir;
subtype Iir_Component_Configuration is Iir;
subtype Iir_Binding_Indication is Iir;
subtype Iir_Entity_Class is Iir;
subtype Iir_Attribute_Specification is Iir;
subtype Iir_Attribute_Value is Iir;
subtype Iir_Selected_Element is Iir;
subtype Iir_Implicit_Dereference is Iir;
subtype Iir_Aggregate_Info is Iir;
subtype Iir_Procedure_Call is Iir;
subtype Iir_Disconnection_Specification is Iir;
-- Lists.
subtype Iir_Design_Unit_List is Iir_List;
subtype Iir_Attribute_Value_Chain is Iir_List;
subtype Iir_Overload_List is Iir;
subtype Iir_Callees_List is Iir_List;
-- Declaration and children.
subtype Iir_Entity_Declaration is Iir;
subtype Iir_Architecture_Body is Iir;
subtype Iir_Interface_Signal_Declaration is Iir;
subtype Iir_Configuration_Declaration is Iir;
subtype Iir_Type_Declaration is Iir;
subtype Iir_Anonymous_Type_Declaration is Iir;
subtype Iir_Subtype_Declaration is Iir;
subtype Iir_Package_Declaration is Iir;
subtype Iir_Package_Body is Iir;
subtype Iir_Library_Declaration is Iir;
subtype Iir_Function_Declaration is Iir;
subtype Iir_Function_Body is Iir;
subtype Iir_Procedure_Declaration is Iir;
subtype Iir_Procedure_Body is Iir;
subtype Iir_Use_Clause is Iir;
subtype Iir_Constant_Declaration is Iir;
subtype Iir_Iterator_Declaration is Iir;
subtype Iir_Interface_Constant_Declaration is Iir;
subtype Iir_Interface_Variable_Declaration is Iir;
subtype Iir_Interface_File_Declaration is Iir;
subtype Iir_Guard_Signal_Declaration is Iir;
subtype Iir_Signal_Declaration is Iir;
subtype Iir_Variable_Declaration is Iir;
subtype Iir_Component_Declaration is Iir;
subtype Iir_Element_Declaration is Iir;
subtype Iir_Object_Alias_Declaration is Iir;
subtype Iir_Non_Object_Alias_Declaration is Iir;
subtype Iir_Interface_Declaration is Iir;
subtype Iir_Configuration_Specification is Iir;
subtype Iir_File_Declaration is Iir;
subtype Iir_Attribute_Declaration is Iir;
subtype Iir_Group_Template_Declaration is Iir;
subtype Iir_Group_Declaration is Iir;
-- concurrent_statement and children.
subtype Iir_Concurrent_Statement is Iir;
subtype Iir_Concurrent_Conditional_Signal_Assignment is Iir;
subtype Iir_Sensitized_Process_Statement is Iir;
subtype Iir_Process_Statement is Iir;
subtype Iir_Component_Instantiation_Statement is Iir;
subtype Iir_Block_Statement is Iir;
subtype Iir_Generate_Statement is Iir;
-- sequential statements.
subtype Iir_If_Statement is Iir;
subtype Iir_Elsif is Iir;
subtype Iir_For_Loop_Statement is Iir;
subtype Iir_While_Loop_Statement is Iir;
subtype Iir_Exit_Statement is Iir;
subtype Iir_Next_Statement is Iir;
subtype Iir_Variable_Assignment_Statement is Iir;
subtype Iir_Signal_Assignment_Statement is Iir;
subtype Iir_Assertion_Statement is Iir;
subtype Iir_Report_Statement is Iir;
subtype Iir_Wait_Statement is Iir;
subtype Iir_Return_Statement is Iir;
subtype Iir_Case_Statement is Iir;
subtype Iir_Procedure_Call_Statement is Iir;
-- expression and children.
subtype Iir_Expression is Iir;
subtype Iir_Function_Call is Iir;
subtype Iir_Aggregate is Iir;
subtype Iir_Qualified_Expression is Iir;
subtype Iir_Type_Conversion is Iir;
subtype Iir_Allocator_By_Expression is Iir;
subtype Iir_Allocator_By_Subtype is Iir;
-- names.
subtype Iir_Simple_Name is Iir;
subtype Iir_Slice_Name is Iir;
subtype Iir_Selected_Name is Iir;
subtype Iir_Selected_By_All_Name is Iir;
subtype Iir_Indexed_Name is Iir;
subtype Iir_Parenthesis_Name is Iir;
-- attributes.
subtype Iir_Attribute_Name is Iir;
-- General methods.
-- Get the kind of the iir.
function Get_Kind (N : Iir) return Iir_Kind;
pragma Inline (Get_Kind);
-- Create a new IIR of kind NEW_KIND, and copy fields from SRC to this
-- iir. Src fields are cleaned.
--function Clone_Iir (Src: Iir; New_Kind : Iir_Kind) return Iir;
procedure Set_Location (Target : Iir; Location : Location_Type)
renames Nodes.Set_Location;
function Get_Location (Target : Iir) return Location_Type
renames Nodes.Get_Location;
procedure Location_Copy (Target : Iir; Src : Iir);
function Create_Iir (Kind : Iir_Kind) return Iir;
function Create_Iir_Error return Iir;
procedure Free_Iir (Target : Iir) renames Nodes.Free_Node;
-- Disp statistics about node usage.
procedure Disp_Stats;
-- Design units contained in a design file.
-- Field: Field5 Chain
function Get_First_Design_Unit (Design : Iir) return Iir;
procedure Set_First_Design_Unit (Design : Iir; Chain : Iir);
-- Field: Field6 Ref
function Get_Last_Design_Unit (Design : Iir) return Iir;
procedure Set_Last_Design_Unit (Design : Iir; Chain : Iir);
-- Library declaration of a library clause. This is Forward_Ref as the
-- dependency of the unit on the library is not tracked.
-- Field: Field1 Forward_Ref
function Get_Library_Declaration (Design : Iir) return Iir;
procedure Set_Library_Declaration (Design : Iir; Library : Iir);
-- File time stamp is the system time of the file last modification.
-- Field: Field4 (uc)
function Get_File_Checksum (Design : Iir) return File_Checksum_Id;
procedure Set_File_Checksum (Design : Iir; Checksum : File_Checksum_Id);
-- Time stamp of the last analysis system time.
-- Field: Field3 (uc)
function Get_Analysis_Time_Stamp (Design : Iir) return Time_Stamp_Id;
procedure Set_Analysis_Time_Stamp (Design : Iir; Stamp : Time_Stamp_Id);
-- The library which FILE belongs to.
-- Field: Field0 Ref
function Get_Library (File : Iir_Design_File) return Iir;
procedure Set_Library (File : Iir_Design_File; Lib : Iir);
-- List of files which this design file depends on.
-- Field: Field1 (uc)
function Get_File_Dependence_List (File : Iir_Design_File) return Iir_List;
procedure Set_File_Dependence_List (File : Iir_Design_File; Lst : Iir_List);
-- Identifier for the design file file name.
-- Field: Field12 (pos)
function Get_Design_File_Filename (File : Iir_Design_File) return Name_Id;
procedure Set_Design_File_Filename (File : Iir_Design_File; Name : Name_Id);
-- Directory of a design file.
-- Field: Field11 (pos)
function Get_Design_File_Directory (File : Iir_Design_File) return Name_Id;
procedure Set_Design_File_Directory (File : Iir_Design_File; Dir : Name_Id);
-- The parent of a design unit is a design file.
-- Field: Field0 Ref
function Get_Design_File (Unit : Iir_Design_Unit) return Iir;
procedure Set_Design_File (Unit : Iir_Design_Unit; File : Iir);
-- Design files of a library.
-- Field: Field1 Chain
function Get_Design_File_Chain (Library : Iir) return Iir;
procedure Set_Design_File_Chain (Library : Iir; Chain : Iir);
-- System directory where the library is stored.
-- Field: Field5 (pos)
function Get_Library_Directory (Library : Iir) return Name_Id;
procedure Set_Library_Directory (Library : Iir; Dir : Name_Id);
-- Symbolic date, used to order design units in a library.
-- Field: Field4 (pos)
function Get_Date (Target : Iir) return Date_Type;
procedure Set_Date (Target : Iir; Date : Date_Type);
-- Chain of context clauses.
-- Field: Field1 Chain
function Get_Context_Items (Design_Unit : Iir) return Iir;
procedure Set_Context_Items (Design_Unit : Iir; Items_Chain : Iir);
-- List of design units on which the design unit depends. There is an
-- exception: the architecture of an entity aspect (of a component
-- instantiation) may not have been analyzed. The Entity_Aspect_Entity
-- is added to this list (instead of the non-existing design unit).
-- Field: Field8 Of_Ref (uc)
function Get_Dependence_List (Unit : Iir) return Iir_List;
procedure Set_Dependence_List (Unit : Iir; List : Iir_List);
-- List of functions or sensitized processes whose analysis checks are not
-- complete.
-- These elements have direct or indirect calls to procedure whose body is
-- not yet analyzed. Therefore, purity or wait checks are not complete.
-- Field: Field9 Of_Ref (uc)
function Get_Analysis_Checks_List (Unit : Iir) return Iir_List;
procedure Set_Analysis_Checks_List (Unit : Iir; List : Iir_List);
-- Wether the unit is on disk, parsed or analyzed.
-- Field: State1 (pos)
function Get_Date_State (Unit : Iir_Design_Unit) return Date_State_Type;
procedure Set_Date_State (Unit : Iir_Design_Unit; State : Date_State_Type);
-- If TRUE, the target of the signal assignment is guarded.
-- If FALSE, the target is not guarded.
-- This is determined during sem by examining the declaration(s) of the
-- target (there may be severals declarations in the case of a aggregate
-- target).
-- If UNKNOWN, this is not determined at compile time but at run-time.
-- This is the case for formal signal interfaces of subprograms.
-- Field: State1 (pos)
function Get_Guarded_Target_State (Stmt : Iir) return Tri_State_Type;
procedure Set_Guarded_Target_State (Stmt : Iir; State : Tri_State_Type);
-- Library unit of a design unit.
-- Field: Field5
function Get_Library_Unit (Design_Unit : Iir_Design_Unit) return Iir;
procedure Set_Library_Unit (Design_Unit : Iir_Design_Unit; Lib_Unit : Iir);
pragma Inline (Get_Library_Unit);
-- Every design unit is put in an hash table to find quickly found by its
-- name. This field is a single chain for collisions.
-- Field: Field7 Forward_Ref
function Get_Hash_Chain (Design_Unit : Iir_Design_Unit) return Iir;
procedure Set_Hash_Chain (Design_Unit : Iir_Design_Unit; Chain : Iir);
-- Set the line and the offset in the line, only for the library manager.
-- This is valid until the file is really loaded in memory. On loading,
-- location will contain all this informations.
-- Field: Field10 (uc)
function Get_Design_Unit_Source_Pos (Design_Unit : Iir) return Source_Ptr;
procedure Set_Design_Unit_Source_Pos (Design_Unit : Iir; Pos : Source_Ptr);
-- Field: Field11 (uc)
function Get_Design_Unit_Source_Line (Design_Unit : Iir) return Int32;
procedure Set_Design_Unit_Source_Line (Design_Unit : Iir; Line : Int32);
-- Field: Field12 (uc)
function Get_Design_Unit_Source_Col (Design_Unit : Iir) return Int32;
procedure Set_Design_Unit_Source_Col (Design_Unit : Iir; Line : Int32);
-- literals.
-- Value of an integer/physical literal.
-- Field: Field4,Field5 (grp)
function Get_Value (Lit : Iir) return Iir_Int64;
procedure Set_Value (Lit : Iir; Val : Iir_Int64);
-- Position (same as lit_type'pos) of an enumeration literal.
-- Field: Field5 (pos)
function Get_Enum_Pos (Lit : Iir) return Iir_Int32;
procedure Set_Enum_Pos (Lit : Iir; Val : Iir_Int32);
-- Field: Field4
function Get_Physical_Literal (Unit : Iir) return Iir;
procedure Set_Physical_Literal (Unit : Iir; Lit : Iir);
-- Value of a floating point literal.
-- Field: Field4,Field5 (grp)
function Get_Fp_Value (Lit : Iir) return Iir_Fp64;
procedure Set_Fp_Value (Lit : Iir; Val : Iir_Fp64);
-- List of elements of a simple aggregate.
-- Field: Field4 Ref (uc)
function Get_Simple_Aggregate_List (Target : Iir) return Iir_Flist;
procedure Set_Simple_Aggregate_List (Target : Iir; List : Iir_Flist);
-- For a string literal: the string identifier.
-- Field: Field5 (uc)
function Get_String8_Id (Lit : Iir) return String8_Id;
procedure Set_String8_Id (Lit : Iir; Id : String8_Id);
-- For a string literal: the string length.
-- Field: Field4 (uc)
function Get_String_Length (Lit : Iir) return Int32;
procedure Set_String_Length (Lit : Iir; Len : Int32);
-- Base of a bit string. Base_None for a string literal.
-- Field: Flag12,Flag13,Flag14 (grp)
function Get_Bit_String_Base (Lit : Iir) return Number_Base_Type;
procedure Set_Bit_String_Base (Lit : Iir; Base : Number_Base_Type);
-- Bit string is signed.
-- Field: Flag1
function Get_Has_Signed (Lit : Iir) return Boolean;
procedure Set_Has_Signed (Lit : Iir; Flag : Boolean);
-- Bit string sign is explicit
-- Field: Flag2
function Get_Has_Sign (Lit : Iir) return Boolean;
procedure Set_Has_Sign (Lit : Iir; Flag : Boolean);
-- Bit string length is explicit
-- Field: Flag3
function Get_Has_Length (Lit : Iir) return Boolean;
procedure Set_Has_Length (Lit : Iir; Flag : Boolean);
-- The origin of a literal can be null_iir for a literal generated by the
-- parser, or a node which was statically evaluated to this literal.
-- Such nodes are created by eval_expr.
-- Field: Field2
function Get_Literal_Origin (Lit : Iir) return Iir;
procedure Set_Literal_Origin (Lit : Iir; Orig : Iir);
-- Field: Field0
function Get_Range_Origin (Lit : Iir) return Iir;
procedure Set_Range_Origin (Lit : Iir; Orig : Iir);
-- Same as Type, but not marked as Ref. This is when a literal has a
-- subtype (such as string or bit_string) created specially for the
-- literal.
-- Field: Field3
function Get_Literal_Subtype (Lit : Iir) return Iir;
procedure Set_Literal_Subtype (Lit : Iir; Atype : Iir);
-- Field: Field3 Ref
function Get_Allocator_Subtype (Lit : Iir) return Iir;
procedure Set_Allocator_Subtype (Lit : Iir; Atype : Iir);
-- Field: Field3 (uc)
function Get_Entity_Class (Target : Iir) return Token_Type;
procedure Set_Entity_Class (Target : Iir; Kind : Token_Type);
-- Field: Field8 (uc)
function Get_Entity_Name_List (Target : Iir) return Iir_Flist;
procedure Set_Entity_Name_List (Target : Iir; Names : Iir_Flist);
-- Field: Field6
function Get_Attribute_Designator (Target : Iir) return Iir;
procedure Set_Attribute_Designator (Target : Iir; Designator : Iir);
-- Chain of attribute specifications. This is used only during sem, to
-- check that no named entity of a given class appear after an attr. spec.
-- with the entity name list OTHERS or ALL.
-- Field: Field7 Ref
function Get_Attribute_Specification_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Specification_Chain (Target : Iir; Chain : Iir);
-- Field: Field4 Ref
function Get_Attribute_Specification (Val : Iir) return Iir;
procedure Set_Attribute_Specification (Val : Iir; Attr : Iir);
-- Field: Field3 Of_Maybe_Ref (uc)
function Get_Signal_List (Target : Iir) return Iir_Flist;
procedure Set_Signal_List (Target : Iir; List : Iir_Flist);
-- Field: Field3 Forward_Ref
function Get_Designated_Entity (Val : Iir_Attribute_Value) return Iir;
procedure Set_Designated_Entity (Val : Iir_Attribute_Value; Entity : Iir);
-- Field: Field1
function Get_Formal (Target : Iir) return Iir;
procedure Set_Formal (Target : Iir; Formal : Iir);
-- Field: Field3
function Get_Actual (Target : Iir) return Iir;
procedure Set_Actual (Target : Iir; Actual : Iir);
-- Field: Field4
function Get_Actual_Conversion (Target : Iir) return Iir;
procedure Set_Actual_Conversion (Target : Iir; Conv : Iir);
-- Field: Field5
function Get_Formal_Conversion (Target : Iir) return Iir;
procedure Set_Formal_Conversion (Target : Iir; Conv : Iir);
-- This flag is set when the formal is associated in whole (ie, not
-- individually).
-- Field: Flag1
function Get_Whole_Association_Flag (Target : Iir) return Boolean;
procedure Set_Whole_Association_Flag (Target : Iir; Flag : Boolean);
-- This flag is set when the formal signal can be the actual signal. In
-- this case, the formal signal is not created, and the actual is shared.
-- This is the signal collapsing optimisation.
-- Field: Flag2
function Get_Collapse_Signal_Flag (Target : Iir) return Boolean;
procedure Set_Collapse_Signal_Flag (Target : Iir; Flag : Boolean);
-- Set when the node was artificially created, eg by canon.
-- Currently used only by association_element_open.
-- Field: Flag3
function Get_Artificial_Flag (Target : Iir) return Boolean;
procedure Set_Artificial_Flag (Target : Iir; Flag : Boolean);
-- This flag is set for a very short time during the check that no in
-- port is unconnected.
-- Field: Flag7
function Get_Open_Flag (Target : Iir) return Boolean;
procedure Set_Open_Flag (Target : Iir; Flag : Boolean);
-- This flag is set by trans_analyze if there is a projected waveform
-- assignment in the process.
-- Field: Flag5
function Get_After_Drivers_Flag (Target : Iir) return Boolean;
procedure Set_After_Drivers_Flag (Target : Iir; Flag : Boolean);
-- Field: Field1
function Get_We_Value (We : Iir_Waveform_Element) return Iir;
procedure Set_We_Value (We : Iir_Waveform_Element; An_Iir : Iir);
-- Field: Field3
function Get_Time (We : Iir_Waveform_Element) return Iir;
procedure Set_Time (We : Iir_Waveform_Element; An_Iir : Iir);
-- Node associated with a choice.
-- Field: Field3
function Get_Associated_Expr (Target : Iir) return Iir;
procedure Set_Associated_Expr (Target : Iir; Associated : Iir);
-- Node associated with a choice.
-- Field: Field3
function Get_Associated_Block (Target : Iir) return Iir;
procedure Set_Associated_Block (Target : Iir; Associated : Iir);
-- Chain associated with a choice.
-- Field: Field4 Chain
function Get_Associated_Chain (Target : Iir) return Iir;
procedure Set_Associated_Chain (Target : Iir; Associated : Iir);
-- Field: Field5
function Get_Choice_Name (Choice : Iir) return Iir;
procedure Set_Choice_Name (Choice : Iir; Name : Iir);
-- Field: Field5
function Get_Choice_Expression (Choice : Iir) return Iir;
procedure Set_Choice_Expression (Choice : Iir; Name : Iir);
-- Field: Field5
function Get_Choice_Range (Choice : Iir) return Iir;
procedure Set_Choice_Range (Choice : Iir; Name : Iir);
-- Set when a choice belongs to the same alternative as the previous one.
-- Field: Flag1
function Get_Same_Alternative_Flag (Target : Iir) return Boolean;
procedure Set_Same_Alternative_Flag (Target : Iir; Val : Boolean);
-- Field: Field3
function Get_Architecture (Target : Iir_Entity_Aspect_Entity) return Iir;
procedure Set_Architecture (Target : Iir_Entity_Aspect_Entity; Arch : Iir);
-- Field: Field5
function Get_Block_Specification (Target : Iir) return Iir;
procedure Set_Block_Specification (Target : Iir; Block : Iir);
-- Return the link of the previous block_configuration of a
-- block_configuration.
-- This single linked list is used to list all the block_configuration that
-- configuration the same block (which can only be an iterative generate
-- statement).
-- All elements of this list must belong to the same block configuration.
-- The order is not important.
-- Field: Field4 Ref
function Get_Prev_Block_Configuration (Target : Iir) return Iir;
procedure Set_Prev_Block_Configuration (Target : Iir; Block : Iir);
-- Field: Field3 Chain
function Get_Configuration_Item_Chain (Target : Iir) return Iir;
procedure Set_Configuration_Item_Chain (Target : Iir; Chain : Iir);
-- Chain of attribute values for declared items.
-- To be used with Get/Set_Value_Chain.
-- There is no order, therefore, a new attribute value may be always
-- prepended.
-- Field: Field4 Ref
function Get_Attribute_Value_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Value_Chain (Target : Iir; Chain : Iir);
-- Next attribute value in the attribute specification chain (of attribute
-- value).
-- FIXME: should be a Chain.
-- Field: Field2
function Get_Spec_Chain (Target : Iir) return Iir;
procedure Set_Spec_Chain (Target : Iir; Chain : Iir);
-- Next attribute value in the attribute specification chain (of attribute
-- value).
-- Field: Field0 Ref
function Get_Value_Chain (Target : Iir) return Iir;
procedure Set_Value_Chain (Target : Iir; Chain : Iir);
-- Chain of attribute values for attribute specification.
-- To be used with Get/Set_Spec_Chain.
-- Field: Field4
function Get_Attribute_Value_Spec_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Value_Spec_Chain (Target : Iir; Chain : Iir);
-- The entity name for an architecture or a configuration.
-- Field: Field2
function Get_Entity_Name (Arch : Iir) return Iir;
procedure Set_Entity_Name (Arch : Iir; Entity : Iir);
-- The package declaration corresponding to the body.
-- Field: Field5 Ref
function Get_Package (Package_Body : Iir) return Iir;
procedure Set_Package (Package_Body : Iir; Decl : Iir);
-- The package body corresponding to the package declaration.
-- Field: Field5 Forward_Ref
function Get_Package_Body (Pkg : Iir) return Iir;
procedure Set_Package_Body (Pkg : Iir; Decl : Iir);
-- Field: Flag1
function Get_Need_Body (Decl : Iir_Package_Declaration) return Boolean;
procedure Set_Need_Body (Decl : Iir_Package_Declaration; Flag : Boolean);
-- Field: Flag2
function Get_Macro_Expanded_Flag (Decl : Iir) return Boolean;
procedure Set_Macro_Expanded_Flag (Decl : Iir; Flag : Boolean);
-- Field: Flag3
function Get_Need_Instance_Bodies (Decl : Iir) return Boolean;
procedure Set_Need_Instance_Bodies (Decl : Iir; Flag : Boolean);
-- Field: Field5
function Get_Block_Configuration (Target : Iir) return Iir;
procedure Set_Block_Configuration (Target : Iir; Block : Iir);
-- Field: Field5 Chain
function Get_Concurrent_Statement_Chain (Target : Iir) return Iir;
procedure Set_Concurrent_Statement_Chain (Target : Iir; First : Iir);
-- Field: Field2 Chain_Next
function Get_Chain (Target : Iir) return Iir;
procedure Set_Chain (Target : Iir; Chain : Iir);
pragma Inline (Get_Chain);
-- Field: Field7 Chain
function Get_Port_Chain (Target : Iir) return Iir;
procedure Set_Port_Chain (Target : Iir; Chain : Iir);
-- Field: Field6 Chain
function Get_Generic_Chain (Target : Iir) return Iir;
procedure Set_Generic_Chain (Target : Iir; Generics : Iir);
-- Field: Field1 Ref
function Get_Type (Target : Iir) return Iir;
procedure Set_Type (Target : Iir; Atype : Iir);
pragma Inline (Get_Type);
-- The subtype indication of a declaration. If several declarations share
-- the same subtype_indication like in:
-- variable a, b : integer := 5;
-- then only the first declaration has a subtype_indication.
-- Field: Field5
function Get_Subtype_Indication (Target : Iir) return Iir;
procedure Set_Subtype_Indication (Target : Iir; Atype : Iir);
-- Discrete range of an iterator. During analysis, a subtype indiciation
-- is created from this range.
-- Field: Field6
function Get_Discrete_Range (Target : Iir) return Iir;
procedure Set_Discrete_Range (Target : Iir; Rng : Iir);
-- Field: Field1
function Get_Type_Definition (Decl : Iir) return Iir;
procedure Set_Type_Definition (Decl : Iir; Atype : Iir);
-- The subtype definition associated with the type declaration (if any).
-- Field: Field4 Forward_Ref
function Get_Subtype_Definition (Target : Iir) return Iir;
procedure Set_Subtype_Definition (Target : Iir; Def : Iir);
-- Set if the type declaration completes an incomplete type declaration
-- Field: Field5 Ref
function Get_Incomplete_Type_Declaration (N : Iir) return Iir;
procedure Set_Incomplete_Type_Declaration (N : Iir; Decl : Iir);
-- Implicit operations of an interface type declaration.
-- Field: Field4 Chain
function Get_Interface_Type_Subprograms (Target : Iir) return Iir;
procedure Set_Interface_Type_Subprograms (Target : Iir; Subprg : Iir);
-- Field: Field1
function Get_Nature (Target : Iir) return Iir;
procedure Set_Nature (Target : Iir; Nature : Iir);
-- Mode of interfaces or file (v87).
-- Field: Flag13,Flag14,Flag15 (grp)
function Get_Mode (Target : Iir) return Iir_Mode;
procedure Set_Mode (Target : Iir; Mode : Iir_Mode);
-- True if the signal is guarded (has a signal kind).
-- Field: Flag8
function Get_Guarded_Signal_Flag (Target : Iir) return Boolean;
procedure Set_Guarded_Signal_Flag (Target : Iir; Guarded : Boolean);
-- Field: Flag9 (uc)
function Get_Signal_Kind (Target : Iir) return Iir_Signal_Kind;
procedure Set_Signal_Kind (Target : Iir; Signal_Kind : Iir_Signal_Kind);
-- The base name of a name is the node at the origin of the name.
-- The base name is a declaration (signal, object, constant or interface),
-- a selected_by_all name, an implicit_dereference name.
-- Field: Field5 Ref
function Get_Base_Name (Target : Iir) return Iir;
procedure Set_Base_Name (Target : Iir; Name : Iir);
pragma Inline (Get_Base_Name);
-- Field: Field5 Chain
function Get_Interface_Declaration_Chain (Target : Iir) return Iir;
procedure Set_Interface_Declaration_Chain (Target : Iir; Chain : Iir);
pragma Inline (Get_Interface_Declaration_Chain);
-- Field: Field6 Ref
function Get_Subprogram_Specification (Target : Iir) return Iir;
procedure Set_Subprogram_Specification (Target : Iir; Spec : Iir);
-- Field: Field5 Chain
function Get_Sequential_Statement_Chain (Target : Iir) return Iir;
procedure Set_Sequential_Statement_Chain (Target : Iir; Chain : Iir);
-- Field: Field9 Forward_Ref
function Get_Subprogram_Body (Target : Iir) return Iir;
procedure Set_Subprogram_Body (Target : Iir; A_Body : Iir);
-- Several subprograms in a declarative region may have the same
-- identifier. If the overload number is not 0, it is the rank of the
-- subprogram. If the overload number is 0, then the identifier is not
-- overloaded in the declarative region.
-- Field: Field12 (pos)
function Get_Overload_Number (Target : Iir) return Iir_Int32;
procedure Set_Overload_Number (Target : Iir; Val : Iir_Int32);
-- Depth of a subprogram.
-- For a subprogram declared immediatly within an entity, architecture,
-- package, process, block, generate, the depth is 0.
-- For a subprogram declared immediatly within a subprogram of level N,
-- the depth is N + 1.
-- Depth is used with depth of impure objects to check purity rules.
-- Field: Field10 (pos)
function Get_Subprogram_Depth (Target : Iir) return Iir_Int32;
procedure Set_Subprogram_Depth (Target : Iir; Depth : Iir_Int32);
-- Hash of a subprogram profile.
-- This is used to speed up subprogram profile comparaison, which is very
-- often used by overload.
-- Field: Field4 (pos)
function Get_Subprogram_Hash (Target : Iir) return Iir_Int32;
procedure Set_Subprogram_Hash (Target : Iir; Val : Iir_Int32);
pragma Inline (Get_Subprogram_Hash);
-- Depth of the deepest impure object.
-- Field: Field3 (uc)
function Get_Impure_Depth (Target : Iir) return Iir_Int32;
procedure Set_Impure_Depth (Target : Iir; Depth : Iir_Int32);
-- Field: Field1 Ref
function Get_Return_Type (Target : Iir) return Iir;
procedure Set_Return_Type (Target : Iir; Decl : Iir);
pragma Inline (Get_Return_Type);
-- Code of an implicit subprogram definition.
-- Field: Field7 (pos)
function Get_Implicit_Definition (D : Iir) return Iir_Predefined_Functions;
procedure Set_Implicit_Definition (D : Iir; Def : Iir_Predefined_Functions);
-- Get the default value of an object declaration.
-- Null_iir if no default value.
-- Note that this node can be shared between declarations if they are
-- separated by comma, such as in:
-- variable a, b : integer := 5;
-- procedure p (a, b : natural := 7);
-- Field: Field4 Maybe_Ref
function Get_Default_Value (Target : Iir) return Iir;
procedure Set_Default_Value (Target : Iir; Value : Iir);
-- The deferred_declaration field points to the deferred constant
-- declaration for a full constant declaration, or is null_iir for a
-- usual or deferred constant declaration.
-- Set only during sem.
-- Field: Field6 Forward_Ref
function Get_Deferred_Declaration (Target : Iir) return Iir;
procedure Set_Deferred_Declaration (Target : Iir; Decl : Iir);
-- The deferred_declaration_flag must be set if the constant declaration is
-- a deferred_constant declaration.
-- Set only during sem.
-- Field: Flag1
function Get_Deferred_Declaration_Flag (Target : Iir) return Boolean;
procedure Set_Deferred_Declaration_Flag (Target : Iir; Flag : Boolean);
-- If true, the variable is declared shared.
-- Field: Flag2
function Get_Shared_Flag (Target : Iir) return Boolean;
procedure Set_Shared_Flag (Target : Iir; Shared : Boolean);
-- Get the design unit in which the target is declared.
-- For a library unit, this is to get the design unit node.
-- Field: Field0
function Get_Design_Unit (Target : Iir) return Iir;
procedure Set_Design_Unit (Target : Iir; Unit : Iir);
-- Corresponding block statement for an implicit guard signal.
-- Field: Field5 Ref
function Get_Block_Statement (Target : Iir) return Iir;
procedure Set_Block_Statement (Target : Iir; Block : Iir);
-- For a non-resolved signal: null_iir if the signal has no driver, or
-- a process/concurrent_statement for which the signal should have a
-- driver. This is used to catch at analyse time unresolved signals with
-- several drivers.
-- Field: Field7
function Get_Signal_Driver (Target : Iir_Signal_Declaration) return Iir;
procedure Set_Signal_Driver (Target : Iir_Signal_Declaration; Driver : Iir);
-- Field: Field1 Chain
function Get_Declaration_Chain (Target : Iir) return Iir;
procedure Set_Declaration_Chain (Target : Iir; Decls : Iir);
-- Field: Field6
function Get_File_Logical_Name (Target : Iir_File_Declaration) return Iir;
procedure Set_File_Logical_Name (Target : Iir_File_Declaration; Name : Iir);
-- Field: Field7
function Get_File_Open_Kind (Target : Iir_File_Declaration) return Iir;
procedure Set_File_Open_Kind (Target : Iir_File_Declaration; Kind : Iir);
-- Field: Field4 (pos)
function Get_Element_Position (Target : Iir) return Iir_Index32;
procedure Set_Element_Position (Target : Iir; Pos : Iir_Index32);
-- Field: Field2 Ref
function Get_Base_Element_Declaration (Target : Iir) return Iir;
procedure Set_Base_Element_Declaration (Target : Iir; El : Iir);
-- Field: Field5
function Get_Element_Declaration (Target : Iir) return Iir;
procedure Set_Element_Declaration (Target : Iir; El : Iir);
-- Field: Field2 Ref
function Get_Selected_Element (Target : Iir) return Iir;
procedure Set_Selected_Element (Target : Iir; El : Iir);
-- Selected names of an use_clause are chained.
-- Field: Field3
function Get_Use_Clause_Chain (Target : Iir) return Iir;
procedure Set_Use_Clause_Chain (Target : Iir; Chain : Iir);
-- Selected names of a context_reference are chained.
-- Field: Field3
function Get_Context_Reference_Chain (Target : Iir) return Iir;
procedure Set_Context_Reference_Chain (Target : Iir; Chain : Iir);
-- Selected name of an use_clause or context_reference
-- Field: Field1
function Get_Selected_Name (Target : Iir) return Iir;
procedure Set_Selected_Name (Target : Iir; Name : Iir);
-- The type declarator which declares the type definition DEF.
-- Field: Field3 Ref
function Get_Type_Declarator (Def : Iir) return Iir;
procedure Set_Type_Declarator (Def : Iir; Decl : Iir);
-- Field: Field5 Forward_Ref
function Get_Complete_Type_Definition (N : Iir) return Iir;
procedure Set_Complete_Type_Definition (N : Iir; Def : Iir);
-- Field: Field0 Forward_Ref
function Get_Incomplete_Type_Ref_Chain (N : Iir) return Iir;
procedure Set_Incomplete_Type_Ref_Chain (N : Iir; Def : Iir);
-- Field: Field5 Ref
function Get_Associated_Type (Def : Iir) return Iir;
procedure Set_Associated_Type (Def : Iir; Atype : Iir);
-- Field: Field2 (uc)
function Get_Enumeration_Literal_List (Target : Iir) return Iir_Flist;
procedure Set_Enumeration_Literal_List (Target : Iir; List : Iir_Flist);
-- Field: Field1 Chain
function Get_Entity_Class_Entry_Chain (Target : Iir) return Iir;
procedure Set_Entity_Class_Entry_Chain (Target : Iir; Chain : Iir);
-- Field: Field1 (uc)
function Get_Group_Constituent_List (Group : Iir) return Iir_Flist;
procedure Set_Group_Constituent_List (Group : Iir; List : Iir_Flist);
-- Chain of physical type units.
-- The first unit is the primary unit. If you really need the primary
-- unit (and not the chain), you'd better to use Get_Primary_Unit.
-- Field: Field2 Chain
function Get_Unit_Chain (Target : Iir) return Iir;
procedure Set_Unit_Chain (Target : Iir; Chain : Iir);
-- Alias of Get_Unit_Chain.
-- Return the primary unit of a physical type.
-- Field: Field2 Ref
function Get_Primary_Unit (Target : Iir) return Iir;
procedure Set_Primary_Unit (Target : Iir; Unit : Iir);
-- Get/Set the identifier of a declaration.
-- Can also be used instead of get/set_label.
-- Field: Field3 (uc)
function Get_Identifier (Target : Iir) return Name_Id;
procedure Set_Identifier (Target : Iir; Identifier : Name_Id);
pragma Inline (Get_Identifier);
-- Field: Field3 (uc)
function Get_Label (Target : Iir) return Name_Id;
procedure Set_Label (Target : Iir; Label : Name_Id);
-- Get/Set the visible flag of a declaration.
-- The visible flag is true to make invalid the use of the identifier
-- during its declaration. It is set to false when the identifier is added
-- to the name table, and set to true when the declaration is finished.
-- Field: Flag4
function Get_Visible_Flag (Target : Iir) return Boolean;
procedure Set_Visible_Flag (Target : Iir; Flag : Boolean);
-- Field: Field1 Maybe_Ref
function Get_Range_Constraint (Target : Iir) return Iir;
procedure Set_Range_Constraint (Target : Iir; Constraint : Iir);
-- Field: State2 (pos)
function Get_Direction (Decl : Iir) return Iir_Direction;
procedure Set_Direction (Decl : Iir; Dir : Iir_Direction);
-- Field: Field4 Ref
function Get_Left_Limit (Decl : Iir_Range_Expression) return Iir;
procedure Set_Left_Limit (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field5 Ref
function Get_Right_Limit (Decl : Iir_Range_Expression) return Iir;
procedure Set_Right_Limit (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field2
function Get_Left_Limit_Expr (Decl : Iir_Range_Expression) return Iir;
procedure Set_Left_Limit_Expr (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field3
function Get_Right_Limit_Expr (Decl : Iir_Range_Expression) return Iir;
procedure Set_Right_Limit_Expr (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field4 Ref
function Get_Base_Type (Decl : Iir) return Iir;
procedure Set_Base_Type (Decl : Iir; Base_Type : Iir);
pragma Inline (Get_Base_Type);
-- Either a resolution function name, an array_element_resolution or a
-- record_resolution
-- Field: Field5
function Get_Resolution_Indication (Decl : Iir) return Iir;
procedure Set_Resolution_Indication (Decl : Iir; Ind : Iir);
-- Field: Field1 Chain
function Get_Record_Element_Resolution_Chain (Res : Iir) return Iir;
procedure Set_Record_Element_Resolution_Chain (Res : Iir; Chain : Iir);
-- Field: Field7
function Get_Tolerance (Def : Iir) return Iir;
procedure Set_Tolerance (Def : Iir; Tol : Iir);
-- Field: Field8
function Get_Plus_Terminal (Def : Iir) return Iir;
procedure Set_Plus_Terminal (Def : Iir; Terminal : Iir);
-- Field: Field9
function Get_Minus_Terminal (Def : Iir) return Iir;
procedure Set_Minus_Terminal (Def : Iir; Terminal : Iir);
-- Field: Field5
function Get_Simultaneous_Left (Def : Iir) return Iir;
procedure Set_Simultaneous_Left (Def : Iir; Expr : Iir);
-- Field: Field6
function Get_Simultaneous_Right (Def : Iir) return Iir;
procedure Set_Simultaneous_Right (Def : Iir; Expr : Iir);
-- True if ATYPE defines std.textio.text file type.
-- Field: Flag4
function Get_Text_File_Flag (Atype : Iir) return Boolean;
procedure Set_Text_File_Flag (Atype : Iir; Flag : Boolean);
-- True if enumeration type ATYPE has only character literals.
-- Field: Flag4
function Get_Only_Characters_Flag (Atype : Iir) return Boolean;
procedure Set_Only_Characters_Flag (Atype : Iir; Flag : Boolean);
-- True if enumeration type ATYPE is a character type.
-- Field: Flag5
function Get_Is_Character_Type (Atype : Iir) return Boolean;
procedure Set_Is_Character_Type (Atype : Iir; Flag : Boolean);
-- Field: State1 (pos)
function Get_Type_Staticness (Atype : Iir) return Iir_Staticness;
procedure Set_Type_Staticness (Atype : Iir; Static : Iir_Staticness);
-- Field: State2 (pos)
function Get_Constraint_State (Atype : Iir) return Iir_Constraint;
procedure Set_Constraint_State (Atype : Iir; State : Iir_Constraint);
-- Reference either index_subtype_definition_list of array_type_definition
-- or index_constraint_list of array_subtype_definition. Set only when
-- the index_sutype is constrained (to differentiate with unconstrained
-- index type).
-- Field: Field9 Ref (uc)
function Get_Index_Subtype_List (Decl : Iir) return Iir_Flist;
procedure Set_Index_Subtype_List (Decl : Iir; List : Iir_Flist);
-- List of type marks for indexes type of array types.
-- Field: Field6 (uc)
function Get_Index_Subtype_Definition_List (Def : Iir) return Iir_Flist;
procedure Set_Index_Subtype_Definition_List (Def : Iir; Idx : Iir_Flist);
-- The subtype_indication as it appears in a array type declaration.
-- Field: Field2
function Get_Element_Subtype_Indication (Decl : Iir) return Iir;
procedure Set_Element_Subtype_Indication (Decl : Iir; Sub_Type : Iir);
-- Field: Field1 Ref
function Get_Element_Subtype (Decl : Iir) return Iir;
procedure Set_Element_Subtype (Decl : Iir; Sub_Type : Iir);
-- Field: Field6 (uc)
function Get_Index_Constraint_List (Def : Iir) return Iir_Flist;
procedure Set_Index_Constraint_List (Def : Iir; List : Iir_Flist);
-- Field: Field8
function Get_Array_Element_Constraint (Def : Iir) return Iir;
procedure Set_Array_Element_Constraint (Def : Iir; El : Iir);
-- Chains of elements of a record.
-- Field: Field1 (uc)
function Get_Elements_Declaration_List (Decl : Iir) return Iir_Flist;
procedure Set_Elements_Declaration_List (Decl : Iir; List : Iir_Flist);
-- Field: Field1 Forward_Ref
function Get_Designated_Type (Target : Iir) return Iir;
procedure Set_Designated_Type (Target : Iir; Dtype : Iir);
-- Field: Field5
function Get_Designated_Subtype_Indication (Target : Iir) return Iir;
procedure Set_Designated_Subtype_Indication (Target : Iir; Dtype : Iir);
-- List of indexes for indexed name.
-- Field: Field2 (uc)
function Get_Index_List (Decl : Iir) return Iir_Flist;
procedure Set_Index_List (Decl : Iir; List : Iir_Flist);
-- The terminal declaration for the reference (ground) of a nature
-- Field: Field2
function Get_Reference (Def : Iir) return Iir;
procedure Set_Reference (Def : Iir; Ref : Iir);
-- Field: Field3
function Get_Nature_Declarator (Def : Iir) return Iir;
procedure Set_Nature_Declarator (Def : Iir; Decl : Iir);
-- Field: Field7
function Get_Across_Type (Def : Iir) return Iir;
procedure Set_Across_Type (Def : Iir; Atype : Iir);
-- Field: Field8
function Get_Through_Type (Def : Iir) return Iir;
procedure Set_Through_Type (Def : Iir; Atype : Iir);
-- Field: Field1 Maybe_Ref
function Get_Target (Target : Iir) return Iir;
procedure Set_Target (Target : Iir; Atarget : Iir);
-- Field: Field5 Chain
function Get_Waveform_Chain (Target : Iir) return Iir;
procedure Set_Waveform_Chain (Target : Iir; Chain : Iir);
-- Field: Field8 Ref
function Get_Guard (Target : Iir) return Iir;
procedure Set_Guard (Target : Iir; Guard : Iir);
-- Field: Flag1 (uc)
function Get_Delay_Mechanism (Target : Iir) return Iir_Delay_Mechanism;
procedure Set_Delay_Mechanism (Target : Iir; Kind : Iir_Delay_Mechanism);
-- Field: Field4
function Get_Reject_Time_Expression (Target : Iir) return Iir;
procedure Set_Reject_Time_Expression (Target : Iir; Expr : Iir);
-- The Is_Ref flag is set for extracted sensitivity lists.
-- Field: Field6 Of_Maybe_Ref (uc)
function Get_Sensitivity_List (Wait : Iir) return Iir_List;
procedure Set_Sensitivity_List (Wait : Iir; List : Iir_List);
-- Field: Field8
function Get_Process_Origin (Proc : Iir) return Iir;
procedure Set_Process_Origin (Proc : Iir; Orig : Iir);
-- Field: Field7
function Get_Package_Origin (Pkg : Iir) return Iir;
procedure Set_Package_Origin (Pkg : Iir; Orig : Iir);
-- Field: Field5
function Get_Condition_Clause (Wait : Iir_Wait_Statement) return Iir;
procedure Set_Condition_Clause (Wait : Iir_Wait_Statement; Cond : Iir);
-- Field: Field1
function Get_Timeout_Clause (Wait : Iir_Wait_Statement) return Iir;
procedure Set_Timeout_Clause (Wait : Iir_Wait_Statement; Timeout : Iir);
-- If set, the concurrent statement is postponed.
-- Field: Flag3
function Get_Postponed_Flag (Target : Iir) return Boolean;
procedure Set_Postponed_Flag (Target : Iir; Value : Boolean);
-- Returns the list of subprogram called in this subprogram or process.
-- Note: implicit function (such as implicit operators) are omitted
-- from this list, since the purpose of this list is to correctly set
-- flags for side effects (purity_state, wait_state).
-- Can return null_iir if there is no subprogram called.
-- Field: Field7 Of_Ref (uc)
function Get_Callees_List (Proc : Iir) return Iir_List;
procedure Set_Callees_List (Proc : Iir; List : Iir_List);
-- Get/Set the passive flag of a process.
-- TRUE if the process must be passive.
-- FALSE if the process may be not passive.
-- For a procedure declaration, set if it is passive.
-- Field: Flag2
function Get_Passive_Flag (Proc : Iir) return Boolean;
procedure Set_Passive_Flag (Proc : Iir; Flag : Boolean);
-- True if the function is used as a resolution function.
-- Field: Flag7
function Get_Resolution_Function_Flag (Func : Iir) return Boolean;
procedure Set_Resolution_Function_Flag (Func : Iir; Flag : Boolean);
-- Get/Set the wait state of the current subprogram or process.
-- TRUE if it contains a wait statement, either directly or
-- indirectly.
-- FALSE if it doesn't contain a wait statement.
-- UNKNOWN if the wait status is not yet known.
-- Field: State1 (pos)
function Get_Wait_State (Proc : Iir) return Tri_State_Type;
procedure Set_Wait_State (Proc : Iir; State : Tri_State_Type);
-- Get/Set wether the subprogram may be called by a sensitized process
-- whose sensitivity list is ALL.
-- FALSE if declared in a package unit and reads a signal that is not
-- one of its interface, or if it calls such a subprogram.
-- TRUE if it doesn't call a subprogram whose state is False and
-- either doesn't read a signal or declared within an entity or
-- architecture.
-- UNKNOWN if the status is not yet known.
-- Field: State3 (pos)
function Get_All_Sensitized_State (Proc : Iir) return Iir_All_Sensitized;
procedure Set_All_Sensitized_State (Proc : Iir; State : Iir_All_Sensitized);
-- Get/Set the seen flag.
-- Used when the graph of callees is walked, to avoid infinite loops, since
-- the graph is not a DAG (there may be cycles).
-- Field: Flag1
function Get_Seen_Flag (Proc : Iir) return Boolean;
procedure Set_Seen_Flag (Proc : Iir; Flag : Boolean);
-- Get/Set the pure flag of a function.
-- TRUE if the function is declared pure.
-- FALSE if the function is declared impure.
-- Field: Flag2
function Get_Pure_Flag (Func : Iir) return Boolean;
procedure Set_Pure_Flag (Func : Iir; Flag : Boolean);
-- Get/Set the foreign flag of a declaration.
-- TRUE if the declaration was decored with the std.foreign attribute.
-- Field: Flag3
function Get_Foreign_Flag (Decl : Iir) return Boolean;
procedure Set_Foreign_Flag (Decl : Iir; Flag : Boolean);
-- Get/Set the resolved flag of a subtype definition.
-- A subtype definition may be resolved either because a
-- resolution_indication is present in the subtype_indication, or
-- because all elements type are resolved.
-- Field: Flag1
function Get_Resolved_Flag (Atype : Iir) return Boolean;
procedure Set_Resolved_Flag (Atype : Iir; Flag : Boolean);
-- Get/Set the signal_type flag of a type/subtype definition.
-- This flags indicates whether the type can be used as a signal type.
-- Access types, file types and composite types whose a sub-element is
-- an access type cannot be used as a signal type.
-- Field: Flag2
function Get_Signal_Type_Flag (Atype : Iir) return Boolean;
procedure Set_Signal_Type_Flag (Atype : Iir; Flag : Boolean);
-- True if ATYPE is used to declare a signal or to handle a signal
-- (such as slice or aliases).
-- Field: Flag3
function Get_Has_Signal_Flag (Atype : Iir) return Boolean;
procedure Set_Has_Signal_Flag (Atype : Iir; Flag : Boolean);
-- Get/Set the purity status of a subprogram.
-- Field: State2 (pos)
function Get_Purity_State (Proc : Iir) return Iir_Pure_State;
procedure Set_Purity_State (Proc : Iir; State : Iir_Pure_State);
-- Set during binding when DESIGN is added in a list of file to bind.
-- Field: Flag3
function Get_Elab_Flag (Design : Iir) return Boolean;
procedure Set_Elab_Flag (Design : Iir; Flag : Boolean);
-- Used only by configuration to mark a design unit as already inserted in
-- the list of units. Used to avoid double insertion.
-- Field: Flag4
function Get_Configuration_Mark_Flag (Design : Iir) return Boolean;
procedure Set_Configuration_Mark_Flag (Design : Iir; Flag : Boolean);
-- Used only by configuration to flag units completely handled. Used to
-- detect recursion.
-- Field: Flag5
function Get_Configuration_Done_Flag (Design : Iir) return Boolean;
procedure Set_Configuration_Done_Flag (Design : Iir; Flag : Boolean);
-- Set on an array_subtype if there is an index constraint.
-- If not set, the subtype is unconstrained.
-- Field: Flag4
function Get_Index_Constraint_Flag (Atype : Iir) return Boolean;
procedure Set_Index_Constraint_Flag (Atype : Iir; Flag : Boolean);
-- Field: Flag12
function Get_Hide_Implicit_Flag (Subprg : Iir) return Boolean;
procedure Set_Hide_Implicit_Flag (Subprg : Iir; Flag : Boolean);
-- Condition of an assertion.
-- Field: Field1
function Get_Assertion_Condition (Target : Iir) return Iir;
procedure Set_Assertion_Condition (Target : Iir; Cond : Iir);
-- Report expression of an assertion or report statement.
-- Field: Field5
function Get_Report_Expression (Target : Iir) return Iir;
procedure Set_Report_Expression (Target : Iir; Expr : Iir);
-- Severity expression of an assertion or report statement.
-- Field: Field4
function Get_Severity_Expression (Target : Iir) return Iir;
procedure Set_Severity_Expression (Target : Iir; Expr : Iir);
-- Instantiated unit of a component instantiation statement.
-- Field: Field1
function Get_Instantiated_Unit (Target : Iir) return Iir;
procedure Set_Instantiated_Unit (Target : Iir; Unit : Iir);
-- Generic map aspect list.
-- Field: Field8 Chain
function Get_Generic_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Generic_Map_Aspect_Chain (Target : Iir; Generics : Iir);
-- Port map aspect list.
-- Field: Field9 Chain
function Get_Port_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Port_Map_Aspect_Chain (Target : Iir; Port : Iir);
-- Configuration of an entity_aspect_configuration.
-- Field: Field1
function Get_Configuration_Name (Target : Iir) return Iir;
procedure Set_Configuration_Name (Target : Iir; Conf : Iir);
-- Component configuration for a component_instantiation_statement.
-- Field: Field6 Forward_Ref
function Get_Component_Configuration (Target : Iir) return Iir;
procedure Set_Component_Configuration (Target : Iir; Conf : Iir);
-- Configuration specification for a component_instantiation_statement.
-- Field: Field7 Ref
function Get_Configuration_Specification (Target : Iir) return Iir;
procedure Set_Configuration_Specification (Target : Iir; Conf : Iir);
-- Set/Get the default binding indication of a configuration specification
-- or a component configuration.
-- Field: Field5
function Get_Default_Binding_Indication (Target : Iir) return Iir;
procedure Set_Default_Binding_Indication (Target : Iir; Conf : Iir);
-- Set/Get the default configuration of an architecture.
-- Field: Field6
function Get_Default_Configuration_Declaration (Target : Iir) return Iir;
procedure Set_Default_Configuration_Declaration (Target : Iir; Conf : Iir);
-- Expression for an various nodes.
-- Field: Field5
function Get_Expression (Target : Iir) return Iir;
procedure Set_Expression (Target : Iir; Expr : Iir);
-- A conditional expression.
-- Node kind is a Iir_Kind_Conditional_Expression.
-- Field: Field5 Chain
function Get_Conditional_Expression (Target : Iir) return Iir;
procedure Set_Conditional_Expression (Target : Iir; Expr : Iir);
-- Set to the designated type (either the type of the expression or the
-- subtype) when the expression is analyzed.
-- Field: Field2 Ref
function Get_Allocator_Designated_Type (Target : Iir) return Iir;
procedure Set_Allocator_Designated_Type (Target : Iir; A_Type : Iir);
-- Field: Field7 Chain
function Get_Selected_Waveform_Chain (Target : Iir) return Iir;
procedure Set_Selected_Waveform_Chain (Target : Iir; Chain : Iir);
-- Field: Field5 Chain
function Get_Conditional_Waveform_Chain (Target : Iir) return Iir;
procedure Set_Conditional_Waveform_Chain (Target : Iir; Chain : Iir);
-- Expression defining the value of the implicit guard signal.
-- Field: Field2
function Get_Guard_Expression (Target : Iir) return Iir;
procedure Set_Guard_Expression (Target : Iir; Expr : Iir);
-- The declaration (if any) of the implicit guard signal of a block
-- statement.
-- Field: Field8
function Get_Guard_Decl (Target : Iir_Block_Statement) return Iir;
procedure Set_Guard_Decl (Target : Iir_Block_Statement; Decl : Iir);
-- Sensitivity list for the implicit guard signal.
-- Field: Field4 Of_Ref (uc)
function Get_Guard_Sensitivity_List (Guard : Iir) return Iir_List;
procedure Set_Guard_Sensitivity_List (Guard : Iir; List : Iir_List);
-- Field: Field3 Forward_Ref
function Get_Signal_Attribute_Chain (Decl : Iir) return Iir;
procedure Set_Signal_Attribute_Chain (Decl : Iir; Chain : Iir);
-- Block_Configuration that applies to this block statement.
-- Field: Field6 Forward_Ref
function Get_Block_Block_Configuration (Block : Iir) return Iir;
procedure Set_Block_Block_Configuration (Block : Iir; Conf : Iir);
-- Field: Field6
function Get_Package_Header (Pkg : Iir) return Iir;
procedure Set_Package_Header (Pkg : Iir; Header : Iir);
-- Field: Field7
function Get_Block_Header (Target : Iir) return Iir;
procedure Set_Block_Header (Target : Iir; Header : Iir);
-- Field: Field7
function Get_Uninstantiated_Package_Name (Inst : Iir) return Iir;
procedure Set_Uninstantiated_Package_Name (Inst : Iir; Name : Iir);
-- Field: Field9 Ref
function Get_Uninstantiated_Package_Decl (Inst : Iir) return Iir;
procedure Set_Uninstantiated_Package_Decl (Inst : Iir; Pkg : Iir);
-- Get/Set the block_configuration (there may be several
-- block_configuration through the use of prev_configuration singly linked
-- list) that apply to this generate statement.
-- Field: Field2 Forward_Ref
function Get_Generate_Block_Configuration (Target : Iir) return Iir;
procedure Set_Generate_Block_Configuration (Target : Iir; Conf : Iir);
-- Field: Field4
function Get_Generate_Statement_Body (Target : Iir) return Iir;
procedure Set_Generate_Statement_Body (Target : Iir; Bod : Iir);
-- Field: Field3 (uc)
function Get_Alternative_Label (Target : Iir) return Name_Id;
procedure Set_Alternative_Label (Target : Iir; Label : Name_Id);
-- Field: Field5
function Get_Generate_Else_Clause (Target : Iir) return Iir;
procedure Set_Generate_Else_Clause (Target : Iir; Clause : Iir);
-- Condition of a conditional_waveform, if_statement, elsif,
-- while_loop_statement, next_statement or exit_statement.
-- Field: Field1 Maybe_Ref
function Get_Condition (Target : Iir) return Iir;
procedure Set_Condition (Target : Iir; Condition : Iir);
-- Field: Field4
function Get_Else_Clause (Target : Iir) return Iir;
procedure Set_Else_Clause (Target : Iir; Clause : Iir);
-- Iterator of a for_loop_statement.
-- Field: Field1
function Get_Parameter_Specification (Target : Iir) return Iir;
procedure Set_Parameter_Specification (Target : Iir; Param : Iir);
-- Get/Set the statement in which TARGET appears. This is used to check
-- if next/exit is in a loop.
-- Field: Field0 Ref
function Get_Parent (Target : Iir) return Iir;
procedure Set_Parent (Target : Iir; Parent : Iir);
-- Loop label for an exit_statement or next_statement.
-- Field: Field5
function Get_Loop_Label (Target : Iir) return Iir;
procedure Set_Loop_Label (Target : Iir; Stmt : Iir);
-- Component name for a component_configuration or
-- a configuration_specification.
-- Field: Field4
function Get_Component_Name (Target : Iir) return Iir;
procedure Set_Component_Name (Target : Iir; Name : Iir);
-- Field: Field1 (uc)
function Get_Instantiation_List (Target : Iir) return Iir_Flist;
procedure Set_Instantiation_List (Target : Iir; List : Iir_Flist);
-- Field: Field3
function Get_Entity_Aspect (Target : Iir_Binding_Indication) return Iir;
procedure Set_Entity_Aspect (Target : Iir_Binding_Indication; Entity : Iir);
-- Field: Field1
function Get_Default_Entity_Aspect (Target : Iir) return Iir;
procedure Set_Default_Entity_Aspect (Target : Iir; Aspect : Iir);
-- Field: Field3 Maybe_Ref
function Get_Binding_Indication (Target : Iir) return Iir;
procedure Set_Binding_Indication (Target : Iir; Binding : Iir);
-- The named entity designated by a name.
-- Field: Field4 Maybe_Forward_Ref
function Get_Named_Entity (Name : Iir) return Iir;
procedure Set_Named_Entity (Name : Iir; Val : Iir);
-- If a name designate a non-object alias, the designated alias.
-- Named_Entity will designate the aliased entity.
-- Field: Field2 Ref
function Get_Alias_Declaration (Name : Iir) return Iir;
procedure Set_Alias_Declaration (Name : Iir; Val : Iir);
-- Field: Field2 Ref
function Get_Referenced_Name (N : Iir) return Iir;
procedure Set_Referenced_Name (N : Iir; Name : Iir);
-- Expression staticness, defined by rules of LRM 7.4
-- Field: State1 (pos)
function Get_Expr_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Expr_Staticness (Target : Iir; Static : Iir_Staticness);
-- Node which couldn't be correctly analyzed.
-- Field: Field2
function Get_Error_Origin (Target : Iir) return Iir;
procedure Set_Error_Origin (Target : Iir; Origin : Iir);
-- Operand of a monadic operator.
-- Field: Field2
function Get_Operand (Target : Iir) return Iir;
procedure Set_Operand (Target : Iir; An_Iir : Iir);
-- Left operand of a dyadic operator.
-- Field: Field2
function Get_Left (Target : Iir) return Iir;
procedure Set_Left (Target : Iir; An_Iir : Iir);
-- Right operand of a dyadic operator.
-- Field: Field4
function Get_Right (Target : Iir) return Iir;
procedure Set_Right (Target : Iir; An_Iir : Iir);
-- Field: Field3 Ref
function Get_Physical_Unit (Lit : Iir) return Iir;
procedure Set_Physical_Unit (Lit : Iir; Name : Iir);
-- Field: Field0
function Get_Unit_Name (Target : Iir) return Iir;
procedure Set_Unit_Name (Target : Iir; Name : Iir);
-- Field: Field4
function Get_Name (Target : Iir) return Iir;
procedure Set_Name (Target : Iir; Name : Iir);
-- Field: Field5
function Get_Group_Template_Name (Target : Iir) return Iir;
procedure Set_Group_Template_Name (Target : Iir; Name : Iir);
-- Staticness of a name, according to rules of LRM 6.1
-- Field: State2 (pos)
function Get_Name_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Name_Staticness (Target : Iir; Static : Iir_Staticness);
-- Prefix of a name.
-- Field: Field0
function Get_Prefix (Target : Iir) return Iir;
procedure Set_Prefix (Target : Iir; Prefix : Iir);
-- Prefix of a name signature
-- Field: Field1
function Get_Signature_Prefix (Sign : Iir) return Iir;
procedure Set_Signature_Prefix (Sign : Iir; Prefix : Iir);
-- External pathname for an external name.
-- Field: Field3
function Get_External_Pathname (Name : Iir) return Iir;
procedure Set_External_Pathname (Name : Iir; Path : Iir);
-- Field: Field2
function Get_Pathname_Suffix (Path : Iir) return Iir;
procedure Set_Pathname_Suffix (Path : Iir; Suffix : Iir);
-- Field: Field5
function Get_Pathname_Expression (Path : Iir) return Iir;
procedure Set_Pathname_Expression (Path : Iir; Expr : Iir);
-- True if the name appears in a formal_part. In that case, some
-- checks must be disabled (eg: the expression of a type conversion can
-- be a write-only interface).
-- Field: Flag4
function Get_In_Formal_Flag (Name : Iir) return Boolean;
procedure Set_In_Formal_Flag (Name : Iir; Flag : Boolean);
-- The subtype of a slice. Contrary to the Type field, this is not a
-- reference.
-- Field: Field3
function Get_Slice_Subtype (Slice : Iir) return Iir;
procedure Set_Slice_Subtype (Slice : Iir; Atype : Iir);
-- Suffix of a slice or attribute.
-- Field: Field2
function Get_Suffix (Target : Iir) return Iir;
procedure Set_Suffix (Target : Iir; Suffix : Iir);
-- Set the designated index subtype of an array attribute.
-- Field: Field2 Ref
function Get_Index_Subtype (Attr : Iir) return Iir;
procedure Set_Index_Subtype (Attr : Iir; St : Iir);
-- Parameter of an attribute.
-- Field: Field4
function Get_Parameter (Target : Iir) return Iir;
procedure Set_Parameter (Target : Iir; Param : Iir);
-- Field: Field2 Forward_Ref
function Get_Attr_Chain (Attr : Iir) return Iir;
procedure Set_Attr_Chain (Attr : Iir; Chain : Iir);
-- Field: Field3 Forward_Ref
function Get_Signal_Attribute_Declaration (Attr : Iir) return Iir;
procedure Set_Signal_Attribute_Declaration (Attr : Iir; Decl : Iir);
-- Type of the actual for an association by individual.
-- Unless the formal is an unconstrained array type, this is the same as
-- the formal type.
-- Subtype indiciation for a type association.
-- Field: Field5 Ref
function Get_Actual_Type (Target : Iir) return Iir;
procedure Set_Actual_Type (Target : Iir; Atype : Iir);
-- Field: Field3
function Get_Actual_Type_Definition (Target : Iir) return Iir;
procedure Set_Actual_Type_Definition (Target : Iir; Atype : Iir);
-- List of individual associations for association_element_by_individual.
-- Associations for parenthesis_name.
-- Field: Field2 Chain
function Get_Association_Chain (Target : Iir) return Iir;
procedure Set_Association_Chain (Target : Iir; Chain : Iir);
-- List of choices for association_element_by_individual.
-- Field: Field4 Chain
function Get_Individual_Association_Chain (Target : Iir) return Iir;
procedure Set_Individual_Association_Chain (Target : Iir; Chain : Iir);
-- Chain of implicit subprogram associations for a type association.
-- Field: Field4 Chain
function Get_Subprogram_Association_Chain (Target : Iir) return Iir;
procedure Set_Subprogram_Association_Chain (Target : Iir; Chain : Iir);
-- Get/Set info for the aggregate.
-- There is one aggregate_info for for each dimension.
-- Field: Field5
function Get_Aggregate_Info (Target : Iir) return Iir;
procedure Set_Aggregate_Info (Target : Iir; Info : Iir);
-- Get/Set the info node for the next dimension.
-- Field: Field1
function Get_Sub_Aggregate_Info (Target : Iir) return Iir;
procedure Set_Sub_Aggregate_Info (Target : Iir; Info : Iir);
-- TRUE when the length of the aggregate is not locally static.
-- Field: Flag3
function Get_Aggr_Dynamic_Flag (Target : Iir) return Boolean;
procedure Set_Aggr_Dynamic_Flag (Target : Iir; Val : Boolean);
-- Get/Set the minimum number of elements for the lowest dimension of
-- the aggregate or for the current dimension of a sub-aggregate.
-- The real number of elements may be greater than this number if there
-- is an 'other' choice.
-- Field: Field4 (uc)
function Get_Aggr_Min_Length (Info : Iir_Aggregate_Info) return Iir_Int32;
procedure Set_Aggr_Min_Length (Info : Iir_Aggregate_Info; Nbr : Iir_Int32);
-- Highest index choice, if any.
-- Field: Field2 Ref
function Get_Aggr_Low_Limit (Target : Iir_Aggregate_Info) return Iir;
procedure Set_Aggr_Low_Limit (Target : Iir_Aggregate_Info; Limit : Iir);
-- Highest index choice, if any.
-- Field: Field3 Ref
function Get_Aggr_High_Limit (Target : Iir_Aggregate_Info) return Iir;
procedure Set_Aggr_High_Limit (Target : Iir_Aggregate_Info; Limit : Iir);
-- True if the aggregate has an 'others' choice.
-- Field: Flag2
function Get_Aggr_Others_Flag (Target : Iir_Aggregate_Info) return Boolean;
procedure Set_Aggr_Others_Flag (Target : Iir_Aggregate_Info; Val : Boolean);
-- True if the aggregate have named associations.
-- Field: Flag4
function Get_Aggr_Named_Flag (Target : Iir_Aggregate_Info) return Boolean;
procedure Set_Aggr_Named_Flag (Target : Iir_Aggregate_Info; Val : Boolean);
-- True if the aggregate can be statically built.
-- Field: Flag1
function Get_Aggregate_Expand_Flag (Aggr : Iir) return Boolean;
procedure Set_Aggregate_Expand_Flag (Aggr : Iir; Flag : Boolean);
-- Chain of choices.
-- Field: Field4 Chain
function Get_Association_Choices_Chain (Target : Iir) return Iir;
procedure Set_Association_Choices_Chain (Target : Iir; Chain : Iir);
-- Chain of choices.
-- Field: Field1 Chain
function Get_Case_Statement_Alternative_Chain (Target : Iir) return Iir;
procedure Set_Case_Statement_Alternative_Chain (Target : Iir; Chain : Iir);
-- Staticness of the choice.
-- Field: State1 (pos)
function Get_Choice_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Choice_Staticness (Target : Iir; Staticness : Iir_Staticness);
-- Field: Field1
function Get_Procedure_Call (Stmt : Iir) return Iir;
procedure Set_Procedure_Call (Stmt : Iir; Call : Iir);
-- Subprogram to be called by a procedure, function call or operator. This
-- is the declaration of the subprogram (or a list of during analysis).
-- Field: Field3 Ref
function Get_Implementation (Target : Iir) return Iir;
procedure Set_Implementation (Target : Iir; Decl : Iir);
-- Paramater associations for procedure and function call.
-- Field: Field2 Chain
function Get_Parameter_Association_Chain (Target : Iir) return Iir;
procedure Set_Parameter_Association_Chain (Target : Iir; Chain : Iir);
-- Object of a method call. NULL_IIR if the subprogram is not a method.
-- Field: Field4 Ref
function Get_Method_Object (Target : Iir) return Iir;
procedure Set_Method_Object (Target : Iir; Object : Iir);
-- The type_mark that appeared in the subtype indication. This is a name.
-- May be null_iir if there is no type mark (as in an iterator).
-- Field: Field2
function Get_Subtype_Type_Mark (Target : Iir) return Iir;
procedure Set_Subtype_Type_Mark (Target : Iir; Mark : Iir);
-- Field: Field3
function Get_Type_Conversion_Subtype (Target : Iir) return Iir;
procedure Set_Type_Conversion_Subtype (Target : Iir; Atype : Iir);
-- The type_mark that appeared in qualified expressions or type
-- conversions.
-- Field: Field4
function Get_Type_Mark (Target : Iir) return Iir;
procedure Set_Type_Mark (Target : Iir; Mark : Iir);
-- The type of values for a type file.
-- Field: Field2
function Get_File_Type_Mark (Target : Iir) return Iir;
procedure Set_File_Type_Mark (Target : Iir; Mark : Iir);
-- Field: Field8
function Get_Return_Type_Mark (Target : Iir) return Iir;
procedure Set_Return_Type_Mark (Target : Iir; Mark : Iir);
-- This flag is set on a signal_declaration, when a disconnection
-- specification applies to the signal (or a subelement of it).
-- This is used to check 'others' and 'all' designators.
-- Field: Flag1
function Get_Has_Disconnect_Flag (Target : Iir) return Boolean;
procedure Set_Has_Disconnect_Flag (Target : Iir; Val : Boolean);
-- This flag is set on a signal when its activity is read by the user.
-- Some signals handling can be optimized when this flag is set.
-- Field: Flag2
function Get_Has_Active_Flag (Target : Iir) return Boolean;
procedure Set_Has_Active_Flag (Target : Iir; Val : Boolean);
-- This flag is set is code being analyzed is textually within TARGET.
-- This is used for selected by name rule.
-- Field: Flag5
function Get_Is_Within_Flag (Target : Iir) return Boolean;
procedure Set_Is_Within_Flag (Target : Iir; Val : Boolean);
-- List of type_mark for an Iir_Kind_Signature
-- Field: Field2 (uc)
function Get_Type_Marks_List (Target : Iir) return Iir_Flist;
procedure Set_Type_Marks_List (Target : Iir; List : Iir_Flist);
-- Field: Flag1
function Get_Implicit_Alias_Flag (Decl : Iir) return Boolean;
procedure Set_Implicit_Alias_Flag (Decl : Iir; Flag : Boolean);
-- Field: Field5
function Get_Alias_Signature (Alias : Iir) return Iir;
procedure Set_Alias_Signature (Alias : Iir; Signature : Iir);
-- Field: Field2
function Get_Attribute_Signature (Attr : Iir) return Iir;
procedure Set_Attribute_Signature (Attr : Iir; Signature : Iir);
-- Field: Field1 Of_Ref (uc)
function Get_Overload_List (Target : Iir) return Iir_List;
procedure Set_Overload_List (Target : Iir; List : Iir_List);
-- Identifier of the simple_name attribute.
-- Field: Field3 (uc)
function Get_Simple_Name_Identifier (Target : Iir) return Name_Id;
procedure Set_Simple_Name_Identifier (Target : Iir; Ident : Name_Id);
-- Subtype for Simple_Name attribute.
-- Field: Field4
function Get_Simple_Name_Subtype (Target : Iir) return Iir;
procedure Set_Simple_Name_Subtype (Target : Iir; Atype : Iir);
-- Body of a protected type declaration.
-- Field: Field2 Forward_Ref
function Get_Protected_Type_Body (Target : Iir) return Iir;
procedure Set_Protected_Type_Body (Target : Iir; Bod : Iir);
-- Corresponsing protected type declaration of a protected type body.
-- Field: Field4 Ref
function Get_Protected_Type_Declaration (Target : Iir) return Iir;
procedure Set_Protected_Type_Declaration (Target : Iir; Decl : Iir);
-- For a declaration: true if the declaration is used somewhere.
-- Field: Flag6
function Get_Use_Flag (Decl : Iir) return Boolean;
procedure Set_Use_Flag (Decl : Iir; Val : Boolean);
-- Layout flag: true if 'end' is followed by the reserved identifier.
-- Field: Flag8
function Get_End_Has_Reserved_Id (Decl : Iir) return Boolean;
procedure Set_End_Has_Reserved_Id (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'end' is followed by the identifier.
-- Field: Flag9
function Get_End_Has_Identifier (Decl : Iir) return Boolean;
procedure Set_End_Has_Identifier (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'end' is followed by 'postponed'.
-- Field: Flag10
function Get_End_Has_Postponed (Decl : Iir) return Boolean;
procedure Set_End_Has_Postponed (Decl : Iir; Flag : Boolean);
-- Layout flag: true if a label is present.
-- Field: Flag6
function Get_Has_Label (Decl : Iir) return Boolean;
procedure Set_Has_Label (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'begin' is present.
-- Field: Flag10
function Get_Has_Begin (Decl : Iir) return Boolean;
procedure Set_Has_Begin (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'end' is present (only for generate body).
-- Field: Flag11
function Get_Has_End (Decl : Iir) return Boolean;
procedure Set_Has_End (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'is' is present.
-- Field: Flag7
function Get_Has_Is (Decl : Iir) return Boolean;
procedure Set_Has_Is (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'pure' or 'impure' is present.
-- Field: Flag8
function Get_Has_Pure (Decl : Iir) return Boolean;
procedure Set_Has_Pure (Decl : Iir; Flag : Boolean);
-- Layout flag: true if body appears just after the specification.
-- Field: Flag9
function Get_Has_Body (Decl : Iir) return Boolean;
procedure Set_Has_Body (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'parameter' reserved identifier is present.
-- Field: Flag10
function Get_Has_Parameter (Decl : Iir) return Boolean;
procedure Set_Has_Parameter (Decl : Iir; Flag : Boolean);
-- Layout flag: true if 'component' reserved identifier is present.
-- Field: Flag5
function Get_Has_Component (Decl : Iir) return Boolean;
procedure Set_Has_Component (Decl : Iir; Flag : Boolean);
-- Layout flag for object declaration. If True, the identifier of this
-- declaration is followed by an identifier (and separated by a comma).
-- This flag is set on all but the last declarations.
-- Eg: on 'signal A, B, C : Bit', the flag is set on A and B (but not C).
-- Field: Flag3
function Get_Has_Identifier_List (Decl : Iir) return Boolean;
procedure Set_Has_Identifier_List (Decl : Iir; Flag : Boolean);
-- Layout flag for object declaration. If True, the mode is present.
-- Field: Flag10
function Get_Has_Mode (Decl : Iir) return Boolean;
procedure Set_Has_Mode (Decl : Iir; Flag : Boolean);
-- Layout flag for object declaration. If True, the object class is
-- present.
-- Field: Flag11
function Get_Has_Class (Decl : Iir) return Boolean;
procedure Set_Has_Class (Decl : Iir; Flag : Boolean);
-- Set on wait, procedure call and composite statements when there is a
-- sub-statement that can suspend a procedure or a process. Also set
-- on procedure declaration. Note that the flag is conservative: it must
-- be true if the node contains directly or indirectly a wait statement,
-- but need not to be false otherwise.
-- Field: Flag11
function Get_Suspend_Flag (Stmt : Iir) return Boolean;
procedure Set_Suspend_Flag (Stmt : Iir; Flag : Boolean);
-- Set to True if Maybe_Ref fields are references. This cannot be shared
-- with Has_Identifier_List as: Is_Ref is set to True on all items but
-- the first, while Has_Identifier_List is set to True on all items but
-- the last. Furthermore Is_Ref appears in nodes where Has_Identifier_List
-- is not present.
-- Field: Flag12
function Get_Is_Ref (N : Iir) return Boolean;
procedure Set_Is_Ref (N : Iir; Ref : Boolean);
-- Field: Flag1
function Get_Is_Forward_Ref (N : Iir) return Boolean;
procedure Set_Is_Forward_Ref (N : Iir; Ref : Boolean);
-- Field: Field1 (uc)
function Get_Psl_Property (Decl : Iir) return PSL_Node;
procedure Set_Psl_Property (Decl : Iir; Prop : PSL_Node);
-- Field: Field1 (uc)
function Get_Psl_Sequence (Decl : Iir) return PSL_Node;
procedure Set_Psl_Sequence (Decl : Iir; Prop : PSL_Node);
-- Field: Field6 (uc)
function Get_Psl_Declaration (Decl : Iir) return PSL_Node;
procedure Set_Psl_Declaration (Decl : Iir; Prop : PSL_Node);
-- Field: Field3 (uc)
function Get_Psl_Expression (Decl : Iir) return PSL_Node;
procedure Set_Psl_Expression (Decl : Iir; Prop : PSL_Node);
-- Field: Field1 (uc)
function Get_Psl_Boolean (N : Iir) return PSL_Node;
procedure Set_Psl_Boolean (N : Iir; Bool : PSL_Node);
-- Field: Field7 (uc)
function Get_PSL_Clock (N : Iir) return PSL_Node;
procedure Set_PSL_Clock (N : Iir; Clock : PSL_Node);
-- Field: Field8 (uc)
function Get_PSL_NFA (N : Iir) return PSL_NFA;
procedure Set_PSL_NFA (N : Iir; Fa : PSL_NFA);
-- Field: Field9 (uc)
function Get_PSL_Nbr_States (N : Iir) return Int32;
procedure Set_PSL_Nbr_States (N : Iir; Nbr : Int32);
-- Field: Field10 (uc)
function Get_PSL_Clock_Sensitivity (N : Iir) return Iir_List;
procedure Set_PSL_Clock_Sensitivity (N : Iir; List : Iir_List);
-- Field: Flag1
function Get_PSL_EOS_Flag (N : Iir) return Boolean;
procedure Set_PSL_EOS_Flag (N : Iir; Flag : Boolean);
end Iirs;
|