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
|
/*
**
** The C code is generated by ATS/Anairiats
** The compilation time is: 2010-12-12: 9h:44m
**
*/
/* include some .h files */
#ifndef _ATS_HEADER_NONE
#include "ats_config.h"
#include "ats_basics.h"
#include "ats_types.h"
#include "ats_exception.h"
#include "ats_memory.h"
#endif /* _ATS_HEADER_NONE */
/* include some .cats files */
#ifndef _ATS_PRELUDE_NONE
#include "prelude/CATS/array.cats"
#include "prelude/CATS/basics.cats"
#include "prelude/CATS/bool.cats"
#include "prelude/CATS/byte.cats"
#include "prelude/CATS/char.cats"
#include "prelude/CATS/float.cats"
#include "prelude/CATS/integer.cats"
#include "prelude/CATS/integer_fixed.cats"
#include "prelude/CATS/integer_ptr.cats"
#include "prelude/CATS/lazy.cats"
#include "prelude/CATS/lazy_vt.cats"
#include "prelude/CATS/pointer.cats"
#include "prelude/CATS/printf.cats"
#include "prelude/CATS/reference.cats"
#include "prelude/CATS/sizetype.cats"
#include "prelude/CATS/string.cats"
#include "prelude/CATS/array.cats"
#include "prelude/CATS/list.cats"
#include "prelude/CATS/option.cats"
#endif /* _ATS_PRELUDE_NONE */
/* prologue from statically loaded files */
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
#include "ats_counter.cats"
#include "ats_intinf.cats"
#include "ats_counter.cats"
/* external codes at top */
/* type definitions */
typedef struct {
int tag ;
ats_int_type atslab_0 ;
} anairiats_sum_0 ;
typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
} anairiats_sum_1 ;
typedef struct {
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_2 ;
typedef struct {
ats_int_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_3 ;
typedef struct {
ats_ptr_type atslab_s2exp_srt ;
ats_ptr_type atslab_s2exp_node ;
} anairiats_rec_4 ;
typedef struct {
int tag ;
ats_uint_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_5 ;
/* external typedefs */
/* external dynamic constructor declarations */
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2prelude_2basics_sta_2esats__list_cons) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2prelude_2basics_sta_2esats__list_nil) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__S2Eeff) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__S2Evar) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__S2EFFall) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__S2EFFnil) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__S2EFFset) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeff) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeffmask) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMlam) ;
/* external dynamic constant declarations */
extern
ats_void_type atspre_prerr_newline () ;
extern
ats_int_type atspre_add_int_int (ats_int_type, ats_int_type) ;
extern
ats_bool_type atspre_lte_int_int (ats_int_type, ats_int_type) ;
extern
ats_bool_type atspre_gt_int_int (ats_int_type, ats_int_type) ;
extern
ats_void_type atspre_fprint_string (ats_ref_type, ats_ptr_type) ;
extern
ats_void_type atspre_prerr_string (ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_location_2esats__prerr_location (ats_ptr_type) ;
extern
ats_varet_type ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
ATSextern_val(ats_int_type, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_exn) ;
ATSextern_val(ats_int_type, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_ntm) ;
ATSextern_val(ats_int_type, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_ref) ;
ATSextern_val(ats_ptr_type, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effectlst_all) ;
extern
ats_bool_type ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__eq_effect_effect (ats_int_type, ats_int_type) ;
extern
ats_void_type atsopt_fprint_effect (ats_ref_type, ats_int_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__prerr_effect (ats_int_type) ;
ATSextern_val(ats_uint_type, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effset_all) ;
extern
ats_bool_type atsopt_effset_contain (ats_uint_type, ats_int_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__prerr_s2var (ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__fprint_s2eff (ats_ref_type, ats_ptr_type) ;
extern
ats_bool_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2eff_contain_eff (ats_ptr_type, ats_int_type) ;
extern
ats_bool_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2eff_contain_effvar (ats_ptr_type, ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__prerr_s2exp (ats_ptr_type) ;
extern
ats_ptr_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2exp_whnf (ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_all (ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_effvar (ats_ptr_type, ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_seff (ats_ptr_type, ats_ptr_type) ;
extern
ats_ptr_type atspre_ref_make_elt_tsz (ats_ref_type, ats_size_type) ;
extern
ats_ptr_type atspre_ref_get_view_ptr (ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitm (ats_ref_type, ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlst (ats_ref_type, ats_ptr_type) ;
extern
ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlstlst (ats_ref_type, ats_ptr_type) ;
/* external dynamic terminating constant declarations */
#ifdef _ATS_PROOFCHECK
#endif /* _ATS_PROOFCHECK */
/* sum constructor declarations */
ATSglobal(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeff) ;
ATSglobal(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeffmask) ;
ATSglobal(ats_sum_type, ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMlam) ;
/* exn constructor declarations */
/* global dynamic (non-functional) constant declarations */
/* internal function declarations */
static
ats_void_type prerr_interror_0 () ;
static
ats_void_type prerr_loc_interror_1 (ats_ptr_type arg0) ;
static
ats_void_type aux_4 (ats_ref_type arg0, ats_int_type arg1, ats_ptr_type arg2) ;
static
ats_void_type aux_6 (ats_ref_type arg0, ats_int_type arg1, ats_ptr_type arg2) ;
static
ats_ptr_type ref_make_elt_03536__ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type aux_15 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type aux_17 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_int_type aux_19 (ats_int_type arg0, ats_ptr_type arg1) ;
static
ats_int_type the_effect_env_check_eff_err_18 (ats_int_type arg0) ;
static
ats_void_type the_effect_env_check_eff_20 (ats_ptr_type arg0, ats_int_type arg1) ;
static
ats_ptr_type auxCK_25 (ats_uint_type env0, ats_ptr_type arg0) ;
static
ats_clo_ptr_type auxCK_25_closure_make (ats_uint_type env0) ;
static
ats_ptr_type auxCK_25_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) ;
static
ats_int_type aux_26 (ats_ptr_type arg0, ats_int_type arg1) ;
static
ats_void_type auxPR_27 (ats_int_type arg0, ats_ptr_type arg1) ;
static
ats_void_type the_effect_env_check_effset_24 (ats_ptr_type arg0, ats_uint_type arg1) ;
static
ats_bool_type aux_30 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type the_effect_env_check_sexp_31 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type the_effect_env_check_sexplst_32 (ats_ptr_type arg0, ats_ptr_type arg1) ;
/* static temporary variable declarations */
ATSstatic (ats_ptr_type, statmp29) ;
ATSstatic (ats_ptr_type, statmp32) ;
ATSstatic (ats_ptr_type, statmp33) ;
ATSstatic (ats_ptr_type, statmp34) ;
/* external value variable declarations */
/* function implementations */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 1956(line=61, offs=4) -- 2019(line=61, offs=67)
*/
ats_void_type
prerr_interror_0 () {
/* local vardec */
ATSlocal_void (tmp0) ;
__ats_lab_prerr_interror_0:
/* tmp0 = */ atspre_prerr_string ((ats_ptr_type)"INTERNAL ERROR (ats_trans3_env_eff)") ;
return /* (tmp0) */ ;
} /* end of [prerr_interror_0] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 2024(line=63, offs=4) -- 2140(line=65, offs=4)
*/
ats_void_type
prerr_loc_interror_1 (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp1) ;
ATSlocal_void (tmp2) ;
__ats_lab_prerr_loc_interror_1:
/* tmp2 = */ ATS_2d0_2e2_2e3_2src_2ats_location_2esats__prerr_location (arg0) ;
/* tmp1 = */ atspre_prerr_string ((ats_ptr_type)": INTERNAL ERROR (ats_trans3_env_eff)") ;
return /* (tmp1) */ ;
} /* end of [prerr_loc_interror_1] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 2848(line=92, offs=28) -- 3363(line=105, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitm (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp3) ;
ATSlocal (ats_int_type, tmp4) ;
ATSlocal_void (tmp5) ;
ATSlocal_void (tmp6) ;
ATSlocal (ats_int_type, tmp7) ;
ATSlocal_void (tmp8) ;
ATSlocal_void (tmp9) ;
ATSlocal (ats_ptr_type, tmp10) ;
ATSlocal_void (tmp11) ;
ATSlocal_void (tmp12) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitm:
do {
/* branch: __ats_lab_0 */
__ats_lab_0_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_1_0 ; }
__ats_lab_0_1:
tmp4 = ats_caselptr_mac(anairiats_sum_0, arg1, atslab_0) ;
/* tmp5 = */ atspre_fprint_string (arg0, (ats_ptr_type)"EFFENVeff(") ;
/* tmp6 = */ atsopt_fprint_effect (arg0, tmp4) ;
/* tmp3 = */ atspre_fprint_string (arg0, (ats_ptr_type)")") ;
break ;
/* branch: __ats_lab_1 */
__ats_lab_1_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_2_0 ; }
__ats_lab_1_1:
tmp7 = ats_caselptr_mac(anairiats_sum_0, arg1, atslab_0) ;
/* tmp8 = */ atspre_fprint_string (arg0, (ats_ptr_type)"EFFENVeffmask(") ;
/* tmp9 = */ atsopt_fprint_effect (arg0, tmp7) ;
/* tmp3 = */ atspre_fprint_string (arg0, (ats_ptr_type)")") ;
break ;
/* branch: __ats_lab_2 */
__ats_lab_2_0:
// if (((ats_sum_ptr_type)arg1)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_2_1:
tmp10 = ats_caselptr_mac(anairiats_sum_1, arg1, atslab_0) ;
/* tmp11 = */ atspre_fprint_string (arg0, (ats_ptr_type)"EFFENVeff(") ;
/* tmp12 = */ ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__fprint_s2eff (arg0, tmp10) ;
/* tmp3 = */ atspre_fprint_string (arg0, (ats_ptr_type)")") ;
break ;
} while (0) ;
return /* (tmp3) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitm] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 3457(line=108, offs=7) -- 3742(line=114, offs=24)
*/
ats_void_type
aux_4 (ats_ref_type arg0, ats_int_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal_void (tmp14) ;
ATSlocal (ats_ptr_type, tmp15) ;
ATSlocal (ats_ptr_type, tmp16) ;
ATSlocal_void (tmp17) ;
ATSlocal (ats_bool_type, tmp18) ;
ATSlocal_void (tmp19) ;
ATSlocal (ats_int_type, tmp20) ;
__ats_lab_aux_4:
do {
/* branch: __ats_lab_3 */
__ats_lab_3_0:
if (arg2 == (ats_sum_ptr_type)0) { goto __ats_lab_4_0 ; }
__ats_lab_3_1:
tmp15 = ats_caselptr_mac(anairiats_sum_2, arg2, atslab_0) ;
tmp16 = ats_caselptr_mac(anairiats_sum_2, arg2, atslab_1) ;
tmp18 = atspre_gt_int_int (arg1, 0) ;
if (tmp18) {
/* tmp17 = */ atspre_fprint_string (arg0, (ats_ptr_type)", ") ;
} else {
/* empty */
} /* end of [if] */
/* tmp19 = */ ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitm (arg0, tmp15) ;
tmp20 = atspre_add_int_int (arg1, 1) ;
arg0 = arg0 ;
arg1 = tmp20 ;
arg2 = tmp16 ;
goto __ats_lab_aux_4 ; // tail call
break ;
/* branch: __ats_lab_4 */
__ats_lab_4_0:
// if (arg2 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_4_1:
break ;
} while (0) ;
return /* (tmp14) */ ;
} /* end of [aux_4] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 3428(line=107, offs=35) -- 3809(line=118, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlst (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp13) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlst:
/* tmp13 = */ aux_4 (arg0, 0, arg1) ;
return /* (tmp13) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlst] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 3910(line=121, offs=7) -- 4207(line=127, offs=24)
*/
ats_void_type
aux_6 (ats_ref_type arg0, ats_int_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal_void (tmp22) ;
ATSlocal (ats_ptr_type, tmp23) ;
ATSlocal (ats_ptr_type, tmp24) ;
ATSlocal_void (tmp25) ;
ATSlocal (ats_bool_type, tmp26) ;
ATSlocal_void (tmp27) ;
ATSlocal (ats_int_type, tmp28) ;
__ats_lab_aux_6:
do {
/* branch: __ats_lab_5 */
__ats_lab_5_0:
if (arg2 == (ats_sum_ptr_type)0) { goto __ats_lab_6_0 ; }
__ats_lab_5_1:
tmp23 = ats_caselptr_mac(anairiats_sum_2, arg2, atslab_0) ;
tmp24 = ats_caselptr_mac(anairiats_sum_2, arg2, atslab_1) ;
tmp26 = atspre_gt_int_int (arg1, 0) ;
if (tmp26) {
/* tmp25 = */ atspre_fprint_string (arg0, (ats_ptr_type)"; ") ;
} else {
/* empty */
} /* end of [if] */
/* tmp27 = */ ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlst (arg0, tmp23) ;
tmp28 = atspre_add_int_int (arg1, 1) ;
arg0 = arg0 ;
arg1 = tmp28 ;
arg2 = tmp24 ;
goto __ats_lab_aux_6 ; // tail call
break ;
/* branch: __ats_lab_6 */
__ats_lab_6_0:
// if (arg2 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_6_1:
break ;
} while (0) ;
return /* (tmp22) */ ;
} /* end of [aux_6] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 3880(line=120, offs=38) -- 4275(line=131, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlstlst (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp21) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlstlst:
/* tmp21 = */ aux_6 (arg0, 0, arg1) ;
return /* (tmp21) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__fprint_effenvitmlstlst] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_reference.dats: 1894(line=59, offs=27) -- 1968(line=61, offs=4)
*/
ats_ptr_type
ref_make_elt_03536__ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp30) ;
ATSlocal (ats_ptr_type, tmp31) ;
__ats_lab_ref_make_elt_03536__ats_ptr_type:
/* ats_ptr_type tmp31 ; */
tmp31 = arg0 ;
tmp30 = atspre_ref_make_elt_tsz ((&tmp31), sizeof(ats_ptr_type)) ;
return (tmp30) ;
} /* end of [ref_make_elt_03536__ats_ptr_type] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 4583(line=147, offs=34) -- 4658(line=149, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_lam (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp35) ;
ATSlocal (ats_ptr_type, tmp36) ;
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_lam:
tmp37 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp37)->tag = 2 ;
ats_selptrset_mac(anairiats_sum_1, tmp37, atslab_0, arg0) ;
tmp38 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp36 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp36, atslab_0, tmp37) ;
ats_selptrset_mac(anairiats_sum_2, tmp36, atslab_1, tmp38) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp36 ;
return /* (tmp35) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_lam] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 4728(line=151, offs=34) -- 4801(line=153, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_eff (ats_int_type arg0) {
/* local vardec */
ATSlocal_void (tmp39) ;
ATSlocal (ats_ptr_type, tmp40) ;
ATSlocal (ats_ptr_type, tmp41) ;
ATSlocal (ats_ptr_type, tmp42) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_eff:
tmp41 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
((ats_sum_ptr_type)tmp41)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_0, tmp41, atslab_0, arg0) ;
tmp42 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp40 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp40, atslab_0, tmp41) ;
ats_selptrset_mac(anairiats_sum_2, tmp40, atslab_1, tmp42) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp40 ;
return /* (tmp39) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_add_eff] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 4867(line=155, offs=30) -- 5210(line=165, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_pop () {
/* local vardec */
ATSlocal_void (tmp43) ;
ATSlocal (ats_ptr_type, tmp44) ;
ATSlocal (ats_ptr_type, tmp45) ;
ATSlocal (ats_ptr_type, tmp46) ;
ATSlocal_void (tmp47) ;
ATSlocal_void (tmp48) ;
ATSlocal_void (tmp49) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_pop:
tmp44 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
do {
/* branch: __ats_lab_7 */
__ats_lab_7_0:
if (tmp44 == (ats_sum_ptr_type)0) { goto __ats_lab_8_0 ; }
__ats_lab_7_1:
tmp45 = ats_caselptr_mac(anairiats_sum_2, tmp44, atslab_0) ;
tmp46 = ats_caselptr_mac(anairiats_sum_2, tmp44, atslab_1) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp45 ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp46 ;
break ;
/* branch: __ats_lab_8 */
__ats_lab_8_0:
// if (tmp44 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_8_1:
/* tmp47 = */ prerr_interror_0 () ;
/* tmp48 = */ atspre_prerr_string ((ats_ptr_type)": the_effect_env_pop") ;
/* tmp49 = */ atspre_prerr_newline () ;
/* tmp43 = */ ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
break ;
} while (0) ;
return /* (tmp43) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_pop] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 5273(line=167, offs=31) -- 5357(line=170, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push () {
/* local vardec */
ATSlocal_void (tmp50) ;
ATSlocal (ats_ptr_type, tmp51) ;
ATSlocal (ats_ptr_type, tmp52) ;
ATSlocal (ats_ptr_type, tmp53) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push:
tmp52 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp53 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
tmp51 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp51, atslab_0, tmp52) ;
ats_selptrset_mac(anairiats_sum_2, tmp51, atslab_1, tmp53) ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp51 ;
return /* (tmp50) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 5425(line=172, offs=35) -- 5571(line=176, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_lam (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp54) ;
ATSlocal (ats_ptr_type, tmp55) ;
ATSlocal (ats_ptr_type, tmp56) ;
ATSlocal (ats_ptr_type, tmp57) ;
ATSlocal (ats_ptr_type, tmp58) ;
ATSlocal (ats_ptr_type, tmp59) ;
ATSlocal (ats_ptr_type, tmp60) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_lam:
tmp56 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp57 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
tmp55 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp55, atslab_0, tmp56) ;
ats_selptrset_mac(anairiats_sum_2, tmp55, atslab_1, tmp57) ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp55 ;
tmp59 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp59)->tag = 2 ;
ats_selptrset_mac(anairiats_sum_1, tmp59, atslab_0, arg0) ;
tmp60 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp58 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp58, atslab_0, tmp59) ;
ats_selptrset_mac(anairiats_sum_2, tmp58, atslab_1, tmp60) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp58 ;
return /* (tmp54) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_lam] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 5645(line=178, offs=37) -- 5836(line=184, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_delay () {
/* local vardec */
ATSlocal_void (tmp61) ;
ATSlocal (ats_ptr_type, tmp62) ;
ATSlocal (ats_ptr_type, tmp63) ;
ATSlocal (ats_ptr_type, tmp64) ;
ATSlocal (ats_ptr_type, tmp65) ;
ATSlocal (ats_ptr_type, tmp66) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_delay:
tmp62 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp64 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
tmp63 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp63, atslab_0, tmp62) ;
ats_selptrset_mac(anairiats_sum_2, tmp63, atslab_1, tmp64) ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp63 ;
tmp66 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
((ats_sum_ptr_type)tmp66)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_0, tmp66, atslab_0, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_ref) ;
tmp65 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp65, atslab_0, tmp66) ;
ats_selptrset_mac(anairiats_sum_2, tmp65, atslab_1, tmp62) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp65 ;
return /* (tmp61) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_delay] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 6078(line=192, offs=9) -- 6320(line=197, offs=28)
*/
ats_ptr_type
aux_15 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp71) ;
ATSlocal (ats_int_type, tmp72) ;
ATSlocal (ats_ptr_type, tmp73) ;
ATSlocal (ats_ptr_type, tmp74) ;
ATSlocal (ats_ptr_type, tmp75) ;
__ats_lab_aux_15:
do {
/* branch: __ats_lab_9 */
__ats_lab_9_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_10_0 ; }
__ats_lab_9_1:
tmp72 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp73 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp75 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
((ats_sum_ptr_type)tmp75)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_0, tmp75, atslab_0, tmp72) ;
tmp74 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp74, atslab_0, tmp75) ;
ats_selptrset_mac(anairiats_sum_2, tmp74, atslab_1, arg1) ;
arg0 = tmp73 ;
arg1 = tmp74 ;
goto __ats_lab_aux_15 ; // tail call
break ;
/* branch: __ats_lab_10 */
__ats_lab_10_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_10_1:
tmp71 = arg1 ;
break ;
} while (0) ;
return (tmp71) ;
} /* end of [aux_15] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 5931(line=188, offs=35) -- 6409(line=202, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_eff (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp67) ;
ATSlocal (ats_ptr_type, tmp68) ;
ATSlocal (ats_ptr_type, tmp69) ;
ATSlocal (ats_ptr_type, tmp70) ;
ATSlocal (ats_ptr_type, tmp76) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_eff:
tmp68 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp70 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
tmp69 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp69, atslab_0, tmp68) ;
ats_selptrset_mac(anairiats_sum_2, tmp69, atslab_1, tmp70) ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp69 ;
tmp76 = aux_15 (arg0, tmp68) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp76 ;
return /* (tmp67) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_eff] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 6632(line=208, offs=9) -- 6878(line=213, offs=28)
*/
ats_ptr_type
aux_17 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp81) ;
ATSlocal (ats_int_type, tmp82) ;
ATSlocal (ats_ptr_type, tmp83) ;
ATSlocal (ats_ptr_type, tmp84) ;
ATSlocal (ats_ptr_type, tmp85) ;
__ats_lab_aux_17:
do {
/* branch: __ats_lab_11 */
__ats_lab_11_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_12_0 ; }
__ats_lab_11_1:
tmp82 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp83 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp85 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
((ats_sum_ptr_type)tmp85)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_0, tmp85, atslab_0, tmp82) ;
tmp84 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp84, atslab_0, tmp85) ;
ats_selptrset_mac(anairiats_sum_2, tmp84, atslab_1, arg1) ;
arg0 = tmp83 ;
arg1 = tmp84 ;
goto __ats_lab_aux_17 ; // tail call
break ;
/* branch: __ats_lab_12 */
__ats_lab_12_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_12_1:
tmp81 = arg1 ;
break ;
} while (0) ;
return (tmp81) ;
} /* end of [aux_17] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 6485(line=204, offs=39) -- 6967(line=218, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_effmask (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp77) ;
ATSlocal (ats_ptr_type, tmp78) ;
ATSlocal (ats_ptr_type, tmp79) ;
ATSlocal (ats_ptr_type, tmp80) ;
ATSlocal (ats_ptr_type, tmp86) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_effmask:
tmp78 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp80 = ats_ptrget_mac(ats_ptr_type, statmp33) ;
tmp79 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp79, atslab_0, tmp78) ;
ats_selptrset_mac(anairiats_sum_2, tmp79, atslab_1, tmp80) ;
ats_ptrget_mac(ats_ptr_type, statmp33) = tmp79 ;
tmp86 = aux_17 (arg0, tmp78) ;
ats_ptrget_mac(ats_ptr_type, statmp29) = tmp86 ;
return /* (tmp77) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_push_effmask] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 7257(line=230, offs=7) -- 7820(line=244, offs=23)
*/
ats_int_type
aux_19 (ats_int_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_int_type, tmp88) ;
ATSlocal (ats_ptr_type, tmp89) ;
ATSlocal (ats_ptr_type, tmp90) ;
ATSlocal (ats_int_type, tmp91) ;
ATSlocal (ats_bool_type, tmp92) ;
ATSlocal (ats_int_type, tmp93) ;
ATSlocal (ats_bool_type, tmp94) ;
ATSlocal (ats_ptr_type, tmp95) ;
ATSlocal (ats_bool_type, tmp96) ;
__ats_lab_aux_19:
do {
/* branch: __ats_lab_13 */
__ats_lab_13_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_17_0 ; }
__ats_lab_13_1:
tmp89 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp90 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_1) ;
do {
/* branch: __ats_lab_14 */
__ats_lab_14_0:
if (((ats_sum_ptr_type)tmp89)->tag != 0) { goto __ats_lab_15_0 ; }
__ats_lab_14_1:
tmp91 = ats_caselptr_mac(anairiats_sum_0, tmp89, atslab_0) ;
tmp92 = ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__eq_effect_effect (arg0, tmp91) ;
if (tmp92) {
tmp88 = 1 ;
} else {
arg0 = arg0 ;
arg1 = tmp90 ;
goto __ats_lab_aux_19 ; // tail call
} /* end of [if] */
break ;
/* branch: __ats_lab_15 */
__ats_lab_15_0:
if (((ats_sum_ptr_type)tmp89)->tag != 1) { goto __ats_lab_16_0 ; }
__ats_lab_15_1:
tmp93 = ats_caselptr_mac(anairiats_sum_0, tmp89, atslab_0) ;
tmp94 = ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__eq_effect_effect (arg0, tmp93) ;
if (tmp94) {
tmp88 = 0 ;
} else {
arg0 = arg0 ;
arg1 = tmp90 ;
goto __ats_lab_aux_19 ; // tail call
} /* end of [if] */
break ;
/* branch: __ats_lab_16 */
__ats_lab_16_0:
// if (((ats_sum_ptr_type)tmp89)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_16_1:
tmp95 = ats_caselptr_mac(anairiats_sum_1, tmp89, atslab_0) ;
tmp96 = ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2eff_contain_eff (tmp95, arg0) ;
if (tmp96) {
tmp88 = 0 ;
} else {
tmp88 = 1 ;
} /* end of [if] */
break ;
} while (0) ;
break ;
/* branch: __ats_lab_17 */
__ats_lab_17_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_17_1:
tmp88 = 0 ;
break ;
} while (0) ;
return (tmp88) ;
} /* end of [aux_19] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 7072(line=224, offs=4) -- 7869(line=248, offs=4)
*/
ats_int_type
the_effect_env_check_eff_err_18 (ats_int_type arg0) {
/* local vardec */
ATSlocal (ats_int_type, tmp87) ;
ATSlocal (ats_ptr_type, tmp97) ;
__ats_lab_the_effect_env_check_eff_err_18:
tmp97 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp87 = aux_19 (arg0, tmp97) ;
return (tmp87) ;
} /* end of [the_effect_env_check_eff_err_18] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 7911(line=250, offs=4) -- 8246(line=261, offs=4)
*/
ats_void_type
the_effect_env_check_eff_20 (ats_ptr_type arg0, ats_int_type arg1) {
/* local vardec */
ATSlocal_void (tmp98) ;
ATSlocal (ats_bool_type, tmp99) ;
ATSlocal (ats_int_type, tmp100) ;
ATSlocal_void (tmp101) ;
ATSlocal_void (tmp102) ;
ATSlocal_void (tmp103) ;
ATSlocal_void (tmp104) ;
ATSlocal_void (tmp105) ;
ATSlocal_void (tmp106) ;
__ats_lab_the_effect_env_check_eff_20:
tmp100 = the_effect_env_check_eff_err_18 (arg1) ;
tmp99 = atspre_gt_int_int (tmp100, 0) ;
if (tmp99) {
/* tmp101 = */ ATS_2d0_2e2_2e3_2src_2ats_location_2esats__prerr_location (arg0) ;
/* tmp102 = */ atspre_prerr_string ((ats_ptr_type)": error(3)") ;
/* tmp103 = */ atspre_prerr_string ((ats_ptr_type)": the effect [") ;
/* tmp104 = */ ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__prerr_effect (arg1) ;
/* tmp105 = */ atspre_prerr_string ((ats_ptr_type)"] is disallowed.") ;
/* tmp106 = */ atspre_prerr_newline () ;
/* tmp98 = */ ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
} else {
/* empty */
} /* end of [if] */
return /* (tmp98) */ ;
} /* end of [the_effect_env_check_eff_20] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 8320(line=263, offs=36) -- 8379(line=264, offs=51)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_exn (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp107) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_exn:
/* tmp107 = */ the_effect_env_check_eff_20 (arg0, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_exn) ;
return /* (tmp107) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_exn] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 8416(line=266, offs=36) -- 8475(line=267, offs=51)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ntm (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp108) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ntm:
/* tmp108 = */ the_effect_env_check_eff_20 (arg0, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_ntm) ;
return /* (tmp108) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ntm] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 8512(line=269, offs=36) -- 8571(line=270, offs=51)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ref (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp109) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ref:
/* tmp109 = */ the_effect_env_check_eff_20 (arg0, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effect_ref) ;
return /* (tmp109) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_ref] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 8653(line=275, offs=7) -- 9091(line=287, offs=6)
*/
ats_ptr_type
auxCK_25 (ats_uint_type env0, ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp111) ;
ATSlocal (ats_int_type, tmp112) ;
ATSlocal (ats_ptr_type, tmp113) ;
ATSlocal (ats_bool_type, tmp114) ;
ATSlocal (ats_int_type, tmp115) ;
ATSlocal (ats_bool_type, tmp116) ;
ATSlocal (ats_ptr_type, tmp117) ;
__ats_lab_auxCK_25:
do {
/* branch: __ats_lab_18 */
__ats_lab_18_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_19_0 ; }
__ats_lab_18_1:
tmp112 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp113 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp114 = atsopt_effset_contain (env0, tmp112) ;
if (tmp114) {
tmp115 = the_effect_env_check_eff_err_18 (tmp112) ;
tmp116 = atspre_gt_int_int (tmp115, 0) ;
if (tmp116) {
tmp117 = auxCK_25 (env0, tmp113) ;
tmp111 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
ats_selptrset_mac(anairiats_sum_3, tmp111, atslab_0, tmp112) ;
ats_selptrset_mac(anairiats_sum_3, tmp111, atslab_1, tmp117) ;
} else {
arg0 = tmp113 ;
goto __ats_lab_auxCK_25 ; // tail call
} /* end of [if] */
} else {
arg0 = tmp113 ;
goto __ats_lab_auxCK_25 ; // tail call
} /* end of [if] */
break ;
/* branch: __ats_lab_19 */
__ats_lab_19_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_19_1:
tmp111 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp111) ;
} /* end of [auxCK_25] */
typedef struct {
ats_fun_ptr_type closure_fun ;
ats_uint_type closure_env_0 ;
} auxCK_25_closure_type ;
ats_ptr_type
auxCK_25_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) {
return auxCK_25 (((auxCK_25_closure_type*)cloptr)->closure_env_0, arg0) ;
} /* end of function */
ATSinline()
ats_void_type
auxCK_25_closure_init (auxCK_25_closure_type *p_clo, ats_uint_type env0) {
p_clo->closure_fun = (ats_fun_ptr_type)&auxCK_25_clofun ;
p_clo->closure_env_0 = env0 ;
return ;
} /* end of function */
ats_clo_ptr_type
auxCK_25_closure_make (ats_uint_type env0) {
auxCK_25_closure_type *p_clo = ATS_MALLOC(sizeof(auxCK_25_closure_type)) ;
auxCK_25_closure_init (p_clo, env0) ;
return (ats_clo_ptr_type)p_clo ;
} /* end of function */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 9224(line=290, offs=9) -- 9333(line=291, offs=62)
*/
ats_int_type
aux_26 (ats_ptr_type arg0, ats_int_type arg1) {
/* local vardec */
ATSlocal (ats_int_type, tmp119) ;
ATSlocal (ats_ptr_type, tmp120) ;
ATSlocal (ats_int_type, tmp121) ;
__ats_lab_aux_26:
do {
/* branch: __ats_lab_20 */
__ats_lab_20_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_21_0 ; }
__ats_lab_20_1:
tmp120 = ats_caselptr_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp121 = atspre_add_int_int (arg1, 1) ;
arg0 = tmp120 ;
arg1 = tmp121 ;
goto __ats_lab_aux_26 ; // tail call
break ;
/* branch: __ats_lab_21 */
__ats_lab_21_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_21_1:
tmp119 = arg1 ;
break ;
} while (0) ;
return (tmp119) ;
} /* end of [aux_26] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 9362(line=293, offs=7) -- 9566(line=298, offs=24)
*/
ats_void_type
auxPR_27 (ats_int_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp123) ;
ATSlocal (ats_int_type, tmp124) ;
ATSlocal (ats_ptr_type, tmp125) ;
ATSlocal_void (tmp126) ;
ATSlocal (ats_bool_type, tmp127) ;
ATSlocal_void (tmp128) ;
ATSlocal (ats_int_type, tmp129) ;
__ats_lab_auxPR_27:
do {
/* branch: __ats_lab_22 */
__ats_lab_22_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_23_0 ; }
__ats_lab_22_1:
tmp124 = ats_caselptr_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp125 = ats_caselptr_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp127 = atspre_gt_int_int (arg0, 0) ;
if (tmp127) {
/* tmp126 = */ atspre_prerr_string ((ats_ptr_type)", ") ;
} else {
/* empty */
} /* end of [if] */
/* tmp128 = */ ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__prerr_effect (tmp124) ;
tmp129 = atspre_add_int_int (arg0, 1) ;
arg0 = tmp129 ;
arg1 = tmp125 ;
goto __ats_lab_auxPR_27 ; // tail call
break ;
/* branch: __ats_lab_23 */
__ats_lab_23_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_23_1:
break ;
} while (0) ;
return /* (tmp123) */ ;
} /* end of [auxPR_27] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 8580(line=274, offs=4) -- 9958(line=311, offs=4)
*/
ats_void_type
the_effect_env_check_effset_24 (ats_ptr_type arg0, ats_uint_type arg1) {
/* local vardec */
ATSlocal_void (tmp110) ;
ATSlocal (ats_ptr_type, tmp118) ;
ATSlocal (ats_int_type, tmp122) ;
ATSlocal_void (tmp130) ;
ATSlocal (ats_bool_type, tmp131) ;
ATSlocal_void (tmp132) ;
ATSlocal_void (tmp133) ;
ATSlocal (ats_bool_type, tmp134) ;
ATSlocal_void (tmp135) ;
ATSlocal (ats_bool_type, tmp136) ;
ATSlocal (ats_bool_type, tmp137) ;
ATSlocal_void (tmp138) ;
ATSlocal (ats_bool_type, tmp139) ;
ATSlocal_void (tmp140) ;
__ats_lab_the_effect_env_check_effset_24:
tmp118 = auxCK_25 (arg1, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effectlst_all) ;
tmp122 = aux_26 (tmp118, 0) ;
tmp131 = atspre_gt_int_int (tmp122, 0) ;
if (tmp131) {
/* tmp132 = */ ATS_2d0_2e2_2e3_2src_2ats_location_2esats__prerr_location (arg0) ;
/* tmp133 = */ atspre_prerr_string ((ats_ptr_type)": error(3)") ;
tmp134 = atspre_lte_int_int (tmp122, 1) ;
if (tmp134) {
/* tmp130 = */ atspre_prerr_string ((ats_ptr_type)": the effect [") ;
} else {
/* tmp130 = */ atspre_prerr_string ((ats_ptr_type)": the effects [") ;
} /* end of [if] */
} else {
/* empty */
} /* end of [if] */
tmp136 = atspre_gt_int_int (tmp122, 0) ;
if (tmp136) {
/* tmp135 = */ auxPR_27 (0, tmp118) ;
} else {
/* empty */
} /* end of [if] */
tmp137 = atspre_gt_int_int (tmp122, 0) ;
if (tmp137) {
tmp139 = atspre_lte_int_int (tmp122, 1) ;
if (tmp139) {
/* tmp138 = */ atspre_prerr_string ((ats_ptr_type)"] is disallowed.") ;
} else {
/* tmp138 = */ atspre_prerr_string ((ats_ptr_type)"] are disallowed.") ;
} /* end of [if] */
/* tmp140 = */ atspre_prerr_newline () ;
/* tmp110 = */ ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
} else {
/* empty */
} /* end of [if] */
return /* (tmp110) */ ;
} /* end of [the_effect_env_check_effset_24] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 10035(line=313, offs=36) -- 10097(line=314, offs=54)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_all (ats_ptr_type arg0) {
/* local vardec */
ATSlocal_void (tmp141) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_all:
/* tmp141 = */ the_effect_env_check_effset_24 (arg0, ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__effset_all) ;
return /* (tmp141) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_all] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 10283(line=324, offs=7) -- 10605(line=331, offs=26)
*/
ats_bool_type
aux_30 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp143) ;
ATSlocal (ats_ptr_type, tmp144) ;
ATSlocal (ats_ptr_type, tmp145) ;
ATSlocal (ats_ptr_type, tmp146) ;
__ats_lab_aux_30:
do {
/* branch: __ats_lab_24 */
__ats_lab_24_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_28_0 ; }
__ats_lab_24_1:
tmp144 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp145 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_1) ;
do {
/* branch: __ats_lab_25 */
__ats_lab_25_0:
if (((ats_sum_ptr_type)tmp144)->tag != 0) { goto __ats_lab_26_0 ; }
__ats_lab_25_1:
tmp143 = ats_false_bool ;
break ;
/* branch: __ats_lab_26 */
__ats_lab_26_0:
if (((ats_sum_ptr_type)tmp144)->tag != 1) { goto __ats_lab_27_0 ; }
__ats_lab_26_1:
arg0 = arg0 ;
arg1 = tmp145 ;
goto __ats_lab_aux_30 ; // tail call
break ;
/* branch: __ats_lab_27 */
__ats_lab_27_0:
// if (((ats_sum_ptr_type)tmp144)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_27_1:
tmp146 = ats_caselptr_mac(anairiats_sum_1, tmp144, atslab_0) ;
tmp143 = ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2eff_contain_effvar (tmp146, arg0) ;
break ;
} while (0) ;
break ;
/* branch: __ats_lab_28 */
__ats_lab_28_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_28_1:
tmp143 = ats_true_bool ;
break ;
} while (0) ;
return (tmp143) ;
} /* end of [aux_30] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 10141(line=318, offs=39) -- 10831(line=340, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_effvar (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp142) ;
ATSlocal (ats_bool_type, tmp147) ;
ATSlocal (ats_ptr_type, tmp148) ;
ATSlocal_void (tmp149) ;
ATSlocal_void (tmp150) ;
ATSlocal_void (tmp151) ;
ATSlocal_void (tmp152) ;
ATSlocal_void (tmp153) ;
ATSlocal_void (tmp154) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_effvar:
tmp148 = ats_ptrget_mac(ats_ptr_type, statmp29) ;
tmp147 = aux_30 (arg1, tmp148) ;
if (tmp147) {
/* empty */
} else {
/* tmp149 = */ ATS_2d0_2e2_2e3_2src_2ats_location_2esats__prerr_location (arg0) ;
/* tmp150 = */ atspre_prerr_string ((ats_ptr_type)": error(3)") ;
/* tmp151 = */ atspre_prerr_string ((ats_ptr_type)": the effect [") ;
/* tmp152 = */ ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__prerr_s2var (arg1) ;
/* tmp153 = */ atspre_prerr_string ((ats_ptr_type)"] is disallowed") ;
/* tmp154 = */ atspre_prerr_newline () ;
/* tmp142 = */ ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
} /* end of [if] */
return /* (tmp142) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_effvar] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 10877(line=342, offs=5) -- 11306(line=353, offs=4)
*/
ats_void_type
the_effect_env_check_sexp_31 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp155) ;
ATSlocal (ats_ptr_type, tmp156) ;
ATSlocal (ats_ptr_type, tmp157) ;
ATSlocal (ats_ptr_type, tmp158) ;
ATSlocal (ats_ptr_type, tmp159) ;
ATSlocal_void (tmp160) ;
ATSlocal_void (tmp161) ;
ATSlocal_void (tmp162) ;
ATSlocal_void (tmp163) ;
__ats_lab_the_effect_env_check_sexp_31:
tmp156 = ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__s2exp_whnf (arg1) ;
tmp157 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_4, tmp156), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_29 */
__ats_lab_29_0:
if (((ats_sum_ptr_type)tmp157)->tag != 7) { goto __ats_lab_30_0 ; }
__ats_lab_29_1:
tmp158 = ats_caselptr_mac(anairiats_sum_1, tmp157, atslab_0) ;
/* tmp155 = */ ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_seff (arg0, tmp158) ;
break ;
/* branch: __ats_lab_30 */
__ats_lab_30_0:
if (((ats_sum_ptr_type)tmp157)->tag != 32) { goto __ats_lab_31_0 ; }
__ats_lab_30_1:
tmp159 = ats_caselptr_mac(anairiats_sum_1, tmp157, atslab_0) ;
/* tmp155 = */ ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_effvar (arg0, tmp159) ;
break ;
/* branch: __ats_lab_31 */
__ats_lab_31_0:
__ats_lab_31_1:
/* tmp160 = */ prerr_loc_interror_1 (arg0) ;
/* tmp161 = */ atspre_prerr_string ((ats_ptr_type)": the_effect_env_check_s2exp: s2e0 = ") ;
/* tmp162 = */ ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__prerr_s2exp (tmp156) ;
/* tmp163 = */ atspre_prerr_newline () ;
/* tmp155 = */ ATS_2d0_2e2_2e3_2src_2ats_error_2esats__abort () ;
break ;
} while (0) ;
return /* (tmp155) */ ;
} /* end of [the_effect_env_check_sexp_31] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 11350(line=355, offs=5) -- 11624(line=363, offs=4)
*/
ats_void_type
the_effect_env_check_sexplst_32 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp164) ;
ATSlocal (ats_ptr_type, tmp165) ;
ATSlocal (ats_ptr_type, tmp166) ;
ATSlocal_void (tmp167) ;
__ats_lab_the_effect_env_check_sexplst_32:
do {
/* branch: __ats_lab_32 */
__ats_lab_32_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_33_0 ; }
__ats_lab_32_1:
tmp165 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp166 = ats_caselptr_mac(anairiats_sum_2, arg1, atslab_1) ;
/* tmp167 = */ the_effect_env_check_sexp_31 (arg0, tmp165) ;
arg0 = arg0 ;
arg1 = tmp166 ;
goto __ats_lab_the_effect_env_check_sexplst_32 ; // tail call
break ;
/* branch: __ats_lab_33 */
__ats_lab_33_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_33_1:
break ;
} while (0) ;
return /* (tmp164) */ ;
} /* end of [the_effect_env_check_sexplst_32] */
/*
// /home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/src/ats_trans3_env_eff.dats: 11703(line=365, offs=37) -- 12083(line=379, offs=4)
*/
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_seff (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal_void (tmp168) ;
ATSlocal (ats_uint_type, tmp169) ;
ATSlocal (ats_ptr_type, tmp170) ;
ATSlocal_void (tmp171) ;
__ats_lab_ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_seff:
do {
/* branch: __ats_lab_34 */
__ats_lab_34_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_35_0 ; }
__ats_lab_34_1:
/* tmp168 = */ ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_all (arg0) ;
break ;
/* branch: __ats_lab_35 */
__ats_lab_35_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_36_0 ; }
__ats_lab_35_1:
break ;
/* branch: __ats_lab_36 */
__ats_lab_36_0:
// if (((ats_sum_ptr_type)arg1)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_36_1:
tmp169 = ats_caselptr_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp170 = ats_caselptr_mac(anairiats_sum_5, arg1, atslab_1) ;
/* tmp171 = */ the_effect_env_check_effset_24 (arg0, tmp169) ;
/* tmp168 = */ the_effect_env_check_sexplst_32 (arg0, tmp170) ;
break ;
} while (0) ;
return /* (tmp168) */ ;
} /* end of [ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__the_effect_env_check_seff] */
/* static load function */
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_error_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_list_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_syntax_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_dynexp2_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_reference_2esats__staload (void) ;
extern ats_void_type ATS_2d0_2e2_2e3_2src_2ats_reference_2edats__staload (void) ;
static int ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__staload_flag = 0 ;
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__staload () {
if (ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__staload_flag) return ;
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__staload_flag = 1 ;
ATS_2d0_2e2_2e3_2src_2ats_effect_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_error_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_list_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_syntax_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_staexp2_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_dynexp2_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_reference_2esats__staload () ;
ATS_2d0_2e2_2e3_2src_2ats_reference_2edats__staload () ;
// ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeff.tag = 0 ;
// ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMeffmask.tag = 1 ;
// ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__EFFENVITEMlam.tag = 2 ;
return ;
} /* staload function */
/* dynamic load function */
// (external) dynload flag declaration
extern
int ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__dynload_flag ;
ats_void_type
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__dynload () {
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__dynload_flag = 1 ;
ATS_2d0_2e2_2e3_2src_2ats_trans3_env_eff_2edats__staload () ;
#ifdef _ATS_PROOFCHECK
#endif /* _ATS_PROOFCHECK */
/* marking static variables for GC */
ATS_GC_MARKROOT(&statmp29, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp32, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp33, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp34, sizeof(ats_ptr_type)) ;
/* marking external values for GC */
/* code for dynamic loading */
statmp32 = (ats_sum_ptr_type)0 ;
statmp29 = ref_make_elt_03536__ats_ptr_type (statmp32) ;
statmp34 = (ats_sum_ptr_type)0 ;
statmp33 = ref_make_elt_03536__ats_ptr_type (statmp34) ;
return ;
} /* end of [dynload function] */
/* external codes at mid */
/* external codes at bot */
/* ****** ****** */
/* end of [/home/fac2/hwxi/research/ATS/IMPLEMENT/Geizella/Anairiats/svn/ats-lang/bootstrap1/ats_trans3_env_eff_dats.c] */
|