raz / commit fa4b6510

commit
fa4b6510f8a6c7ee79dbc8f66a028eb7956e8861
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
a839cfee
conform: a program at each of section 10's least limits, compiled and run

patch · log

34 files changed, +595 -0

conform/run/LimitAssign.expect (history) added +1 -0

@@ -0,0 +1 @@
1+120

conform/run/LimitAssign.raz (history) added +11 -0

@@ -0,0 +1,11 @@
1+(* 15 variables assigned together.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitAssign;
4+import Out;
5+proc f(): (INT, INT, INT, INT, INT, INT, INT, INT, INT, INT, INT, INT, INT, INT, INT);
6+begin return 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15; end;
7+var a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15: INT;
8+begin
9+ a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 := f();
10+ Out.int(a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11 + a12 + a13 + a14 + a15); Out.char('\n');
11+end LimitAssign.

conform/run/LimitDefers.expect (history) added +1 -0

@@ -0,0 +1 @@
1+1098765432109876543210987654321

conform/run/LimitDefers.raz (history) added +39 -0

@@ -0,0 +1,39 @@
1+(* 31 deferred statements in force in one procedure.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitDefers;
4+import Out;
5+proc p;
6+begin
7+ defer Out.int(1);
8+ defer Out.int(2);
9+ defer Out.int(3);
10+ defer Out.int(4);
11+ defer Out.int(5);
12+ defer Out.int(6);
13+ defer Out.int(7);
14+ defer Out.int(8);
15+ defer Out.int(9);
16+ defer Out.int(0);
17+ defer Out.int(1);
18+ defer Out.int(2);
19+ defer Out.int(3);
20+ defer Out.int(4);
21+ defer Out.int(5);
22+ defer Out.int(6);
23+ defer Out.int(7);
24+ defer Out.int(8);
25+ defer Out.int(9);
26+ defer Out.int(0);
27+ defer Out.int(1);
28+ defer Out.int(2);
29+ defer Out.int(3);
30+ defer Out.int(4);
31+ defer Out.int(5);
32+ defer Out.int(6);
33+ defer Out.int(7);
34+ defer Out.int(8);
35+ defer Out.int(9);
36+ defer Out.int(0);
37+ defer Out.int(1);
38+end;
39+begin p; Out.char('\n'); end LimitDefers.

conform/run/LimitElements.expect (history) added +1 -0

@@ -0,0 +1 @@
1+1047552

conform/run/LimitElements.raz (history) added +12 -0

@@ -0,0 +1,12 @@
1+(* 1023 elements in one array literal, a constant's and an expression's.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitElements;
4+import Out;
5+var s, i: INT;
6+var v: [1023]INT;
7+const A: [1023]INT = [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];
8+begin
9+ v := [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];
10+ for i := 0 to 1022 do s := s + A[i] + v[i]; end;
11+ Out.int(s); Out.char('\n');
12+end LimitElements.

conform/run/LimitLabels.expect (history) added +1 -0

@@ -0,0 +1 @@
1+255

conform/run/LimitLabels.raz (history) added +267 -0

@@ -0,0 +1,267 @@
1+(* 255 labels in one match.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitLabels;
4+import Out;
5+var x: INT;
6+begin
7+ x := 255;
8+ match x of
9+ | 1: Out.int(1);
10+ | 2: Out.int(2);
11+ | 3: Out.int(3);
12+ | 4: Out.int(4);
13+ | 5: Out.int(5);
14+ | 6: Out.int(6);
15+ | 7: Out.int(7);
16+ | 8: Out.int(8);
17+ | 9: Out.int(9);
18+ | 10: Out.int(10);
19+ | 11: Out.int(11);
20+ | 12: Out.int(12);
21+ | 13: Out.int(13);
22+ | 14: Out.int(14);
23+ | 15: Out.int(15);
24+ | 16: Out.int(16);
25+ | 17: Out.int(17);
26+ | 18: Out.int(18);
27+ | 19: Out.int(19);
28+ | 20: Out.int(20);
29+ | 21: Out.int(21);
30+ | 22: Out.int(22);
31+ | 23: Out.int(23);
32+ | 24: Out.int(24);
33+ | 25: Out.int(25);
34+ | 26: Out.int(26);
35+ | 27: Out.int(27);
36+ | 28: Out.int(28);
37+ | 29: Out.int(29);
38+ | 30: Out.int(30);
39+ | 31: Out.int(31);
40+ | 32: Out.int(32);
41+ | 33: Out.int(33);
42+ | 34: Out.int(34);
43+ | 35: Out.int(35);
44+ | 36: Out.int(36);
45+ | 37: Out.int(37);
46+ | 38: Out.int(38);
47+ | 39: Out.int(39);
48+ | 40: Out.int(40);
49+ | 41: Out.int(41);
50+ | 42: Out.int(42);
51+ | 43: Out.int(43);
52+ | 44: Out.int(44);
53+ | 45: Out.int(45);
54+ | 46: Out.int(46);
55+ | 47: Out.int(47);
56+ | 48: Out.int(48);
57+ | 49: Out.int(49);
58+ | 50: Out.int(50);
59+ | 51: Out.int(51);
60+ | 52: Out.int(52);
61+ | 53: Out.int(53);
62+ | 54: Out.int(54);
63+ | 55: Out.int(55);
64+ | 56: Out.int(56);
65+ | 57: Out.int(57);
66+ | 58: Out.int(58);
67+ | 59: Out.int(59);
68+ | 60: Out.int(60);
69+ | 61: Out.int(61);
70+ | 62: Out.int(62);
71+ | 63: Out.int(63);
72+ | 64: Out.int(64);
73+ | 65: Out.int(65);
74+ | 66: Out.int(66);
75+ | 67: Out.int(67);
76+ | 68: Out.int(68);
77+ | 69: Out.int(69);
78+ | 70: Out.int(70);
79+ | 71: Out.int(71);
80+ | 72: Out.int(72);
81+ | 73: Out.int(73);
82+ | 74: Out.int(74);
83+ | 75: Out.int(75);
84+ | 76: Out.int(76);
85+ | 77: Out.int(77);
86+ | 78: Out.int(78);
87+ | 79: Out.int(79);
88+ | 80: Out.int(80);
89+ | 81: Out.int(81);
90+ | 82: Out.int(82);
91+ | 83: Out.int(83);
92+ | 84: Out.int(84);
93+ | 85: Out.int(85);
94+ | 86: Out.int(86);
95+ | 87: Out.int(87);
96+ | 88: Out.int(88);
97+ | 89: Out.int(89);
98+ | 90: Out.int(90);
99+ | 91: Out.int(91);
100+ | 92: Out.int(92);
101+ | 93: Out.int(93);
102+ | 94: Out.int(94);
103+ | 95: Out.int(95);
104+ | 96: Out.int(96);
105+ | 97: Out.int(97);
106+ | 98: Out.int(98);
107+ | 99: Out.int(99);
108+ | 100: Out.int(100);
109+ | 101: Out.int(101);
110+ | 102: Out.int(102);
111+ | 103: Out.int(103);
112+ | 104: Out.int(104);
113+ | 105: Out.int(105);
114+ | 106: Out.int(106);
115+ | 107: Out.int(107);
116+ | 108: Out.int(108);
117+ | 109: Out.int(109);
118+ | 110: Out.int(110);
119+ | 111: Out.int(111);
120+ | 112: Out.int(112);
121+ | 113: Out.int(113);
122+ | 114: Out.int(114);
123+ | 115: Out.int(115);
124+ | 116: Out.int(116);
125+ | 117: Out.int(117);
126+ | 118: Out.int(118);
127+ | 119: Out.int(119);
128+ | 120: Out.int(120);
129+ | 121: Out.int(121);
130+ | 122: Out.int(122);
131+ | 123: Out.int(123);
132+ | 124: Out.int(124);
133+ | 125: Out.int(125);
134+ | 126: Out.int(126);
135+ | 127: Out.int(127);
136+ | 128: Out.int(128);
137+ | 129: Out.int(129);
138+ | 130: Out.int(130);
139+ | 131: Out.int(131);
140+ | 132: Out.int(132);
141+ | 133: Out.int(133);
142+ | 134: Out.int(134);
143+ | 135: Out.int(135);
144+ | 136: Out.int(136);
145+ | 137: Out.int(137);
146+ | 138: Out.int(138);
147+ | 139: Out.int(139);
148+ | 140: Out.int(140);
149+ | 141: Out.int(141);
150+ | 142: Out.int(142);
151+ | 143: Out.int(143);
152+ | 144: Out.int(144);
153+ | 145: Out.int(145);
154+ | 146: Out.int(146);
155+ | 147: Out.int(147);
156+ | 148: Out.int(148);
157+ | 149: Out.int(149);
158+ | 150: Out.int(150);
159+ | 151: Out.int(151);
160+ | 152: Out.int(152);
161+ | 153: Out.int(153);
162+ | 154: Out.int(154);
163+ | 155: Out.int(155);
164+ | 156: Out.int(156);
165+ | 157: Out.int(157);
166+ | 158: Out.int(158);
167+ | 159: Out.int(159);
168+ | 160: Out.int(160);
169+ | 161: Out.int(161);
170+ | 162: Out.int(162);
171+ | 163: Out.int(163);
172+ | 164: Out.int(164);
173+ | 165: Out.int(165);
174+ | 166: Out.int(166);
175+ | 167: Out.int(167);
176+ | 168: Out.int(168);
177+ | 169: Out.int(169);
178+ | 170: Out.int(170);
179+ | 171: Out.int(171);
180+ | 172: Out.int(172);
181+ | 173: Out.int(173);
182+ | 174: Out.int(174);
183+ | 175: Out.int(175);
184+ | 176: Out.int(176);
185+ | 177: Out.int(177);
186+ | 178: Out.int(178);
187+ | 179: Out.int(179);
188+ | 180: Out.int(180);
189+ | 181: Out.int(181);
190+ | 182: Out.int(182);
191+ | 183: Out.int(183);
192+ | 184: Out.int(184);
193+ | 185: Out.int(185);
194+ | 186: Out.int(186);
195+ | 187: Out.int(187);
196+ | 188: Out.int(188);
197+ | 189: Out.int(189);
198+ | 190: Out.int(190);
199+ | 191: Out.int(191);
200+ | 192: Out.int(192);
201+ | 193: Out.int(193);
202+ | 194: Out.int(194);
203+ | 195: Out.int(195);
204+ | 196: Out.int(196);
205+ | 197: Out.int(197);
206+ | 198: Out.int(198);
207+ | 199: Out.int(199);
208+ | 200: Out.int(200);
209+ | 201: Out.int(201);
210+ | 202: Out.int(202);
211+ | 203: Out.int(203);
212+ | 204: Out.int(204);
213+ | 205: Out.int(205);
214+ | 206: Out.int(206);
215+ | 207: Out.int(207);
216+ | 208: Out.int(208);
217+ | 209: Out.int(209);
218+ | 210: Out.int(210);
219+ | 211: Out.int(211);
220+ | 212: Out.int(212);
221+ | 213: Out.int(213);
222+ | 214: Out.int(214);
223+ | 215: Out.int(215);
224+ | 216: Out.int(216);
225+ | 217: Out.int(217);
226+ | 218: Out.int(218);
227+ | 219: Out.int(219);
228+ | 220: Out.int(220);
229+ | 221: Out.int(221);
230+ | 222: Out.int(222);
231+ | 223: Out.int(223);
232+ | 224: Out.int(224);
233+ | 225: Out.int(225);
234+ | 226: Out.int(226);
235+ | 227: Out.int(227);
236+ | 228: Out.int(228);
237+ | 229: Out.int(229);
238+ | 230: Out.int(230);
239+ | 231: Out.int(231);
240+ | 232: Out.int(232);
241+ | 233: Out.int(233);
242+ | 234: Out.int(234);
243+ | 235: Out.int(235);
244+ | 236: Out.int(236);
245+ | 237: Out.int(237);
246+ | 238: Out.int(238);
247+ | 239: Out.int(239);
248+ | 240: Out.int(240);
249+ | 241: Out.int(241);
250+ | 242: Out.int(242);
251+ | 243: Out.int(243);
252+ | 244: Out.int(244);
253+ | 245: Out.int(245);
254+ | 246: Out.int(246);
255+ | 247: Out.int(247);
256+ | 248: Out.int(248);
257+ | 249: Out.int(249);
258+ | 250: Out.int(250);
259+ | 251: Out.int(251);
260+ | 252: Out.int(252);
261+ | 253: Out.int(253);
262+ | 254: Out.int(254);
263+ | 255: Out.int(255);
264+ | else: Out.int(0);
265+ end;
266+ Out.char('\n');
267+end LimitLabels.

conform/run/LimitModules.expect (history) added +1 -0

@@ -0,0 +1 @@
1+15

conform/run/LimitModules.raz (history) added +8 -0

@@ -0,0 +1,8 @@
1+(* A chain of 15 modules, each importing the next.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitModules;
4+import Out;
5+import LimChain01;
6+begin
7+ Out.int(LimChain01.depth()); Out.char('\n');
8+end LimitModules.

conform/run/LimitNames.expect (history) added +1 -0

@@ -0,0 +1 @@
1+7

conform/run/LimitNames.raz (history) added +11 -0

@@ -0,0 +1,11 @@
1+(* 31 names declared together.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitNames;
4+import Out;
5+var a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31: INT;
6+var s: INT;
7+begin
8+ a1 := 3; a31 := 4;
9+ s := a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11 + a12 + a13 + a14 + a15 + a16 + a17 + a18 + a19 + a20 + a21 + a22 + a23 + a24 + a25 + a26 + a27 + a28 + a29 + a30 + a31;
10+ Out.int(s); Out.char('\n');
11+end LimitNames.

conform/run/LimitParens.expect (history) added +2 -0

@@ -0,0 +1,2 @@
1+1
2+2

conform/run/LimitParens.raz (history) added +13 -0

@@ -0,0 +1,13 @@
1+(* 63 levels of parentheses, and 63 calls nested, in one expression.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitParens;
4+import Out;
5+proc id(x: INT): INT;
6+begin return x; end;
7+var x: INT;
8+begin
9+ x := (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((1)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
10+ Out.int(x); Out.char('\n');
11+ x := id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(2)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
12+ Out.int(x); Out.char('\n');
13+end LimitParens.

conform/run/LimitStatements.expect (history) added +1 -0

@@ -0,0 +1 @@
1+7

conform/run/LimitStatements.raz (history) added +136 -0

@@ -0,0 +1,136 @@
1+(* 63 levels of statements nested in one procedure.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitStatements;
4+import Out;
5+proc p;
6+var x: INT;
7+begin
8+ if true then
9+ if true then
10+ if true then
11+ if true then
12+ if true then
13+ if true then
14+ if true then
15+ if true then
16+ if true then
17+ if true then
18+ if true then
19+ if true then
20+ if true then
21+ if true then
22+ if true then
23+ if true then
24+ if true then
25+ if true then
26+ if true then
27+ if true then
28+ if true then
29+ if true then
30+ if true then
31+ if true then
32+ if true then
33+ if true then
34+ if true then
35+ if true then
36+ if true then
37+ if true then
38+ if true then
39+ if true then
40+ if true then
41+ if true then
42+ if true then
43+ if true then
44+ if true then
45+ if true then
46+ if true then
47+ if true then
48+ if true then
49+ if true then
50+ if true then
51+ if true then
52+ if true then
53+ if true then
54+ if true then
55+ if true then
56+ if true then
57+ if true then
58+ if true then
59+ if true then
60+ if true then
61+ if true then
62+ if true then
63+ if true then
64+ if true then
65+ if true then
66+ if true then
67+ if true then
68+ if true then
69+ if true then
70+ if true then
71+ x := 7; Out.int(x); Out.char('\n');
72+ end;
73+ end;
74+ end;
75+ end;
76+ end;
77+ end;
78+ end;
79+ end;
80+ end;
81+ end;
82+ end;
83+ end;
84+ end;
85+ end;
86+ end;
87+ end;
88+ end;
89+ end;
90+ end;
91+ end;
92+ end;
93+ end;
94+ end;
95+ end;
96+ end;
97+ end;
98+ end;
99+ end;
100+ end;
101+ end;
102+ end;
103+ end;
104+ end;
105+ end;
106+ end;
107+ end;
108+ end;
109+ end;
110+ end;
111+ end;
112+ end;
113+ end;
114+ end;
115+ end;
116+ end;
117+ end;
118+ end;
119+ end;
120+ end;
121+ end;
122+ end;
123+ end;
124+ end;
125+ end;
126+ end;
127+ end;
128+ end;
129+ end;
130+ end;
131+ end;
132+ end;
133+ end;
134+ end;
135+end;
136+begin p; end LimitStatements.

conform/run/LimitTypeArgs.expect (history) added +1 -0

@@ -0,0 +1 @@
1+5

conform/run/LimitTypeArgs.raz (history) added +8 -0

@@ -0,0 +1,8 @@
1+(* 8 type arguments to a generic module.
2+ The least an implementation must accept (report section 10, Limits). *)
3+module LimitTypeArgs;
4+import Out;
5+import M := LimitMany(INT, INT, INT, INT, INT, INT, INT, INT);
6+begin
7+ M.put(5); Out.int(M.get()); Out.char('\n');
8+end LimitTypeArgs.

conform/run/mods/LimChain01.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain01;
2+import N := LimChain02;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain01.

conform/run/mods/LimChain02.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain02;
2+import N := LimChain03;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain02.

conform/run/mods/LimChain03.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain03;
2+import N := LimChain04;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain03.

conform/run/mods/LimChain04.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain04;
2+import N := LimChain05;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain04.

conform/run/mods/LimChain05.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain05;
2+import N := LimChain06;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain05.

conform/run/mods/LimChain06.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain06;
2+import N := LimChain07;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain06.

conform/run/mods/LimChain07.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain07;
2+import N := LimChain08;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain07.

conform/run/mods/LimChain08.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain08;
2+import N := LimChain09;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain08.

conform/run/mods/LimChain09.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain09;
2+import N := LimChain10;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain09.

conform/run/mods/LimChain10.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain10;
2+import N := LimChain11;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain10.

conform/run/mods/LimChain11.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain11;
2+import N := LimChain12;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain11.

conform/run/mods/LimChain12.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain12;
2+import N := LimChain13;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain12.

conform/run/mods/LimChain13.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain13;
2+import N := LimChain14;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain13.

conform/run/mods/LimChain14.raz (history) added +5 -0

@@ -0,0 +1,5 @@
1+module LimChain14;
2+import N := LimChain15;
3+proc depth*: INT;
4+begin return N.depth() + 1; end;
5+end LimChain14.

conform/run/mods/LimChain15.raz (history) added +4 -0

@@ -0,0 +1,4 @@
1+module LimChain15;
2+proc depth*: INT;
3+begin return 1; end;
4+end LimChain15.

conform/run/mods/LimitMany.raz (history) added +6 -0

@@ -0,0 +1,6 @@
1+module LimitMany(T1, T2, T3, T4, T5, T6, T7, T8);
2+var v: T1;
3+proc put*(x: T1); begin v := x; end;
4+proc get*: T1;
5+begin return v; end;
6+end LimitMany.