Changes in / [c366ec6:08da53d]
- Location:
- src
- Files:
-
- 4 added
- 6 deleted
- 9 edited
-
Tuples/Explode.h (modified) (2 diffs)
-
Tuples/TupleAssignment.cc (modified) (5 diffs)
-
libcfa/concurrency/monitor (modified) (3 diffs)
-
libcfa/concurrency/monitor.c (modified) (2 diffs)
-
prelude/prelude.cf (modified) (2 diffs)
-
tests/.expect/32/literals.txt (modified) (26 diffs)
-
tests/.expect/boundedBuffer.txt (added)
-
tests/.expect/concurrent/boundedBuffer.txt (deleted)
-
tests/.expect/concurrent/fmtLines.txt (deleted)
-
tests/.expect/concurrent/matrixSum.txt (deleted)
-
tests/.expect/concurrent/pingpong.txt (deleted)
-
tests/.expect/concurrent/prodcons.txt (deleted)
-
tests/.expect/fmtLines.txt (added)
-
tests/.expect/pingpong.txt (added)
-
tests/.expect/prodcons.txt (added)
-
tests/Makefile.am (modified) (2 diffs)
-
tests/boundedBuffer.c (modified) (1 diff)
-
tests/fmtLines.c (modified) (3 diffs)
-
tests/matrixSum.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/Explode.h
rc366ec6 r08da53d 30 30 Expression * distributeReference( Expression * ); 31 31 32 static inline CastExpr * isReferenceCast( Expression * expr ) {33 if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) {34 if ( dynamic_cast< ReferenceType * >( castExpr->result ) ) {35 return castExpr;36 }37 }38 return nullptr;39 }40 41 32 /// helper function used by explode 42 33 template< typename OutputIterator > … … 44 35 if ( isTupleAssign ) { 45 36 // tuple assignment needs CastExprs to be recursively exploded to easily get at all of the components 46 if ( CastExpr * castExpr = isReferenceCast( expr ) ) {37 if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) { 47 38 ResolvExpr::AltList alts; 48 39 explodeUnique( castExpr->get_arg(), alt, indexer, back_inserter( alts ), isTupleAssign ); -
src/Tuples/TupleAssignment.cc
rc366ec6 r08da53d 41 41 #include "SynTree/Visitor.h" // for Visitor 42 42 43 #if 044 #define PRINT(x) x45 #else46 #define PRINT(x)47 #endif48 49 43 namespace Tuples { 50 44 class TupleAssignSpotter { … … 125 119 if ( NameExpr *op = dynamic_cast< NameExpr * >(expr->get_function()) ) { 126 120 if ( CodeGen::isCtorDtorAssign( op->get_name() ) ) { 127 fname = op->get_name(); 128 PRINT( std::cerr << "TupleAssignment: " << fname << std::endl; ) 121 fname = op->get_name(); 129 122 for ( std::list<ResolvExpr::AltList>::const_iterator ali = possibilities.begin(); ali != possibilities.end(); ++ali ) { 130 123 if ( ali->size() == 0 ) continue; // AlternativeFinder will natrually handle this case, if it's legal … … 138 131 const ResolvExpr::Alternative & alt1 = ali->front(); 139 132 auto begin = std::next(ali->begin(), 1), end = ali->end(); 140 PRINT( std::cerr << "alt1 is " << alt1.expr << std::endl; )141 133 if ( refToTuple(alt1.expr) ) { 142 PRINT( std::cerr << "and is reference to tuple" << std::endl; )143 134 if ( isMultAssign( begin, end ) ) { 144 PRINT( std::cerr << "possible multiple assignment" << std::endl; )145 135 matcher.reset( new MultipleAssignMatcher( *this, *ali ) ); 146 136 } else { 147 137 // mass assignment 148 PRINT( std::cerr << "possible mass assignment" << std::endl; )149 138 matcher.reset( new MassAssignMatcher( *this, *ali ) ); 150 139 } … … 170 159 // now resolve new assignments 171 160 for ( std::list< Expression * >::iterator i = new_assigns.begin(); i != new_assigns.end(); ++i ) { 172 PRINT(173 std::cerr << "== resolving tuple assign ==" << std::endl;174 std::cerr << *i << std::endl;175 )176 177 161 ResolvExpr::AlternativeFinder finder( currentFinder.get_indexer(), currentFinder.get_environ() ); 178 162 try { … … 264 248 ctorInit->accept( rm ); 265 249 } 266 PRINT( std::cerr << "new object: " << ret << std::endl; )267 250 return ret; 268 251 } -
src/libcfa/concurrency/monitor
rc366ec6 r08da53d 10 10 // Created On : Thd Feb 23 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Oct 7 18:06:45201713 // Update Count : 1012 // Last Modified On : Sat Jul 22 09:59:01 2017 13 // Update Count : 3 14 14 // 15 15 … … 54 54 void ^?{}( monitor_guard_t & this ); 55 55 56 56 57 struct monitor_dtor_guard_t { 57 58 monitor_desc * m; … … 63 64 void ?{}( monitor_dtor_guard_t & this, monitor_desc ** m, void (*func)() ); 64 65 void ^?{}( monitor_dtor_guard_t & this ); 65 66 static inline forall( dtype T | sized(T) | { void ^?{}( T & mutex ); } )67 void delete( T * th ) {68 ^(*th){};69 free( th );70 }71 66 72 67 //----------------------------------------------------------------------------- -
src/libcfa/concurrency/monitor.c
rc366ec6 r08da53d 409 409 short thread_count = 0; 410 410 thread_desc * threads[ count ]; 411 __builtin_memset( threads, 0, sizeof( threads ) ); 411 for(int i = 0; i < count; i++) { 412 threads[i] = 0; 413 } 412 414 413 415 // Save monitor states … … 533 535 short max = count_max( mask ); 534 536 monitor_desc * mon_storage[max]; 535 __builtin_memset( mon_storage, 0, sizeof( mon_storage ) );536 537 short actual_count = aggregate( mon_storage, mask ); 537 538 LIB_DEBUG_PRINT_SAFE("Kernel : waitfor %d (s: %d, m: %d)\n", actual_count, mask.size, (short)max);539 538 540 539 if(actual_count == 0) return; -
src/prelude/prelude.cf
rc366ec6 r08da53d 7 7 // Created On : Sat Nov 29 07:23:41 2014 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Sun Oct 8 12:21:33201710 // Update Count : 9 79 // Last Modified On : Mon Sep 25 18:12:15 2017 10 // Update Count : 95 11 11 // 12 12 … … 558 558 signed long long int ?+=?( signed long long int &, signed long long int ), ?+=?( volatile signed long long int &, signed long long int ); 559 559 unsigned long long int ?+=?( unsigned long long int &, unsigned long long int ), ?+=?( volatile unsigned long long int &, unsigned long long int ); 560 //signed int128 ?+=?( signed int128 &, signed int128 ), ?+=?( volatile signed int128 &, signed int128 );561 //unsigned int128 ?+=?( unsigned int128 &, unsigned int128 ), ?+=?( volatile unsigned int128 &, unsigned int128 );560 signed int128 ?+=?( signed int128 &, signed int128 ), ?+=?( volatile signed int128 &, signed int128 ); 561 unsigned int128 ?+=?( unsigned int128 &, unsigned int128 ), ?+=?( volatile unsigned int128 &, unsigned int128 ); 562 562 563 563 _Bool ?-=?( _Bool &, _Bool ), ?-=?( volatile _Bool &, _Bool ); -
src/tests/.expect/32/literals.txt
rc366ec6 r08da53d 150 150 151 151 } 152 153 152 { 154 153 signed int _index1 = ((signed int )0); … … 158 157 159 158 } 160 161 159 } 162 160 static inline void ___constructor__F_R9sofstream9sofstream_autogen___1(struct ofstream *___dst__R9sofstream_1, struct ofstream ___src__9sofstream_1){ … … 173 171 174 172 } 175 176 173 { 177 174 signed int _index3 = ((signed int )0); … … 181 178 182 179 } 183 184 180 } 185 181 static inline void ___destructor__F_R9sofstream_autogen___1(struct ofstream *___dst__R9sofstream_1){ … … 191 187 192 188 } 193 194 189 { 195 190 signed int _index5 = ((signed int )(((signed int )__sepSize__C13e__anonymous0_1)-1)); … … 199 194 200 195 } 201 202 196 ((void)((*___dst__R9sofstream_1).__sepCur__PCc_1) /* ^?{} */); 203 197 ((void)((*___dst__R9sofstream_1).__sawNL__b_1) /* ^?{} */); … … 245 239 246 240 } 247 248 241 { 249 242 signed int _index9 = ((signed int )0); … … 253 246 254 247 } 255 256 248 } 257 249 static inline void ___constructor__F_R9sofstreamPvb_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1){ … … 268 260 269 261 } 270 271 262 { 272 263 signed int _index11 = ((signed int )0); … … 276 267 277 268 } 278 279 269 } 280 270 static inline void ___constructor__F_R9sofstreamPvbb_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1, _Bool __sepOnOff__b_1){ … … 291 281 292 282 } 293 294 283 { 295 284 signed int _index13 = ((signed int )0); … … 299 288 300 289 } 301 302 290 } 303 291 static inline void ___constructor__F_R9sofstreamPvbbb_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1, _Bool __sepOnOff__b_1, _Bool __sawNL__b_1){ … … 314 302 315 303 } 316 317 304 { 318 305 signed int _index15 = ((signed int )0); … … 322 309 323 310 } 324 325 311 } 326 312 static inline void ___constructor__F_R9sofstreamPvbbbPCc_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1, _Bool __sepOnOff__b_1, _Bool __sawNL__b_1, const char *__sepCur__PCc_1){ … … 337 323 338 324 } 339 340 325 { 341 326 signed int _index17 = ((signed int )0); … … 345 330 346 331 } 347 348 332 } 349 333 static inline void ___constructor__F_R9sofstreamPvbbbPCcA0c_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1, _Bool __sepOnOff__b_1, _Bool __sawNL__b_1, const char *__sepCur__PCc_1, char __separator__A0c_1[((unsigned int )__sepSize__C13e__anonymous0_1)]){ … … 360 344 361 345 } 362 363 346 { 364 347 signed int _index19 = ((signed int )0); … … 368 351 369 352 } 370 371 353 } 372 354 static inline void ___constructor__F_R9sofstreamPvbbbPCcA0cA0c_autogen___1(struct ofstream *___dst__R9sofstream_1, void *__file__Pv_1, _Bool __sepDefault__b_1, _Bool __sepOnOff__b_1, _Bool __sawNL__b_1, const char *__sepCur__PCc_1, char __separator__A0c_1[((unsigned int )__sepSize__C13e__anonymous0_1)], char __tupleSeparator__A0c_1[((unsigned int )__sepSize__C13e__anonymous0_1)]){ … … 383 365 384 366 } 385 386 367 { 387 368 signed int _index21 = ((signed int )0); … … 391 372 392 373 } 393 394 374 } 395 375 _Bool __sepPrt__Fb_P9sofstream__1(struct ofstream *__anonymous_object1294); … … 728 708 ((void)0123456789.e-09L); 729 709 ((void)0123456789.e-09DL); 730 ((void)( +0123456789.e-09));731 ((void)( +0123456789.e-09f));732 ((void)( +0123456789.e-09l));733 ((void)( +0123456789.e-09F));734 ((void)( +0123456789.e-09L));735 ((void)( +0123456789.e-09DL));710 ((void)(-0123456789.e-09)); 711 ((void)(-0123456789.e-09f)); 712 ((void)(-0123456789.e-09l)); 713 ((void)(-0123456789.e-09F)); 714 ((void)(-0123456789.e-09L)); 715 ((void)(-0123456789.e-09DL)); 736 716 ((void)(-0123456789.e-09)); 737 717 ((void)(-0123456789.e-09f)); … … 872 852 ((void)0123456789.0123456789E-09L); 873 853 ((void)0123456789.0123456789E-09DL); 874 ((void)( +0123456789.0123456789E-09));875 ((void)( +0123456789.0123456789E-09f));876 ((void)( +0123456789.0123456789E-09l));877 ((void)( +0123456789.0123456789E-09F));878 ((void)( +0123456789.0123456789E-09L));879 ((void)( +0123456789.0123456789E-09DL));854 ((void)(-0123456789.0123456789E-09)); 855 ((void)(-0123456789.0123456789E-09f)); 856 ((void)(-0123456789.0123456789E-09l)); 857 ((void)(-0123456789.0123456789E-09F)); 858 ((void)(-0123456789.0123456789E-09L)); 859 ((void)(-0123456789.0123456789E-09DL)); 880 860 ((void)(-0123456789.0123456789E-09)); 881 861 ((void)(-0123456789.0123456789E-09f)); … … 919 899 ((void)0x0123456789.p-09F); 920 900 ((void)0x0123456789.p-09L); 921 ((void)( +0x0123456789.p-09));922 ((void)( +0x0123456789.p-09f));923 ((void)( +0x0123456789.p-09l));924 ((void)( +0x0123456789.p-09F));925 ((void)( +0x0123456789.p-09L));901 ((void)(-0x0123456789.p-09)); 902 ((void)(-0x0123456789.p-09f)); 903 ((void)(-0x0123456789.p-09l)); 904 ((void)(-0x0123456789.p-09F)); 905 ((void)(-0x0123456789.p-09L)); 926 906 ((void)(-0x0123456789.p-09)); 927 907 ((void)(-0x0123456789.p-09f)); … … 964 944 ((void)0x.0123456789P-09F); 965 945 ((void)0x.0123456789P-09L); 966 ((void)( +0x.0123456789P-09));967 ((void)( +0x.0123456789P-09f));968 ((void)( +0x.0123456789P-09l));969 ((void)( +0x.0123456789P-09F));970 ((void)( +0x.0123456789P-09L));946 ((void)(-0x.0123456789P-09)); 947 ((void)(-0x.0123456789P-09f)); 948 ((void)(-0x.0123456789P-09l)); 949 ((void)(-0x.0123456789P-09F)); 950 ((void)(-0x.0123456789P-09L)); 971 951 ((void)(-0x.0123456789P-09)); 972 952 ((void)(-0x.0123456789P-09f)); … … 1009 989 ((void)0X0123456789.0123456789P-09F); 1010 990 ((void)0X0123456789.0123456789P-09L); 1011 ((void)(+0X0123456789.0123456789P-09));1012 ((void)(+0X0123456789.0123456789P-09f));1013 ((void)(+0X0123456789.0123456789P-09l));1014 ((void)(+0X0123456789.0123456789P-09F));1015 ((void)(+0X0123456789.0123456789P-09L));1016 991 ((void)(-0X0123456789.0123456789P-09)); 1017 992 ((void)(-0X0123456789.0123456789P-09f)); … … 1019 994 ((void)(-0X0123456789.0123456789P-09F)); 1020 995 ((void)(-0X0123456789.0123456789P-09L)); 1021 ((void)((signed char )01234567)); 1022 ((void)((signed short int )01234567)); 1023 ((void)((signed int )01234567)); 1024 ((void)((signed long long int )01234567)); 1025 ((void)((__int128 )01234567)); 1026 ((void)((unsigned char )01234567u)); 1027 ((void)((signed short int )01234567u)); 1028 ((void)((unsigned int )01234567u)); 1029 ((void)((signed long long int )01234567u)); 1030 ((void)((__int128 )01234567u)); 1031 ((void)(+((signed int )((signed char )01234567)))); 1032 ((void)(+((signed int )((signed short int )01234567)))); 1033 ((void)(+((signed int )01234567))); 1034 ((void)(+((signed long long int )01234567))); 1035 ((void)(+((float )((__int128 )01234567)))); 1036 ((void)(+((signed int )((unsigned char )01234567u)))); 1037 ((void)(+((signed int )((signed short int )01234567u)))); 1038 ((void)(+((unsigned int )01234567u))); 1039 ((void)(+((signed long long int )01234567u))); 1040 ((void)(+((float )((__int128 )01234567u)))); 1041 ((void)(-((signed int )((signed char )01234567)))); 1042 ((void)(-((signed int )((signed short int )01234567)))); 1043 ((void)(-((signed int )01234567))); 1044 ((void)(-((signed long long int )01234567))); 1045 ((void)(-((float )((__int128 )01234567)))); 1046 ((void)(-((signed int )((unsigned char )01234567u)))); 1047 ((void)(-((signed int )((signed short int )01234567u)))); 1048 ((void)(-((unsigned int )01234567u))); 1049 ((void)(-((signed long long int )01234567u))); 1050 ((void)(-((float )((__int128 )01234567u)))); 1051 ((void)((signed char )1234567890)); 1052 ((void)((signed short int )1234567890)); 1053 ((void)((signed int )1234567890)); 1054 ((void)((signed long long int )1234567890)); 1055 ((void)((__int128 )1234567890)); 1056 ((void)((signed char )1234567890U)); 1057 ((void)((unsigned short int )1234567890U)); 1058 ((void)((signed int )1234567890U)); 1059 ((void)((unsigned long long int )1234567890u)); 1060 ((void)((unsigned __int128 )1234567890u)); 1061 ((void)(+((signed int )((signed char )1234567890)))); 1062 ((void)(+((signed int )((signed short int )1234567890)))); 1063 ((void)(+((signed int )1234567890))); 1064 ((void)(+((signed long long int )1234567890))); 1065 ((void)(+((float )((__int128 )1234567890)))); 1066 ((void)(+((signed int )((signed char )1234567890U)))); 1067 ((void)(+((signed int )((unsigned short int )1234567890U)))); 1068 ((void)(+((signed int )1234567890U))); 1069 ((void)(+((unsigned long long int )1234567890u))); 1070 ((void)(+((float )((unsigned __int128 )1234567890u)))); 1071 ((void)(-((signed int )((signed char )1234567890)))); 1072 ((void)(-((signed int )((signed short int )1234567890)))); 1073 ((void)(-((signed int )1234567890))); 1074 ((void)(-((signed long long int )1234567890))); 1075 ((void)(-((float )((__int128 )1234567890)))); 1076 ((void)(-((signed int )((signed char )1234567890U)))); 1077 ((void)(-((signed int )((unsigned short int )1234567890U)))); 1078 ((void)(-((signed int )1234567890U))); 1079 ((void)(-((unsigned long long int )1234567890u))); 1080 ((void)(-((float )((unsigned __int128 )1234567890u)))); 1081 ((void)((signed char )0x0123456789abcdef)); 1082 ((void)((signed short int )0x0123456789abcdef)); 1083 ((void)((signed int )0x0123456789abcdef)); 1084 ((void)((signed long long int )0x0123456789abcdef)); 1085 ((void)((signed char )0x0123456789abcdefu)); 1086 ((void)((unsigned short int )0x0123456789abcdefu)); 1087 ((void)((signed int )0x0123456789abcdefu)); 1088 ((void)((unsigned long long int )0x0123456789abcdefu)); 1089 ((void)(+((signed int )((signed char )0x0123456789abcdef)))); 1090 ((void)(+((signed int )((signed short int )0x0123456789abcdef)))); 1091 ((void)(+((signed int )0x0123456789abcdef))); 1092 ((void)(+((signed long long int )0x0123456789abcdef))); 1093 ((void)(+((signed int )((signed char )0x0123456789abcdefu)))); 1094 ((void)(+((signed int )((unsigned short int )0x0123456789abcdefu)))); 1095 ((void)(+((signed int )0x0123456789abcdefu))); 1096 ((void)(+((unsigned long long int )0x0123456789abcdefu))); 1097 ((void)(-((signed int )((signed char )0x0123456789abcdef)))); 1098 ((void)(-((signed int )((signed short int )0x0123456789abcdef)))); 1099 ((void)(-((signed int )0x0123456789abcdef))); 1100 ((void)(-((signed long long int )0x0123456789abcdef))); 1101 ((void)(-((signed int )((signed char )0x0123456789abcdefu)))); 1102 ((void)(-((signed int )((unsigned short int )0x0123456789abcdefu)))); 1103 ((void)(-((signed int )0x0123456789abcdefu))); 1104 ((void)(-((unsigned long long int )0x0123456789abcdefu))); 1105 ((void)((signed char )0x0123456789ABCDEF)); 1106 ((void)((signed short int )0x0123456789ABCDEF)); 1107 ((void)((signed int )0x0123456789ABCDEF)); 1108 ((void)((signed long long int )0x0123456789ABCDEF)); 1109 ((void)((signed char )0x0123456789ABCDEFu)); 1110 ((void)((unsigned short int )0x0123456789ABCDEFu)); 1111 ((void)((signed int )0x0123456789ABCDEFu)); 1112 ((void)((unsigned long long int )0x0123456789ABCDEFu)); 1113 ((void)(+((signed int )((signed char )0x0123456789ABCDEF)))); 1114 ((void)(+((signed int )((signed short int )0x0123456789ABCDEF)))); 1115 ((void)(+((signed int )0x0123456789ABCDEF))); 1116 ((void)(+((signed long long int )0x0123456789ABCDEF))); 1117 ((void)(+((signed int )((signed char )0x0123456789ABCDEFu)))); 1118 ((void)(+((signed int )((unsigned short int )0x0123456789ABCDEFu)))); 1119 ((void)(+((signed int )0x0123456789ABCDEFu))); 1120 ((void)(+((unsigned long long int )0x0123456789ABCDEFu))); 1121 ((void)(-((signed int )((signed char )0x0123456789ABCDEF)))); 1122 ((void)(-((signed int )((signed short int )0x0123456789ABCDEF)))); 1123 ((void)(-((signed int )0x0123456789ABCDEF))); 1124 ((void)(-((signed long long int )0x0123456789ABCDEF))); 1125 ((void)(-((signed int )((signed char )0x0123456789ABCDEFu)))); 1126 ((void)(-((signed int )((unsigned short int )0x0123456789ABCDEFu)))); 1127 ((void)(-((signed int )0x0123456789ABCDEFu))); 1128 ((void)(-((unsigned long long int )0x0123456789ABCDEFu))); 1129 ((void)((signed char )0X0123456789abcdef)); 1130 ((void)((signed short int )0X0123456789abcdef)); 1131 ((void)((signed int )0X0123456789abcdef)); 1132 ((void)((signed long long int )0X0123456789abcdef)); 1133 ((void)((signed char )0X0123456789abcdefu)); 1134 ((void)((unsigned short int )0X0123456789abcdefu)); 1135 ((void)((signed int )0X0123456789abcdefu)); 1136 ((void)((unsigned long long int )0X0123456789abcdefu)); 1137 ((void)(+((signed int )((signed char )0X0123456789abcdef)))); 1138 ((void)(+((signed int )((signed short int )0X0123456789abcdef)))); 1139 ((void)(+((signed int )0X0123456789abcdef))); 1140 ((void)(+((signed long long int )0X0123456789abcdef))); 1141 ((void)(+((signed int )((signed char )0X0123456789abcdefu)))); 1142 ((void)(+((signed int )((unsigned short int )0X0123456789abcdefu)))); 1143 ((void)(+((signed int )0X0123456789abcdefu))); 1144 ((void)(+((unsigned long long int )0X0123456789abcdefu))); 1145 ((void)(-((signed int )((signed char )0X0123456789abcdef)))); 1146 ((void)(-((signed int )((signed short int )0X0123456789abcdef)))); 1147 ((void)(-((signed int )0X0123456789abcdef))); 1148 ((void)(-((signed long long int )0X0123456789abcdef))); 1149 ((void)(-((signed int )((signed char )0X0123456789abcdefu)))); 1150 ((void)(-((signed int )((unsigned short int )0X0123456789abcdefu)))); 1151 ((void)(-((signed int )0X0123456789abcdefu))); 1152 ((void)(-((unsigned long long int )0X0123456789abcdefu))); 1153 ((void)((signed char )0X0123456789ABCDEF)); 1154 ((void)((signed short int )0X0123456789ABCDEF)); 1155 ((void)((signed int )0X0123456789ABCDEF)); 1156 ((void)((signed long long int )0X0123456789ABCDEF)); 1157 ((void)((signed char )0X0123456789ABCDEFu)); 1158 ((void)((unsigned short int )0X0123456789ABCDEFu)); 1159 ((void)((signed int )0X0123456789ABCDEFu)); 1160 ((void)((unsigned long long int )0X0123456789ABCDEFu)); 1161 ((void)(+((signed int )((signed char )0X0123456789ABCDEF)))); 1162 ((void)(+((signed int )((signed short int )0X0123456789ABCDEF)))); 1163 ((void)(+((signed int )0X0123456789ABCDEF))); 1164 ((void)(+((signed long long int )0X0123456789ABCDEF))); 1165 ((void)(+((signed int )((signed char )0X0123456789ABCDEFu)))); 1166 ((void)(+((signed int )((unsigned short int )0X0123456789ABCDEFu)))); 1167 ((void)(+((signed int )0X0123456789ABCDEFu))); 1168 ((void)(+((unsigned long long int )0X0123456789ABCDEFu))); 1169 ((void)(-((signed int )((signed char )0X0123456789ABCDEF)))); 1170 ((void)(-((signed int )((signed short int )0X0123456789ABCDEF)))); 1171 ((void)(-((signed int )0X0123456789ABCDEF))); 1172 ((void)(-((signed long long int )0X0123456789ABCDEF))); 1173 ((void)(-((signed int )((signed char )0X0123456789ABCDEFu)))); 1174 ((void)(-((signed int )((unsigned short int )0X0123456789ABCDEFu)))); 1175 ((void)(-((signed int )0X0123456789ABCDEFu))); 1176 ((void)(-((unsigned long long int )0X0123456789ABCDEFu))); 1177 ((void)((float )0123456789.)); 1178 ((void)((double )0123456789.)); 1179 ((void)((long double )0123456789.)); 1180 ((void)((long double )0123456789.)); 1181 ((void)(+((float )0123456789.))); 1182 ((void)(+((double )0123456789.))); 1183 ((void)(+((long double )0123456789.))); 1184 ((void)(+((long double )0123456789.))); 1185 ((void)(-((float )0123456789.))); 1186 ((void)(-((double )0123456789.))); 1187 ((void)(-((long double )0123456789.))); 1188 ((void)(-((long double )0123456789.))); 1189 ((void)((float )0123456789.e09)); 1190 ((void)((double )0123456789.e09)); 1191 ((void)((long double )0123456789.e09)); 1192 ((void)((long double )0123456789.e09)); 1193 ((void)(+((float )0123456789.e+09))); 1194 ((void)(+((double )0123456789.e+09))); 1195 ((void)(+((long double )0123456789.e+09))); 1196 ((void)(+((long double )0123456789.e+09))); 1197 ((void)(-((float )0123456789.e-09))); 1198 ((void)(-((double )0123456789.e-09))); 1199 ((void)(-((long double )0123456789.e-09))); 1200 ((void)(-((long double )0123456789.e-09))); 1201 ((void)((float ).0123456789e09)); 1202 ((void)((double ).0123456789e09)); 1203 ((void)((long double ).0123456789e09)); 1204 ((void)((long double ).0123456789e09)); 1205 ((void)(+((float ).0123456789E+09))); 1206 ((void)(+((double ).0123456789E+09))); 1207 ((void)(+((long double ).0123456789E+09))); 1208 ((void)(+((long double ).0123456789E+09))); 1209 ((void)(-((float ).0123456789E-09))); 1210 ((void)(-((double ).0123456789E-09))); 1211 ((void)(-((long double ).0123456789E-09))); 1212 ((void)(-((long double ).0123456789E-09))); 1213 ((void)((float )0123456789.0123456789)); 1214 ((void)((double )0123456789.0123456789)); 1215 ((void)((long double )0123456789.0123456789)); 1216 ((void)((long double )0123456789.0123456789)); 1217 ((void)(+((float )0123456789.0123456789E09))); 1218 ((void)(+((double )0123456789.0123456789E09))); 1219 ((void)(+((long double )0123456789.0123456789E09))); 1220 ((void)(+((long double )0123456789.0123456789E09))); 1221 ((void)(-((float )0123456789.0123456789E+09))); 1222 ((void)(-((double )0123456789.0123456789E+09))); 1223 ((void)(-((long double )0123456789.0123456789E+09))); 1224 ((void)(-((long double )0123456789.0123456789E+09))); 1225 ((void)((float )0123456789.0123456789E-09)); 1226 ((void)((double )0123456789.0123456789E-09)); 1227 ((void)((long double )0123456789.0123456789E-09)); 1228 ((void)((long double )0123456789.0123456789E-09)); 1229 ((void)((float )0x0123456789.p09)); 1230 ((void)((double )0x0123456789.p09)); 1231 ((void)((long double )0x0123456789.p09)); 1232 ((void)((long double )0x0123456789.p09)); 1233 ((void)(+((float )0x0123456789.p09))); 1234 ((void)(+((double )0x0123456789.p09))); 1235 ((void)(+((long double )0x0123456789.p09))); 1236 ((void)(+((long double )0x0123456789.p09))); 1237 ((void)(-((float )0x0123456789.p09))); 1238 ((void)(-((double )0x0123456789.p09))); 1239 ((void)(-((long double )0x0123456789.p09))); 1240 ((void)(-((long double )0x0123456789.p09))); 1241 ((void)((float )0x0123456789.p+09)); 1242 ((void)((double )0x0123456789.p+09)); 1243 ((void)((long double )0x0123456789.p+09)); 1244 ((void)((long double )0x0123456789.p+09)); 1245 ((void)(+((float )0x0123456789.p-09))); 1246 ((void)(+((double )0x0123456789.p-09))); 1247 ((void)(+((long double )0x0123456789.p-09))); 1248 ((void)(+((long double )0x0123456789.p-09))); 1249 ((void)(-((float )0x.0123456789p09))); 1250 ((void)(-((double )0x.0123456789p09))); 1251 ((void)(-((long double )0x.0123456789p09))); 1252 ((void)(-((long double )0x.0123456789p09))); 996 ((void)(-0X0123456789.0123456789P-09)); 997 ((void)(-0X0123456789.0123456789P-09f)); 998 ((void)(-0X0123456789.0123456789P-09l)); 999 ((void)(-0X0123456789.0123456789P-09F)); 1000 ((void)(-0X0123456789.0123456789P-09L)); 1253 1001 ((void)__f__F_c__1('a')); 1254 1002 ((void)__f__F_Sc__1(20)); -
src/tests/Makefile.am
rc366ec6 r08da53d 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Oct 10 14:04:40201714 ## Update Count : 4 713 ## Last Modified On : Mon Sep 11 16:17:16 2017 14 ## Update Count : 45 15 15 ############################################################################### 16 16 … … 22 22 concurrent = yes 23 23 quick_test += coroutine thread monitor 24 concurrent_test = \ 25 coroutine \ 26 fmtLines \ 27 pingpong \ 28 prodcons \ 29 thread \ 30 matrixSum \ 31 monitor \ 32 multi-monitor \ 33 boundedBuffer \ 34 preempt \ 35 sched-int-block \ 36 sched-int-disjoint \ 37 sched-int-wait \ 38 sched-ext-barge \ 39 sched-ext-dtor \ 40 sched-ext-else \ 41 sched-ext-parse \ 42 sched-ext-recurse \ 43 sched-ext-statment \ 24 concurrent_test = \ 25 coroutine \ 26 thread \ 27 monitor \ 28 multi-monitor \ 29 preempt \ 30 sched-int-block \ 31 sched-int-disjoint \ 32 sched-int-wait \ 33 sched-ext-barge \ 34 sched-ext-dtor \ 35 sched-ext-else \ 36 sched-ext-parse \ 37 sched-ext-recurse \ 38 sched-ext-statment \ 44 39 sched-ext-when 40 45 41 else 46 42 concurrent=no -
src/tests/boundedBuffer.c
rc366ec6 r08da53d 67 67 } 68 68 69 forall(dtype T | sized(T) | { void ^?{}(T & mutex); }) 70 void delete( T * th ) { 71 ^(*th){}; 72 free( th ); 73 } 74 69 75 int main() { 70 76 Buffer buffer; -
src/tests/fmtLines.c
rc366ec6 r08da53d 10 10 // Created On : Sun Sep 17 21:56:15 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Oct 1 11:57:19201713 // Update Count : 3 412 // Last Modified On : Mon Sep 18 11:35:57 2017 13 // Update Count : 31 14 14 // 15 15 … … 23 23 24 24 void ?{}( Format & fmt ) { 25 resume( fmt ); // prime (start)coroutine25 resume( fmt ); // start coroutine 26 26 } 27 27 28 28 void ^?{}( Format & fmt ) { 29 if ( fmt.g != 0 || fmt.b != 0 ) sout | endl;29 if ( fmt.g != 0 || fmt.b != 0 ) sout | endl; 30 30 } 31 31 … … 47 47 48 48 void prt( Format & fmt, char ch ) { 49 fmt.ch = ch;50 resume( fmt );49 fmt.ch = ch; 50 resume( fmt ); 51 51 } // prt 52 52 53 53 int main() { 54 Format fmt; // format characters into blocks of 4 and groups of 5 blocks per line54 Format fmt; 55 55 char ch; 56 56 57 Eof: for ( ;; ) { // read until end of file57 for ( ;; ) { 58 58 sin | ch; // read one character 59 if ( eof( sin ) ) break Eof;// eof ?60 prt( fmt, ch ); // push character for formatting59 if ( eof( sin ) ) break; // eof ? 60 prt( fmt, ch ); 61 61 } // for 62 62 } // main
Note:
See TracChangeset
for help on using the changeset viewer.