Changeset 5780d0d
- Timestamp:
- Dec 18, 2024, 10:33:40 AM (2 hours ago)
- Branches:
- master
- Parents:
- 94aa202
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/builtins.c
r94aa202 r5780d0d 66 66 forall( T & ) 67 67 trait is_generator { 68 69 68 void main( T & this ); 69 generator$ * get_generator( T & this ); 70 70 }; 71 71 … … 234 234 static inline 235 235 forall( E | Serial( E ) ) { 236 E ++?( E & l) {236 E ?+=?( E & l, one_t ) { 237 237 int pos = fromInstance( l ); 238 238 l = fromInt_unsafe( pos + 1 ); … … 240 240 } 241 241 242 E --?( E & l) {242 E ?-=?( E & l, one_t ) { 243 243 int pos = fromInstance( l ); 244 244 l = fromInt_unsafe( pos - 1 ); … … 246 246 } 247 247 248 E ?+=?( E & l, one_t ) {249 int pos = fromInstance( l );250 l = fromInt_unsafe( pos + 1 );251 return l;252 }253 254 E ?-=?( E & l, one_t ) {255 int pos = fromInstance( l );256 l = fromInt_unsafe( pos - 1 );257 return l;258 }259 260 248 E ?+=?( E & l, int i ) { 261 249 int pos = fromInstance( l ); … … 268 256 l = fromInt_unsafe( pos - i ); 269 257 return l; 270 }271 272 E ?++( E & l ) {273 int pos = fromInstance( l );274 l = fromInt_unsafe( pos + 1 );275 return fromInt_unsafe( pos );276 }277 278 E ?--( E & l ) {279 int pos = fromInstance( l );280 l = fromInt_unsafe( pos - 1 );281 return fromInt_unsafe( pos );282 258 } 283 259 } -
tests/.expect/KRfunctions.arm64.txt
r94aa202 r5780d0d 99 99 signed int _X1bi_2; 100 100 { 101 signed int *(*_tmp_cp_ret 8)(signed int __param_0, signed int __param_1);102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret 8=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret8)));101 signed int *(*_tmp_cp_ret4)(signed int __param_0, signed int __param_1); 102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret4=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret4))); 103 103 } 104 104 -
tests/.expect/KRfunctions.x64.txt
r94aa202 r5780d0d 99 99 signed int _X1bi_2; 100 100 { 101 signed int *(*_tmp_cp_ret 8)(signed int __param_0, signed int __param_1);102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret 8=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret8)));101 signed int *(*_tmp_cp_ret4)(signed int __param_0, signed int __param_1); 102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret4=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret4))); 103 103 } 104 104 -
tests/.expect/KRfunctions.x86.txt
r94aa202 r5780d0d 99 99 signed int _X1bi_2; 100 100 { 101 signed int *(*_tmp_cp_ret 8)(signed int __param_0, signed int __param_1);102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret 8=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret8)));101 signed int *(*_tmp_cp_ret4)(signed int __param_0, signed int __param_1); 102 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret4=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret4))); 103 103 } 104 104 -
tests/.expect/declarationSpecifier.arm64.txt
r94aa202 r5780d0d 949 949 } 950 950 951 signed int _tmp_cp_ret 8;952 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);951 signed int _tmp_cp_ret4; 952 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 953 953 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 954 954 { -
tests/.expect/declarationSpecifier.x64.txt
r94aa202 r5780d0d 949 949 } 950 950 951 signed int _tmp_cp_ret 8;952 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);951 signed int _tmp_cp_ret4; 952 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 953 953 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 954 954 { -
tests/.expect/declarationSpecifier.x86.txt
r94aa202 r5780d0d 949 949 } 950 950 951 signed int _tmp_cp_ret 8;952 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);951 signed int _tmp_cp_ret4; 952 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 953 953 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 954 954 { -
tests/.expect/extension.arm64.txt
r94aa202 r5780d0d 445 445 446 446 { 447 signed int _tmp_cp_ret 8;448 ((void)(((void)(_tmp_cp_ret 8=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret8));447 signed int _tmp_cp_ret4; 448 ((void)(((void)(_tmp_cp_ret4=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret4)); 449 449 } 450 450 -
tests/.expect/extension.x64.txt
r94aa202 r5780d0d 445 445 446 446 { 447 signed int _tmp_cp_ret 8;448 ((void)(((void)(_tmp_cp_ret 8=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret8));447 signed int _tmp_cp_ret4; 448 ((void)(((void)(_tmp_cp_ret4=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret4)); 449 449 } 450 450 -
tests/.expect/extension.x86.txt
r94aa202 r5780d0d 445 445 446 446 { 447 signed int _tmp_cp_ret 8;448 ((void)(((void)(_tmp_cp_ret 8=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret8));447 signed int _tmp_cp_ret4; 448 ((void)(((void)(_tmp_cp_ret4=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret4)); 449 449 } 450 450 -
tests/.expect/gccExtensions.arm64.txt
r94aa202 r5780d0d 339 339 } 340 340 341 signed int _tmp_cp_ret 8;342 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);341 signed int _tmp_cp_ret4; 342 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 343 343 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 344 344 { -
tests/.expect/gccExtensions.x64.txt
r94aa202 r5780d0d 339 339 } 340 340 341 signed int _tmp_cp_ret 8;342 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);341 signed int _tmp_cp_ret4; 342 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 343 343 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 344 344 { -
tests/.expect/gccExtensions.x86.txt
r94aa202 r5780d0d 317 317 } 318 318 319 signed int _tmp_cp_ret 8;320 signed int _X3reti_2 = (((void)(_tmp_cp_ret 8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);319 signed int _tmp_cp_ret4; 320 signed int _X3reti_2 = (((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4); 321 321 if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) { 322 322 {
Note: See TracChangeset
for help on using the changeset viewer.