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
|
<html>
<head>
<title>SPARK Errors</title>
</head>
<body>
<a name="syntax-semicolon-expected"></a>
<p>
*** Syntax Error : ";" expected.
</p>
<p>
<i>
If this is reported at the end of the input file it may well be caused by the misspelling of an identifier in a hide directive. The parser then skips all the following text looking for the misspelled identifier but finds the end of file first where it reports a syntax error.
</i>
</p>
<a name="syntax-no-apragma"></a>
<p>
*** Syntax Error : No APRAGMA can be start with reserved word "IS".
</p>
<p>
<i>
This can occur when a stub for an embedded subprogram is wrongly terminated by a semicolon.
</i>
</p>
<a name="syntax-procedure-spec-annotation-start"></a>
<p>
*** Syntax Error : No complete PROCEDURE_SPECIFICATION can be followed by ANNOTATION_START here.
</p>
<p>
<i>
This can occur when the reserved word </i>body<i> has been omitted from the declaration of a package body. This error will occur at the annotation placed between the specification and the reserved word </i>is<i> of the first subprogram.
</i>
</p>
<a name="syntax-procedure-spec-is"></a>
<p>
*** Syntax Error : No complete PROCEDURE_SPECIFICATION can be followed by reserved word "IS" here.
</p>
<p>
<i>
This can occur when the reserved word </i>body<i> has been omitted from the declaration of a package body. This error will occur at the reserved word </i>is<i> which introduces the body of the first subprogram.
</i>
</p>
<a name="syntax-inherit-expected"></a>
<p>
*** Syntax Error : reserved word "INHERIT" expected.
</p>
<p>
<i>
This occurs where the annotation on a subprogram body is placed after the reserved word </i>is<i> instead of before it.
</i>
</p>
<a name="syntax-simple-expression-rbracket"></a>
<p>
*** Syntax Error : No complete SIMPLE_EXPRESSION can be followed by ")" here.
</p>
<p>
<i>
This can occur in an aggregate expression when there is a mixure of named and positional association being used.
</i>
</p>
<a name="syntax-simple-expression-comma"></a>
<p>
*** Syntax Error : No complete SIMPLE_EXPRESSION can be followed by "," here.
</p>
<p>
<i>
This can occur in an aggregate expression when there is a mixure of named and positional association being used.
</i>
</p>
<a name="semantic-1"></a>
<p>
*** Semantic Error : 1 : The identifier YYY.XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
If the identifier is declared in a separate (or parent) package, the package must be included in an inherit clause and the identifier prefixed with the package name. Ensure that there are no errors in the declaration of the identifier.
</i>
</p>
<a name="semantic-2"></a>
<p>
*** Semantic Error : 2 : XXX does not denote a formal parameter for YYY.
</p>
<a name="semantic-3"></a>
<p>
*** Semantic Error : 3 : Incorrect number of actual parameters for call of subprogram XXX.
</p>
<a name="semantic-4"></a>
<p>
*** Semantic Error : 4 : More than one parameter association is given for formal parameter XXX.
</p>
<a name="semantic-5"></a>
<p>
*** Semantic Error : 5 : Illegal use of identifier XXX.
</p>
<p>
<i>
Usually associated with the use of an identifier other than a package name as a prefix in a selected component.
</i>
</p>
<a name="semantic-6"></a>
<p>
*** Semantic Error : 6 : Identifier XXX is not the name of a variable.
</p>
<a name="semantic-7"></a>
<p>
*** Semantic Error : 7 : Identifier XXX is not the name of a procedure.
</p>
<a name="semantic-8"></a>
<p>
*** Semantic Error : 8 : There is no field named XXX in this entity.
</p>
<p>
<i>
Issued when the selector in a selected component of a record references a non-existent field.
</i>
</p>
<a name="semantic-9"></a>
<p>
*** Semantic Error : 9 : Selected components are not allowed for XXX.
</p>
<p>
<i>
Occurs if the prefix to a selected component representing a procedure in a procedure call statement or a type mark is not a package. Also occurs if a selector is applied in an expression to an object which is not a record variable.
</i>
</p>
<a name="semantic-10"></a>
<p>
*** Semantic Error : 10 : Illegal redeclaration of identifier XXX.
</p>
<a name="semantic-11"></a>
<p>
*** Semantic Error : 11 : There is no package declaration for XXX.
</p>
<p>
<i>
Issued if a package body is encountered for which there is no package specification.
</i>
</p>
<a name="semantic-12"></a>
<p>
*** Semantic Error : 12 : Own variable XXX can only be completed by a variable declaration, not a constant.
</p>
<p>
<i>
If the object in question is really a constant, then remove it from the enclosing package's own variable annotation.
</i>
</p>
<a name="semantic-13"></a>
<p>
*** Semantic Error : 13 : A body for subprogram XXX has already been declared.
</p>
<a name="semantic-14"></a>
<p>
*** Semantic Error : 14 : Illegal parent unit name.
</p>
<p>
<i>
Issued if the name in a "separate" clause of a subunit does not correctly identify a compilation unit. Common causes of this error are a syntax error in the parent unit or omitting the parent unit specification and/or parent unit body entries from the index file.
</i>
</p>
<a name="semantic-15"></a>
<p>
*** Semantic Error : 15 : The stub for XXX is either undeclared or cannot be located.
</p>
<p>
<i>
Common causes of this error are an error in the declaration of the stub or the omission of the parent unit body from the index file.
</i>
</p>
<a name="semantic-16"></a>
<p>
*** Semantic Error : 16 : A body for package XXX has already been declared.
</p>
<a name="semantic-17"></a>
<p>
*** Semantic Error : 17 : A body stub for package XXX has already been declared.
</p>
<a name="semantic-18"></a>
<p>
*** Semantic Error : 18 : Identifier XXX is not the name of a package.
</p>
<a name="semantic-19"></a>
<p>
*** Semantic Error : 19 : Identifier XXX is not the name of a procedure.
</p>
<a name="semantic-20"></a>
<p>
*** Semantic Error : 20 : Illegal operator symbol.
</p>
<p>
<i>
Issued if a renaming declaration contains a non-existent operator.
</i>
</p>
<a name="semantic-21"></a>
<p>
*** Semantic Error : 21 : This entity is not an array.
</p>
<p>
<i>
Issued if an attempt is made to index into a name which does not represent an array.
</i>
</p>
<a name="semantic-22"></a>
<p>
*** Semantic Error : 22 : The type in this declaration is not consistent with the previous declaration of XXX.
</p>
<p>
<i>
Occurs when the type given in the Ada declaration of an own variable differs from that "announced" in the package's own variable clause.
</i>
</p>
<a name="semantic-23"></a>
<p>
*** Semantic Error : 23 : No parameter association is given for formal parameter XXX.
</p>
<a name="semantic-24"></a>
<p>
*** Semantic Error : 24 : The identifier XXX (exported by called subprogram) is not visible at this point.
</p>
<p>
<i>
When a procedure is called any global variables exported by that procedure must be visible at the point of call. This error message indicates that the global variable concerned is not visible. It may be that it needs to be added to the global annotation of the procedure containing the call (or some further enclosing subprogram) or it may be that an inherit clause is missing from the package containing the call.
</i>
</p>
<a name="semantic-25"></a>
<p>
*** Semantic Error : 25 : The identifier XXX (imported by called subprogram) is not visible at this point.
</p>
<p>
<i>
When a procedure is called any global variables imported by that procedure must be visible at the point of call. This error message indicates that the global variable concerned is not visible. It may be that it needs to be added to the global annotation of the subprogram containing the call (or some further enclosing subprogram) or it may be that an inherit clause is missing from the package containing the call.
</i>
</p>
<a name="semantic-26"></a>
<p>
*** Semantic Error : 26 : The deferred constant XXX does not have an associated full definition.
</p>
<p>
<i>
Issued at the end of a package specification if no full declaration has been supplied for a deferred constant declared in the package specification.
</i>
</p>
<a name="semantic-27"></a>
<p>
*** Semantic Error : 27 : The private type XXX does not have an associated full definition.
</p>
<p>
<i>
Issued at the end of a package specification if no full declaration has been supplied for a private type declared in the package specification.
</i>
</p>
<a name="semantic-28"></a>
<p>
*** Semantic Error : 28 : The own variable XXX does not have a definition.
</p>
<p>
<i>
Issued at the end of a package body if an own variable announced in the package specification has neither been given an Ada declaration nor refined.
</i>
</p>
<a name="semantic-29"></a>
<p>
*** Semantic Error : 29 : The subprogram XXX, declared in the package specification, does not have an associated body.
</p>
<a name="semantic-30"></a>
<p>
*** Semantic Error : 30 : Attribute XXX is not yet implemented in the Examiner.
</p>
<p>
<i>
The attribute is identified in Annex K of the SPARK 95 report as a valid SPARK 95 attribute but the Examiner does not currently support it. It is possible to work round the omission by putting the use of the attribute inside a suitable function which is hidden from the Examiner.
</i>
</p>
<a name="semantic-31"></a>
<p>
*** Semantic Error : 31 : The prefix of this attribute is not an object or type.
</p>
<a name="semantic-32"></a>
<p>
*** Semantic Error : 32 : Illegal type conversion.
</p>
<p>
<i>
Likely causes are type conversions involving record types or non-convertible arrays.
</i>
</p>
<a name="semantic-33"></a>
<p>
*** Semantic Error : 33 : Illegal aggregate.
</p>
<p>
<i>
Issued if the prefix of an aggregate is not a composite type.
</i>
</p>
<a name="semantic-34"></a>
<p>
*** Semantic Error : 34 : Illegal procedure call.
</p>
<p>
<i>
Issued if a call is made to a user-defined subprogram in a package initialization part.
</i>
</p>
<a name="semantic-35"></a>
<p>
*** Semantic Error : 35 : Binary operator is not declared for types XXX and YYY.
</p>
<p>
<i>
Indicates use of an undeclared binary operator; this message means that the type on each side of the operator cannot appear with the operator used. e.g. attempting to add an integer to an enumeration literal.
</i>
</p>
<a name="semantic-36"></a>
<p>
*** Semantic Error : 36 : Expression is not static.
</p>
<a name="semantic-37"></a>
<p>
*** Semantic Error : 37 : Expression is not constant.
</p>
<a name="semantic-38"></a>
<p>
*** Semantic Error : 38 : Expression is not of the expected type.
</p>
<a name="semantic-39"></a>
<p>
*** Semantic Error : 39 : Illegal use of unconstrained type.
</p>
<p>
<i>
An unconstrained array type or variable of such a type is illegally used. Use of unconstrained arrays in SPARK is limited to passing them as parameters, indexing into them and taking attributes of them. This message also arises if a string literal is used as an actual parameter where the formal parameter is a string subtype. In this case, the error can be removed by qualifying the string literal with the subtype name.
</i>
</p>
<a name="semantic-40"></a>
<p>
*** Semantic Error : 40 : Numeric or Time_Span type required.
</p>
<p>
<i>
This operator is only defined for numeric types and, if the Ravenscar Profile is selected, for type Ada.Real_Time.Time_Span.
</i>
</p>
<a name="semantic-41"></a>
<p>
*** Semantic Error : 41 : Array type required.
</p>
<p>
<i>
Issued if a subtype declaration taking the form of a constrained subtype of an unconstrained array type is encountered but with a type mark which does not represent an array.
</i>
</p>
<a name="semantic-42"></a>
<p>
*** Semantic Error : 42 : Incompatible types.
</p>
<p>
<i>
Issued when a name represents an object which is not of the required type.
</i>
</p>
<a name="semantic-43"></a>
<p>
*** Semantic Error : 43 : Range is not constant.
</p>
<a name="semantic-44"></a>
<p>
*** Semantic Error : 44 : Scalar type required.
</p>
<p>
<i>
The bounds of an explicit range must be scalar types.
</i>
</p>
<a name="semantic-45"></a>
<p>
*** Semantic Error : 45 : Range is not static.
</p>
<a name="semantic-46"></a>
<p>
*** Semantic Error : 46 : Discrete type required.
</p>
<a name="semantic-47"></a>
<p>
*** Semantic Error : 47 : The definition of this type contains errors which may make this array definition invalid.
</p>
<p>
<i>
Issued if an array type definition is encountered where one or more of the index types used in the definition contained errors in its original declaration. For example, SPARK requires array index bounds to be constant (known at compile time) so an attempt to use an illegal subtype with variable bounds as an array index will generate this message.
</i>
</p>
<a name="semantic-49"></a>
<p>
*** Semantic Error : 49 : Attribute XXX takes only one argument.
</p>
<p>
<i>
Only SPARK 95 attributes 'Min and 'Max require two arguments.
</i>
</p>
<a name="semantic-50"></a>
<p>
*** Semantic Error : 50 : Initializing expression must be constant.
</p>
<p>
<i>
To assign a non-constant expression to a variable, an assignment statement in the body of the program unit (following the 'begin') must be used.
</i>
</p>
<a name="semantic-51"></a>
<p>
*** Semantic Error : 51 : Arrays may not be ordered.
</p>
<p>
<i>
Issued if an ordering operator such as "<" is encountered between objects of an array type other than string or a constrained subtype of string.
</i>
</p>
<a name="semantic-52"></a>
<p>
*** Semantic Error : 52 : Only Scalar, String and Time types may be ordered.
</p>
<p>
<i>
Ordering operators are only defined for scalar types and type String plus, if the Ravenscar Profile is selected, types Time and Time_Span in package Ada.Real_Time.
</i>
</p>
<a name="semantic-53"></a>
<p>
*** Semantic Error : 53 : Illegal others clause.
</p>
<p>
<i>
In SPARK record aggregates may not contain an others clause.
</i>
</p>
<a name="semantic-54"></a>
<p>
*** Semantic Error : 54 : Illegal attribute: XXX.
</p>
<p>
<i>
Issued when an attribute not supported by SPARK is used.
</i>
</p>
<a name="semantic-55"></a>
<p>
*** Semantic Error : 55 : Attribute XXX takes no argument.
</p>
<a name="semantic-56"></a>
<p>
*** Semantic Error : 56 : Argument expected.
</p>
<a name="semantic-57"></a>
<p>
*** Semantic Error : 57 : Fixed type definition must have associated range constraint.
</p>
<a name="semantic-58"></a>
<p>
*** Semantic Error : 58 : XXX expected, to repeat initial identifier.
</p>
<p>
<i>
Occurs at the end of a package, subprogram, protected type, task type or loop if the terminal identifier does not match the name or label originally given.
</i>
</p>
<a name="semantic-59"></a>
<p>
*** Semantic Error : 59 : Composite subtype definition may not have associated range constraint.
</p>
<p>
<i>
A subtype of the form applicable to a subrange of a scalar type has been encountered but the type provided is not a scalar type.
</i>
</p>
<a name="semantic-60"></a>
<p>
*** Semantic Error : 60 : Illegal choice in record aggregate.
</p>
<p>
<i>
In SPARK record aggregates may not contain multiple choices, each field must be assigned a value individually.
</i>
</p>
<a name="semantic-61"></a>
<p>
*** Semantic Error : 61 : Illegal occurrence of body stub - a body stub may only occur in a compilation unit.
</p>
<a name="semantic-62"></a>
<p>
*** Semantic Error : 62 : A body for the embedded package XXX is required.
</p>
<p>
<i>
Issued if an embedded package declares subprograms or own variables and no body is provided.
</i>
</p>
<a name="semantic-63"></a>
<p>
*** Semantic Error : 63 : XXX is not a type mark.
</p>
<a name="semantic-64"></a>
<p>
*** Semantic Error : 64 : Parameters of function subprograms must be of mode in.
</p>
<a name="semantic-65"></a>
<p>
*** Semantic Error : 65 : Formal parameters of renamed operators may not be renamed.
</p>
<p>
<i>
The names of the parameters used in renaming declarations may not be altered from Left, Right for binary operators and Right for unary operators. These are the names given for the parameters in the ARM and the SPARK Definition requires that parameter names are not changed.
</i>
</p>
<a name="semantic-66"></a>
<p>
*** Semantic Error : 66 : Unexpected package initialization - no own variables of package XXX require initialization.
</p>
<p>
<i>
Either the package does not have an initializes annotation or all the own variables requiring initialization were given values at the point of declaration.
</i>
</p>
<a name="semantic-67"></a>
<p>
*** Semantic Error : 67 : Illegal machine code insertion. Machine code functions are not permitted in SPARK 83.
</p>
<p>
<i>
This is an Ada 83 rule. Machine code can only be used in procedures.
</i>
</p>
<a name="semantic-68"></a>
<p>
*** Semantic Error : 68 : Illegal operator renaming - operators are defined on types not subtypes.
</p>
<p>
<i>
Issued if an attempt is made to rename an operator using a subtype of the type for which it was originally implicitly declared.
</i>
</p>
<a name="semantic-69"></a>
<p>
*** Semantic Error : 69 : pragma XXX has two parameters.
</p>
<a name="semantic-70"></a>
<p>
*** Semantic Error : 70 : pragma Import expected.
</p>
<p>
*** Semantic Error : 70 : pragma Interface expected.
</p>
<a name="semantic-71"></a>
<p>
*** Semantic Error : 71 : This expression does not represent the expected subprogram or variable name XXX.
</p>
<p>
<i>
Issued if the name supplied in a pragma interface, import or attach_handler does not match the name of the associated subprogram or variable.
</i>
</p>
<a name="semantic-72"></a>
<p>
*** Semantic Error : 72 : Unexpected pragma Import.
</p>
<p>
<i>
Pragma import may only occur in a body stub, or immediately after a subprogram declaration in the visible part of a package, or immediately after a variable declaration.
</i>
</p>
<a name="semantic-72"></a>
<p>
*** Semantic Error : 72 : Unexpected pragma Interface.
</p>
<p>
<i>
Pragma interface may only occur in a body stub or immediately after a subprogram declaration in the visible part of a package.
</i>
</p>
<a name="semantic-73"></a>
<p>
*** Semantic Error : 73 : XXX has already been declared or refined.
</p>
<p>
<i>
Issued if an Ada declaration is given for an own variable which has been refined, or in a refinement clause if an own variable is refined more than once.
</i>
</p>
<a name="semantic-74"></a>
<p>
*** Semantic Error : 74 : XXX does not occur in the package own variable list.
</p>
<p>
<i>
A subject of a refinement definition of a package must be an own variable of that package.
</i>
</p>
<a name="semantic-75"></a>
<p>
*** Semantic Error : 75 : Illegal use of inherited package.
</p>
<p>
<i>
Issued if an attempt is made to refine an own variable onto an own variable of a non-embedded package.
</i>
</p>
<a name="semantic-76"></a>
<p>
*** Semantic Error : 76 : Identifier XXX is already declared and cannot be the name of an embedded package.
</p>
<p>
<i>
Issued when a refinement clause in a package body attempts to name an embedded package own variable as a refinement constituent and the name given for the embedded package is already in use.
</i>
</p>
<a name="semantic-77"></a>
<p>
*** Semantic Error : 77 : Variable XXX should occur in this own variable clause.
</p>
<p>
<i>
Occurs in the own variable clause of a package embedded in another package if an own variable which is a refinement constituent of an own variable of the enclosing package is omitted.
</i>
</p>
<a name="semantic-78"></a>
<p>
*** Semantic Error : 78 : Initialization of own variable XXX is ineffective.
</p>
<p>
<i>
Issued if an own variable occurs in the initialization clause of an embedded package and the own variable concerned is a refinement constituent of another own variable which is not listed in the initialization specification of its package.
</i>
</p>
<a name="semantic-79"></a>
<p>
*** Semantic Error : 79 : Variable XXX should occur in this initialization specification.
</p>
<p>
<i>
Occurs in the initialization clause of a package embedded in another package if an own variable which is a refinement constituent of an initialized own variable of the enclosing package is omitted.
</i>
</p>
<a name="semantic-80"></a>
<p>
*** Semantic Error : 80 : Unexpected own variable clause - no variable in this clause is a refinement constituent.
</p>
<a name="semantic-81"></a>
<p>
*** Semantic Error : 81 : Own variable clause expected - own variables of this package occur as refinement constituents.
</p>
<a name="semantic-82"></a>
<p>
*** Semantic Error : 82 : Unexpected initialization specification - no own variables of this package require initialization.
</p>
<p>
<i>
An own variable initialization clause and that of its refinement constituents must be consistent.
</i>
</p>
<a name="semantic-83"></a>
<p>
*** Semantic Error : 83 : Initialization specification expected - own variables of this package require initialization.
</p>
<p>
<i>
Issued if an own variable does not occur in the initialization clause of an embedded package and the own variable concerned is a refinement constituent of another own variable which is listed in the initialization clause of its package.
</i>
</p>
<a name="semantic-84"></a>
<p>
*** Semantic Error : 84 : The refinement constituent XXX does not have a declaration.
</p>
<p>
<i>
Issued at the end of a package if a refinement constituent of a refined own variable has not been given an Ada declaration or further refined.
</i>
</p>
<a name="semantic-85"></a>
<p>
*** Semantic Error : 85 : XXX is not a constituent of any abstract own variable appearing in the earlier global definition for this subprogram.
</p>
<p>
<i>
A variable XXX which has occurred in a refined global annotation is neither a variable that occurred in the earlier global definition nor a refinement constituent of any such variable.
</i>
</p>
<a name="semantic-86"></a>
<p>
*** Semantic Error : 86 : At least one constituent of XXX was expected in this refined global definition.
</p>
<p>
<i>
If the global annotation of a procedure specification contains an own variable and that own variable is later refined then at least one refinement constituent of the own variable shall appear in the second global annotation supplied for the procedure body.
</i>
</p>
<a name="semantic-87"></a>
<p>
*** Semantic Error : 87 : Refined global definition expected for subprogram XXX.
</p>
<p>
<i>
A global definition containing abstract own variables was given in the definition for subprogram XXX, in a package specification. A refined global definition is required in the package body.
</i>
</p>
<a name="semantic-88"></a>
<p>
*** Semantic Error : 88 : Variable XXX is not a refinement constituent.
</p>
<a name="semantic-89"></a>
<p>
*** Semantic Error : 89 : XXX is not a private type declared in this package.
</p>
<a name="semantic-90"></a>
<p>
*** Semantic Error : 90 : This operator may not be applied to ranges.
</p>
<a name="semantic-91"></a>
<p>
*** Semantic Error : 91 : Ranges may not be assigned.
</p>
<a name="semantic-92"></a>
<p>
*** Semantic Error : 92 : Named association may not be used here.
</p>
<a name="semantic-93"></a>
<p>
*** Semantic Error : 93 : Number of index expressions differs from number of dimensions of array XXX.
</p>
<a name="semantic-94"></a>
<p>
*** Semantic Error : 94 : Condition is not boolean.
</p>
<p>
<i>
Issued anywhere a boolean expression is required (e.g. in<b> if</b>, <b> exit </b> and <b>while</b> statements) and the expression provided is not of type boolean.
</i>
</p>
<a name="semantic-95"></a>
<p>
*** Semantic Error : 95 : Type mark expected.
</p>
<a name="semantic-96"></a>
<p>
*** Semantic Error : 96 : Attribute XXX is not valid with this prefix.
</p>
<a name="semantic-97"></a>
<p>
*** Semantic Error : 97 : Attribute BASE may only appear as a prefix.
</p>
<p>
<i>
'BASE may only be used as a prefix to another attribute.
</i>
</p>
<a name="semantic-98"></a>
<p>
*** Semantic Error : 98 : This expression is not a range.
</p>
<a name="semantic-99"></a>
<p>
*** Semantic Error : 99 : Unconstrained array expected.
</p>
<p>
<i>
Occurs if a subtype is declared of an array which is already constrained.
</i>
</p>
<a name="semantic-100"></a>
<p>
*** Semantic Error : 100 : Floating point type mark expected.
</p>
<a name="semantic-101"></a>
<p>
*** Semantic Error : 101 : Fixed point type mark expected.
</p>
<a name="semantic-102"></a>
<p>
*** Semantic Error : 102 : This is not the name of a field of record XXX.
</p>
<a name="semantic-103"></a>
<p>
*** Semantic Error : 103 : A value has already been supplied for field XXX.
</p>
<a name="semantic-104"></a>
<p>
*** Semantic Error : 104 : No value has been supplied for field XXX.
</p>
<a name="semantic-105"></a>
<p>
*** Semantic Error : 105 : More values have been supplied than number of fields in record XXX.
</p>
<a name="semantic-106"></a>
<p>
*** Semantic Error : 106 : Range is not of the expected type.
</p>
<a name="semantic-107"></a>
<p>
*** Semantic Error : 107 : Expression is not of the expected type. Actual type is XXX. Expected type is YYY.
</p>
<a name="semantic-108"></a>
<p>
*** Semantic Error : 108 : Expression is not of the expected type. Expected any Integer type.
</p>
<a name="semantic-109"></a>
<p>
*** Semantic Error : 109 : Expression is not of the expected type. Expected any Real type.
</p>
<a name="semantic-110"></a>
<p>
*** Semantic Error : 110 : Use type clauses following an embedded package are not currently supported by the Examiner.
</p>
<a name="semantic-111"></a>
<p>
*** Semantic Error : 111 : Package renaming is not currently supported by the Examiner.
</p>
<a name="semantic-112"></a>
<p>
*** Semantic Error : 112 : A use type clause may not appear here. They are only permitted as part of a context clause or directly following an embedded package specification.
</p>
<a name="semantic-113"></a>
<p>
*** Semantic Error : 113 : Private subprogram declarations are not permitted in SPARK 83.
</p>
<p>
<i>
Private subprograms would not be callable in SPARK 83 and are therefore not permitted; they may be declared and called in SPARK 95.
</i>
</p>
<a name="semantic-114"></a>
<p>
*** Semantic Error : 114 : Subtype mark or Range may not be used in an expression in this context.
</p>
<p>
<i>
A subtype mark or an explicit Range attribute may not be used in a context where a simple expression is expected.
</i>
</p>
<a name="semantic-115"></a>
<p>
*** Semantic Error : 115 : In a package body, an own variable annotation must include one or more refinement constituents.
</p>
<p>
<i>
Annotation should be of the form 'own S is A, B, C;'.
</i>
</p>
<a name="semantic-116"></a>
<p>
*** Semantic Error : 116 : View conversion to own type is not permitted in target of an assignment.
</p>
<a name="semantic-117"></a>
<p>
*** Semantic Error : 117 : Aggregate must be qualified with subtype mark.
</p>
<p>
<i>
Aggregates are qualified expressions so they must be prefixed with a subtype mark. An exception is made in the case of aggregate assignments to unconstrained arrays as the rules of Ada do not permit unconstrained array aggregates to be qualified.
</i>
</p>
<a name="semantic-118"></a>
<p>
*** Semantic Error : 118 : Aggregate assignment to unconstrained multi-dimensional array not permitted.
</p>
<p>
<i>
Unqualified aggregates may only be used in assignments to one-dimensional unconstrained arrays. SPARK does not permit aggregate assignment to multi-dimensional unconstrained arrays.
</i>
</p>
<a name="semantic-119"></a>
<p>
*** Semantic Error : 119 : Unary operator is not declared for type XXX.
</p>
<p>
<i>
Indicates use of an undeclared unary operator; this message means that the type on the right hand side of the operator cannot appear with the operator used. e.g. attempting to negate an enumeration literal.
</i>
</p>
<a name="semantic-120"></a>
<p>
*** Semantic Error : 120 : Pragma import not allowed here because variable XXX is already initialized. See ALRM B.1(24).
</p>
<a name="semantic-121"></a>
<p>
*** Semantic Error : 121 : 'Flow_Message' or 'Warning_Message' expected.
</p>
<p>
<i>
The identifier indicating what kind of message to justify must be either 'Flow_Message' or 'Warning_Message' or some unique abbreviation of them such as 'Fl' or even 'F'. Case is ignored.
</i>
</p>
<a name="semantic-122"></a>
<p>
*** Semantic Error : 122 : Error or warning number expected.
</p>
<p>
<i>
This item should be an integer literal representing the error or warning message that is being marked as expected.
</i>
</p>
<a name="semantic-123"></a>
<p>
*** Semantic Error : 123 : This warning number may not appear in an accept annotation.
</p>
<p>
<i>
It does not make sense to allow certain warnings to be justified with the accept annotation. In particular, attempting to justify warnings raised by the justification system itself could lead to some special kind of recursive hell that we would not wish to enter.
</i>
</p>
<a name="semantic-124"></a>
<p>
*** Semantic Error : 124 : Incorrect number of names in accept annotation: should be 0.
</p>
<p>
<i>
This class of error does not reference any variables, and therefore requires no names.
</i>
</p>
<a name="semantic-125"></a>
<p>
*** Semantic Error : 125 : Incorrect number of names in accept annotation: should be 1.
</p>
<p>
<i>
This class of error references one variable, and therefore requires one name.
</i>
</p>
<a name="semantic-126"></a>
<p>
*** Semantic Error : 126 : Incorrect number of names in accept annotation: should be 2.
</p>
<p>
<i>
This class of error references two variables, and therefore requires two names. Two names are need to justify expected information flow messages such as "X is not derived from Y". Note that for messages of this kind the accept annotation should list the names in the order "export, import".
</i>
</p>
<a name="semantic-127"></a>
<p>
*** Semantic Error : 127 : Incorrect number of names in accept annotation: should be 0 or 1.
</p>
<p>
<i>
This class of error references either zero or one variable, and therefore requires either zero or one name. An ineffective assignment error requires the name of variable being assigned to. An ineffective statement error has no name associated with it.
</i>
</p>
<a name="semantic-128"></a>
<p>
*** Semantic Error : 128 : Incorrect number of names in accept annotation: should be 1 or 2.
</p>
<p>
<i>
This class of error references either one or two variables, and therefore requires either one or two names. One name is required when the export is a function return value.
</i>
</p>
<a name="semantic-129"></a>
<p>
*** Semantic Error : 129 : Assignment to view conversion is not currently implemented.
</p>
<a name="semantic-130"></a>
<p>
*** Semantic Error : 130 : A type from the current package should not appear in a use type clause.
</p>
<a name="semantic-131"></a>
<p>
*** Semantic Error : 131 : The package name XXX should appear in a with clause preceding the use type clause.
</p>
<a name="semantic-132"></a>
<p>
*** Semantic Error : 132 : The unit name or the name of an enclosing package of the unit should not appear in its with clause.
</p>
<p>
<i>
A package should not 'with' itself and a subunit should not 'with' the package (or main program) which declares its stub.
</i>
</p>
<a name="semantic-133"></a>
<p>
*** Semantic Error : 133 : Name in with clause is locally redeclared.
</p>
<a name="semantic-134"></a>
<p>
*** Semantic Error : 134 : A package name should not appear in its own inherit clause.
</p>
<a name="semantic-135"></a>
<p>
*** Semantic Error : 135 : The package XXX is undeclared or not visible, or there is a circularity in the list of inherited packages.
</p>
<p>
<i>
Possible causes of this error are an error in the inherited package specification or omitting an entry for the package specification from the index file or circular inheritance.
</i>
</p>
<a name="semantic-136"></a>
<p>
*** Semantic Error : 136 : The own variable XXX is not declared in the own variable clause of the corresponding package declaration.
</p>
<p>
<i>
A refinement clause of a package body defines the constituent parts of own variables given in the own variable clause of the corresponding package declaration.
</i>
</p>
<a name="semantic-137"></a>
<p>
*** Semantic Error : 137 : The child package XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
Possible causes of this error are an error in the child package specification or omitting the child from the parent's component list in the index file or omitting the child specification entry from the index file.
</i>
</p>
<a name="semantic-138"></a>
<p>
*** Semantic Error : 138 : Child package own variable XXX is does not appear in the own variable clause of the child package.
</p>
<p>
<i>
A constituent of a refinement clause which is defined in a child package must be an own variable of the child package.
</i>
</p>
<a name="semantic-139"></a>
<p>
*** Semantic Error : 139 : The variable XXX is not declared in the own variable clause of this package.
</p>
<p>
<i>
A package can only initialize variables declared in its own variable clause.
</i>
</p>
<a name="semantic-140"></a>
<p>
*** Semantic Error : 140 : The predecessor package XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
The parent of a child package must be a library package and must be declared prior to a child package. If using an index file the parent must have an entry in the index file and the child package must be listed as a component of the parent package.
</i>
</p>
<a name="semantic-141"></a>
<p>
*** Semantic Error : 141 : The private type XXX is either undeclared or not visible at this point.
</p>
<a name="semantic-142"></a>
<p>
*** Semantic Error : 142 : The subprogram prefix XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
The prefix should appear in the inherit clause of the current package.
</i>
</p>
<a name="semantic-143"></a>
<p>
*** Semantic Error : 143 : The subprogram YYY.XXX is either undeclared or not visible at this point.
</p>
<a name="semantic-144"></a>
<p>
*** Semantic Error : 144 : The dotted name YYY.XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
The name must denote an entire variable or an own variable of a package. If the variable or own variable is declared in a separate (or parent) package, the package must be included in an inherit clause and the identifier prefixed with the package name.
</i>
</p>
<a name="semantic-145"></a>
<p>
*** Semantic Error : 145 : The identifier YYY.XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
The identifier should be a typemark. If the typemark is declared in a separate (or parent) package, the package must be included in an inherit clause and the identifier prefixed with the package name. Ensure that there are no errors in the declaration of the typemark.
</i>
</p>
<a name="semantic-148"></a>
<p>
*** Semantic Error : 148 : The abstract proof type XXX may not be used to define an own variable in another package.
</p>
<p>
<i>
Own variables may be "type announced" as being of an abstract proof type only where that type is declared later in the same package. Thus --# own State : T; is legal if --# type T is abstract; appears later in the package; however, --# own State : P.T; is illegal if T is an abstract proof type declared in remote package P.
</i>
</p>
<a name="semantic-149"></a>
<p>
*** Semantic Error : 149 : More than one own variable has been announced as being of type XXX which may not therefore be declared as an abstract proof type.
</p>
<p>
<i>
Occurs when an own variable clause announces more than one own variable as being of a type XXX and XXX is later declared as being of an abstract proof type. Each abstract own variable must be of a unique type.
</i>
</p>
<a name="semantic-150"></a>
<p>
*** Semantic Error : 150 : Entire variable expected. The names of constants never appear in mandatory annotations.
</p>
<p>
<i>
Issued when a the name of a constant is found in a mandatory annotation such as a global or derives annotation. Constants should not appear in such annotations.
</i>
</p>
<a name="semantic-151"></a>
<p>
*** Semantic Error : 151 : The variable XXX does not occur either in the package own variable list or as a refinement constituent.
</p>
<p>
<i>
A variable declared in a package must have been previously announced as either an own variable or as a concrete refinement constituent of an own variable.
</i>
</p>
<a name="semantic-152"></a>
<p>
*** Semantic Error : 152 : The number of formal parameters is not consistent with the previous declaration of XXX.
</p>
<a name="semantic-153"></a>
<p>
*** Semantic Error : 153 : The declaration of formal parameter XXX is not consistent with the subprogram's previous declaration.
</p>
<p>
<i>
Issued if the name, type or parameter mode of a parameter is different in the subprogram body declaration from that declared originally.
</i>
</p>
<a name="semantic-154"></a>
<p>
*** Semantic Error : 154 : The subprogram or task body XXX does not have an annotation.
</p>
<p>
<i>
A subprogram or task body must have a global annotation if it references global variables; a procedure or task body must have a dependency relation to perform information flow analysis.
</i>
</p>
<a name="semantic-155"></a>
<p>
*** Semantic Error : 155 : Unexpected annotation - all annotations required for procedure or task body XXX have already occurred.
</p>
<p>
<i>
Do not repeat global or derives annotations in the body (or body stub) of a subprogram, entry or task except for state (own variable) refinement.
</i>
</p>
<a name="semantic-156"></a>
<p>
*** Semantic Error : 156 : Entire variable expected.
</p>
<p>
<i>
Issued when an identifier which SPARK requires to be an entire variable represents something other than this. Most commonly this message occurs when a component of a structured variable appears in a core annotation.
</i>
</p>
<a name="semantic-157"></a>
<p>
*** Semantic Error : 157 : The name XXX already appears in the global variable list.
</p>
<a name="semantic-158"></a>
<p>
*** Semantic Error : 158 : XXX is a formal parameter of this subprogram.
</p>
<p>
<i>
Issued in a global annotation if it names a formal parameter of the subprogram.
</i>
</p>
<a name="semantic-159"></a>
<p>
*** Semantic Error : 159 : The name XXX has already appeared as an exported variable.
</p>
<a name="semantic-160"></a>
<p>
*** Semantic Error : 160 : The name XXX already appears in the list of imported variables.
</p>
<a name="semantic-161"></a>
<p>
*** Semantic Error : 161 : Exportation of XXX is incompatible with its parameter mode.
</p>
<p>
<i>
Issued if a parameter appears as an export to a procedure when it is of parameter mode in.
</i>
</p>
<a name="semantic-162"></a>
<p>
*** Semantic Error : 162 : Importation of XXX is incompatible with its parameter mode.
</p>
<p>
<i>
Issued if a parameter appears as an import to a procedure when it is of parameter mode out.
</i>
</p>
<a name="semantic-163"></a>
<p>
*** Semantic Error : 163 : Subprogram XXX cannot be called from here.
</p>
<p>
<i>
SPARK contains rules to prevent construction of programs containing recursive subprogram calls; this error message occurs if a procedure or function is called before its body has been declared. Re-ordering of subprogram bodies in the package concerned will be required.
</i>
</p>
<a name="semantic-165"></a>
<p>
*** Semantic Error : 165 : This parameter is overlapped by another one, which is exported.
</p>
<p>
<i>
Violation of the anti-aliasing rule.
</i>
</p>
<a name="semantic-166"></a>
<p>
*** Semantic Error : 166 : This parameter is overlapped by an exported global variable.
</p>
<p>
<i>
Violation of the anti-aliasing rule.
</i>
</p>
<a name="semantic-167"></a>
<p>
*** Semantic Error : 167 : Imported variable XXX is not named in the initialization specification of its package.
</p>
<p>
<i>
Issued when an own variable which is imported into the main program procedure (or a task when the Ravenscar profile is enabled) has not been declared as being initialized by its package. At the main program level the only imports that are permitted are initialized own variables of inherited packages. There are two possible cases to consider: (1) the main program should be importing the variable in which case it should be annotated in its package with --# initializes (and, of course, actually initialized in some way) or be an external variable or protected variable which is implicitly initialized; or (2) the own variable concerned is not initialized at elaboration, should not therefore be considered an import to the main program and should be removed from the main program's import list.
</i>
</p>
<a name="semantic-168"></a>
<p>
*** Semantic Error : 168 : XXX is a loop parameter, whose updating is not allowed.
</p>
<a name="semantic-169"></a>
<p>
*** Semantic Error : 169 : Global variables of function subprograms must be of mode in.
</p>
<p>
<i>
It is an important property of SPARK that functions cannot have side-effects, therefore only the reading of global variable is permitted. It is usually convenient to omit modes from function global annotations but use of mode 'in' is permitted.
</i>
</p>
<a name="semantic-170"></a>
<p>
*** Semantic Error : 170 : XXX is a formal parameter of mode in, whose updating is not allowed.
</p>
<a name="semantic-171"></a>
<p>
*** Semantic Error : 171 : XXX is a formal parameter of mode out, whose value cannot be read.
</p>
<a name="semantic-172"></a>
<p>
*** Semantic Error : 172 : The actual parameter associated with an exported formal parameter must be an entire variable.
</p>
<p>
<i>
Issued if an actual parameter which is an array element is associated with an exported formal parameter in a procedure call. Exported parameters must be either entire variables or a record field.
</i>
</p>
<a name="semantic-173"></a>
<p>
*** Semantic Error : 173 : This exported parameter is named in the global definition of the procedure.
</p>
<p>
<i>
Violation of the anti-aliasing rule.
</i>
</p>
<a name="semantic-174"></a>
<p>
*** Semantic Error : 174 : XXX is not an own variable.
</p>
<p>
<i>
Occurs in initialization specifications if something other than a variable is listed as being initialized.
</i>
</p>
<a name="semantic-175"></a>
<p>
<i>
A justification of an error requires the actual variables named in the error message to be referenced. The keyword "all" can only be used with language profiles for auto-code generators such as SCADE KCG. Such profiles are only available with the SPARK Pro Toolset.
</i>
</p>
<a name="semantic-176"></a>
<p>
*** Semantic Error : 176 : XXX does not have a derives annotation so it may not be called from YYY which does have a derives annotation.
</p>
<p>
<i>
When analysing with flow=auto, a procedure or entry without a derives annotation may not be called by a procedure, task or entry with a derives annotation. This is because the body of the caller must be checked against its derives annotation. In order to calculate the correct dependency relation for the body of the caller there must be derives annotations present on all called procedures or entries.
</i>
</p>
<a name="semantic-180"></a>
<p>
*** Semantic Error : 180 : Entire composite constant expected.
</p>
<p>
<i>
Issued when an identifier which SPARK requires to be an entire composite constant represents something other than this.
</i>
</p>
<a name="semantic-181"></a>
<p>
*** Semantic Error : 181 : Invalid policy for constant proof rule generation.
</p>
<a name="semantic-182"></a>
<p>
*** Semantic Error : 182 : Rule Policy for YYY.XXX already declared in current scope.
</p>
<p>
<i>
Issued when a rule policy has already been declared for this constant within this declarative region. This rule policy will be ineffective.
</i>
</p>
<a name="semantic-190"></a>
<p>
*** Semantic Error : 190 : The name XXX already appears in the inherit clause.
</p>
<a name="semantic-191"></a>
<p>
*** Semantic Error : 191 : The name XXX already appears in the with clause.
</p>
<a name="semantic-200"></a>
<p>
*** Semantic Error : 200 : The parameter XXX is neither imported nor exported.
</p>
<p>
<i>
Each formal parameter of a subprogram shall be imported or exported or both.
</i>
</p>
<a name="semantic-201"></a>
<p>
*** Semantic Error : 201 : The global variable XXX is neither imported nor exported.
</p>
<p>
<i>
Every variable in a global definition must also appear in the associated derives annotation where it will be either imported or exported or both.
</i>
</p>
<a name="semantic-250"></a>
<p>
*** Semantic Error : 250 : The 'Size value for type XXX has already been set.
</p>
<a name="semantic-251"></a>
<p>
*** Semantic Error : 251 : The attribute value for XXX'Size must be of an integer type.
</p>
<a name="semantic-252"></a>
<p>
*** Semantic Error : 252 : The attribute value for XXX'Size must be a static simple expression.
</p>
<p>
<i>
The value of 'Size must be static and must be of an integer type.
</i>
</p>
<a name="semantic-253"></a>
<p>
*** Semantic Error : 253 : The attribute value for XXX'Size must not be negative.
</p>
<p>
<i>
The value of 'Size must be a positive integer or zero.
</i>
</p>
<a name="semantic-254"></a>
<p>
*** Semantic Error : 254 : The Size attribute can only be specified for a first subtype.
</p>
<p>
<i>
Setting 'Size for a user-defined non-first subtype is not permitted. See Ada95 LRM 13.3(48).
</i>
</p>
<a name="semantic-255"></a>
<p>
*** Semantic Error : 255 : The Address attribute can only be specified for a variable, a constant, or a program unit.
</p>
<p>
<i>
Ada95 LRM Annex N.31 defines a program unit to be either a package, a task unit, a protected unit, a protected entry, a generic unit, or an explicitly declared subprogram other than an enumeration literal.
</i>
</p>
<a name="semantic-273"></a>
<p>
*** Semantic Error : 273 : Own variable XXX may not be refined because it was declared with a type mark which has not subsequently been declared as an abstract proof type.
</p>
<p>
<i>
Where a type mark is included in an own variable declaration it indicates that the own variable will either be of a concrete type of that name (which may be either already declared or be declared later in the package) or of an abstract proof type declared in the package specification. In the former case the refinement is illegal because own variables of concrete Ada types may not be refined. In the latter case it is legal; however, no suitable proof type declaration has been found in this case.
</i>
</p>
<a name="semantic-300"></a>
<p>
*** Semantic Error : 300 : Renaming declarations are not allowed here.
</p>
<p>
<i>
A renaming declaration must be the first declarative item of a package body or main program or it must be placed immediately after the declaration of an embedded package.
</i>
</p>
<a name="semantic-301"></a>
<p>
*** Semantic Error : 301 : Renaming or use type declarations here can only rename subprograms in package XXX.
</p>
<p>
<i>
A renaming declaration may be placed immediately after the declaration of an embedded package; in this case it may only rename subprograms declared in that package.
</i>
</p>
<a name="semantic-302"></a>
<p>
*** Semantic Error : 302 : The subprogram specification in this renaming declaration is not consistent with the declaration of subprogram XXX.
</p>
<p>
<i>
Issued in a subprogram renaming declaration if it contains parameter names, numbers or types which differ from those originally declared.
</i>
</p>
<a name="semantic-303"></a>
<p>
*** Semantic Error : 303 : An operator can only be renamed by the same operator.
</p>
<p>
<i>
Issued if a renaming declaration has a different operator on each side of the reserved word RENAMES.
</i>
</p>
<a name="semantic-304"></a>
<p>
*** Semantic Error : 304 : A renaming declaration for operator XXX is not allowed.
</p>
<a name="semantic-305"></a>
<p>
*** Semantic Error : 305 : The specification in this renaming declaration is not consistent with the implicit declaration of operator XXX.
</p>
<p>
<i>
Issued in an operator renaming declaration if it contains types which differ from those applicable to the operator being renamed.
</i>
</p>
<a name="semantic-306"></a>
<p>
*** Semantic Error : 306 : Operator XXX is already visible.
</p>
<p>
<i>
Occurs in an operator renaming declaration if an attempt is made to rename an operator which is already visible. (The message will also appear as a secondary consequence of trying to rename an operator between undeclared types.).
</i>
</p>
<a name="semantic-307"></a>
<p>
*** Semantic Error : 307 : The implicit declaration of this operator does not occur in package XXX.
</p>
<a name="semantic-308"></a>
<p>
*** Semantic Error : 308 : Type is limited.
</p>
<p>
<i>
Issued if an attempt is made to assign a variable of a type which is limited or which contains a limited type.
</i>
</p>
<a name="semantic-309"></a>
<p>
*** Semantic Error : 309 : Operator not visible for these types.
</p>
<p>
<i>
This message means that the operator exists between the types on each side of it but that it is not visible. The most likely cause is that the types concerned are defined in another package and that renaming is required to make the operator visible.
</i>
</p>
<a name="semantic-310"></a>
<p>
*** Semantic Error : 310 : The % operator may only appear in an assert or check statement in a for loop.
</p>
<p>
<i>
The % operator is used to indicate the value of a variable on entry to a for loop. This is because the variable may be used in the exit expression of the loop and may also be modified in the body of the loop. Since the semantics of Ada require the exit expression to be fixed after evaluation we require a way of reasoning about the original value of a variable prior to any alteration in the loop body. No other situation requires this value so % may not be used anywhere else.
</i>
</p>
<a name="semantic-311"></a>
<p>
*** Semantic Error : 311 : Announced own variable types may not be implemented as unconstrained arrays.
</p>
<p>
<i>
Where an own variable is announced as being of some type, SPARK requires that type to be declared; the declaration cannot be in the form of an unconstrained array because SPARK prohibits unconstrained variables.
</i>
</p>
<a name="semantic-312"></a>
<p>
*** Semantic Error : 312 : A subprogram can only be renamed to the same name with the package prefix removed.
</p>
<a name="semantic-313"></a>
<p>
*** Semantic Error : 313 : Only one main program is permitted.
</p>
<a name="semantic-314"></a>
<p>
*** Semantic Error : 314 : Own variable XXX has been refined and may not appear here.
</p>
<p>
<i>
Issued if an attempt is made to use, in a second annotation, an own variable which has been refined. Second annotations should use the appropriate refinement constituents of the own variable.
</i>
</p>
<a name="semantic-315"></a>
<p>
*** Semantic Error : 315 : Unsupported proof context.
</p>
<p>
<i>
Certain proof contexts have been included in the syntax of SPARK but are not yet supported; this error message results if one is found.
</i>
</p>
<a name="semantic-316"></a>
<p>
*** Semantic Error : 316 : Selected components are not allowed for XXX since type YYY is private here.
</p>
<p>
<i>
If a type is private, then record field selectors may not be used. In pre- and post-conditions, a proof function can be declared to yield the required attribute of a private type.
</i>
</p>
<a name="semantic-317"></a>
<p>
*** Semantic Error : 317 : Tilde, in a function return annotation, may only be applied to an external variable of mode IN.
</p>
<p>
<i>
The tilde decoration indicates the initial value of a variable or parameter which is both imported and exported. A function may not have an explicit side effect on a program variable and so cannot be regarded as exporting such a variable. For modelling purposes a read of an external (stream) variable is regarded as having a side effect (outside the SPARK boundary). Since it may be necessary to refer to the initial value of the external variable, before this implicit side effect occurs, the use of tilde is allowed only for external variables of mode IN which are globally referenced by function.
</i>
</p>
<a name="semantic-318"></a>
<p>
*** Semantic Error : 318 : Tilde or Percent may only be applied to variables.
</p>
<p>
<i>
The tilde decoration indicates the initial value of a variable or parameter which is both imported and exported. Percent indicates the value of a variable on entry to a for loop; this message occurs if either operator is applied to any other object.
</i>
</p>
<a name="semantic-319"></a>
<p>
*** Semantic Error : 319 : Tilde may only be applied to a variable which is both imported and exported.
</p>
<p>
<i>
The tilde decoration indicates the initial value of a variable or parameter which is both imported and exported; this message occurs if the variable concerned is either exported only or imported only in which case no distinction between its initial and final value is required.
</i>
</p>
<a name="semantic-320"></a>
<p>
*** Semantic Error : 320 : Tilde or Percent may only be applied to an entire variable.
</p>
<p>
<i>
Tilde (and %) may not be applied to an element of an array or field of a record. e.g. to indicate the initial value of the Ith element of array V use V~(I) not V(I)~.
</i>
</p>
<a name="semantic-321"></a>
<p>
*** Semantic Error : 321 : Tilde may not appear in pre-conditions.
</p>
<p>
<i>
Since it does not make sense to refer to anything other than the initial value of a variable in a pre-condition there is no need to use tilde to distinguish initial from final values.
</i>
</p>
<a name="semantic-322"></a>
<p>
*** Semantic Error : 322 : Only imports may be referenced in pre-conditions or return expressions.
</p>
<p>
<i>
Pre-conditions are concerned with the initial values of information carried into a subprogram. Since only imports can do this only imports can appear in pre-condition expressions.
</i>
</p>
<a name="semantic-323"></a>
<p>
*** Semantic Error : 323 : Updates may only be applied to records or arrays.
</p>
<p>
<i>
The extended SPARK update syntax is only used to express changes to components of a structured variable.
</i>
</p>
<a name="semantic-324"></a>
<p>
*** Semantic Error : 324 : Only one field name may appear here.
</p>
<p>
<i>
When using the extended SPARK update syntax for a record, you can not update more than one element in each clause of the update. For example, you cannot use [x,y => z], you must instead use [x => z; y => z].
</i>
</p>
<a name="semantic-325"></a>
<p>
*** Semantic Error : 325 : Type XXX has not been declared.
</p>
<p>
<i>
Occurs if a type is "announced" as part of an own variable clause and the end of the package is reached without an Ada declaration for a type of this name being found.
</i>
</p>
<a name="semantic-326"></a>
<p>
*** Semantic Error : 326 : Predicate is not boolean.
</p>
<p>
<i>
Occurs anywhere where a proof context is found not to be a boolean expression.
</i>
</p>
<a name="semantic-327"></a>
<p>
*** Semantic Error : 327 : XXX is a global variable which may not be updated in a function subprogram.
</p>
<a name="semantic-328"></a>
<p>
*** Semantic Error : 328 : The identifier XXX (exported by called subprogram) may not be updated in a function subprogram.
</p>
<p>
<i>
Occurs if a function calls a procedure which exports a global variable; this would create an illegal side-effect of the function.
</i>
</p>
<a name="semantic-329"></a>
<p>
*** Semantic Error : 329 : Illegal function call.
</p>
<p>
<i>
Issued if a call is made to a user-defined subprogram in a package initialization part.
</i>
</p>
<a name="semantic-330"></a>
<p>
*** Semantic Error : 330 : Illegal use of an own variable not of this package.
</p>
<p>
<i>
Issued if an attempt is made, in a package initialization part, to update an own variable of a non-enclosing package.
</i>
</p>
<a name="semantic-331"></a>
<p>
*** Semantic Error : 331 : Private types may not be unconstrained arrays.
</p>
<a name="semantic-332"></a>
<p>
*** Semantic Error : 332 : This private type was not declared as limited.
</p>
<p>
<i>
Issued where the type contains a component which is a limited private type, but where the declaration of this type in the visible part of the package does not specify that the type is limited.
</i>
</p>
<a name="semantic-333"></a>
<p>
*** Semantic Error : 333 : Initialization of XXX is not announced in the initialization clause of this package.
</p>
<p>
<i>
Issued when an own variable is initialized either by assignment or by having a pragma Import attached to it when initialization of the variable is not announced in its package's own variable initialization specification.
</i>
</p>
<a name="semantic-334"></a>
<p>
*** Semantic Error : 334 : Identifier XXX is not the name of a function.
</p>
<a name="semantic-335"></a>
<p>
*** Semantic Error : 335 : This annotation should be placed with the declaration of function XXX.
</p>
<p>
<i>
Issued if a function is declared in a package specification without an annotation but one is then supplied on the function body.
</i>
</p>
<a name="semantic-336"></a>
<p>
*** Semantic Error : 336 : Unexpected annotation - all annotations required for function XXX have already occurred.
</p>
<a name="semantic-337"></a>
<p>
*** Semantic Error : 337 : Package XXX may not be used as a prefix here.
</p>
<p>
<i>
Selected component notation may not be used in places where an item is directly visible.
</i>
</p>
<a name="semantic-338"></a>
<p>
*** Semantic Error : 338 : Scalar parameter XXX is of mode in out and must appear as an import.
</p>
<p>
<i>
Parameters passed as mode in out must be listed as imports in the subprogram's dependency relation if they are of scalar types. The rule also applies to a parameter of a private type if its full declaration is scalar.
</i>
</p>
<a name="semantic-339"></a>
<p>
*** Semantic Error : 339 : Subprogram XXX was not declared in package YYY.
</p>
<a name="semantic-340"></a>
<p>
*** Semantic Error : 340 : Only operators may be renamed in package specifications.
</p>
<p>
<i>
User-declared subprograms may not be renamed in package specifications although the implicitly declared function subprograms associated with operators may be.
</i>
</p>
<a name="semantic-341"></a>
<p>
*** Semantic Error : 341 : A range may not appear here.
</p>
<p>
<i>
Issued if a range is found where a single value is expected, for example, if an array slice is constructed.
</i>
</p>
<a name="semantic-342"></a>
<p>
*** Semantic Error : 342 : This proof annotation should be placed with the declaration of subprogram XXX.
</p>
<p>
<i>
Like global and derives annotations, proof annotations should be placed on the first appearance of a subprogram. There may also be a requirement for a second proof annotation on a subprogram body where it references an abstract own variable.
</i>
</p>
<a name="semantic-343"></a>
<p>
*** Semantic Error : 343 : Unexpected proof annotation - all annotations required for subprogram XXX have already occurred.
</p>
<p>
<i>
Issued if a second proof annotation for a subprogram is found but the subprogram does not reference any abstract own variables. A second annotation is only required where it is necessary to express both an abstract (external) and a refined (internal) view of an operation.
</i>
</p>
<a name="semantic-399"></a>
<p>
*** Semantic Error : 399 : Range error in annotation expression.
</p>
<p>
<i>
Issued if a proof annotation contains an expression that would cause a constraint error if it were in an executable Ada statement. For example: "--# post X = T'Succ(T'Last);" VCs generated from such malformed predicates would always be unprovable.
</i>
</p>
<a name="semantic-400"></a>
<p>
*** Semantic Error : 400 : Expression contains division by zero.
</p>
<p>
<i>
Issued when a static expression, evaluated using perfect arithmetic, is found to contain a division by zero.
</i>
</p>
<a name="semantic-401"></a>
<p>
*** Semantic Error : 401 : Illegal numeric literal.
</p>
<p>
<i>
Issued when a numeric literal is illegal because it contains, for example, digits not compatible with its number base.
</i>
</p>
<a name="semantic-402"></a>
<p>
*** Semantic Error : 402 : Constraint_Error will be raised here.
</p>
<p>
<i>
Issued whenever a static expression would cause a constraint error. e.g. assigning a value to a constant outside the constant's type range. In SPARK a static expression may not yield a value which violates a range constraint.
</i>
</p>
<a name="semantic-403"></a>
<p>
*** Semantic Error : 403 : Argument value is inconsistent with the number of dimensions of array type XXX.
</p>
<p>
<i>
Issued when an array attribute containing an argument is found and the value of the argument is inconsistent with the number of dimensions of the array type to which it is being applied.
</i>
</p>
<a name="semantic-407"></a>
<p>
*** Semantic Error : 407 : This choice overlaps a previous one.
</p>
<p>
<i>
Choices in case statements and array aggregates may not overlap.
</i>
</p>
<a name="semantic-408"></a>
<p>
*** Semantic Error : 408 : Case statement is incomplete.
</p>
<p>
<i>
A case statement must either explicitly supply choices to cover the whole range of the (sub)type of the controlling expression, or it must supply an others choice.
</i>
</p>
<a name="semantic-409"></a>
<p>
*** Semantic Error : 409 : Empty range specified.
</p>
<p>
<i>
In SPARK, no static range is permitted to be null.
</i>
</p>
<a name="semantic-410"></a>
<p>
*** Semantic Error : 410 : Choice out of range.
</p>
<p>
<i>
The choices in case statements and array aggregates must be within the constraints of the appropriate (sub)type.
</i>
</p>
<a name="semantic-411"></a>
<p>
*** Semantic Error : 411 : Others clause required.
</p>
<p>
<i>
Issued where an others clause is required to satisfy the Ada language rules.
</i>
</p>
<a name="semantic-412"></a>
<p>
*** Semantic Error : 412 : Explicit boolean range not permitted.
</p>
<a name="semantic-413"></a>
<p>
*** Semantic Error : 413 : Invalid range constraint.
</p>
<p>
<i>
Issued where a range constraint is outside the range of the (sub)type to which the constraint applies.
</i>
</p>
<a name="semantic-414"></a>
<p>
*** Semantic Error : 414 : Array aggregate is incomplete.
</p>
<p>
<i>
An array aggregate must either explicitly supply values for all array elements or provide an others clause.
</i>
</p>
<a name="semantic-415"></a>
<p>
*** Semantic Error : 415 : Too many entries in array aggregate.
</p>
<p>
<i>
Issued where an array aggregate using positional association contains more entries than required by the array index type.
</i>
</p>
<a name="semantic-416"></a>
<p>
*** Semantic Error : 416 : Type may not have an empty range.
</p>
<a name="semantic-417"></a>
<p>
*** Semantic Error : 417 : String subtypes must have a lower index bound of 1.
</p>
<a name="semantic-418"></a>
<p>
*** Semantic Error : 418 : Index upper and/or lower bounds do not match those expected.
</p>
<p>
<i>
Issued where assignment, association or type conversion is attempted between two different constrained subtypes of the same unconstrained array type, and where the index bounds do not match.
</i>
</p>
<a name="semantic-419"></a>
<p>
*** Semantic Error : 419 : YYY.XXX has been renamed locally, so the prefix YYY must not be used.
</p>
<p>
<i>
When an entity is renamed, the fully qualified name is no longer visible, and so must not be used.
</i>
</p>
<a name="semantic-420"></a>
<p>
*** Semantic Error : 420 : Array index(es) not convertible.
</p>
<p>
<i>
Issued when an attempt is made to convert between two arrays whose indexes are neither of the same type nor numeric.
</i>
</p>
<a name="semantic-421"></a>
<p>
*** Semantic Error : 421 : Array components are not of the expected type.
</p>
<p>
<i>
Issued when a type conversion attempts to convert between two array types whose components are of different types.
</i>
</p>
<a name="semantic-422"></a>
<p>
*** Semantic Error : 422 : Array component constraints do not match those expected.
</p>
<p>
<i>
Issued when a type conversion attempts to convert between two array types whose components are of the same type but do not have constraints which can be statically determined to be identical.
</i>
</p>
<a name="semantic-423"></a>
<p>
*** Semantic Error : 423 : Array has different number of dimensions from that expected.
</p>
<p>
<i>
Issued when attempting to convert between two array types which have different numbers of dimensions.
</i>
</p>
<a name="semantic-424"></a>
<p>
*** Semantic Error : 424 : Attributes are not permitted in a String concatenation expression.
</p>
<p>
<i>
Character attributes such as 'Val, 'Pos, 'Succ and 'Pred are not permitted below a concatentation operator in a String expression.
</i>
</p>
<a name="semantic-425"></a>
<p>
*** Semantic Error : 425 : String literals may not be converted.
</p>
<p>
<i>
Issued if the argument of a type conversion is a string literal. A common cause is an attempt to type qualify a string and accidentally omitting the tick character.
</i>
</p>
<a name="semantic-500"></a>
<p>
*** Semantic Error : 500 : Mode expected.
</p>
<p>
<i>
Issued when performing data flow analysis only where a subprogram has no dependency clause and its global variables have not been given modes in the global annotation.
</i>
</p>
<a name="semantic-501"></a>
<p>
*** Semantic Error : 501 : Dependency relation expected.
</p>
<p>
<i>
A dependency relation is required for each procedure if information flow analysis is to be performed.
</i>
</p>
<a name="semantic-502"></a>
<p>
*** Semantic Error : 502 : Exportation of XXX is incompatible with its global mode.
</p>
<p>
<i>
Issued when a procedure has both a global annotation with modes and a dependency relation, and a global of mode in is listed as an export in the dependency relation.
</i>
</p>
<a name="semantic-503"></a>
<p>
*** Semantic Error : 503 : Importation of XXX is incompatible with its global mode.
</p>
<p>
<i>
Issued when a procedure has both a global annotation with modes and a dependency relation, and a global of mode out is listed as an import in the dependency relation.
</i>
</p>
<a name="semantic-504"></a>
<p>
*** Semantic Error : 504 : Parameter XXX is of mode in out and must appear as an import.
</p>
<a name="semantic-505"></a>
<p>
*** Semantic Error : 505 : Global variable XXX is of mode in out and must appear as an import.
</p>
<p>
<i>
Issued where a procedure has both a global annotation with modes and a dependency relation, and a global variable of mode in out is not listed as an import in the dependency relation.
</i>
</p>
<a name="semantic-506"></a>
<p>
*** Semantic Error : 506 : Parameter XXX is of mode in out and must appear as an export.
</p>
<a name="semantic-507"></a>
<p>
*** Semantic Error : 507 : Global variable XXX is of mode in out and must appear as an export.
</p>
<p>
<i>
Issued where a procedure has both a global annotation with modes and a dependency relation, and a global variable of mode in out is not listed as an export in the dependency relation.
</i>
</p>
<a name="semantic-508"></a>
<p>
*** Semantic Error : 508 : This global variable is a parameter of mode in and can only have the global mode in.
</p>
<a name="semantic-509"></a>
<p>
*** Semantic Error : 509 : Unexpected refined dependency relation.
</p>
<p>
<i>
When using refinement in automatic flow analysis mode, if there is a dependency relation on the subprogram specification then there must also be one on the body. Similarly, if there is no dependency relation on the specification then the body is not permitted to have one.
</i>
</p>
<a name="semantic-550"></a>
<p>
*** Semantic Error : 550 : use type clauses may only be used in SPARK95: clause ignored.
</p>
<a name="semantic-551"></a>
<p>
*** Semantic Error : 551 : All operators for type XXX are already visible.
</p>
<a name="semantic-552"></a>
<p>
*** Semantic Error : 552 : The type XXX already appears in the use type clause.
</p>
<a name="semantic-554"></a>
<p>
*** Semantic Error : 554 : XXX is a limited private type for which no operators can be made visible.
</p>
<a name="semantic-555"></a>
<p>
*** Semantic Error : 555 : XXX is not mentioned in an earlier with clause of this compilation unit.
</p>
<a name="semantic-600"></a>
<p>
*** Semantic Error : 600 : pragma Import has a minimum of 2 and a maximum of 4 parameters.
</p>
<a name="semantic-601"></a>
<p>
*** Semantic Error : 601 : Convention, Entity, External_Name or Link_Name expected.
</p>
<a name="semantic-602"></a>
<p>
*** Semantic Error : 602 : An association for XXX has already been given.
</p>
<a name="semantic-603"></a>
<p>
*** Semantic Error : 603 : No association for XXX was given.
</p>
<a name="semantic-604"></a>
<p>
*** Semantic Error : 604 : This package may not have a body - consider use of pragma Elaborate_Body.
</p>
<p>
<i>
In Ada 95, a package body is illegal unless it is required for the purpose of providing a subprogram body, or unless this pragma is used. This error is issued where a package body is found for a package whose specification does not require a body.
</i>
</p>
<a name="semantic-605"></a>
<p>
*** Semantic Error : 605 : pragma Elaborate_Body has one parameter.
</p>
<a name="semantic-606"></a>
<p>
*** Semantic Error : 606 : This expression does not represent the expected package name XXX.
</p>
<p>
<i>
Issued when the parameter to a pragma Elaborate_Body is invalid.
</i>
</p>
<a name="semantic-607"></a>
<p>
*** Semantic Error : 607 : This package requires a body and must therefore include either pragma Elaborate_Body or a subprogram declaration.
</p>
<p>
<i>
Issued where a package specification contains no subprogram declarations, but whose own variables (as specified in the package annotation) are not all declared (and initialized where appropriate) in the package specification. This is because such a package is not allowed a body in Ada 95 unless either the pragma is given or a subprogram declared.
</i>
</p>
<a name="semantic-608"></a>
<p>
*** Semantic Error : 608 : Reduced accuracy subtypes of real numbers are considered obsolescent and are not supported by SPARK.
</p>
<a name="semantic-609"></a>
<p>
*** Semantic Error : 609 : This entity cannot be assigned to.
</p>
<a name="semantic-610"></a>
<p>
*** Semantic Error : 610 : Child packages may not be used in SPARK83.
</p>
<a name="semantic-611"></a>
<p>
*** Semantic Error : 611 : Illegal use of deferred constant prior to its full declaration.
</p>
<a name="semantic-613"></a>
<p>
*** Semantic Error : 613 : Illegal name for body stub.
</p>
<p>
<i>
Issued if a dotted name appears in a body stub as in "package body P.Q is separate". No legal stub could ever have such a name.
</i>
</p>
<a name="semantic-614"></a>
<p>
*** Semantic Error : 614 : Child packages may be declared only at library level.
</p>
<p>
<i>
Issued if an attempt is made to declare a child package which is embedded in a package or subprogram.
</i>
</p>
<a name="semantic-615"></a>
<p>
*** Semantic Error : 615 : Name does not match name of package.
</p>
<p>
<i>
Issued if the closing identifier of a package has a different number of identifiers from the name originally given for the package. For example "package P.Q is ... end P.Q.R;".
</i>
</p>
<a name="semantic-616"></a>
<p>
*** Semantic Error : 616 : The private package XXX is not visible at this point.
</p>
<p>
<i>
Issued if an attempt is made to with or inherit a private package from the visible part of a public package.
</i>
</p>
<a name="semantic-617"></a>
<p>
*** Semantic Error : 617 : Public sibling XXX is not visible at this point.
</p>
<p>
<i>
Arises from attempting to inherit a public sibling child package from a private child package.
</i>
</p>
<a name="semantic-618"></a>
<p>
*** Semantic Error : 618 : The owner of the current package does not inherit the package XXX.
</p>
<p>
<i>
A private descendent (although it may be a public package) can only inherit a remote package if its parent also inherits it; this is a analogous to the behaviour of embedded packages which may also only inherit a remote package if their enclosing package also does so.
</i>
</p>
<a name="semantic-619"></a>
<p>
*** Semantic Error : 619 : The package XXX is not owned by the current package.
</p>
<p>
<i>
This message indicates an attempt to claim that own variables of a package other than a private child package of the current package are refinement constituents of an abstract own variable of the current package.
</i>
</p>
<a name="semantic-620"></a>
<p>
*** Semantic Error : 620 : Own variables here must be refinement constituents in package owner XXX.
</p>
<p>
<i>
Own variables of private child packages must appear as refinement constituents of the package which owns the child. If the Examiner has seen the owner package body before processing the child and has not found the required refinement constituent then this message results on processing the child.
</i>
</p>
<a name="semantic-621"></a>
<p>
*** Semantic Error : 621 : Own variable XXX expected as a refinement constituent in this package.
</p>
<p>
<i>
Own variables of private child packages must appear as refinement constituents of the package which owns the child. If the Examiner has seen a child package which declares an own variable before examining its owner’s body then this message is issued if the owner lacks the required refinement constituent declaration.
</i>
</p>
<a name="semantic-622"></a>
<p>
*** Semantic Error : 622 : Own variable XXX did not occur in an initialization specification.
</p>
<p>
<i>
Issued if an own variable appears in an initialization clause and is also a refinement constituent of an own variable which is not marked as initialized.
</i>
</p>
<a name="semantic-623"></a>
<p>
*** Semantic Error : 623 : Own variable XXX occurred in an initialization specification.
</p>
<p>
<i>
Issued if an own variable does not appear in an initialization clause and is also a refinement constituent of an own variable that is marked as initialized.
</i>
</p>
<a name="semantic-624"></a>
<p>
*** Semantic Error : 624 : All operators from ancestor package XXX are already visible.
</p>
<p>
<i>
A package must appear in a <b>with</b> clause before types declared in it can be specified in a <b>use type</b> clause.
</i>
</p>
<a name="semantic-626"></a>
<p>
*** Semantic Error : 626 : Global/derives/declare on generic subprogram instantiation is not allowed.
</p>
<a name="semantic-628"></a>
<p>
*** Semantic Error : 628 : Formal parameter of the instantiation of subprogram XXX is not allowed.
</p>
<a name="semantic-629"></a>
<p>
*** Semantic Error : 629 : The generic subprogram XXX has no generic formal parameters.
</p>
<a name="semantic-630"></a>
<p>
*** Semantic Error : 630 : XXX is not the name of generic subprogram.
</p>
<p>
<i>
Only generic subprogram can be instantiated.
</i>
</p>
<a name="semantic-631"></a>
<p>
*** Semantic Error : 631 : Generic function found where a generic procedure was expected.
</p>
<p>
<i>
Subprogram kind of generic and its instantiation must match.
</i>
</p>
<a name="semantic-632"></a>
<p>
*** Semantic Error : 632 : Generic procedure found where a generic function was expected.
</p>
<p>
<i>
Subprogram kind of generic and its instantiation must match.
</i>
</p>
<a name="semantic-635"></a>
<p>
*** Semantic Error : 635 : Incorrect number of generic actual parameters for instantiation of generic unit XXX.
</p>
<p>
<i>
The number of generic formal and actual parameters must match exactly.
</i>
</p>
<a name="semantic-636"></a>
<p>
*** Semantic Error : 636 : Type XXX is not compatible with generic formal parameter YYY.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-637"></a>
<p>
*** Semantic Error : 637 : User-defined generic units are not permitted in SPARK 83.
</p>
<p>
<i>
There are weaknesses in the generic type model of Ada 83 that prevent the implementation of a safe subset of generics in SPARK 83. These deficiencies are overcome in Ada 95. SPARK 83 users may employ the predefined unit Unchecked_Conversion only.
</i>
</p>
<a name="semantic-638"></a>
<p>
*** Semantic Error : 638 : Unexpected global annotation. A generic subprogram may not reference or update global variables.
</p>
<p>
<i>
A standalone generic subprogram may not have a global annotation. Note that a subprogram in a generic package may have a global annotation as long as it only refers to own variables that are local to the package.
</i>
</p>
<a name="semantic-639"></a>
<p>
*** Semantic Error : 639 : A generic formal object may only have default mode or mode in.
</p>
<p>
<i>
SPARK restricts formal objects to being constants in order to avoid concealed information flows.
</i>
</p>
<a name="semantic-640"></a>
<p>
*** Semantic Error : 640 : A generic formal object may only be instantiated with a constant expression.
</p>
<p>
<i>
SPARK restricts formal objects to being constants in order to avoid concealed information flows.
</i>
</p>
<a name="semantic-641"></a>
<p>
*** Semantic Error : 641 : There is no generic subprogram declaration named XXX so a generic body of that name cannot be declared here.
</p>
<p>
<i>
A generic body must be preceded by a generic declaration of the same name.
</i>
</p>
<a name="semantic-645"></a>
<p>
*** Semantic Error : 645 : Actual array element XXX is not compatible with the element type YYY of the generic formal parameter.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-646"></a>
<p>
*** Semantic Error : 646 : Actual array index XXX is not compatible with the index type YYY of the generic formal parameter.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-647"></a>
<p>
*** Semantic Error : 647 : Actual array XXX has more dimensions than formal array YYY.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-648"></a>
<p>
*** Semantic Error : 648 : Actual array XXX has fewer dimensions than formal array YYY.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-649"></a>
<p>
*** Semantic Error : 649 : Actual array XXX is constrained but the associated formal YYY is unconstrained.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-650"></a>
<p>
*** Semantic Error : 650 : Actual array XXX is unconstrained but the associated formal YYY is constrained.
</p>
<p>
<i>
See ALRM 12.5. Each generic formal type parameter must be supplied with an actual type which is of a compatible class. Note that SPARK does not have default values for such associations.
</i>
</p>
<a name="semantic-651"></a>
<p>
*** Semantic Error : 651 : Variables of generic types may not be initialized at declaration.
</p>
<p>
<i>
In non-generic code we statically know the value being assigned to the variable and can check that it is in range. In the case of a generic we cannot do this because we do not know the bounds of the variable's type. The variable may, however, be assigned to in the sequence of statements in the generic body because generation of run-time checks will provide suitable protection from out-of-range values.
</i>
</p>
<a name="semantic-652"></a>
<p>
*** Semantic Error : 652 : Subtypes of generic types are not permitted.
</p>
<p>
<i>
In non-generic code we statically know the values being used as the range bounds for a subtype and can check that they are in range. In the case of a generic we cannot do this because we do not know the bounds of the variable's type.
</i>
</p>
<a name="semantic-653"></a>
<p>
*** Semantic Error : 653 : Constants of generic types are not permitted.
</p>
<p>
<i>
In non-generic code we statically know the value being assigned to the constant and can check that it is in range. In the case of a generic we cannot do this because we do not know the bounds of the constant's type. A variable, assigned to in the sequence of statements in the generic body, may be a suitable substitute for such a constant.
</i>
</p>
<a name="semantic-654"></a>
<p>
*** Semantic Error : 654 : XXX is a generic subprogram which must be instantiated before it can be called.
</p>
<p>
<i>
Generic units provide a template for creating callable units and are not directly callable.
</i>
</p>
<a name="semantic-655"></a>
<p>
*** Semantic Error : 655 : Invalid prefix, XXX is a generic package.
</p>
<p>
<i>
Components of generic packages cannot be accessed directly. First instantiate the package and then access components of the instantiation.
</i>
</p>
<a name="semantic-656"></a>
<p>
*** Semantic Error : 656 : The only currently supported attribute in this context is 'Always_Valid.
</p>
<a name="semantic-657"></a>
<p>
*** Semantic Error : 657 : A 'Always_Valid assertion requires a variable here.
</p>
<p>
<i>
The 'Always_Valid assertion can only be applied to variables or to components of record variables.
</i>
</p>
<a name="semantic-658"></a>
<p>
*** Semantic Error : 658 : The object in this assertion must be scalar or a non-tagged aggregation of scalar components.
</p>
<p>
<i>
The 'Always_Valid assertion can only be applied to objects which are: (1) of a scalar type, (2) a one dimensional array of scalar components, (3) an entire record variable of a non-tagged type with all components that are either scalar or an array of scalar components, (4) an array variable whose components are records satisfying (3). Additionally a field of a record satisfying these constraints may be marked individually as always valid.
</i>
</p>
<a name="semantic-659"></a>
<p>
*** Semantic Error : 659 : A 'Always_Valid assertion must be in the same declarative region as contains the declaration of the variable to which it refers.
</p>
<a name="semantic-660"></a>
<p>
*** Semantic Error : 660 : A 'Always_Valid assertion must not be applied to an object already marked as always valid.
</p>
<a name="semantic-662"></a>
<p>
*** Semantic Error : 662 : Only Mode in own variables and constituents can be marked using 'Always_Valid.
</p>
<p>
<i>
The 'Always_Valid assertion can only be applied to variables which are own variables with the mode in, or to subcomponents of records which are mode in own variables.
</i>
</p>
<a name="semantic-700"></a>
<p>
*** Semantic Error : 700 : Mode 'in out' may not be applied to own variables or their refinement constituents.
</p>
<p>
<i>
Own variables may be given a mode to indicate that they are system level inputs or outputs (i.e. they obtain values from or pass values to the external environment). Since effective SPARK design strictly separates inputs from outputs the mode 'in out' is not permitted.
</i>
</p>
<a name="semantic-701"></a>
<p>
*** Semantic Error : 701 : The mode of this refinement constituent is not consistent with its subject: XXX.
</p>
<p>
<i>
If an abstract own variable is given a mode then its refinement constituents must all be of the same mode.
</i>
</p>
<a name="semantic-702"></a>
<p>
*** Semantic Error : 702 : Own variable XXX must be given the mode 'in' to match its earlier announcement .
</p>
<p>
<i>
Issued if an own variable of an embedded package is not given the same mode as the earlier refinement constituent that announced it would exist.
</i>
</p>
<a name="semantic-703"></a>
<p>
*** Semantic Error : 703 : Own variable XXX must be given the mode 'out' to match its earlier announcement .
</p>
<p>
<i>
Issued if an own variable of an embedded package is not given the same mode as the earlier refinement constituent that announced it would exist.
</i>
</p>
<a name="semantic-704"></a>
<p>
*** Semantic Error : 704 : Own variable XXX may not have a mode because one was not present in its earlier announcement .
</p>
<p>
<i>
Issued if an own variable of an embedded package is given a mode when the earlier refinement constituent that announced it would exist did not have one.
</i>
</p>
<a name="semantic-705"></a>
<p>
*** Semantic Error : 705 : Refinement constituent XXX must be given the mode 'in' to match the child package own variable with which it is being associated.
</p>
<p>
<i>
If a refinement constituent is an own variable of a private package then the constituent must have the same mode as the own variable to which it refers.
</i>
</p>
<a name="semantic-706"></a>
<p>
*** Semantic Error : 706 : Refinement constituent XXX must be given the mode 'out' to match the child package own variable with which it is being associated.
</p>
<p>
<i>
If a refinement constituent is an own variable of a private package then the constituent must have the same mode as the own variable to which it refers.
</i>
</p>
<a name="semantic-707"></a>
<p>
*** Semantic Error : 707 : Refinement constituent XXX may not have a mode because one was not present on the child package own variable with which it is being associated.
</p>
<p>
<i>
If a refinement constituent is an own variable of a private package then the constituent can only be given a mode if the own variable to which it refers has one.
</i>
</p>
<a name="semantic-708"></a>
<p>
*** Semantic Error : 708 : Own variable XXX has a mode and may not appear in an initializes clause.
</p>
<p>
<i>
Mode own variables (stream variables) are implicitly initialized by the environment to which they are connected and may not appear in initializes clauses since this would require their explicit initialization.
</i>
</p>
<a name="semantic-709"></a>
<p>
*** Semantic Error : 709 : Own variable or constituent XXX has mode 'out' and may not be referenced by a function.
</p>
<p>
<i>
Functions are permitted to reference own variables that are either unmoded or of mode 'in'. Since mode 'out' own variables represent outputs to the environment, reading them in a function does not make sense and is not allowed.
</i>
</p>
<a name="semantic-710"></a>
<p>
*** Semantic Error : 710 : The own variable or constituent XXX is of mode 'in' and can only have global mode 'in'.
</p>
<p>
<i>
Global modes, if given, must be consistent with the modes of own variables that appear in the global list.
</i>
</p>
<a name="semantic-711"></a>
<p>
*** Semantic Error : 711 : The own variable or constituent XXX is of mode 'out' and can only have global mode 'out'.
</p>
<p>
<i>
Global modes, if given, must be consistent with the modes of own variables that appear in the global list.
</i>
</p>
<a name="semantic-712"></a>
<p>
*** Semantic Error : 712 : The own variable or constituent XXX is of either mode 'in' or mode 'out' and may not have global mode 'in out'.
</p>
<p>
<i>
Global modes, if given, must be consistent with the modes of own variables that appear in the global list.
</i>
</p>
<a name="semantic-713"></a>
<p>
*** Semantic Error : 713 : The own variable or constituent XXX is of mode 'in' and may not appear in a dependency clause as an export.
</p>
<p>
<i>
Own variables with mode 'in' denote system-level inputs; their exportation is not allowed.
</i>
</p>
<a name="semantic-714"></a>
<p>
*** Semantic Error : 714 : The own variable or constituent XXX is of mode 'out' and may not appear in a dependency clause as an import.
</p>
<p>
<i>
Own variables with mode 'out' denote system-level outputs; their importation is not allowed.
</i>
</p>
<a name="semantic-715"></a>
<p>
*** Semantic Error : 715 : Function XXX references external (stream) variables and may only appear directly in an assignment or return statement.
</p>
<p>
<i>
To avoid ordering effects, functions which globally access own variables which have modes (indicating that they are connected to the external environment) may only appear directly in assignment or return statements. They may not appear as actual parameters or in any other form of expression.
</i>
</p>
<a name="semantic-716"></a>
<p>
*** Semantic Error : 716 : External (stream) variable XXX may only appear directly in an assignment or return statement; or as an actual parameter to an unchecked conversion.
</p>
<p>
<i>
To avoid ordering effects, own variables which have modes (indicating that they are connected to the external environment) may only appear directly in assignment or return statements. They may not appear as actual parameters (other than to instantiations of Unchecked_Conversion) or in any other form of expression.
</i>
</p>
<a name="semantic-717"></a>
<p>
*** Semantic Error : 717 : External (stream) variable XXX is of mode 'in' and may not be assigned to.
</p>
<p>
<i>
Own variables with mode 'in' represent inputs to the system from the external environment. As such, assigning to them does not make sense and is not permitted.
</i>
</p>
<a name="semantic-718"></a>
<p>
*** Semantic Error : 718 : External (stream) variable XXX is of mode 'out' and may not be referenced.
</p>
<p>
<i>
Own variables with mode 'out' represent outputs to the external environment from the system. As such, referencing them does not make sense and is not permitted.
</i>
</p>
<a name="semantic-719"></a>
<p>
*** Semantic Error : 719 : External (stream) variables may not be referenced or updated during package elaboration.
</p>
<p>
<i>
Own variables with modes represent inputs and outputs between the external environment and the system. Referencing or updating them during package elaboration would introduce ordering effects and is not permitted.
</i>
</p>
<a name="semantic-720"></a>
<p>
*** Semantic Error : 720 : Variable XXX is an external (stream) variable and may not be initialized at declaration.
</p>
<p>
<i>
Own variables with modes represent inputs and outputs between the external environment and the system. Referencing or updating them during package elaboration would introduce ordering effects and is not permitted.
</i>
</p>
<a name="semantic-721"></a>
<p>
*** Semantic Error : 721 : This refined function global annotation may not reference XXX because it is an external (stream) variable whose abstract subject YYY does not have a mode.
</p>
<p>
<i>
Functions may be used to reference external (stream) variables and the Examiner generates the appropriate information flow to show that the value returned by the function is 'volatile'. If the abstract view of the same function shows it referencing an own variable which is not an external stream then the volatility of the function is concealed. The error can be removed either by making the abstract own variable a mode 'in' stream or by using a procedure instead of a function to read the refined stream variable.
</i>
</p>
<a name="semantic-722"></a>
<p>
*** Semantic Error : 722 : The mode on abstract global variable YYY must be made 'in out' to make it consistent with the referencing of mode 'in' external (stream) constituent XXX in the refined global annotation.
</p>
<p>
<i>
Where a procedure references an external (stream) variable of mode 'in' the Examiner constructs appropriate information flow to show that the input stream is 'volatile'. If the abstract view shows that the procedure obtains its result by simply reading an own variable which is not an external stream then the volatility is concealed. The error can be removed either by making the global mode of XXX 'in out' or making XXX an external (stream) variable of mode 'in'.
</i>
</p>
<a name="semantic-723"></a>
<p>
*** Semantic Error : 723 : Variable XXX must appear in this refined global annotation.
</p>
<p>
<i>
Issued when a global variable which is present in the first (abstract) global annotation is omitted from the second (refined) one.
</i>
</p>
<a name="semantic-724"></a>
<p>
*** Semantic Error : 724 : Exit label must match the label of the most closely enclosing loop statement.
</p>
<p>
<i>
If an exit statement names a loop label, then the most closely enclosing loop statement must have a matching label.
</i>
</p>
<a name="semantic-725"></a>
<p>
*** Semantic Error : 725 : Protected function or variable XXX may only appear directly in an assignment or return statement.
</p>
<p>
<i>
To avoid ordering effects, protected functions may only appear directly in assignment or return statements. They may not appear as actual parameters or in any other form of expression. Ordering effects occur because the global state referenced by the protected function may be updated by another process during expression evaluation.
</i>
</p>
<a name="semantic-730"></a>
<p>
*** Semantic Error : 730 : A loop with no iteration scheme or exit statements may only appear as the last statement in the outermost scope of the main subprogram (or a task body when using the Ravenscar profile).
</p>
<p>
<i>
If a loop has neither an iteration scheme nor any exit statements then it will run forever. Any statements following it will be unreachable. SPARK only allows one such loop which must be the last statement of the main program.
</i>
</p>
<a name="semantic-750"></a>
<p>
*** Semantic Error : 750 : The identifier YYY.XXX is either undeclared or not visible at this point. An array type may not be used as its own index type.
</p>
<p>
<i>
The type mark used for the index of an array type declaration must not be the same as the name of the array type being declared.
</i>
</p>
<a name="semantic-751"></a>
<p>
*** Semantic Error : 751 : The identifier YYY.XXX is either undeclared or not visible at this point. A record type may not include fields of its own type.
</p>
<p>
<i>
The type mark given for a field in a record type declaration must not be the same as the name of the record type being declared.
</i>
</p>
<a name="semantic-752"></a>
<p>
*** Semantic Error : 752 : The identifier YYY.XXX is either undeclared or not visible at this point. This identifier must appear in a preceding legal global annotation or formal parameter list.
</p>
<p>
<i>
For an identifier to appear legally as an import in a derives annotation, it must be a formal parameter or must appear legally in a preceding global annotation and must be of mode 'in' or mode 'in out'.
</i>
</p>
<a name="semantic-753"></a>
<p>
*** Semantic Error : 753 : The identifier YYY.XXX is either undeclared or not visible at this point. This identifier must appear in a preceding legal global annotation or formal parameter list.
</p>
<p>
<i>
For an identifier to appear legally as an export in a derives annotation, it must be a formal parameter or must appear legally in a preceding global annotation and must be of mode 'out' or mode 'in out'.
</i>
</p>
<a name="semantic-754"></a>
<p>
*** Semantic Error : 754 : The identifier YYY.XXX is either undeclared or not visible at this point. This package must be both inherited and withed to be visible here.
</p>
<p>
<i>
For a package name to be visible in Ada context, it must appear in both the inherit clause and the with clause of the enclosing package.
</i>
</p>
<a name="semantic-755"></a>
<p>
*** Semantic Error : 755 : The identifier YYY.XXX is either undeclared or not visible at this point. A parent of a child package must be inherited to be visible here.
</p>
<p>
<i>
A parent of a child package must be inherited (but not withed) to be visible in that child.
</i>
</p>
<a name="semantic-756"></a>
<p>
*** Semantic Error : 756 : The identifier YYY.XXX is either undeclared or not visible at this point. The grandparent of a child package should not appear in this prefix.
</p>
<p>
<i>
A grandparent of a child package should not be included in prefixes referencing a declaration of the child package.
</i>
</p>
<a name="semantic-757"></a>
<p>
*** Semantic Error : 757 : The identifer XXX is either undeclared or not visible at this point. A record field name cannot be the same as its indicated type.
</p>
<a name="semantic-770"></a>
<p>
*** Semantic Error : 770 : If Any_Priority is defined, Priority and Interrupt_Priority must also be defined.
</p>
<p>
<i>
If the type Any_Priority is defined in package System, then the subtypes Priority and Interrupt_Priority must also be defined; if support for tasking is not required, then the definition of Any_Priority may be removed.
</i>
</p>
<a name="semantic-771"></a>
<p>
*** Semantic Error : 771 : The parent type of this subtype must be Any_Priority.
</p>
<p>
<i>
Ada 95 requires that both Priority and Interrupt_Priority be immediate subtypes of Any_Priority.
</i>
</p>
<a name="semantic-772"></a>
<p>
*** Semantic Error : 772 : The range of Priority must contain at least 30 values; LRM D.1(26).
</p>
<p>
<i>
Ada 95 requires that the range of the subtype Priority include at least 30 values; this requirement is stated in the Ada 95 Language Reference Manual at D.1(26).
</i>
</p>
<a name="semantic-773"></a>
<p>
*** Semantic Error : 773 : Priority'First must equal Any_Priority'First; LRM D.1(10).
</p>
<p>
<i>
Ada 95 requires that task priority types meet the following criteria, the second of which is relevant to this error: <li>subtype Any_Priority is Integer range implementation-defined; <li>subtype Priority is Any_Priority range Any_Priority'First .. implementation-defined; <li>subtype Interrupt_Priority is Any_Priority range Priority'Last+1 .. Any_Priority'Last.
</i>
</p>
<a name="semantic-774"></a>
<p>
*** Semantic Error : 774 : Interrupt_Priority'First must equal Priority'Last + 1; LRM D.1(10).
</p>
<p>
<i>
Ada 95 requires that task priority types meet the following criteria, the third of which is relevant to this error: <li>subtype Any_Priority is Integer range implementation-defined; <li>subtype Priority is Any_Priority range Any_Priority'First .. implementation-defined; <li>subtype Interrupt_Priority is Any_Priority range Priority'Last+1 .. Any_Priority'Last.
</i>
</p>
<a name="semantic-775"></a>
<p>
*** Semantic Error : 775 : Interrupt_Priority'Last must equal Any_Priority'Last; LRM D.1(10).
</p>
<p>
<i>
Ada 95 requires that task priority types meet the following criteria, the third of which is relevant to this error: <li>subtype Any_Priority is Integer range implementation-defined; <li>subtype Priority is Any_Priority range Any_Priority'First .. implementation-defined; <li>subtype Interrupt_Priority is Any_Priority range Priority'Last+1 .. Any_Priority'Last.
</i>
</p>
<a name="semantic-776"></a>
<p>
*** Semantic Error : 776 : In SPARK95 mode, only packages Standard, System, Ada.Real_Time and Ada.Interrupts may be specified in the config file.
</p>
<p>
<i>
In SPARK95 mode, the packages that may be specified in the target configuration file are: Standard, System, Ada.Real_Time and Ada.Interrupts. The latter two are ignored unless the Ravenscar profile is selected.
</i>
</p>
<a name="semantic-777"></a>
<p>
*** Semantic Error : 777 : In package System, Priority must be an immediate subtype of Integer.
</p>
<p>
<i>
Ada 95, and hence SPARK95, defines Priority as being an immediate subtype of Integer.
</i>
</p>
<a name="semantic-778"></a>
<p>
*** Semantic Error : 778 : This identifier is not valid at this point in the target configuration file.
</p>
<p>
<i>
The specified identifier cannot be used here; it is most probably either not valid in the target configuration file at all, or might be valid in a different package, but not here.
</i>
</p>
<a name="semantic-779"></a>
<p>
*** Semantic Error : 779 : Definition of this package in the target configuration file is not allowed in SPARK83 mode.
</p>
<p>
<i>
In SPARK83 mode, only package Standard may be specified in the target configuration file.
</i>
</p>
<a name="semantic-780"></a>
<p>
*** Semantic Error : 780 : Type XXX must be private.
</p>
<p>
<i>
This type may only be declared as private in the target configuration file.
</i>
</p>
<a name="semantic-781"></a>
<p>
*** Semantic Error : 781 : The lower bound of a signed integer type declaration must be greater than or equal to System.Min_Int.
</p>
<p>
<i>
This error can only be generated in SPARK95 mode when the configuration file specifies a value for System.Min_Int.
</i>
</p>
<a name="semantic-782"></a>
<p>
*** Semantic Error : 782 : The upper bound of a signed integer type declaration must be less than or equal to System.Max_Int.
</p>
<p>
<i>
This error can only be generated in SPARK95 mode when the configuration file specifies a value for System.Max_Int.
</i>
</p>
<a name="semantic-783"></a>
<p>
*** Semantic Error : 783 : Modulus must be less than or equal to System.Max_Binary_Modulus.
</p>
<p>
<i>
This error can only be generated in SPARK95 mode when the configuration file specifies a value for System.Max_Binary_Modulus.
</i>
</p>
<a name="semantic-784"></a>
<p>
*** Semantic Error : 784 : System.Max_Binary_Modulus must be a positive power of 2.
</p>
<a name="semantic-785"></a>
<p>
*** Semantic Error : 785 : The number of digits specified exceeds the value defined for System.Max_Digits.
</p>
<p>
<i>
The maximum decimal precision for a floating point type, where a range specification has not been included, is defined by System.Max_Digits.
</i>
</p>
<a name="semantic-786"></a>
<p>
*** Semantic Error : 786 : The number of digits specified exceeds the value defined for System.Max_Base_Digits.
</p>
<p>
<i>
The maximum decimal precision for a floating point type, where a range specification has been included, is defined by System.Max_Base_Digits.
</i>
</p>
<a name="semantic-787"></a>
<p>
*** Semantic Error : 787 : Digits value must be positive.
</p>
<a name="semantic-788"></a>
<p>
*** Semantic Error : 788 : Delta value must be positive.
</p>
<a name="semantic-789"></a>
<p>
*** Semantic Error : 789 : The only currently supported type attribute in this context is 'Base.
</p>
<a name="semantic-790"></a>
<p>
*** Semantic Error : 790 : A base type assertion requires a type here.
</p>
<a name="semantic-791"></a>
<p>
*** Semantic Error : 791 : The base type in this assertion must be a predefined type.
</p>
<p>
<i>
Predefined types are those defined either by the language, or in package Standard, using the configuration file mechanism</i>.
</i>
</p>
<a name="semantic-792"></a>
<p>
*** Semantic Error : 792 : The types in this assertion must both be either floating point or signed integer.
</p>
<a name="semantic-793"></a>
<p>
*** Semantic Error : 793 : This base type must have a defined range in the configuration file.
</p>
<p>
<i>
If a predefined type is to be used in a base type assertion or in a derived type declaration, then it must appear in the configuration file and have a well-defined range.
</i>
</p>
<a name="semantic-794"></a>
<p>
*** Semantic Error : 794 : Range of subtype exceeds range of base type.
</p>
<a name="semantic-795"></a>
<p>
*** Semantic Error : 795 : A base type assertion must be in the same declarative region as that of the full type definition.
</p>
<a name="semantic-796"></a>
<p>
*** Semantic Error : 796 : This type already has a base type: either it already has a base type assertion, or is explicitly derived, or is a predefined type.
</p>
<p>
<i>
A base type assertion can only be given exactly once. Explicitly derived scalar types and predefined types never need a base type assertion.
</i>
</p>
<a name="semantic-797"></a>
<p>
*** Semantic Error : 797 : The base type in a floating point base type assertion must have a defined accuracy.
</p>
<a name="semantic-798"></a>
<p>
*** Semantic Error : 798 : The accuracy of the base type in a base type assertion must be at least that of the type which is the subject of the assertion.
</p>
<a name="semantic-799"></a>
<p>
*** Semantic Error : 799 : Only a simple type can be the subject of a base type assertion .
</p>
<a name="semantic-800"></a>
<p>
*** Semantic Error : 800 : Modulus must be a positive power of 2.
</p>
<p>
<i>
In SPARK, modular types must have a modulus which is a positive power of 2.
</i>
</p>
<a name="semantic-801"></a>
<p>
*** Semantic Error : 801 : Modular types may only be used in SPARK95.
</p>
<p>
<i>
Ada83 (and hence SPARK83) does not include modular types.
</i>
</p>
<a name="semantic-803"></a>
<p>
*** Semantic Error : 803 : Unary arithmetic operators are not permitted for modular types.
</p>
<p>
<i>
Unary arithmetic operators are of little value. The "abs" and "+" operators have no effect for modular types, and so are not required. The unary minus operator is a source of potential confusion, and so is not permitted in SPARK.
</i>
</p>
<a name="semantic-804"></a>
<p>
*** Semantic Error : 804 : Universal expression may not be implicitly converted to a modular type here. Left hand operand requires qualification to type XXX.
</p>
<p>
<i>
A universal expression cannot be used as the left hand operand of a binary operator if the right hand operand is of a modular type. Qualification of the left hand expression is required in this case.
</i>
</p>
<a name="semantic-805"></a>
<p>
*** Semantic Error : 805 : Universal expression may not be implicitly converted to a modular type here. Right hand operand requires qualification to type XXX.
</p>
<p>
<i>
A universal expression cannot be used as the right hand operand of a binary operator if the left hand operand is of a modular type. Qualification of the right hand expression is required in this case.
</i>
</p>
<a name="semantic-806"></a>
<p>
*** Semantic Error : 806 : Universal expression may not be implicitly converted to a modular type here. Right hand operand requires qualification.
</p>
<p>
<i>
A universal expression cannot be used as operand of an unary "not" operator if no type can be determined from the context of the expression. Qualification of the operand is required in this case.
</i>
</p>
<a name="semantic-814"></a>
<p>
*** Semantic Error : 814 : Default_Bit_Order must be of type Bit_Order.
</p>
<p>
<i>
The only possible type for the constant System.Default_Bit_Order is System.Bit_Order when it appears in the configuration file.
</i>
</p>
<a name="semantic-815"></a>
<p>
*** Semantic Error : 815 : The only allowed values of Default_Bit_Order are Low_Order_First and High_Order_First.
</p>
<p>
<i>
System.Bit_Order is implicity declared in package System when a configuration file is given. This is an enumeration type with only two literals Low_Order_First and High_Order_First.
</i>
</p>
<a name="semantic-820"></a>
<p>
*** Semantic Error : 820 : Abstract types are not currently permitted in SPARK.
</p>
<p>
<i>
Only non-abstract tagged types are currently supported. It is hoped to lift this restriction in a future Examiner release.
</i>
</p>
<a name="semantic-821"></a>
<p>
*** Semantic Error : 821 : This type declaration must be a tagged record because it's private type is tagged.
</p>
<p>
<i>
If a type is declared as "tagged private" then its full declaration must be a tagged record.
</i>
</p>
<a name="semantic-822"></a>
<p>
*** Semantic Error : 822 : XXX is not a tagged type; only tagged types may be extended.
</p>
<p>
<i>
In SPARK, "new" can only be used to declare a type extension; other derived types are not permitted.
</i>
</p>
<a name="semantic-823"></a>
<p>
*** Semantic Error : 823 : This type may not be extended in the same package in which it is declared.
</p>
<p>
<i>
SPARK only permits types from another library package to be extended. This rule prevents overloading of inherited operations.
</i>
</p>
<a name="semantic-824"></a>
<p>
*** Semantic Error : 824 : This package already extends a type from package XXX. Only one type extension per package is permitted.
</p>
<p>
<i>
SPARK only permits one type extension per package. This rule prevents overloading of inherited operations.
</i>
</p>
<a name="semantic-825"></a>
<p>
*** Semantic Error : 825 : Type XXX expected in order to complete earlier private extension.
</p>
<p>
<i>
Since SPARK only permits one type extension per package it follows that the declaration "new XXX with private" in a package visible part must be paired with "new XXX with record..." in its private part. The ancestor type XXX must be the same in both declarations.
</i>
</p>
<a name="semantic-826"></a>
<p>
*** Semantic Error : 826 : Type extension is not permitted in SPARK 83.
</p>
<p>
<i>
Type extension is an Ada 95 feature not included in Ada or SPARK 83.
</i>
</p>
<a name="semantic-827"></a>
<p>
*** Semantic Error : 827 : The actual parameter associated with a tagged formal parameter in an inherited operation must be an object not an expression.
</p>
<p>
<i>
There are several reasons for this SPARK rule. Firstly, Ada requires tagged parameters to be passed by reference and so an object must exist at least implicitly. Secondly, in order to perform flow analysis of inherited subprogram calls, the Examiner needs identify what subset of the information available at the point of call is passed to and from the called subprogram. Since information can only flow through objects it follows that actual parameter must be an object.
</i>
</p>
<a name="semantic-828"></a>
<p>
*** Semantic Error : 828 : Tagged types and tagged type extensions may only be declared in library-level package specifications.
</p>
<p>
<i>
This SPARK rule facilitates the main uses of tagged types while greatly simplifying visibility rules.
</i>
</p>
<a name="semantic-829"></a>
<p>
*** Semantic Error : 829 : Illegal re-declaration: this subprogram shares the same name as the inheritable root operation XXX but does not override it.
</p>
<p>
<i>
To avoid overloading, SPARK prohibits more than one potentially visible subprogram having the same name.
</i>
</p>
<a name="semantic-830"></a>
<p>
*** Semantic Error : 830 : A private type may not be implemented as a tagged type or an extension of a tagged type.
</p>
<p>
<i>
This rule means that a private type can only be implemented as a tagged type if the private type itself is tagged.
</i>
</p>
<a name="semantic-831"></a>
<p>
*** Semantic Error : 831 : Extended tagged types may only be converted in the direction of their root type.
</p>
<p>
<i>
This is an Ada rule: type conversions simply omit unused fields of the extended type. It follows that conversions must be in the direction of the root type.
</i>
</p>
<a name="semantic-832"></a>
<p>
*** Semantic Error : 832 : Only tagged objects, not expressions, may be converted.
</p>
<p>
<i>
For flow analysis purposes the Examiner needs to know what subset of the information in the unconverted view is available in the converted view. Since information can only flow through objects it follows that only objects can be converted.
</i>
</p>
<a name="semantic-833"></a>
<p>
*** Semantic Error : 833 : Invalid record aggregate: type XXX has a private ancestor.
</p>
<p>
<i>
If an extended type has a private ancestor then an extension aggregate must be used rather than a normal aggregate.
</i>
</p>
<a name="semantic-834"></a>
<p>
*** Semantic Error : 834 : Null records are only permitted if they are tagged.
</p>
<p>
<i>
An empty record can have no use in a SPARK program others than as a root type from which other types can be derived and extended. For this reason, null records are only allowed if they are tagged.
</i>
</p>
<a name="semantic-835"></a>
<p>
*** Semantic Error : 835 : XXX is not an extended tagged record type.
</p>
<p>
<i>
An extension aggregate is only appropriate if the record type it is defining is an extended record. A normal aggregate should be used for other record (and array) types.
</i>
</p>
<a name="semantic-836"></a>
<p>
*** Semantic Error : 836 : This expression does not represent a valid ancestor type of the aggregate XXX.
</p>
<p>
<i>
The expression before the reserved word "with" must be of an ancestor type of the overall aggregate type. In SPARK, the ancestor expression may not be a subtype mark.
</i>
</p>
<a name="semantic-837"></a>
<p>
*** Semantic Error : 837 : Invalid record aggregate: there is a private ancestor between the type of this expression and the type of the aggregate XXX.
</p>
<p>
<i>
The ancestor type can be an tagged type with a private extension; however, there must be no private extensions between the ancestor type and the type of the aggregate.
</i>
</p>
<a name="semantic-838"></a>
<p>
*** Semantic Error : 838 : Incomplete aggregate: null record cannot be used here because fields in XXX require values.
</p>
<p>
<i>
The aggregate form "with null record" can only be used if the type of the aggregate is a null record extension of the ancestor type. If any fields are added between the ancestor type and the aggregate type then values need to be supplied for them so "null record" is inappropriate.
</i>
</p>
<a name="semantic-839"></a>
<p>
*** Semantic Error : 839 : This package already contains a root tagged type or tagged type extension. Only one such declaration per package is permitted.
</p>
<p>
<i>
SPARK permits one root tagged type or one tagged type extension per package, but not both. This rule prevents the declaration of illegal operations with more than one controlling parameter.
</i>
</p>
<a name="semantic-840"></a>
<p>
*** Semantic Error : 840 : A tagged or extended type may not appear here. SPARK does not permit the declaration of primitive functions with controlling results.
</p>
<p>
<i>
A primitive function controlled by its return result would be almost unusable in SPARK because a data flow error would occur wherever it was used.
</i>
</p>
<a name="semantic-841"></a>
<p>
*** Semantic Error : 841 : The return type in the declaration of this function contained an error. It is not possible to check the validity of this return type.
</p>
<p>
<i>
Issued when there is an error in the return type on a function's initial declaration. In this situation we cannot be sure what return type is expected in the function's body. It would be misleading to simply report a type mismatch since the types might match perfectly and both be wrong. Instead, the Examiner reports the above error and refuses to analyse the function body until its specification is corrected.
</i>
</p>
<a name="semantic-842"></a>
<p>
*** Semantic Error : 842 : Pragma Atomic_Components is not permitted in SPARK when the Ravenscar profile is selected.
</p>
<a name="semantic-843"></a>
<p>
*** Semantic Error : 843 : Pragma Volatile_Components is not permitted in SPARK when the Ravenscar profile is selected.
</p>
<a name="semantic-844"></a>
<p>
*** Semantic Error : 844 : Missing or contradictory overriding_indicator for operation XXX. This operation successfully overrides its parent operation.
</p>
<p>
<i>
In SPARK2005, an operation which successfully overrides a parent operation must be specified as Overriding.
</i>
</p>
<a name="semantic-845"></a>
<p>
*** Semantic Error : 845 : Subprogram XXX does not successfully override a parent operation.
</p>
<p>
<i>
In SPARK2005, an overriding operation must successfully override an operation inherited from the parent.
</i>
</p>
<a name="semantic-850"></a>
<p>
*** Semantic Error : 850 : This construct may only be used when the Ravenscar profile is selected.
</p>
<p>
<i>
Support for concurrent features of the SPARK language, including protected objects, tasking, etc. are only supported when the Ravenscar profile is selected.
</i>
</p>
<a name="semantic-851"></a>
<p>
*** Semantic Error : 851 : The parameter to pragma Atomic must be a simple_name.
</p>
<p>
<i>
The parameter to pragma Atomic must be a simple_name; and may not be passed using a named association.
</i>
</p>
<a name="semantic-852"></a>
<p>
*** Semantic Error : 852 : pragma Atomic may only appear in the same immediate scope as the type to which it applies.
</p>
<p>
<i>
This is an Ada rule (pragma Atomic takes a local name see LRM 13.1(1)). Note that this precludes the use of pragma Atomic on a predefined type.
</i>
</p>
<a name="semantic-853"></a>
<p>
*** Semantic Error : 853 : pragma Atomic may only apply to a scalar base type, or to a non-tagged record type with exactly 1 field that is a predefined scalar type.
</p>
<p>
<i>
pragma Atomic may only be applied to base types that are scalar. (i.e. enumeration types, integer types, real types, modular types) or a non-tagged record type with a single field which is a predefined scalar type, such as Integer, Character or Boolean. As an additional special case, a record type with a single field of type System.Address is also allowed.
</i>
</p>
<a name="semantic-854"></a>
<p>
*** Semantic Error : 854 : pragma Atomic takes exactly one parameter.
</p>
<a name="semantic-855"></a>
<p>
*** Semantic Error : 855 : The type of own variable XXX is not consistent with its modifier.
</p>
<p>
<i>
An own variable with a task modifier must be of a task type. A task own variable must have the task modifier. An own variable with a protected modifier must be a protected object, suspension object or pragma atomic type. A protected or suspension object own variable must have the protected modifier.
</i>
</p>
<a name="semantic-858"></a>
<p>
*** Semantic Error : 858 : A variable that appears in a protects property list may not appear in a refinement clause.
</p>
<p>
<i>
A variable in a protects list is effectively protected and hence cannot be refined.
</i>
</p>
<a name="semantic-859"></a>
<p>
*** Semantic Error : 859 : A protected own variable may not appear in a refinement clause.
</p>
<p>
<i>
Protected state cannot be refined or be used as refinement constituents.
</i>
</p>
<a name="semantic-860"></a>
<p>
*** Semantic Error : 860 : Own variable XXX appears in a protects list and hence must appear in the initializes clause.
</p>
<p>
<i>
Protected state (including all refinement constituents) must be initialized.
</i>
</p>
<a name="semantic-861"></a>
<p>
*** Semantic Error : 861 : Both abstract own variable XXX and refinement constitutent YYY must have an Integrity property.
</p>
<p>
<i>
If an abstract own variable has an Integrity property, then so must all its refinement constituents, and vice-versa.
</i>
</p>
<a name="semantic-862"></a>
<p>
*** Semantic Error : 862 : Both abstract own variable XXX and refinement constitutent YYY must have the same Integrity value.
</p>
<p>
<i>
If both an abstract own variable and a refinement constituent have Integrity properties specified, then the value of the Integrity must be the same.
</i>
</p>
<a name="semantic-863"></a>
<p>
*** Semantic Error : 863 : Own variable XXX is protected and may not appear in an initializes clause.
</p>
<p>
<i>
Protected own variables must always be initialized, and should not appear in initializes annotations.
</i>
</p>
<a name="semantic-864"></a>
<p>
*** Semantic Error : 864 : Unexpected initialization specification - all own variables of this package are either implicitly initialized, or do not require initialization.
</p>
<p>
<i>
An own variable initialization clause and that of its refinement constituents must be consistent.
</i>
</p>
<a name="semantic-865"></a>
<p>
*** Semantic Error : 865 : Field XXX is part of the ancestor part of this aggregate and does not require a value here.
</p>
<p>
<i>
An extension aggregate must supply values for all fields that are part of the overall aggregate type but not those which are part of the ancestor part.
</i>
</p>
<a name="semantic-866"></a>
<p>
*** Semantic Error : 866 : The expression in a delay_until statement must be of type Ada.Real_Time.Time.
</p>
<p>
<i>
When the Ravenscar Profile is selected, the delay until statement may be used. The argument of this statement must be of type Ada.Real_Time.Time.
</i>
</p>
<a name="semantic-867"></a>
<p>
*** Semantic Error : 867 : Subprogram XXX contains a delay statement but does not have a delay property.
</p>
<p>
<i>
Any subprogram that may call delay until must have a delay property in a declare annotation. Your subprogram is directly or indirectly making a call to delay until.
</i>
</p>
<a name="semantic-868"></a>
<p>
*** Semantic Error : 868 : Protected object XXX may only be declared immediately within a library package.
</p>
<p>
<i>
This error message is issued if a type mark representing a protected type appears anywhere other than in a library level variable declaration or library-level own variable type announcement.
</i>
</p>
<a name="semantic-869"></a>
<p>
*** Semantic Error : 869 : Protected type XXX already contains an Entry declaration; only one Entry is permitted.
</p>
<p>
<i>
The Ravenscar profile prohibits a protected type from declaring more than one entry.
</i>
</p>
<a name="semantic-870"></a>
<p>
*** Semantic Error : 870 : Protected type XXX does not have any operations, at least one operation must be declared.
</p>
<p>
<i>
A protected type which provides no operations can never be used so SPARK requires the declaration of at least one.
</i>
</p>
<a name="semantic-871"></a>
<p>
*** Semantic Error : 871 : A type can only be explicitly derived from a predefined Integer or Floating Point type or from a tagged record type.
</p>
<a name="semantic-872"></a>
<p>
*** Semantic Error : 872 : Variable XXX is not protected; only protected items may be globally accessed by protected operations.
</p>
<p>
<i>
In order to avoid the possibility of shared data corruption, SPARK prohibits protected operations from accessing unprotected data items.
</i>
</p>
<a name="semantic-873"></a>
<p>
*** Semantic Error : 873 : This subprogram requires a global annotation which references the protected type name XXX.
</p>
<p>
<i>
In order to statically-detect certain bounded errors defined by the Ravenscar profile, SPARK requires every visible operation of protected type to globally reference the abstract state of the type.
</i>
</p>
<a name="semantic-874"></a>
<p>
*** Semantic Error : 874 : Protected state XXX must be initialized at declaration.
</p>
<p>
<i>
Because there is no guarantee that a concurrent thread that initializes a protected object will be executed before one that reads it, the only way we can be sure that a protected object is properly initialized is to do so at the point of declaration. You have either declared some protected state and not included an initialization or you have tried to initialize some protected state in package body elaboration.
</i>
</p>
<a name="semantic-875"></a>
<p>
*** Semantic Error : 875 : Protected type expected; access discriminants may only refer to protected types in SPARK.
</p>
<p>
<i>
Access discriminants have been allowed in SPARK solely to allow devices made up of co-operating Ravenscar-compliant units to be constructed. For this reason only protected types may appear in access discriminants.
</i>
</p>
<a name="semantic-876"></a>
<p>
*** Semantic Error : 876 : This protected type or task declaration must include either a pragma Priority or pragma Interrupt_Priority.
</p>
<p>
<i>
To allow the static detection of certain bounded errors defined by the Ravenscar profile, SPARK requires an explicitly-set priority for each protected type, task type or object of those types. The System.Default_Priority may used explicitly provided package System has been defined in the configuration file.
</i>
</p>
<a name="semantic-877"></a>
<p>
*** Semantic Error : 877 : Priority values require an argument which is an expression of type integer.
</p>
<a name="semantic-878"></a>
<p>
*** Semantic Error : 878 : This protected type declaration contains a pragma Attach_Handler and must therefore also include a pragma Interrupt_Priority.
</p>
<p>
<i>
To allow the static detection of certain bounded errors defined by the Ravenscar profile, SPARK requires an explicitly-set priority for each protected type or object. The System.Default_Priority may used explicitly provided package System has been defined in the configuration file.
</i>
</p>
<a name="semantic-879"></a>
<p>
*** Semantic Error : 879 : Unexpected pragma XXX: this pragma may not appear here.
</p>
<p>
<i>
pragma Interrupt_Priority must be the first item in a protected type declaration or task type declaration; pragma Priority must be the first item in a protected type declaration, task type declaration or the main program.
</i>
</p>
<a name="semantic-880"></a>
<p>
*** Semantic Error : 880 : Pragma Priority or Interrupt_Priority expected here.
</p>
<p>
<i>
Issued when a pragma other than Priority or Interrupt_Priority appears as the first item in a protected type or task type declaration.
</i>
</p>
<a name="semantic-881"></a>
<p>
*** Semantic Error : 881 : The priority of XXX must be in the range YYY.
</p>
<p>
<i>
See LRM D.1(17).
</i>
</p>
<a name="semantic-882"></a>
<p>
*** Semantic Error : 882 : Integrity property requires an argument which is an expression of type Natural.
</p>
<a name="semantic-883"></a>
<p>
*** Semantic Error : 883 : Pragma Interrupt_Handler may not be used; SPARK does not support the dynamic attachment of interrupt handlers [LRM C3.1(9)].
</p>
<p>
<i>
Interrupt_Handler is of no use unless dynamic attachment of interrupt handlers is to be used.
</i>
</p>
<a name="semantic-884"></a>
<p>
*** Semantic Error : 884 : Pragma Attach_Handler is only permitted immediately after the corresponding protected procedure declaration in a protected type declaration.
</p>
<p>
<i>
Pragma Attach_Handler may only be used within a protected type declaration. Furthermore, it must immediately follow a protected procedure declaration with the same name as the first argument to the pragma.
</i>
</p>
<a name="semantic-885"></a>
<p>
*** Semantic Error : 885 : Pragma Attach_Handler may only be applied to a procedure with no parameters.
</p>
<p>
<i>
See LRM C.3.1(5).
</i>
</p>
<a name="semantic-887"></a>
<p>
*** Semantic Error : 887 : A discriminant may only appear alone, not in an expression.
</p>
<p>
<i>
Issued when a task or protected type priority is set using an expression involving a discriminant. The use of such an expression greatly complicates the static evaluation of the priority of task or protected subtypes thus preventing the static elimination of certain Ravenscar bounded errors.
</i>
</p>
<a name="semantic-888"></a>
<p>
*** Semantic Error : 888 : Unexpected Delay, XXX already has a Delay property.
</p>
<p>
<i>
A procedure may only have a maximum of one delay annotation.
</i>
</p>
<a name="semantic-889"></a>
<p>
*** Semantic Error : 889 : The own variable XXX must have the suspendable property.
</p>
<p>
<i>
The type used to declare this object must be a protected type with and entry or a suspension object type.
</i>
</p>
<a name="semantic-890"></a>
<p>
*** Semantic Error : 890 : The name XXX already appears in the suspends list.
</p>
<p>
<i>
Items may not appear more than once in an a suspends list.
</i>
</p>
<a name="semantic-891"></a>
<p>
*** Semantic Error : 891 : Task type or protected type required.
</p>
<p>
<i>
Issued in a subtype declaration where the constraint is a discriminant constraint. Only task and protected types may take a discriminant constraint as part of a subtype declaration.
</i>
</p>
<a name="semantic-892"></a>
<p>
*** Semantic Error : 892 : Array type, task type or protected type required.
</p>
<p>
<i>
Issued in a subtype declaration where the constraint is a either a discriminant constraint or an index constraint (these two forms cannot always be distinguished syntactically). Only task and protected types may take a discriminant constraint and only array types may take an index constraint as part of a subtype declaration.
</i>
</p>
<a name="semantic-893"></a>
<p>
*** Semantic Error : 893 : Number of discriminant constraints differs from number of known discriminants of type XXX.
</p>
<p>
<i>
Issued in a subtype declaration if too many or two few discriminant constraints are supplied.
</i>
</p>
<a name="semantic-894"></a>
<p>
*** Semantic Error : 894 : Only variables of a protected type may be aliased.
</p>
<p>
<i>
SPARK supports the keyword aliased in variable declarations only so that protected and task types can support access discriminants. Since it has no other purpose it may not be used except in a protected object declaration.
</i>
</p>
<a name="semantic-895"></a>
<p>
*** Semantic Error : 895 : Attribute Access may only be applied to variables which are declared as aliased, variable XXX is not aliased.
</p>
<p>
<i>
This is a slightly annoying Ada issue. Marking a variable as aliased prevents it being placed in a register which would make pointing at it hazardous; however, SPARK only permits 'Access on protected types which are limited and therefore always passed by reference anyway and immune from register optimization. Requiring aliased on protected objects that will appear in discriminant constraints is therefore unwanted syntactic sugar only.
</i>
</p>
<a name="semantic-896"></a>
<p>
*** Semantic Error : 896 : The task type XXX does not have an associated body.
</p>
<p>
<i>
Issued at the end of a package body if a task type declared in its specification contains neither a body nor a body stub for it.
</i>
</p>
<a name="semantic-897"></a>
<p>
*** Semantic Error : 897 : The protected type XXX does not have an associated body.
</p>
<p>
<i>
Issued at the end of a package body if a protected type declared in its specification contains neither a body nor a body stub for it.
</i>
</p>
<a name="semantic-898"></a>
<p>
*** Semantic Error : 898 : XXX is not a protected or task type which requires a body.
</p>
<p>
<i>
Issued if a body or body stub for a task or protected type is encountered and there is no matching specification.
</i>
</p>
<a name="semantic-899"></a>
<p>
*** Semantic Error : 899 : A body for type XXX has already been declared.
</p>
<p>
<i>
Issued if a body or body stub for a task or protected type is encountered and an earlier body has already been encountered.
</i>
</p>
<a name="semantic-901"></a>
<p>
*** Semantic Error : 901 : Suspension object XXX may only be declared immediately within a library package specification or body.
</p>
<p>
<i>
Suspension objects must be declared at library level. They cannot be used in protected type state or as local variables in subprograms.
</i>
</p>
<a name="semantic-902"></a>
<p>
*** Semantic Error : 902 : Recursive use of typemark XXX in known descriminant.
</p>
<a name="semantic-903"></a>
<p>
*** Semantic Error : 903 : Protected or suspension object types cannot be used to declare constants.
</p>
<p>
<i>
Protected and suspension objects are used to ensure integrity of shared objects. If it is necessary to share constant data then these constructs should not be used.
</i>
</p>
<a name="semantic-904"></a>
<p>
*** Semantic Error : 904 : Protected or suspension objects cannot be used as subprogram parameters.
</p>
<p>
<i>
SPARK does not currently support this feature.
</i>
</p>
<a name="semantic-905"></a>
<p>
*** Semantic Error : 905 : Protected or suspension objects cannot be returned from functions.
</p>
<p>
<i>
SPARK does not currently support this feature.
</i>
</p>
<a name="semantic-906"></a>
<p>
*** Semantic Error : 906 : Protected or suspension objects cannot be used in composite types.
</p>
<p>
<i>
Protected and suspension objects cannot be used in record or array structures.
</i>
</p>
<a name="semantic-907"></a>
<p>
*** Semantic Error : 907 : Delay until must be called from a task or unprotected procedure body.
</p>
<p>
<i>
You are calling delay until from an invalid construct. Any construct that calls delay until must have a delay property in the declare annotation. This construct must be one of a task or procedure body.
</i>
</p>
<a name="semantic-908"></a>
<p>
*** Semantic Error : 908 : Blocking properties are not allowed in protected scope.
</p>
<p>
<i>
Procedures in protected scope must not block and therefore blocking properties are prohibited.
</i>
</p>
<a name="semantic-909"></a>
<p>
*** Semantic Error : 909 : Object XXX cannot suspend.
</p>
<p>
<i>
You are either applying the suspendable property to an own variable that cannot suspend or you have declared a variable (whose own variable has the suspendable property) which cannot suspend. Or you have used an item in a suspends list that does not have the suspendable property. An object can only suspend if it is a suspension object or a protected type with an entry.
</i>
</p>
<a name="semantic-910"></a>
<p>
*** Semantic Error : 910 : Name XXX must appear in the suspends list property for the enclosing unit.
</p>
<p>
<i>
Protected entry calls and calls to Ada.Synchronous_Task_Control.Suspend_Until_True may block the currently executing task. SPARK requires you announce this fact by placing the actual callee name in the suspends list for the enclosing unit.
</i>
</p>
<a name="semantic-911"></a>
<p>
*** Semantic Error : 911 : The argument in pragma Priority for the main program must be an integer literal or a local constant of static integer value.
</p>
<p>
<i>
If the main program priority is not an integer literal then you should declare a constant that has the required value in the declarative part of the main program prior to the position of the pragma.
</i>
</p>
<a name="semantic-912"></a>
<p>
*** Semantic Error : 912 : This call contains a delay property that is not propagated to the enclosing unit.
</p>
<p>
<i>
The call being made has a declare annotation that contains a delay property. SPARK requires that this property is propagated up the call chain and hence must appear in a declare annotation for the enclosing unit.
</i>
</p>
<a name="semantic-913"></a>
<p>
*** Semantic Error : 913 : This call has a name in its suspends list which is not propagated to the enclosing unit.
</p>
<p>
<i>
The call being made has a declare annotation that contains a suspends list. SPARK requires that the entire list is propagated up the call chain and hence must appear in a declare annotation for the enclosing unit.
</i>
</p>
<a name="semantic-914"></a>
<p>
*** Semantic Error : 914 : The name XXX specified in the suspends list can never be called.
</p>
<p>
<i>
You have specified the name of a protected or suspension object in the suspends list that can never be called by this procedure or task.
</i>
</p>
<a name="semantic-915"></a>
<p>
*** Semantic Error : 915 : Procedure XXX has a delay property but cannot delay.
</p>
<p>
<i>
You have specified a delay property for this procedure but delay until can never be called from it.
</i>
</p>
<a name="semantic-916"></a>
<p>
*** Semantic Error : 916 : Protected object XXX has a circular dependency in subprogram YYY.
</p>
<p>
<i>
The type of the protected object mentions the protected object name in the derives list for the given subprogram.
</i>
</p>
<a name="semantic-917"></a>
<p>
*** Semantic Error : 917 : Procedure XXX cannot be called from a protected action.
</p>
<p>
<i>
The procedure being called may block and hence cannot be called from a protected action.
</i>
</p>
<a name="semantic-918"></a>
<p>
*** Semantic Error : 918 : The delay property is not allowed for XXX.
</p>
<p>
<i>
The delay property may only be applied to a procedure.
</i>
</p>
<a name="semantic-919"></a>
<p>
*** Semantic Error : 919 : The priority property is not allowed for XXX.
</p>
<p>
<i>
The priority property can only be applied to protected own variables which are type announced. If the type has been declared it must be a protected type.
</i>
</p>
<a name="semantic-920"></a>
<p>
*** Semantic Error : 920 : The suspends property is not allowed for XXX.
</p>
<p>
<i>
The suspends property may only be applied to task type specifications and procedures.
</i>
</p>
<a name="semantic-921"></a>
<p>
*** Semantic Error : 921 : The identifier XXX is not recognised as a component of a property list.
</p>
<p>
<i>
The property list can only specify the reserved word delay, suspends or priority.
</i>
</p>
<a name="semantic-922"></a>
<p>
*** Semantic Error : 922 : The own variable XXX must have the priority property.
</p>
<p>
<i>
In order to perform the ceiling priority checks the priority property must be given to all own variables of protected type.
</i>
</p>
<a name="semantic-923"></a>
<p>
*** Semantic Error : 923 : The procedure XXX cannot be called from a function as it has a blocking side effect.
</p>
<p>
<i>
Blocking is seen as a side effect and hence procedures that potentially block cannot be called from functions.
</i>
</p>
<a name="semantic-924"></a>
<p>
*** Semantic Error : 924 : The suspendable property is not allowed for XXX.
</p>
<p>
<i>
Objects that suspend must be declared as own protected variables.
</i>
</p>
<a name="semantic-925"></a>
<p>
*** Semantic Error : 925 : The own variable or task XXX must have a type announcement.
</p>
<p>
<i>
Own variables of protected type and own tasks must have a type announcement.
</i>
</p>
<a name="semantic-926"></a>
<p>
*** Semantic Error : 926 : Illegal declaration of task XXX. Task objects must be declared at library level.
</p>
<p>
<i>
Task objects must be declared in library level package specifications or bodies.
</i>
</p>
<a name="semantic-927"></a>
<p>
*** Semantic Error : 927 : The own task annotation for this task is missing the name XXX in its suspends list.
</p>
<p>
<i>
The task type declaration has name XXX in its list and this must appear in the own task annotation.
</i>
</p>
<a name="semantic-928"></a>
<p>
*** Semantic Error : 928 : Private elements are not allowed for protected type XXX.
</p>
<p>
<i>
Protected type XXX has been used to declare a protected, moded own variable. Protected, moded own variables are refined onto a set of virtual elements with the same mode. As such private elements are not allowed.
</i>
</p>
<a name="semantic-929"></a>
<p>
*** Semantic Error : 929 : Unexpected declare annotation. Procedure XXX should have the declare annotation on the specification.
</p>
<p>
<i>
Declare annotations cannot appear on the procedure body if it appears on the procedure specification.
</i>
</p>
<a name="semantic-930"></a>
<p>
*** Semantic Error : 930 : Task XXX does not appear in the own task annotation for this package.
</p>
<p>
<i>
A task has been declared that is not specified as an own task of the package.
</i>
</p>
<a name="semantic-931"></a>
<p>
*** Semantic Error : 931 : Task XXX does not have a definition.
</p>
<p>
<i>
A task name appears in the own task annotation for this package but is never declared.
</i>
</p>
<a name="semantic-932"></a>
<p>
*** Semantic Error : 932 : The priority for protected object XXX does not match that given in the own variable declaration.
</p>
<p>
<i>
The priority given in the priority property must match that given in the protected type.
</i>
</p>
<a name="semantic-933"></a>
<p>
*** Semantic Error : 933 : A pragma Priority is required for the main program when Ravenscar Profile is enabled.
</p>
<p>
<i>
When SPARK profile Ravenscar is selected, all tasks, protected objects and the main program must explicitly be assigned a priority.
</i>
</p>
<a name="semantic-934"></a>
<p>
*** Semantic Error : 934 : Priority ceiling check failure: the priority of YYY is less than that of XXX.
</p>
<p>
<i>
The active priority of a task is the higher of its base priority and the ceiling priorities of all protected objects that it is executing. The active priority at the point of a call to a protected operation must not exceed the ceiling priority of the callee.
</i>
</p>
<a name="semantic-935"></a>
<p>
*** Semantic Error : 935 : The own variable XXX must have the interrupt property.
</p>
<p>
<i>
An own variable has been declared using a protected type with a pragma attach handler. Such objects are used in interrupt processing and must have the interrupt property specified in their own variable declaration.
</i>
</p>
<a name="semantic-936"></a>
<p>
*** Semantic Error : 936 : The interrupt property is not allowed for XXX.
</p>
<p>
<i>
The interrupt property can only be applied to protected own variables that are type announced. If the type is declared then it must be a protected type that contains an attach handler.
</i>
</p>
<a name="semantic-937"></a>
<p>
*** Semantic Error : 937 : The protects property is not allowed for XXX.
</p>
<p>
<i>
The protects property can only be applied to protected own variables that are type announced. If the type is declared then it must be a protected type.
</i>
</p>
<a name="semantic-938"></a>
<p>
*** Semantic Error : 938 : The unprotected variable XXX is shared by YYY and ZZZ.
</p>
<p>
<i>
XXX is an unprotected variable that appears in the global list of the threads YYY and ZZZ. Unprotected variables cannot be shared between threads in SPARK. A thread is one of: the main program, a task, an interrupt handler.
</i>
</p>
<a name="semantic-939"></a>
<p>
*** Semantic Error : 939 : The suspendable item XXX is referenced by YYY and ZZZ.
</p>
<p>
<i>
XXX is an own variable with the suspends property that appears in the suspends list of the threads YYY and ZZZ. SPARK prohibits this to prevent more than one thread being suspended on the same item at any one time. A thread is one of: the main program, a task, an interrupt handler.
</i>
</p>
<a name="semantic-940"></a>
<p>
*** Semantic Error : 940 : XXX is a protected own variable. Protected variables may not be used in proof contexts.
</p>
<p>
<i>
The use of protected variables in pre and postconditions or other proof annotations is not (currently) supported. Protected variables are volatile because they can be changed at any time by another program thread and this may invalidate some common proof techniques. The prohibition of protected variables does not prevent proof of absence of run-time errors nor proof of protected operation bodies. See the manual "SPARK Proof Manual" for more details.
</i>
</p>
<a name="semantic-941"></a>
<p>
*** Semantic Error : 941 : The type of own variable XXX must be local to this package.
</p>
<p>
<i>
The type used to an announce an own variable with a protects property must be declared in the same package.
</i>
</p>
<a name="semantic-942"></a>
<p>
*** Semantic Error : 942 : Only one instance of the type XXX is allowed.
</p>
<p>
<i>
Type XXX has a protects property. This means there can be only one object in the package that has this type or any subtype of this type.
</i>
</p>
<a name="semantic-943"></a>
<p>
*** Semantic Error : 943 : The name XXX cannot appear in a protects list.
</p>
<p>
<i>
All items in a protects list must be unprotected own variables owned by this package.
</i>
</p>
<a name="semantic-944"></a>
<p>
*** Semantic Error : 944 : The name XXX is already protected by YYY.
</p>
<p>
<i>
The name XXX appears in more than one protects list. The first time it appeared was for own variable YYY. XXX should appear in at most one protects list.
</i>
</p>
<a name="semantic-945"></a>
<p>
*** Semantic Error : 945 : The property XXX must be given a static expression for its value.
</p>
<p>
<i>
This property can only accept a static expression.
</i>
</p>
<a name="semantic-946"></a>
<p>
*** Semantic Error : 946 : The own variable XXX must only ever be accessed from operations in protected type YYY.
</p>
<p>
<i>
The own variable XXX is protected by the protected type YYY and hence must never be accessed from anywhere else.
</i>
</p>
<a name="semantic-947"></a>
<p>
*** Semantic Error : 947 : The own variable XXX appears in a protects list for type YYY but is not used in the body.
</p>
<p>
<i>
The protected type YYY claims to protect XXX via a protects property. However, the variable XXX is not used by any operation in YYY.
</i>
</p>
<a name="semantic-948"></a>
<p>
*** Semantic Error : 948 : The type of own variable or task XXX must be a base type.
</p>
<p>
<i>
Own tasks and protected own variables of a protected type must be announced using the base type. The subsequent variable declaration may be a subtype of the base type.
</i>
</p>
<a name="semantic-949"></a>
<p>
*** Semantic Error : 949 : Unexpected partition annotation: a global annotation may only appear here when the Ravenscar profile is selected.
</p>
<p>
<i>
When the sequential SPARK profile is selected, the global and derives annotation on the main program describes the entire program's behaviour. No additional, partition annotation is required or permitted. Note that an annotation must appear here if the Ravenscar profile is selected.
</i>
</p>
<a name="semantic-950"></a>
<p>
*** Semantic Error : 950 : Partition annotation expected: a global and, optionally, a derives annotation must appear after 'main_program' when the Ravenscar profile is selected.
</p>
<p>
<i>
When the Ravenscar profile is selected the global and derives annotation on the main program describes the behaviour of the environment task only, not the entire program. An additional annotation, called the partition annotation, is required to describe the entire program's behaviour; this annotation follows immediately after 'main_program;'.
</i>
</p>
<a name="semantic-951"></a>
<p>
*** Semantic Error : 951 : Inherited package XXX contains tasks and/or interrupt handlers and must therefore appear in the preceding WITH clause.
</p>
<p>
<i>
In order to ensure that a Ravenscar program is complete, SPARK requires that all 'active' packages inherited by the environment task also appear in a corresponding with clause. This check ensures that any program entities described in the partition annotation are also linked into the program itself.
</i>
</p>
<a name="semantic-952"></a>
<p>
*** Semantic Error : 952 : Subprogram XXX is an interrupt handler and cannot be called.
</p>
<p>
<i>
Interrupt handler operations cannot be called.
</i>
</p>
<a name="semantic-953"></a>
<p>
*** Semantic Error : 953 : Interrupt property error for own variable YYY. XXX is not an interrupt handler in type ZZZ.
</p>
<p>
<i>
The handler names in an interrupt property must match one in the protected type of the own variable.
</i>
</p>
<a name="semantic-954"></a>
<p>
*** Semantic Error : 954 : Interrupt property error for own variable XXX. Interrupt stream name YYY is illegal.
</p>
<p>
<i>
The stream name must be unprefixed and not already in use within the scope of the package.
</i>
</p>
<a name="semantic-955"></a>
<p>
*** Semantic Error : 955 : XXX can only appear in the partition wide flow annotation.
</p>
<p>
<i>
Interrupt stream variables are used only to enhance the partition wide flow annotation and must not be used elsewhere.
</i>
</p>
<a name="semantic-956"></a>
<p>
*** Semantic Error : 956 : XXX already appears in as an interrupt handler in the interrupt mappings.
</p>
<p>
<i>
An interrupt handler can be mapped onto exactly one interrupt stream variable. An interrupt stream variable may be mapped onto many interrupt handlers.
</i>
</p>
<a name="semantic-957"></a>
<p>
*** Semantic Error : 957 : Consecutive updates of protected variable XXX are disallowed when they do not depend directly on its preceding value.
</p>
<p>
<i>
A protected variable cannot be updated without direct reference to its preceding value more than once within a subprogram or task. Each update of a protected variable may have a wider effect than just the change of value of the protected variable. The overall change is considered to be the accumulation of all updates and reads of the protected variable and to preseve this information flow successive updates must directly depend on the preceding value of the variable.
</i>
</p>
<a name="semantic-958"></a>
<p>
*** Semantic Error : 958 : A task may not import the unprotected state XXX.
</p>
<p>
<i>
A task may not import unprotected state unless it is mode in. This is because under the concurrent elaboration policy, the task cannot rely on the state being initialized before it is run.
</i>
</p>
<a name="semantic-959"></a>
<p>
*** Semantic Error : 959 : Unprotected state XXX is exported by a task and hence must not appear in an initializes clause.
</p>
<p>
<i>
Own variable XXX is being accessed by a task. The order in which the task is run and the own variable initialized is non-deterministic under a concurrent elaboration policy. In this case SPARK forces the task to perform the initialization and as such the own variable must not appear in an initializes clause.
</i>
</p>
<a name="semantic-960"></a>
<p>
*** Semantic Error : 960 : The function Ada.Real_Time.Clock can only be used directly (1) in an assignment or return statement or (2) to initialize a library a level constant.
</p>
<p>
<i>
<li>To avoid ordering effects, functions which globally access own variables which have modes (indicating that they are connected to the external environment) may only appear directly in assignment or return statements. They may not appear as actual parameters or in any other form of expression. <li>SPARK relaxes the illegal use of function calls in elaboration code in the case of the function Ada.Real_Time.Clock. However the function can only be used to directly initialize a constant value.
</i>
</p>
<a name="semantic-961"></a>
<p>
*** Semantic Error : 961 : This property value is of an incorrect format.
</p>
<p>
<i>
Please check the user manual for valid property value formats.
</i>
</p>
<a name="semantic-962"></a>
<p>
*** Semantic Error : 962 : Error(s) detected by VC Generator. See the .vcg file for more information.
</p>
<p>
<i>
This message is echoed to the screen if an unrecoverable error occurs which makes the generation of VCs for the current subprogram impossible. Another message more precisely identifying the problem will be placed in the .vcg file.
</i>
</p>
<a name="semantic-986"></a>
<p>
*** Semantic Error : 986 : A protected function may not call a locally-declared protected procedure.
</p>
<p>
<i>
See LRM 9.5.1 (2). A protected function has read access to the protected elements of the type whereas the called procedure has read-write access. There is no way in which an Ada compiler can determine whether the procedure will illegally update the protected state or not so the call is prohibited by the rules of Ada. (Of course, in SPARK, we know there is no function side effect but the rules of Ada must prevail nonetheless).
</i>
</p>
<a name="semantic-987"></a>
<p>
*** Semantic Error : 987 : Task types and protected types may only be declared in package specifications.
</p>
<p>
<i>
The Examiner performs certain important checks at the whole program level such as detection of illegal sharing of unprotected state and partition-level information flow analysis. These checks require visibility of task types and protected types (especially those containing interrupt handlers). SPARK therefore requires these types to be declare in package specifications. Subtypes and objects of task types, protected types and their subtypes may be declared in package bodies.
</i>
</p>
<a name="semantic-988"></a>
<p>
*** Semantic Error : 988 : Illegal re-use of identifier XXX; this identifier is used in a directly visible protected type.
</p>
<p>
<i>
SPARK does not allow the re-use of operation names which are already in use in a directly visible protected type. The restriction is necessary to avoid overload resolution issues in the protected body. For example, type PT in package P declares operation K. Package P also declares an operation K. From inside the body of PT, a call to K could refer to either of the two Ks since both are directly visible.
</i>
</p>
<a name="semantic-989"></a>
<p>
*** Semantic Error : 989 : The last statement of a task body must be a plain loop with no exits.
</p>
<p>
<i>
To prevent any possibility of a task terminating (which can lead to a bounded error), SPARK requires each task to end with a non-terminating loop. The environment task (or "main program") does not need to end in a plain loop provided the program closure includes at least one other task. If there are no other tasks, then the environment task must be made non-terminating with a plain loop.
</i>
</p>
<a name="semantic-990"></a>
<p>
*** Semantic Error : 990 : Unexpected annotation, a task body may have only global and derives annotations.
</p>
<p>
<i>
Issued if a pre, post or declare annotation is attached to a task body.
</i>
</p>
<a name="semantic-991"></a>
<p>
*** Semantic Error : 991 : Unexpected task body, XXX is not the name of a task declared in this package specification.
</p>
<p>
<i>
Issued if task body is encountered for which there is no preceding declaration.
</i>
</p>
<a name="semantic-992"></a>
<p>
*** Semantic Error : 992 : A body for task type XXX has already been declared.
</p>
<p>
<i>
Issued if a duplicate body or body stub is encountered for a task.
</i>
</p>
<a name="semantic-993"></a>
<p>
*** Semantic Error : 993 : There is no protected type declaration for XXX.
</p>
<p>
<i>
Issued if a body is found for a protected types for which there is no preceding declaration.
</i>
</p>
<a name="semantic-994"></a>
<p>
*** Semantic Error : 994 : Invalid guard, XXX is not a Boolean protected element of this protected type.
</p>
<p>
<i>
The SPARK Ravenscar rules require a simple Boolean guard which must be one of the protected elements of the type declaring the entry.
</i>
</p>
<a name="semantic-995"></a>
<p>
*** Semantic Error : 995 : Unexpected entry body, XXX is not the name of an entry declared in this protected type.
</p>
<p>
<i>
Local entries are not permitted so a protected body can declare at most one entry body and that must have declared in the protected type specification.
</i>
</p>
<a name="semantic-996"></a>
<p>
*** Semantic Error : 996 : The protected operation XXX, declared in this type, does not have an associated body.
</p>
<p>
<i>
Each exported protected operation must have a matching implementation in the associated protected body.
</i>
</p>
<a name="semantic-997"></a>
<p>
*** Semantic Error : 997 : A body for protected type XXX has already been declared.
</p>
<p>
<i>
Each protected type declaration must have exactly one matching protected body or body stub.
</i>
</p>
<a name="semantic-998"></a>
<p>
*** Semantic Error : 998 : There is no protected type declaration for XXX.
</p>
<p>
<i>
Issued if a protected body or body stub is found and there is no matching declaration for it.
</i>
</p>
<a name="semantic-999"></a>
<p>
*** Semantic Error : 999 : This feature of Generics is not yet implemented.
</p>
<p>
<i>
Generics are currently limited to instantiation of Unchecked_Conversion.
</i>
</p>
<a name="warning-no-semantic-checks"></a>
<p>
Warning : No semantic checks carried out, text may not be legal SPARK.
</p>
<p>
<i>
Issued when the Examiner is used solely to check the syntax of a SPARK text: this does not check the semantics of a program (e.g. the correctness of the annotations) and therefore does not guarantee that a program is legal SPARK.
</i>
</p>
<a name="note-information-flow"></a>
<p>
Note: Information flow analysis not carried out.
</p>
<p>
<i>
This is issued as a reminder that information flow analysis has not been carried out in this run of the Examiner: information flow errors may be present undetected in the text analysed.
</i>
</p>
<a name="note-automatic-flow"></a>
<p>
Note: Flow analysis mode is automatic.
</p>
<p>
<i>
This is issued as a reminder that the Examiner will perform information flow analysis if it encounters full derives annotations and will perform data flow analysis if only moded global annotations are present. Information flow errors may be present undetected in the text analysed.
</i>
</p>
<a name="note-ada-83"></a>
<p>
Note: Ada 83 language rules selected.
</p>
<p>
<i>
Issued when the Examiner is used in SPARK 83 mode.
</i>
</p>
<a name="1"></a>
<a name="2"></a>
<a name="3"></a>
<a name="1"></a>
<a name="2"></a>
<a name="warning-1"></a>
<p>
--- Warning : 1 : The identifier XXX is either undeclared or not visible at this point.
</p>
<p>
<i>
This warning will appear against an identifier in a with clause if it is not also present in an inherit clause. Such an identifier cannot be used in any non-hidden part of a SPARK program. The use of with without inherit is permitted to allow reference in hidden parts of the text to imported packages which are not legal SPARK. For example, the body of SPARK_IO is hidden and implements the exported operations of the package by use of package TEXT_IO. For this reason TEXT_IO must appear in the with clause of SPARK_IO. (warning control file keyword:<b> with_clauses</b>).
</i>
</p>
<a name="warning-2"></a>
<p>
--- Warning : 2 : Representation clause - ignored by the Examiner.
</p>
<p>
<i>
The significance of representation clauses cannot be assessed by the Examiner because it depends on the specific memory architecture of the target system. Like pragmas, representation clauses can change the meaning of a SPARK program and the warning highlights the need to ensure their correctness by other means. (warning control file keyword:<b> representation_clauses</b>).
</i>
</p>
<a name="warning-3"></a>
<p>
--- Warning : 3 : Pragma - ignored by the Examiner.
</p>
<p>
<i>
All pragmas encountered by the Examiner generate this warning. While many pragmas (e.g. pragma page) are harmless others can change a program's meaning, for example by causing two variables to share a single memory location. (warning control file keyword:<b> pragma</b> pragma_identifier or <b>pragma all</b>).
</i>
</p>
<a name="warning-4"></a>
<p>
--- Warning : 4 : declare annotation - ignored by the Examiner.
</p>
<p>
<i>
The declare annotation is ignored by the Examiner if the profile is not Ravenscar. (warning control file keyword: <b>declare_annotations</b>).
</i>
</p>
<a name="warning-5"></a>
<p>
--- Warning : 5 : XXX contains interrupt handlers; it is important that an interrupt identifier is not used by more than one handler.
</p>
<p>
<i>
Interrupt identifiers are implementation defined and the Examiner cannot check that values are used only once. Duplication can occur by declaring more than object of a single (sub)type where that type defines handlers. It may also occur if interrupt identifiers are set via discriminants and two or more actual discriminants generate the same value. (warning control file keyword: <b>interrupt_handlers</b>).
</i>
</p>
<a name="warning-6"></a>
<p>
--- Warning : 6 : Machine code insertion. Code insertions are ignored by the Examiner.
</p>
<p>
<i>
Machine code is inherently implementation dependent and cannot be analysed by the Examiner. Users are responsible for ensuring that the behaviour of the inserted machine code matches the annotation of the subprogram containing it.
</i>
</p>
<a name="warning-7"></a>
<p>
--- Warning : 7 : This identifier is an Ada2005 reserved word.
</p>
<p>
<i>
Such identifiers will be rejected by an Ada2005 compiler and by the SPARK Examiner for SPARK2005. It is recommended to rename such identifiers for future upward compatibility. (warning control file keyword: <b>ada2005_reserved_words</b>).
</i>
</p>
<a name="warning-11"></a>
<p>
--- Warning : 11 : Unnecessary others clause - case statement is already complete.
</p>
<p>
<i>
The others clause is non-executable because all case choices have already been covered explicitly. If the range of the case choice is altered later then the others clause may be executed with unexpected results. It is better to omit the others clause in which case any extension of the case range will result in a compilation error.
</i>
</p>
<a name="warning-12"></a>
<p>
--- Warning : 12 : Function XXX is an instantiation of Unchecked_Conversion.
</p>
<p>
<i>
See ALRM 13.9. The use of Unchecked_Conversion can result in implementation-defined values being returned. The function should be used with great care. The principal use of Unchecked_Conversion is SPARK programs is the for the reading of external ports prior to performing a validity check; here the suppression of constraint checking prior to validation is useful. The Examiner does not assume that the value returned by an unchecked conversion is valid and so unprovable run-time check VCs will result if a suitable validity check is not carried out before the value is used. (warning control file keyword: <b>unchecked_conversion</b>).
</i>
</p>
<a name="warning-13"></a>
<p>
--- Warning : 13 : Function XXX is an instantiation of Unchecked_Conversion returning a type for which run-time checks are not generated. Users must take steps to ensure the validity of the returned value.
</p>
<p>
<i>
See ALRM 13.9. The use of Unchecked_Conversion can result in invalid values being returned. The function should be used with great care especially, as in this case, where the type returned does not generate Ada run-time checks nor SPARK run-time verification conditions. For such types, this warning is the ONLY reminder the Examiner generates that the generated value may have an invalid representation. For this reason the warning is NOT suppressed by the warning control file keyword unchecked_conversion. The principal use of Unchecked_Conversion is SPARK programs is the for the reading of external ports prior to performing a validity check; here the suppression of constraint checking prior to validation is useful.
</i>
</p>
<a name="warning-120"></a>
<p>
--- Warning : 120 : Unexpected unmatched 'end accept' annotation ignored.
</p>
<p>
<i>
This end accept annotation does not match any preceding start accept in this unit.
</i>
</p>
<a name="warning-121"></a>
<p>
--- Warning : 121 : No warning message matches this accept annotation.
</p>
<p>
<i>
The accept annotation is used to indicate that a particular flow error or semantic warning message is expected and can be justified. This error indicates that the expected message did not actually occur. Note that when matching any information flow error messages containing two variable names, the export should be placed first and the import second (the order in the error message may differ from this depending on the style of information flow error reporting selected). For example: --# accept Flow, 601, X, Y, "..."; justifies the message: "X may be derived from the imported value(s) of Y" or the alternative form: "Y may be used in the derivation of X".
</i>
</p>
<a name="warning-122"></a>
<p>
--- Warning : 122 : Maximum number of error or warning justifications reached, subsequent accept annotations will be ignored.
</p>
<p>
<i>
The number of justifications per source file is limited. If you reach this limit it is worth careful consideration of why the code generates so many warnings.
</i>
</p>
<a name="warning-169"></a>
<p>
--- Warning : 169 : Direct update of own variable XXX, which is an own variable of a non-enclosing package.
</p>
<p>
<i>
With the publication of Edition 3.1 of the SPARK Definition the previous restriction prohibiting the direct updating of own variables of non-enclosing packages was removed; however, the preferred use of packages as abstract state machines is compromised by such action which is therefore discouraged. (warning control file keyword:<b> direct_updates</b>).
</i>
</p>
<a name="warning-200"></a>
<p>
--- Warning : 200 : This static expression cannot be evaluated by the Examiner.
</p>
<p>
<i>
Issued if a static expression exceeds the internal limits of the Examiner because its value is, for example, too large to be evaluated using infinite precision arithmetic. No value will be recorded for the expression and this may limit the Examiner's ability to detect certain sorts of errors such as numeric constraints. (warning control file keyword: <b>static_expressions</b>).
</i>
</p>
<a name="warning-201"></a>
<p>
--- Warning : 201 : This expression cannot be evaluated statically because its value may be implementation-defined.
</p>
<p>
<i>
Raised, for example, when evaluating 'Size of a type that does not have an explicit Size representation clause. Attributes of implementation-defined types, such as Integer'Last may also be unknown to be Examiner if they are not specified in the configuration file (warning control file keyword: <b>static_expressions</b>).
</i>
</p>
<a name="warning-202"></a>
<p>
--- Warning : 202 : An arithmetic overflow has occurred. Constraint checks have not been performed.
</p>
<p>
<i>
Raised when comparing two real numbers. The examiner cannot deal with real numbers specified to such a high degree of precision. Consider reducing the precision of these numbers.
</i>
</p>
<a name="warning-300"></a>
<p>
--- Warning : 300 : VCs cannot be built for multi-dimensional array aggregates.
</p>
<p>
<i>
Issued when an aggregate of a multi-dimensional array is found. Suppresses generation of VCs for that subprogram. Can be worked round by using arrays of arrays.
</i>
</p>
<a name="warning-301"></a>
<p>
--- Warning : 301 : Called subprogram exports abstract types for which RTCs are not possible.
</p>
<a name="warning-302"></a>
<p>
--- Warning : 302 : This expression may be re-ordered by a compiler. Add parentheses to remove ambiguity.
</p>
<p>
<i>
Issued when a potentially re-orderable expression is encountered. For example x := a + b + c; Whether intermediate sub-expression values overflow may depend on the order of evaluation which is compiler-dependent. Therefore, code generating this warning should be parenthesized to remove the ambiguity. e.g. x := (a + b) + c;.
</i>
</p>
<a name="warning-303"></a>
<p>
--- Warning : 303 : Overlapping choices may not be detected.
</p>
<p>
<i>
Issued where choices in an array aggregate or case statement are outside the range which can be detected because of limits on the size of a table internal to the Examiner.
</i>
</p>
<a name="warning-304"></a>
<p>
--- Warning : 304 : Case statement may be incomplete.
</p>
<p>
<i>
Issued when the Examiner cannot determine the completeness of a case statement because the bounds of the type of the controlling expression exceed the size of the internal table used to perform the checks.
</i>
</p>
<a name="warning-305"></a>
<p>
--- Warning : 305 : Value too big for internal representation.
</p>
<p>
<i>
Issued when the Examiner cannot determine the completeness of an array aggregate or case statement because the number used in a choice exceed the size allowed in the internal table used to perform the checks.
</i>
</p>
<a name="warning-306"></a>
<p>
--- Warning : 306 : Aggregate may be incomplete.
</p>
<p>
<i>
Issued when the Examiner cannot determine the completeness of an array aggregate because its bounds exceed the size of the internal table used to perform the checks.
</i>
</p>
<a name="warning-307"></a>
<p>
--- Warning : 307 : Completeness checking incomplete: index type(s) undefined or not discrete.
</p>
<p>
<i>
Issued where the array index (sub)type is inappropriate: this is probably because there is an error in its definition, which will have been indicated by a previous error message.
</i>
</p>
<a name="warning-308"></a>
<p>
--- Warning : 308 : Use of equality operator with floating point type.
</p>
<p>
<i>
The use of this operator is discouraged in SPARK because of the difficulty in determining exactly what it means to say that two instances of a floating point number are equal.
</i>
</p>
<a name="warning-309"></a>
<p>
--- Warning : 309 : Type conversion to own type, consider using type qualification instead.
</p>
<p>
<i>
Issued where a type conversion is either converting from a (sub)type to the same (sub)type or is converting between two subtypes of the same type. In the former case the type conversion may be safely removed because no constraint check is required; in the latter case the type conversion may be safely replaced by a type qualification which preserves the constraint check.(warning control file keyword:<b> type_conversions</b>).
</i>
</p>
<a name="warning-310"></a>
<p>
--- Warning : 310 : Use of obsolescent Ada 83 language feature.
</p>
<p>
<i>
Issued when a language feature defined by Ada 95 to be obsolescent is used. Use of such features is not recommended because compiler support for them cannot be guaranteed.(warning control file keyword:<b>obsolescent_features</b>).
</i>
</p>
<a name="warning-311"></a>
<p>
--- Warning : 311 : Priority pragma for XXX is unavailable and has not been considered in the ceiling priority check.
</p>
<a name="warning-312"></a>
<p>
--- Warning : 312 : Replacement rules cannot be built for multi-dimensional array constant XXX.
</p>
<p>
<i>
Issued when a VC or PF references a multi-dimensional array constant. Can be worked round by using arrays of arrays.
</i>
</p>
<a name="warning-313"></a>
<p>
--- Warning : 313 : The constant XXX has semantic errors in its initializing expression or has a hidden completion which prevent generation of a replacement rule.
</p>
<p>
<i>
Issued when replacement rules are requested for a composite constant which had semantic errors in its initializing expression, or is a deferred constant whose completion is hidden from the Examiner. Semantic errors must be eliminated before replacement rules can be generated.
</i>
</p>
<a name="warning-314"></a>
<p>
--- Warning : 314 : The constant XXX has semantic errors in its type which prevent generation of rules.
</p>
<p>
<i>
Issued when an attempt is made to generate type deduction rules for a constant which has semantic errors in its type. These semantic errors must be eliminated before type deduction rules can be generated.
</i>
</p>
<a name="warning-315"></a>
<p>
--- Warning : 315 : The procedure XXX does not have a derives annotation. The analysis of this call assumes that each of its exports is derived from all of its imports.
</p>
<p>
<i>
Issued in flow=auto mode when a function calls a procedure that does not have a derives annotation. In most cases this assumption will not affect the validity of the analysis, but if the called procedure derives null from an import this can have an impact. Note that functions are considered to have implicit derives annotations so this warning is not issued for calls to functions.
</i>
</p>
<a name="warning-320"></a>
<p>
--- Warning : 320 : The proof function XXX has a non-boolean return and a return annotation. Please make sure that the return is always in-type.
</p>
<p>
<i>
Any proof function with a non-bool return can introduce unsoundness if the result could overflow. For example a return of (x + 1) is not ok if x can take the value of integer'last. (warning control file keyword: <b>proof_function_non_boolean</b>).
</i>
</p>
<a name="warning-321"></a>
<p>
--- Warning : 321 : The proof function XXX has an implicit return annotation. Please be careful not to introduce unsoundness.
</p>
<p>
<i>
Any proof function with an implicit return can easily introduce unsoundness as they do not have a body which we can check to expose any contradictions. For example: return B => False. (warning control file keyword: <b>proof_function_implicit</b>).
</i>
</p>
<a name="warning-322"></a>
<p>
--- Warning : 322 : The return refinement for proof function XXX is assumed to hold as it is axiomatic and thus cannot be checked.
</p>
<p>
<i>
(warning control file keyword: <b>proof_function_refinement</b>).
</i>
</p>
<a name="warning-323"></a>
<p>
--- Warning : 323 : The precondition refinement for proof function XXX is assumed to hold as it is axiomatic and thus cannot be checked.
</p>
<p>
<i>
(warning control file keyword: <b>proof_function_refinement</b>).
</i>
</p>
<a name="warning-350"></a>
<p>
--- Warning : 350 : Unexpected pragma Import. Variable XXX is not identified as an external (stream) variable.
</p>
<p>
<i>
The presence of a pragma Import makes it possible that the variable is connected to some external device. The behaviour of such variables is best captured by making them moded own variables (or "stream" variables). If variables connected to the external environment are treated as if they are normal program variables then misleading analysis results are inevitable. The use of pragma Import on local variables of subprograms is particularly deprecated. The warning may safely be disregarded if the variable is not associated with memory-mapped input/output or if the variable concerned is an own variable and the operations on it are suitably annotated to indicate volatile, stream-like behaviour. Where pragma Import is used, it is essential that the variable is properly initialized at the point from which it is imported. (warning control file keyword:<b>imported_objects</b>).
</i>
</p>
<a name="warning-351"></a>
<p>
--- Warning : 351 : Unexpected address clause. XXX is a constant.
</p>
<p>
<i>
Great care is needed when attaching an address clause to a constant. The use of such a clause is safe if, and only if, the address supplied provides a valid value for the constant which does not vary during the execution life of the program, for example, mapping the constant to PROM data. If the address clause causes the constant to have a value which may alter, or worse, change dynamically under the influence of some device external to the program, then misleading or incorrect analysis is certain to result. If the intention is to create an input port of some kind, then a constant should not be used. Instead a moded own variable (or "stream" variables) should be used. (warning control file keyword:<b> address_clauses</b>).
</i>
</p>
<a name="warning-360"></a>
<p>
--- Warning : 360 : This pragma must have zero or one arguments.
</p>
<a name="warning-361"></a>
<p>
--- Warning : 361 : This pragma must have exactly one argument.
</p>
<a name="warning-362"></a>
<p>
--- Warning : 362 : This pragma must have exactly two arguments.
</p>
<a name="warning-363"></a>
<p>
--- Warning : 363 : This pragma must have at least one argument.
</p>
<a name="warning-364"></a>
<p>
--- Warning : 364 : This pragma must have between two and four arguments.
</p>
<a name="warning-365"></a>
<p>
--- Warning : 365 : This pragma must have exactly zero arguments.
</p>
<a name="warning-366"></a>
<p>
--- Warning : 366 : This pragma must have one or two arguments.
</p>
<a name="warning-380"></a>
<p>
--- Warning : 380 : Casing inconsistent with declaration. Expected casing is XXX.
</p>
<p>
<i>
The Examiner checks the case used for an identifier against the declaration of that identifier and warns if they do not match. (warning control file keyword:<b>style_check_casing</b>).
</i>
</p>
<a name="warning-389"></a>
<p>
--- Warning : 389 : Generation of VCs for consistency of generic and instantiated subprogram constraints is not yet supported. It will be supported in a future release of the Examiner.
</p>
<a name="warning-390"></a>
<p>
--- Warning : 390 : This generic subprogram has semantic errors in its declaration which prevent instantiations of it.
</p>
<p>
<i>
Issued to inform the user that a generic subprogram instantiation cannot be completed because of earlier errors in the generic declaration.
</i>
</p>
<a name="warning-391"></a>
<p>
--- Warning : 391 : If the identifier XXX represents a package which contains a task or an interrupt handler then the partition-level analysis performed by the Examiner will be incomplete. Such packages must be inherited as well as withed.
</p>
<a name="warning-392"></a>
<p>
--- Warning : 392 : External variable XXX may have an invalid representation and its assignment may cause a run-time exception which is outside the scope of the absence of RTE proof.
</p>
<p>
<i>
Where values are read from external variables (i.e. variables connected to the external environment) there is no guarantee that the bit pattern read will be a valid representation for the type of the external variable. Unexpected behaviour may result if invalid values are used in expressions. If the code is compiled with Ada run-time checks enabled the assignment of an invalid value may (but need not) raise a run-time exception dependent on the compiler. A compiler may provide facilities to apply extended checking which may also raise a run-time exception if an invalid value is used. The SPARK Toolset does not check the validity of the external variable and therefore any possible exception arising from its assignment is outside the scope of proof of absence of RTE. To ensure that a run-time exception cannot occur make the type of the external variable such that any possible bit pattern that may be read from the external source is a valid value. If the desired type is such a type then the always_valid assertion may be applied to the external variable; otherwise use explicit tests to ensure it has a valid value for the desired type before converting to an object of the desired type. In SPARK 95 the 'Valid attribute (see ALRM 13.9.2) may be used to determine the validity of a value if it can be guaranteed that the assignment of an invalid value read from an external variable will not raise a run time exception, either by compiling the code with checks off or by ensuring the compiler does not apply constraint checks when assigning same subtype objects. Note that when the Examiner is used to generate run-time checks, it will not be possible to discharge those involving external variables unless one of the above steps is taken. More information on interfacing can be found in the INFORMED manual and the SPARK Proof Manual. (warning control file keyword:<b> external_assignment</b>).
</i>
</p>
<a name="warning-393"></a>
<p>
--- Warning : 393 : External variable XXX may have an invalid representation and is of a type for which run-time checks are not generated but its assignment may cause a run-time exception. Users must take steps to ensure the validity of the assigned or returned value.
</p>
<p>
<i>
Where values are read from external variables (i.e. variables connected to the external environment) there is no guarantee that the bit pattern read will be a valid representation for the type of the external variable. Unexpected behaviour may result if invalid values are used in expressions. If the code is compiled with Ada run-time checks enabled the assignment of an invalid value may (but need not) raise a run-time exception dependent on the compiler. A compiler may provide facilities to apply extended checking which may also raise a run-time exception if an invalid value is used The SPARK Toolset does not check the validity of the external variable and therefore any possible exception arising from its assignment is outside the scope of proof of absence of RTE. Where, as in this case, the type is one for which Ada run-time checks need not be generated and SPARK run-time verification conditions are not generated, extra care is required. For such types, this warning is the ONLY reminder the Examiner generates that the external value may have an invalid representation. For this reason the warning is NOT suppressed by the warning control file keyword <b> external_assignment</b>. To ensure that a run-time exception cannot occur make the type of the external variable such that any possible bit pattern that may be read from the external source is a valid value. Explicit tests of the value may then be used to determine the value of an object of the desired type. In SPARK 95 the 'Valid attribute (see ALRM 13.9.2) may be used to determine the validity of a value if it can be guaranteed that the assignment of an invalid value read from an external variable will not raise a run time exception, either by compiling the code with checks off or by ensuring the compiler does not apply constraint checks when assigning same subtype objects. Boolean external variables require special care since the Examiner does not generate run-time checks for Boolean variables; use of 'Valid is essential when reading Boolean external variables. More information on interfacing can be found in the INFORMED manual and the SPARK Proof Manual.
</i>
</p>
<a name="warning-394"></a>
<p>
--- Warning : 394 : Variables of type XXX cannot be initialized using the facilities of this package.
</p>
<p>
<i>
A variable of a private type can only be used (without generating a data flow error) if there is some way of giving it an initial value. For a limited private type only a procedure that has an export of that type and no imports of that type is suitable. For a private type either a procedure, function or (deferred) constant is required. The required facility may be placed in, or already available in, a public child package. (warning control file keyword:<b> private_types</b>).
</i>
</p>
<a name="warning-395"></a>
<p>
--- Warning : 395 : Variable XXX is an external (stream) variable but does not have an address clause or a pragma import.
</p>
<p>
<i>
When own variables are given modes they are considered to be inputs from or outputs to the external environment. The Examiner regards them as being volatile (i.e. their values can change in ways not visible from an inspection of the source code). If a variable is declared in that way but it is actually an ordinary variable which is NOT connected to the environment then misleading analysis is inevitable. The Examiner expects to find an address clause or pragma import for variables of this kind to indicate that they are indeed memory-mapped input/output ports. This warning is issued if an address clause or pragma import is not found.
</i>
</p>
<a name="warning-396"></a>
<p>
--- Warning : 396 : Unexpected address clause. Variable XXX is not identified as an external (stream) variable.
</p>
<p>
<i>
The presence of an address clause makes it possible that the variable is connected to some external device. The behaviour of such variables is best captured by making them moded own variables (or "stream" variables). If variables connected to the external environment are treated as if they are normal program variables then misleading analysis results are inevitable. The use of address clauses on local variables of subprograms is particularly deprecated. The warning may safely be disregarded if the variable is not associated with memory-mapped input/output or if the variable concerned is an own variable and the operations on it are suitably annotated to indicate volatile, stream-like behaviour. (warning control file keyword:<b> address_clauses</b>).
</i>
</p>
<a name="warning-397"></a>
<p>
--- Warning : 397 : Variables of type XXX can never be initialized before use.
</p>
<p>
<i>
A variable of a private type can only be used (without generating a data flow error) if there is some way of giving it an initial value. For a limited private type only a procedure that has an export of that type and no imports of that type is suitable. For a private type either a procedure, function or (deferred) constant is required.
</i>
</p>
<a name="warning-398"></a>
<p>
--- Warning : 398 : The own variable XXX can never be initialized before use.
</p>
<p>
<i>
The own variable can only be used (without generating a data flow error) if there is some way of giving it an initial value. If it is initialized during package elaboration (or implicitly by the environment because it represents an input port) it should be placed in an "initializes" annotation. Otherwise there needs to be some way of assigning an initial value during program execution. Either the own variable needs to be declared in the visible part of the package so that a direct assignment can be made to it or, more usually, the package must declare at least one procedure for which the own variable is an export but not an import. Note that if the own variable is an abstract own variable with some constituents initialized during elaboration and some during program execution then it will never be possible correctly to initialize it; such abstract own variables must be divided into separate initialized and uninitialized components.
</i>
</p>
<a name="warning-399"></a>
<p>
--- Warning : 399 : The called subprogram has semantic errors in its interface (parameters and/or annotations) which prevent flow analysis of this call.
</p>
<p>
<i>
Issued to inform the user that flow analysis has been suppressed because of the error in the called subprogram's interface.
</i>
</p>
<a name="warning-9"></a>
<p>
--- Warning : 9 : The body of XXX has a hidden exception handler - analysis and verification of contracts for this handler have not been performed.
</p>
<p>
<i>
Issued when a --# hide XXX annotation is used to hide a user-defined exception handler. (warning control file keyword:<b> handler_parts</b>).
</i>
</p>
<a name="warning-10"></a>
<p>
--- Warning : 10 : XXX is hidden - hidden text is ignored by the Examiner.
</p>
<p>
<i>
Issued when a --# hide XXX annotation is used. (warning control file keyword:<b> hidden_parts</b>).
</i>
</p>
<a name="warning-400"></a>
<p>
--- Warning : 400 : Variable XXX is declared but not used.
</p>
<p>
<i>
Issued when a variable declared in a subprogram is neither referenced, nor updated. (warning control file keyword: <b>unused_variables</b>).
</i>
</p>
<a name="warning-402"></a>
<p>
--- Warning : 402 : Default assertion planted to cut loop.
</p>
<p>
<i>
In order to prove properties of code containing loops, the loop must be "cut" with a suitable assertion statement. When generating run-time checks, the Examiner inserts a simple assertion to cut any loops which do not have one supplied by the user. The assertion is placed at the point where this warning appears in the listing file. The default assertion asserts that the subprogram's precondition (if any) is satisfied, that all imports to it are in their subtypes and that any for loop counter is in its subtype. In many cases this provides sufficient information to complete a proof of absence of run-time errors. If more information is required, then the user can supply an assertion and the Examiner will append the above information to it. (warning control file keyword: <b>default_loop_assertions</b>).
</i>
</p>
<a name="warning-403"></a>
<p>
--- Warning : 403 : XXX is declared as a variable but used as a constant.
</p>
<p>
<i>
XXX is a variable which was initialized at declaration but whose value is only ever read not updated; it could therefore have been declared as a constant. (warning control file keyword: <b>constant_variables</b>).
</i>
</p>
<a name="warning-404"></a>
<p>
--- Warning : 404 : Subprogram imports variables of abstract types for which run-time checks cannot be generated.
</p>
<a name="warning-405"></a>
<p>
--- Warning : 405 : VCs for statements including real numbers are approximate.
</p>
<p>
<i>
The Examiner generates VCs associated with real numbers using perfect arithmetic rather than the machine approximations used on the target platform. It is possible that rounding errors might cause a Constraint_Error even if these run-time check proofs are completed satisfactorily. (warning control file keyword: <b>real_rtcs</b>).
</i>
</p>
<a name="warning-406"></a>
<p>
--- Warning : 406 : VC Generator unable to create output files. Permission is required to create directories and files in the output directory.
</p>
<p>
<i>
This message is echoed to the screen if the Examiner is unable to create output files for the VCs being generated (for instance, if the user does not have write permission for the output directory).
</i>
</p>
<a name="warning-407"></a>
<p>
--- Warning : 407 : This package requires a body. Care should be taken to provide one because an Ada compiler will not detect its omission.
</p>
<p>
<i>
Issued where SPARK own variable and initialization annotations make it clear that a package requires a body but where no Ada requirement for a body exists.
</i>
</p>
<a name="warning-408"></a>
<p>
--- Warning : 408 : VCs could not be generated for this subprogram owing to semantic errors in its specification or body. Unprovable (False) VC generated.
</p>
<p>
<i>
Semantic errors prevent VC Generation, so a single False VC is produced. This will be detected and reported by POGS.
</i>
</p>
<a name="warning-409"></a>
<p>
--- Warning : 409 : VCs could not be generated for this subprogram due to its size and/or complexity exceeding the capacity of the VC Generator. Unprovable (False) VC generated.
</p>
<p>
<i>
A subprogram which has excessive complexity of data structure or number of paths may cause the VC Generator to exceed its capacity. A single False VC is generated in this case to make sure this error is detected in subsequent proof and analysis with POGS.
</i>
</p>
<a name="warning-410"></a>
<p>
--- Warning : 410 : Task or interrupt handler XXX is either unavailable (hidden) or has semantic errors in its specification which prevent partition-wide flow analysis being carried out.
</p>
<p>
<i>
Partition-wide flow analysis is performed by checking all packages withed by the main program for tasks and interrupt handlers and constructing an overall flow relation that captures their cumulative effect. It is for this reason that SPARK requires task and protected types to be declared in package specifications. If a task or protected type which contains an interrupt handler, is hidden from the Examiner (in a hidden package private part) or contains errors in it specification, the partition-wide flow analysis cannot be constructed correctly and is therefore suppressed. Correct the specification of the affected tasks and (temporarily if desired) make them visible to the Examiner.
</i>
</p>
<a name="warning-411"></a>
<p>
--- Warning : 411 : Task type XXX is unavailable and has not been considered in the shared variable check.
</p>
<p>
<i>
The Examiner checks that there is no potential sharing of unprotected data between tasks. If a task type is hidden from the Examiner in a hidden package private part, then it is not possible to check whether that task may share unprotected data.
</i>
</p>
<a name="warning-412"></a>
<p>
--- Warning : 412 : Task type XXX is unavailable and has not been considered in the max-one-in-a-queue check.
</p>
<p>
<i>
The Examiner checks that no more than one task can suspend on a single object. If a task is hidden from the Examiner in a hidden package private part, then it is not possible to check whether that task may suspend on the same object as another task.
</i>
</p>
<a name="warning-413"></a>
<p>
--- Warning : 413 : Task or main program XXX has errors in its annotations. The shared variable and max-one-in-a-queue checks may be incomplete.
</p>
<p>
<i>
The Examiner checks that no more than one task can suspend on a single object and that there is no potential sharing of unprotected data between tasks. These checks depend on the accuracy of the annotations on the task types withed by the main program. If these annotations contain errors, then any reported violations of the shared variable and max-one-in-a-queue checks will be correct; however, the check may be incomplete. The errors in the task annotations should be corrected.
</i>
</p>
<a name="warning-414"></a>
<p>
--- Warning : 414 : Long output file name has been truncated.
</p>
<p>
<i>
Raised if an output file name is longer than the limit imposed by the operating system and has been truncated. Section 4.7 of the Examiner User Manual describes how the output file names are constructed. If this message is seen there is a possibility that the output from two or more subprograms will be written to the same file name, if they have a sufficiently large number of characters in common.
</i>
</p>
<a name="warning-415"></a>
<p>
--- Warning : 415 : The analysis of generic packages is not yet supported. It will be supported in a future release of the Examiner.
</p>
<a name="warning-420"></a>
<p>
--- Warning : 420 : Instance of SEPR 2124 found. An extra VC will be generated here and must be discharged to ensure absence of run-time errors. Please seek advice for assistance with this issue.
</p>
<p>
<i>
In release 7.5 of the Examiner, a flaw in the VC generation was fixed such that subcomponents of records and elements of arrays when used as "out" or "in out" parameters will now generate an additional VC to verify absence of run-time errors. This warning flags an instance of this occurrence. Please read the release note and/or seek advice for assistance with this issue.
</i>
</p>
<a name="warning-425"></a>
<p>
--- Warning : 425 : The -vcg switch should be used with the selected language profile.
</p>
<p>
<i>
A code generator language profile such as KCG is in use and so conditional flow errors may be present in the subprogram. Therefore the -vcg switch must be used to generate VCs and the VCs related to definedness discharged using the proof tools.
</i>
</p>
<a name="warning-426"></a>
<p>
--- Warning : 426 : The with_clause contains a reference to a public child of the package. The Examiner will not detect mutual recursion between subprograms of the two packages.
</p>
<p>
<i>
A code generator language profile such as KCG allows a package body to with its own public child which is not normally permitted in SPARK. The removal of this restriction means that the Examiner will not detect mutual recursion between subprograms declared in the visible parts of the package and its child. The code generator is expected to guarantee the absence of recursion.
</i>
</p>
<a name="warning-430"></a>
<p>
--- Warning : 430 : SLI generation abandoned owing to syntax or semantic errors or multiple units in a single source file.
</p>
<a name="warning-431"></a>
<p>
--- Warning : 431 : Preconditions on the main program are assumed to be true and not checked by the VC generation system.
</p>
<a name="warning-444"></a>
<p>
--- Warning : 444 : Assumptions cannot be checked and must be justified with an accept annotation.
</p>
<a name="warning-495"></a>
<p>
--- Warning : 495 : The VC file XXX has a pathname longer than 255 characters which can produce unexpected problems on Windows with respect to the SPARK tools (undischarged VCs) and other tools.
</p>
<p>
<i>
There is little that can be done to work around this as this is a fundamental limitation of Windows. You could try one of the following: Perform analysis higher up in the directory tree (i.e. in C:\a instead of C:\project_name\spark\analysis). You could try remapping a directory to a new drive to do the same (google for subst). You could try renaming or restructuring your program to flatten the structure a bit. And finally you can perform analysis on a UNIX system such as Mac OSX or GNU/Linux as they do not suffer from this problem.
</i>
</p>
<a name="flow-501"></a>
<p>
??? Flow Error : 501 : Expression contains reference(s) to variable XXX, which may have an undefined value.
</p>
<p>
<i>
The expression may be that in an assignment or return statement, an actual parameter, or a condition occurring in an if or case statement, an iteration scheme or exit statement. The Examiner has identified at least one syntactic path to this point where the variable has NOT been given a value. Conditional data flow errors are extremely serious and must be carefully investigated. NOTE: the presence of random and possibly invalid values introduced by data flow errors invalidates proof of exception freedom for the subprogram body which contains them. All reports of data flow errors must be eliminated or shown to be associated with semantically infeasible paths before attempting exception freedom proofs. See the manual "SPARK Proof Manual " for full details.
</i>
</p>
<a name="flow-504"></a>
<p>
??? Flow Error : 504 : Statement contains reference(s) to variable XXX, which may have an undefined value.
</p>
<p>
<i>
The statement here is a procedure call, and the variable XXX may appear in an actual parameter, whose value is imported when the procedure is executed. If the variable XXX does not occur in the actual parameter list, it is an imported global variable of the procedure (named in its global definition). The Examiner has identified at least one syntactic path to this point where the variable has NOT been given a value. Conditional data flow errors are extremely serious and must be carefully investigated. NOTE: the presence of random and possibly invalid values introduced by data flow errors invalidates proof of exception freedom for the subprogram body which contains them. All reports of data flow errors must be eliminated or shown to be associated with semantically infeasible paths before attempting exception freedom proofs. See the manual "SPARK Proof Manual " for full details.
</i>
</p>
<a name="flow-601"></a>
<p>
??? Flow Error : 601 : YYY may be derived from the imported value(s) of XXX.
</p>
<p>
<i>
Here the item on the left of "may be derived from ..." is an exported variable and the item(s) on the right are imports of a procedure subprogram. The message reports a possible dependency, found in the code, which does not appear in the specified dependency relation (derives annotation). The discrepancy could be caused by an error in the subprogram code which implements an unintended dependency. It could also be in an error in the subprogram derives annotation which omits a necessary and intended dependency. Finally, the Examiner may be reporting a false coupling between two items resulting from a non-executable code path or the sharing of disjoint parts of structured or abstract data (e.g one variable writing to one element of an array and another variable reading back a different element). Unexpected dependencies should be investigated carefully and only accepted without modification of either code or annotation if it is certain they are of "false coupling" kind.
</i>
</p>
<a name="flow-601"></a>
<p>
??? Flow Error : 601 : The imported value of XXX may be used in the derivation of YYY.
</p>
<p>
<i>
Here first item is an import and the second is an export of a procedure subprogram. The message reports a possible dependency, found in the code, which does not appear in the specified dependency relation. This version of the message has been retained for backward compatibility.
</i>
</p>
<a name="flow-602"></a>
<p>
??? Flow Error : 602 : The undefined initial value of XXX may be used in the derivation of YYY.
</p>
<p>
<i>
Here XXX is a non-imported variable, and YYY is an export, of a procedure subprogram.
</i>
</p>
<a name="flow-605"></a>
<p>
??? Flow Error : 605 : Information flow from XXX to YYY violates information flow policy.
</p>
<p>
<i>
This message indicates a violation of security or safety policy, such as information flow from a Secret input to an Unclassified output.
</i>
</p>
<a name="flow-606"></a>
<p>
??? Flow Error : 606 : The imported value of XXX may be used in the derivation of YYY. Furthermore, this information flow violates information flow policy.
</p>
<p>
<i>
Here XXX is an import and YYY is an export of a procedure subprogram. The message reports a possible dependency, found in the code, which does not appear in the specified dependency relation. If this dependency did appear in the dependency relation, then it would also constitute an integrity violation.
</i>
</p>
<a name="flow-20"></a>
<p>
!!! Flow Error : 20 : Expression contains reference(s) to variable XXX which has an undefined value.
</p>
<p>
<i>
The expression may be that in an assignment or return statement, an actual parameter, or a condition occurring in an if or case statement, an iteration scheme or exit statement. NOTE: the presence of random and possibly invalid values introduced by data flow errors invalidates proof of exception freedom for the subprogram body which contains them. All unconditional data flow errors must be eliminated before attempting exception freedom proofs. See the manual "SPARK Proof Manual" for full details.
</i>
</p>
<a name="flow-23"></a>
<p>
!!! Flow Error : 23 : Statement contains reference(s) to variable XXX which has an undefined value.
</p>
<p>
<i>
The statement here is a procedure call or an assignment to an array element, and the variable XXX may appear in an actual parameter, whose value is imported when the procedure is executed. If the variable XXX does not occur in the actual parameter list, it is an imported global variable of the procedure (named in its global definition). NOTE: the presence of random and possibly invalid values introduced by data flow errors invalidates proof of exception freedom for the subprogram body which contains them. All unconditional data flow errors must be eliminated before attempting exception freedom proofs. See the manual "SPARK Proof Manual" for full details.
</i>
</p>
<a name="flow-22"></a>
<p>
!!! Flow Error : 22 : Value of expression is invariant.
</p>
<p>
<i>
The expression is either a case expression or a condition (Boolean-valued expression) associated with an if-statement, not contained in a loop statement. The message indicates that the expression takes the same value whenever it is evaluated, in all program executions. Note that if the expression depends on values obtained by a call to another other subprogram then a possible source for its invariance might be an incorrect annotation on the called subprogram.
</i>
</p>
<a name="flow-30"></a>
<p>
!!! Flow Error : 30 : The variable XXX is imported but neither referenced nor exported.
</p>
<a name="flow-31"></a>
<p>
!!! Flow Error : 31 : The variable XXX is exported but not (internally) defined.
</p>
<a name="flow-32"></a>
<p>
!!! Flow Error : 32 : The variable XXX is neither imported nor defined.
</p>
<a name="flow-33"></a>
<p>
!!! Flow Error : 33 : The variable XXX is neither referenced nor exported.
</p>
<a name="flow-34"></a>
<p>
!!! Flow Error : 34 : The imported, non-exported variable XXX may be redefined.
</p>
<p>
<i>
The updating of imported-only variables is forbidden under all circumstances.
</i>
</p>
<a name="flow-35"></a>
<p>
!!! Flow Error : 35 : Importation of the initial value of variable XXX is ineffective.
</p>
<p>
<i>
The meaning of this message is explained in Section 4.2 of Appendix A.
</i>
</p>
<a name="flow-36"></a>
<p>
!!! Flow Error : 36 : The referencing of variable XXX by a task or interrupt handler has been omitted from the partition annotation.
</p>
<p>
<i>
This message is only issued when processing the partition annotation. The partition annotation must describe all the actions of the tasks and interrupt handlers making up the program. Therefore, if a variable is imported somewhere in the program by a task or interrupt handler, then it must also be an import at the partition level. As well as the omission of explicit imports, this message is also generated if the implicit imports of tasks and interrupt handlers are omitted. For tasks this means any variable the task suspends on and for interrupt handlers it means the name of the protected object containing the handler or, if given, the name of the interrupt stream associated with the handler.
</i>
</p>
<a name="flow-37"></a>
<p>
!!! Flow Error : 37 : The updating of variable XXX by a task or interrupt handler has been omitted from the partition annotation.
</p>
<p>
<i>
This message is only issued when processing the partition annotation. The partition annotation must describe all the actions of the tasks and interrupt handlers making up the program. Therefore, if a variable is exported somewhere in the program by a task or interrupt handler, then it must also be an export at the partition level.
</i>
</p>
<a name="flow-38"></a>
<p>
!!! Flow Error : 38 : The protected element XXX must be initialized at its point of declaration.
</p>
<p>
<i>
To avoid potential race conditions during program startup, all elements of a protected type must be initialized with a constant value at the point of declaration.
</i>
</p>
<a name="flow-50"></a>
<p>
!!! Flow Error : 50 : YYY is not derived from the imported value(s) of XXX.
</p>
<p>
<i>
The item before "is not derived ..." is an export or function return value and the item(s) after are imports of the subprogram. The message indicates that a dependency, stated in the dependency relation (derives annotation) or implied by the function signature is not present in the code. The absence of a stated dependency is always an error in either code or annotation.
</i>
</p>
<a name="flow-50"></a>
<p>
!!! Flow Error : 50 : The imported value of XXX is not used in the derivation of YYY.
</p>
<p>
<i>
The variable XXX, which appears in the dependency relation of a procedure subprogram, as an import from which the export YYY is derived, is not used in the code for that purpose. YYY may be a function return value. This version of the message has been retained for backward compatibility.
</i>
</p>
<a name="flow-53"></a>
<p>
!!! Flow Error : 53 : The package initialization of XXX is ineffective.
</p>
<p>
<i>
Here XXX is an own variable of a package, initialized in the package initialization. The message states that XXX is updated elsewhere, before being read.
</i>
</p>
<a name="flow-54"></a>
<p>
!!! Flow Error : 54 : The initialization at declaration of XXX is ineffective.
</p>
<p>
<i>
Issued if the value assigned to a variable at declaration cannot affect the final value of any exported variable of the subprogram in which it occurs because, for example, it is overwritten before it is used.
</i>
</p>
<a name="flow-57"></a>
<p>
!!! Flow Error : 57 : Information flow from XXX to YYY violates the selected information flow policy.
</p>
<p>
<i>
Issued if safety or security policy checking is enabled and the specified dependency relation contains a relationship in which the flow of information from state or input to state or output violates the selected policy.
</i>
</p>
<a name="flow-1"></a>
<p>
!!! Flow Error : 1 : The previously stated updating of XXX has been omitted.
</p>
<p>
<i>
XXX occurred as an export in the earlier dependency relation but neither XXX nor any refinement constituent of it occurs in the refined dependency relation.
</i>
</p>
<a name="flow-2"></a>
<p>
!!! Flow Error : 2 : The updating of XXX has not been previously stated.
</p>
<p>
<i>
A refinement constituent of XXX occurs as an export in the refined dependency relation but XXX does not occur as an export in the earlier dependency relation.
</i>
</p>
<a name="flow-3"></a>
<p>
!!! Flow Error : 3 : The previously stated dependency of the exported value of XXX on the imported value of YYY has been omitted.
</p>
<p>
<i>
The dependency of the exported value of XXX on the imported value of YYY occurs in the earlier dependency relation but in the refined dependency relation, no constituents of XXX depend on any constituents of YYY.
</i>
</p>
<a name="flow-4"></a>
<p>
!!! Flow Error : 4 : The dependency of the exported value of XXX on the imported value of YYY has not been previously stated.
</p>
<p>
<i>
A refined dependency relation states a dependency of XXX or a constituent of XXX on YYY or a constituent of YYY, but in the earlier relation, no dependency of XXX on YYY is stated.
</i>
</p>
<a name="flow-5"></a>
<p>
!!! Flow Error : 5 : The (possibly implicit) dependency of the exported value of XXX on its imported value has not been previously stated.
</p>
<p>
<i>
Either a dependency of a constituent of XXX on at least one constituent of XXX occurs in the refined dependency relation, or not all the constituents of XXX occur as exports in the refined dependency relation. However, the dependency of XXX on itself does not occur in the earlier dependency relation.
</i>
</p>
<a name="flow-40"></a>
<p>
!!! Flow Error : 40 : Exit condition is stable, of index 0.
</p>
<p>
!!! Flow Error : 40 : Exit condition is stable, of index 1.
</p>
<p>
!!! Flow Error : 40 : Exit condition is stable, of index greater than 1.
</p>
<p>
<i>
In these cases the (loop) exit condition occurs in an iteration scheme, an exit statement, or an if-statement whose (unique) sequence of statements ends with an unconditional exit statement - see the SPARK Definition. The concept of loop stability is explained in Section 4.4 of Appendix A. A loop exit condition which is stable of index 0 takes the same value at every iteration around the loop, and with a stability index of 1, it always takes the same value after the first iteration. Stability with indices greater than 0 does not necessarily indicate a program error, but the conditions for loop termination require careful consideration.
</i>
</p>
<a name="flow-41"></a>
<p>
!!! Flow Error : 41 : Expression is stable, of index 0.
</p>
<p>
!!! Flow Error : 41 : Expression is stable, of index 1.
</p>
<p>
!!! Flow Error : 41 : Expression is stable, of index greater than 1.
</p>
<p>
<i>
The expression, occurring within a loop, is either a case expression or a condition (Boolean-valued expression) associated with an if-statement, whose value determines the path taken through the body of the loop, but does not (directly) cause loop termination. Information flow analysis shows that the expression does not vary as the loop is executed, so the same branch of the case or if statement will be taken on every loop iteration. An Index of 0 means that the expression is immediately stable, 1 means it becomes stable after the first pass through the loop and so on. The stability index is given with reference to the loop most closely-containing the expression. Stable conditionals are not necessarily an error but do require careful evaluation; they can often be removed by lifting them outside the loop.
</i>
</p>
<a name="flow-10"></a>
<p>
!!! Flow Error : 10 : Ineffective statement.
</p>
<p>
<i>
Execution of this statement cannot affect the final value of any exported variable of the subprogram in which it occurs. The cause may be a data-flow anomaly (i.e. the statement could be an assignment to a variable, which is always updated again before it is read. However, statements may be ineffective for other reasons - see Section 4.1 of Appendix A.
</i>
</p>
<a name="flow-10"></a>
<p>
!!! Flow Error : 10 : Assignment to XXX is ineffective.
</p>
<p>
<i>
This message always relates to a procedure call or an assignment to a record. The variable XXX may be an actual parameter corresponding to a formal one that is exported; otherwise XXX is an exported global variable of the procedure. The message indicates that the updating of XXX, as a result of the procedure call, has no effect on any final values of exported variables of the calling subprogram. Where the ineffective assignment is expected (e.g. calling a supplied procedure that returns more parameters than are needed for the immediate purpose), it can be a useful convention to choose a distinctive name, such as "Unused" for the actual parameter concerned. The message "Assignment to Unused is ineffective" is then self-documenting.
</i>
</p>
<a name="illegal-1"></a>
<p>
*** Illegal Structure : 1 : An exit statement may not occur here.
</p>
<p>
<i>
Exit statements must be of the form "exit when c;" where the closest enclosing statement is a loop or "if c then S; exit;" where the if statement has no else part and its closest enclosing statement is a loop. See the SPARK Definition for details.
</i>
</p>
<a name="illegal-2"></a>
<p>
*** Illegal Structure : 2 : A return statement may not occur here.
</p>
<p>
<i>
A return statement may only occur as the last statement of a function.
</i>
</p>
<a name="illegal-3"></a>
<p>
*** Illegal Structure : 3 : The last statement of this function is not a return statement.
</p>
<p>
<i>
SPARK requires that the last statement of a function be a return statement.
</i>
</p>
<a name="illegal-4"></a>
<p>
*** Illegal Structure : 4 : Return statements may not occur in procedure subprograms.
</p>
<a name="note-1"></a>
<p>
--- note : 1 : This dependency relation was not used for this analysis and has not been checked for accuracy.
</p>
<p>
<i>
Issued when information flow analysis is not performed and when modes were specified in the global annotation. It is a reminder that the dependencies specified in this annotation (including whether each variable is an import or an export) have not been checked against the code, and may therefore be incorrect. (warning control file keyword:<b> notes</b>).
</i>
</p>
<a name="note-2"></a>
<p>
--- note : 2 : This dependency relation has been used only to identify imports and exports, dependencies have been ignored.
</p>
<p>
<i>
Issued as a reminder when information flow analysis is not performed in SPARK 83. The dependencies specified in this annotation have not been checked against the code, and may therefore be incorrect. (warning control file keyword: <b>notes</b>).
</i>
</p>
<a name="note-3"></a>
<p>
--- note : 3 : The deferred constant Null_Address has been implicitly defined here.
</p>
<p>
<i>
Issued as a reminder that the declaration of the type Address within the target configuration file implicitly defines a deferred constant of type Null_Address. (warning control file keyword:<b> notes</b>).
</i>
</p>
<a name="note-4"></a>
<p>
--- note : 4 : The constant Default_Priority, of type Priority, has been implicitly defined here.
</p>
<p>
<i>
Issued as a reminder that the declaration of the subtype Priority within the target configuration file implicitly defines a constant Default_Priority, of type Priority, with the value (Priority'First + Priority'Last) / 2. (warning control file keyword:<b> notes</b>).
</i>
</p>
<a name="program-has-a-cyclic-path-without-an-assertion"></a>
<p>
!!! Program has a cyclic path without an assertion.
</p>
<p>
<i>
SPARK generates VCs for paths between cutpoints in the code; these must be chosen by the developer in such a way that every loop traverses at least one cutpoint. If the SPARK Examiner detects a loop which is not broken by a cutpoint, it cannot generate verification conditions for the subprogram in which the loop is located, and instead, issues this warning. This can only be corrected by formulating a suitable loop-invariant assertion for the loop and including it as an assertion in the SPARK text at the appropriate point.
</i>
</p>
<a name="unexpected-node-kind-in-main-tree"></a>
<p>
!!! Unexpected node kind in main tree.
</p>
<p>
<i>
This message indicates corruption of the syntax tree being processed by the VC Generator. It should not be seen in normal operation.
</i>
</p>
</body>
</html>
|