Changes in / [28e58fd:af08051]
- Location:
- src
- Files:
-
- 1 added
- 5 deleted
- 147 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r28e58fd raf08051 192 192 genCommaList( aggDecl->get_parameters().begin(), aggDecl->get_parameters().end() ); 193 193 output << ")" << endl; 194 output << indent;195 194 } 196 195 … … 206 205 for ( std::list< Declaration* >::iterator i = memb.begin(); i != memb.end(); i++ ) { 207 206 updateLocation( *i ); 208 output << indent;209 207 (*i)->accept( *this ); 210 208 output << ";" << endl; … … 246 244 assert( obj ); 247 245 updateLocation( obj ); 248 output << indent <<mangleName( obj );246 output << mangleName( obj ); 249 247 if ( obj->get_init() ) { 250 248 output << " = "; … … 334 332 void CodeGenerator::visit( __attribute__((unused)) ConstructorInit * init ){ 335 333 assertf( ! genC, "ConstructorInit nodes should not reach code generation." ); 336 // pseudo-output for constructor/destructor pairs 337 output << "<ctorinit>{" << std::endl << ++indent << "ctor: "; 338 maybeAccept( init->get_ctor(), *this ); 339 output << ", " << std::endl << indent << "dtor: "; 340 maybeAccept( init->get_dtor(), *this ); 341 output << std::endl << --indent << "}"; 334 // xxx - generate something reasonable for constructor/destructor pairs 335 output << "<ctorinit>"; 342 336 } 343 337 … … 353 347 if ( varExpr->get_var()->get_linkage() == LinkageSpec::Intrinsic && operatorLookup( varExpr->get_var()->get_name(), opInfo ) ) { 354 348 std::list< Expression* >::iterator arg = applicationExpr->get_args().begin(); 349 switch ( opInfo.type ) { 350 case OT_PREFIXASSIGN: 351 case OT_POSTFIXASSIGN: 352 case OT_INFIXASSIGN: 353 case OT_CTOR: 354 case OT_DTOR: 355 { 356 assert( arg != applicationExpr->get_args().end() ); 357 if ( AddressExpr * addrExpr = dynamic_cast< AddressExpr * >( *arg ) ) { 358 // remove & from first assignment/ctor argument 359 *arg = addrExpr->get_arg(); 360 } else { 361 // no address-of operator, so must be a pointer - add dereference 362 // NOTE: if the assertion starts to trigger, check that the application expr isn't being shared. 363 // Since its arguments are modified here, this assertion most commonly triggers when the application 364 // is visited multiple times. 365 UntypedExpr * newExpr = new UntypedExpr( new NameExpr( "*?" ) ); 366 newExpr->get_args().push_back( *arg ); 367 Type * type = InitTweak::getPointerBase( (*arg)->get_result() ); 368 assertf( type, "First argument to a derefence must be a pointer. Ensure that expressions are not being shared." ); 369 newExpr->set_result( type->clone() ); 370 *arg = newExpr; 371 } // if 372 break; 373 } 374 375 default: 376 // do nothing 377 ; 378 } // switch 379 355 380 switch ( opInfo.type ) { 356 381 case OT_INDEX: … … 559 584 if ( castExpr->get_result()->isVoid() ) { 560 585 output << "(void)" ; 561 } else { 562 // at least one result type of cast. 563 // Note: previously, lvalue casts were skipped. Since it's now impossible for the user to write 564 // an lvalue cast, this has been taken out. 586 } else if ( ! castExpr->get_result()->get_lvalue() ) { 587 // at least one result type of cast, but not an lvalue 565 588 output << "("; 566 589 output << genType( castExpr->get_result(), "", pretty, genC ); 567 590 output << ")"; 591 } else { 592 // otherwise, the cast is to an lvalue type, so the cast should be dropped, since the result of a cast is 593 // never an lvalue in C 568 594 } // if 569 595 castExpr->get_arg()->accept( *this ); … … 680 706 extension( commaExpr ); 681 707 output << "("; 682 if ( genC ) {683 // arg1 of a CommaExpr is never used, so it can be safely cast to void to reduce gcc warnings.684 commaExpr->set_arg1( new CastExpr( commaExpr->get_arg1() ) );685 }686 708 commaExpr->get_arg1()->accept( *this ); 687 709 output << " , "; 688 710 commaExpr->get_arg2()->accept( *this ); 689 711 output << ")"; 690 }691 692 void CodeGenerator::visit( TupleAssignExpr * tupleExpr ) {693 assertf( ! genC, "TupleAssignExpr should not reach code generation." );694 tupleExpr->stmtExpr->accept( *this );695 712 } 696 713 … … 742 759 output << "(" << genType( compLitExpr->get_result(), "", pretty, genC ) << ")"; 743 760 compLitExpr->get_initializer()->accept( *this ); 744 }745 746 void CodeGenerator::visit( UniqueExpr * unqExpr ) {747 assertf( ! genC, "Unique expressions should not reach code generation." );748 output << "unq<" << unqExpr->get_id() << ">{ ";749 unqExpr->get_expr()->accept( *this );750 output << " }";751 761 } 752 762 … … 760 770 for ( Statement * stmt : stmts ) { 761 771 updateLocation( stmt ); 762 772 output << printLabels( stmt->get_labels() ); 763 773 if ( i+1 == numStmts ) { 764 774 // last statement in a statement expression needs to be handled specially - … … 805 815 void CodeGenerator::visit( ExprStmt * exprStmt ) { 806 816 assert( exprStmt ); 817 Expression * expr = exprStmt->get_expr(); 807 818 if ( genC ) { 808 819 // cast the top-level expression to void to reduce gcc warnings. 809 expr Stmt->set_expr( new CastExpr( exprStmt->get_expr() ));820 expr = new CastExpr( expr ); 810 821 } 811 expr Stmt->get_expr()->accept( *this );822 expr->accept( *this ); 812 823 output << ";"; 813 824 } -
src/CodeGen/CodeGenerator.h
r28e58fd raf08051 74 74 virtual void visit( CommaExpr *commaExpr ); 75 75 virtual void visit( CompoundLiteralExpr *compLitExpr ); 76 virtual void visit( UniqueExpr * );77 virtual void visit( TupleAssignExpr * tupleExpr );78 76 virtual void visit( UntypedTupleExpr *tupleExpr ); 79 77 virtual void visit( TupleExpr *tupleExpr ); -
src/CodeGen/GenType.cc
r28e58fd raf08051 37 37 virtual void visit( PointerType *pointerType ); 38 38 virtual void visit( ArrayType *arrayType ); 39 virtual void visit( ReferenceType *refType );40 39 virtual void visit( StructInstType *structInst ); 41 40 virtual void visit( UnionInstType *unionInst ); … … 148 147 } 149 148 150 void GenType::visit( ReferenceType *refType ) {151 assert( refType->get_base() != 0);152 assertf( ! genC, "Reference types should not reach code generation." );153 handleQualifiers( refType );154 typeString = "&" + typeString;155 refType->get_base()->accept( *this );156 }157 158 149 void GenType::visit( FunctionType *funcType ) { 159 150 std::ostringstream os; … … 287 278 typeString = "_Atomic " + typeString; 288 279 } // if 289 if ( type->get_lvalue() && ! genC ) {290 // when not generating C code, print lvalue for debugging.291 typeString = "lvalue " + typeString;292 }293 280 } 294 281 } // namespace CodeGen -
src/CodeGen/OperatorTable.cc
r28e58fd raf08051 14 14 // 15 15 16 #include <algorithm> // for any_of 17 #include <map> // for map, _Rb_tree_const_iterator, map<>::const_iterator 18 #include <utility> // for pair 16 #include <map> // for map, _Rb_tree_const_iterator, map<>::const_iterator 17 #include <utility> // for pair 19 18 20 19 #include "OperatorTable.h" … … 94 93 } // if 95 94 } 96 97 /// determines if a given function name is one of the operator types between [begin, end)98 template<typename Iterator>99 bool isOperatorType( const std::string & funcName, Iterator begin, Iterator end ) {100 OperatorInfo info;101 if ( operatorLookup( funcName, info ) ) {102 return std::find( begin, end, info.type ) != end;103 }104 return false;105 }106 107 bool isConstructor( const std::string & funcName ) {108 static OperatorType types[] = { OT_CTOR };109 return isOperatorType( funcName, std::begin(types), std::end(types) );110 }111 112 bool isDestructor( const std::string & funcName ) {113 static OperatorType types[] = { OT_DTOR };114 return isOperatorType( funcName, std::begin(types), std::end(types) );115 }116 117 bool isAssignment( const std::string & funcName ) {118 static OperatorType types[] = { OT_PREFIXASSIGN, OT_POSTFIXASSIGN, OT_INFIXASSIGN };119 return isOperatorType( funcName, std::begin(types), std::end(types) );120 }121 122 bool isCtorDtor( const std::string & funcName ) {123 static OperatorType types[] = { OT_CTOR, OT_DTOR };124 return isOperatorType( funcName, std::begin(types), std::end(types) );125 }126 127 bool isCtorDtorAssign( const std::string & funcName ) {128 static OperatorType types[] = { OT_CTOR, OT_DTOR, OT_PREFIXASSIGN, OT_POSTFIXASSIGN, OT_INFIXASSIGN };129 return isOperatorType( funcName, std::begin(types), std::end(types) );130 }131 95 } // namespace CodeGen 132 96 -
src/CodeGen/OperatorTable.h
r28e58fd raf08051 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // OperatorTable.h -- 7 // OperatorTable.h -- 8 8 // 9 9 // Author : Richard C. Bilson … … 42 42 43 43 bool operatorLookup( std::string funcName, OperatorInfo &info ); 44 45 bool isConstructor( const std::string & );46 bool isDestructor( const std::string & );47 bool isAssignment( const std::string & );48 bool isCtorDtor( const std::string & );49 bool isCtorDtorAssign( const std::string & );50 44 } // namespace CodeGen 51 45 -
src/Common/PassVisitor.h
r28e58fd raf08051 116 116 virtual void visit( PointerType *pointerType ) override final; 117 117 virtual void visit( ArrayType *arrayType ) override final; 118 virtual void visit( ReferenceType *referenceType ) override final;119 118 virtual void visit( FunctionType *functionType ) override final; 120 119 virtual void visit( StructInstType *aggregateUseType ) override final; … … 203 202 virtual Type* mutate( PointerType *pointerType ) override final; 204 203 virtual Type* mutate( ArrayType *arrayType ) override final; 205 virtual Type* mutate( ReferenceType *referenceType ) override final;206 204 virtual Type* mutate( FunctionType *functionType ) override final; 207 205 virtual Type* mutate( StructInstType *aggregateUseType ) override final; -
src/Common/PassVisitor.impl.h
r28e58fd raf08051 792 792 793 793 template< typename pass_type > 794 void PassVisitor< pass_type >::visit( ReferenceType * node ) {795 VISIT_BODY( node );796 }797 798 template< typename pass_type >799 794 void PassVisitor< pass_type >::visit( FunctionType * node ) { 800 795 VISIT_BODY( node ); … … 1134 1129 1135 1130 template< typename pass_type > 1136 Type * PassVisitor< pass_type >::mutate( ReferenceType * node ) {1137 MUTATE_BODY( Type, node );1138 }1139 1140 template< typename pass_type >1141 1131 Type * PassVisitor< pass_type >::mutate( FunctionType * node ) { 1142 1132 MUTATE_BODY( Type, node ); -
src/Common/utility.h
r28e58fd raf08051 310 310 template< typename T1, typename T2 > 311 311 struct group_iterate_t { 312 group_iterate_t( bool skipBoundsCheck,const T1 & v1, const T2 & v2 ) : args(v1, v2) {313 assertf( skipBoundsCheck || v1.size() == v2.size(), "group iteration requires containers of the same size: <%zd, %zd>.", v1.size(), v2.size());312 group_iterate_t( const T1 & v1, const T2 & v2 ) : args(v1, v2) { 313 assertf(v1.size() == v2.size(), "group iteration requires containers of the same size."); 314 314 }; 315 315 … … 336 336 }; 337 337 338 /// performs bounds check to ensure that all arguments are of the same length.339 338 template< typename... Args > 340 339 group_iterate_t<Args...> group_iterate( Args &&... args ) { 341 return group_iterate_t<Args...>(false, std::forward<Args>( args )...); 342 } 343 344 /// does not perform a bounds check - requires user to ensure that iteration terminates when appropriate. 345 template< typename... Args > 346 group_iterate_t<Args...> unsafe_group_iterate( Args &&... args ) { 347 return group_iterate_t<Args...>(true, std::forward<Args>( args )...); 340 return group_iterate_t<Args...>(std::forward<Args>( args )...); 348 341 } 349 342 -
src/Concurrency/Keywords.cc
r28e58fd raf08051 21 21 #include "Common/SemanticError.h" // for SemanticError 22 22 #include "Common/utility.h" // for deleteAll, map_range 23 #include "CodeGen/OperatorTable.h" // for isConstructor 24 #include "InitTweak/InitTweak.h" // for getPointerBase 23 #include "InitTweak/InitTweak.h" // for isConstructor 25 24 #include "Parser/LinkageSpec.h" // for Cforall 26 25 #include "SymTab/AddVisit.h" // for acceptAndAdd … … 290 289 LinkageSpec::Cforall, 291 290 nullptr, 292 new ReferenceType(291 new PointerType( 293 292 noQualifiers, 294 293 new StructInstType( … … 446 445 447 446 //Makes sure it's not a copy 448 ReferenceType* rty = dynamic_cast< ReferenceType * >( ty );449 if( ! rty ) throw SemanticError( "Mutex argument must be ofreference type ", arg );447 PointerType* pty = dynamic_cast< PointerType * >( ty ); 448 if( ! pty ) throw SemanticError( "Mutex argument must be of pointer/reference type ", arg ); 450 449 451 450 //Make sure the we are pointing directly to a type 452 Type* base = rty->get_base(); 453 if( dynamic_cast< ReferenceType * >( base ) ) throw SemanticError( "Mutex argument have exactly one level of indirection ", arg ); 454 if( dynamic_cast< PointerType * >( base ) ) throw SemanticError( "Mutex argument have exactly one level of indirection ", arg ); 451 Type* base = pty->get_base(); 452 if( dynamic_cast< PointerType * >( base ) ) throw SemanticError( "Mutex argument have exactly one level of indirection ", arg ); 455 453 456 454 //Make sure that typed isn't mutex … … 522 520 Visitor::visit(decl); 523 521 524 if( ! CodeGen::isConstructor(decl->get_name()) ) return;522 if( ! InitTweak::isConstructor(decl->get_name()) ) return; 525 523 526 524 DeclarationWithType * param = decl->get_functionType()->get_parameters().front(); 527 auto type = dynamic_cast< StructInstType * >( InitTweak::getPointerBase( param->get_type() ) ); 525 auto ptr = dynamic_cast< PointerType * >( param->get_type() ); 526 // if( ptr ) std::cerr << "FRED1" << std::endl; 527 auto type = dynamic_cast< StructInstType * >( ptr->get_base() ); 528 528 // if( type ) std::cerr << "FRED2" << std::endl; 529 529 if( type && type->get_baseStruct()->is_thread() ) { -
src/GenPoly/Box.cc
r28e58fd raf08051 25 25 26 26 #include "Box.h" 27 28 #include "CodeGen/OperatorTable.h"29 27 #include "Common/ScopedMap.h" // for ScopedMap, ScopedMap<>::iter... 30 28 #include "Common/SemanticError.h" // for SemanticError … … 566 564 // To compound the issue, the right side can be *x, etc. because of lvalue-returning functions 567 565 if ( UntypedExpr * assign = dynamic_cast< UntypedExpr * >( commaExpr->get_arg1() ) ) { 568 if ( CodeGen::isAssignment( InitTweak::getFunctionName( assign ) ) ) {566 if ( InitTweak::isAssignment( InitTweak::getFunctionName( assign ) ) ) { 569 567 assert( assign->get_args().size() == 2 ); 570 568 if ( ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * > ( assign->get_args().back() ) ) { … … 606 604 } 607 605 } else { 608 throw SemanticError( "Cannot pass non-struct type for generic struct : ", argBaseType);606 throw SemanticError( "Cannot pass non-struct type for generic struct" ); 609 607 } 610 608 } … … 1021 1019 } // if 1022 1020 if ( baseType1 || baseType2 ) { 1023 delete ret->get_result();1024 1021 ret->set_result( appExpr->get_result()->clone() ); 1025 1022 if ( appExpr->get_env() ) { … … 1035 1032 assert( ! appExpr->get_args().empty() ); 1036 1033 if ( isPolyType( appExpr->get_result(), scopeTyVars, env ) ) { 1037 // remove dereference from polymorphic types since they are boxed.1038 1034 Expression *ret = appExpr->get_args().front(); 1039 // fix expr type to remove pointer1040 1035 delete ret->get_result(); 1041 1036 ret->set_result( appExpr->get_result()->clone() ); … … 1127 1122 1128 1123 assert( appExpr->get_function()->has_result() ); 1129 FunctionType * function = getFunctionType( appExpr->get_function()->get_result() );1130 assertf( function, "ApplicationExpr has non-function type: %s", toString( appExpr->get_function()->get_result() ).c_str() );1124 PointerType *pointer = safe_dynamic_cast< PointerType *>( appExpr->get_function()->get_result() ); 1125 FunctionType *function = safe_dynamic_cast< FunctionType *>( pointer->get_base() ); 1131 1126 1132 1127 if ( Expression *newExpr = handleIntrinsics( appExpr ) ) { … … 1205 1200 if ( ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * >( expr->get_args().front() ) ) { 1206 1201 assert( appExpr->get_function()->has_result() ); 1207 FunctionType *function = getFunctionType( appExpr->get_function()->get_result() );1208 assert( function);1202 PointerType *pointer = safe_dynamic_cast< PointerType *>( appExpr->get_function()->get_result() ); 1203 FunctionType *function = safe_dynamic_cast< FunctionType *>( pointer->get_base() ); 1209 1204 needs = needsAdapter( function, scopeTyVars ); 1210 1205 } // if … … 1215 1210 // isPolyType check needs to happen before mutating addrExpr arg, so pull it forward 1216 1211 // out of the if condition. 1212 bool polytype = isPolyType( addrExpr->get_arg()->get_result(), scopeTyVars, env ); 1217 1213 addrExpr->set_arg( mutateExpression( addrExpr->get_arg() ) ); 1218 // ... but must happen after mutate, since argument might change (e.g. intrinsic *?, ?[?]) - re-evaluate above comment1219 bool polytype = isPolyType( addrExpr->get_arg()->get_result(), scopeTyVars, env );1220 1214 if ( polytype || needs ) { 1221 1215 Expression *ret = addrExpr->get_arg(); … … 1284 1278 if ( adaptersDone.find( mangleName ) == adaptersDone.end() ) { 1285 1279 std::string adapterName = makeAdapterName( mangleName ); 1286 // adapter may not be used in body, pass along with unused attribute. 1287 paramList.push_front( new ObjectDecl( adapterName, Type::StorageClasses(), LinkageSpec::C, 0, new PointerType( Type::Qualifiers(), makeAdapterType( *funType, scopeTyVars ) ), 0, { new Attribute( "unused" ) } ) ); 1280 paramList.push_front( new ObjectDecl( adapterName, Type::StorageClasses(), LinkageSpec::C, 0, new PointerType( Type::Qualifiers(), makeAdapterType( *funType, scopeTyVars ) ), 0 ) ); 1288 1281 adaptersDone.insert( adaptersDone.begin(), mangleName ); 1289 1282 } … … 1391 1384 std::list< DeclarationWithType *>::iterator last = funcType->get_parameters().begin(); 1392 1385 std::list< DeclarationWithType *> inferredParams; 1393 // size/align/offset parameters may not be used in body, pass along with unused attribute. 1394 ObjectDecl newObj( "", Type::StorageClasses(), LinkageSpec::C, 0, new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), 0, 1395 { new Attribute( "unused" ) } ); 1386 ObjectDecl newObj( "", Type::StorageClasses(), LinkageSpec::C, 0, new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), 0 ); 1396 1387 ObjectDecl newPtr( "", Type::StorageClasses(), LinkageSpec::C, 0, 1397 1388 new PointerType( Type::Qualifiers(), new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) ), 0 ); … … 1416 1407 for ( std::list< DeclarationWithType *>::iterator assert = (*tyParm)->get_assertions().begin(); assert != (*tyParm)->get_assertions().end(); ++assert ) { 1417 1408 // *assert = (*assert)->acceptMutator( *this ); 1418 // assertion parameters may not be used in body, pass along with unused attribute.1419 (*assert)->get_attributes().push_back( new Attribute( "unused" ) );1420 1409 inferredParams.push_back( *assert ); 1421 1410 } -
src/GenPoly/InstantiateGeneric.cc
r28e58fd raf08051 162 162 /// Should not make use of type environment to replace types of function parameter and return values. 163 163 bool inFunctionType = false; 164 /// Index of current member, used to recreate MemberExprs with the member from an instantiation165 int memberIndex = -1;166 164 GenericInstantiator() : instantiations(), dtypeStatics(), typeNamer("_conc_") {} 167 165 … … 169 167 Type* postmutate( UnionInstType *inst ); 170 168 171 // fix MemberExprs to use the member from the instantiation 172 void premutate( MemberExpr * memberExpr ); 173 Expression * postmutate( MemberExpr * memberExpr ); 174 175 void premutate( FunctionType * ) { 169 void premutate( __attribute__((unused)) FunctionType * ftype ) { 176 170 GuardValue( inFunctionType ); 177 171 inFunctionType = true; … … 420 414 } 421 415 422 namespace {423 bool isGenericType( Type * t ) {424 if ( StructInstType * inst = dynamic_cast< StructInstType * >( t ) ) {425 return ! inst->parameters.empty();426 } else if ( UnionInstType * inst = dynamic_cast< UnionInstType * >( t ) ) {427 return ! inst->parameters.empty();428 }429 return false;430 }431 432 AggregateDecl * getAggr( Type * t ) {433 if ( StructInstType * inst = dynamic_cast< StructInstType * >( t ) ) {434 return inst->baseStruct;435 } else if ( UnionInstType * inst = dynamic_cast< UnionInstType * >( t ) ) {436 return inst->baseUnion;437 }438 assertf( false, "Non-aggregate type: %s", toString( t ).c_str() );439 }440 }441 442 void GenericInstantiator::premutate( MemberExpr * memberExpr ) {443 GuardValue( memberIndex );444 memberIndex = -1;445 if ( isGenericType( memberExpr->aggregate->result ) ) {446 // find the location of the member447 AggregateDecl * aggr = getAggr( memberExpr->aggregate->result );448 std::list< Declaration * > & members = aggr->members;449 memberIndex = std::distance( members.begin(), std::find( members.begin(), members.end(), memberExpr->member ) );450 assertf( memberIndex < (int)members.size(), "Could not find member %s in generic type %s", toString( memberExpr->member ).c_str(), toString( memberExpr->aggregate ).c_str() );451 }452 }453 454 Expression * GenericInstantiator::postmutate( MemberExpr * memberExpr ) {455 if ( memberIndex != -1 ) {456 // using the location from the generic type, find the member in the instantiation and rebuild the member expression457 AggregateDecl * aggr = getAggr( memberExpr->aggregate->result );458 assertf( memberIndex < (int)aggr->members.size(), "Instantiation somehow has fewer members than the generic type." );459 Declaration * member = *std::next( aggr->members.begin(), memberIndex );460 assertf( member->name == memberExpr->member->name, "Instantiation has different member order than the generic type. %s / %s", toString( member ).c_str(), toString( memberExpr->member ).c_str() );461 DeclarationWithType * field = safe_dynamic_cast< DeclarationWithType * >( member );462 MemberExpr * ret = new MemberExpr( field, memberExpr->aggregate->clone() );463 std::swap( ret->env, memberExpr->env );464 delete memberExpr;465 return ret;466 }467 return memberExpr;468 }469 470 416 void GenericInstantiator::beginScope() { 471 417 instantiations.beginScope(); -
src/GenPoly/Lvalue.cc
r28e58fd raf08051 17 17 #include <string> // for string 18 18 19 #include "Common/PassVisitor.h"20 19 #include "Common/SemanticError.h" // for SemanticError 21 20 #include "GenPoly.h" // for isPolyType 22 21 #include "Lvalue.h" 23 24 22 #include "Parser/LinkageSpec.h" // for Spec, isBuiltin, Intrinsic 25 23 #include "ResolvExpr/TypeEnvironment.h" // for AssertionSet, OpenVarSet 26 24 #include "ResolvExpr/Unify.h" // for unify 27 #include "ResolvExpr/typeops.h"28 #include "SymTab/Autogen.h"29 25 #include "SymTab/Indexer.h" // for Indexer 30 26 #include "SynTree/Declaration.h" // for Declaration, FunctionDecl … … 35 31 #include "SynTree/Visitor.h" // for Visitor, acceptAll 36 32 37 #if 038 #define PRINT(x) x39 #else40 #define PRINT(x)41 #endif42 43 33 namespace GenPoly { 44 34 namespace { 45 // TODO: fold this into the general createDeref function?? 46 Expression * mkDeref( Expression * arg ) { 47 if ( SymTab::dereferenceOperator ) { 48 VariableExpr * deref = new VariableExpr( SymTab::dereferenceOperator ); 49 deref->set_result( new PointerType( Type::Qualifiers(), deref->get_result() ) ); 50 Type * base = InitTweak::getPointerBase( arg->get_result() ); 51 assertf( base, "expected pointer type in dereference (type was %s)", toString( arg->get_result() ).c_str() ); 52 ApplicationExpr * ret = new ApplicationExpr( deref, { arg } ); 53 delete ret->get_result(); 54 ret->set_result( base->clone() ); 55 ret->get_result()->set_lvalue( true ); 56 return ret; 57 } else { 58 return UntypedExpr::createDeref( arg ); 59 } 60 } 61 62 struct ReferenceConversions final { 63 Expression * postmutate( CastExpr * castExpr ); 64 Expression * postmutate( AddressExpr * addrExpr ); 35 /// Replace uses of lvalue returns with appropriate pointers 36 class Pass1 : public Mutator { 37 public: 38 Pass1(); 39 40 virtual Expression *mutate( ApplicationExpr *appExpr ); 41 virtual Statement *mutate( ReturnStmt *appExpr ); 42 virtual DeclarationWithType *mutate( FunctionDecl *funDecl ); 43 private: 44 DeclarationWithType* retval; 65 45 }; 66 46 67 /// Intrinsic functions that take reference parameters don't REALLY take reference parameters -- their reference arguments must always be implicitly dereferenced. 68 struct FixIntrinsicArgs final { 69 Expression * postmutate( ApplicationExpr * appExpr ); 70 }; 71 72 struct FixIntrinsicResult final : public WithGuards { 73 Expression * postmutate( ApplicationExpr * appExpr ); 74 void premutate( FunctionDecl * funcDecl ); 75 bool inIntrinsic = false; 76 }; 77 78 /// Replace reference types with pointer types 79 struct ReferenceTypeElimination final { 80 Type * postmutate( ReferenceType * refType ); 47 /// Replace declarations of lvalue returns with appropriate pointers 48 class Pass2 : public Visitor { 49 public: 50 virtual void visit( FunctionType *funType ); 51 private: 81 52 }; 82 53 … … 84 55 /// https://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Lvalues.html#Lvalues 85 56 /// Replaces &(a,b) with (a, &b), &(a ? b : c) with (a ? &b : &c) 86 struct GeneralizedLvalue final : public WithVisitorRef<GeneralizedLvalue> { 87 Expression * postmutate( AddressExpr * addressExpr ); 88 Expression * postmutate( MemberExpr * memExpr ); 57 class GeneralizedLvalue : public Mutator { 58 typedef Mutator Parent; 59 60 virtual Expression * mutate( MemberExpr * memExpr ); 61 virtual Expression * mutate( AddressExpr * addressExpr ); 89 62 90 63 template<typename Func> 91 64 Expression * applyTransformation( Expression * expr, Expression * arg, Func mkExpr ); 92 65 }; 93 94 /// Removes redundant &*/*& pattern that this pass can generate95 struct CollapseAddrDeref final {96 Expression * postmutate( AddressExpr * addressExpr );97 Expression * postmutate( ApplicationExpr * appExpr );98 };99 100 struct AddrRef final : public WithGuards {101 void premutate( AddressExpr * addrExpr );102 Expression * postmutate( AddressExpr * addrExpr );103 void premutate( Expression * expr );104 105 bool first = true;106 bool current = false;107 int refDepth = 0;108 };109 66 } // namespace 110 67 111 static bool referencesEliminated = false; 112 // used by UntypedExpr::createDeref to determine whether result type of dereference should be ReferenceType or value type. 113 bool referencesPermissable() { 114 return ! referencesEliminated; 68 void convertLvalue( std::list< Declaration* >& translationUnit ) { 69 Pass1 p1; 70 Pass2 p2; 71 GeneralizedLvalue genLval; 72 mutateAll( translationUnit, p1 ); 73 acceptAll( translationUnit, p2 ); 74 mutateAll( translationUnit, genLval ); 115 75 } 116 76 117 void convertLvalue( std::list< Declaration* >& translationUnit ) {118 PassVisitor<ReferenceConversions> refCvt;119 PassVisitor<ReferenceTypeElimination> elim;120 PassVisitor<GeneralizedLvalue> genLval;121 PassVisitor<FixIntrinsicArgs> fixer;122 PassVisitor<CollapseAddrDeref> collapser;123 PassVisitor<AddrRef> addrRef;124 PassVisitor<FixIntrinsicResult> intrinsicResults;125 mutateAll( translationUnit, intrinsicResults );126 mutateAll( translationUnit, addrRef );127 mutateAll( translationUnit, refCvt );128 mutateAll( translationUnit, fixer );129 mutateAll( translationUnit, collapser );130 mutateAll( translationUnit, genLval );131 mutateAll( translationUnit, elim ); // last because other passes need reference types to work132 133 // from this point forward, no other pass should create reference types.134 referencesEliminated = true;135 }136 137 77 Expression * generalizedLvalue( Expression * expr ) { 138 PassVisitor<GeneralizedLvalue>genLval;78 GeneralizedLvalue genLval; 139 79 return expr->acceptMutator( genLval ); 140 80 } 141 81 142 82 namespace { 143 // true for intrinsic function calls that return a reference 144 bool isIntrinsicReference( Expression * expr ) { 145 if ( UntypedExpr * untyped = dynamic_cast< UntypedExpr * >( expr ) ) { 146 std::string fname = InitTweak::getFunctionName( untyped ); 147 // known intrinsic-reference prelude functions 148 return fname == "*?" || fname == "?[?]"; 149 } else if ( ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * > ( expr ) ) { 150 if ( DeclarationWithType * func = InitTweak::getFunction( appExpr ) ) { 151 // use type of return variable rather than expr result type, since it may have been changed to a pointer type 152 FunctionType * ftype = GenPoly::getFunctionType( func->get_type() ); 153 Type * ret = ftype->get_returnVals().empty() ? nullptr : ftype->get_returnVals().front()->get_type(); 154 return func->get_linkage() == LinkageSpec::Intrinsic && dynamic_cast<ReferenceType *>( ret ); 83 Type* isLvalueRet( FunctionType *function ) { 84 if ( function->get_returnVals().empty() ) return 0; 85 Type *ty = function->get_returnVals().front()->get_type(); 86 return ty->get_lvalue() ? ty : 0; 87 } 88 89 bool isIntrinsicApp( ApplicationExpr *appExpr ) { 90 if ( VariableExpr *varExpr = dynamic_cast< VariableExpr* >( appExpr->get_function() ) ) { 91 return varExpr->get_var()->get_linkage() == LinkageSpec::Intrinsic; 92 } else { 93 return false; 94 } // if 95 } 96 97 Pass1::Pass1() { 98 } 99 100 DeclarationWithType * Pass1::mutate( FunctionDecl *funcDecl ) { 101 if ( funcDecl->get_statements() ) { 102 DeclarationWithType* oldRetval = retval; 103 retval = 0; 104 if ( ! LinkageSpec::isBuiltin( funcDecl->get_linkage() ) && isLvalueRet( funcDecl->get_functionType() ) ) { 105 retval = funcDecl->get_functionType()->get_returnVals().front(); 155 106 } 156 } 157 return false; 158 } 159 160 Expression * FixIntrinsicResult::postmutate( ApplicationExpr * appExpr ) { 161 if ( isIntrinsicReference( appExpr ) ) { 162 // eliminate reference types from intrinsic applications - now they return lvalues 163 Type * result = appExpr->get_result(); 164 appExpr->set_result( result->stripReferences()->clone() ); 165 appExpr->get_result()->set_lvalue( true ); 166 if ( ! inIntrinsic ) { 167 // when not in an intrinsic function, add a cast to 168 // don't add cast when in an intrinsic function, since they already have the cast 169 Expression * ret = new CastExpr( appExpr, result ); 170 ret->set_env( appExpr->get_env() ); 171 appExpr->set_env( nullptr ); 172 return ret; 107 // fix expressions and return statements in this function 108 funcDecl->set_statements( funcDecl->get_statements()->acceptMutator( *this ) ); 109 retval = oldRetval; 110 } // if 111 return funcDecl; 112 } 113 114 Expression * Pass1::mutate( ApplicationExpr *appExpr ) { 115 appExpr->get_function()->acceptMutator( *this ); 116 mutateAll( appExpr->get_args(), *this ); 117 118 PointerType *pointer = safe_dynamic_cast< PointerType* >( appExpr->get_function()->get_result() ); 119 FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() ); 120 121 Type *funType = isLvalueRet( function ); 122 if ( funType && ! isIntrinsicApp( appExpr ) ) { 123 Expression *expr = appExpr; 124 Type *appType = appExpr->get_result(); 125 if ( isPolyType( funType ) && ! isPolyType( appType ) ) { 126 // make sure cast for polymorphic type is inside dereference 127 expr = new CastExpr( appExpr, new PointerType( Type::Qualifiers(), appType->clone() ) ); 173 128 } 174 delete result; 175 } 176 return appExpr; 177 } 178 179 void FixIntrinsicResult::premutate( FunctionDecl * funcDecl ) { 180 GuardValue( inIntrinsic ); 181 inIntrinsic = funcDecl->linkage == LinkageSpec::Intrinsic; 182 } 183 184 Expression * FixIntrinsicArgs::postmutate( ApplicationExpr * appExpr ) { 185 // intrinsic functions don't really take reference-typed parameters, so they require an implicit dereference on their arguments. 186 if ( DeclarationWithType * function = InitTweak::getFunction( appExpr ) ) { 187 FunctionType * ftype = GenPoly::getFunctionType( function->get_type() ); 188 assertf( ftype, "Function declaration does not have function type." ); 189 // can be of differing lengths only when function is variadic 190 assertf( ftype->get_parameters().size() == appExpr->get_args().size() || ftype->get_isVarArgs(), "ApplicationExpr args do not match formal parameter type." ); 191 192 193 unsigned int i = 0; 194 const unsigned int end = ftype->get_parameters().size(); 195 for ( auto p : unsafe_group_iterate( appExpr->get_args(), ftype->get_parameters() ) ) { 196 if (i == end) break; 197 Expression *& arg = std::get<0>( p ); 198 Type * formal = std::get<1>( p )->get_type(); 199 PRINT( 200 std::cerr << "pair<0>: " << arg << std::endl; 201 std::cerr << "pair<1>: " << formal << std::endl; 202 ) 203 if ( dynamic_cast<ReferenceType*>( formal ) ) { 204 if ( isIntrinsicReference( arg ) ) { // do not combine conditions, because that changes the meaning of the else if 205 if ( function->get_linkage() != LinkageSpec::Intrinsic ) { // intrinsic functions that turn pointers into references 206 // if argument is dereference or array subscript, the result isn't REALLY a reference, so it's not necessary to fix the argument 207 PRINT( 208 std::cerr << "===is intrinsic arg in non-intrinsic call - adding address" << std::endl; 209 ) 210 arg = new AddressExpr( arg ); 211 } 212 } else if ( function->get_linkage() == LinkageSpec::Intrinsic ) { 213 // std::cerr << "===adding deref to arg" << std::endl; 214 // if the parameter is a reference, add a dereference to the reference-typed argument. 215 Type * baseType = InitTweak::getPointerBase( arg->get_result() ); 216 assertf( baseType, "parameter is reference, arg must be pointer or reference: %s", toString( arg->get_result() ).c_str() ); 217 PointerType * ptrType = new PointerType( Type::Qualifiers(), baseType->clone() ); 218 delete arg->get_result(); 219 arg->set_result( ptrType ); 220 arg = mkDeref( arg ); 221 } 222 } 223 ++i; 224 } 225 } 226 return appExpr; 227 } 228 229 // idea: &&&E: get outer &, inner & 230 // at inner &, record depth D of reference type 231 // at outer &, add D derefs. 232 void AddrRef::premutate( Expression * ) { 233 GuardValue( current ); 234 GuardValue( first ); 235 current = false; 236 first = true; 237 } 238 239 void AddrRef::premutate( AddressExpr * ) { 240 GuardValue( current ); 241 GuardValue( first ); 242 current = first; 243 first = false; 244 if ( current ) { 245 GuardValue( refDepth ); 246 refDepth = 0; 247 } 248 } 249 250 Expression * AddrRef::postmutate( AddressExpr * addrExpr ) { 251 if ( refDepth == 0 ) { 252 if ( ! isIntrinsicReference( addrExpr->get_arg() ) ) { 253 // try to avoid ?[?] 254 refDepth = addrExpr->get_arg()->get_result()->referenceDepth(); 255 } 256 } 257 if ( current ) { 258 Expression * ret = addrExpr; 259 while ( refDepth ) { 260 ret = mkDeref( ret ); 261 refDepth--; 262 } 263 return ret; 264 } 265 return addrExpr; 266 } 267 268 Expression * ReferenceConversions::postmutate( AddressExpr * addrExpr ) { 269 // Inner expression may have been lvalue to reference conversion, which becomes an address expression. 270 // In this case, remove the outer address expression and return the argument. 271 // TODO: It's possible that this might catch too much and require a more sophisticated check. 272 return addrExpr; 273 } 274 275 Expression * ReferenceConversions::postmutate( CastExpr * castExpr ) { 276 // xxx - is it possible to convert directly between reference types with a different base? E.g., 277 // int x; 278 // (double&)x; 279 // At the moment, I am working off of the assumption that this is illegal, thus the cast becomes redundant 280 // after this pass, so trash the cast altogether. If that changes, care must be taken to insert the correct 281 // pointer casts in the right places. 282 283 // conversion to reference type 284 if ( ReferenceType * refType = dynamic_cast< ReferenceType * >( castExpr->get_result() ) ) { 285 (void)refType; 286 if ( ReferenceType * otherRef = dynamic_cast< ReferenceType * >( castExpr->get_arg()->get_result() ) ) { 287 // nothing to do if casting from reference to reference. 288 (void)otherRef; 289 PRINT( std::cerr << "convert reference to reference -- nop" << std::endl; ) 290 if ( isIntrinsicReference( castExpr->get_arg() ) ) { 291 Expression * callExpr = castExpr->get_arg(); 292 PRINT( 293 std::cerr << "but arg is deref -- &" << std::endl; 294 std::cerr << callExpr << std::endl; 295 ) 296 callExpr = new AddressExpr( callExpr ); // this doesn't work properly for multiple casts 297 delete callExpr->get_result(); 298 callExpr->set_result( refType->clone() ); 299 // move environment out to new top-level 300 callExpr->set_env( castExpr->get_env() ); 301 castExpr->set_arg( nullptr ); 302 castExpr->set_env( nullptr ); 303 delete castExpr; 304 return callExpr; 305 } 306 int depth1 = refType->referenceDepth(); 307 int depth2 = otherRef->referenceDepth(); 308 int diff = depth1-depth2; 309 if ( diff == 0 ) { 310 assertf( depth1 == depth2, "non-intrinsic reference with cast of reference to reference not yet supported: %d %d %s", depth1, depth2, toString( castExpr ).c_str() ); 311 PRINT( std::cerr << castExpr << std::endl; ) 312 return castExpr; 313 } else if ( diff < 0 ) { 314 Expression * ret = castExpr->get_arg(); 315 for ( int i = 0; i < diff; ++i ) { 316 ret = mkDeref( ret ); 317 } 318 ret->set_env( castExpr->get_env() ); 319 delete ret->get_result(); 320 ret->set_result( castExpr->get_result() ); 321 castExpr->set_env( nullptr ); 322 castExpr->set_arg( nullptr ); 323 castExpr->set_result( nullptr ); 324 delete castExpr; 325 return ret; 326 } else if ( diff > 0 ) { 327 Expression * ret = castExpr->get_arg(); 328 for ( int i = 0; i < diff; ++i ) { 329 ret = new AddressExpr( ret ); 330 } 331 ret->set_env( castExpr->get_env() ); 332 delete ret->get_result(); 333 ret->set_result( castExpr->get_result() ); 334 castExpr->set_env( nullptr ); 335 castExpr->set_arg( nullptr ); 336 castExpr->set_result( nullptr ); 337 delete castExpr; 338 return ret; 339 } 340 341 assertf( depth1 == depth2, "non-intrinsic reference with cast of reference to reference not yet supported: %d %d %s", depth1, depth2, toString( castExpr ).c_str() ); 342 PRINT( std::cerr << castExpr << std::endl; ) 343 return castExpr; 344 } else if ( castExpr->get_arg()->get_result()->get_lvalue() ) { 345 // conversion from lvalue to reference 346 // xxx - keep cast, but turn into pointer cast?? 347 // xxx - memory 348 PRINT( 349 std::cerr << "convert lvalue to reference -- &" << std::endl; 350 std::cerr << castExpr->get_arg() << std::endl; 351 ) 352 AddressExpr * ret = new AddressExpr( castExpr->get_arg() ); 353 if ( refType->get_base()->get_qualifiers() != castExpr->get_arg()->get_result()->get_qualifiers() ) { 354 // must keep cast if cast-to type is different from the actual type 355 castExpr->set_arg( ret ); 356 return castExpr; 357 } 358 ret->set_env( castExpr->get_env() ); 359 delete ret->get_result(); 360 ret->set_result( castExpr->get_result() ); 361 castExpr->set_env( nullptr ); 362 castExpr->set_arg( nullptr ); 363 castExpr->set_result( nullptr ); 364 delete castExpr; 365 return ret; 129 UntypedExpr *deref = new UntypedExpr( new NameExpr( "*?" ) ); 130 deref->set_result( appType->clone() ); 131 appExpr->set_result( new PointerType( Type::Qualifiers(), appType ) ); 132 deref->get_args().push_back( expr ); 133 return deref; 134 } else { 135 return appExpr; 136 } // if 137 } 138 139 Statement * Pass1::mutate(ReturnStmt *retStmt) { 140 if ( retval && retStmt->get_expr() ) { 141 if ( retStmt->get_expr()->get_result()->get_lvalue() ) { 142 // ***** Code Removal ***** because casts may be stripped already 143 144 // strip casts because not allowed to take address of cast 145 // while ( CastExpr *castExpr = dynamic_cast< CastExpr* >( retStmt->get_expr() ) ) { 146 // retStmt->set_expr( castExpr->get_arg() ); 147 // retStmt->get_expr()->set_env( castExpr->get_env() ); 148 // castExpr->set_env( 0 ); 149 // castExpr->set_arg( 0 ); 150 // delete castExpr; 151 // } // while 152 retStmt->set_expr( new AddressExpr( retStmt->get_expr()->acceptMutator( *this ) ) ); 366 153 } else { 367 // rvalue to reference conversion -- introduce temporary 368 } 369 assertf( false, "Only conversions to reference from lvalue are currently supported: %s", toString( castExpr ).c_str() ); 370 } else if ( ReferenceType * refType = dynamic_cast< ReferenceType * >( castExpr->get_arg()->get_result() ) ) { 371 (void)refType; 372 // conversion from reference to rvalue 373 PRINT( 374 std::cerr << "convert reference to rvalue -- *" << std::endl; 375 std::cerr << "was = " << castExpr << std::endl; 376 ) 377 Expression * ret = castExpr->get_arg(); 378 TypeSubstitution * env = castExpr->get_env(); 379 castExpr->set_env( nullptr ); 380 if ( ! isIntrinsicReference( ret ) ) { 381 // dereference if not already dereferenced 382 ret = mkDeref( ret ); 383 } 384 if ( ResolvExpr::typesCompatibleIgnoreQualifiers( castExpr->get_result(), castExpr->get_arg()->get_result()->stripReferences(), SymTab::Indexer() ) ) { 385 // can remove cast if types are compatible, changing expression type to value type 386 ret->set_result( castExpr->get_result()->clone() ); 387 castExpr->set_arg( nullptr ); 388 delete castExpr; 389 } else { 390 // must keep cast if types are different 391 castExpr->set_arg( ret ); 392 ret = castExpr; 393 } 394 ret->set_env( env ); 395 PRINT( std::cerr << "now: " << ret << std::endl; ) 396 return ret; 397 } 398 return castExpr; 399 } 400 401 Type * ReferenceTypeElimination::postmutate( ReferenceType * refType ) { 402 Type * base = refType->get_base(); 403 Type::Qualifiers qualifiers = refType->get_qualifiers(); 404 refType->set_base( nullptr ); 405 delete refType; 406 return new PointerType( qualifiers, base ); 154 throw SemanticError( "Attempt to return non-lvalue from an lvalue-qualified function" ); 155 } // if 156 } // if 157 return retStmt; 158 } 159 160 void Pass2::visit( FunctionType *funType ) { 161 std::string typeName; 162 if ( isLvalueRet( funType ) ) { 163 DeclarationWithType *retParm = funType->get_returnVals().front(); 164 165 // make a new parameter that is a pointer to the type of the old return value 166 retParm->set_type( new PointerType( Type::Qualifiers(), retParm->get_type() ) ); 167 } // if 168 169 Visitor::visit( funType ); 407 170 } 408 171 … … 412 175 Expression * arg1 = commaExpr->get_arg1()->clone(); 413 176 Expression * arg2 = commaExpr->get_arg2()->clone(); 414 Expression * ret = new CommaExpr( arg1, mkExpr( arg2 ) ->acceptMutator( *visitor ));177 Expression * ret = new CommaExpr( arg1, mkExpr( arg2 ) ); 415 178 ret->set_env( expr->get_env() ); 416 179 expr->set_env( nullptr ); 417 180 delete expr; 418 return ret ;181 return ret->acceptMutator( *this ); 419 182 } else if ( ConditionalExpr * condExpr = dynamic_cast< ConditionalExpr * >( arg ) ) { 420 183 Expression * arg1 = condExpr->get_arg1()->clone(); 421 184 Expression * arg2 = condExpr->get_arg2()->clone(); 422 185 Expression * arg3 = condExpr->get_arg3()->clone(); 423 ConditionalExpr * ret = new ConditionalExpr( arg1, mkExpr( arg2 ) ->acceptMutator( *visitor ), mkExpr( arg3 )->acceptMutator( *visitor) );186 ConditionalExpr * ret = new ConditionalExpr( arg1, mkExpr( arg2 ), mkExpr( arg3 ) ); 424 187 ret->set_env( expr->get_env() ); 425 188 expr->set_env( nullptr ); … … 434 197 unify( ret->get_arg2()->get_result(), ret->get_arg3()->get_result(), newEnv, needAssertions, haveAssertions, openVars, SymTab::Indexer(), commonType ); 435 198 ret->set_result( commonType ? commonType : ret->get_arg2()->get_result()->clone() ); 436 return ret ;199 return ret->acceptMutator( *this ); 437 200 } 438 201 return expr; 439 202 } 440 203 441 Expression * GeneralizedLvalue::postmutate( MemberExpr * memExpr ) { 204 Expression * GeneralizedLvalue::mutate( MemberExpr * memExpr ) { 205 Parent::mutate( memExpr ); 442 206 return applyTransformation( memExpr, memExpr->get_aggregate(), [=]( Expression * aggr ) { return new MemberExpr( memExpr->get_member(), aggr ); } ); 443 207 } 444 208 445 Expression * GeneralizedLvalue::postmutate( AddressExpr * addrExpr ) { 209 Expression * GeneralizedLvalue::mutate( AddressExpr * addrExpr ) { 210 addrExpr = safe_dynamic_cast< AddressExpr * >( Parent::mutate( addrExpr ) ); 446 211 return applyTransformation( addrExpr, addrExpr->get_arg(), []( Expression * arg ) { return new AddressExpr( arg ); } ); 447 }448 449 Expression * CollapseAddrDeref::postmutate( AddressExpr * addrExpr ) {450 Expression * arg = addrExpr->get_arg();451 if ( isIntrinsicReference( arg ) ) {452 std::string fname = InitTweak::getFunctionName( arg );453 if ( fname == "*?" ) {454 Expression *& arg0 = InitTweak::getCallArg( arg, 0 );455 Expression * ret = arg0;456 ret->set_env( addrExpr->get_env() );457 arg0 = nullptr;458 addrExpr->set_env( nullptr );459 delete addrExpr;460 return ret;461 }462 }463 return addrExpr;464 }465 466 Expression * CollapseAddrDeref::postmutate( ApplicationExpr * appExpr ) {467 if ( isIntrinsicReference( appExpr ) ) {468 std::string fname = InitTweak::getFunctionName( appExpr );469 if ( fname == "*?" ) {470 Expression * arg = InitTweak::getCallArg( appExpr, 0 );471 // xxx - this isn't right, because it can remove casts that should be there...472 // while ( CastExpr * castExpr = dynamic_cast< CastExpr * >( arg ) ) {473 // arg = castExpr->get_arg();474 // }475 if ( AddressExpr * addrExpr = dynamic_cast< AddressExpr * >( arg ) ) {476 Expression * ret = addrExpr->get_arg();477 ret->set_env( appExpr->get_env() );478 addrExpr->set_arg( nullptr );479 appExpr->set_env( nullptr );480 delete appExpr;481 return ret;482 }483 }484 }485 return appExpr;486 212 } 487 213 } // namespace -
src/GenPoly/Lvalue.h
r28e58fd raf08051 25 25 void convertLvalue( std::list< Declaration* >& translationUnit ); 26 26 27 /// true after reference types have been eliminated from the source code. After this point, reference types should not be added to the AST.28 bool referencesPermissable();29 30 27 /// applies transformations that allow GCC to accept more complicated lvalue expressions, e.g. &(a, b) 31 28 Expression * generalizedLvalue( Expression * expr ); -
src/GenPoly/Specialize.cc
r28e58fd raf08051 131 131 // conversion of 0 (null) to function type does not require tuple specialization 132 132 if ( dynamic_cast< ZeroType * >( actualType ) ) return false; 133 FunctionType * aftype = getFunctionType( actualType ->stripReferences());134 assertf( aftype, "formal type is a function type, but actual type is not : %s", toString( actualType ).c_str());133 FunctionType * aftype = getFunctionType( actualType ); 134 assertf( aftype, "formal type is a function type, but actual type is not." ); 135 135 // Can't tuple specialize if parameter sizes deeply-differ. 136 136 if ( functionParameterSize( fftype ) != functionParameterSize( aftype ) ) return false; -
src/InitTweak/FixInit.cc
r28e58fd raf08051 29 29 30 30 #include "CodeGen/GenType.h" // for genPrettyType 31 #include "CodeGen/OperatorTable.h"32 31 #include "Common/PassVisitor.h" // for PassVisitor, WithStmtsToAdd 33 32 #include "Common/SemanticError.h" // for SemanticError … … 255 254 SemanticError errors; 256 255 private: 256 void handleFirstParam( Expression * firstParam ); 257 257 template< typename... Params > 258 258 void emit( CodeLocation, const Params &... params ); … … 379 379 FunctionType * ftype = dynamic_cast< FunctionType * >( GenPoly::getFunctionType( funcDecl->get_type() ) ); 380 380 assert( ftype ); 381 if ( CodeGen::isConstructor( funcDecl->get_name() ) && ftype->get_parameters().size() == 2 ) {382 Type * t1 = getPointerBase( ftype->get_parameters().front()->get_type());381 if ( isConstructor( funcDecl->get_name() ) && ftype->get_parameters().size() == 2 ) { 382 Type * t1 = ftype->get_parameters().front()->get_type(); 383 383 Type * t2 = ftype->get_parameters().back()->get_type(); 384 assert( t1 );385 386 if ( ResolvExpr::typesCompatible( t1, t2, SymTab::Indexer() ) ) {384 PointerType * ptrType = safe_dynamic_cast< PointerType * > ( t1 ); 385 386 if ( ResolvExpr::typesCompatible( ptrType->get_base(), t2, SymTab::Indexer() ) ) { 387 387 // optimization: don't need to copy construct in order to call a copy constructor 388 388 return appExpr; 389 389 } // if 390 } else if ( CodeGen::isDestructor( funcDecl->get_name() ) ) {390 } else if ( isDestructor( funcDecl->get_name() ) ) { 391 391 // correctness: never copy construct arguments to a destructor 392 392 return appExpr; … … 417 417 418 418 bool ResolveCopyCtors::skipCopyConstruct( Type * type ) { 419 return dynamic_cast< VarArgsType * >( type ) || dynamic_cast< ReferenceType * >( type ) ||GenPoly::getFunctionType( type ) || Tuples::isTtype( type );419 return dynamic_cast< VarArgsType * >( type ) || GenPoly::getFunctionType( type ) || Tuples::isTtype( type ); 420 420 } 421 421 … … 505 505 impCpCtorExpr->get_returnDecls().push_back( ret ); 506 506 CP_CTOR_PRINT( std::cerr << "makeCtorDtor for a return" << std::endl; ) 507 if ( ! dynamic_cast< ReferenceType * >( result) ) {507 if ( ! result->get_lvalue() ) { 508 508 // destructing lvalue returns is bad because it can cause multiple destructor calls to the same object - the returned object is not a temporary 509 509 destructRet( ret, impCpCtorExpr ); … … 607 607 608 608 Expression * retExpr = new CommaExpr( assign, new VariableExpr( returnDecl ) ); 609 if ( callExpr->get_result()->get_lvalue() ) { 610 // lvalue returning functions are funny. Lvalue.cc inserts a *? in front of any lvalue returning 611 // non-intrinsic function. Add an AddressExpr to the call to negate the derefence and change the 612 // type of the return temporary from T to T* to properly capture the return value. Then dereference 613 // the result of the comma expression, since the lvalue returning call was originally wrapped with 614 // an AddressExpr. Effectively, this turns 615 // lvalue T f(); 616 // &*f(); 617 // into 618 // T * f(); 619 // T * tmp_cp_retN; 620 // &*(tmp_cp_retN = &*f(), tmp_cp_retN); // the first * and second & are generated here 621 // which work out in terms of types, but is pretty messy. It would be nice to find a better way. 622 assign->get_args().back() = new AddressExpr( assign->get_args().back() ); 623 624 returnDecl->set_type( new PointerType( Type::Qualifiers(), returnDecl->get_type() ) ); 625 retExpr->set_result( new PointerType( Type::Qualifiers(), retExpr->get_result() ) ); 626 retExpr = UntypedExpr::createDeref( retExpr ); 627 } // if 609 628 // move env from callExpr to retExpr 610 629 retExpr->set_env( callExpr->get_env() ); … … 972 991 if ( ! funcDecl ) return false; 973 992 if ( ! funcDecl->get_statements() ) return false; 974 return CodeGen::isCtorDtor( funcDecl->get_name() ) && ! LinkageSpec::isOverridable( funcDecl->get_linkage() );993 return isCtorDtor( funcDecl->get_name() ) && ! LinkageSpec::isOverridable( funcDecl->get_linkage() ); 975 994 } 976 995 … … 989 1008 990 1009 function = funcDecl; 991 isCtor = CodeGen::isConstructor( function->get_name() );1010 isCtor = isConstructor( function->get_name() ); 992 1011 if ( checkWarnings( function ) ) { 993 1012 FunctionType * type = function->get_functionType(); 994 1013 assert( ! type->get_parameters().empty() ); 995 1014 thisParam = safe_dynamic_cast< ObjectDecl * >( type->get_parameters().front() ); 996 Type * thisType = getPointerBase( thisParam->get_type() );997 StructInstType * structType = dynamic_cast< StructInstType * >( thisType);1015 PointerType * ptrType = safe_dynamic_cast< PointerType * > ( thisParam->get_type() ); 1016 StructInstType * structType = dynamic_cast< StructInstType * >( ptrType->get_base() ); 998 1017 if ( structType ) { 999 1018 structDecl = structType->get_baseStruct(); … … 1028 1047 1029 1048 if ( ! unhandled.empty() ) { 1030 // need to explicitly re-add function parameters to the indexerin order to resolve copy constructors1049 // need to explicitly re-add function parameters in order to resolve copy constructors 1031 1050 enterScope(); 1032 1051 maybeAccept( function->get_functionType(), *this ); … … 1043 1062 // insert and resolve default/copy constructor call for each field that's unhandled 1044 1063 std::list< Statement * > stmt; 1064 UntypedExpr * deref = UntypedExpr::createDeref( new VariableExpr( thisParam ) ); 1065 1045 1066 Expression * arg2 = 0; 1046 1067 if ( isCopyConstructor( function ) ) { … … 1051 1072 } 1052 1073 InitExpander srcParam( arg2 ); 1053 // cast away reference type and construct field. 1054 Expression * thisExpr = new CastExpr( new VariableExpr( thisParam ), thisParam->get_type()->stripReferences()->clone() ); 1055 Expression * memberDest = new MemberExpr( field, thisExpr ); 1056 SymTab::genImplicitCall( srcParam, memberDest, function->get_name(), back_inserter( stmt ), field, isCtor ); 1074 SymTab::genImplicitCall( srcParam, new MemberExpr( field, deref ), function->get_name(), back_inserter( stmt ), field, isCtor ); 1057 1075 1058 1076 assert( stmt.size() <= 1 ); … … 1081 1099 } 1082 1100 1083 /// true if expr is effectively just the 'this' parameter1084 bool isThisExpression( Expression * expr, DeclarationWithType * thisParam ) {1085 // TODO: there are more complicated ways to pass 'this' to a constructor, e.g. &*, *&, etc.1086 if ( VariableExpr * varExpr = dynamic_cast< VariableExpr * >( expr ) ) {1087 return varExpr->get_var() == thisParam;1088 } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * > ( expr ) ) {1089 return isThisExpression( castExpr->get_arg(), thisParam );1090 }1091 return false;1092 }1093 1094 /// returns a MemberExpr if expr is effectively just member access on the 'this' parameter, else nullptr1095 MemberExpr * isThisMemberExpr( Expression * expr, DeclarationWithType * thisParam ) {1096 if ( MemberExpr * memberExpr = dynamic_cast< MemberExpr * >( expr ) ) {1097 if ( isThisExpression( memberExpr->get_aggregate(), thisParam ) ) {1098 return memberExpr;1099 }1100 } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) {1101 return isThisMemberExpr( castExpr->get_arg(), thisParam );1102 }1103 return nullptr;1104 }1105 1106 1101 void GenStructMemberCalls::visit( ApplicationExpr * appExpr ) { 1107 1102 if ( ! checkWarnings( function ) ) return; … … 1112 1107 Expression * firstParam = appExpr->get_args().front(); 1113 1108 1114 if ( isThisExpression( firstParam, thisParam ) ) {1109 if ( VariableExpr * varExpr = dynamic_cast< VariableExpr * >( firstParam ) ) { 1115 1110 // if calling another constructor on thisParam, assume that function handles 1116 1111 // all members - if it doesn't a warning will appear in that function. 1117 unhandled.clear(); 1118 } else if ( MemberExpr * memberExpr = isThisMemberExpr( firstParam, thisParam ) ) { 1119 // if first parameter is a member expression on the this parameter, 1120 // then remove the member from unhandled set. 1121 if ( isThisExpression( memberExpr->get_aggregate(), thisParam ) ) { 1122 unhandled.erase( memberExpr->get_member() ); 1112 if ( varExpr->get_var() == thisParam ) { 1113 unhandled.clear(); 1114 } 1115 } else { 1116 // if first parameter is a member expression then 1117 // remove the member from unhandled set. 1118 handleFirstParam( firstParam ); 1119 } 1120 } 1121 1122 Parent::visit( appExpr ); 1123 } 1124 1125 void GenStructMemberCalls::handleFirstParam( Expression * firstParam ) { 1126 using namespace std; 1127 if ( AddressExpr * addrExpr = dynamic_cast< AddressExpr * >( firstParam ) ) { 1128 if ( MemberExpr * memberExpr = dynamic_cast< MemberExpr * >( addrExpr->get_arg() ) ) { 1129 if ( ApplicationExpr * deref = dynamic_cast< ApplicationExpr * >( memberExpr->get_aggregate() ) ) { 1130 if ( getFunctionName( deref ) == "*?" && deref->get_args().size() == 1 ) { 1131 if ( VariableExpr * varExpr = dynamic_cast< VariableExpr * >( deref->get_args().front() ) ) { 1132 if ( varExpr->get_var() == thisParam ) { 1133 unhandled.erase( memberExpr->get_member() ); 1134 } 1135 } 1136 } 1123 1137 } 1124 1138 } 1125 1139 } 1126 Parent::visit( appExpr );1127 1140 } 1128 1141 … … 1131 1144 if ( ! isCtor ) return; 1132 1145 1133 if ( isThisExpression( memberExpr->get_aggregate(), thisParam ) ) { 1134 if ( unhandled.count( memberExpr->get_member() ) ) { 1135 // emit a warning because a member was used before it was constructed 1136 usedUninit.insert( { memberExpr->get_member(), memberExpr->location } ); 1146 if ( ApplicationExpr * deref = dynamic_cast< ApplicationExpr * >( memberExpr->get_aggregate() ) ) { 1147 if ( getFunctionName( deref ) == "*?" && deref->get_args().size() == 1 ) { 1148 if ( VariableExpr * varExpr = dynamic_cast< VariableExpr * >( deref->get_args().front() ) ) { 1149 if ( varExpr->get_var() == thisParam ) { 1150 if ( unhandled.count( memberExpr->get_member() ) ) { 1151 // emit a warning because a member was used before it was constructed 1152 usedUninit.insert( { memberExpr->get_member(), memberExpr->location } ); 1153 } 1154 } 1155 } 1137 1156 } 1138 1157 } … … 1180 1199 ctorExpr->set_callExpr( nullptr ); 1181 1200 ctorExpr->set_env( nullptr ); 1201 1202 Expression *& firstArg = callExpr->get_args().front(); 1203 UntypedExpr * assign = new UntypedExpr( new NameExpr( "?=?" ) ); 1204 assign->get_args().push_back( new VariableExpr( tmp ) ); 1205 assign->get_args().push_back( firstArg ); 1206 assign->set_result( ctorExpr->get_result()->clone() ); 1207 firstArg = assign; 1208 1209 CommaExpr * commaExpr = new CommaExpr( callExpr, new VariableExpr( tmp ) ); 1210 commaExpr->set_env( env ); 1182 1211 delete ctorExpr; 1183 1184 Expression *& firstArg = callExpr->get_args().front();1185 1186 // xxx - hack in 'fake' assignment operator until resolver can easily be called in this pass. Once the resolver can be used in PassVisitor, this hack goes away.1187 1188 // generate the type of assignment operator using the type of tmp minus any reference types1189 Type * type = tmp->get_type()->stripReferences();1190 FunctionType * ftype = SymTab::genAssignType( type );1191 1192 // generate fake assignment decl and call it using &tmp and &firstArg1193 // since tmp is guaranteed to be a reference and we want to assign pointers1194 FunctionDecl * assignDecl = new FunctionDecl( "?=?", Type::StorageClasses(), LinkageSpec::Intrinsic, ftype, nullptr );1195 ApplicationExpr * assign = new ApplicationExpr( VariableExpr::functionPointer( assignDecl ) );1196 assign->get_args().push_back( new AddressExpr( new VariableExpr( tmp ) ) );1197 Expression * addrArg = new AddressExpr( firstArg );1198 // if firstArg has type T&&, then &firstArg has type T*&.1199 // Cast away the reference to a value type so that the argument1200 // matches the assignment's parameter types1201 if ( dynamic_cast<ReferenceType *>( addrArg->get_result() ) ) {1202 addrArg = new CastExpr( addrArg, addrArg->get_result()->stripReferences()->clone() );1203 }1204 assign->get_args().push_back( addrArg );1205 firstArg = new VariableExpr( tmp );1206 1207 // for constructor expr:1208 // T x;1209 // x{};1210 // results in:1211 // T x;1212 // T & tmp;1213 // &tmp = &x, ?{}(tmp), tmp1214 CommaExpr * commaExpr = new CommaExpr( assign, new CommaExpr( callExpr, new VariableExpr( tmp ) ) );1215 commaExpr->set_env( env );1216 1212 return commaExpr; 1217 1213 } -
src/InitTweak/GenInit.cc
r28e58fd raf08051 21 21 #include <list> // for _List_iterator, list 22 22 23 #include "CodeGen/OperatorTable.h"24 23 #include "Common/PassVisitor.h" // for PassVisitor, WithGuards, WithShort... 25 24 #include "Common/SemanticError.h" // for SemanticError … … 58 57 59 58 protected: 60 FunctionType * ftype = nullptr;59 FunctionType * ftype; 61 60 std::string funcName; 62 61 }; … … 141 140 std::list< DeclarationWithType * > & returnVals = ftype->get_returnVals(); 142 141 assert( returnVals.size() == 0 || returnVals.size() == 1 ); 143 // hands off if the function returns a reference - we don't want to allocate a temporary if a variable's address142 // hands off if the function returns an lvalue - we don't want to allocate a temporary if a variable's address 144 143 // is being returned 145 if ( returnStmt->get_expr() && returnVals.size() == 1 && ! dynamic_cast< ReferenceType * >( returnVals.front()->get_type()) ) {144 if ( returnStmt->get_expr() && returnVals.size() == 1 && ! returnVals.front()->get_type()->get_lvalue() ) { 146 145 // explicitly construct the return value using the return expression and the retVal object 147 146 assertf( returnVals.front()->get_name() != "", "Function %s has unnamed return value\n", funcName.c_str() ); 148 149 stmtsToAddBefore.push_back( genCtorDtor( "?{}", dynamic_cast< ObjectDecl *>( returnVals.front() ), returnStmt->get_expr() ) ); 147 UntypedExpr *construct = new UntypedExpr( new NameExpr( "?{}" ) ); 148 construct->get_args().push_back( new AddressExpr( new VariableExpr( returnVals.front() ) ) ); 149 construct->get_args().push_back( returnStmt->get_expr() ); 150 stmtsToAddBefore.push_back(new ExprStmt(noLabels, construct)); 150 151 151 152 // return the retVal object … … 214 215 215 216 bool CtorDtor::isManaged( Type * type ) const { 216 // at least for now, references are never constructed217 if ( dynamic_cast< ReferenceType * >( type ) ) return false;218 217 // need to clear and reset qualifiers when determining if a type is managed 219 218 ValueGuard< Type::Qualifiers > qualifiers( type->get_qualifiers() ); … … 239 238 void CtorDtor::handleDWT( DeclarationWithType * dwt ) { 240 239 // if this function is a user-defined constructor or destructor, mark down the type as "managed" 241 if ( ! LinkageSpec::isOverridable( dwt->get_linkage() ) && CodeGen::isCtorDtor( dwt->get_name() ) ) {240 if ( ! LinkageSpec::isOverridable( dwt->get_linkage() ) && isCtorDtor( dwt->get_name() ) ) { 242 241 std::list< DeclarationWithType * > & params = GenPoly::getFunctionType( dwt->get_type() )->get_parameters(); 243 242 assert( ! params.empty() ); 244 Type * type = InitTweak::getPointerBase( params.front()->get_type() ); 245 assert( type ); 246 managedTypes.insert( SymTab::Mangler::mangle( type ) ); 243 PointerType * type = safe_dynamic_cast< PointerType * >( params.front()->get_type() ); 244 managedTypes.insert( SymTab::Mangler::mangle( type->get_base() ) ); 247 245 } 248 246 } -
src/InitTweak/InitTweak.cc
r28e58fd raf08051 187 187 188 188 UntypedExpr * increment = new UntypedExpr( new NameExpr( "++?" ) ); 189 increment->get_args().push_back( index->clone() );189 increment->get_args().push_back( new AddressExpr( index->clone() ) ); 190 190 *out++ = new ExprStmt( noLabels, increment ); 191 191 } … … 397 397 template<typename CallExpr> 398 398 Expression *& callArg( CallExpr * callExpr, unsigned int pos ) { 399 if ( pos >= callExpr->get_args().size() ) assertf( false, " getCallArg for argument that doesn't exist: (%u); %s.", pos, toString( callExpr ).c_str());399 if ( pos >= callExpr->get_args().size() ) assertf( false, "asking for argument that doesn't exist. Return NULL/throw exception?" ); 400 400 for ( Expression *& arg : callExpr->get_args() ) { 401 401 if ( pos == 0 ) return arg; … … 475 475 } else if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) { 476 476 return arrayType->get_base(); 477 } else if ( ReferenceType * refType = dynamic_cast< ReferenceType * >( type ) ) {478 return refType->get_base();479 477 } else { 480 478 return NULL; … … 562 560 if ( ftype->get_parameters().size() != 2 ) return 0; 563 561 564 Type * t1 = getPointerBase( ftype->get_parameters().front()->get_type());562 Type * t1 = ftype->get_parameters().front()->get_type(); 565 563 Type * t2 = ftype->get_parameters().back()->get_type(); 566 assert( t1 ); 567 568 if ( ResolvExpr::typesCompatibleIgnoreQualifiers( t1, t2, SymTab::Indexer() ) ) { 564 PointerType * ptrType = dynamic_cast< PointerType * > ( t1 ); 565 assert( ptrType ); 566 567 if ( ResolvExpr::typesCompatibleIgnoreQualifiers( ptrType->get_base(), t2, SymTab::Indexer() ) ) { 569 568 return function; 570 569 } else { -
src/InitTweak/InitTweak.h
r28e58fd raf08051 24 24 // helper functions for initialization 25 25 namespace InitTweak { 26 bool isConstructor( const std::string & ); 27 bool isDestructor( const std::string & ); 28 bool isAssignment( const std::string & ); 29 bool isCtorDtor( const std::string & ); 30 bool isCtorDtorAssign( const std::string & ); 31 26 32 FunctionDecl * isAssignment( Declaration * decl ); 27 33 FunctionDecl * isDestructor( Declaration * decl ); -
src/MakeLibCfa.cc
r28e58fd raf08051 16 16 #include "MakeLibCfa.h" 17 17 18 #include <cassert> 18 #include <cassert> // for assert 19 19 #include <string> // for operator==, string 20 20 21 21 #include "CodeGen/OperatorTable.h" // for OperatorInfo, operatorLookup, Ope... 22 #include "Common/PassVisitor.h" // for PassVisitor23 22 #include "Common/SemanticError.h" // for SemanticError 24 23 #include "Common/UniqueName.h" // for UniqueName … … 33 32 34 33 namespace LibCfa { 35 namespace{36 struct MakeLibCfa {37 public:38 void postvisit( FunctionDecl* funcDecl );34 class MakeLibCfa : public Visitor { 35 public: 36 void visit( FunctionDecl* funcDecl ); 37 void visit( ObjectDecl* objDecl ); 39 38 40 std::list< Declaration* > newDecls; 41 }; 39 std::list< Declaration* > &get_newDecls() { return newDecls; } 40 private: 41 std::list< Declaration* > newDecls; 42 }; 43 44 void makeLibCfa( std::list< Declaration* > &prelude ) { 45 MakeLibCfa maker; 46 acceptAll( prelude, maker ); 47 prelude.splice( prelude.end(), maker.get_newDecls() ); 42 48 } 43 49 44 void makeLibCfa( std::list< Declaration* > &prelude ) { 45 PassVisitor<MakeLibCfa> maker; 46 acceptAll( prelude, maker ); 47 prelude.splice( prelude.end(), maker.pass.newDecls ); 50 void MakeLibCfa::visit( FunctionDecl* origFuncDecl ) { 51 if ( origFuncDecl->get_linkage() != LinkageSpec::Intrinsic ) return; 52 if ( origFuncDecl->get_statements() ) return; 53 54 FunctionDecl *funcDecl = origFuncDecl->clone(); 55 CodeGen::OperatorInfo opInfo; 56 bool lookResult = CodeGen::operatorLookup( funcDecl->get_name(), opInfo ); 57 assert( lookResult ); 58 assert( ! funcDecl->get_statements() ); 59 UntypedExpr *newExpr = new UntypedExpr( new NameExpr( funcDecl->get_name() ) ); 60 UniqueName paramNamer( "_p" ); 61 std::list< DeclarationWithType* >::iterator param = funcDecl->get_functionType()->get_parameters().begin(); 62 assert( param != funcDecl->get_functionType()->get_parameters().end() ); 63 64 for ( ; param != funcDecl->get_functionType()->get_parameters().end(); ++param ) { 65 if ( (*param)->get_name() == "" ) { 66 (*param)->set_name( paramNamer.newName() ); 67 (*param)->set_linkage( LinkageSpec::C ); 68 } 69 newExpr->get_args().push_back( new VariableExpr( *param ) ); 70 } // for 71 72 funcDecl->set_statements( new CompoundStmt( std::list< Label >() ) ); 73 newDecls.push_back( funcDecl ); 74 75 switch ( opInfo.type ) { 76 case CodeGen::OT_INDEX: 77 case CodeGen::OT_CALL: 78 case CodeGen::OT_PREFIX: 79 case CodeGen::OT_POSTFIX: 80 case CodeGen::OT_INFIX: 81 case CodeGen::OT_PREFIXASSIGN: 82 case CodeGen::OT_POSTFIXASSIGN: 83 case CodeGen::OT_INFIXASSIGN: 84 case CodeGen::OT_CTOR: 85 case CodeGen::OT_DTOR: 86 funcDecl->get_statements()->get_kids().push_back( new ReturnStmt( std::list< Label >(), newExpr ) ); 87 break; 88 case CodeGen::OT_CONSTANT: 89 case CodeGen::OT_LABELADDRESS: 90 // there are no intrinsic definitions of 0/1 or label addresses as functions 91 assert( false ); 92 } // switch 48 93 } 49 94 50 namespace { 51 struct TypeFinder { 52 void postvisit( TypeInstType * inst ) { 53 // if a type variable is seen, assume all zero_t/one_t in the parameter list 54 // can be replaced with the equivalent 'general' pointer. 55 if ( type ) return; 56 if ( inst->isFtype ) { 57 type = new PointerType( Type::Qualifiers(), new FunctionType( Type::Qualifiers(), false ) ); 58 } else { 59 type = new PointerType( Type::Qualifiers(), new VoidType( Type::Qualifiers() ) ); 60 } 61 } 62 Type * type = nullptr; 63 }; 95 void MakeLibCfa::visit( ObjectDecl* origObjDecl ) { 96 if ( origObjDecl->get_linkage() != LinkageSpec::Intrinsic ) return; 64 97 65 struct ZeroOneReplacer { 66 ZeroOneReplacer( Type * t ) : type( t ) {} 67 ~ZeroOneReplacer() { delete type; } 68 Type * type = nullptr; 69 70 Type * common( Type * t ) { 71 if ( ! type ) return t; 72 delete t; 73 return type->clone(); 74 } 75 76 Type * postmutate( OneType * t ) { return common( t ); } 77 Type * postmutate( ZeroType * t ) { return common( t ); } 78 }; 79 80 void fixZeroOneType( FunctionDecl * origFuncDecl ) { 81 // find appropriate type to replace zero_t/one_t with 82 PassVisitor<TypeFinder> finder; 83 origFuncDecl->type->accept( finder ); 84 // replace zero_t/one_t in function type 85 PassVisitor<ZeroOneReplacer> replacer( finder.pass.type ); 86 origFuncDecl->type->acceptMutator( replacer ); 87 } 88 89 void MakeLibCfa::postvisit( FunctionDecl* origFuncDecl ) { 90 // don't change non-intrinsic functions 91 if ( origFuncDecl->get_linkage() != LinkageSpec::Intrinsic ) return; 92 // replace zero_t/one_t with void */void (*)(void) 93 fixZeroOneType( origFuncDecl ); 94 // skip functions already defined 95 if ( origFuncDecl->get_statements() ) return; 96 97 FunctionDecl *funcDecl = origFuncDecl->clone(); 98 CodeGen::OperatorInfo opInfo; 99 bool lookResult = CodeGen::operatorLookup( funcDecl->get_name(), opInfo ); 100 assert( lookResult ); 101 assert( ! funcDecl->get_statements() ); 102 // build a recursive call - this is okay, as the call will actually be codegen'd using operator syntax 103 UntypedExpr *newExpr = new UntypedExpr( new NameExpr( funcDecl->get_name() ) ); 104 UniqueName paramNamer( "_p" ); 105 std::list< DeclarationWithType* >::iterator param = funcDecl->get_functionType()->get_parameters().begin(); 106 assert( param != funcDecl->get_functionType()->get_parameters().end() ); 107 108 for ( ; param != funcDecl->get_functionType()->get_parameters().end(); ++param ) { 109 // name each unnamed parameter 110 if ( (*param)->get_name() == "" ) { 111 (*param)->set_name( paramNamer.newName() ); 112 (*param)->set_linkage( LinkageSpec::C ); 113 } 114 // add parameter to the expression 115 newExpr->get_args().push_back( new VariableExpr( *param ) ); 116 } // for 117 118 funcDecl->set_statements( new CompoundStmt( std::list< Label >() ) ); 119 newDecls.push_back( funcDecl ); 120 121 switch ( opInfo.type ) { 122 case CodeGen::OT_INDEX: 123 case CodeGen::OT_CALL: 124 case CodeGen::OT_PREFIX: 125 case CodeGen::OT_POSTFIX: 126 case CodeGen::OT_INFIX: 127 case CodeGen::OT_PREFIXASSIGN: 128 case CodeGen::OT_POSTFIXASSIGN: 129 case CodeGen::OT_INFIXASSIGN: 130 case CodeGen::OT_CTOR: 131 case CodeGen::OT_DTOR: 132 // return the recursive call 133 funcDecl->get_statements()->get_kids().push_back( new ReturnStmt( std::list< Label >(), newExpr ) ); 134 break; 135 case CodeGen::OT_CONSTANT: 136 case CodeGen::OT_LABELADDRESS: 137 // there are no intrinsic definitions of 0/1 or label addresses as functions 138 assert( false ); 139 } // switch 140 } 141 } // namespace 98 ObjectDecl *objDecl = origObjDecl->clone(); 99 assert( ! objDecl->get_init() ); 100 std::list< Expression* > noDesignators; 101 objDecl->set_init( new SingleInit( new NameExpr( objDecl->get_name() ), false ) ); // cannot be constructed 102 newDecls.push_back( objDecl ); 103 } 142 104 } // namespace LibCfa -
src/Makefile.in
r28e58fd raf08051 224 224 SynTree/driver_cfa_cpp-PointerType.$(OBJEXT) \ 225 225 SynTree/driver_cfa_cpp-ArrayType.$(OBJEXT) \ 226 SynTree/driver_cfa_cpp-ReferenceType.$(OBJEXT) \227 226 SynTree/driver_cfa_cpp-FunctionType.$(OBJEXT) \ 228 227 SynTree/driver_cfa_cpp-ReferenceToType.$(OBJEXT) \ … … 521 520 SynTree/VoidType.cc SynTree/BasicType.cc \ 522 521 SynTree/PointerType.cc SynTree/ArrayType.cc \ 523 SynTree/ReferenceType.cc SynTree/FunctionType.cc \ 524 SynTree/ReferenceToType.cc SynTree/TupleType.cc \ 525 SynTree/TypeofType.cc SynTree/AttrType.cc \ 522 SynTree/FunctionType.cc SynTree/ReferenceToType.cc \ 523 SynTree/TupleType.cc SynTree/TypeofType.cc SynTree/AttrType.cc \ 526 524 SynTree/VarArgsType.cc SynTree/ZeroOneType.cc \ 527 525 SynTree/Constant.cc SynTree/Expression.cc SynTree/TupleExpr.cc \ … … 869 867 SynTree/driver_cfa_cpp-ArrayType.$(OBJEXT): SynTree/$(am__dirstamp) \ 870 868 SynTree/$(DEPDIR)/$(am__dirstamp) 871 SynTree/driver_cfa_cpp-ReferenceType.$(OBJEXT): \872 SynTree/$(am__dirstamp) SynTree/$(DEPDIR)/$(am__dirstamp)873 869 SynTree/driver_cfa_cpp-FunctionType.$(OBJEXT): \ 874 870 SynTree/$(am__dirstamp) SynTree/$(DEPDIR)/$(am__dirstamp) … … 1074 1070 @AMDEP_TRUE@@am__include@ @am__quote@SynTree/$(DEPDIR)/driver_cfa_cpp-PointerType.Po@am__quote@ 1075 1071 @AMDEP_TRUE@@am__include@ @am__quote@SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceToType.Po@am__quote@ 1076 @AMDEP_TRUE@@am__include@ @am__quote@SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Po@am__quote@1077 1072 @AMDEP_TRUE@@am__include@ @am__quote@SynTree/$(DEPDIR)/driver_cfa_cpp-Statement.Po@am__quote@ 1078 1073 @AMDEP_TRUE@@am__include@ @am__quote@SynTree/$(DEPDIR)/driver_cfa_cpp-TupleExpr.Po@am__quote@ … … 2172 2167 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 2173 2168 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o SynTree/driver_cfa_cpp-ArrayType.obj `if test -f 'SynTree/ArrayType.cc'; then $(CYGPATH_W) 'SynTree/ArrayType.cc'; else $(CYGPATH_W) '$(srcdir)/SynTree/ArrayType.cc'; fi` 2174 2175 SynTree/driver_cfa_cpp-ReferenceType.o: SynTree/ReferenceType.cc2176 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT SynTree/driver_cfa_cpp-ReferenceType.o -MD -MP -MF SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Tpo -c -o SynTree/driver_cfa_cpp-ReferenceType.o `test -f 'SynTree/ReferenceType.cc' || echo '$(srcdir)/'`SynTree/ReferenceType.cc2177 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Tpo SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Po2178 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='SynTree/ReferenceType.cc' object='SynTree/driver_cfa_cpp-ReferenceType.o' libtool=no @AMDEPBACKSLASH@2179 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@2180 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o SynTree/driver_cfa_cpp-ReferenceType.o `test -f 'SynTree/ReferenceType.cc' || echo '$(srcdir)/'`SynTree/ReferenceType.cc2181 2182 SynTree/driver_cfa_cpp-ReferenceType.obj: SynTree/ReferenceType.cc2183 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT SynTree/driver_cfa_cpp-ReferenceType.obj -MD -MP -MF SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Tpo -c -o SynTree/driver_cfa_cpp-ReferenceType.obj `if test -f 'SynTree/ReferenceType.cc'; then $(CYGPATH_W) 'SynTree/ReferenceType.cc'; else $(CYGPATH_W) '$(srcdir)/SynTree/ReferenceType.cc'; fi`2184 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Tpo SynTree/$(DEPDIR)/driver_cfa_cpp-ReferenceType.Po2185 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='SynTree/ReferenceType.cc' object='SynTree/driver_cfa_cpp-ReferenceType.obj' libtool=no @AMDEPBACKSLASH@2186 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@2187 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o SynTree/driver_cfa_cpp-ReferenceType.obj `if test -f 'SynTree/ReferenceType.cc'; then $(CYGPATH_W) 'SynTree/ReferenceType.cc'; else $(CYGPATH_W) '$(srcdir)/SynTree/ReferenceType.cc'; fi`2188 2169 2189 2170 SynTree/driver_cfa_cpp-FunctionType.o: SynTree/FunctionType.cc -
src/Parser/DeclarationNode.cc
r28e58fd raf08051 340 340 } // DeclarationNode::newTypeDecl 341 341 342 DeclarationNode * DeclarationNode::newPointer( DeclarationNode * qualifiers , OperKinds kind) {343 DeclarationNode * newnode = new DeclarationNode; 344 newnode->type = new TypeData( kind == OperKinds::PointTo ? TypeData::Pointer : TypeData::Reference);342 DeclarationNode * DeclarationNode::newPointer( DeclarationNode * qualifiers ) { 343 DeclarationNode * newnode = new DeclarationNode; 344 newnode->type = new TypeData( TypeData::Pointer ); 345 345 if ( qualifiers ) { 346 346 return newnode->addQualifiers( qualifiers ); … … 759 759 DeclarationNode * DeclarationNode::addPointer( DeclarationNode * p ) { 760 760 if ( p ) { 761 assert( p->type->kind == TypeData::Pointer || TypeData::Reference);761 assert( p->type->kind == TypeData::Pointer ); 762 762 setBase( p->type ); 763 763 p->type = nullptr; … … 781 781 DeclarationNode * DeclarationNode::addNewPointer( DeclarationNode * p ) { 782 782 if ( p ) { 783 assert( p->type->kind == TypeData::Pointer || p->type->kind == TypeData::Reference);783 assert( p->type->kind == TypeData::Pointer ); 784 784 if ( type ) { 785 785 switch ( type->kind ) { -
src/Parser/ExpressionNode.cc
r28e58fd raf08051 314 314 Expression * build_unary_ptr( OperKinds op, ExpressionNode * expr_node ) { 315 315 std::list< Expression * > args; 316 args.push_back( maybeMoveBuild< Expression >(expr_node) ); // xxx316 args.push_back( new AddressExpr( maybeMoveBuild< Expression >(expr_node) ) ); 317 317 return new UntypedExpr( new NameExpr( OperName[ (int)op ] ), args ); 318 318 } // build_unary_ptr … … 327 327 Expression * build_binary_ptr( OperKinds op, ExpressionNode * expr_node1, ExpressionNode * expr_node2 ) { 328 328 std::list< Expression * > args; 329 args.push_back( maybeMoveBuild< Expression >(expr_node1) );329 args.push_back( new AddressExpr( maybeMoveBuild< Expression >(expr_node1) ) ); 330 330 args.push_back( maybeMoveBuild< Expression >(expr_node2) ); 331 331 return new UntypedExpr( new NameExpr( OperName[ (int)op ] ), args ); -
src/Parser/ParseNode.h
r28e58fd raf08051 243 243 static DeclarationNode * newTraitUse( const std::string * name, ExpressionNode * params ); 244 244 static DeclarationNode * newTypeDecl( std::string * name, DeclarationNode * typeParams ); 245 static DeclarationNode * newPointer( DeclarationNode * qualifiers , OperKinds kind);245 static DeclarationNode * newPointer( DeclarationNode * qualifiers ); 246 246 static DeclarationNode * newArray( ExpressionNode * size, DeclarationNode * qualifiers, bool isStatic ); 247 247 static DeclarationNode * newVarArray( DeclarationNode * qualifiers ); -
src/Parser/TypeData.cc
r28e58fd raf08051 35 35 case Unknown: 36 36 case Pointer: 37 case Reference:38 37 case EnumConstant: 39 38 // nothing else to initialize … … 105 104 case Unknown: 106 105 case Pointer: 107 case Reference:108 106 case EnumConstant: 109 107 // nothing to destroy … … 172 170 case EnumConstant: 173 171 case Pointer: 174 case Reference:175 172 // nothing else to copy 176 173 break; … … 408 405 // add dtor: void ^?{}(T *) 409 406 FunctionType * dtorType = new FunctionType( Type::Qualifiers(), false ); 410 dtorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) );407 dtorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new PointerType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) ); 411 408 td->get_assertions().push_front( new FunctionDecl( "^?{}", Type::StorageClasses(), LinkageSpec::Cforall, dtorType, nullptr ) ); 412 409 413 410 // add copy ctor: void ?{}(T *, T) 414 411 FunctionType * copyCtorType = new FunctionType( Type::Qualifiers(), false ); 415 copyCtorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) );412 copyCtorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new PointerType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) ); 416 413 copyCtorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new TypeInstType( Type::Qualifiers(), td->get_name(), *i ), nullptr ) ); 417 414 td->get_assertions().push_front( new FunctionDecl( "?{}", Type::StorageClasses(), LinkageSpec::Cforall, copyCtorType, nullptr ) ); … … 419 416 // add default ctor: void ?{}(T *) 420 417 FunctionType * ctorType = new FunctionType( Type::Qualifiers(), false ); 421 ctorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) );418 ctorType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new PointerType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) ); 422 419 td->get_assertions().push_front( new FunctionDecl( "?{}", Type::StorageClasses(), LinkageSpec::Cforall, ctorType, nullptr ) ); 423 420 424 421 // add assignment operator: T * ?=?(T *, T) 425 422 FunctionType * assignType = new FunctionType( Type::Qualifiers(), false ); 426 assignType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) );423 assignType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new PointerType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), td->get_name(), *i ) ), nullptr ) ); 427 424 assignType->get_parameters().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new TypeInstType( Type::Qualifiers(), td->get_name(), *i ), nullptr ) ); 428 425 assignType->get_returnVals().push_back( new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new TypeInstType( Type::Qualifiers(), td->get_name(), *i ), nullptr ) ); … … 444 441 case TypeData::Array: 445 442 return buildArray( td ); 446 case TypeData::Reference:447 return buildReference( td );448 443 case TypeData::Function: 449 444 return buildFunction( td ); … … 624 619 buildForall( td->forall, at->get_forall() ); 625 620 return at; 626 } // buildArray 627 628 ReferenceType * buildReference( const TypeData * td ) { 629 ReferenceType * rt; 630 if ( td->base ) { 631 rt = new ReferenceType( buildQualifiers( td ), typebuild( td->base ) ); 632 } else { 633 rt = new ReferenceType( buildQualifiers( td ), new BasicType( Type::Qualifiers(), BasicType::SignedInt ) ); 634 } // if 635 buildForall( td->forall, rt->get_forall() ); 636 return rt; 637 } // buildReference 621 } // buildPointer 638 622 639 623 AggregateDecl * buildAggregate( const TypeData * td, std::list< Attribute * > attributes, LinkageSpec::Spec linkage ) { -
src/Parser/TypeData.h
r28e58fd raf08051 26 26 27 27 struct TypeData { 28 enum Kind { Basic, Pointer, Array, Reference,Function, Aggregate, AggregateInst, Enum, EnumConstant, Symbolic,28 enum Kind { Basic, Pointer, Array, Function, Aggregate, AggregateInst, Enum, EnumConstant, Symbolic, 29 29 SymbolicInst, Tuple, Typeof, Builtin, Unknown }; 30 30 … … 109 109 PointerType * buildPointer( const TypeData * ); 110 110 ArrayType * buildArray( const TypeData * ); 111 ReferenceType * buildReference( const TypeData * );112 111 AggregateDecl * buildAggregate( const TypeData *, std::list< Attribute * > ); 113 112 ReferenceToType * buildComAggInst( const TypeData *, std::list< Attribute * > attributes, LinkageSpec::Spec linkage ); -
src/Parser/lex.ll
r28e58fd raf08051 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : T ue Aug 22 22:43:39201713 * Update Count : 55 812 * Last Modified On : Thu Jul 27 21:46:06 2017 13 * Update Count : 550 14 14 */ 15 15 … … 45 45 #define NUMERIC_RETURN(x) rm_underscore(); RETURN_VAL( x ) // numeric constant 46 46 #define KEYWORD_RETURN(x) RETURN_CHAR( x ) // keyword 47 #define QKEYWORD_RETURN(x) typedefTable.isKind( yytext ); RETURN_VAL(x); // quasi-keyword48 47 #define IDENTIFIER_RETURN() RETURN_VAL( typedefTable.isKind( yytext ) ) 49 48 #define ATTRIBUTE_RETURN() RETURN_VAL( ATTR_IDENTIFIER ) … … 237 236 __label__ { KEYWORD_RETURN(LABEL); } // GCC 238 237 long { KEYWORD_RETURN(LONG); } 238 lvalue { KEYWORD_RETURN(LVALUE); } // CFA 239 239 monitor { KEYWORD_RETURN(MONITOR); } // CFA 240 240 mutex { KEYWORD_RETURN(MUTEX); } // CFA … … 261 261 throw { KEYWORD_RETURN(THROW); } // CFA 262 262 throwResume { KEYWORD_RETURN(THROWRESUME); } // CFA 263 timeout { QKEYWORD_RETURN(TIMEOUT); } // CFA264 263 trait { KEYWORD_RETURN(TRAIT); } // CFA 265 264 try { KEYWORD_RETURN(TRY); } // CFA … … 278 277 __volatile { KEYWORD_RETURN(VOLATILE); } // GCC 279 278 __volatile__ { KEYWORD_RETURN(VOLATILE); } // GCC 280 waitfor { KEYWORD_RETURN(WAITFOR); }281 or { QKEYWORD_RETURN(WOR); } // CFA282 when { KEYWORD_RETURN(WHEN); }283 279 while { KEYWORD_RETURN(WHILE); } 284 280 with { KEYWORD_RETURN(WITH); } // CFA -
src/Parser/parser.yy
r28e58fd raf08051 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 21:08:08201713 // Update Count : 2 70412 // Last Modified On : Sun Aug 20 09:21:54 2017 13 // Update Count : 2573 14 14 // 15 15 … … 119 119 %token RESTRICT // C99 120 120 %token ATOMIC // C11 121 %token FORALL MUTEX VIRTUAL // CFA121 %token FORALL LVALUE MUTEX VIRTUAL // CFA 122 122 %token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED 123 123 %token BOOL COMPLEX IMAGINARY // C99 … … 131 131 %token ATTRIBUTE EXTENSION // GCC 132 132 %token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN 133 %token CHOOSE DISABLE ENABLE FALLTHRU TRY CATCH CATCHRESUME FINALLY THROW THROWRESUME AT WITH WHEN WAITFOR// CFA133 %token CHOOSE DISABLE ENABLE FALLTHRU TRY CATCH CATCHRESUME FINALLY THROW THROWRESUME AT WITH // CFA 134 134 %token ASM // C99, extension ISO/IEC 9899:1999 Section J.5.10(1) 135 135 %token ALIGNAS ALIGNOF GENERIC STATICASSERT // C11 … … 137 137 // names and constants: lexer differentiates between identifier and typedef names 138 138 %token<tok> IDENTIFIER QUOTED_IDENTIFIER TYPEDEFname TYPEGENname 139 %token<tok> TIMEOUT WOR140 139 %token<tok> ATTR_IDENTIFIER ATTR_TYPEDEFname ATTR_TYPEGENname 141 140 %token<tok> INTEGERconstant CHARACTERconstant STRINGliteral … … 162 161 %type<tok> identifier no_attr_identifier 163 162 %type<tok> identifier_or_type_name no_attr_identifier_or_type_name attr_name 164 %type<tok> quasi_keyword165 163 %type<constant> string_literal 166 164 %type<str> string_literal_list … … 192 190 %type<sn> iteration_statement jump_statement 193 191 %type<sn> with_statement exception_statement asm_statement 194 %type<sn> when_clause_opt waitfor_statement waitfor_clause waitfor timeout195 192 %type<sn> fall_through_opt fall_through 196 193 %type<sn> statement statement_list … … 200 197 %type<sn> case_clause case_value_list case_label case_label_list 201 198 %type<sn> switch_clause_list_opt switch_clause_list choose_clause_list_opt choose_clause_list 202 %type<sn> handler_clause finally_clause199 %type<sn> /* handler_list */ handler_clause finally_clause 203 200 %type<catch_kind> handler_key 204 201 … … 298 295 // Handle single shift/reduce conflict for dangling else by shifting the ELSE token. For example, this string 299 296 // is ambiguous: 300 // .---------. matches IF '(' comma_expression ')' statement . (reduce)297 // .---------. matches IF '(' comma_expression ')' statement 301 298 // if ( C ) S1 else S2 302 // `-----------------' matches IF '(' comma_expression ')' statement . (shift) ELSE statement */ 303 // Similar issues exit with the waitfor statement. 304 305 // Order of these lines matters (low-to-high precedence). THEN is left associative over WOR/TIMEOUT/ELSE, WOR is left 306 // associative over TIMEOUT/ELSE, and TIMEOUT is left associative over ELSE. 307 %precedence THEN // rule precedence for IF/WAITFOR statement 308 %precedence WOR // token precedence for start of WOR in WAITFOR statement 309 %precedence TIMEOUT // token precedence for start of TIMEOUT in WAITFOR statement 310 %precedence ELSE // token precedence for start of else clause in IF/WAITFOR statement 299 // `-----------------' matches IF '(' comma_expression ')' statement ELSE statement */ 300 301 %nonassoc THEN // rule precedence for IF '(' comma_expression ')' statement 302 %nonassoc ELSE // token precedence for start of else clause in IF statement 311 303 312 304 %start translation_unit // parse-tree root … … 361 353 ; 362 354 363 quasi_keyword: // CFA364 TIMEOUT365 | WOR366 ;367 368 355 identifier: 369 356 IDENTIFIER 370 357 | ATTR_IDENTIFIER // CFA 371 | quasi_keyword372 358 ; 373 359 374 360 no_attr_identifier: 375 361 IDENTIFIER 376 | quasi_keyword377 362 ; 378 363 … … 395 380 primary_expression: 396 381 IDENTIFIER // typedef name cannot be used as a variable name 397 { $$ = new ExpressionNode( build_varref( $1 ) ); }398 | quasi_keyword399 382 { $$ = new ExpressionNode( build_varref( $1 ) ); } 400 383 | tuple … … 565 548 | '&' { $$ = OperKinds::AddressOf; } 566 549 // GCC, address of label must be handled by semantic check for ref,ref,label 567 | ANDAND { $$ = OperKinds::And; }550 // | ANDAND { $$ = OperKinds::And; } 568 551 ; 569 552 … … 687 670 conditional_expression 688 671 | unary_expression assignment_operator assignment_expression 689 { $$ = new ExpressionNode( build_binary_ val( $2, $1, $3 ) ); }672 { $$ = new ExpressionNode( build_binary_ptr( $2, $1, $3 ) ); } 690 673 ; 691 674 … … 753 736 | jump_statement 754 737 | with_statement 755 | waitfor_statement756 738 | exception_statement 757 739 | asm_statement … … 973 955 974 956 with_statement: 975 WITH '(' tuple_expression_list ')' statement 976 { $$ = nullptr; } // FIX ME 977 ; 978 979 when_clause_opt: 980 // empty 981 { $$ = nullptr; } // FIX ME 982 | WHEN '(' comma_expression ')' 983 { $$ = nullptr; } // FIX ME 984 ; 985 986 waitfor: 987 WAITFOR '(' identifier ')' 988 { $$ = nullptr; } // FIX ME 989 | WAITFOR '(' identifier ',' argument_expression_list ')' 990 { $$ = nullptr; } // FIX ME 991 ; 992 993 timeout: 994 TIMEOUT '(' comma_expression ')' 995 { $$ = nullptr; } // FIX ME 996 ; 997 998 waitfor_clause: 999 when_clause_opt waitfor statement %prec THEN 1000 { $$ = nullptr; } // FIX ME 1001 | when_clause_opt waitfor statement WOR waitfor_clause 1002 { $$ = nullptr; } // FIX ME 1003 | when_clause_opt timeout statement %prec THEN 1004 { $$ = nullptr; } // FIX ME 1005 | when_clause_opt ELSE statement 1006 { $$ = nullptr; } // FIX ME 1007 | when_clause_opt timeout statement WOR when_clause_opt ELSE statement 1008 { $$ = nullptr; } // FIX ME 1009 ; 1010 1011 waitfor_statement: 1012 when_clause_opt waitfor statement %prec THEN 1013 { $$ = nullptr; } // FIX ME 1014 | when_clause_opt waitfor statement WOR waitfor_clause 1015 { $$ = nullptr; } // FIX ME 957 WITH '(' tuple_expression_list ')' compound_statement 958 { $$ = (StatementNode *)0; } // FIX ME 1016 959 ; 1017 960 … … 1024 967 { $$ = new StatementNode( build_try( $2, $3, $4 ) ); } 1025 968 ; 969 970 //handler_list: 971 // handler_clause 972 // // ISO/IEC 9899:1999 Section 15.3(6 ) If present, a "..." handler shall be the last handler for its try block. 973 // | CATCH '(' ELLIPSIS ')' compound_statement 974 // { $$ = new StatementNode( build_catch( 0, $5, true ) ); } 975 // | handler_clause CATCH '(' ELLIPSIS ')' compound_statement 976 // { $$ = (StatementNode *)$1->set_last( new StatementNode( build_catch( 0, $6, true ) ) ); } 977 // | CATCHRESUME '(' ELLIPSIS ')' compound_statement 978 // { $$ = new StatementNode( build_catch( 0, $5, true ) ); } 979 // | handler_clause CATCHRESUME '(' ELLIPSIS ')' compound_statement 980 // { $$ = (StatementNode *)$1->set_last( new StatementNode( build_catch( 0, $6, true ) ) ); } 981 // ; 1026 982 1027 983 handler_clause: … … 1483 1439 | VOLATILE 1484 1440 { $$ = DeclarationNode::newTypeQualifier( Type::Volatile ); } 1441 | LVALUE // CFA 1442 { $$ = DeclarationNode::newTypeQualifier( Type::Lvalue ); } 1485 1443 | MUTEX 1486 1444 { $$ = DeclarationNode::newTypeQualifier( Type::Mutex ); } … … 2283 2241 with_clause_opt: 2284 2242 // empty 2285 { $$ = nullptr; }// FIX ME2243 { $$ = (StatementNode *)0; } // FIX ME 2286 2244 | WITH '(' tuple_expression_list ')' 2287 { $$ = nullptr; }// FIX ME2245 { $$ = (StatementNode *)0; } // FIX ME 2288 2246 ; 2289 2247 … … 2405 2363 attr_name: // GCC 2406 2364 IDENTIFIER 2407 | quasi_keyword2408 2365 | TYPEDEFname 2409 2366 | TYPEGENname … … 2464 2421 variable_ptr: 2465 2422 ptrref_operator variable_declarator 2466 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2423 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2467 2424 | ptrref_operator type_qualifier_list variable_declarator 2468 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2425 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2469 2426 | '(' variable_ptr ')' attribute_list_opt 2470 2427 { $$ = $2->addQualifiers( $4 ); } // redundant parenthesis … … 2512 2469 function_ptr: 2513 2470 ptrref_operator function_declarator 2514 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2471 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2515 2472 | ptrref_operator type_qualifier_list function_declarator 2516 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2473 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2517 2474 | '(' function_ptr ')' 2518 2475 { $$ = $2; } … … 2552 2509 KR_function_ptr: 2553 2510 ptrref_operator KR_function_declarator 2554 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2511 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2555 2512 | ptrref_operator type_qualifier_list KR_function_declarator 2556 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2513 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2557 2514 | '(' KR_function_ptr ')' 2558 2515 { $$ = $2; } … … 2596 2553 type_ptr: 2597 2554 ptrref_operator variable_type_redeclarator 2598 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2555 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2599 2556 | ptrref_operator type_qualifier_list variable_type_redeclarator 2600 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2557 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2601 2558 | '(' type_ptr ')' attribute_list_opt 2602 2559 { $$ = $2->addQualifiers( $4 ); } … … 2640 2597 identifier_parameter_ptr: 2641 2598 ptrref_operator identifier_parameter_declarator 2642 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2599 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2643 2600 | ptrref_operator type_qualifier_list identifier_parameter_declarator 2644 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2601 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2645 2602 | '(' identifier_parameter_ptr ')' attribute_list_opt 2646 2603 { $$ = $2->addQualifiers( $4 ); } … … 2700 2657 type_parameter_ptr: 2701 2658 ptrref_operator type_parameter_redeclarator 2702 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2659 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2703 2660 | ptrref_operator type_qualifier_list type_parameter_redeclarator 2704 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2661 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2705 2662 | '(' type_parameter_ptr ')' attribute_list_opt 2706 2663 { $$ = $2->addQualifiers( $4 ); } … … 2743 2700 abstract_ptr: 2744 2701 ptrref_operator 2745 { $$ = DeclarationNode::newPointer( 0 , $1); }2702 { $$ = DeclarationNode::newPointer( 0 ); } 2746 2703 | ptrref_operator type_qualifier_list 2747 { $$ = DeclarationNode::newPointer( $2 , $1); }2704 { $$ = DeclarationNode::newPointer( $2 ); } 2748 2705 | ptrref_operator abstract_declarator 2749 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2706 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2750 2707 | ptrref_operator type_qualifier_list abstract_declarator 2751 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2708 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2752 2709 | '(' abstract_ptr ')' attribute_list_opt 2753 2710 { $$ = $2->addQualifiers( $4 ); } … … 2832 2789 abstract_parameter_ptr: 2833 2790 ptrref_operator 2834 { $$ = DeclarationNode::newPointer( nullptr , $1); }2791 { $$ = DeclarationNode::newPointer( nullptr ); } 2835 2792 | ptrref_operator type_qualifier_list 2836 { $$ = DeclarationNode::newPointer( $2 , $1); }2793 { $$ = DeclarationNode::newPointer( $2 ); } 2837 2794 | ptrref_operator abstract_parameter_declarator 2838 { $$ = $2->addPointer( DeclarationNode::newPointer( nullptr , $1) ); }2795 { $$ = $2->addPointer( DeclarationNode::newPointer( nullptr ) ); } 2839 2796 | ptrref_operator type_qualifier_list abstract_parameter_declarator 2840 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2797 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2841 2798 | '(' abstract_parameter_ptr ')' attribute_list_opt 2842 2799 { $$ = $2->addQualifiers( $4 ); } … … 2911 2868 variable_abstract_ptr: 2912 2869 ptrref_operator 2913 { $$ = DeclarationNode::newPointer( 0 , $1); }2870 { $$ = DeclarationNode::newPointer( 0 ); } 2914 2871 | ptrref_operator type_qualifier_list 2915 { $$ = DeclarationNode::newPointer( $2 , $1); }2872 { $$ = DeclarationNode::newPointer( $2 ); } 2916 2873 | ptrref_operator variable_abstract_declarator 2917 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 , $1) ); }2874 { $$ = $2->addPointer( DeclarationNode::newPointer( 0 ) ); } 2918 2875 | ptrref_operator type_qualifier_list variable_abstract_declarator 2919 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 , $1) ); }2876 { $$ = $3->addPointer( DeclarationNode::newPointer( $2 ) ); } 2920 2877 | '(' variable_abstract_ptr ')' attribute_list_opt 2921 2878 { $$ = $2->addQualifiers( $4 ); } … … 2957 2914 // No SUE declaration in parameter list. 2958 2915 ptrref_operator type_specifier_nobody 2959 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }2916 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 2960 2917 | type_qualifier_list ptrref_operator type_specifier_nobody 2961 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }2918 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 2962 2919 | ptrref_operator cfa_abstract_function 2963 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }2920 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 2964 2921 | type_qualifier_list ptrref_operator cfa_abstract_function 2965 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }2922 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 2966 2923 | ptrref_operator cfa_identifier_parameter_declarator_tuple 2967 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }2924 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 2968 2925 | type_qualifier_list ptrref_operator cfa_identifier_parameter_declarator_tuple 2969 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }2926 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 2970 2927 ; 2971 2928 … … 3045 3002 cfa_abstract_ptr: // CFA 3046 3003 ptrref_operator type_specifier 3047 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }3004 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 3048 3005 | type_qualifier_list ptrref_operator type_specifier 3049 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }3006 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 3050 3007 | ptrref_operator cfa_abstract_function 3051 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }3008 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 3052 3009 | type_qualifier_list ptrref_operator cfa_abstract_function 3053 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }3010 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 3054 3011 | ptrref_operator cfa_abstract_declarator_tuple 3055 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 , $1) ); }3012 { $$ = $2->addNewPointer( DeclarationNode::newPointer( 0 ) ); } 3056 3013 | type_qualifier_list ptrref_operator cfa_abstract_declarator_tuple 3057 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 , $2) ); }3014 { $$ = $3->addNewPointer( DeclarationNode::newPointer( $1 ) ); } 3058 3015 ; 3059 3016 -
src/ResolvExpr/Alternative.cc
r28e58fd raf08051 34 34 : cost( cost ), cvtCost( cvtCost ), expr( expr ), env( env ) {} 35 35 36 Alternative::Alternative( const Alternative &other ) : cost( other.cost ), cvtCost( other.cvtCost ), expr( maybeClone( other.expr ) ), env( other.env ) { 36 Alternative::Alternative( const Alternative &other ) { 37 initialize( other, *this ); 37 38 } 38 39 39 40 Alternative &Alternative::operator=( const Alternative &other ) { 40 41 if ( &other == this ) return *this; 41 delete expr; 42 cost = other.cost; 43 cvtCost = other.cvtCost; 44 expr = maybeClone( other.expr ); 45 env = other.env; 42 initialize( other, *this ); 46 43 return *this; 47 44 } … … 60 57 other.expr = nullptr; 61 58 return *this; 59 } 60 61 void Alternative::initialize( const Alternative &src, Alternative &dest ) { 62 dest.cost = src.cost; 63 dest.cvtCost = src.cvtCost; 64 dest.expr = maybeClone( src.expr ); 65 dest.env = src.env; 62 66 } 63 67 -
src/ResolvExpr/Alternative.h
r28e58fd raf08051 39 39 ~Alternative(); 40 40 41 void initialize( const Alternative &src, Alternative &dest ); 42 41 43 void print( std::ostream &os, int indent = 0 ) const; 42 44 -
src/ResolvExpr/AlternativeFinder.cc
r28e58fd raf08051 67 67 68 68 Cost sumCost( const AltList &in ) { 69 Cost total = Cost::zero;69 Cost total; 70 70 for ( AltList::const_iterator i = in.begin(); i != in.end(); ++i ) { 71 71 total += i->cost; … … 144 144 expr->get_result()->accept( global_renamer ); 145 145 } 146 147 void referenceToRvalueConversion( Expression *& expr ) { 148 if ( dynamic_cast< ReferenceType * >( expr->get_result() ) ) { 149 // cast away reference from expr 150 expr = new CastExpr( expr, expr->get_result()->stripReferences()->clone() ); 151 } 152 } 153 } // namespace 146 } 154 147 155 148 template< typename InputIterator, typename OutputIterator > … … 193 186 if ( alternatives.begin() == oldBegin ) { 194 187 std::ostringstream stream; 188 stream << "Can't choose between " << alternatives.size() << " alternatives for expression "; 189 expr->print( stream ); 190 stream << "Alternatives are:"; 195 191 AltList winners; 196 192 findMinCost( alternatives.begin(), alternatives.end(), back_inserter( winners ) ); 197 stream << "Can't choose between " << winners.size() << " alternatives for expression ";198 expr->print( stream );199 stream << "Alternatives are:";200 193 printAlts( winners, stream, 8 ); 201 194 throw SemanticError( stream.str() ); … … 220 213 void AlternativeFinder::addAnonConversions( const Alternative & alt ) { 221 214 // adds anonymous member interpretations whenever an aggregate value type is seen. 222 // it's okay for the aggregate expression to have reference type -- cast it to the base type to treat the aggregate as the referenced value 223 std::unique_ptr<Expression> aggrExpr( alt.expr->clone() ); 224 alt.env.apply( aggrExpr->get_result() ); 225 Type * aggrType = aggrExpr->get_result(); 226 if ( dynamic_cast< ReferenceType * >( aggrType ) ) { 227 aggrType = aggrType->stripReferences(); 228 aggrExpr.reset( new CastExpr( aggrExpr.release(), aggrType->clone() ) ); 229 } 230 231 if ( StructInstType *structInst = dynamic_cast< StructInstType* >( aggrExpr->get_result() ) ) { 215 Expression * expr = alt.expr->clone(); 216 std::unique_ptr< Expression > manager( expr ); // RAII for expr 217 alt.env.apply( expr->get_result() ); 218 if ( StructInstType *structInst = dynamic_cast< StructInstType* >( expr->get_result() ) ) { 232 219 NameExpr nameExpr( "" ); 233 addAggMembers( structInst, aggrExpr.get(), alt.cost+Cost::safe, alt.env, &nameExpr );234 } else if ( UnionInstType *unionInst = dynamic_cast< UnionInstType* >( aggrExpr->get_result() ) ) {220 addAggMembers( structInst, expr, alt.cost+Cost( 0, 0, 1 ), alt.env, &nameExpr ); 221 } else if ( UnionInstType *unionInst = dynamic_cast< UnionInstType* >( expr->get_result() ) ) { 235 222 NameExpr nameExpr( "" ); 236 addAggMembers( unionInst, aggrExpr.get(), alt.cost+Cost::safe, alt.env, &nameExpr );223 addAggMembers( unionInst, expr, alt.cost+Cost( 0, 0, 1 ), alt.env, &nameExpr ); 237 224 } // if 238 225 } … … 241 228 void AlternativeFinder::addAggMembers( StructOrUnionType *aggInst, Expression *expr, const Cost &newCost, const TypeEnvironment & env, Expression * member ) { 242 229 // by this point, member must be a name expr 243 NameExpr * nameExpr = dynamic_cast< NameExpr * >( member ); 244 if ( ! nameExpr ) return; 230 NameExpr * nameExpr = safe_dynamic_cast< NameExpr * >( member ); 245 231 const std::string & name = nameExpr->get_name(); 246 232 std::list< Declaration* > members; … … 264 250 // during parsing and reusing that information here. 265 251 std::stringstream ss( constantExpr->get_constant()->get_value() ); 266 int val = 0;252 int val; 267 253 std::string tmp; 268 254 if ( ss >> val && ! (ss >> tmp) ) { … … 291 277 FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() ); 292 278 293 Cost convCost = Cost::zero;279 Cost convCost( 0, 0, 0 ); 294 280 std::list< DeclarationWithType* >& formals = function->get_parameters(); 295 281 std::list< DeclarationWithType* >::iterator formal = formals.begin(); … … 304 290 actualType->print( std::cerr, 8 ); 305 291 ) 306 Cost actualCost = Cost::zero;292 Cost actualCost; 307 293 if ( formal == formals.end() ) { 308 294 if ( function->get_isVarArgs() ) { 309 convCost.incUnsafe(); 310 // convert reference-typed expressions to value-typed expressions 311 referenceToRvalueConversion( *actualExpr ); 295 convCost += Cost( 1, 0, 0 ); 312 296 continue; 313 297 } else { … … 321 305 std::cerr << std::endl << " to "; 322 306 formalType->print( std::cerr, 8 ); 323 std::cerr << std::endl << "environment is: ";324 alt.env.print( std::cerr, 8 );325 std::cerr << std::endl;326 307 ) 327 308 Cost newCost = conversionCost( actualType, formalType, indexer, alt.env ); … … 335 316 convCost += newCost; 336 317 actualCost += newCost; 337 if ( actualCost != Cost ::zero) {318 if ( actualCost != Cost( 0, 0, 0 ) ) { 338 319 Type *newType = formalType->clone(); 339 320 alt.env.apply( newType ); 340 321 *actualExpr = new CastExpr( *actualExpr, newType ); 341 322 } 342 convCost .incPoly( polyCost( formalType, alt.env, indexer ) + polyCost( actualType, alt.env, indexer ));323 convCost += Cost( 0, polyCost( formalType, alt.env, indexer ) + polyCost( actualType, alt.env, indexer ), 0 ); 343 324 ++formal; // can't be in for-loop update because of the continue 344 325 } … … 362 343 } 363 344 convCost += newCost; 364 convCost .incPoly( polyCost( assert->second.formalType, alt.env, indexer ) + polyCost( assert->second.actualType, alt.env, indexer ));345 convCost += Cost( 0, polyCost( assert->second.formalType, alt.env, indexer ) + polyCost( assert->second.actualType, alt.env, indexer ), 0 ); 365 346 } 366 347 … … 419 400 Expression * actual = actualIt->expr; 420 401 Type * actualType = actual->get_result(); 421 422 402 PRINT( 423 403 std::cerr << "formal type is "; … … 428 408 ) 429 409 if ( ! unify( formalType, actualType, resultEnv, resultNeed, resultHave, openVars, indexer ) ) { 430 // std::cerr << "unify failed" << std::endl;431 410 return false; 432 411 } … … 473 452 // match flattened actuals with formal parameters - actuals will be grouped to match 474 453 // with formals as appropriate 475 Cost cost = Cost::zero;454 Cost cost; 476 455 std::list< Expression * > newExprs; 477 456 ObjectDecl * obj = safe_dynamic_cast< ObjectDecl * >( formal ); … … 634 613 AssertionSet newNeed; 635 614 //AssertionParentSet needParents; 636 PRINT(637 std::cerr << "env is: " << std::endl;638 newAlt.env.print( std::cerr, 0 );639 std::cerr << std::endl;640 )641 642 615 inferRecursive( need.begin(), need.end(), newAlt, openVars, decls, newNeed, /*needParents,*/ 0, indexer, out ); 643 616 // PRINT( … … 670 643 makeExprList( instantiatedActuals, appExpr->get_args() ); 671 644 PRINT( 672 std::cerr << "instantiate function success: " << appExpr << std::endl;673 645 std::cerr << "need assertions:" << std::endl; 674 646 printAssertionSet( resultNeed, std::cerr, 8 ); … … 691 663 UntypedExpr *vexpr = untypedExpr->clone(); 692 664 vexpr->set_result( pt.clone() ); 693 alternatives.push_back( Alternative( vexpr, env, Cost ::zero) );665 alternatives.push_back( Alternative( vexpr, env, Cost()) ); 694 666 return; 695 667 } … … 709 681 AltList candidates; 710 682 SemanticError errors; 711 for ( AltList:: iterator func = funcFinder.alternatives.begin(); func != funcFinder.alternatives.end(); ++func ) {683 for ( AltList::const_iterator func = funcFinder.alternatives.begin(); func != funcFinder.alternatives.end(); ++func ) { 712 684 try { 713 685 PRINT( … … 716 688 ) 717 689 // check if the type is pointer to function 718 if ( PointerType *pointer = dynamic_cast< PointerType* >( func->expr->get_result()->stripReferences() ) ) { 690 PointerType *pointer; 691 if ( ( pointer = dynamic_cast< PointerType* >( func->expr->get_result() ) ) ) { 719 692 if ( FunctionType *function = dynamic_cast< FunctionType* >( pointer->get_base() ) ) { 720 referenceToRvalueConversion( func->expr );721 693 for ( std::list< AltList >::iterator actualAlt = possibilities.begin(); actualAlt != possibilities.end(); ++actualAlt ) { 722 694 // XXX … … 724 696 makeFunctionAlternatives( *func, function, *actualAlt, std::back_inserter( candidates ) ); 725 697 } 726 } 727 } else if ( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( func->expr->get_result()->stripReferences() ) ) { // handle ftype (e.g. *? on function pointer) 728 referenceToRvalueConversion( func->expr ); 729 EqvClass eqvClass; 730 if ( func->env.lookup( typeInst->get_name(), eqvClass ) && eqvClass.type ) { 731 if ( FunctionType *function = dynamic_cast< FunctionType* >( eqvClass.type ) ) { 732 for ( std::list< AltList >::iterator actualAlt = possibilities.begin(); actualAlt != possibilities.end(); ++actualAlt ) { 733 makeFunctionAlternatives( *func, function, *actualAlt, std::back_inserter( candidates ) ); 734 } // for 698 } else if ( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( pointer->get_base() ) ) { 699 EqvClass eqvClass; 700 if ( func->env.lookup( typeInst->get_name(), eqvClass ) && eqvClass.type ) { 701 if ( FunctionType *function = dynamic_cast< FunctionType* >( eqvClass.type ) ) { 702 for ( std::list< AltList >::iterator actualAlt = possibilities.begin(); actualAlt != possibilities.end(); ++actualAlt ) { 703 makeFunctionAlternatives( *func, function, *actualAlt, std::back_inserter( candidates ) ); 704 } // for 705 } // if 735 706 } // if 736 707 } // if … … 751 722 } 752 723 753 for ( AltList:: iterator funcOp = funcOpFinder.alternatives.begin(); funcOp != funcOpFinder.alternatives.end(); ++funcOp ) {724 for ( AltList::const_iterator funcOp = funcOpFinder.alternatives.begin(); funcOp != funcOpFinder.alternatives.end(); ++funcOp ) { 754 725 // check if the type is pointer to function 755 if ( PointerType *pointer = dynamic_cast< PointerType* >( funcOp->expr->get_result()->stripReferences() ) ) { 726 PointerType *pointer; 727 if ( ( pointer = dynamic_cast< PointerType* >( funcOp->expr->get_result() ) ) ) { 756 728 if ( FunctionType *function = dynamic_cast< FunctionType* >( pointer->get_base() ) ) { 757 referenceToRvalueConversion( funcOp->expr );758 729 for ( std::list< AltList >::iterator actualAlt = possibilities.begin(); actualAlt != possibilities.end(); ++actualAlt ) { 759 730 AltList currentAlt; … … 782 753 PointerType *pointer = safe_dynamic_cast< PointerType* >( appExpr->get_function()->get_result() ); 783 754 FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() ); 784 std::cerr << "Case +++++++++++++ " << appExpr->get_function()<< std::endl;755 std::cerr << "Case +++++++++++++" << std::endl; 785 756 std::cerr << "formals are:" << std::endl; 786 757 printAll( function->get_parameters(), std::cerr, 8 ); … … 825 796 bool isLvalue( Expression *expr ) { 826 797 // xxx - recurse into tuples? 827 return expr->has_result() && ( expr->get_result()->get_lvalue() || dynamic_cast< ReferenceType * >( expr->get_result() ));798 return expr->has_result() && expr->get_result()->get_lvalue(); 828 799 } 829 800 … … 839 810 840 811 Expression * restructureCast( Expression * argExpr, Type * toType ) { 841 if ( argExpr->get_result()->size() > 1 && ! toType->isVoid() && ! dynamic_cast<ReferenceType *>( toType ) ) { 842 // Argument expression is a tuple and the target type is not void and not a reference type. 843 // Cast each member of the tuple to its corresponding target type, producing the tuple of those 844 // cast expressions. If there are more components of the tuple than components in the target type, 845 // then excess components do not come out in the result expression (but UniqueExprs ensure that 846 // side effects will still be done). 847 if ( Tuples::maybeImpureIgnoreUnique( argExpr ) ) { 812 if ( argExpr->get_result()->size() > 1 && ! toType->isVoid() ) { 813 // Argument expression is a tuple and the target type is not void. Cast each member of the tuple 814 // to its corresponding target type, producing the tuple of those cast expressions. If there are 815 // more components of the tuple than components in the target type, then excess components do not 816 // come out in the result expression (but UniqueExprs ensure that side effects will still be done). 817 if ( Tuples::maybeImpure( argExpr ) && ! dynamic_cast< UniqueExpr * >( argExpr ) ) { 848 818 // expressions which may contain side effects require a single unique instance of the expression. 849 819 argExpr = new UniqueExpr( argExpr ); … … 885 855 // that are cast directly. The candidate is invalid if it has fewer results than there are types to cast 886 856 // to. 887 int discardedValues = i->expr->get_result()->size() - castExpr->get_result()->size();857 int discardedValues = (*i).expr->get_result()->size() - castExpr->get_result()->size(); 888 858 if ( discardedValues < 0 ) continue; 889 859 // xxx - may need to go into tuple types and extract relevant types and use unifyList. Note that currently, this does not 890 860 // allow casting a tuple to an atomic type (e.g. (int)([1, 2, 3])) 891 861 // unification run for side-effects 892 unify( castExpr->get_result(), i->expr->get_result(), i->env, needAssertions, haveAssertions, openVars, indexer );893 Cost thisCost = castCost( i->expr->get_result(), castExpr->get_result(), indexer, i->env );862 unify( castExpr->get_result(), (*i).expr->get_result(), i->env, needAssertions, haveAssertions, openVars, indexer ); 863 Cost thisCost = castCost( (*i).expr->get_result(), castExpr->get_result(), indexer, i->env ); 894 864 if ( thisCost != Cost::infinity ) { 895 865 // count one safe conversion for each value that is thrown away 896 thisCost .incSafe(discardedValues );866 thisCost += Cost( 0, 0, discardedValues ); 897 867 898 868 candidates.push_back( Alternative( restructureCast( i->expr->clone(), toType ), i->env, i->cost, thisCost ) ); … … 925 895 funcFinder.findWithAdjustment( memberExpr->get_aggregate() ); 926 896 for ( AltList::const_iterator agg = funcFinder.alternatives.begin(); agg != funcFinder.alternatives.end(); ++agg ) { 927 // it's okay for the aggregate expression to have reference type -- cast it to the base type to treat the aggregate as the referenced value 928 std::unique_ptr<Expression> aggrExpr( agg->expr->clone() ); 929 Type * aggrType = aggrExpr->get_result(); 930 if ( dynamic_cast< ReferenceType * >( aggrType ) ) { 931 aggrType = aggrType->stripReferences(); 932 aggrExpr.reset( new CastExpr( aggrExpr.release(), aggrType->clone() ) ); 933 } 934 // find member of the given type 935 if ( StructInstType *structInst = dynamic_cast< StructInstType* >( aggrExpr->get_result() ) ) { 936 addAggMembers( structInst, aggrExpr.get(), agg->cost, agg->env, memberExpr->get_member() ); 937 } else if ( UnionInstType *unionInst = dynamic_cast< UnionInstType* >( aggrExpr->get_result() ) ) { 938 addAggMembers( unionInst, aggrExpr.get(), agg->cost, agg->env, memberExpr->get_member() ); 939 } else if ( TupleType * tupleType = dynamic_cast< TupleType * >( aggrExpr->get_result() ) ) { 940 addTupleMembers( tupleType, aggrExpr.get(), agg->cost, agg->env, memberExpr->get_member() ); 897 if ( StructInstType *structInst = dynamic_cast< StructInstType* >( agg->expr->get_result() ) ) { 898 addAggMembers( structInst, agg->expr, agg->cost, agg->env, memberExpr->get_member() ); 899 } else if ( UnionInstType *unionInst = dynamic_cast< UnionInstType* >( agg->expr->get_result() ) ) { 900 addAggMembers( unionInst, agg->expr, agg->cost, agg->env, memberExpr->get_member() ); 901 } else if ( TupleType * tupleType = dynamic_cast< TupleType * >( agg->expr->get_result() ) ) { 902 addTupleMembers( tupleType, agg->expr, agg->cost, agg->env, memberExpr->get_member() ); 941 903 } // if 942 904 } // for … … 953 915 for ( std::list< DeclarationWithType* >::iterator i = declList.begin(); i != declList.end(); ++i ) { 954 916 VariableExpr newExpr( *i, nameExpr->get_argName() ); 955 alternatives.push_back( Alternative( newExpr.clone(), env, Cost ::zero) );917 alternatives.push_back( Alternative( newExpr.clone(), env, Cost() ) ); 956 918 PRINT( 957 919 std::cerr << "decl is "; … … 993 955 // return the lowest cost alternative for the argument 994 956 Alternative &choice = winners.front(); 995 referenceToRvalueConversion( choice.expr );996 957 alternatives.push_back( Alternative( new SizeofExpr( choice.expr->clone() ), choice.env, Cost::zero ) ); 997 958 } // if … … 1014 975 // return the lowest cost alternative for the argument 1015 976 Alternative &choice = winners.front(); 1016 referenceToRvalueConversion( choice.expr );1017 977 alternatives.push_back( Alternative( new AlignofExpr( choice.expr->clone() ), choice.env, Cost::zero ) ); 1018 978 } // if … … 1099 1059 for ( std::list< DeclarationWithType* >::iterator i = attrList.begin(); i != attrList.end(); ++i ) { 1100 1060 VariableExpr newExpr( *i ); 1101 alternatives.push_back( Alternative( newExpr.clone(), env, Cost ::zero) );1061 alternatives.push_back( Alternative( newExpr.clone(), env, Cost() ) ); 1102 1062 renameTypes( alternatives.back().expr ); 1103 1063 } // for … … 1272 1232 if ( thisCost != Cost::infinity ) { 1273 1233 // count one safe conversion for each value that is thrown away 1274 thisCost .incSafe(discardedValues );1234 thisCost += Cost( 0, 0, discardedValues ); 1275 1235 candidates.push_back( Alternative( new InitExpr( restructureCast( alt.expr->clone(), toType ), initAlt.designation->clone() ), newEnv, alt.cost, thisCost ) ); 1276 1236 } -
src/ResolvExpr/CastCost.cc
r28e58fd raf08051 49 49 assert( type ); 50 50 if ( type->get_base() ) { 51 return castCost( src, type->get_base(), indexer, env ) + Cost ::safe;51 return castCost( src, type->get_base(), indexer, env ) + Cost( 0, 0, 1 ); 52 52 } // if 53 53 } // if 54 54 } // if 55 55 if ( typesCompatibleIgnoreQualifiers( src, dest, indexer, env ) ) { 56 return Cost ::zero;56 return Cost( 0, 0, 0 ); 57 57 } else if ( dynamic_cast< VoidType* >( dest ) ) { 58 return Cost::safe; 59 } else if ( ReferenceType * refType = dynamic_cast< ReferenceType * > ( dest ) ) { 60 return convertToReferenceCost( src, refType, indexer, env ); 58 return Cost( 0, 0, 1 ); 61 59 } else { 62 60 CastCost converter( dest, indexer, env ); … … 66 64 } else { 67 65 // xxx - why are we adding cost 0 here? 68 return converter.get_cost() + Cost ::zero;66 return converter.get_cost() + Cost( 0, 0, 0 ); 69 67 } // if 70 68 } // if … … 79 77 if ( destAsPointer && basicType->isInteger() ) { 80 78 // necessary for, e.g. unsigned long => void* 81 cost = Cost ::unsafe;79 cost = Cost( 1, 0, 0 ); 82 80 } else { 83 cost = conversionCost( basicType, dest, indexer, env);81 ConversionCost::visit( basicType ); 84 82 } // if 85 83 } … … 88 86 if ( PointerType *destAsPtr = dynamic_cast< PointerType* >( dest ) ) { 89 87 if ( pointerType->get_qualifiers() <= destAsPtr->get_qualifiers() && typesCompatibleIgnoreQualifiers( pointerType->get_base(), destAsPtr->get_base(), indexer, env ) ) { 90 cost = Cost ::safe;88 cost = Cost( 0, 0, 1 ); 91 89 } else { 92 90 TypeEnvironment newEnv( env ); … … 95 93 int castResult = ptrsCastable( pointerType->get_base(), destAsPtr->get_base(), newEnv, indexer ); 96 94 if ( castResult > 0 ) { 97 cost = Cost ::safe;95 cost = Cost( 0, 0, 1 ); 98 96 } else if ( castResult < 0 ) { 99 97 cost = Cost::infinity; … … 103 101 if ( destAsBasic->isInteger() ) { 104 102 // necessary for, e.g. void* => unsigned long 105 cost = Cost ::unsafe;103 cost = Cost( 1, 0, 0 ); 106 104 } // if 107 105 } -
src/ResolvExpr/CommonType.cc
r28e58fd raf08051 26 26 #include "typeops.h" // for isFtype 27 27 28 // #define DEBUG 28 29 /// #define DEBUG 29 30 30 31 namespace ResolvExpr { … … 38 39 virtual void visit( PointerType *pointerType ); 39 40 virtual void visit( ArrayType *arrayType ); 40 virtual void visit( ReferenceType *refType );41 41 virtual void visit( FunctionType *functionType ); 42 42 virtual void visit( StructInstType *aggregateUseType ); … … 50 50 virtual void visit( OneType *oneType ); 51 51 52 template< typename Pointer > void getCommonWithVoidPointer( Pointer* voidPointer, Pointer* otherPointer ); 53 template< typename RefType > void handleRefType( RefType *inst, Type *other ); 52 void getCommonWithVoidPointer( PointerType* voidPointer, PointerType* otherPointer ); 54 53 55 54 Type *result; … … 61 60 }; 62 61 63 Type * handleReference( ReferenceType * refType, Type * other, bool widenFirst, bool widenSecond, const SymTab::Indexer &indexer, TypeEnvironment & env, const OpenVarSet &openVars ) {64 Type * result = nullptr, * common = nullptr;65 AssertionSet have, need;66 OpenVarSet newOpen( openVars );67 // need unify to bind type variables68 if ( unify( refType->get_base(), other, env, have, need, newOpen, indexer, common ) ) {69 // std::cerr << "unify success" << std::endl;70 if ( widenSecond ) {71 // std::cerr << "widen second" << std::endl;72 if ( widenFirst || other->get_qualifiers() <= refType->get_qualifiers() ) {73 result = new ReferenceType( refType->get_qualifiers(), common ); // refType->clone();74 result->get_qualifiers() |= other->get_qualifiers();75 }76 } else if ( widenFirst ) {77 // std::cerr << "widen first" << std::endl;78 if ( widenSecond || refType->get_qualifiers() <= other->get_qualifiers() ) {79 result = common;80 result->get_qualifiers() |= refType->get_qualifiers();81 }82 }83 } else {84 // std::cerr << "exact unify failed: " << refType << " " << other << std::endl;85 }86 // std::cerr << "common type of reference [" << refType << "] and non-reference [" << other << "] is [" << result << "]" << std::endl;87 return result;88 }89 90 62 Type *commonType( Type *type1, Type *type2, bool widenFirst, bool widenSecond, const SymTab::Indexer &indexer, TypeEnvironment &env, const OpenVarSet &openVars ) { 91 63 CommonType visitor( type2, widenFirst, widenSecond, indexer, env, openVars ); 92 93 int depth1 = type1->referenceDepth();94 int depth2 = type2->referenceDepth();95 if ( depth1 > 0 || depth2 > 0 ) {96 int diff = depth1-depth2;97 // TODO: should it be possible for commonType to generate complicated conversions? I would argue no, only conversions that involve types of the same reference level or a difference of 1 should be allowed.98 if ( diff > 1 || diff < -1 ) return nullptr;99 100 // special case where one type has a reference depth of 1 larger than the other101 if ( diff > 0 ) {102 return handleReference( safe_dynamic_cast<ReferenceType *>( type1 ), type2, widenFirst, widenSecond, indexer, env, openVars );103 } else if ( diff < 0 ) {104 return handleReference( safe_dynamic_cast<ReferenceType *>( type2 ), type1, widenSecond, widenFirst, indexer, env, openVars );105 }106 // otherwise, both are reference types of the same depth and this is handled by the CommonType visitor.107 }108 109 64 type1->accept( visitor ); 110 65 Type *result = visitor.get_result(); … … 133 88 } // if 134 89 #ifdef DEBUG 135 std::c err<< "============= commonType" << std::endl << "type1 is ";136 type1->print( std::c err);137 std::c err<< " type2 is ";138 type2->print( std::c err);90 std::cout << "============= commonType" << std::endl << "type1 is "; 91 type1->print( std::cout ); 92 std::cout << " type2 is "; 93 type2->print( std::cout ); 139 94 if ( result ) { 140 std::c err<< " common type is ";141 result->print( std::c err);95 std::cout << " common type is "; 96 result->print( std::cout ); 142 97 } else { 143 std::c err<< " no common type";144 } // if 145 std::c err<< std::endl;98 std::cout << " no common type"; 99 } // if 100 std::cout << std::endl; 146 101 #endif 147 102 return result; … … 195 150 } 196 151 197 template< typename Pointer > 198 void CommonType::getCommonWithVoidPointer( Pointer* voidPointer, Pointer* otherPointer ) { 152 void CommonType::getCommonWithVoidPointer( PointerType* voidPointer, PointerType* otherPointer ) { 199 153 if ( TypeInstType* var = dynamic_cast< TypeInstType* >( otherPointer->get_base() ) ) { 200 154 OpenVarSet::const_iterator entry = openVars.find( var->get_name() ); … … 211 165 void CommonType::visit( PointerType *pointerType ) { 212 166 if ( PointerType *otherPointer = dynamic_cast< PointerType* >( type2 ) ) { 213 // std::cerr << "commonType: two pointers: " << pointerType << " / " << otherPointer << std::endl;214 167 if ( widenFirst && dynamic_cast< VoidType* >( otherPointer->get_base() ) && ! isFtype(pointerType->get_base()) ) { 215 168 getCommonWithVoidPointer( otherPointer, pointerType ); … … 218 171 } else if ( ( pointerType->get_base()->get_qualifiers() >= otherPointer->get_base()->get_qualifiers() || widenFirst ) 219 172 && ( pointerType->get_base()->get_qualifiers() <= otherPointer->get_base()->get_qualifiers() || widenSecond ) ) { 220 // std::cerr << "middle case" << std::endl;221 173 Type::Qualifiers tq1 = pointerType->get_base()->get_qualifiers(), tq2 = otherPointer->get_base()->get_qualifiers(); 222 174 pointerType->get_base()->get_qualifiers() = Type::Qualifiers(); … … 225 177 OpenVarSet newOpen( openVars ); 226 178 if ( unifyExact( pointerType->get_base(), otherPointer->get_base(), env, have, need, newOpen, indexer ) ) { 227 // std::cerr << "unifyExact success" << std::endl;228 179 if ( tq1 < tq2 ) { 229 180 result = pointerType->clone(); … … 233 184 result->get_qualifiers() = tq1 | tq2; 234 185 } else { 235 /// std::c err<< "place for ptr-to-type" << std::endl;186 /// std::cout << "place for ptr-to-type" << std::endl; 236 187 } // if 237 188 pointerType->get_base()->get_qualifiers() = tq1; … … 245 196 246 197 void CommonType::visit( __attribute((unused)) ArrayType *arrayType ) {} 247 248 void CommonType::visit( ReferenceType *refType ) {249 if ( ReferenceType *otherRef = dynamic_cast< ReferenceType* >( type2 ) ) {250 // std::cerr << "commonType: both references: " << refType << " / " << otherRef << std::endl;251 // std::cerr << ( refType->get_base()->get_qualifiers() >= otherRef->get_base()->get_qualifiers() || widenFirst ) << (refType->get_base()->get_qualifiers() <= otherRef->get_base()->get_qualifiers() || widenSecond) << std::endl;252 if ( widenFirst && dynamic_cast< VoidType* >( otherRef->get_base() ) && ! isFtype(refType->get_base()) ) {253 getCommonWithVoidPointer( otherRef, refType );254 } else if ( widenSecond && dynamic_cast< VoidType* >( refType->get_base() ) && ! isFtype(otherRef->get_base()) ) {255 getCommonWithVoidPointer( refType, otherRef );256 } else if ( ( refType->get_base()->get_qualifiers() >= otherRef->get_base()->get_qualifiers() || widenFirst )257 && ( refType->get_base()->get_qualifiers() <= otherRef->get_base()->get_qualifiers() || widenSecond ) ) {258 // std::cerr << "middle case" << std::endl;259 Type::Qualifiers tq1 = refType->get_base()->get_qualifiers(), tq2 = otherRef->get_base()->get_qualifiers();260 refType->get_base()->get_qualifiers() = Type::Qualifiers();261 otherRef->get_base()->get_qualifiers() = Type::Qualifiers();262 AssertionSet have, need;263 OpenVarSet newOpen( openVars );264 if ( unifyExact( refType->get_base(), otherRef->get_base(), env, have, need, newOpen, indexer ) ) {265 if ( tq1 < tq2 ) {266 result = refType->clone();267 } else {268 result = otherRef->clone();269 } // if270 result->get_qualifiers() = tq1 | tq2;271 } else {272 /// std::cerr << "place for ptr-to-type" << std::endl;273 } // if274 refType->get_base()->get_qualifiers() = tq1;275 otherRef->get_base()->get_qualifiers() = tq2;276 } // if277 } else if ( widenSecond && dynamic_cast< ZeroType* >( type2 ) ) {278 result = refType->clone();279 result->get_qualifiers() |= type2->get_qualifiers();280 } // if281 }282 283 198 void CommonType::visit( __attribute((unused)) FunctionType *functionType ) {} 284 199 void CommonType::visit( __attribute((unused)) StructInstType *aggregateUseType ) {} … … 288 203 if ( dynamic_cast< BasicType * >( type2 ) || dynamic_cast< ZeroType* >( type2 ) || dynamic_cast< OneType* >( type2 ) ) { 289 204 // reuse BasicType, EnumInstType code by swapping type2 with enumInstType 290 ValueGuard< Type * > temp( type2 );205 Type * temp = type2; 291 206 type2 = enumInstType; 292 temp.old->accept( *this ); 207 temp->accept( *this ); 208 type2 = temp; 293 209 } // if 294 210 } -
src/ResolvExpr/ConversionCost.cc
r28e58fd raf08051 28 28 29 29 namespace ResolvExpr { 30 const Cost Cost::zero = Cost( 0, 0, 0, 0 ); 31 const Cost Cost::infinity = Cost( -1, -1, -1, -1 ); 32 const Cost Cost::unsafe = Cost( 1, 0, 0, 0 ); 33 const Cost Cost::poly = Cost( 0, 1, 0, 0 ); 34 const Cost Cost::safe = Cost( 0, 0, 1, 0 ); 35 const Cost Cost::reference = Cost( 0, 0, 0, 1 ); 36 37 #if 0 38 #define PRINT(x) x 39 #else 40 #define PRINT(x) 41 #endif 30 const Cost Cost::zero = Cost( 0, 0, 0 ); 31 const Cost Cost::infinity = Cost( -1, -1, -1 ); 42 32 43 33 Cost conversionCost( Type *src, Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ) { … … 45 35 EqvClass eqvClass; 46 36 NamedTypeDecl *namedType; 47 PRINT( std::cerr << "type inst " << destAsTypeInst->get_name(); ) 37 /// std::cout << "type inst " << destAsTypeInst->get_name(); 48 38 if ( env.lookup( destAsTypeInst->get_name(), eqvClass ) ) { 49 39 if ( eqvClass.type ) { … … 53 43 } 54 44 } else if ( ( namedType = indexer.lookupType( destAsTypeInst->get_name() ) ) ) { 55 PRINT( std::cerr << " found" << std::endl; ) 45 /// std::cout << " found" << std::endl; 56 46 TypeDecl *type = dynamic_cast< TypeDecl* >( namedType ); 57 47 // all typedefs should be gone by this point 58 48 assert( type ); 59 49 if ( type->get_base() ) { 60 return conversionCost( src, type->get_base(), indexer, env ) + Cost ::safe;50 return conversionCost( src, type->get_base(), indexer, env ) + Cost( 0, 0, 1 ); 61 51 } // if 62 52 } // if 63 PRINT( std::cerr << " not found" << std::endl; ) 64 } // if 65 PRINT( 66 std::cerr << "src is "; 67 src->print( std::cerr ); 68 std::cerr << std::endl << "dest is "; 69 dest->print( std::cerr ); 70 std::cerr << std::endl << "env is" << std::endl; 71 env.print( std::cerr, 8 ); 72 ) 53 /// std::cout << " not found" << std::endl; 54 } // if 55 /// std::cout << "src is "; 56 /// src->print( std::cout ); 57 /// std::cout << std::endl << "dest is "; 58 /// dest->print( std::cout ); 59 /// std::cout << std::endl << "env is" << std::endl; 60 /// env.print( std::cout, 8 ); 73 61 if ( typesCompatibleIgnoreQualifiers( src, dest, indexer, env ) ) { 74 PRINT( std::cerr << "compatible!" << std::endl; ) 75 return Cost ::zero;62 /// std::cout << "compatible!" << std::endl; 63 return Cost( 0, 0, 0 ); 76 64 } else if ( dynamic_cast< VoidType* >( dest ) ) { 77 return Cost::safe; 78 } else if ( ReferenceType * refType = dynamic_cast< ReferenceType * > ( dest ) ) { 79 PRINT( std::cerr << "conversionCost: dest is reference" << std::endl; ) 80 return convertToReferenceCost( src, refType, indexer, env ); 65 return Cost( 0, 0, 1 ); 81 66 } else { 82 67 ConversionCost converter( dest, indexer, env ); … … 85 70 return Cost::infinity; 86 71 } else { 87 return converter.get_cost() + Cost::zero; 88 } // if 89 } // if 90 } 91 92 Cost convertToReferenceCost( Type * src, Type * dest, int diff, const SymTab::Indexer & indexer, const TypeEnvironment & env ) { 93 PRINT( std::cerr << "convert to reference cost..." << std::endl; ) 94 if ( diff > 0 ) { 95 // TODO: document this 96 Cost cost = convertToReferenceCost( safe_dynamic_cast< ReferenceType * >( src )->get_base(), dest, diff-1, indexer, env ); 97 cost.incReference(); 98 return cost; 99 } else if ( diff < -1 ) { 100 // TODO: document this 101 Cost cost = convertToReferenceCost( src, safe_dynamic_cast< ReferenceType * >( dest )->get_base(), diff+1, indexer, env ); 102 cost.incReference(); 103 return cost; 104 } else if ( diff == 0 ) { 105 ReferenceType * srcAsRef = dynamic_cast< ReferenceType * >( src ); 106 ReferenceType * destAsRef = dynamic_cast< ReferenceType * >( dest ); 107 if ( srcAsRef && destAsRef ) { // pointer-like conversions between references 108 PRINT( std::cerr << "converting between references" << std::endl; ) 109 if ( srcAsRef->get_base()->get_qualifiers() <= destAsRef->get_base()->get_qualifiers() && typesCompatibleIgnoreQualifiers( srcAsRef->get_base(), destAsRef->get_base(), indexer, env ) ) { 110 return Cost::safe; 111 } else { // xxx - this discards reference qualifiers from consideration -- reducing qualifiers is a safe conversion; is this right? 112 int assignResult = ptrsAssignable( srcAsRef->get_base(), destAsRef->get_base(), env ); 113 PRINT( std::cerr << "comparing references: " << assignResult << " " << srcAsRef << " " << destAsRef << std::endl; ) 114 if ( assignResult < 0 ) { 115 return Cost::safe; 116 } else if ( assignResult > 0 ) { 117 return Cost::unsafe; 118 } // if 119 } // if 120 } else { 121 PRINT( std::cerr << "reference to rvalue conversion" << std::endl; ) 122 ConversionCost converter( dest, indexer, env ); 123 src->accept( converter ); 124 return converter.get_cost(); 125 } // if 126 } else { 127 ReferenceType * destAsRef = dynamic_cast< ReferenceType * >( dest ); 128 assert( diff == -1 && destAsRef ); 129 if ( typesCompatibleIgnoreQualifiers( src, destAsRef->get_base(), indexer, env ) ) { 130 PRINT( std::cerr << "converting compatible base type" << std::endl; ) 131 if ( src->get_lvalue() ) { 132 PRINT( 133 std::cerr << "lvalue to reference conversion" << std::endl; 134 std::cerr << src << " => " << destAsRef << std::endl; 135 ) 136 // lvalue-to-reference conversion: cv lvalue T => cv T & 137 if ( src->get_qualifiers() == destAsRef->get_base()->get_qualifiers() ) { 138 return Cost::reference; // cost needs to be non-zero to add cast 139 } if ( src->get_qualifiers() < destAsRef->get_base()->get_qualifiers() ) { 140 return Cost::safe; // cost needs to be higher than previous cast to differentiate adding qualifiers vs. keeping same 141 } else { 142 return Cost::unsafe; 143 } // if 144 } else if ( destAsRef->get_base()->get_const() ) { 145 PRINT( std::cerr << "rvalue to const ref conversion" << std::endl; ) 146 // rvalue-to-const-reference conversion: T => const T & 147 return Cost::safe; 148 } else { 149 PRINT( std::cerr << "rvalue to non-const reference conversion" << std::endl; ) 150 // rvalue-to-reference conversion: T => T & 151 return Cost::unsafe; 152 } // if 153 } // if 154 PRINT( std::cerr << "attempting to convert from incompatible base type -- fail" << std::endl; ) 155 } 156 return Cost::infinity; 157 } 158 159 Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env ) { 160 int sdepth = src->referenceDepth(), ddepth = dest->referenceDepth(); 161 return convertToReferenceCost( src, dest, sdepth-ddepth, indexer, env ); 72 return converter.get_cost() + Cost( 0, 0, 0 ); 73 } // if 74 } // if 162 75 } 163 76 … … 251 164 int tableResult = costMatrix[ basicType->get_kind() ][ destAsBasic->get_kind() ]; 252 165 if ( tableResult == -1 ) { 253 cost = Cost::unsafe; 254 } else { 255 cost = Cost::zero; 256 cost.incSafe( tableResult ); 166 cost = Cost( 1, 0, 0 ); 167 } else { 168 cost = Cost( 0, 0, tableResult ); 257 169 } // if 258 170 } else if ( dynamic_cast< EnumInstType *>( dest ) ) { 259 171 // xxx - not positive this is correct, but appears to allow casting int => enum 260 cost = Cost ::unsafe;172 cost = Cost( 1, 0, 0 ); 261 173 } else if ( dynamic_cast< ZeroType* >( dest ) != nullptr || dynamic_cast< OneType* >( dest ) != nullptr ) { 262 cost = Cost ::unsafe;174 cost = Cost( 1, 0, 0 ); 263 175 } // if 264 176 } … … 266 178 void ConversionCost::visit(PointerType *pointerType) { 267 179 if ( PointerType *destAsPtr = dynamic_cast< PointerType* >( dest ) ) { 268 PRINT( std::cerr << pointerType << " ===> " << destAsPtr; ) 269 Type::Qualifiers tq1 = pointerType->get_base()->get_qualifiers(); 270 Type::Qualifiers tq2 = destAsPtr->get_base()->get_qualifiers(); 271 if ( tq1 <= tq2 && typesCompatibleIgnoreQualifiers( pointerType->get_base(), destAsPtr->get_base(), indexer, env ) ) { 272 if ( tq1 == tq2 ) { 273 // types are the same 274 cost = Cost::zero; 275 } else { 276 // types are the same, except otherPointer has more qualifiers 277 PRINT( std::cerr << " :: compatible and good qualifiers" << std::endl; ) 278 cost = Cost::safe; 279 } 280 } else { // xxx - this discards qualifiers from consideration -- reducing qualifiers is a safe conversion; is this right? 180 if ( pointerType->get_base()->get_qualifiers() <= destAsPtr->get_base()->get_qualifiers() && typesCompatibleIgnoreQualifiers( pointerType->get_base(), destAsPtr->get_base(), indexer, env ) ) { 181 cost = Cost( 0, 0, 1 ); 182 } else { 281 183 int assignResult = ptrsAssignable( pointerType->get_base(), destAsPtr->get_base(), env ); 282 PRINT( std::cerr << " :: " << assignResult << std::endl; ) 283 if ( assignResult < 0 && pointerType->get_base()->get_qualifiers() <= destAsPtr->get_qualifiers() ) { 284 cost = Cost::safe; 184 if ( assignResult < 0 ) { 185 cost = Cost( 0, 0, 1 ); 285 186 } else if ( assignResult > 0 ) { 286 cost = Cost ::unsafe;187 cost = Cost( 1, 0, 0 ); 287 188 } // if 288 // assignResult == 0 means Cost::Infinity289 189 } // if 290 190 } else if ( dynamic_cast< ZeroType* >( dest ) != nullptr || dynamic_cast< OneType* >( dest ) != nullptr ) { 291 cost = Cost ::unsafe;191 cost = Cost( 1, 0, 0 ); 292 192 } // if 293 193 } 294 194 295 195 void ConversionCost::visit(__attribute((unused)) ArrayType *arrayType) {} 296 297 void ConversionCost::visit(ReferenceType *refType) {298 // Note: dest can never be a reference, since it would have been caught in an earlier check299 assert( ! dynamic_cast< ReferenceType * >( dest ) );300 // convert reference to rvalue: cv T1 & => T2301 // recursively compute conversion cost from T1 to T2.302 // cv can be safely dropped because of 'implicit dereference' behavior.303 refType->get_base()->accept( *this );304 if ( refType->get_base()->get_qualifiers() == dest->get_qualifiers() ) {305 cost.incReference(); // prefer exact qualifiers306 } else if ( refType->get_base()->get_qualifiers() < dest->get_qualifiers() ) {307 cost.incSafe(); // then gaining qualifiers308 } else {309 cost.incUnsafe(); // lose qualifiers as last resort310 }311 PRINT( std::cerr << refType << " ==> " << dest << " " << cost << std::endl; )312 }313 314 196 void ConversionCost::visit(__attribute((unused)) FunctionType *functionType) {} 315 197 … … 333 215 static Type::Qualifiers q; 334 216 static BasicType integer( q, BasicType::SignedInt ); 335 integer.accept( *this ); // safe if dest >= int336 if ( cost < Cost ::unsafe) {217 integer.accept( *this ); 218 if ( cost < Cost( 1, 0, 0 ) ) { 337 219 cost.incSafe(); 338 220 } // if … … 356 238 assert( type ); 357 239 if ( type->get_base() ) { 358 cost = conversionCost( type->get_base(), dest, indexer, env ) + Cost ::safe;240 cost = conversionCost( type->get_base(), dest, indexer, env ) + Cost( 0, 0, 1 ); 359 241 } // if 360 242 } // if … … 362 244 363 245 void ConversionCost::visit( __attribute((unused)) TupleType *tupleType) { 364 Cost c = Cost::zero;246 Cost c; 365 247 if ( TupleType *destAsTuple = dynamic_cast< TupleType* >( dest ) ) { 366 248 std::list< Type* >::const_iterator srcIt = tupleType->get_types().begin(); … … 394 276 int tableResult = costMatrix[ BasicType::SignedInt ][ destAsBasic->get_kind() ]; 395 277 if ( tableResult == -1 ) { 396 cost = Cost::unsafe; 397 } else { 398 cost = Cost::zero; 399 cost.incSafe( tableResult + 1 ); 278 cost = Cost( 1, 0, 0 ); 279 } else { 280 cost = Cost( 0, 0, tableResult + 1 ); 400 281 } 401 282 } else if ( dynamic_cast< PointerType* >( dest ) ) { 402 cost = Cost ::safe;283 cost = Cost( 0, 0, 1 ); 403 284 } 404 285 } … … 411 292 int tableResult = costMatrix[ BasicType::SignedInt ][ destAsBasic->get_kind() ]; 412 293 if ( tableResult == -1 ) { 413 cost = Cost::unsafe; 414 } else { 415 cost = Cost::zero; 416 cost.incSafe( tableResult + 1 ); 294 cost = Cost( 1, 0, 0 ); 295 } else { 296 cost = Cost( 0, 0, tableResult + 1 ); 417 297 } 418 298 } -
src/ResolvExpr/ConversionCost.h
r28e58fd raf08051 37 37 virtual void visit(PointerType *pointerType); 38 38 virtual void visit(ArrayType *arrayType); 39 virtual void visit(ReferenceType *refType);40 39 virtual void visit(FunctionType *functionType); 41 40 virtual void visit(StructInstType *aggregateUseType); … … 54 53 const TypeEnvironment &env; 55 54 }; 56 57 Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env );58 55 } // namespace ResolvExpr 59 56 -
src/ResolvExpr/Cost.h
r28e58fd raf08051 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Cost.h -- 7 // Cost.h -- 8 8 // 9 9 // Author : Richard C. Bilson … … 20 20 namespace ResolvExpr { 21 21 class Cost { 22 private:23 Cost( int unsafeCost, int polyCost, int safeCost, int referenceCost );24 25 22 public: 26 Cost & incUnsafe( int inc = 1 ); 27 Cost & incPoly( int inc = 1 ); 28 Cost & incSafe( int inc = 1 ); 29 Cost & incReference( int inc = 1 ); 30 23 Cost(); 24 Cost( int unsafe, int poly, int safe ); 25 26 void incUnsafe( int inc = 1 ); 27 void incPoly( int inc = 1 ); 28 void incSafe( int inc = 1 ); 29 31 30 Cost operator+( const Cost &other ) const; 32 31 Cost operator-( const Cost &other ) const; … … 36 35 bool operator!=( const Cost &other ) const; 37 36 friend std::ostream &operator<<( std::ostream &os, const Cost &cost ); 38 37 39 38 static const Cost zero; 40 39 static const Cost infinity; 41 42 static const Cost unsafe;43 static const Cost poly;44 static const Cost safe;45 static const Cost reference;46 40 private: 47 41 int compare( const Cost &other ) const; 48 42 49 int unsafeCost; 50 int polyCost; 51 int safeCost; 52 int referenceCost; 43 int unsafe; 44 int poly; 45 int safe; 53 46 }; 54 47 55 inline Cost::Cost( int unsafeCost, int polyCost, int safeCost, int referenceCost ) : unsafeCost( unsafeCost ), polyCost( polyCost ), safeCost( safeCost ), referenceCost( referenceCost) {}48 inline Cost::Cost() : unsafe( 0 ), poly( 0 ), safe( 0 ) {} 56 49 57 inline Cost & Cost::incUnsafe( int inc ) {58 if ( *this == infinity ) return *this; 59 unsafeCost += inc;60 return *this;50 inline Cost::Cost( int unsafe, int poly, int safe ) : unsafe( unsafe ), poly( poly ), safe( safe ) {} 51 52 inline void Cost::incUnsafe( int inc ) { 53 unsafe += inc; 61 54 } 62 55 63 inline Cost & Cost::incPoly( int inc ) { 64 if ( *this == infinity ) return *this; 65 polyCost += inc; 66 return *this; 56 inline void Cost::incPoly( int inc ) { 57 poly += inc; 67 58 } 68 59 69 inline Cost & Cost::incSafe( int inc ) { 70 if ( *this == infinity ) return *this; 71 safeCost += inc; 72 return *this; 73 } 74 75 inline Cost & Cost::incReference( int inc ) { 76 if ( *this == infinity ) return *this; 77 referenceCost += inc; 78 return *this; 60 inline void Cost::incSafe( int inc ) { 61 safe += inc; 79 62 } 80 63 81 64 inline Cost Cost::operator+( const Cost &other ) const { 82 if ( *this == infinity || other == infinity ) return infinity; 83 return Cost( unsafeCost + other.unsafeCost, polyCost + other.polyCost, safeCost + other.safeCost, referenceCost + other.referenceCost ); 65 return Cost( unsafe + other.unsafe, poly + other.poly, safe + other.safe ); 84 66 } 85 67 86 68 inline Cost Cost::operator-( const Cost &other ) const { 87 if ( *this == infinity || other == infinity ) return infinity; 88 return Cost( unsafeCost - other.unsafeCost, polyCost - other.polyCost, safeCost - other.safeCost, referenceCost - other.referenceCost ); 69 return Cost( unsafe - other.unsafe, poly - other.poly, safe - other.safe ); 89 70 } 90 71 91 72 inline Cost &Cost::operator+=( const Cost &other ) { 92 if ( *this == infinity ) return *this; 93 if ( other == infinity ) { 94 *this = infinity; 95 return *this; 96 } 97 unsafeCost += other.unsafeCost; 98 polyCost += other.polyCost; 99 safeCost += other.safeCost; 100 referenceCost += other.referenceCost; 73 unsafe += other.unsafe; 74 poly += other.poly; 75 safe += other.safe; 101 76 return *this; 102 77 } 103 78 104 79 inline bool Cost::operator<( const Cost &other ) const { 105 if ( *this == infinity ) return false; 106 if ( other == infinity ) return true; 107 108 if ( unsafeCost > other.unsafeCost ) { 80 if ( *this == infinity ) return false; 81 if ( other == infinity ) return true; 82 if ( unsafe > other.unsafe ) { 109 83 return false; 110 } else if ( unsafeCost < other.unsafeCost) {84 } else if ( unsafe < other.unsafe ) { 111 85 return true; 112 } else if ( polyCost > other.polyCost) {86 } else if ( poly > other.poly ) { 113 87 return false; 114 } else if ( polyCost < other.polyCost) {88 } else if ( poly < other.poly ) { 115 89 return true; 116 } else if ( safeCost > other.safeCost) {90 } else if ( safe > other.safe ) { 117 91 return false; 118 } else if ( safeCost < other.safeCost) {92 } else if ( safe < other.safe ) { 119 93 return true; 120 } else if ( referenceCost > other.referenceCost ){94 } else { 121 95 return false; 122 } else if ( referenceCost < other.referenceCost ) { 123 return true; 124 } else { 125 return false; 126 } // if 96 } // if 127 97 } 128 98 129 99 inline bool Cost::operator==( const Cost &other ) const { 130 return unsafeCost == other.unsafeCost 131 && polyCost == other.polyCost 132 && safeCost == other.safeCost 133 && referenceCost == other.referenceCost; 100 return unsafe == other.unsafe 101 && poly == other.poly 102 && safe == other.safe; 134 103 } 135 104 … … 139 108 140 109 inline std::ostream &operator<<( std::ostream &os, const Cost &cost ) { 141 os << "( " << cost.unsafe Cost << ", " << cost.polyCost << ", " << cost.safeCost << ", " << cost.referenceCost<< " )";110 os << "( " << cost.unsafe << ", " << cost.poly << ", " << cost.safe << " )"; 142 111 return os; 143 112 } -
src/ResolvExpr/PtrsAssignable.cc
r28e58fd raf08051 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PtrsAssignable.cc -- 7 // PtrsAssignable.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 82 82 void PtrsAssignable::visit( __attribute__((unused)) UnionInstType *inst ) {} 83 83 84 void PtrsAssignable::visit( EnumInstType * ) {85 if ( dynamic_cast< EnumInstType* >( dest ) ) {84 void PtrsAssignable::visit( EnumInstType *inst ) { 85 if ( dynamic_cast< EnumInstType* >( inst ) ) { 86 86 result = 1; 87 } else if ( BasicType *bt = dynamic_cast< BasicType* >( dest ) ) {87 } else if ( BasicType *bt = dynamic_cast< BasicType* >( inst ) ) { 88 88 result = bt->get_kind() == BasicType::SignedInt; 89 89 } … … 104 104 void PtrsAssignable::visit( __attribute__((unused)) ZeroType *zeroType ) {} 105 105 void PtrsAssignable::visit( __attribute__((unused)) OneType *oneType ) {} 106 106 107 107 } // namespace ResolvExpr 108 108 -
src/ResolvExpr/ResolveTypeof.cc
r28e58fd raf08051 65 65 assert( newExpr->has_result() && ! newExpr->get_result()->isVoid() ); 66 66 Type *newType = newExpr->get_result(); 67 newExpr->set_result( nullptr );68 67 delete typeofType; 69 delete newExpr;70 68 return newType; 71 69 } // if -
src/ResolvExpr/Unify.cc
r28e58fd raf08051 53 53 virtual void visit(PointerType *pointerType); 54 54 virtual void visit(ArrayType *arrayType); 55 virtual void visit(ReferenceType *refType);56 55 virtual void visit(FunctionType *functionType); 57 56 virtual void visit(StructInstType *aggregateUseType); … … 154 153 155 154 bool bindVar( TypeInstType *typeInst, Type *other, const TypeDecl::Data & data, TypeEnvironment &env, AssertionSet &needAssertions, AssertionSet &haveAssertions, const OpenVarSet &openVars, WidenMode widenMode, const SymTab::Indexer &indexer ) { 156 // remove references from other, so that type variables can only bind to value types157 other = other->stripReferences();158 155 OpenVarSet::const_iterator tyvar = openVars.find( typeInst->get_name() ); 159 156 assert( tyvar != openVars.end() ); … … 390 387 } // if 391 388 } else { 392 common = type1->clone();393 common->get_qualifiers() = tq1 | tq2;394 389 result = true; 395 390 } // if … … 441 436 markAssertions( haveAssertions, needAssertions, pointerType ); 442 437 markAssertions( haveAssertions, needAssertions, otherPointer ); 443 } // if444 }445 446 void Unify::visit(ReferenceType *refType) {447 if ( ReferenceType *otherRef = dynamic_cast< ReferenceType* >( type2 ) ) {448 result = unifyExact( refType->get_base(), otherRef->get_base(), env, needAssertions, haveAssertions, openVars, WidenMode( false, false ), indexer );449 markAssertions( haveAssertions, needAssertions, refType );450 markAssertions( haveAssertions, needAssertions, otherRef );451 438 } // if 452 439 } -
src/ResolvExpr/typeops.h
r28e58fd raf08051 66 66 Cost castCost( Type *src, Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ); 67 67 68 template< typename SrcIterator, typename DestIterator > 69 Cost castCostList( SrcIterator srcBegin, SrcIterator srcEnd, DestIterator destBegin, DestIterator destEnd, const SymTab::Indexer &indexer, const TypeEnvironment &env ) { 70 Cost ret; 71 if ( destBegin == destEnd ) { 72 if ( srcBegin == srcEnd ) { 73 return Cost::zero; 74 } else { 75 return Cost( 0, 0, 1 ); 76 } // if 77 } // if 78 while ( srcBegin != srcEnd && destBegin != destEnd ) { 79 Cost thisCost = castCost( *srcBegin++, *destBegin++, indexer, env ); 80 if ( thisCost == Cost::infinity ) { 81 return Cost::infinity; 82 } // if 83 ret += thisCost; 84 } // while 85 if ( srcBegin == srcEnd && destBegin == destEnd ) { 86 return ret; 87 } else { 88 return Cost::infinity; 89 } // if 90 } 91 68 92 // in ConversionCost.cc 69 93 Cost conversionCost( Type *src, Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ); 94 95 template< typename SrcIterator, typename DestIterator > 96 Cost conversionCostList( SrcIterator srcBegin, SrcIterator srcEnd, DestIterator destBegin, DestIterator destEnd, const SymTab::Indexer &indexer, const TypeEnvironment &env ) { 97 Cost ret; 98 while ( srcBegin != srcEnd && destBegin != destEnd ) { 99 Cost thisCost = conversionCost( *srcBegin++, *destBegin++, indexer, env ); 100 if ( thisCost == Cost::infinity ) { 101 return Cost::infinity; 102 } // if 103 ret += thisCost; 104 } // while 105 if ( srcBegin == srcEnd && destBegin == destEnd ) { 106 return ret; 107 } else { 108 return Cost::infinity; 109 } // if 110 } 70 111 71 112 // in PtrsAssignable.cc -
src/SymTab/Autogen.cc
r28e58fd raf08051 13 13 // Update Count : 62 14 14 // 15 16 15 #include "Autogen.h" 17 16 … … 25 24 #include <vector> // for vector 26 25 27 #include "AddVisit.h" // for addVisit 28 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign 29 #include "Common/ScopedMap.h" // for ScopedMap<>::const_iterator, Scope... 30 #include "Common/utility.h" // for cloneAll, operator+ 31 #include "GenPoly/DeclMutator.h" // for DeclMutator 32 #include "GenPoly/ScopedSet.h" // for ScopedSet, ScopedSet<>::iterator 33 #include "SymTab/Mangler.h" // for Mangler 34 #include "SynTree/Attribute.h" // For Attribute 35 #include "SynTree/Mutator.h" // for maybeMutate 36 #include "SynTree/Statement.h" // for CompoundStmt, ReturnStmt, ExprStmt 37 #include "SynTree/Type.h" // for FunctionType, Type, TypeInstType 38 #include "SynTree/Visitor.h" // for maybeAccept, Visitor, acceptAll 39 40 class Attribute; 26 #include "AddVisit.h" // for addVisit 27 #include "Common/ScopedMap.h" // for ScopedMap 28 #include "GenPoly/DeclMutator.h" // for DeclMutator 29 #include "GenPoly/ScopedSet.h" // for ScopedSet 30 #include "Parser/LinkageSpec.h" // for AutoGen, Intrinsic, Spec 31 #include "SymTab/Mangler.h" // for mangleType 32 #include "SynTree/Statement.h" // for SwitchStmt (ptr only), CompoundStmt 33 #include "SynTree/Type.h" // for Type, ArrayType, Type::StorageClasses 34 #include "SynTree/Visitor.h" // for Visitor 41 35 42 36 namespace SymTab { … … 136 130 FunctionType * genDefaultType( Type * paramType ) { 137 131 FunctionType *ftype = new FunctionType( Type::Qualifiers(), false ); 138 ObjectDecl *dstParam = new ObjectDecl( "_dst", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), paramType->clone() ), nullptr );132 ObjectDecl *dstParam = new ObjectDecl( "_dst", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new PointerType( Type::Qualifiers(), paramType->clone() ), nullptr ); 139 133 ftype->get_parameters().push_back( dstParam ); 140 134 … … 156 150 ftype->get_returnVals().push_back( returnVal ); 157 151 return ftype; 152 } 153 154 /// true if the aggregate's layout is dynamic 155 template< typename AggrDecl > 156 bool hasDynamicLayout( AggrDecl * aggregateDecl ) { 157 for ( TypeDecl * param : aggregateDecl->get_parameters() ) { 158 if ( param->isComplete() ) return true; 159 } 160 return false; 158 161 } 159 162 … … 178 181 FunctionType * ftype = funcDecl->get_functionType(); 179 182 assert( ! ftype->get_parameters().empty() ); 180 Type * t = InitTweak::getPointerBase( ftype->get_parameters().front()->get_type() ); 181 assert( t ); 183 Type * t = safe_dynamic_cast< PointerType * >( ftype->get_parameters().front()->get_type() )->get_base(); 182 184 map.insert( Mangler::mangleType( t ), true ); 183 185 } … … 225 227 FunctionType * ftype = data.genType( refType ); 226 228 227 if(concurrent_type && CodeGen::isDestructor( data.fname )) {229 if(concurrent_type && InitTweak::isDestructor( data.fname )) { 228 230 ftype->get_parameters().front()->get_type()->set_mutex( true ); 229 231 } … … 277 279 FunctionType *copyCtorType = genCopyType( refType->clone() ); 278 280 279 // add unused attribute to parameters of default constructor and destructor280 ctorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) );281 dtorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) );282 283 281 // xxx - should we also generate void ?{}(E *, int) and E ?{}(E *, E)? 284 282 // right now these cases work, but that might change. … … 303 301 304 302 /// generates a single struct member operation (constructor call, destructor call, assignment call) 305 void makeStructMemberOp( ObjectDecl * dstParam, Expression * src, DeclarationWithType * field, FunctionDecl * func, bool forward = true ) { 303 void makeStructMemberOp( ObjectDecl * dstParam, Expression * src, DeclarationWithType * field, FunctionDecl * func, bool isDynamicLayout, bool forward = true ) { 304 ObjectDecl * returnVal = NULL; 305 if ( ! func->get_functionType()->get_returnVals().empty() ) { 306 returnVal = dynamic_cast<ObjectDecl*>( func->get_functionType()->get_returnVals().front() ); 307 } 308 306 309 InitTweak::InitExpander srcParam( src ); 307 310 308 // assign to destination 309 Expression *dstselect = new MemberExpr( field, new CastExpr( new VariableExpr( dstParam ), safe_dynamic_cast< ReferenceType* >( dstParam->get_type() )->get_base()->clone() ) ); 311 // assign to destination (and return value if generic) 312 UntypedExpr *derefExpr = UntypedExpr::createDeref( new VariableExpr( dstParam ) ); 313 Expression *dstselect = new MemberExpr( field, derefExpr ); 310 314 genImplicitCall( srcParam, dstselect, func->get_name(), back_inserter( func->get_statements()->get_kids() ), field, forward ); 315 316 if ( isDynamicLayout && returnVal ) { 317 // xxx - there used to be a dereference on returnVal, but this seems to have been wrong? 318 Expression *retselect = new MemberExpr( field, new VariableExpr( returnVal ) ); 319 genImplicitCall( srcParam, retselect, func->get_name(), back_inserter( func->get_statements()->get_kids() ), field, forward ); 320 } // if 311 321 } 312 322 313 323 /// generates the body of a struct function by iterating the struct members (via parameters) - generates default ctor, copy ctor, assignment, and dtor bodies, but NOT field ctor bodies 314 324 template<typename Iterator> 315 void makeStructFunctionBody( Iterator member, Iterator end, FunctionDecl * func, bool forward = true ) {325 void makeStructFunctionBody( Iterator member, Iterator end, FunctionDecl * func, bool isDynamicLayout, bool forward = true ) { 316 326 for ( ; member != end; ++member ) { 317 327 if ( DeclarationWithType *field = dynamic_cast< DeclarationWithType * >( *member ) ) { // otherwise some form of type declaration, e.g. Aggregate … … 349 359 350 360 Expression *srcselect = srcParam ? new MemberExpr( field, new VariableExpr( srcParam ) ) : NULL; 351 makeStructMemberOp( dstParam, srcselect, field, func, forward );361 makeStructMemberOp( dstParam, srcselect, field, func, isDynamicLayout, forward ); 352 362 } // if 353 363 } // for … … 357 367 /// void ?{}(A *, int) and void?{}(A *, int, int) for a struct A which has two int fields. 358 368 template<typename Iterator> 359 void makeStructFieldCtorBody( Iterator member, Iterator end, FunctionDecl * func ) {369 void makeStructFieldCtorBody( Iterator member, Iterator end, FunctionDecl * func, bool isDynamicLayout ) { 360 370 FunctionType * ftype = func->get_functionType(); 361 371 std::list<DeclarationWithType*> & params = ftype->get_parameters(); … … 383 393 // matching parameter, initialize field with copy ctor 384 394 Expression *srcselect = new VariableExpr(*parameter); 385 makeStructMemberOp( dstParam, srcselect, field, func );395 makeStructMemberOp( dstParam, srcselect, field, func, isDynamicLayout ); 386 396 ++parameter; 387 397 } else { 388 398 // no matching parameter, initialize field with default ctor 389 makeStructMemberOp( dstParam, NULL, field, func );399 makeStructMemberOp( dstParam, NULL, field, func, isDynamicLayout ); 390 400 } 391 401 } … … 403 413 // Make function polymorphic in same parameters as generic struct, if applicable 404 414 const std::list< TypeDecl* > & typeParams = aggregateDecl->get_parameters(); // List of type variables to be placed on the generated functions 415 bool isDynamicLayout = hasDynamicLayout( aggregateDecl ); // NOTE this flag is an incredibly ugly kludge; we should fix the assignment signature instead (ditto for union) 405 416 406 417 // generate each of the functions based on the supplied FuncData objects … … 412 423 413 424 // field ctors are only generated if default constructor and copy constructor are both generated 414 unsigned numCtors = std::count_if( newFuncs.begin(), newFuncs.end(), [](FunctionDecl * dcl) { return CodeGen::isConstructor( dcl->get_name() ); } );425 unsigned numCtors = std::count_if( newFuncs.begin(), newFuncs.end(), [](FunctionDecl * dcl) { return InitTweak::isConstructor( dcl->get_name() ); } ); 415 426 416 427 if ( functionNesting == 0 ) { … … 427 438 // generate appropriate calls to member ctor, assignment 428 439 // destructor needs to do everything in reverse, so pass "forward" based on whether the function is a destructor 429 if ( ! CodeGen::isDestructor( dcl->get_name() ) ) {430 makeStructFunctionBody( aggregateDecl->get_members().begin(), aggregateDecl->get_members().end(), dcl );440 if ( ! InitTweak::isDestructor( dcl->get_name() ) ) { 441 makeStructFunctionBody( aggregateDecl->get_members().begin(), aggregateDecl->get_members().end(), dcl, isDynamicLayout ); 431 442 } else { 432 makeStructFunctionBody( aggregateDecl->get_members().rbegin(), aggregateDecl->get_members().rend(), dcl, false );433 } 434 if ( CodeGen::isAssignment( dcl->get_name() ) ) {443 makeStructFunctionBody( aggregateDecl->get_members().rbegin(), aggregateDecl->get_members().rend(), dcl, isDynamicLayout, false ); 444 } 445 if ( InitTweak::isAssignment( dcl->get_name() ) ) { 435 446 // assignment needs to return a value 436 447 FunctionType * assignType = dcl->get_functionType(); … … 461 472 // our inheritance model. I think the correct way to handle this is to 462 473 // cast the structure to the type of the member and let the resolver 463 // figure out whether it's valid/choose the correct unnamed member 474 // figure out whether it's valid and have a pass afterwards that fixes 475 // the assignment to use pointer arithmetic with the offset of the 476 // member, much like how generic type members are handled. 464 477 continue; 465 478 } 466 479 memCtorType->get_parameters().push_back( new ObjectDecl( member->get_name(), Type::StorageClasses(), LinkageSpec::Cforall, 0, member->get_type()->clone(), 0 ) ); 467 480 FunctionDecl * ctor = genFunc( "?{}", memCtorType->clone(), functionNesting ); 468 makeStructFieldCtorBody( aggregateDecl->get_members().begin(), aggregateDecl->get_members().end(), ctor );481 makeStructFieldCtorBody( aggregateDecl->get_members().begin(), aggregateDecl->get_members().end(), ctor, isDynamicLayout ); 469 482 declsToAdd.push_back( ctor ); 470 483 } … … 477 490 void makeUnionFieldsAssignment( ObjectDecl * srcParam, ObjectDecl * dstParam, OutputIterator out ) { 478 491 UntypedExpr *copy = new UntypedExpr( new NameExpr( "__builtin_memcpy" ) ); 479 copy->get_args().push_back( new AddressExpr( new VariableExpr( dstParam )) );492 copy->get_args().push_back( new VariableExpr( dstParam ) ); 480 493 copy->get_args().push_back( new AddressExpr( new VariableExpr( srcParam ) ) ); 481 494 copy->get_args().push_back( new SizeofExpr( srcParam->get_type()->clone() ) ); … … 489 502 ObjectDecl * dstParam = safe_dynamic_cast< ObjectDecl * >( ftype->get_parameters().front() ); 490 503 ObjectDecl * srcParam = safe_dynamic_cast< ObjectDecl * >( ftype->get_parameters().back() ); 504 ObjectDecl * returnVal = nullptr; 505 if ( ! ftype->get_returnVals().empty() ) { 506 returnVal = safe_dynamic_cast< ObjectDecl * >( ftype->get_returnVals().front() ); 507 } 491 508 492 509 makeUnionFieldsAssignment( srcParam, dstParam, back_inserter( funcDecl->get_statements()->get_kids() ) ); 493 if ( CodeGen::isAssignment( funcDecl->get_name() ) ) { 494 // also generate return statement in assignment 510 if ( returnVal ) { 495 511 funcDecl->get_statements()->get_kids().push_back( new ReturnStmt( noLabels, new VariableExpr( srcParam ) ) ); 496 512 } … … 519 535 cloneAll( typeParams, copyCtorType->get_forall() ); 520 536 cloneAll( typeParams, assignType->get_forall() ); 521 522 // add unused attribute to parameters of default constructor and destructor523 ctorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) );524 dtorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) );525 537 526 538 // Routines at global scope marked "static" to prevent multiple definitions is separate translation units -
src/SymTab/Autogen.h
r28e58fd raf08051 40 40 extern Type * SizeType; 41 41 42 /// intrinsic dereference operator for unqualified types - set when *? function is seen in FindSpecialDeclarations.43 /// Useful for creating dereference ApplicationExprs without a full resolver pass.44 extern FunctionDecl * dereferenceOperator;45 46 // temporary47 FunctionType * genAssignType( Type * paramType );48 49 42 /// inserts into out a generated call expression to function fname with arguments dstParam and srcParam. Intended to be used with generated ?=?, ?{}, and ^?{} calls. 50 43 template< typename OutputIterator > … … 55 48 template< typename OutputIterator > 56 49 Statement * genScalarCall( InitTweak::InitExpander & srcParam, Expression *dstParam, const std::string & fname, OutputIterator out, Type * type, bool addCast = false ) { 57 58 59 50 // want to be able to generate assignment, ctor, and dtor generically, 51 // so fname is either ?=?, ?{}, or ^?{} 52 UntypedExpr *fExpr = new UntypedExpr( new NameExpr( fname ) ); 60 53 61 if ( addCast ) { 62 // cast to T& with qualifiers removed, so that qualified objects can be constructed 63 // and destructed with the same functions as non-qualified objects. 64 // unfortunately, lvalue is considered a qualifier. For AddressExpr to resolve, its argument 65 // must have an lvalue qualified type, so remove all qualifiers except lvalue. If we ever 66 // remove lvalue as a qualifier, this can change to 67 // type->get_qualifiers() = Type::Qualifiers(); 68 assert( type ); 69 Type * castType = type->clone(); 70 castType->get_qualifiers() -= Type::Qualifiers( Type::Lvalue | Type::Const | Type::Volatile | Type::Restrict | Type::Atomic ); 71 // castType->set_lvalue( true ); // xxx - might not need this 72 dstParam = new CastExpr( dstParam, new ReferenceType( Type::Qualifiers(), castType ) ); 73 } 74 fExpr->get_args().push_back( dstParam ); 54 // do something special for unnamed members 55 dstParam = new AddressExpr( dstParam ); 56 if ( addCast ) { 57 // cast to T* with qualifiers removed, so that qualified objects can be constructed 58 // and destructed with the same functions as non-qualified objects. 59 // unfortunately, lvalue is considered a qualifier. For AddressExpr to resolve, its argument 60 // must have an lvalue qualified type, so remove all qualifiers except lvalue. If we ever 61 // remove lvalue as a qualifier, this can change to 62 // type->get_qualifiers() = Type::Qualifiers(); 63 assert( type ); 64 Type * castType = type->clone(); 65 castType->get_qualifiers() -= Type::Qualifiers( Type::Const | Type::Volatile | Type::Restrict | Type::Atomic ); 66 castType->set_lvalue( true ); // xxx - might not need this 67 dstParam = new CastExpr( dstParam, new PointerType( Type::Qualifiers(), castType ) ); 68 } 69 fExpr->get_args().push_back( dstParam ); 75 70 76 71 Statement * listInit = srcParam.buildListInit( fExpr ); 77 72 78 79 73 std::list< Expression * > args = *++srcParam; 74 fExpr->get_args().splice( fExpr->get_args().end(), args ); 80 75 81 76 *out++ = new ExprStmt( noLabels, fExpr ); 82 77 83 78 srcParam.clearArrayIndices(); 84 79 85 80 return listInit; 86 81 } 87 82 … … 119 114 120 115 UntypedExpr *inc = new UntypedExpr( update ); 121 inc->get_args().push_back( new VariableExpr( index) );116 inc->get_args().push_back( new AddressExpr( new VariableExpr( index ) ) ); 122 117 123 118 UntypedExpr *dstIndex = new UntypedExpr( new NameExpr( "?[?]" ) ); -
src/SymTab/Indexer.cc
r28e58fd raf08051 23 23 #include <utility> // for pair, make_pair, move 24 24 25 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign26 25 #include "Common/SemanticError.h" // for SemanticError 27 26 #include "Common/utility.h" // for cloneAll … … 112 111 void Indexer::removeSpecialOverrides( const std::string &id, std::list< DeclarationWithType * > & out ) const { 113 112 // only need to perform this step for constructors, destructors, and assignment functions 114 if ( ! CodeGen::isCtorDtorAssign( id ) ) return;113 if ( ! InitTweak::isCtorDtorAssign( id ) ) return; 115 114 116 115 // helpful data structure … … 140 139 decls.push_back( DeclBall{ function, isUserDefinedFunc, isDefaultCtor, isDtor, isCopyFunc } ); 141 140 existsUserDefinedFunc = existsUserDefinedFunc || isUserDefinedFunc; 142 existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && CodeGen::isConstructor( function->get_name() ) );141 existsUserDefinedCtor = existsUserDefinedCtor || (isUserDefinedFunc && InitTweak::isConstructor( function->get_name() ) ); 143 142 existsUserDefinedDtor = existsUserDefinedDtor || (isUserDefinedFunc && isDtor); 144 143 existsUserDefinedCopyFunc = existsUserDefinedCopyFunc || (isUserDefinedFunc && isCopyFunc); … … 158 157 assert( ! params.empty() ); 159 158 // use base type of pointer, so that qualifiers on the pointer type aren't considered. 160 Type * base = InitTweak::getPointerBase( params.front()->get_type() ); 161 assert( base ); 159 Type * base = safe_dynamic_cast< PointerType * >( params.front()->get_type() )->get_base(); 162 160 funcMap[ Mangler::mangle( base ) ] += function; 163 161 } else { -
src/SymTab/Mangler.cc
r28e58fd raf08051 132 132 mangleName << "A0"; 133 133 maybeAccept( arrayType->get_base(), *this ); 134 }135 136 void Mangler::visit( ReferenceType *refType ) {137 printQualifiers( refType );138 mangleName << "R";139 maybeAccept( refType->get_base(), *this );140 134 } 141 135 … … 309 303 // Removed due to restrict not affecting function compatibility in GCC 310 304 // if ( type->get_isRestrict() ) { 311 // mangleName << " E";305 // mangleName << "R"; 312 306 // } // if 313 307 if ( type->get_lvalue() ) { -
src/SymTab/Mangler.h
r28e58fd raf08051 42 42 virtual void visit( PointerType *pointerType ); 43 43 virtual void visit( ArrayType *arrayType ); 44 virtual void visit( ReferenceType *refType );45 44 virtual void visit( FunctionType *functionType ); 46 45 virtual void visit( StructInstType *aggregateUseType ); -
src/SymTab/Validate.cc
r28e58fd raf08051 47 47 48 48 #include "CodeGen/CodeGenerator.h" // for genName 49 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign50 49 #include "Common/PassVisitor.h" // for PassVisitor, WithDeclsToAdd 51 50 #include "Common/ScopedMap.h" // for ScopedMap … … 240 239 }; 241 240 242 243 FunctionDecl * dereferenceOperator = nullptr;244 struct FindSpecialDeclarations final {245 void previsit( FunctionDecl * funcDecl );246 };247 248 241 void validate( std::list< Declaration * > &translationUnit, bool doDebug ) { 249 242 PassVisitor<EnumAndPointerDecay> epc; … … 252 245 PassVisitor<CompoundLiteral> compoundliteral; 253 246 PassVisitor<ValidateGenericParameters> genericParams; 254 PassVisitor<FindSpecialDeclarations> finder;255 247 256 248 EliminateTypedef::eliminateTypedef( translationUnit ); … … 269 261 acceptAll( translationUnit, fpd ); 270 262 ArrayLength::computeLength( translationUnit ); 271 acceptAll( translationUnit, finder );272 263 } 273 264 … … 830 821 std::list< DeclarationWithType * > ¶ms = funcType->get_parameters(); 831 822 832 if ( CodeGen::isCtorDtorAssign( funcDecl->get_name() ) ) { // TODO: also check /=, etc.823 if ( InitTweak::isCtorDtorAssign( funcDecl->get_name() ) ) { 833 824 if ( params.size() == 0 ) { 834 825 throw SemanticError( "Constructors, destructors, and assignment functions require at least one parameter ", funcDecl ); 835 826 } 836 ReferenceType * refType = dynamic_cast< ReferenceType * >( params.front()->get_type() );837 if ( ! refType) {838 throw SemanticError( "First parameter of a constructor, destructor, or assignment function must be a reference", funcDecl );827 PointerType * ptrType = dynamic_cast< PointerType * >( params.front()->get_type() ); 828 if ( ! ptrType || ptrType->is_array() ) { 829 throw SemanticError( "First parameter of a constructor, destructor, or assignment function must be a pointer ", funcDecl ); 839 830 } 840 if ( CodeGen::isCtorDtor( funcDecl->get_name() ) && returnVals.size() != 0 ) {831 if ( InitTweak::isCtorDtor( funcDecl->get_name() ) && returnVals.size() != 0 ) { 841 832 throw SemanticError( "Constructors and destructors cannot have explicit return values ", funcDecl ); 842 833 } … … 954 945 } 955 946 } 956 957 void FindSpecialDeclarations::previsit( FunctionDecl * funcDecl ) {958 if ( ! dereferenceOperator ) {959 if ( funcDecl->get_name() == "*?" && funcDecl->get_linkage() == LinkageSpec::Intrinsic ) {960 FunctionType * ftype = funcDecl->get_functionType();961 if ( ftype->get_parameters().size() == 1 && ftype->get_parameters().front()->get_type()->get_qualifiers() == Type::Qualifiers() ) {962 dereferenceOperator = funcDecl;963 }964 }965 }966 }967 947 } // namespace SymTab 968 948 -
src/SynTree/AddressExpr.cc
r28e58fd raf08051 21 21 #include "Type.h" // for PointerType, Type, Type::Qualifiers 22 22 23 // Address expressions are typed based on the following inference rules:24 // E : lvalue T &..& (n references)25 // &E : T *&..& (n references)26 //27 // E : T &..& (m references)28 // &E : T *&..& (m-1 references)29 //30 // That is, lvalues becomes31 32 namespace {33 Type * addrType( Type * type ) {34 if ( ReferenceType * refType = dynamic_cast< ReferenceType * >( type ) ) {35 return new ReferenceType( refType->get_qualifiers(), addrType( refType->get_base() ) );36 } else {37 return new PointerType( Type::Qualifiers(), type->clone() );38 }39 }40 }41 42 23 AddressExpr::AddressExpr( Expression *arg, Expression *_aname ) : Expression( _aname ), arg( arg ) { 43 24 if ( arg->has_result() ) { 44 if ( arg->get_result()->get_lvalue() ) { 45 // lvalue, retains all layers of reference and gains a pointer inside the references 46 set_result( addrType( arg->get_result() ) ); 47 } else { 48 // taking address of non-lvalue -- must be a reference, loses one layer of reference 49 ReferenceType * refType = safe_dynamic_cast< ReferenceType * >( arg->get_result() ); 50 set_result( addrType( refType->get_base() ) ); 51 } 52 // result of & is never an lvalue 53 get_result()->set_lvalue( false ); 25 set_result( new PointerType( Type::Qualifiers(), arg->get_result()->clone() ) ); 54 26 } 55 27 } -
src/SynTree/ApplicationExpr.cc
r28e58fd raf08051 49 49 } 50 50 51 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list< Expression *> & args ) : function( funcExpr ), args( args) {51 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list< Expression * > & argList ) : function( funcExpr ), args( argList ) { 52 52 PointerType *pointer = safe_dynamic_cast< PointerType* >( funcExpr->get_result() ); 53 53 FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() ); -
src/SynTree/Declaration.h
r28e58fd raf08051 109 109 virtual DeclarationWithType *acceptMutator( Mutator &m ) = 0; 110 110 111 virtual Type * 111 virtual Type *get_type() const = 0; 112 112 virtual void set_type(Type *) = 0; 113 113 … … 128 128 virtual ~ObjectDecl(); 129 129 130 virtual Type * 130 virtual Type *get_type() const { return type; } 131 131 virtual void set_type(Type *newType) { type = newType; } 132 132 … … 155 155 virtual ~FunctionDecl(); 156 156 157 Type * 157 Type *get_type() const; 158 158 virtual void set_type(Type *); 159 159 160 FunctionType * 160 FunctionType *get_functionType() const { return type; } 161 161 void set_functionType( FunctionType *newValue ) { type = newValue; } 162 162 CompoundStmt *get_statements() const { return statements; } -
src/SynTree/Expression.cc
r28e58fd raf08051 31 31 #include "TypeSubstitution.h" // for TypeSubstitution 32 32 33 #include "GenPoly/Lvalue.h"34 33 35 34 Expression::Expression( Expression *_aname ) : result( 0 ), env( 0 ), argName( _aname ) {} … … 90 89 } 91 90 92 VariableExpr * VariableExpr::functionPointer( FunctionDecl * func ) {93 VariableExpr * funcExpr = new VariableExpr( func );94 funcExpr->set_result( new PointerType( Type::Qualifiers(), funcExpr->get_result() ) );95 return funcExpr;96 }97 98 91 void VariableExpr::print( std::ostream &os, int indent ) const { 99 92 os << "Variable Expression: "; … … 156 149 157 150 void AlignofExpr::print( std::ostream &os, int indent) const { 158 os << "Alignof Expression on: ";151 os << std::string( indent, ' ' ) << "Alignof Expression on: "; 159 152 160 153 if (isType) … … 265 258 266 259 void AttrExpr::print( std::ostream &os, int indent) const { 267 os << "Attr ";260 os << std::string( indent, ' ' ) << "Attr "; 268 261 attr->print( os, indent + 2 ); 269 262 if ( isType || expr ) { … … 364 357 namespace { 365 358 TypeSubstitution makeSub( Type * t ) { 366 if ( ReferenceType * refType = dynamic_cast< ReferenceType * >( t ) ) { 367 return makeSub( refType->get_base() ); 368 } else if ( StructInstType * aggInst = dynamic_cast< StructInstType * >( t ) ) { 359 if ( StructInstType * aggInst = dynamic_cast< StructInstType * >( t ) ) { 369 360 return TypeSubstitution( aggInst->get_baseParameters()->begin(), aggInst->get_baseParameters()->end(), aggInst->get_parameters().begin() ); 370 361 } else if ( UnionInstType * aggInst = dynamic_cast< UnionInstType * >( t ) ) { … … 431 422 if ( Type * type = expr->get_result() ) { 432 423 Type * base = InitTweak::getPointerBase( type ); 433 assertf( base, "expected pointer type in dereference (type was %s)", toString( type ).c_str() ); 434 ret->set_result( base->clone() ); 435 if ( GenPoly::referencesPermissable() ) { 436 // if references are still allowed in the AST, dereference returns a reference 437 ret->set_result( new ReferenceType( Type::Qualifiers(), ret->get_result() ) ); 438 } else { 439 // references have been removed, in which case dereference returns an lvalue of the base type. 440 ret->get_result()->set_lvalue( true ); 424 if ( ! base ) { 425 std::cerr << type << std::endl; 441 426 } 427 assertf( base, "expected pointer type in dereference\n" ); 428 ret->set_result( maybeClone( base ) ); 442 429 } 443 430 return ret; … … 503 490 504 491 void LogicalExpr::print( std::ostream &os, int indent )const { 505 os << "Short-circuited operation (" << (isAnd?"and":"or") << ") on: ";492 os << std::string( indent, ' ' ) << "Short-circuited operation (" << (isAnd?"and":"or") << ") on: "; 506 493 arg1->print(os); 507 494 os << " and "; … … 608 595 CompoundLiteralExpr::CompoundLiteralExpr( Type * type, Initializer * initializer ) : initializer( initializer ) { 609 596 assert( type && initializer ); 610 type->set_lvalue( true );611 597 set_result( type ); 612 598 } -
src/SynTree/Expression.h
r28e58fd raf08051 284 284 void set_var( DeclarationWithType * newValue ) { var = newValue; } 285 285 286 static VariableExpr * functionPointer( FunctionDecl * decl );287 288 286 virtual VariableExpr * clone() const { return new VariableExpr( * this ); } 289 287 virtual void accept( Visitor & v ) { v.visit( this ); } -
src/SynTree/Mutator.cc
r28e58fd raf08051 484 484 } 485 485 486 Type *Mutator::mutate( ReferenceType *refType ) {487 mutateAll( refType->get_forall(), *this );488 refType->set_base( maybeMutate( refType->get_base(), *this ) );489 return refType;490 }491 492 486 Type *Mutator::mutate( FunctionType *functionType ) { 493 487 mutateAll( functionType->get_forall(), *this ); -
src/SynTree/Mutator.h
r28e58fd raf08051 92 92 virtual Type* mutate( PointerType *pointerType ); 93 93 virtual Type* mutate( ArrayType *arrayType ); 94 virtual Type* mutate( ReferenceType *refType );95 94 virtual Type* mutate( FunctionType *functionType ); 96 95 virtual Type* mutate( StructInstType *aggregateUseType ); -
src/SynTree/SynTree.h
r28e58fd raf08051 101 101 class PointerType; 102 102 class ArrayType; 103 class ReferenceType;104 103 class FunctionType; 105 104 class ReferenceToType; -
src/SynTree/TupleExpr.cc
r28e58fd raf08051 67 67 assertf( type->size() > index, "TupleIndexExpr index out of bounds: tuple size %d, requested index %d in expr %s", type->size(), index, toString( tuple ).c_str() ); 68 68 set_result( (*std::next( type->get_types().begin(), index ))->clone() ); 69 // like MemberExpr, TupleIndexExpr is always an lvalue 70 get_result()->set_lvalue( true ); 69 get_result()->set_lvalue( type->get_lvalue() ); 71 70 } 72 71 -
src/SynTree/Type.cc
r28e58fd raf08051 64 64 const char * Type::QualifiersNames[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic" }; 65 65 66 Type * 66 Type *Type::stripDeclarator() { 67 67 Type * type = this; 68 68 while ( Type * at = InitTweak::getPointerBase( type ) ) { … … 71 71 return type; 72 72 } 73 74 Type * Type::stripReferences() {75 Type * type = this;76 while ( ReferenceType * ref = dynamic_cast<ReferenceType *>( type ) ) {77 type = ref->get_base();78 }79 return type;80 }81 82 int Type::referenceDepth() const { return 0; }83 73 84 74 void Type::print( std::ostream &os, int indent ) const { -
src/SynTree/Type.h
r28e58fd raf08051 168 168 169 169 /// return type without outer pointers and arrays 170 Type * stripDeclarator(); 171 172 /// return type without outer references 173 Type * stripReferences(); 174 175 /// return the number of references occuring consecutively on the outermost layer of this type (i.e. do not count references nested within other types) 176 virtual int referenceDepth() const; 170 Type *stripDeclarator(); 177 171 178 172 virtual bool isComplete() const { return true; } … … 268 262 bool is_array() const { return isStatic || isVarLen || dimension; } 269 263 270 virtual bool isComplete() const { return ! isVarLen; }271 272 264 virtual PointerType *clone() const { return new PointerType( *this ); } 273 265 virtual void accept( Visitor & v ) { v.visit( this ); } … … 304 296 }; 305 297 306 class ReferenceType : public Type {307 public:308 Type *base;309 310 ReferenceType( const Type::Qualifiers & tq, Type *base, const std::list< Attribute * > & attributes = std::list< Attribute * >() );311 ReferenceType( const ReferenceType & );312 virtual ~ReferenceType();313 314 Type *get_base() { return base; }315 void set_base( Type *newValue ) { base = newValue; }316 317 virtual int referenceDepth() const;318 319 // Since reference types act like value types, their size is the size of the base.320 // This makes it simple to cast the empty tuple to a reference type, since casts that increase321 // the number of values are disallowed.322 virtual unsigned size() const { return base->size(); }323 324 virtual ReferenceType *clone() const { return new ReferenceType( *this ); }325 virtual void accept( Visitor & v ) { v.visit( this ); }326 virtual Type *acceptMutator( Mutator & m ) { return m.mutate( this ); }327 virtual void print( std::ostream & os, int indent = 0 ) const;328 };329 330 298 class FunctionType : public Type { 331 299 public: -
src/SynTree/TypeExpr.cc
r28e58fd raf08051 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypeExpr.cc -- 7 // TypeExpr.cc -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/SynTree/TypeSubstitution.h
r28e58fd raf08051 117 117 } // if 118 118 } else { 119 throw SemanticError( toString( "Attempt to provide non-type parameter: ", toString( *actualIt ).c_str(), " for type parameter " ), formal );119 throw SemanticError( "Attempt to provide non-type parameter for type parameter", formal ); 120 120 } // if 121 121 } else { -
src/SynTree/Visitor.cc
r28e58fd raf08051 373 373 void Visitor::visit( PointerType *pointerType ) { 374 374 acceptAll( pointerType->get_forall(), *this ); 375 // xxx - should PointerType visit/mutate dimension?376 375 maybeAccept( pointerType->get_base(), *this ); 377 376 } … … 381 380 maybeAccept( arrayType->get_dimension(), *this ); 382 381 maybeAccept( arrayType->get_base(), *this ); 383 }384 385 void Visitor::visit( ReferenceType *refType ) {386 acceptAll( refType->get_forall(), *this );387 maybeAccept( refType->get_base(), *this );388 382 } 389 383 -
src/SynTree/Visitor.h
r28e58fd raf08051 94 94 virtual void visit( PointerType *pointerType ); 95 95 virtual void visit( ArrayType *arrayType ); 96 virtual void visit( ReferenceType *refType );97 96 virtual void visit( FunctionType *functionType ); 98 97 virtual void visit( StructInstType *aggregateUseType ); -
src/SynTree/module.mk
r28e58fd raf08051 20 20 SynTree/PointerType.cc \ 21 21 SynTree/ArrayType.cc \ 22 SynTree/ReferenceType.cc \23 22 SynTree/FunctionType.cc \ 24 23 SynTree/ReferenceToType.cc \ -
src/Tuples/Explode.cc
r28e58fd raf08051 15 15 16 16 #include "Explode.h" 17 #include <list> // for list18 17 19 #include "SynTree/Mutator.h" // for Mutator 20 #include "Common/PassVisitor.h" // for PassVisitor 18 #include <list> // for list 19 20 #include "SynTree/Mutator.h" // for Mutator 21 21 22 22 namespace Tuples { 23 23 namespace { 24 // remove one level of reference from a reference type -- may be useful elsewhere. 25 Type * getReferenceBase( Type * t ) { 26 if ( ReferenceType * refType = dynamic_cast<ReferenceType *>( t ) ) { 27 return refType->get_base(); 28 } else { 29 // for the moment, I want to know immediately if a non-reference type is ever passed in here. 30 assertf( false, "getReferenceBase for non-ref: %s", toString( refType ).c_str() ); 31 return nullptr; 32 } 33 } 34 35 struct CastExploder { 36 bool castAdded = false; 24 struct AddrExploder : public Mutator { 37 25 bool foundUniqueExpr = false; 38 Expression * apply Cast( Expression * expr, bool first = true ) {26 Expression * applyAddr( Expression * expr, bool first = true ) { 39 27 if ( TupleExpr * tupleExpr = dynamic_cast< TupleExpr * >( expr ) ){ 40 28 foundUniqueExpr = true; 41 29 std::list< Expression * > exprs; 42 30 for ( Expression *& expr : tupleExpr->get_exprs() ) { 43 // move castinto tuple exprs44 exprs.push_back( apply Cast( expr, false ) );31 // move & into tuple exprs 32 exprs.push_back( applyAddr( expr, false ) ); 45 33 } 46 // want the top-level expression to be cast to reference type, but not nested34 // want the top-level expression to be address-taken, but not nested 47 35 // tuple expressions 48 36 if ( first ) { 49 castAdded = true; 50 Expression * tupleExpr = new TupleExpr( exprs ); 51 return new CastExpr( tupleExpr, new ReferenceType( Type::Qualifiers(), tupleExpr->result->clone() ) ); 37 return new AddressExpr( new TupleExpr( exprs ) ); 52 38 } else { 53 39 return new TupleExpr( exprs ); 54 40 } 55 41 } 56 if ( dynamic_cast<ReferenceType*>( expr->result ) ) { 57 // don't need to cast reference type to another reference type 58 return expr->clone(); 59 } else { 60 // anything else should be cast to reference as normal 61 castAdded = true; 62 return new CastExpr( expr->clone(), new ReferenceType( Type::Qualifiers(), expr->result->clone() ) ); 63 } 42 // anything else should be address-taken as normal 43 return new AddressExpr( expr->clone() ); 64 44 } 65 45 66 Expression * postmutate( UniqueExpr * uniqueExpr ) {67 // move cast into unique expr so that the unique expr has type T&rather than46 virtual Expression * mutate( UniqueExpr * uniqueExpr ) { 47 // move & into unique expr so that the unique expr has type T* rather than 68 48 // type T. In particular, this transformation helps with generating the 69 // correct code for reference-castmember tuple expressions, since the result70 // should now be a tuple of references rather than a reference toa tuple.49 // correct code for address-taken member tuple expressions, since the result 50 // should now be a tuple of addresses rather than the address of a tuple. 71 51 // Still, this code is a bit awkward, and could use some improvement. 72 UniqueExpr * newUniqueExpr = new UniqueExpr( applyCast( uniqueExpr->get_expr() ), uniqueExpr->get_id() ); 52 if ( dynamic_cast< AddressExpr * > ( uniqueExpr->get_expr() ) ) { 53 // this unique expression has already been mutated or otherwise shouldn't be (can't take the address-of an address-of expression) 54 return uniqueExpr; 55 } 56 UniqueExpr * newUniqueExpr = new UniqueExpr( applyAddr( uniqueExpr->get_expr() ), uniqueExpr->get_id() ); 73 57 delete uniqueExpr; 74 if ( castAdded ) { 75 // if a cast was added by applyCast, then unique expr now has one more layer of reference 76 // than it had coming into this function. To ensure types still match correctly, need to cast 77 // to reference base so that outer expressions are still correct. 78 castAdded = false; 79 Type * toType = getReferenceBase( newUniqueExpr->result ); 80 return new CastExpr( newUniqueExpr, toType->clone() ); 81 } 82 return newUniqueExpr; 58 UntypedExpr * deref = UntypedExpr::createDeref( Mutator::mutate( newUniqueExpr ) ); 59 return deref; 83 60 } 84 61 85 86 Expression * postmutate( TupleIndexExpr * tupleExpr ) { 62 virtual Expression * mutate( TupleIndexExpr * tupleExpr ) { 87 63 // tuple index expr needs to be rebuilt to ensure that the type of the 88 64 // field is consistent with the type of the tuple expr, since the field 89 // may have changed from type T to T &.90 Expression * expr = tupleExpr->get_tuple() ;65 // may have changed from type T to T*. 66 Expression * expr = tupleExpr->get_tuple()->acceptMutator( *this ); 91 67 tupleExpr->set_tuple( nullptr ); 92 68 TupleIndexExpr * ret = new TupleIndexExpr( expr, tupleExpr->get_index() ); … … 97 73 } // namespace 98 74 99 Expression * distributeReference( Expression * expr ) { 100 PassVisitor<CastExploder> exploder; 101 expr = expr->acceptMutator( exploder ); 102 if ( ! exploder.pass.foundUniqueExpr ) { 103 // if a UniqueExpr was found, then the cast has already been added inside the UniqueExpr as appropriate 104 expr = new CastExpr( expr, new ReferenceType( Type::Qualifiers(), expr->result->clone() ) ); 75 Expression * distributeAddr( Expression * expr ) { 76 AddrExploder addrExploder; 77 expr = expr->acceptMutator( addrExploder ); 78 if ( ! addrExploder.foundUniqueExpr ) { 79 expr = new AddressExpr( expr ); 105 80 } 106 81 return expr; -
src/Tuples/Explode.h
r28e58fd raf08051 28 28 29 29 namespace Tuples { 30 Expression * distributeReference( Expression * ); 30 /// helper function used by explode to properly distribute 31 /// '&' across a tuple expression 32 Expression * distributeAddr( Expression * expr ); 31 33 32 34 /// helper function used by explode … … 34 36 void explodeUnique( Expression * expr, const ResolvExpr::Alternative & alt, const SymTab::Indexer & indexer, OutputIterator out, bool isTupleAssign ) { 35 37 if ( isTupleAssign ) { 36 // tuple assignment needs CastExprs to be recursively exploded to easily get at all of the components37 if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) {38 // tuple assignment needs AddressExprs to be recursively exploded to easily get at all of the components 39 if ( AddressExpr * addrExpr = dynamic_cast< AddressExpr * >( expr ) ) { 38 40 ResolvExpr::AltList alts; 39 explodeUnique( castExpr->get_arg(), alt, indexer, back_inserter( alts ), isTupleAssign );41 explodeUnique( addrExpr->get_arg(), alt, indexer, back_inserter( alts ), isTupleAssign ); 40 42 for ( ResolvExpr::Alternative & alt : alts ) { 41 // distribute reference castover all components42 alt.expr = distribute Reference( alt.expr );43 // distribute '&' over all components 44 alt.expr = distributeAddr( alt.expr ); 43 45 *out++ = alt; 44 46 } … … 47 49 } 48 50 } 49 Type * res = expr->get_result() ->stripReferences();51 Type * res = expr->get_result(); 50 52 if ( TupleType * tupleType = dynamic_cast< TupleType * > ( res ) ) { 51 53 if ( TupleExpr * tupleExpr = dynamic_cast< TupleExpr * >( expr ) ) { … … 55 57 } 56 58 } else { 57 // tuple type, but not tuple expr - recursively index into its components. 58 // if expr type is reference, convert to value type 59 // tuple type, but not tuple expr - recursively index into its components 59 60 Expression * arg = expr->clone(); 60 if ( Tuples::maybeImpure IgnoreUnique( arg ) ) {61 if ( Tuples::maybeImpure( arg ) && ! dynamic_cast< UniqueExpr * >( arg ) ) { 61 62 // expressions which may contain side effects require a single unique instance of the expression. 62 63 arg = new UniqueExpr( arg ); 63 }64 // cast reference to value type to facilitate further explosion65 if ( dynamic_cast<ReferenceType *>( arg->get_result() ) ) {66 arg = new CastExpr( arg, tupleType->clone() );67 64 } 68 65 for ( unsigned int i = 0; i < tupleType->size(); i++ ) { -
src/Tuples/TupleAssignment.cc
r28e58fd raf08051 21 21 #include <string> // for string 22 22 23 #include "CodeGen/OperatorTable.h"24 23 #include "Common/UniqueName.h" // for UniqueName 25 24 #include "Common/utility.h" // for zipWith … … 85 84 if ( ! expr ) return false; 86 85 assert( expr->has_result() ); 87 return dynamic_cast< TupleType * >( expr->get_result() ->stripReferences());86 return dynamic_cast< TupleType * >( expr->get_result() ); 88 87 } 89 88 … … 97 96 } 98 97 99 bool refToTuple( Expression *expr ) { 100 assert( expr->get_result() ); 98 bool pointsToTuple( Expression *expr ) { 101 99 // also check for function returning tuple of reference types 102 100 if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) { 103 return refToTuple( castExpr->get_arg() );104 } else {105 return isTuple( expr);101 return pointsToTuple( castExpr->get_arg() ); 102 } else if ( AddressExpr *addr = dynamic_cast< AddressExpr * >( expr) ) { 103 return isTuple( addr->get_arg() ); 106 104 } 107 105 return false; … … 118 116 void TupleAssignSpotter::spot( UntypedExpr * expr, const std::list<ResolvExpr::AltList> &possibilities ) { 119 117 if ( NameExpr *op = dynamic_cast< NameExpr * >(expr->get_function()) ) { 120 if ( CodeGen::isCtorDtorAssign( op->get_name() ) ) {118 if ( InitTweak::isCtorDtorAssign( op->get_name() ) ) { 121 119 fname = op->get_name(); 122 120 for ( std::list<ResolvExpr::AltList>::const_iterator ali = possibilities.begin(); ali != possibilities.end(); ++ali ) { 123 121 if ( ali->size() == 0 ) continue; // AlternativeFinder will natrually handle this case, if it's legal 124 if ( ali->size() <= 1 && CodeGen::isAssignment( op->get_name() ) ) {122 if ( ali->size() <= 1 && InitTweak::isAssignment( op->get_name() ) ) { 125 123 // what does it mean if an assignment takes 1 argument? maybe someone defined such a function, in which case AlternativeFinder will naturally handle it 126 124 continue; … … 131 129 const ResolvExpr::Alternative & alt1 = ali->front(); 132 130 auto begin = std::next(ali->begin(), 1), end = ali->end(); 133 if ( refToTuple(alt1.expr) ) {131 if ( pointsToTuple(alt1.expr) ) { 134 132 if ( isMultAssign( begin, end ) ) { 135 133 matcher.reset( new MultipleAssignMatcher( *this, *ali ) ); … … 189 187 190 188 ResolvExpr::Alternative lhsAlt = alts.front(); 191 // explode is aware of casts - ensure every LHS expression is sent into explode with a reference cast 192 if ( ! dynamic_cast< CastExpr * >( lhsAlt.expr ) ) { 193 lhsAlt.expr = new CastExpr( lhsAlt.expr, new ReferenceType( Type::Qualifiers(), lhsAlt.expr->get_result()->clone() ) ); 189 // peel off the cast that exists on ctor/dtor expressions 190 bool isCast = false; 191 if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( lhsAlt.expr ) ) { 192 lhsAlt.expr = castExpr->get_arg(); 193 castExpr->set_arg( nullptr ); 194 delete castExpr; 195 isCast = true; 194 196 } 195 197 … … 197 199 explode( lhsAlt, spotter.currentFinder.get_indexer(), back_inserter(lhs), true ); 198 200 199 for ( ResolvExpr::Alternative & alt : lhs ) { 200 // every LHS value must be a reference - some come in with a cast expression, if it doesn't just cast to reference here. 201 if ( ! dynamic_cast< ReferenceType * >( alt.expr->get_result() ) ) { 202 alt.expr = new CastExpr( alt.expr, new ReferenceType( Type::Qualifiers(), alt.expr->get_result()->clone() ) ); 201 // and finally, re-add the cast to each lhs expr, so that qualified tuple fields can be constructed 202 if ( isCast ) { 203 for ( ResolvExpr::Alternative & alt : lhs ) { 204 Expression *& expr = alt.expr; 205 Type * castType = expr->get_result()->clone(); 206 Type * type = InitTweak::getPointerBase( castType ); 207 assert( type ); 208 type->get_qualifiers() -= Type::Qualifiers( Type::Const | Type::Volatile | Type::Restrict | Type::Atomic ); 209 type->set_lvalue( true ); // xxx - might not need this 210 expr = new CastExpr( expr, castType ); 203 211 } 204 212 } … … 220 228 assert( left ); 221 229 std::list< Expression * > args; 222 args.push_back( new VariableExpr( left) );230 args.push_back( new AddressExpr( UntypedExpr::createDeref( new VariableExpr( left ) ) ) ); 223 231 // args.push_back( new AddressExpr( new VariableExpr( left ) ) ); 224 232 if ( right ) args.push_back( new VariableExpr( right ) ); … … 240 248 assert( expr->has_result() && ! expr->get_result()->isVoid() ); 241 249 ObjectDecl * ret = new ObjectDecl( namer.newName(), Type::StorageClasses(), LinkageSpec::Cforall, nullptr, expr->get_result()->clone(), new SingleInit( expr->clone() ) ); 242 // if expression type is a reference, don't need to construct anything, a simple initializer is sufficient. 243 if ( ! dynamic_cast< ReferenceType * >( expr->get_result() ) ) { 244 ConstructorInit * ctorInit = InitTweak::genCtorInit( ret ); 245 ret->set_init( ctorInit ); 246 ResolvExpr::resolveCtorInit( ctorInit, spotter.currentFinder.get_indexer() ); // resolve ctor/dtors for the new object 247 EnvRemover rm; // remove environments from subexpressions of StmtExprs 248 ctorInit->accept( rm ); 249 } 250 ConstructorInit * ctorInit = InitTweak::genCtorInit( ret ); 251 ret->set_init( ctorInit ); 252 ResolvExpr::resolveCtorInit( ctorInit, spotter.currentFinder.get_indexer() ); // resolve ctor/dtors for the new object 253 EnvRemover rm; // remove environments from subexpressions of StmtExprs 254 ctorInit->accept( rm ); 250 255 return ret; 251 256 } -
src/Tuples/TupleExpansion.cc
r28e58fd raf08051 37 37 namespace Tuples { 38 38 namespace { 39 struct MemberTupleExpander final : public Mutator { 39 class MemberTupleExpander final : public Mutator { 40 public: 40 41 typedef Mutator Parent; 41 42 using Parent::mutate; … … 44 45 }; 45 46 46 struct UniqueExprExpander final : public WithDeclsToAdd { 47 Expression * postmutate( UniqueExpr * unqExpr ); 47 class UniqueExprExpander final : public GenPoly::DeclMutator { 48 public: 49 typedef GenPoly::DeclMutator Parent; 50 using Parent::mutate; 51 52 virtual Expression * mutate( UniqueExpr * unqExpr ) override; 48 53 49 54 std::map< int, Expression * > decls; // not vector, because order added may not be increasing order … … 56 61 }; 57 62 58 struct TupleAssignExpander { 59 Expression * postmutate( TupleAssignExpr * tupleExpr ); 63 class TupleAssignExpander : public Mutator { 64 public: 65 typedef Mutator Parent; 66 using Parent::mutate; 67 68 virtual Expression * mutate( TupleAssignExpr * tupleExpr ); 60 69 }; 61 70 … … 70 79 }; 71 80 72 struct TupleIndexExpander { 81 class TupleIndexExpander { 82 public: 73 83 Expression * postmutate( TupleIndexExpr * tupleExpr ); 74 84 }; 75 85 76 struct TupleExprExpander final { 77 Expression * postmutate( TupleExpr * tupleExpr ); 86 class TupleExprExpander final : public Mutator { 87 public: 88 typedef Mutator Parent; 89 using Parent::mutate; 90 91 virtual Expression * mutate( TupleExpr * tupleExpr ) override; 78 92 }; 79 93 } … … 85 99 86 100 void expandUniqueExpr( std::list< Declaration * > & translationUnit ) { 87 PassVisitor<UniqueExprExpander>unqExpander;88 mutateAll( translationUnit, unqExpander);101 UniqueExprExpander unqExpander; 102 unqExpander.mutateDeclarationList( translationUnit ); 89 103 } 90 104 91 105 void expandTuples( std::list< Declaration * > & translationUnit ) { 92 PassVisitor<TupleAssignExpander>assnExpander;106 TupleAssignExpander assnExpander; 93 107 mutateAll( translationUnit, assnExpander ); 94 108 … … 99 113 mutateAll( translationUnit, idxExpander ); 100 114 101 PassVisitor<TupleExprExpander>exprExpander;115 TupleExprExpander exprExpander; 102 116 mutateAll( translationUnit, exprExpander ); 103 117 } … … 132 146 // aggregate expressions which might be impure must be wrapped in unique expressions 133 147 // xxx - if there's a member-tuple expression nested in the aggregate, this currently generates the wrong code if a UniqueExpr is not used, and it's purely an optimization to remove the UniqueExpr 134 // if ( Tuples::maybeImpure IgnoreUnique( memberExpr->get_aggregate() ) ) aggr = new UniqueExpr( aggr );148 // if ( Tuples::maybeImpure( memberExpr->get_aggregate() ) ) aggr = new UniqueExpr( aggr ); 135 149 aggr = new UniqueExpr( aggr ); 136 150 for ( Expression *& expr : tupleExpr->get_exprs() ) { … … 150 164 } 151 165 152 Expression * UniqueExprExpander::postmutate( UniqueExpr * unqExpr ) { 166 Expression * UniqueExprExpander::mutate( UniqueExpr * unqExpr ) { 167 unqExpr = safe_dynamic_cast< UniqueExpr * > ( Parent::mutate( unqExpr ) ); 153 168 const int id = unqExpr->get_id(); 154 169 … … 160 175 if ( unqExpr->get_object() ) { 161 176 // an object was generated to represent this unique expression -- it should be added to the list of declarations now 162 declsToAddBefore.push_back( unqExpr->get_object() );177 addDeclaration( unqExpr->get_object() ); 163 178 unqExpr->set_object( nullptr ); 164 179 // steal the expr from the unqExpr … … 174 189 ObjectDecl * finished = new ObjectDecl( toString( "_unq", id, "_finished_" ), Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new BasicType( Type::Qualifiers(), BasicType::Bool ), 175 190 new SingleInit( new ConstantExpr( Constant::from_int( 0 ) ) ) ); 176 declsToAddBefore.push_back( finished );191 addDeclaration( finished ); 177 192 // (finished ? _unq_expr_N : (_unq_expr_N = <unqExpr->get_expr()>, finished = 1, _unq_expr_N)) 178 193 // This pattern ensures that each unique expression is evaluated once, regardless of evaluation order of the generated C code. … … 188 203 } 189 204 190 Expression * TupleAssignExpander::postmutate( TupleAssignExpr * assnExpr ) { 205 Expression * TupleAssignExpander::mutate( TupleAssignExpr * assnExpr ) { 206 assnExpr = safe_dynamic_cast< TupleAssignExpr * >( Parent::mutate( assnExpr ) ); 191 207 StmtExpr * ret = assnExpr->get_stmtExpr(); 192 208 assnExpr->set_stmtExpr( nullptr ); … … 222 238 for ( auto p : group_iterate( tupleType->get_types(), decl->get_parameters() ) ) { 223 239 Type * t = std::get<0>(p); 240 TypeDecl * td = std::get<1>(p); 224 241 newType->get_parameters().push_back( new TypeExpr( t->clone() ) ); 242 if ( env ) { 243 // add bindings to the type environment. 244 // xxx - This may not be sufficient, it may be necessary to rename type variables on StructInstType? 245 env->add( td->get_name(), t->clone() ); 246 } 225 247 } 226 248 delete tupleType; … … 271 293 } 272 294 273 Expression * TupleExprExpander::postmutate( TupleExpr * tupleExpr ) { 295 Expression * TupleExprExpander::mutate( TupleExpr * tupleExpr ) { 296 // recursively expand sub-tuple-expressions 297 tupleExpr = safe_dynamic_cast<TupleExpr *>(Parent::mutate(tupleExpr)); 274 298 Type * result = tupleExpr->get_result(); 275 299 std::list< Expression * > exprs = tupleExpr->get_exprs(); … … 318 342 class ImpurityDetector : public Visitor { 319 343 public: 320 ImpurityDetector( bool ignoreUnique ) : ignoreUnique( ignoreUnique ) {}321 322 344 typedef Visitor Parent; 323 345 virtual void visit( ApplicationExpr * appExpr ) { … … 333 355 maybeImpure = true; 334 356 } 335 virtual void visit( UntypedExpr * ) { maybeImpure = true; } 336 virtual void visit( UniqueExpr * unq ) { 337 if ( ignoreUnique ) { 338 // bottom out at unique expression. 339 // The existence of a unique expression doesn't change the purity of an expression. 340 // That is, even if the wrapped expression is impure, the wrapper protects the rest of the expression. 341 return; 342 } 343 maybeAccept( unq->expr, *this ); 344 } 345 357 virtual void visit( __attribute__((unused)) UntypedExpr * untypedExpr ) { maybeImpure = true; } 346 358 bool maybeImpure = false; 347 bool ignoreUnique;348 359 }; 349 360 } // namespace 350 361 351 362 bool maybeImpure( Expression * expr ) { 352 ImpurityDetector detector( false ); 353 expr->accept( detector ); 354 return detector.maybeImpure; 355 } 356 357 bool maybeImpureIgnoreUnique( Expression * expr ) { 358 ImpurityDetector detector( true ); 363 ImpurityDetector detector; 359 364 expr->accept( detector ); 360 365 return detector.maybeImpure; -
src/Tuples/Tuples.h
r28e58fd raf08051 46 46 /// returns true if the expression may contain side-effects. 47 47 bool maybeImpure( Expression * expr ); 48 49 /// returns true if the expression may contain side-effect, ignoring the presence of unique expressions.50 bool maybeImpureIgnoreUnique( Expression * expr );51 48 } // namespace Tuples 52 49 -
src/benchmark/csv-data.c
r28e58fd raf08051 8 8 coroutine GreatSuspender {}; 9 9 10 void ?{}( GreatSuspender &this ) {10 void ?{}( GreatSuspender * this ) { 11 11 prime(this); 12 12 } 13 13 14 void main( GreatSuspender &this )14 void main( GreatSuspender * this ) 15 15 { 16 16 while( true ) { … … 21 21 void resumer( GreatSuspender * this, const unsigned int NoOfTimes ) { 22 22 for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) { 23 resume( *this );23 resume( this ); 24 24 } 25 25 } … … 58 58 // single monitor entry 59 59 monitor mon_t {}; 60 void dummy( mon_t &mutex m ) {}60 void dummy( mon_t * mutex m ) {} 61 61 62 62 long long int measure_1_monitor_entry() { … … 67 67 StartTime = Time(); 68 68 for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) { 69 dummy( mon );69 dummy( &mon ); 70 70 } 71 71 EndTime = Time(); … … 76 76 //----------------------------------------------------------------------------- 77 77 // multi monitor entry 78 void dummy( mon_t & mutex m1, mon_t &mutex m2 ) {}78 void dummy( mon_t * mutex m1, mon_t * mutex m2 ) {} 79 79 80 80 long long int measure_2_monitor_entry() { … … 85 85 StartTime = Time(); 86 86 for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) { 87 dummy( mon1,mon2 );87 dummy( &mon1, &mon2 ); 88 88 } 89 89 EndTime = Time(); … … 102 102 thread thrd1b {}; 103 103 104 void ?{}( thrd1a &this, long long int * out ) {105 this .out = out;106 } 107 108 void side1A( mon_t &mutex a, long long int * out ) {104 void ?{}( thrd1a * this, long long int * out ) { 105 this->out = out; 106 } 107 108 void side1A( mon_t * mutex a, long long int * out ) { 109 109 long long int StartTime, EndTime; 110 110 … … 120 120 } 121 121 122 void side1B( mon_t &mutex a ) {122 void side1B( mon_t * mutex a ) { 123 123 for( int i = 0;; i++ ) { 124 124 signal(&cond1b); … … 128 128 } 129 129 130 void main( thrd1a & this ) { side1A( mon1, this.out ); }131 void main( thrd1b & this ) { side1B(mon1 ); }130 void main( thrd1a * this ) { side1A( &mon1, this->out ); } 131 void main( thrd1b * this ) { side1B( &mon1 ); } 132 132 133 133 long long int measure_1_sched_int() { … … 150 150 thread thrd2b {}; 151 151 152 void ?{}( thrd2a &this, long long int * out ) {153 this .out = out;154 } 155 156 void side2A( mon_t & mutex a, mon_t &mutex b, long long int * out ) {152 void ?{}( thrd2a * this, long long int * out ) { 153 this->out = out; 154 } 155 156 void side2A( mon_t * mutex a, mon_t * mutex b, long long int * out ) { 157 157 long long int StartTime, EndTime; 158 158 … … 168 168 } 169 169 170 void side2B( mon_t & mutex a, mon_t &mutex b ) {170 void side2B( mon_t * mutex a, mon_t * mutex b ) { 171 171 for( int i = 0;; i++ ) { 172 172 signal(&cond2b); … … 176 176 } 177 177 178 void main( thrd2a & this ) { side2A( mon1, mon2, this.out ); }179 void main( thrd2b & this ) { side2B( mon1,mon2 ); }178 void main( thrd2a * this ) { side2A( &mon1, &mon2, this->out ); } 179 void main( thrd2b * this ) { side2B( &mon1, &mon2 ); } 180 180 181 181 long long int measure_2_sched_int() { -
src/libcfa/Makefile.am
r28e58fd raf08051 36 36 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $< 37 37 38 EXTRA_FLAGS = -g -Wall -W no-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@38 EXTRA_FLAGS = -g -Wall -Werror -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ 39 39 40 40 AM_CCASFLAGS = @CFA_FLAGS@ -
src/libcfa/Makefile.in
r28e58fd raf08051 416 416 ARFLAGS = cr 417 417 lib_LIBRARIES = $(am__append_1) $(am__append_2) 418 EXTRA_FLAGS = -g -Wall -W no-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@418 EXTRA_FLAGS = -g -Wall -Werror -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ 419 419 AM_CCASFLAGS = @CFA_FLAGS@ 420 420 headers = fstream iostream iterator limits rational stdlib \ -
src/libcfa/concurrency/alarm.c
r28e58fd raf08051 40 40 __cfa_time_t zero_time = { 0 }; 41 41 42 void ?{}( __cfa_time_t & this ) { this.val = 0; }43 void ?{}( __cfa_time_t & this, zero_t zero ) { this.val = 0; }44 45 void ?{}( itimerval &this, __cfa_time_t * alarm ) {46 this .it_value.tv_sec = alarm->val / one_second; // seconds47 this .it_value.tv_usec = max( (alarm->val % one_second) / one_microsecond, 1000 ); // microseconds48 this .it_interval.tv_sec = 0;49 this .it_interval.tv_usec = 0;50 } 51 52 53 void ?{}( __cfa_time_t &this, timespec * curr ) {42 void ?{}( __cfa_time_t * this ) { this->val = 0; } 43 void ?{}( __cfa_time_t * this, zero_t zero ) { this->val = 0; } 44 45 void ?{}( itimerval * this, __cfa_time_t * alarm ) { 46 this->it_value.tv_sec = alarm->val / one_second; // seconds 47 this->it_value.tv_usec = max( (alarm->val % one_second) / one_microsecond, 1000 ); // microseconds 48 this->it_interval.tv_sec = 0; 49 this->it_interval.tv_usec = 0; 50 } 51 52 53 void ?{}( __cfa_time_t * this, timespec * curr ) { 54 54 uint64_t secs = curr->tv_sec; 55 55 uint64_t nsecs = curr->tv_nsec; 56 this .val = (secs * one_second) + nsecs;57 } 58 59 __cfa_time_t ?=?( __cfa_time_t &this, zero_t rhs ) {60 this .val = 0;61 return this;56 this->val = (secs * one_second) + nsecs; 57 } 58 59 __cfa_time_t ?=?( __cfa_time_t * this, zero_t rhs ) { 60 this->val = 0; 61 return *this; 62 62 } 63 63 … … 86 86 //============================================================================================= 87 87 88 void ?{}( alarm_node_t &this, thread_desc * thrd, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ) {89 this .thrd = thrd;90 this .alarm = alarm;91 this .period = period;92 this .next = 0;93 this .set = false;94 this .kernel_alarm = false;95 } 96 97 void ?{}( alarm_node_t &this, processor * proc, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ) {98 this .proc = proc;99 this .alarm = alarm;100 this .period = period;101 this .next = 0;102 this .set = false;103 this .kernel_alarm = true;104 } 105 106 void ^?{}( alarm_node_t &this ) {107 if( this .set ) {108 unregister_self( &this );88 void ?{}( alarm_node_t * this, thread_desc * thrd, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ) { 89 this->thrd = thrd; 90 this->alarm = alarm; 91 this->period = period; 92 this->next = 0; 93 this->set = false; 94 this->kernel_alarm = false; 95 } 96 97 void ?{}( alarm_node_t * this, processor * proc, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ) { 98 this->proc = proc; 99 this->alarm = alarm; 100 this->period = period; 101 this->next = 0; 102 this->set = false; 103 this->kernel_alarm = true; 104 } 105 106 void ^?{}( alarm_node_t * this ) { 107 if( this->set ) { 108 unregister_self( this ); 109 109 } 110 110 } -
src/libcfa/concurrency/alarm.h
r28e58fd raf08051 36 36 37 37 // ctors 38 void ?{}( __cfa_time_t &this );39 void ?{}( __cfa_time_t &this, zero_t zero );40 void ?{}( __cfa_time_t &this, timespec * curr );41 void ?{}( itimerval &this, __cfa_time_t * alarm );38 void ?{}( __cfa_time_t * this ); 39 void ?{}( __cfa_time_t * this, zero_t zero ); 40 void ?{}( __cfa_time_t * this, timespec * curr ); 41 void ?{}( itimerval * this, __cfa_time_t * alarm ); 42 42 43 __cfa_time_t ?=?( __cfa_time_t &this, zero_t rhs );43 __cfa_time_t ?=?( __cfa_time_t * this, zero_t rhs ); 44 44 45 45 // logical ops … … 105 105 typedef alarm_node_t ** __alarm_it_t; 106 106 107 void ?{}( alarm_node_t &this, thread_desc * thrd, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time );108 void ?{}( alarm_node_t &this, processor * proc, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time );109 void ^?{}( alarm_node_t &this );107 void ?{}( alarm_node_t * this, thread_desc * thrd, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ); 108 void ?{}( alarm_node_t * this, processor * proc, __cfa_time_t alarm = zero_time, __cfa_time_t period = zero_time ); 109 void ^?{}( alarm_node_t * this ); 110 110 111 111 struct alarm_list_t { … … 114 114 }; 115 115 116 static inline void ?{}( alarm_list_t &this ) {117 this .head = 0;118 this .tail = &this.head;116 static inline void ?{}( alarm_list_t * this ) { 117 this->head = 0; 118 this->tail = &this->head; 119 119 } 120 120 -
src/libcfa/concurrency/coroutine
r28e58fd raf08051 25 25 // Anything that is resumed is a coroutine. 26 26 trait is_coroutine(dtype T) { 27 void main(T &this);28 coroutine_desc * get_coroutine(T &this);27 void main(T * this); 28 coroutine_desc * get_coroutine(T * this); 29 29 }; 30 30 31 #define DECL_COROUTINE(X) static inline coroutine_desc* get_coroutine(X & this) { return &this.__cor; } void main(X&this)31 #define DECL_COROUTINE(X) static inline coroutine_desc* get_coroutine(X* this) { return &this->__cor; } void main(X* this) 32 32 33 33 //----------------------------------------------------------------------------- 34 34 // Ctors and dtors 35 void ?{}(coStack_t &this);36 void ?{}(coroutine_desc &this);37 void ?{}(coroutine_desc &this, const char * name);38 void ^?{}(coStack_t &this);39 void ^?{}(coroutine_desc &this);35 void ?{}(coStack_t * this); 36 void ?{}(coroutine_desc * this); 37 void ?{}(coroutine_desc * this, const char * name); 38 void ^?{}(coStack_t * this); 39 void ^?{}(coroutine_desc * this); 40 40 41 41 //----------------------------------------------------------------------------- … … 44 44 45 45 forall(dtype T | is_coroutine(T)) 46 static inline void resume(T &cor);46 static inline void resume(T * cor); 47 47 48 48 forall(dtype T | is_coroutine(T)) 49 void prime(T &cor);49 void prime(T * cor); 50 50 51 51 //----------------------------------------------------------------------------- … … 86 86 // Resume implementation inlined for performance 87 87 forall(dtype T | is_coroutine(T)) 88 static inline void resume(T &cor) {88 static inline void resume(T * cor) { 89 89 coroutine_desc * src = this_coroutine; // optimization 90 90 coroutine_desc * dst = get_coroutine(cor); … … 92 92 if( unlikely(!dst->stack.base) ) { 93 93 create_stack(&dst->stack, dst->stack.size); 94 CtxStart( &cor, CtxInvokeCoroutine);94 CtxStart(cor, CtxInvokeCoroutine); 95 95 } 96 96 -
src/libcfa/concurrency/coroutine.c
r28e58fd raf08051 40 40 //----------------------------------------------------------------------------- 41 41 // Coroutine ctors and dtors 42 void ?{}(coStack_t &this) {43 this .size = 65000; // size of stack44 this .storage = NULL; // pointer to stack45 this .limit = NULL; // stack grows towards stack limit46 this .base = NULL; // base of stack47 this .context = NULL; // address of cfa_context_t48 this .top = NULL; // address of top of storage49 this .userStack = false;42 void ?{}(coStack_t* this) { 43 this->size = 65000; // size of stack 44 this->storage = NULL; // pointer to stack 45 this->limit = NULL; // stack grows towards stack limit 46 this->base = NULL; // base of stack 47 this->context = NULL; // address of cfa_context_t 48 this->top = NULL; // address of top of storage 49 this->userStack = false; 50 50 } 51 51 52 void ?{}(coStack_t &this, size_t size) {52 void ?{}(coStack_t* this, size_t size) { 53 53 this{}; 54 this .size = size;54 this->size = size; 55 55 56 create_stack( &this, this.size);56 create_stack(this, this->size); 57 57 } 58 58 59 void ?{}(coroutine_desc &this) {59 void ?{}(coroutine_desc* this) { 60 60 this{ "Anonymous Coroutine" }; 61 61 } 62 62 63 void ?{}(coroutine_desc &this, const char * name) {64 this .name = name;65 this .errno_ = 0;66 this .state = Start;67 this .starter = NULL;68 this .last = NULL;63 void ?{}(coroutine_desc* this, const char * name) { 64 this->name = name; 65 this->errno_ = 0; 66 this->state = Start; 67 this->starter = NULL; 68 this->last = NULL; 69 69 } 70 70 71 void ?{}(coroutine_desc &this, size_t size) {71 void ?{}(coroutine_desc* this, size_t size) { 72 72 this{}; 73 ( this.stack){size};73 (&this->stack){size}; 74 74 } 75 75 76 void ^?{}(coStack_t &this) {77 if ( ! this .userStack ) {76 void ^?{}(coStack_t* this) { 77 if ( ! this->userStack ) { 78 78 LIB_DEBUG_DO( 79 if ( mprotect( this .storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) {80 abortf( "(coStack_t *)%p.^?{}() : internal error, mprotect failure, error(%d) %s.", &this, errno, strerror( errno ) );79 if ( mprotect( this->storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) { 80 abortf( "(coStack_t *)%p.^?{}() : internal error, mprotect failure, error(%d) %s.", this, errno, strerror( errno ) ); 81 81 } 82 82 ); 83 free( this .storage );83 free( this->storage ); 84 84 } 85 85 } 86 86 87 void ^?{}(coroutine_desc &this) {}87 void ^?{}(coroutine_desc* this) {} 88 88 89 89 // Part of the Public API 90 90 // Not inline since only ever called once per coroutine 91 91 forall(dtype T | is_coroutine(T)) 92 void prime(T &cor) {92 void prime(T* cor) { 93 93 coroutine_desc* this = get_coroutine(cor); 94 94 assert(this->state == Start); -
src/libcfa/concurrency/invoke.h
r28e58fd raf08051 47 47 #ifdef __CFORALL__ 48 48 extern "Cforall" { 49 void ?{}( struct __thread_queue_t &);49 void ?{}( struct __thread_queue_t * ); 50 50 void append( struct __thread_queue_t *, struct thread_desc * ); 51 51 struct thread_desc * pop_head( struct __thread_queue_t * ); 52 52 53 void ?{}( struct __condition_stack_t &);53 void ?{}( struct __condition_stack_t * ); 54 54 void push( struct __condition_stack_t *, struct __condition_criterion_t * ); 55 55 struct __condition_criterion_t * pop( struct __condition_stack_t * ); 56 56 57 void ?{}(spinlock &this);58 void ^?{}(spinlock &this);57 void ?{}(spinlock * this); 58 void ^?{}(spinlock * this); 59 59 } 60 60 #endif -
src/libcfa/concurrency/kernel
r28e58fd raf08051 37 37 }; 38 38 39 void ?{}(semaphore &this, int count = 1);40 void ^?{}(semaphore &this);39 void ?{}(semaphore * this, int count = 1); 40 void ^?{}(semaphore * this); 41 41 void P(semaphore * this); 42 42 void V(semaphore * this); … … 51 51 }; 52 52 53 void ?{}(cluster &this);54 void ^?{}(cluster &this);53 void ?{}(cluster * this); 54 void ^?{}(cluster * this); 55 55 56 56 //----------------------------------------------------------------------------- … … 68 68 unsigned short thrd_count; 69 69 }; 70 static inline void ?{}(FinishAction &this) {71 this .action_code = No_Action;72 this .thrd = NULL;73 this .lock = NULL;70 static inline void ?{}(FinishAction * this) { 71 this->action_code = No_Action; 72 this->thrd = NULL; 73 this->lock = NULL; 74 74 } 75 static inline void ^?{}(FinishAction &this) {}75 static inline void ^?{}(FinishAction * this) {} 76 76 77 77 // Processor … … 99 99 }; 100 100 101 void ?{}(processor &this);102 void ?{}(processor &this, cluster * cltr);103 void ^?{}(processor &this);101 void ?{}(processor * this); 102 void ?{}(processor * this, cluster * cltr); 103 void ^?{}(processor * this); 104 104 105 105 // Local Variables: // -
src/libcfa/concurrency/kernel.c
r28e58fd raf08051 73 73 }; 74 74 75 void ?{}( current_stack_info_t &this ) {76 CtxGet( this .ctx );77 this .base = this.ctx.FP;78 this .storage = this.ctx.SP;75 void ?{}( current_stack_info_t * this ) { 76 CtxGet( this->ctx ); 77 this->base = this->ctx.FP; 78 this->storage = this->ctx.SP; 79 79 80 80 rlimit r; 81 81 getrlimit( RLIMIT_STACK, &r); 82 this .size = r.rlim_cur;83 84 this .limit = (void *)(((intptr_t)this.base) - this.size);85 this .context = &storage_mainThreadCtx;86 this .top = this.base;87 } 88 89 void ?{}( coStack_t &this, current_stack_info_t * info) {90 this .size = info->size;91 this .storage = info->storage;92 this .limit = info->limit;93 this .base = info->base;94 this .context = info->context;95 this .top = info->top;96 this .userStack = true;97 } 98 99 void ?{}( coroutine_desc &this, current_stack_info_t * info) {100 ( this.stack){ info };101 this .name = "Main Thread";102 this .errno_ = 0;103 this .state = Start;104 } 105 106 void ?{}( thread_desc &this, current_stack_info_t * info) {107 ( this.cor){ info };82 this->size = r.rlim_cur; 83 84 this->limit = (void *)(((intptr_t)this->base) - this->size); 85 this->context = &storage_mainThreadCtx; 86 this->top = this->base; 87 } 88 89 void ?{}( coStack_t * this, current_stack_info_t * info) { 90 this->size = info->size; 91 this->storage = info->storage; 92 this->limit = info->limit; 93 this->base = info->base; 94 this->context = info->context; 95 this->top = info->top; 96 this->userStack = true; 97 } 98 99 void ?{}( coroutine_desc * this, current_stack_info_t * info) { 100 (&this->stack){ info }; 101 this->name = "Main Thread"; 102 this->errno_ = 0; 103 this->state = Start; 104 } 105 106 void ?{}( thread_desc * this, current_stack_info_t * info) { 107 (&this->cor){ info }; 108 108 } 109 109 110 110 //----------------------------------------------------------------------------- 111 111 // Processor coroutine 112 void ?{}(processorCtx_t &this, processor * proc) {113 ( this.__cor){ "Processor" };114 this .proc = proc;115 proc->runner = &this;116 } 117 118 void ?{}(processorCtx_t &this, processor * proc, current_stack_info_t * info) {119 ( this.__cor){ info };120 this .proc = proc;121 proc->runner = &this;122 } 123 124 void ?{}(processor &this) {112 void ?{}(processorCtx_t * this, processor * proc) { 113 (&this->__cor){ "Processor" }; 114 this->proc = proc; 115 proc->runner = this; 116 } 117 118 void ?{}(processorCtx_t * this, processor * proc, current_stack_info_t * info) { 119 (&this->__cor){ info }; 120 this->proc = proc; 121 proc->runner = this; 122 } 123 124 void ?{}(processor * this) { 125 125 this{ mainCluster }; 126 126 } 127 127 128 void ?{}(processor &this, cluster * cltr) {129 this .cltr = cltr;130 ( this.terminated){ 0 };131 this .do_terminate = false;132 this .preemption_alarm = NULL;133 this .pending_preemption = false;134 135 start( &this );136 } 137 138 void ?{}(processor & this, cluster * cltr, processorCtx_t &runner) {139 this .cltr = cltr;140 ( this.terminated){ 0 };141 this .do_terminate = false;142 this .preemption_alarm = NULL;143 this .pending_preemption = false;144 this .kernel_thread = pthread_self();145 146 this .runner = &runner;147 LIB_DEBUG_PRINT_SAFE("Kernel : constructing main processor context %p\n", &runner);148 runner{ &this };149 } 150 151 void ^?{}(processor &this) {152 if( ! this .do_terminate ) {153 LIB_DEBUG_PRINT_SAFE("Kernel : core %p signaling termination\n", &this);154 this .do_terminate = true;155 P( &this .terminated );156 pthread_join( this .kernel_thread, NULL );157 } 158 } 159 160 void ?{}(cluster &this) {161 ( this.ready_queue ){};162 ( this.ready_queue_lock ){};163 164 this .preemption = default_preemption();165 } 166 167 void ^?{}(cluster &this) {128 void ?{}(processor * this, cluster * cltr) { 129 this->cltr = cltr; 130 (&this->terminated){ 0 }; 131 this->do_terminate = false; 132 this->preemption_alarm = NULL; 133 this->pending_preemption = false; 134 135 start( this ); 136 } 137 138 void ?{}(processor * this, cluster * cltr, processorCtx_t * runner) { 139 this->cltr = cltr; 140 (&this->terminated){ 0 }; 141 this->do_terminate = false; 142 this->preemption_alarm = NULL; 143 this->pending_preemption = false; 144 this->kernel_thread = pthread_self(); 145 146 this->runner = runner; 147 LIB_DEBUG_PRINT_SAFE("Kernel : constructing main processor context %p\n", runner); 148 runner{ this }; 149 } 150 151 void ^?{}(processor * this) { 152 if( ! this->do_terminate ) { 153 LIB_DEBUG_PRINT_SAFE("Kernel : core %p signaling termination\n", this); 154 this->do_terminate = true; 155 P( &this->terminated ); 156 pthread_join( this->kernel_thread, NULL ); 157 } 158 } 159 160 void ?{}(cluster * this) { 161 ( &this->ready_queue ){}; 162 ( &this->ready_queue_lock ){}; 163 164 this->preemption = default_preemption(); 165 } 166 167 void ^?{}(cluster * this) { 168 168 169 169 } … … 173 173 //============================================================================================= 174 174 //Main of the processor contexts 175 void main(processorCtx_t &runner) {176 processor * this = runner .proc;175 void main(processorCtx_t * runner) { 176 processor * this = runner->proc; 177 177 178 178 LIB_DEBUG_PRINT_SAFE("Kernel : core %p starting\n", this); … … 219 219 // from the processor coroutine to the target thread 220 220 void runThread(processor * this, thread_desc * dst) { 221 coroutine_desc * proc_cor = get_coroutine( *this->runner);221 coroutine_desc * proc_cor = get_coroutine(this->runner); 222 222 coroutine_desc * thrd_cor = get_coroutine(dst); 223 223 … … 301 301 // appropriate stack. 302 302 proc_cor_storage.__cor.state = Active; 303 main( proc_cor_storage );303 main( &proc_cor_storage ); 304 304 proc_cor_storage.__cor.state = Halted; 305 305 … … 441 441 mainThread = (thread_desc *)&storage_mainThread; 442 442 current_stack_info_t info; 443 (*mainThread){ &info };443 mainThread{ &info }; 444 444 445 445 LIB_DEBUG_PRINT_SAFE("Kernel : Main thread ready\n"); … … 447 447 // Initialize the main cluster 448 448 mainCluster = (cluster *)&storage_mainCluster; 449 (*mainCluster){};449 mainCluster{}; 450 450 451 451 LIB_DEBUG_PRINT_SAFE("Kernel : main cluster ready\n"); … … 454 454 // (the coroutine that contains the processing control flow) 455 455 mainProcessor = (processor *)&storage_mainProcessor; 456 (*mainProcessor){ mainCluster, *(processorCtx_t *)&storage_mainProcessorCtx };456 mainProcessor{ mainCluster, (processorCtx_t *)&storage_mainProcessorCtx }; 457 457 458 458 //initialize the global state variables … … 471 471 // context. Hence, the main thread does not begin through CtxInvokeThread, like all other threads. The trick here is that 472 472 // mainThread is on the ready queue when this call is made. 473 resume( *mainProcessor->runner );473 resume( mainProcessor->runner ); 474 474 475 475 … … 499 499 // Destroy the main processor and its context in reverse order of construction 500 500 // These were manually constructed so we need manually destroy them 501 ^( *mainProcessor->runner){};501 ^(mainProcessor->runner){}; 502 502 ^(mainProcessor){}; 503 503 … … 567 567 //----------------------------------------------------------------------------- 568 568 // Locks 569 void ?{}( spinlock &this ) {570 this .lock = 0;571 } 572 void ^?{}( spinlock &this ) {569 void ?{}( spinlock * this ) { 570 this->lock = 0; 571 } 572 void ^?{}( spinlock * this ) { 573 573 574 574 } … … 604 604 } 605 605 606 void ?{}( semaphore &this, int count = 1 ) {607 ( this.lock){};608 this .count = count;609 ( this.waiting){};610 } 611 void ^?{}(semaphore &this) {}606 void ?{}( semaphore * this, int count = 1 ) { 607 (&this->lock){}; 608 this->count = count; 609 (&this->waiting){}; 610 } 611 void ^?{}(semaphore * this) {} 612 612 613 613 void P(semaphore * this) { … … 643 643 //----------------------------------------------------------------------------- 644 644 // Queues 645 void ?{}( __thread_queue_t &this ) {646 this .head = NULL;647 this .tail = &this.head;645 void ?{}( __thread_queue_t * this ) { 646 this->head = NULL; 647 this->tail = &this->head; 648 648 } 649 649 … … 666 666 } 667 667 668 void ?{}( __condition_stack_t &this ) {669 this .top = NULL;668 void ?{}( __condition_stack_t * this ) { 669 this->top = NULL; 670 670 } 671 671 -
src/libcfa/concurrency/monitor
r28e58fd raf08051 22 22 #include "stdlib" 23 23 24 static inline void ?{}(monitor_desc &this) {25 this .owner = NULL;26 this .recursion = 0;24 static inline void ?{}(monitor_desc * this) { 25 this->owner = NULL; 26 this->recursion = 0; 27 27 } 28 28 … … 38 38 } 39 39 40 void ?{}( monitor_guard_t &this, monitor_desc ** m, int count );41 void ^?{}( monitor_guard_t &this );40 void ?{}( monitor_guard_t * this, monitor_desc ** m, int count ); 41 void ^?{}( monitor_guard_t * this ); 42 42 43 43 //----------------------------------------------------------------------------- … … 64 64 }; 65 65 66 void ?{}( __condition_blocked_queue_t &);66 void ?{}( __condition_blocked_queue_t * ); 67 67 void append( __condition_blocked_queue_t *, __condition_node_t * ); 68 68 __condition_node_t * pop_head( __condition_blocked_queue_t * ); … … 74 74 }; 75 75 76 static inline void ?{}( condition &this ) {77 this .monitors = NULL;78 this .monitor_count = 0;76 static inline void ?{}( condition * this ) { 77 this->monitors = NULL; 78 this->monitor_count = 0; 79 79 } 80 80 81 static inline void ^?{}( condition &this ) {82 free( this .monitors );81 static inline void ^?{}( condition * this ) { 82 free( this->monitors ); 83 83 } 84 84 -
src/libcfa/concurrency/monitor.c
r28e58fd raf08051 139 139 } 140 140 141 void ?{}( monitor_guard_t &this, monitor_desc ** m, int count ) {142 this .m = m;143 this .count = count;144 qsort(this .m, count);145 enter( this .m, this.count );146 147 this .prev_mntrs = this_thread->current_monitors;148 this .prev_count = this_thread->current_monitor_count;141 void ?{}( monitor_guard_t * this, monitor_desc ** m, int count ) { 142 this->m = m; 143 this->count = count; 144 qsort(this->m, count); 145 enter( this->m, this->count ); 146 147 this->prev_mntrs = this_thread->current_monitors; 148 this->prev_count = this_thread->current_monitor_count; 149 149 150 150 this_thread->current_monitors = m; … … 152 152 } 153 153 154 void ^?{}( monitor_guard_t &this ) {155 leave( this .m, this.count );156 157 this_thread->current_monitors = this .prev_mntrs;158 this_thread->current_monitor_count = this .prev_count;159 } 160 161 void ?{}(__condition_node_t &this, thread_desc * waiting_thread, unsigned short count, uintptr_t user_info ) {162 this .waiting_thread = waiting_thread;163 this .count = count;164 this .next = NULL;165 this .user_info = user_info;166 } 167 168 void ?{}(__condition_criterion_t &this ) {169 this .ready = false;170 this .target = NULL;171 this .owner = NULL;172 this .next = NULL;173 } 174 175 void ?{}(__condition_criterion_t &this, monitor_desc * target, __condition_node_t * owner ) {176 this .ready = false;177 this .target = target;178 this .owner = owner;179 this .next = NULL;154 void ^?{}( monitor_guard_t * this ) { 155 leave( this->m, this->count ); 156 157 this_thread->current_monitors = this->prev_mntrs; 158 this_thread->current_monitor_count = this->prev_count; 159 } 160 161 void ?{}(__condition_node_t * this, thread_desc * waiting_thread, unsigned short count, uintptr_t user_info ) { 162 this->waiting_thread = waiting_thread; 163 this->count = count; 164 this->next = NULL; 165 this->user_info = user_info; 166 } 167 168 void ?{}(__condition_criterion_t * this ) { 169 this->ready = false; 170 this->target = NULL; 171 this->owner = NULL; 172 this->next = NULL; 173 } 174 175 void ?{}(__condition_criterion_t * this, monitor_desc * target, __condition_node_t * owner ) { 176 this->ready = false; 177 this->target = target; 178 this->owner = owner; 179 this->next = NULL; 180 180 } 181 181 … … 202 202 __condition_criterion_t criteria[count]; 203 203 for(int i = 0; i < count; i++) { 204 ( criteria[i]){ this->monitors[i], &waiter };204 (&criteria[i]){ this->monitors[i], &waiter }; 205 205 // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] ); 206 206 } … … 314 314 __condition_criterion_t criteria[count]; 315 315 for(int i = 0; i < count; i++) { 316 ( criteria[i]){ this->monitors[i], &waiter };316 (&criteria[i]){ this->monitors[i], &waiter }; 317 317 // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] ); 318 318 push( &criteria[i].target->signal_stack, &criteria[i] ); … … 505 505 } 506 506 507 void ?{}( __condition_blocked_queue_t &this ) {508 this .head = NULL;509 this .tail = &this.head;507 void ?{}( __condition_blocked_queue_t * this ) { 508 this->head = NULL; 509 this->tail = &this->head; 510 510 } 511 511 -
src/libcfa/concurrency/preemption.c
r28e58fd raf08051 71 71 static pthread_t alarm_thread; // pthread handle to alarm thread 72 72 73 void ?{}(event_kernel_t &this) {74 ( this.alarms){};75 ( this.lock){};73 void ?{}(event_kernel_t * this) { 74 (&this->alarms){}; 75 (&this->lock){}; 76 76 } 77 77 … … 240 240 // Initialize the event kernel 241 241 event_kernel = (event_kernel_t *)&storage_event_kernel; 242 (*event_kernel){};242 event_kernel{}; 243 243 244 244 // Setup proper signal handlers … … 276 276 // Raii ctor/dtor for the preemption_scope 277 277 // Used by thread to control when they want to receive preemption signals 278 void ?{}( preemption_scope &this, processor * proc ) {279 ( this.alarm){ proc, zero_time, zero_time };280 this .proc = proc;281 this .proc->preemption_alarm = &this.alarm;282 283 update_preemption( this .proc, from_us(this.proc->cltr->preemption) );284 } 285 286 void ^?{}( preemption_scope &this ) {278 void ?{}( preemption_scope * this, processor * proc ) { 279 (&this->alarm){ proc, zero_time, zero_time }; 280 this->proc = proc; 281 this->proc->preemption_alarm = &this->alarm; 282 283 update_preemption( this->proc, from_us(this->proc->cltr->preemption) ); 284 } 285 286 void ^?{}( preemption_scope * this ) { 287 287 disable_interrupts(); 288 288 289 update_preemption( this .proc, zero_time );289 update_preemption( this->proc, zero_time ); 290 290 } 291 291 -
src/libcfa/concurrency/preemption.h
r28e58fd raf08051 30 30 }; 31 31 32 void ?{}( preemption_scope &this, processor * proc );33 void ^?{}( preemption_scope &this );32 void ?{}( preemption_scope * this, processor * proc ); 33 void ^?{}( preemption_scope * this ); 34 34 35 35 // Local Variables: // -
src/libcfa/concurrency/thread
r28e58fd raf08051 27 27 // Anything that is resumed is a coroutine. 28 28 trait is_thread(dtype T) { 29 void ^?{}(T &mutex this);30 void main(T &this);31 thread_desc* get_thread(T &this);29 void ^?{}(T* mutex this); 30 void main(T* this); 31 thread_desc* get_thread(T* this); 32 32 }; 33 33 34 #define DECL_THREAD(X) thread_desc* get_thread(X & this) { return &this.__thrd; } void main(X&this)34 #define DECL_THREAD(X) thread_desc* get_thread(X* this) { return &this->__thrd; } void main(X* this) 35 35 36 36 forall( dtype T | is_thread(T) ) 37 static inline coroutine_desc* get_coroutine(T &this) {37 static inline coroutine_desc* get_coroutine(T* this) { 38 38 return &get_thread(this)->cor; 39 39 } 40 40 41 41 forall( dtype T | is_thread(T) ) 42 static inline monitor_desc* get_monitor(T &this) {42 static inline monitor_desc* get_monitor(T * this) { 43 43 return &get_thread(this)->mon; 44 44 } … … 55 55 56 56 forall( dtype T | is_thread(T) ) 57 void __thrd_start( T &this );57 void __thrd_start( T* this ); 58 58 59 59 //----------------------------------------------------------------------------- 60 60 // Ctors and dtors 61 void ?{}(thread_desc &this);62 void ^?{}(thread_desc &this);61 void ?{}(thread_desc* this); 62 void ^?{}(thread_desc* this); 63 63 64 64 //----------------------------------------------------------------------------- … … 70 70 }; 71 71 72 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T &); } )73 void ?{}( scoped(T) &this );72 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T*); } ) 73 void ?{}( scoped(T)* this ); 74 74 75 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T &, P); } )76 void ?{}( scoped(T) &this, P params );75 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T*, P); } ) 76 void ?{}( scoped(T)* this, P params ); 77 77 78 78 forall( dtype T | sized(T) | is_thread(T) ) 79 void ^?{}( scoped(T) &this );79 void ^?{}( scoped(T)* this ); 80 80 81 81 void yield(); -
src/libcfa/concurrency/thread.c
r28e58fd raf08051 32 32 // Thread ctors and dtors 33 33 34 void ?{}(thread_desc &this) {35 ( this.cor){};36 this .cor.name = "Anonymous Coroutine";37 this .mon.owner = &this;38 this .mon.recursion = 1;39 this .next = NULL;34 void ?{}(thread_desc* this) { 35 (&this->cor){}; 36 this->cor.name = "Anonymous Coroutine"; 37 this->mon.owner = this; 38 this->mon.recursion = 1; 39 this->next = NULL; 40 40 41 this .current_monitors = &this.mon;42 this .current_monitor_count = 1;41 this->current_monitors = &this->mon; 42 this->current_monitor_count = 1; 43 43 } 44 44 45 void ^?{}(thread_desc &this) {46 ^( this.cor){};45 void ^?{}(thread_desc* this) { 46 ^(&this->cor){}; 47 47 } 48 48 49 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T &); } )50 void ?{}( scoped(T) &this ) {51 ( this.handle){};52 __thrd_start( this.handle);49 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T*); } ) 50 void ?{}( scoped(T)* this ) { 51 (&this->handle){}; 52 __thrd_start(&this->handle); 53 53 } 54 54 55 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T &, P); } )56 void ?{}( scoped(T) &this, P params ) {57 ( this.handle){ params };58 __thrd_start( this.handle);55 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T*, P); } ) 56 void ?{}( scoped(T)* this, P params ) { 57 (&this->handle){ params }; 58 __thrd_start(&this->handle); 59 59 } 60 60 61 61 forall( dtype T | sized(T) | is_thread(T) ) 62 void ^?{}( scoped(T) &this ) {63 ^( this.handle){};62 void ^?{}( scoped(T)* this ) { 63 ^(&this->handle){}; 64 64 } 65 65 … … 67 67 // Starting and stopping threads 68 68 forall( dtype T | is_thread(T) ) 69 void __thrd_start( T &this ) {69 void __thrd_start( T* this ) { 70 70 coroutine_desc* thrd_c = get_coroutine(this); 71 71 thread_desc* thrd_h = get_thread (this); … … 77 77 create_stack(&thrd_c->stack, thrd_c->stack.size); 78 78 this_coroutine = thrd_c; 79 CtxStart( &this, CtxInvokeThread);79 CtxStart(this, CtxInvokeThread); 80 80 assert( thrd_c->last->stack.context ); 81 81 CtxSwitch( thrd_c->last->stack.context, thrd_c->stack.context ); -
src/libcfa/containers/maybe
r28e58fd raf08051 27 27 28 28 forall(otype T) 29 void ?{}(maybe(T) &this);29 void ?{}(maybe(T) * this); 30 30 31 31 forall(otype T) 32 void ?{}(maybe(T) &this, T value);32 void ?{}(maybe(T) * this, T value); 33 33 34 34 forall(otype T) 35 void ?{}(maybe(T) &this, maybe(T) other);35 void ?{}(maybe(T) * this, maybe(T) other); 36 36 37 37 forall(otype T) 38 void ^?{}(maybe(T) &this);38 void ^?{}(maybe(T) * this); 39 39 40 40 forall(otype T) 41 maybe(T) ?=?(maybe(T) &this, maybe(T) other);41 maybe(T) ?=?(maybe(T) * this, maybe(T) other); 42 42 43 43 forall(otype T) -
src/libcfa/containers/maybe.c
r28e58fd raf08051 19 19 20 20 forall(otype T) 21 void ?{}(maybe(T) &this) {22 this .has_value = false;21 void ?{}(maybe(T) * this) { 22 this->has_value = false; 23 23 } 24 24 25 25 forall(otype T) 26 void ?{}(maybe(T) &this, T value) {27 this .has_value = true;28 ( this.value){value};26 void ?{}(maybe(T) * this, T value) { 27 this->has_value = true; 28 (&this->value){value}; 29 29 } 30 30 31 31 forall(otype T) 32 void ?{}(maybe(T) &this, maybe(T) other) {33 this .has_value = other.has_value;32 void ?{}(maybe(T) * this, maybe(T) other) { 33 this->has_value = other.has_value; 34 34 if (other.has_value) { 35 ( this.value){other.value};35 (&this->value){other.value}; 36 36 } 37 37 } 38 38 39 39 forall(otype T) 40 maybe(T) ?=?(maybe(T) &this, maybe(T) that) {41 if (this .has_value & that.has_value) {42 this .value = that.value;43 } else if (this .has_value) {44 ^( this.value){};45 this .has_value = false;40 maybe(T) ?=?(maybe(T) * this, maybe(T) that) { 41 if (this->has_value & that.has_value) { 42 this->value = that.value; 43 } else if (this->has_value) { 44 ^(&this->value){}; 45 this->has_value = false; 46 46 } else if (that.has_value) { 47 this .has_value = true;48 ( this.value){that.value};47 this->has_value = true; 48 (&this->value){that.value}; 49 49 } 50 return this;51 50 } 52 51 53 52 forall(otype T) 54 void ^?{}(maybe(T) &this) {55 if (this .has_value) {56 ^( this.value){};53 void ^?{}(maybe(T) * this) { 54 if (this->has_value) { 55 ^(&this->value){}; 57 56 } 58 57 } … … 90 89 } else { 91 90 this->has_value = true; 92 ( this->value){value};91 (&this->value){value}; 93 92 } 94 93 } … … 98 97 if (this->has_value) { 99 98 this->has_value = false; 100 ^( this->value){};99 ^(&this->value){}; 101 100 } 102 101 } -
src/libcfa/containers/result
r28e58fd raf08051 33 33 34 34 forall(otype T, otype E) 35 void ?{}(result(T, E) &this);35 void ?{}(result(T, E) * this); 36 36 37 37 forall(otype T, otype E) 38 void ?{}(result(T, E) &this, one_t, T value);38 void ?{}(result(T, E) * this, one_t, T value); 39 39 40 40 forall(otype T, otype E) 41 void ?{}(result(T, E) &this, zero_t, E error);41 void ?{}(result(T, E) * this, zero_t, E error); 42 42 43 43 forall(otype T, otype E) 44 void ?{}(result(T, E) &this, result(T, E) other);44 void ?{}(result(T, E) * this, result(T, E) other); 45 45 46 46 forall(otype T, otype E) 47 void ^?{}(result(T, E) &this);47 void ^?{}(result(T, E) * this); 48 48 49 49 forall(otype T, otype E) 50 result(T, E) ?=?(result(T, E) &this, result(T, E) other);50 result(T, E) ?=?(result(T, E) * this, result(T, E) other); 51 51 52 52 forall(otype T, otype E) -
src/libcfa/containers/result.c
r28e58fd raf08051 19 19 20 20 forall(otype T, otype E) 21 void ?{}(result(T, E) &this) {22 this .has_value = false;23 ( this.error){};21 void ?{}(result(T, E) * this) { 22 this->has_value = false; 23 (&this->error){}; 24 24 } 25 25 26 26 forall(otype T, otype E) 27 void ?{}(result(T, E) &this, one_t, T value) {28 this .has_value = true;29 ( this.value){value};27 void ?{}(result(T, E) * this, one_t, T value) { 28 this->has_value = true; 29 (&this->value){value}; 30 30 } 31 31 32 32 forall(otype T, otype E) 33 void ?{}(result(T, E) &this, zero_t, E error) {34 this .has_value = false;35 ( this.error){error};33 void ?{}(result(T, E) * this, zero_t, E error) { 34 this->has_value = false; 35 (&this->error){error}; 36 36 } 37 37 38 38 forall(otype T, otype E) 39 void ?{}(result(T, E) &this, result(T, E) other) {40 this .has_value = other.has_value;39 void ?{}(result(T, E) * this, result(T, E) other) { 40 this->has_value = other.has_value; 41 41 if (other.has_value) { 42 ( this.value){other.value};42 (&this->value){other.value}; 43 43 } else { 44 ( this.error){other.error};44 (&this->error){other.error}; 45 45 } 46 46 } 47 47 48 48 forall(otype T, otype E) 49 result(T, E) ?=?(result(T, E) &this, result(T, E) that) {50 if (this .has_value & that.has_value) {51 this .value = that.value;52 } else if (this .has_value) {53 ^( this.value){};54 this .has_value = false;55 ( this.error){that.error};49 result(T, E) ?=?(result(T, E) * this, result(T, E) that) { 50 if (this->has_value & that.has_value) { 51 this->value = that.value; 52 } else if (this->has_value) { 53 ^(&this->value){}; 54 this->has_value = false; 55 (&this->error){that.error}; 56 56 } else if (that.has_value) { 57 ^( this.error){};58 this .has_value = true;59 ( this.value){that.value};57 ^(&this->error){}; 58 this->has_value = true; 59 (&this->value){that.value}; 60 60 } else { 61 this .error = that.error;61 this->error = that.error; 62 62 } 63 63 } 64 64 65 65 forall(otype T, otype E) 66 void ^?{}(result(T, E) &this) {67 if (this .has_value) {68 ^( this.value){};66 void ^?{}(result(T, E) * this) { 67 if (this->has_value) { 68 ^(&this->value){}; 69 69 } else { 70 ^( this.error){};70 ^(&this->error){}; 71 71 } 72 72 } … … 109 109 this->value = value; 110 110 } else { 111 ^( this->error){};111 ^(&this->error){}; 112 112 this->has_value = true; 113 ( this->value){value};113 (&this->value){value}; 114 114 } 115 115 } … … 118 118 void set_error(result(T, E) * this, E error) { 119 119 if (this->has_value) { 120 ^( this->value){};120 ^(&this->value){}; 121 121 this->has_value = false; 122 ( this->error){error};122 (&this->error){error}; 123 123 } else { 124 124 this->error = error; -
src/libcfa/containers/vector
r28e58fd raf08051 30 30 31 31 forall(otype T) 32 void ?{}(heap_allocator(T) &this);32 void ?{}(heap_allocator(T)* this); 33 33 34 34 forall(otype T) 35 void ?{}(heap_allocator(T) &this, heap_allocator(T) rhs);35 void ?{}(heap_allocator(T)* this, heap_allocator(T) rhs); 36 36 37 37 forall(otype T) 38 heap_allocator(T) ?=?(heap_allocator(T) &this, heap_allocator(T) rhs);38 heap_allocator(T) ?=?(heap_allocator(T)* this, heap_allocator(T) rhs); 39 39 40 40 forall(otype T) 41 void ^?{}(heap_allocator(T) &this);41 void ^?{}(heap_allocator(T)* this); 42 42 43 43 forall(otype T) … … 64 64 //Initialization 65 65 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 66 void ?{}(vector(T, allocator_t) &this);66 void ?{}(vector(T, allocator_t)* this); 67 67 68 68 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 69 void ?{}(vector(T, allocator_t) &this, vector(T, allocator_t) rhs);69 void ?{}(vector(T, allocator_t)* this, vector(T, allocator_t) rhs); 70 70 71 71 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 72 vector(T, allocator_t) ?=?(vector(T, allocator_t) &this, vector(T, allocator_t) rhs);72 vector(T, allocator_t) ?=?(vector(T, allocator_t)* this, vector(T, allocator_t) rhs); 73 73 74 74 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 75 void ^?{}(vector(T, allocator_t) &this);75 void ^?{}(vector(T, allocator_t)* this); 76 76 77 77 forall(otype T, otype allocator_t = heap_allocator(T) | allocator_c(T, allocator_t)) -
src/libcfa/containers/vector.c
r28e58fd raf08051 24 24 //Initialization 25 25 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 26 void ?{}(vector(T, allocator_t) &this)26 void ?{}(vector(T, allocator_t)* this) 27 27 { 28 ( this.storage){};29 this .size = 0;28 (&this->storage){}; 29 this->size = 0; 30 30 } 31 31 32 32 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 33 void ?{}(vector(T, allocator_t) &this, vector(T, allocator_t) rhs)33 void ?{}(vector(T, allocator_t)* this, vector(T, allocator_t) rhs) 34 34 { 35 ( this.storage){ rhs.storage };36 copy_internal( &this, &rhs);35 (&this->storage){ rhs.storage }; 36 copy_internal(this, &rhs); 37 37 } 38 38 … … 46 46 47 47 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) 48 void ^?{}(vector(T, allocator_t) &this)48 void ^?{}(vector(T, allocator_t)* this) 49 49 { 50 clear( &this);51 ^( this.storage){};50 clear(this); 51 ^(&this->storage){}; 52 52 } 53 53 … … 66 66 { 67 67 this->size--; 68 ^( data(&this->storage)[this->size]){};68 ^(&data(&this->storage)[this->size]){}; 69 69 } 70 70 … … 74 74 for(size_t i = 0; i < this->size; i++) 75 75 { 76 ^( data(&this->storage)[this->size]){};76 ^(&data(&this->storage)[this->size]){}; 77 77 } 78 78 this->size = 0; … … 87 87 this->size = other->size; 88 88 for(size_t i = 0; i < this->size; i++) { 89 ( data(&this->storage)[this->size]){ data(&other->storage)[other->size] };89 (&data(&this->storage)[this->size]){ data(&other->storage)[other->size] }; 90 90 } 91 91 } … … 94 94 //Allocator 95 95 forall(otype T) 96 void ?{}(heap_allocator(T) &this)96 void ?{}(heap_allocator(T)* this) 97 97 { 98 this .storage = 0;99 this .capacity = 0;98 this->storage = 0; 99 this->capacity = 0; 100 100 } 101 101 102 102 forall(otype T) 103 void ?{}(heap_allocator(T) &this, heap_allocator(T) rhs)103 void ?{}(heap_allocator(T)* this, heap_allocator(T) rhs) 104 104 { 105 this .capacity = rhs.capacity;106 this .storage = (T*)realloc((void*)this.storage, this.capacity * sizeof(T));105 this->capacity = rhs.capacity; 106 this->storage = (T*)realloc((void*)this->storage, this->capacity * sizeof(T)); 107 107 } 108 108 109 109 forall(otype T) 110 heap_allocator(T) ?=?(heap_allocator(T) &this, heap_allocator(T) rhs)110 heap_allocator(T) ?=?(heap_allocator(T)* this, heap_allocator(T) rhs) 111 111 { 112 this .capacity = rhs.capacity;113 this .storage = (T*)realloc((void*)this.storage, this.capacity * sizeof(T));114 return this;112 this->capacity = rhs.capacity; 113 this->storage = (T*)realloc((void*)this->storage, this->capacity * sizeof(T)); 114 return *this; 115 115 } 116 116 117 117 forall(otype T) 118 void ^?{}(heap_allocator(T) &this)118 void ^?{}(heap_allocator(T)* this) 119 119 { 120 free(this .storage);120 free(this->storage); 121 121 } 122 122 -
src/libcfa/fstream
r28e58fd raf08051 56 56 int fmt( ofstream *, const char fmt[], ... ); 57 57 58 void ?{}( ofstream &);58 void ?{}( ofstream * ); 59 59 60 60 extern ofstream * sout, * serr; -
src/libcfa/fstream.c
r28e58fd raf08051 27 27 #define IO_MSG "I/O error: " 28 28 29 void ?{}( ofstream &this, void * file, _Bool sepDefault, _Bool sepOnOff, const char * separator, const char * tupleSeparator ) {30 this .file = file;31 this .sepDefault = sepDefault;32 this .sepOnOff = sepOnOff;33 sepSet( &this, separator );34 sepSetCur( &this, sepGet( &this ) );35 sepSetTuple( &this, tupleSeparator );29 void ?{}( ofstream * this, void * file, _Bool sepDefault, _Bool sepOnOff, const char * separator, const char * tupleSeparator ) { 30 this->file = file; 31 this->sepDefault = sepDefault; 32 this->sepOnOff = sepOnOff; 33 sepSet( this, separator ); 34 sepSetCur( this, sepGet( this ) ); 35 sepSetTuple( this, tupleSeparator ); 36 36 } 37 37 … … 92 92 exit( EXIT_FAILURE ); 93 93 } // if 94 ?{}( *os, file, true, false, " ", ", " );94 ?{}( os, file, true, false, " ", ", " ); 95 95 } // open 96 96 -
src/libcfa/gmp
r28e58fd raf08051 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // gmp -- 8 // 6 // 7 // gmp -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Apr 19 08:43:43 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 09:24:51201713 // Update Count : 1 614 // 12 // Last Modified On : Fri Jul 7 09:33:20 2017 13 // Update Count : 15 14 // 15 15 16 16 // https://gmplib.org/gmp-man-6.1.1.pdf … … 24 24 25 25 // constructor 26 static inline void ?{}( Int & this ) { mpz_init( this.mpz ); }27 static inline void ?{}( Int & this, Int init ) { mpz_init_set( this.mpz, init.mpz ); }28 static inline void ?{}( Int & this, zero_t ) { mpz_init_set_si( this.mpz, 0 ); }29 static inline void ?{}( Int & this, one_t ) { mpz_init_set_si( this.mpz, 1 ); }30 static inline void ?{}( Int & this, signed long int init ) { mpz_init_set_si( this.mpz, init ); }31 static inline void ?{}( Int & this, unsigned long int init ) { mpz_init_set_ui( this.mpz, init ); }32 static inline void ?{}( Int & this, const char * val ) { if ( mpz_init_set_str( this.mpz, val, 0 ) ) abort(); }33 static inline void ^?{}( Int & this ) { mpz_clear( this.mpz ); }26 static inline void ?{}( Int * this ) { mpz_init( this->mpz ); } 27 static inline void ?{}( Int * this, Int init ) { mpz_init_set( this->mpz, init.mpz ); } 28 static inline void ?{}( Int * this, zero_t ) { mpz_init_set_si( this->mpz, 0 ); } 29 static inline void ?{}( Int * this, one_t ) { mpz_init_set_si( this->mpz, 1 ); } 30 static inline void ?{}( Int * this, signed long int init ) { mpz_init_set_si( this->mpz, init ); } 31 static inline void ?{}( Int * this, unsigned long int init ) { mpz_init_set_ui( this->mpz, init ); } 32 static inline void ?{}( Int * this, const char * val ) { if ( mpz_init_set_str( this->mpz, val, 0 ) ) abort(); } 33 static inline void ^?{}( Int * this ) { mpz_clear( this->mpz ); } 34 34 35 35 // assignment 36 static inline Int ?=?( Int & lhs, Int rhs ) { mpz_set( lhs.mpz, rhs.mpz ); returnlhs; }37 static inline Int ?=?( Int & lhs, long int rhs ) { mpz_set_si( lhs.mpz, rhs ); returnlhs; }38 static inline Int ?=?( Int & lhs, unsigned long int rhs ) { mpz_set_ui( lhs.mpz, rhs ); returnlhs; }39 static inline Int ?=?( Int & lhs, const char * rhs ) { if ( mpz_set_str( lhs.mpz, rhs, 0 ) ) { printf( "invalid string conversion\n" ); abort(); } returnlhs; }40 41 static inline char ?=?( char & lhs, Int rhs ) { char val = mpz_get_si( rhs.mpz ); lhs = val; return lhs; }42 static inline short int ?=?( short int & lhs, Int rhs ) { short int val = mpz_get_si( rhs.mpz ); lhs = val; return lhs; }43 static inline int ?=?( int & lhs, Int rhs ) { int val = mpz_get_si( rhs.mpz ); lhs = val; return lhs; }44 static inline long int ?=?( long int & lhs, Int rhs ) { long int val = mpz_get_si( rhs.mpz ); lhs = val; return lhs; }45 static inline unsigned char ?=?( unsigned char & lhs, Int rhs ) { unsigned char val = mpz_get_ui( rhs.mpz ); lhs = val; return lhs; }46 static inline unsigned short int ?=?( unsigned short int & lhs, Int rhs ) { unsigned short int val = mpz_get_ui( rhs.mpz ); lhs = val; return lhs; }47 static inline unsigned int ?=?( unsigned int & lhs, Int rhs ) { unsigned int val = mpz_get_ui( rhs.mpz ); lhs = val; return lhs; }48 static inline unsigned long int ?=?( unsigned long int & lhs, Int rhs ) { unsigned long int val = mpz_get_ui( rhs.mpz ); lhs = val; return lhs; }36 static inline Int ?=?( Int * lhs, Int rhs ) { mpz_set( lhs->mpz, rhs.mpz ); return *lhs; } 37 static inline Int ?=?( Int * lhs, long int rhs ) { mpz_set_si( lhs->mpz, rhs ); return *lhs; } 38 static inline Int ?=?( Int * lhs, unsigned long int rhs ) { mpz_set_ui( lhs->mpz, rhs ); return *lhs; } 39 static inline Int ?=?( Int * lhs, const char * rhs ) { if ( mpz_set_str( lhs->mpz, rhs, 0 ) ) { printf( "invalid string conversion\n" ); abort(); } return *lhs; } 40 41 static inline char ?=?( char * lhs, Int rhs ) { char val = mpz_get_si( rhs.mpz ); *lhs = val; return val; } 42 static inline short int ?=?( short int * lhs, Int rhs ) { short int val = mpz_get_si( rhs.mpz ); *lhs = val; return val; } 43 static inline int ?=?( int * lhs, Int rhs ) { int val = mpz_get_si( rhs.mpz ); *lhs = val; return val; } 44 static inline long int ?=?( long int * lhs, Int rhs ) { long int val = mpz_get_si( rhs.mpz ); *lhs = val; return val; } 45 static inline unsigned char ?=?( unsigned char * lhs, Int rhs ) { unsigned char val = mpz_get_ui( rhs.mpz ); *lhs = val; return val; } 46 static inline unsigned short int ?=?( unsigned short int * lhs, Int rhs ) { unsigned short int val = mpz_get_ui( rhs.mpz ); *lhs = val; return val; } 47 static inline unsigned int ?=?( unsigned int * lhs, Int rhs ) { unsigned int val = mpz_get_ui( rhs.mpz ); *lhs = val; return val; } 48 static inline unsigned long int ?=?( unsigned long int * lhs, Int rhs ) { unsigned long int val = mpz_get_ui( rhs.mpz ); *lhs = val; return val; } 49 49 50 50 // conversions … … 99 99 static inline Int ?&?( Int oper1, unsigned long int oper2 ) { Int conjunction, temp; mpz_set_ui( temp.mpz, oper2 ); mpz_and( conjunction.mpz, oper1.mpz, temp.mpz ); return conjunction; } 100 100 static inline Int ?&?( unsigned long int oper1, Int oper2 ) { Int conjunction, temp; mpz_set_ui( temp.mpz, oper1 ); mpz_and( conjunction.mpz, temp.mpz, oper2.mpz ); return conjunction; } 101 static inline Int ?&=?( Int & lhs, Int rhs ) { return lhs =lhs & rhs; }101 static inline Int ?&=?( Int * lhs, Int rhs ) { return *lhs = *lhs & rhs; } 102 102 103 103 static inline Int ?|?( Int oper1, Int oper2 ) { Int disjunction; mpz_ior( disjunction.mpz, oper1.mpz, oper2.mpz ); return disjunction; } … … 106 106 static inline Int ?|?( Int oper1, unsigned long int oper2 ) { Int disjunction, temp; mpz_set_ui( temp.mpz, oper2 ); mpz_ior( disjunction.mpz, oper1.mpz, temp.mpz ); return disjunction; } 107 107 static inline Int ?|?( unsigned long int oper1, Int oper2 ) { Int disjunction, temp; mpz_set_ui( temp.mpz, oper1 ); mpz_ior( disjunction.mpz, temp.mpz, oper2.mpz ); return disjunction; } 108 static inline Int ?|=?( Int & lhs, Int rhs ) { return lhs =lhs | rhs; }108 static inline Int ?|=?( Int * lhs, Int rhs ) { return *lhs = *lhs | rhs; } 109 109 110 110 static inline Int ?^?( Int oper1, Int oper2 ) { Int disjunction; mpz_xor( disjunction.mpz, oper1.mpz, oper2.mpz ); return disjunction; } … … 113 113 static inline Int ?^?( Int oper1, unsigned long int oper2 ) { Int disjunction, temp; mpz_set_ui( temp.mpz, oper2 ); mpz_ior( disjunction.mpz, oper1.mpz, temp.mpz ); return disjunction; } 114 114 static inline Int ?^?( unsigned long int oper1, Int oper2 ) { Int disjunction, temp; mpz_set_ui( temp.mpz, oper1 ); mpz_ior( disjunction.mpz, temp.mpz, oper2.mpz ); return disjunction; } 115 static inline Int ?^=?( Int & lhs, Int rhs ) { return lhs =lhs ^ rhs; }115 static inline Int ?^=?( Int * lhs, Int rhs ) { return *lhs = *lhs ^ rhs; } 116 116 117 117 static inline Int ?+?( Int addend1, Int addend2 ) { Int sum; mpz_add( sum.mpz, addend1.mpz, addend2.mpz ); return sum; } … … 120 120 static inline Int ?+?( Int addend1, unsigned long int addend2 ) { Int sum; mpz_add_ui( sum.mpz, addend1.mpz, addend2 ); return sum; } 121 121 static inline Int ?+?( unsigned long int addend2, Int addend1 ) { Int sum; mpz_add_ui( sum.mpz, addend1.mpz, addend2 ); return sum; } 122 static inline Int ?+=?( Int & lhs, Int rhs ) { return lhs =lhs + rhs; }123 static inline Int ?+=?( Int & lhs, long int rhs ) { return lhs =lhs + rhs; }124 static inline Int ?+=?( Int & lhs, unsigned long int rhs ) { return lhs =lhs + rhs; }125 static inline Int ++?( Int & lhs ) { returnlhs += 1; }126 static inline Int ?++( Int & lhs ) { Int ret = lhs;lhs += 1; return ret; }122 static inline Int ?+=?( Int * lhs, Int rhs ) { return *lhs = *lhs + rhs; } 123 static inline Int ?+=?( Int * lhs, long int rhs ) { return *lhs = *lhs + rhs; } 124 static inline Int ?+=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs + rhs; } 125 static inline Int ++?( Int * lhs ) { return *lhs += 1; } 126 static inline Int ?++( Int * lhs ) { Int ret = *lhs; *lhs += 1; return ret; } 127 127 128 128 static inline Int ?-?( Int minuend, Int subtrahend ) { Int diff; mpz_sub( diff.mpz, minuend.mpz, subtrahend.mpz ); return diff; } … … 131 131 static inline Int ?-?( Int minuend, unsigned long int subtrahend ) { Int diff; mpz_sub_ui( diff.mpz, minuend.mpz, subtrahend ); return diff; } 132 132 static inline Int ?-?( unsigned long int minuend, Int subtrahend ) { Int diff; mpz_ui_sub( diff.mpz, minuend, subtrahend.mpz ); return diff; } 133 static inline Int ?-=?( Int & lhs, Int rhs ) { return lhs =lhs - rhs; }134 static inline Int ?-=?( Int & lhs, long int rhs ) { return lhs =lhs - rhs; }135 static inline Int ?-=?( Int & lhs, unsigned long int rhs ) { return lhs =lhs - rhs; }136 static inline Int --?( Int & lhs ) { returnlhs -= 1; }137 static inline Int ?--( Int & lhs ) { Int ret = lhs;lhs -= 1; return ret; }133 static inline Int ?-=?( Int * lhs, Int rhs ) { return *lhs = *lhs - rhs; } 134 static inline Int ?-=?( Int * lhs, long int rhs ) { return *lhs = *lhs - rhs; } 135 static inline Int ?-=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs - rhs; } 136 static inline Int --?( Int * lhs ) { return *lhs -= 1; } 137 static inline Int ?--( Int * lhs ) { Int ret = *lhs; *lhs -= 1; return ret; } 138 138 139 139 static inline Int ?*?( Int multiplicator, Int multiplicand ) { Int product; mpz_mul( product.mpz, multiplicator.mpz, multiplicand.mpz ); return product; } … … 142 142 static inline Int ?*?( Int multiplicator, unsigned long int multiplicand ) { Int product; mpz_mul_ui( product.mpz, multiplicator.mpz, multiplicand ); return product; } 143 143 static inline Int ?*?( unsigned long int multiplicand, Int multiplicator ) { Int product; mpz_mul_ui( product.mpz, multiplicator.mpz, multiplicand ); return product; } 144 static inline Int ?*=?( Int & lhs, Int rhs ) { return lhs =lhs * rhs; }145 static inline Int ?*=?( Int & lhs, long int rhs ) { return lhs =lhs * rhs; }146 static inline Int ?*=?( Int & lhs, unsigned long int rhs ) { return lhs =lhs * rhs; }144 static inline Int ?*=?( Int * lhs, Int rhs ) { return *lhs = *lhs * rhs; } 145 static inline Int ?*=?( Int * lhs, long int rhs ) { return *lhs = *lhs * rhs; } 146 static inline Int ?*=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs * rhs; } 147 147 148 148 // some code for operators "/" and "%" taken from g++ gmpxx.h … … 187 187 return quotient; 188 188 } // ?/? 189 static inline Int ?/=?( Int & lhs, Int rhs ) { return lhs =lhs / rhs; }190 static inline Int ?/=?( Int & lhs, long int rhs ) { return lhs =lhs / rhs; }191 static inline Int ?/=?( Int & lhs, unsigned long int rhs ) { return lhs =lhs / rhs; }189 static inline Int ?/=?( Int * lhs, Int rhs ) { return *lhs = *lhs / rhs; } 190 static inline Int ?/=?( Int * lhs, long int rhs ) { return *lhs = *lhs / rhs; } 191 static inline Int ?/=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs / rhs; } 192 192 193 193 static inline [ Int, Int ] div( Int dividend, Int divisor ) { Int quotient, remainder; mpz_fdiv_qr( quotient.mpz, remainder.mpz, dividend.mpz, divisor.mpz ); return [ quotient, remainder ]; } … … 228 228 return remainder; 229 229 } // ?%? 230 static inline Int ?%=?( Int & lhs, Int rhs ) { return lhs =lhs % rhs; }231 static inline Int ?%=?( Int & lhs, long int rhs ) { return lhs =lhs % rhs; }232 static inline Int ?%=?( Int & lhs, unsigned long int rhs ) { return lhs =lhs % rhs; }230 static inline Int ?%=?( Int * lhs, Int rhs ) { return *lhs = *lhs % rhs; } 231 static inline Int ?%=?( Int * lhs, long int rhs ) { return *lhs = *lhs % rhs; } 232 static inline Int ?%=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs % rhs; } 233 233 234 234 static inline Int ?<<?( Int shiften, mp_bitcnt_t shift ) { Int shifted; mpz_mul_2exp( shifted.mpz, shiften.mpz, shift ); return shifted; } 235 static inline Int ?<<=?( Int & lhs, mp_bitcnt_t shift ) { return lhs =lhs << shift; }235 static inline Int ?<<=?( Int * lhs, mp_bitcnt_t shift ) { return *lhs = *lhs << shift; } 236 236 static inline Int ?>>?( Int shiften, mp_bitcnt_t shift ) { Int shifted; mpz_fdiv_q_2exp( shifted.mpz, shiften.mpz, shift ); return shifted; } 237 static inline Int ?>>=?( Int & lhs, mp_bitcnt_t shift ) { return lhs =lhs >> shift; }237 static inline Int ?>>=?( Int * lhs, mp_bitcnt_t shift ) { return *lhs = *lhs >> shift; } 238 238 239 239 // number functions … … 252 252 // I/O 253 253 static inline forall( dtype istype | istream( istype ) ) 254 istype * ?|?( istype * is, Int &mp ) {255 gmp_scanf( "%Zd", &mp );254 istype * ?|?( istype * is, Int * mp ) { 255 gmp_scanf( "%Zd", mp ); 256 256 return is; 257 257 } // ?|? -
src/libcfa/interpose.c
r28e58fd raf08051 49 49 50 50 union { generic_fptr_t fptr; void* ptr; } originalFunc; 51 51 52 52 #if defined( _GNU_SOURCE ) 53 53 if ( version ) { … … 59 59 originalFunc.ptr = dlsym( library, symbol ); 60 60 #endif // _GNU_SOURCE 61 61 62 62 error = dlerror(); 63 if ( error ) abortf( "interpose_symbol : internal error, %s\n", error ); 63 if ( error ) abortf( "interpose_symbol : internal error, %s\n", error ); 64 64 65 65 return originalFunc.fptr; … … 74 74 forall(dtype T) 75 75 static inline void assign_ptr( T** symbol_ptr, const char * symbol_name, const char * version) { 76 union { 76 union { 77 77 generic_fptr_t gp; 78 T* tp; 78 T* tp; 79 79 } u; 80 80 -
src/libcfa/iostream
r28e58fd raf08051 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 08:14:29201713 // Update Count : 13 312 // Last Modified On : Wed Aug 9 16:42:47 2017 13 // Update Count : 131 14 14 // 15 15 … … 117 117 }; // readable 118 118 119 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, char &);119 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, char * ); 120 120 121 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, short int &);122 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned short int &);123 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, int &);124 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned int &);125 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long int &);126 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long long int &);127 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned long int &);128 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned long long int &);121 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, short int * ); 122 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned short int * ); 123 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, int * ); 124 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned int * ); 125 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long int * ); 126 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long long int * ); 127 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned long int * ); 128 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, unsigned long long int * ); 129 129 130 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, float &);131 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, double &);132 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long double &);130 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, float * ); 131 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, double * ); 132 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long double * ); 133 133 134 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, float _Complex &);135 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, double _Complex &);136 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long double _Complex &);134 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, float _Complex * ); 135 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, double _Complex * ); 136 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long double _Complex * ); 137 137 138 138 struct _Istream_cstrUC { char * s; }; -
src/libcfa/iostream.c
r28e58fd raf08051 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 08:41:53201713 // Update Count : 40 512 // Last Modified On : Wed Aug 9 16:46:51 2017 13 // Update Count : 401 14 14 // 15 15 … … 271 271 272 272 forall( dtype istype | istream( istype ) ) 273 istype * ?|?( istype * is, char &c ) {274 fmt( is, "%c", &c ); // must pass pointer through varg to fmt275 return is; 276 } // ?|? 277 278 forall( dtype istype | istream( istype ) ) 279 istype * ?|?( istype * is, short int &si ) {280 fmt( is, "%hd", &si );281 return is; 282 } // ?|? 283 284 forall( dtype istype | istream( istype ) ) 285 istype * ?|?( istype * is, unsigned short int &usi ) {286 fmt( is, "%hu", &usi );287 return is; 288 } // ?|? 289 290 forall( dtype istype | istream( istype ) ) 291 istype * ?|?( istype * is, int &i ) {292 fmt( is, "%d", &i );293 return is; 294 } // ?|? 295 296 forall( dtype istype | istream( istype ) ) 297 istype * ?|?( istype * is, unsigned int &ui ) {298 fmt( is, "%u", &ui );299 return is; 300 } // ?|? 301 302 forall( dtype istype | istream( istype ) ) 303 istype * ?|?( istype * is, long int &li ) {304 fmt( is, "%ld", &li );305 return is; 306 } // ?|? 307 308 forall( dtype istype | istream( istype ) ) 309 istype * ?|?( istype * is, unsigned long int &ulli ) {310 fmt( is, "%lu", &ulli );311 return is; 312 } // ?|? 313 314 forall( dtype istype | istream( istype ) ) 315 istype * ?|?( istype * is, long long int &lli ) {316 fmt( is, "%lld", &lli );317 return is; 318 } // ?|? 319 320 forall( dtype istype | istream( istype ) ) 321 istype * ?|?( istype * is, unsigned long long int &ulli ) {322 fmt( is, "%llu", &ulli );323 return is; 324 } // ?|? 325 326 327 forall( dtype istype | istream( istype ) ) 328 istype * ?|?( istype * is, float &f ) {329 fmt( is, "%f", &f );330 return is; 331 } // ?|? 332 333 forall( dtype istype | istream( istype ) ) 334 istype * ?|?( istype * is, double &d ) {335 fmt( is, "%lf", &d );336 return is; 337 } // ?|? 338 339 forall( dtype istype | istream( istype ) ) 340 istype * ?|?( istype * is, long double &ld ) {341 fmt( is, "%Lf", &ld );342 return is; 343 } // ?|? 344 345 346 forall( dtype istype | istream( istype ) ) 347 istype * ?|?( istype * is, float _Complex &fc ) {273 istype * ?|?( istype * is, char * c ) { 274 fmt( is, "%c", c ); 275 return is; 276 } // ?|? 277 278 forall( dtype istype | istream( istype ) ) 279 istype * ?|?( istype * is, short int * si ) { 280 fmt( is, "%hd", si ); 281 return is; 282 } // ?|? 283 284 forall( dtype istype | istream( istype ) ) 285 istype * ?|?( istype * is, unsigned short int * usi ) { 286 fmt( is, "%hu", usi ); 287 return is; 288 } // ?|? 289 290 forall( dtype istype | istream( istype ) ) 291 istype * ?|?( istype * is, int * i ) { 292 fmt( is, "%d", i ); 293 return is; 294 } // ?|? 295 296 forall( dtype istype | istream( istype ) ) 297 istype * ?|?( istype * is, unsigned int * ui ) { 298 fmt( is, "%u", ui ); 299 return is; 300 } // ?|? 301 302 forall( dtype istype | istream( istype ) ) 303 istype * ?|?( istype * is, long int * li ) { 304 fmt( is, "%ld", li ); 305 return is; 306 } // ?|? 307 308 forall( dtype istype | istream( istype ) ) 309 istype * ?|?( istype * is, unsigned long int * ulli ) { 310 fmt( is, "%lu", ulli ); 311 return is; 312 } // ?|? 313 314 forall( dtype istype | istream( istype ) ) 315 istype * ?|?( istype * is, long long int * lli ) { 316 fmt( is, "%lld", lli ); 317 return is; 318 } // ?|? 319 320 forall( dtype istype | istream( istype ) ) 321 istype * ?|?( istype * is, unsigned long long int * ulli ) { 322 fmt( is, "%llu", ulli ); 323 return is; 324 } // ?|? 325 326 327 forall( dtype istype | istream( istype ) ) 328 istype * ?|?( istype * is, float * f ) { 329 fmt( is, "%f", f ); 330 return is; 331 } // ?|? 332 333 forall( dtype istype | istream( istype ) ) 334 istype * ?|?( istype * is, double * d ) { 335 fmt( is, "%lf", d ); 336 return is; 337 } // ?|? 338 339 forall( dtype istype | istream( istype ) ) 340 istype * ?|?( istype * is, long double * ld ) { 341 fmt( is, "%Lf", ld ); 342 return is; 343 } // ?|? 344 345 346 forall( dtype istype | istream( istype ) ) 347 istype * ?|?( istype * is, float _Complex * fc ) { 348 348 float re, im; 349 349 fmt( is, "%g%gi", &re, &im ); 350 fc = re + im * _Complex_I;351 return is; 352 } // ?|? 353 354 forall( dtype istype | istream( istype ) ) 355 istype * ?|?( istype * is, double _Complex &dc ) {350 *fc = re + im * _Complex_I; 351 return is; 352 } // ?|? 353 354 forall( dtype istype | istream( istype ) ) 355 istype * ?|?( istype * is, double _Complex * dc ) { 356 356 double re, im; 357 357 fmt( is, "%lf%lfi", &re, &im ); 358 dc = re + im * _Complex_I;359 return is; 360 } // ?|? 361 362 forall( dtype istype | istream( istype ) ) 363 istype * ?|?( istype * is, long double _Complex &ldc ) {358 *dc = re + im * _Complex_I; 359 return is; 360 } // ?|? 361 362 forall( dtype istype | istream( istype ) ) 363 istype * ?|?( istype * is, long double _Complex * ldc ) { 364 364 long double re, im; 365 365 fmt( is, "%Lf%Lfi", &re, &im ); 366 ldc = re + im * _Complex_I;366 *ldc = re + im * _Complex_I; 367 367 return is; 368 368 } // ?|? -
src/libcfa/iterator
r28e58fd raf08051 19 19 trait iterator( otype iterator_type, otype elt_type ) { 20 20 // point to the next element 21 // iterator_type ?++( iterator_type &);22 iterator_type ++?( iterator_type &);23 iterator_type --?( iterator_type &);21 // iterator_type ?++( iterator_type * ); 22 iterator_type ++?( iterator_type * ); 23 iterator_type --?( iterator_type * ); 24 24 25 25 // can be tested for equality with other iterators … … 28 28 29 29 // dereference to get the pointed-at element 30 elt_type &*?( iterator_type );30 lvalue elt_type *?( iterator_type ); 31 31 }; 32 32 -
src/libcfa/rational
r28e58fd raf08051 12 12 // Created On : Wed Apr 6 17:56:25 2016 13 13 // Last Modified By : Peter A. Buhr 14 // Last Modified On : Wed Aug 23 22:35:09201715 // Update Count : 9 514 // Last Modified On : Fri Jul 7 09:34:33 2017 15 // Update Count : 93 16 16 // 17 17 … … 31 31 int ?>?( T, T ); 32 32 int ?>=?( T, T ); 33 void ?{}( T &, zero_t );34 void ?{}( T &, one_t );33 void ?{}( T *, zero_t ); 34 void ?{}( T *, one_t ); 35 35 T +?( T ); 36 36 T -?( T ); … … 40 40 T ?/?( T, T ); 41 41 T ?%?( T, T ); 42 T ?/=?( T &, T );42 T ?/=?( T *, T ); 43 43 T abs( T ); 44 44 }; … … 54 54 55 55 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 56 void ?{}( Rational(RationalImpl) &r );56 void ?{}( Rational(RationalImpl) * r ); 57 57 58 58 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 59 void ?{}( Rational(RationalImpl) &r, RationalImpl n );59 void ?{}( Rational(RationalImpl) * r, RationalImpl n ); 60 60 61 61 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 62 void ?{}( Rational(RationalImpl) &r, RationalImpl n, RationalImpl d );62 void ?{}( Rational(RationalImpl) * r, RationalImpl n, RationalImpl d ); 63 63 64 64 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 65 void ?{}( Rational(RationalImpl) &r, zero_t );65 void ?{}( Rational(RationalImpl) * r, zero_t ); 66 66 67 67 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 68 void ?{}( Rational(RationalImpl) &r, one_t );68 void ?{}( Rational(RationalImpl) * r, one_t ); 69 69 70 70 // numerator/denominator getter … … 77 77 78 78 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 79 [ RationalImpl, RationalImpl ] ?=?( &[ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src );79 [ RationalImpl, RationalImpl ] ?=?( * [ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src ); 80 80 81 81 // numerator/denominator setter … … 135 135 // I/O 136 136 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 137 forall( dtype istype | istream( istype ) | { istype * ?|?( istype *, RationalImpl &); } )138 istype * ?|?( istype *, Rational(RationalImpl) &);137 forall( dtype istype | istream( istype ) | { istype * ?|?( istype *, RationalImpl * ); } ) 138 istype * ?|?( istype *, Rational(RationalImpl) * ); 139 139 140 140 forall( otype RationalImpl | arithmetic( RationalImpl ) ) -
src/libcfa/rational.c
r28e58fd raf08051 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // rational.c -- 8 // 6 // 7 // rational.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Apr 6 17:54:28 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 22:38:48201713 // Update Count : 15 414 // 12 // Last Modified On : Tue May 16 18:35:36 2017 13 // Update Count : 150 14 // 15 15 16 16 #include "rational" … … 34 34 35 35 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 36 static RationalImpl simplify( RationalImpl & n, RationalImpl &d ) {37 if ( d == (RationalImpl){0} ) {36 static RationalImpl simplify( RationalImpl * n, RationalImpl * d ) { 37 if ( *d == (RationalImpl){0} ) { 38 38 serr | "Invalid rational number construction: denominator cannot be equal to 0." | endl; 39 39 exit( EXIT_FAILURE ); 40 40 } // exit 41 if ( d < (RationalImpl){0} ) { d = -d; n = -n; }// move sign to numerator42 return gcd( abs( n ), d );// simplify41 if ( *d < (RationalImpl){0} ) { *d = -*d; *n = -*n; } // move sign to numerator 42 return gcd( abs( *n ), *d ); // simplify 43 43 } // Rationalnumber::simplify 44 44 … … 47 47 48 48 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 49 void ?{}( Rational(RationalImpl) &r ) {49 void ?{}( Rational(RationalImpl) * r ) { 50 50 r{ (RationalImpl){0}, (RationalImpl){1} }; 51 51 } // rational 52 52 53 53 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 54 void ?{}( Rational(RationalImpl) &r, RationalImpl n ) {54 void ?{}( Rational(RationalImpl) * r, RationalImpl n ) { 55 55 r{ n, (RationalImpl){1} }; 56 56 } // rational 57 57 58 58 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 59 void ?{}( Rational(RationalImpl) &r, RationalImpl n, RationalImpl d ) {60 RationalImpl t = simplify( n, d );// simplify61 r .numerator = n / t;62 r .denominator = d / t;59 void ?{}( Rational(RationalImpl) * r, RationalImpl n, RationalImpl d ) { 60 RationalImpl t = simplify( &n, &d ); // simplify 61 r->numerator = n / t; 62 r->denominator = d / t; 63 63 } // rational 64 64 … … 77 77 78 78 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 79 [ RationalImpl, RationalImpl ] ?=?( &[ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src ) {80 return dest = src.[ numerator, denominator ];79 [ RationalImpl, RationalImpl ] ?=?( * [ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src ) { 80 return *dest = src.[ numerator, denominator ]; 81 81 } 82 82 … … 95 95 RationalImpl denominator( Rational(RationalImpl) r, RationalImpl d ) { 96 96 RationalImpl prev = r.denominator; 97 RationalImpl t = simplify( r.numerator,d ); // simplify97 RationalImpl t = simplify( &r.numerator, &d ); // simplify 98 98 r.numerator = r.numerator / t; 99 99 r.denominator = d / t; … … 228 228 229 229 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 230 forall( dtype istype | istream( istype ) | { istype * ?|?( istype *, RationalImpl &); } )231 istype * ?|?( istype * is, Rational(RationalImpl) &r ) {230 forall( dtype istype | istream( istype ) | { istype * ?|?( istype *, RationalImpl * ); } ) 231 istype * ?|?( istype * is, Rational(RationalImpl) * r ) { 232 232 RationalImpl t; 233 is | r.numerator | r.denominator;234 t = simplify( r.numerator, r.denominator);235 r .numerator /= t;236 r .denominator /= t;233 is | &(r->numerator) | &(r->denominator); 234 t = simplify( &(r->numerator), &(r->denominator) ); 235 r->numerator /= t; 236 r->denominator /= t; 237 237 return is; 238 238 } // ?|? -
src/libcfa/stdlib
r28e58fd raf08051 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 20:29:47 201713 // Update Count : 22 412 // Last Modified On : Mon Aug 7 11:19:07 2017 13 // Update Count : 223 14 14 // 15 15 … … 132 132 133 133 // allocation/deallocation and constructor/destructor, non-array types 134 forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } ) T * new( Params p );135 forall( dtype T | sized(T) | { void ^?{}( T &); } ) void delete( T * ptr );136 forall( dtype T, ttype Params | sized(T) | { void ^?{}( T &); void delete( Params ); } ) void delete( T * ptr, Params rest );134 forall( dtype T | sized(T), ttype Params | { void ?{}( T *, Params ); } ) T * new( Params p ); 135 forall( dtype T | { void ^?{}( T * ); } ) void delete( T * ptr ); 136 forall( dtype T, ttype Params | { void ^?{}( T * ); void delete( Params ); } ) void delete( T * ptr, Params rest ); 137 137 138 138 // allocation/deallocation and constructor/destructor, array types 139 forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } ) T * anew( size_t dim, Params p );140 forall( dtype T | sized(T) | { void ^?{}( T &); } ) void adelete( size_t dim, T arr[] );141 forall( dtype T | sized(T) | { void ^?{}( T &); }, ttype Params | { void adelete( Params ); } ) void adelete( size_t dim, T arr[], Params rest );139 forall( dtype T | sized(T), ttype Params | { void ?{}( T *, Params ); } ) T * anew( size_t dim, Params p ); 140 forall( dtype T | sized(T) | { void ^?{}( T * ); } ) void adelete( size_t dim, T arr[] ); 141 forall( dtype T | sized(T) | { void ^?{}( T * ); }, ttype Params | { void adelete( Params ); } ) void adelete( size_t dim, T arr[], Params rest ); 142 142 143 143 //--------------------------------------- … … 201 201 double abs( double _Complex ); 202 202 long double abs( long double _Complex ); 203 forall( otype T | { void ?{}( T &, zero_t ); int ?<?( T, T ); T -?( T ); } )203 forall( otype T | { void ?{}( T *, zero_t ); int ?<?( T, T ); T -?( T ); } ) 204 204 T abs( T ); 205 205 … … 230 230 231 231 forall( otype T ) 232 void swap( T & t1, T &t2 );232 void swap( T * t1, T * t2 ); 233 233 234 234 // Local Variables: // -
src/libcfa/stdlib.c
r28e58fd raf08051 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 20:30:44201713 // Update Count : 29 212 // Last Modified On : Tue Aug 8 17:31:13 2017 13 // Update Count : 291 14 14 // 15 15 … … 32 32 if ( nlen > olen ) { // larger ? 33 33 memset( nptr + olen, (int)fill, nlen - olen ); // initialize added storage 34 } // 34 } // 35 35 return (T *)nptr; 36 36 } // alloc 37 37 38 38 // allocation/deallocation and constructor/destructor, non-array types 39 forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } )39 forall( dtype T | sized(T), ttype Params | { void ?{}( T *, Params ); } ) 40 40 T * new( Params p ) { 41 return &(*malloc()){ p }; // run constructor41 return (malloc()){ p }; // run constructor 42 42 } // new 43 43 44 forall( dtype T | sized(T) | { void ^?{}( T &); } )44 forall( dtype T | { void ^?{}( T * ); } ) 45 45 void delete( T * ptr ) { 46 46 if ( ptr ) { // ignore null 47 ^ (*ptr){}; // run destructor47 ^ptr{}; // run destructor 48 48 free( ptr ); 49 49 } // if 50 50 } // delete 51 51 52 forall( dtype T, ttype Params | sized(T) | { void ^?{}( T &); void delete( Params ); } )52 forall( dtype T, ttype Params | { void ^?{}( T * ); void delete( Params ); } ) 53 53 void delete( T * ptr, Params rest ) { 54 54 if ( ptr ) { // ignore null 55 ^ (*ptr){}; // run destructor55 ^ptr{}; // run destructor 56 56 free( ptr ); 57 57 } // if … … 61 61 62 62 // allocation/deallocation and constructor/destructor, array types 63 forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } )63 forall( dtype T | sized(T), ttype Params | { void ?{}( T *, Params ); } ) 64 64 T * anew( size_t dim, Params p ) { 65 65 T *arr = alloc( dim ); 66 66 for ( unsigned int i = 0; i < dim; i += 1 ) { 67 ( arr[i]){ p }; // run constructor67 (&arr[i]){ p }; // run constructor 68 68 } // for 69 69 return arr; 70 70 } // anew 71 71 72 forall( dtype T | sized(T) | { void ^?{}( T &); } )72 forall( dtype T | sized(T) | { void ^?{}( T * ); } ) 73 73 void adelete( size_t dim, T arr[] ) { 74 74 if ( arr ) { // ignore null 75 75 for ( int i = dim - 1; i >= 0; i -= 1 ) { // reverse allocation order, must be unsigned 76 ^( arr[i]){}; // run destructor76 ^(&arr[i]){}; // run destructor 77 77 } // for 78 78 free( arr ); … … 80 80 } // adelete 81 81 82 forall( dtype T | sized(T) | { void ^?{}( T &); }, ttype Params | { void adelete( Params ); } )82 forall( dtype T | sized(T) | { void ^?{}( T * ); }, ttype Params | { void adelete( Params ); } ) 83 83 void adelete( size_t dim, T arr[], Params rest ) { 84 84 if ( arr ) { // ignore null 85 85 for ( int i = dim - 1; i >= 0; i -= 1 ) { // reverse allocation order, must be unsigned 86 ^( arr[i]){}; // run destructor86 ^(&arr[i]){}; // run destructor 87 87 } // for 88 88 free( arr ); … … 305 305 306 306 forall( otype T ) 307 void swap( T & t1, T &t2 ) {308 T temp = t1;309 t1 =t2;310 t2 = temp;307 void swap( T * t1, T * t2 ) { 308 T temp = *t1; 309 *t1 = *t2; 310 *t2 = temp; 311 311 } // swap 312 312 -
src/prelude/builtins.c
r28e58fd raf08051 80 80 } // ?\? 81 81 82 static inline forall( otype T | { void ?{}( T &this, one_t ); T ?*?( T, T ); double ?/?( double, T ); } )82 static inline forall( otype T | { void ?{}( T * this, one_t ); T ?*?( T, T ); double ?/?( double, T ); } ) 83 83 double ?\?( T x, signed long int y ) { 84 84 if ( y >= 0 ) return (double)(x \ (unsigned long int)y); … … 86 86 } // ?\? 87 87 88 static inline long int ?\=?( long int & x, unsigned long int y ) { x = x \ y; returnx; }89 static inline unsigned long int ?\=?( unsigned long int & x, unsigned long int y ) { x = x \ y; returnx; }90 static inline int ?\=?( int & x, unsigned long int y ) { x = x \ y; returnx; }91 static inline unsigned int ?\=?( unsigned int & x, unsigned long int y ) { x = x \ y; returnx; }88 static inline long int ?\=?( long int * x, unsigned long int y ) { *x = *x \ y; return *x; } 89 static inline unsigned long int ?\=?( unsigned long int * x, unsigned long int y ) { *x = *x \ y; return *x; } 90 static inline int ?\=?( int * x, unsigned long int y ) { *x = *x \ y; return *x; } 91 static inline unsigned int ?\=?( unsigned int * x, unsigned long int y ) { *x = *x \ y; return *x; } 92 92 93 93 // Local Variables: // -
src/prelude/prelude.cf
r28e58fd raf08051 30 30 // ------------------------------------------------------------ 31 31 32 _Bool ?++( _Bool & ), ?++( volatile _Bool &);33 _Bool ?--( _Bool & ), ?--( volatile _Bool &);34 unsigned char ?++( unsigned char & ), ?++( volatile unsigned char &);35 signed int ?++( signed int & ), ?++( volatile signed int &);36 signed int ?--( signed int & ), ?--( volatile signed int &);37 unsigned int ?++( unsigned int & ), ?++( volatile unsigned int &);38 unsigned int ?--( unsigned int & ), ?--( volatile unsigned int &);39 signed long int ?++( signed long int & ), ?++( volatile signed long int &);40 signed long int ?--( signed long int & ), ?--( volatile signed long int &);41 unsigned long int ?++( unsigned long int & ), ?++( volatile unsigned long int &);42 unsigned long int ?--( unsigned long int & ), ?--( volatile unsigned long int &);43 signed long long int ?++( signed long long int & ), ?++( volatile signed long long int &);44 signed long long int ?--( signed long long int & ), ?--( volatile signed long long int &);45 unsigned long long int ?++( unsigned long long int & ), ?++( volatile unsigned long long int &);46 unsigned long long int ?--( unsigned long long int & ), ?--( volatile unsigned long long int &);47 float ?++( float & ), ?++( volatile float &);48 float ?--( float & ), ?--( volatile float &);49 double ?++( double & ), ?++( volatile double &);50 double ?--( double & ), ?--( volatile double &);51 long double ?++( long double & ), ?++( volatile long double &);52 long double ?--( long double & ), ?--( volatile long double &);53 float _Complex ?++( float _Complex & ), ?++( volatile float _Complex &);54 float _Complex ?--( float _Complex & ), ?--( volatile float _Complex &);55 double _Complex ?++( double _Complex & ), ?++( volatile double _Complex &);56 double _Complex ?--( double _Complex & ), ?--( volatile double _Complex &);57 long double _Complex ?++( long double _Complex & ), ?++( volatile long double _Complex &);58 long double _Complex ?--( long double _Complex & ), ?--( volatile long double _Complex &);59 60 forall( dtype T | sized(T) ) T * ?++( T * &);61 forall( dtype T | sized(T) ) const T * ?++( const T * &);62 forall( dtype T | sized(T) ) volatile T * ?++( volatile T * &);63 forall( dtype T | sized(T) ) const volatile T * ?++( const volatile T * &);64 forall( dtype T | sized(T) ) T * ?--( T * &);65 forall( dtype T | sized(T) ) const T * ?--( const T * &);66 forall( dtype T | sized(T) ) volatile T * ?--( volatile T * &);67 forall( dtype T | sized(T) ) const volatile T * ?--( const volatile T * &);68 69 forall( dtype T | sized(T) ) T &?[?]( T *, ptrdiff_t );70 forall( dtype T | sized(T) ) const T &?[?]( const T *, ptrdiff_t );71 forall( dtype T | sized(T) ) volatile T &?[?]( volatile T *, ptrdiff_t );72 forall( dtype T | sized(T) ) const volatile T &?[?]( const volatile T *, ptrdiff_t );73 forall( dtype T | sized(T) ) T &?[?]( ptrdiff_t, T * );74 forall( dtype T | sized(T) ) const T &?[?]( ptrdiff_t, const T * );75 forall( dtype T | sized(T) ) volatile T &?[?]( ptrdiff_t, volatile T * );76 forall( dtype T | sized(T) ) const volatile T &?[?]( ptrdiff_t, const volatile T * );32 _Bool ?++( _Bool * ), ?++( volatile _Bool * ); 33 _Bool ?--( _Bool * ), ?--( volatile _Bool * ); 34 unsigned char ?++( unsigned char * ), ?++( volatile unsigned char * ); 35 signed int ?++( signed int * ), ?++( volatile signed int * ); 36 signed int ?--( signed int * ), ?--( volatile signed int * ); 37 unsigned int ?++( unsigned int * ), ?++( volatile unsigned int * ); 38 unsigned int ?--( unsigned int * ), ?--( volatile unsigned int * ); 39 signed long int ?++( signed long int * ), ?++( volatile signed long int * ); 40 signed long int ?--( signed long int * ), ?--( volatile signed long int * ); 41 unsigned long int ?++( unsigned long int * ), ?++( volatile unsigned long int * ); 42 unsigned long int ?--( unsigned long int * ), ?--( volatile unsigned long int * ); 43 signed long long int ?++( signed long long int * ), ?++( volatile signed long long int * ); 44 signed long long int ?--( signed long long int * ), ?--( volatile signed long long int * ); 45 unsigned long long int ?++( unsigned long long int * ), ?++( volatile unsigned long long int * ); 46 unsigned long long int ?--( unsigned long long int * ), ?--( volatile unsigned long long int * ); 47 float ?++( float * ), ?++( volatile float * ); 48 float ?--( float * ), ?--( volatile float * ); 49 double ?++( double * ), ?++( volatile double * ); 50 double ?--( double * ), ?--( volatile double * ); 51 long double ?++( long double * ), ?++( volatile long double * ); 52 long double ?--( long double * ), ?--( volatile long double * ); 53 float _Complex ?++( float _Complex * ), ?++( volatile float _Complex * ); 54 float _Complex ?--( float _Complex * ), ?--( volatile float _Complex * ); 55 double _Complex ?++( double _Complex * ), ?++( volatile double _Complex * ); 56 double _Complex ?--( double _Complex * ), ?--( volatile double _Complex * ); 57 long double _Complex ?++( long double _Complex * ), ?++( volatile long double _Complex * ); 58 long double _Complex ?--( long double _Complex * ), ?--( volatile long double _Complex * ); 59 60 forall( dtype T | sized(T) ) T * ?++( T ** ); 61 forall( dtype T | sized(T) ) const T * ?++( const T ** ); 62 forall( dtype T | sized(T) ) volatile T * ?++( volatile T ** ); 63 forall( dtype T | sized(T) ) const volatile T * ?++( const volatile T ** ); 64 forall( dtype T | sized(T) ) T * ?--( T ** ); 65 forall( dtype T | sized(T) ) const T * ?--( const T ** ); 66 forall( dtype T | sized(T) ) volatile T * ?--( volatile T ** ); 67 forall( dtype T | sized(T) ) const volatile T * ?--( const volatile T ** ); 68 69 forall( dtype T | sized(T) ) lvalue T ?[?]( T *, ptrdiff_t ); 70 forall( dtype T | sized(T) ) const lvalue T ?[?]( const T *, ptrdiff_t ); 71 forall( dtype T | sized(T) ) volatile lvalue T ?[?]( volatile T *, ptrdiff_t ); 72 forall( dtype T | sized(T) ) const volatile lvalue T ?[?]( const volatile T *, ptrdiff_t ); 73 forall( dtype T | sized(T) ) lvalue T ?[?]( ptrdiff_t, T * ); 74 forall( dtype T | sized(T) ) const lvalue T ?[?]( ptrdiff_t, const T * ); 75 forall( dtype T | sized(T) ) volatile lvalue T ?[?]( ptrdiff_t, volatile T * ); 76 forall( dtype T | sized(T) ) const volatile lvalue T ?[?]( ptrdiff_t, const volatile T * ); 77 77 78 78 // ------------------------------------------------------------ … … 82 82 // ------------------------------------------------------------ 83 83 84 _Bool ++?( _Bool & ), --?( _Bool &);85 signed int ++?( signed int & ), --?( signed int &);86 unsigned int ++?( unsigned int & ), --?( unsigned int &);87 signed long int ++?( signed long int & ), --?( signed long int &);88 unsigned long int ++?( unsigned long int & ), --?( unsigned long int &);89 signed long long int ++?( signed long long int & ), --?( signed long long int &);90 unsigned long long int ++?( unsigned long long int & ), --?( unsigned long long int &);91 float ++?( float & ), --?( float &);92 double ++?( double & ), --?( double &);93 long double ++?( long double & ), --?( long double &);94 float _Complex ++?( float _Complex & ), --?( float _Complex &);95 double _Complex ++?( double _Complex & ), --?( double _Complex &);96 long double _Complex ++?( long double _Complex & ), --?( long double _Complex &);97 98 forall( dtype T | sized(T) ) T * ++?( T * &);99 forall( dtype T | sized(T) ) const T * ++?( const T * &);100 forall( dtype T | sized(T) ) volatile T * ++?( volatile T * &);101 forall( dtype T | sized(T) ) const volatile T * ++?( const volatile T * &);102 forall( dtype T | sized(T) ) T * --?( T * &);103 forall( dtype T | sized(T) ) const T * --?( const T * &);104 forall( dtype T | sized(T) ) volatile T * --?( volatile T * &);105 forall( dtype T | sized(T) ) const volatile T * --?( const volatile T * &);106 107 forall( dtype T | sized(T) ) T &*?( T * );108 forall( dtype T | sized(T) ) const T &*?( const T * );109 forall( dtype T | sized(T) ) volatile T &*?( volatile T * );110 forall( dtype T | sized(T) ) const volatile T &*?( const volatile T * );111 forall( ftype FT ) FT &*?( FT * );84 _Bool ++?( _Bool * ), --?( _Bool * ); 85 signed int ++?( signed int * ), --?( signed int * ); 86 unsigned int ++?( unsigned int * ), --?( unsigned int * ); 87 signed long int ++?( signed long int * ), --?( signed long int * ); 88 unsigned long int ++?( unsigned long int * ), --?( unsigned long int * ); 89 signed long long int ++?( signed long long int * ), --?( signed long long int * ); 90 unsigned long long int ++?( unsigned long long int * ), --?( unsigned long long int * ); 91 float ++?( float * ), --?( float * ); 92 double ++?( double * ), --?( double * ); 93 long double ++?( long double * ), --?( long double * ); 94 float _Complex ++?( float _Complex * ), --?( float _Complex * ); 95 double _Complex ++?( double _Complex * ), --?( double _Complex * ); 96 long double _Complex ++?( long double _Complex * ), --?( long double _Complex * ); 97 98 forall( dtype T | sized(T) ) T * ++?( T ** ); 99 forall( dtype T | sized(T) ) const T * ++?( const T ** ); 100 forall( dtype T | sized(T) ) volatile T * ++?( volatile T ** ); 101 forall( dtype T | sized(T) ) const volatile T * ++?( const volatile T ** ); 102 forall( dtype T | sized(T) ) T * --?( T ** ); 103 forall( dtype T | sized(T) ) const T * --?( const T ** ); 104 forall( dtype T | sized(T) ) volatile T * --?( volatile T ** ); 105 forall( dtype T | sized(T) ) const volatile T * --?( const volatile T ** ); 106 107 forall( dtype T | sized(T) ) lvalue T *?( T * ); 108 forall( dtype T | sized(T) ) const lvalue T *?( const T * ); 109 forall( dtype T | sized(T) ) volatile lvalue T *?( volatile T * ); 110 forall( dtype T | sized(T) ) const volatile lvalue T *?( const volatile T * ); 111 forall( ftype FT ) lvalue FT *?( FT * ); 112 112 113 113 _Bool +?( _Bool ), -?( _Bool ), ~?( _Bool ); … … 366 366 // ------------------------------------------------------------ 367 367 368 forall( ftype FT ) FT * ?=?( FT * &, FT * );369 forall( ftype FT ) FT * ?=?( FT * volatile &, FT * );370 371 forall( dtype DT ) DT * ?=?( DT * &, DT * );372 forall( dtype DT ) DT * ?=?( DT * volatile &, DT * );373 forall( dtype DT ) const DT * ?=?( const DT * &, DT * );374 forall( dtype DT ) const DT * ?=?( const DT * volatile &, DT * );375 forall( dtype DT ) const DT * ?=?( const DT * &, const DT * );376 forall( dtype DT ) const DT * ?=?( const DT * volatile &, const DT * );377 forall( dtype DT ) volatile DT * ?=?( volatile DT * &, DT * );378 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile &, DT * );379 forall( dtype DT ) volatile DT * ?=?( volatile DT * &, volatile DT * );380 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile &, volatile DT * );381 382 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, DT * );383 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, DT * );384 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, const DT * );385 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, const DT * );386 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, volatile DT * );387 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, volatile DT * );388 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, const volatile DT * );389 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, const volatile DT * );390 391 forall( dtype DT ) DT * ?=?( DT * &, void * );392 forall( dtype DT ) DT * ?=?( DT * volatile &, void * );393 forall( dtype DT ) const DT * ?=?( const DT * &, void * );394 forall( dtype DT ) const DT * ?=?( const DT * volatile &, void * );395 forall( dtype DT ) const DT * ?=?( const DT * &, const void * );396 forall( dtype DT ) const DT * ?=?( const DT * volatile &, const void * );397 forall( dtype DT ) volatile DT * ?=?( volatile DT * &, void * );398 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile &, void * );399 forall( dtype DT ) volatile DT * ?=?( volatile DT * &, volatile void * );400 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile &, volatile void * );401 402 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, void * );403 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, void * );404 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, const void * );405 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, const void * );406 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, volatile void * );407 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, volatile void * );408 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, const volatile void * );409 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, const volatile void * );410 411 forall( dtype DT ) void * ?=?( void * &, DT * );412 forall( dtype DT ) void * ?=?( void * volatile &, DT * );413 forall( dtype DT ) const void * ?=?( const void * &, DT * );414 forall( dtype DT ) const void * ?=?( const void * volatile &, DT * );415 forall( dtype DT ) const void * ?=?( const void * &, const DT * );416 forall( dtype DT ) const void * ?=?( const void * volatile &, const DT * );417 forall( dtype DT ) volatile void * ?=?( volatile void * &, DT * );418 forall( dtype DT ) volatile void * ?=?( volatile void * volatile &, DT * );419 forall( dtype DT ) volatile void * ?=?( volatile void * &, volatile DT * );420 forall( dtype DT ) volatile void * ?=?( volatile void * volatile &, volatile DT * );421 forall( dtype DT ) const volatile void * ?=?( const volatile void * &, DT * );422 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile &, DT * );423 forall( dtype DT ) const volatile void * ?=?( const volatile void * &, const DT * );424 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile &, const DT * );425 forall( dtype DT ) const volatile void * ?=?( const volatile void * &, volatile DT * );426 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile &, volatile DT * );427 forall( dtype DT ) const volatile void * ?=?( const volatile void * &, const volatile DT * );428 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile &, const volatile DT * );429 430 void * ?=?( void * &, void * );431 void * ?=?( void * volatile &, void * );432 const void * ?=?( const void * &, void * );433 const void * ?=?( const void * volatile &, void * );434 const void * ?=?( const void * &, const void * );435 const void * ?=?( const void * volatile &, const void * );436 volatile void * ?=?( volatile void * &, void * );437 volatile void * ?=?( volatile void * volatile &, void * );438 volatile void * ?=?( volatile void * &, volatile void * );439 volatile void * ?=?( volatile void * volatile &, volatile void * );440 const volatile void * ?=?( const volatile void * &, void * );441 const volatile void * ?=?( const volatile void * volatile &, void * );442 const volatile void * ?=?( const volatile void * &, const void * );443 const volatile void * ?=?( const volatile void * volatile &, const void * );444 const volatile void * ?=?( const volatile void * &, volatile void * );445 const volatile void * ?=?( const volatile void * volatile &, volatile void * );446 const volatile void * ?=?( const volatile void * &, const volatile void * );447 const volatile void * ?=?( const volatile void * volatile &, const volatile void * );448 449 // forall( dtype DT ) DT * ?=?( DT * &, zero_t );450 // forall( dtype DT ) DT * ?=?( DT * volatile &, zero_t );451 forall( dtype DT ) const DT * ?=?( const DT * &, zero_t );452 forall( dtype DT ) const DT * ?=?( const DT * volatile &, zero_t );453 // forall( dtype DT ) volatile DT * ?=?( volatile DT * &, zero_t );454 // forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile &, zero_t);455 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * &, zero_t );456 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile &, zero_t );457 458 forall( ftype FT ) FT * ?=?( FT * &, zero_t );459 forall( ftype FT ) FT * ?=?( FT * volatile &, zero_t );460 461 forall( dtype T | sized(T) ) T * ?+=?( T * &, ptrdiff_t );462 forall( dtype T | sized(T) ) T * ?+=?( T * volatile &, ptrdiff_t );463 forall( dtype T | sized(T) ) const T * ?+=?( const T * &, ptrdiff_t );464 forall( dtype T | sized(T) ) const T * ?+=?( const T * volatile &, ptrdiff_t );465 forall( dtype T | sized(T) ) volatile T * ?+=?( volatile T * &, ptrdiff_t );466 forall( dtype T | sized(T) ) volatile T * ?+=?( volatile T * volatile &, ptrdiff_t );467 forall( dtype T | sized(T) ) const volatile T * ?+=?( const volatile T * &, ptrdiff_t );468 forall( dtype T | sized(T) ) const volatile T * ?+=?( const volatile T * volatile &, ptrdiff_t );469 forall( dtype T | sized(T) ) T * ?-=?( T * &, ptrdiff_t );470 forall( dtype T | sized(T) ) T * ?-=?( T * volatile &, ptrdiff_t );471 forall( dtype T | sized(T) ) const T * ?-=?( const T * &, ptrdiff_t );472 forall( dtype T | sized(T) ) const T * ?-=?( const T * volatile &, ptrdiff_t );473 forall( dtype T | sized(T) ) volatile T * ?-=?( volatile T * &, ptrdiff_t );474 forall( dtype T | sized(T) ) volatile T * ?-=?( volatile T * volatile &, ptrdiff_t );475 forall( dtype T | sized(T) ) const volatile T * ?-=?( const volatile T * &, ptrdiff_t );476 forall( dtype T | sized(T) ) const volatile T * ?-=?( const volatile T * volatile &, ptrdiff_t );477 478 _Bool ?=?( _Bool &, _Bool ), ?=?( volatile _Bool &, _Bool );479 char ?=?( char &, char ), ?=?( volatile char &, char );480 char signed ?=?( char signed &, char signed ), ?=?( volatile char signed &, char signed );481 char unsigned ?=?( char unsigned &, char unsigned ), ?=?( volatile char unsigned &, char unsigned );482 int short ?=?( int short &, int short ), ?=?( volatile int short &, int short );483 int short unsigned ?=?( int short unsigned &, int short unsigned ), ?=?( volatile int short unsigned &, int short unsigned );484 signed int ?=?( signed int &, signed int ), ?=?( volatile signed int &, signed int );485 unsigned int ?=?( unsigned &, unsigned ), ?=?( volatile unsigned &, unsigned );486 signed long int ?=?( signed long int &, signed long int ), ?=?( volatile signed long int &, signed long int );487 unsigned long int ?=?( unsigned long int &, unsigned long int ), ?=?( volatile unsigned long int &, unsigned long int );488 signed long long int ?=?( signed long long int &, signed long long int ), ?=?( volatile signed long long int &, signed long long int );489 unsigned long long int ?=?( unsigned long long int &, unsigned long long int ), ?=?( volatile unsigned long long int &, unsigned long long int );490 zero_t ?=?( zero_t &, zero_t );491 one_t ?=?( one_t &, one_t );492 493 494 _Bool ?*=?( _Bool &, _Bool ), ?*=?( volatile _Bool &, _Bool );495 char ?*=?( char &, char ), ?*=?( volatile char &, char );496 char signed ?*=?( char signed &, char signed ), ?*=?( volatile char signed &, char signed );497 char unsigned ?*=?( char unsigned &, char unsigned ), ?*=?( volatile char unsigned &, char unsigned );498 int short ?*=?( int short &, int short ), ?*=?( volatile int short &, int short );499 int short unsigned ?*=?( int short unsigned &, int short unsigned ), ?*=?( volatile int short unsigned &, int short unsigned );500 signed int ?*=?( signed int &, signed int ), ?*=?( volatile signed int &, signed int );501 unsigned int ?*=?( unsigned &, unsigned ), ?*=?( volatile unsigned &, unsigned );502 signed long int ?*=?( signed long int &, signed long int ), ?*=?( volatile signed long int &, signed long int );503 unsigned long int ?*=?( unsigned long int &, unsigned long int ), ?*=?( volatile unsigned long int &, unsigned long int );504 signed long long int ?*=?( signed long long int &, signed long long int ), ?*=?( volatile signed long long int &, signed long long int );505 unsigned long long int ?*=?( unsigned long long int &, unsigned long long int ), ?*=?( volatile unsigned long long int &, unsigned long long int );506 507 _Bool ?/=?( _Bool &, _Bool ), ?/=?( volatile _Bool &, _Bool );508 char ?/=?( char &, char ), ?/=?( volatile char &, char );509 char signed ?/=?( char signed &, char signed ), ?/=?( volatile char signed &, char signed );510 char unsigned ?/=?( char unsigned &, char unsigned ), ?/=?( volatile char unsigned &, char unsigned );511 int short ?/=?( int short &, int short ), ?/=?( volatile int short &, int short );512 int short unsigned ?/=?( int short unsigned &, int short unsigned ), ?/=?( volatile int short unsigned &, int short unsigned );513 signed int ?/=?( signed int &, signed int ), ?/=?( volatile signed int &, signed int );514 unsigned int ?/=?( unsigned &, unsigned ), ?/=?( volatile unsigned &, unsigned );515 signed long int ?/=?( signed long int &, signed long int ), ?/=?( volatile signed long int &, signed long int );516 unsigned long int ?/=?( unsigned long int &, unsigned long int ), ?/=?( volatile unsigned long int &, unsigned long int );517 signed long long int ?/=?( signed long long int &, signed long long int ), ?/=?( volatile signed long long int &, signed long long int );518 unsigned long long int ?/=?( unsigned long long int &, unsigned long long int ), ?/=?( volatile unsigned long long int &, unsigned long long int );519 520 _Bool ?%=?( _Bool &, _Bool ), ?%=?( volatile _Bool &, _Bool );521 char ?%=?( char &, char ), ?%=?( volatile char &, char );522 char signed ?%=?( char signed &, char signed ), ?%=?( volatile char signed &, char signed );523 char unsigned ?%=?( char unsigned &, char unsigned ), ?%=?( volatile char unsigned &, char unsigned );524 int short ?%=?( int short &, int short ), ?%=?( volatile int short &, int short );525 int short unsigned ?%=?( int short unsigned &, int short unsigned ), ?%=?( volatile int short unsigned &, int short unsigned );526 signed int ?%=?( signed int &, signed int ), ?%=?( volatile signed int &, signed int );527 unsigned int ?%=?( unsigned &, unsigned ), ?%=?( volatile unsigned &, unsigned );528 signed long int ?%=?( signed long int &, signed long int ), ?%=?( volatile signed long int &, signed long int );529 unsigned long int ?%=?( unsigned long int &, unsigned long int ), ?%=?( volatile unsigned long int &, unsigned long int );530 signed long long int ?%=?( signed long long int &, signed long long int ), ?%=?( volatile signed long long int &, signed long long int );531 unsigned long long int ?%=?( unsigned long long int &, unsigned long long int ), ?%=?( volatile unsigned long long int &, unsigned long long int );532 533 _Bool ?+=?( _Bool &, _Bool ), ?+=?( volatile _Bool &, _Bool );534 char ?+=?( char &, char ), ?+=?( volatile char &, char );535 char signed ?+=?( char signed &, char signed ), ?+=?( volatile char signed &, char signed );536 char unsigned ?+=?( char unsigned &, char unsigned ), ?+=?( volatile char unsigned &, char unsigned );537 int short ?+=?( int short &, int short ), ?+=?( volatile int short &, int short );538 int short unsigned ?+=?( int short unsigned &, int short unsigned ), ?+=?( volatile int short unsigned &, int short unsigned );539 signed int ?+=?( signed int &, signed int ), ?+=?( volatile signed int &, signed int );540 unsigned int ?+=?( unsigned &, unsigned ), ?+=?( volatile unsigned &, unsigned );541 signed long int ?+=?( signed long int &, signed long int ), ?+=?( volatile signed long int &, signed long int );542 unsigned long int ?+=?( unsigned long int &, unsigned long int ), ?+=?( volatile unsigned long int &, unsigned long int );543 signed long long int ?+=?( signed long long int &, signed long long int ), ?+=?( volatile signed long long int &, signed long long int );544 unsigned long long int ?+=?( unsigned long long int &, unsigned long long int ), ?+=?( volatile unsigned long long int &, unsigned long long int );545 546 _Bool ?-=?( _Bool &, _Bool ), ?-=?( volatile _Bool &, _Bool );547 char ?-=?( char &, char ), ?-=?( volatile char &, char );548 char signed ?-=?( char signed &, char signed ), ?-=?( volatile char signed &, char signed );549 char unsigned ?-=?( char unsigned &, char unsigned ), ?-=?( volatile char unsigned &, char unsigned );550 int short ?-=?( int short &, int short ), ?-=?( volatile int short &, int short );551 int short unsigned ?-=?( int short unsigned &, int short unsigned ), ?-=?( volatile int short unsigned &, int short unsigned );552 signed int ?-=?( signed int &, signed int ), ?-=?( volatile signed int &, signed int );553 unsigned int ?-=?( unsigned &, unsigned ), ?-=?( volatile unsigned &, unsigned );554 signed long int ?-=?( signed long int &, signed long int ), ?-=?( volatile signed long int &, signed long int );555 unsigned long int ?-=?( unsigned long int &, unsigned long int ), ?-=?( volatile unsigned long int &, unsigned long int );556 signed long long int ?-=?( signed long long int &, signed long long int ), ?-=?( volatile signed long long int &, signed long long int );557 unsigned long long int ?-=?( unsigned long long int &, unsigned long long int ), ?-=?( volatile unsigned long long int &, unsigned long long int );558 559 _Bool ?<<=?( _Bool &, _Bool ), ?<<=?( volatile _Bool &, _Bool );560 char ?<<=?( char &, char ), ?<<=?( volatile char &, char );561 char signed ?<<=?( char signed &, char signed ), ?<<=?( volatile char signed &, char signed );562 char unsigned ?<<=?( char unsigned &, char unsigned ), ?<<=?( volatile char unsigned &, char unsigned );563 int short ?<<=?( int short &, int short ), ?<<=?( volatile int short &, int short );564 int short unsigned ?<<=?( int short unsigned &, int short unsigned ), ?<<=?( volatile int short unsigned &, int short unsigned );565 signed int ?<<=?( signed int &, signed int ), ?<<=?( volatile signed int &, signed int );566 unsigned int ?<<=?( unsigned &, unsigned ), ?<<=?( volatile unsigned &, unsigned );567 signed long int ?<<=?( signed long int &, signed long int ), ?<<=?( volatile signed long int &, signed long int );568 unsigned long int ?<<=?( unsigned long int &, unsigned long int ), ?<<=?( volatile unsigned long int &, unsigned long int );569 signed long long int ?<<=?( signed long long int &, signed long long int ), ?<<=?( volatile signed long long int &, signed long long int );570 unsigned long long int ?<<=?( unsigned long long int &, unsigned long long int ), ?<<=?( volatile unsigned long long int &, unsigned long long int );571 572 _Bool ?>>=?( _Bool &, _Bool ), ?>>=?( volatile _Bool &, _Bool );573 char ?>>=?( char &, char ), ?>>=?( volatile char &, char );574 char signed ?>>=?( char signed &, char signed ), ?>>=?( volatile char signed &, char signed );575 char unsigned ?>>=?( char unsigned &, char unsigned ), ?>>=?( volatile char unsigned &, char unsigned );576 int short ?>>=?( int short &, int short ), ?>>=?( volatile int short &, int short );577 int short unsigned ?>>=?( int short unsigned &, int short unsigned ), ?>>=?( volatile int short unsigned &, int short unsigned );578 signed int ?>>=?( signed int &, signed int ), ?>>=?( volatile signed int &, signed int );579 unsigned int ?>>=?( unsigned &, unsigned ), ?>>=?( volatile unsigned &, unsigned );580 signed long int ?>>=?( signed long int &, signed long int ), ?>>=?( volatile signed long int &, signed long int );581 unsigned long int ?>>=?( unsigned long int &, unsigned long int ), ?>>=?( volatile unsigned long int &, unsigned long int );582 signed long long int ?>>=?( signed long long int &, signed long long int ), ?>>=?( volatile signed long long int &, signed long long int );583 unsigned long long int ?>>=?( unsigned long long int &, unsigned long long int ), ?>>=?( volatile unsigned long long int &, unsigned long long int );584 585 _Bool ?&=?( _Bool &, _Bool ), ?&=?( volatile _Bool &, _Bool );586 char ?&=?( char &, char ), ?&=?( volatile char &, char );587 char signed ?&=?( char signed &, char signed ), ?&=?( volatile char signed &, char signed );588 char unsigned ?&=?( char unsigned &, char unsigned ), ?&=?( volatile char unsigned &, char unsigned );589 int short ?&=?( int short &, int short ), ?&=?( volatile int short &, int short );590 int short unsigned ?&=?( int short unsigned &, int short unsigned ), ?&=?( volatile int short unsigned &, int short unsigned );591 signed int ?&=?( signed int &, signed int ), ?&=?( volatile signed int &, signed int );592 unsigned int ?&=?( unsigned &, unsigned ), ?&=?( volatile unsigned &, unsigned );593 signed long int ?&=?( signed long int &, signed long int ), ?&=?( volatile signed long int &, signed long int );594 unsigned long int ?&=?( unsigned long int &, unsigned long int ), ?&=?( volatile unsigned long int &, unsigned long int );595 signed long long int ?&=?( signed long long int &, signed long long int ), ?&=?( volatile signed long long int &, signed long long int );596 unsigned long long int ?&=?( unsigned long long int &, unsigned long long int ), ?&=?( volatile unsigned long long int &, unsigned long long int );597 598 _Bool ?|=?( _Bool &, _Bool ), ?|=?( volatile _Bool &, _Bool );599 char ?|=?( char &, char ), ?|=?( volatile char &, char );600 char signed ?|=?( char signed &, char signed ), ?|=?( volatile char signed &, char signed );601 char unsigned ?|=?( char unsigned &, char unsigned ), ?|=?( volatile char unsigned &, char unsigned );602 int short ?|=?( int short &, int short ), ?|=?( volatile int short &, int short );603 int short unsigned ?|=?( int short unsigned &, int short unsigned ), ?|=?( volatile int short unsigned &, int short unsigned );604 signed int ?|=?( signed int &, signed int ), ?|=?( volatile signed int &, signed int );605 unsigned int ?|=?( unsigned &, unsigned ), ?|=?( volatile unsigned &, unsigned );606 signed long int ?|=?( signed long int &, signed long int ), ?|=?( volatile signed long int &, signed long int );607 unsigned long int ?|=?( unsigned long int &, unsigned long int ), ?|=?( volatile unsigned long int &, unsigned long int );608 signed long long int ?|=?( signed long long int &, signed long long int ), ?|=?( volatile signed long long int &, signed long long int );609 unsigned long long int ?|=?( unsigned long long int &, unsigned long long int ), ?|=?( volatile unsigned long long int &, unsigned long long int );610 611 _Bool ?^=?( _Bool &, _Bool ), ?^=?( volatile _Bool &, _Bool );612 char ?^=?( char &, char ), ?^=?( volatile char &, char );613 char signed ?^=?( char signed &, char signed ), ?^=?( volatile char signed &, char signed );614 char unsigned ?^=?( char unsigned &, char unsigned ), ?^=?( volatile char unsigned &, char unsigned );615 int short ?^=?( int short &, int short ), ?^=?( volatile int short &, int short );616 int short unsigned ?^=?( int short unsigned &, int short unsigned ), ?^=?( volatile int short unsigned &, int short unsigned );617 signed int ?^=?( signed int &, signed int ), ?^=?( volatile signed int &, signed int );618 unsigned int ?^=?( unsigned &, unsigned ), ?^=?( volatile unsigned &, unsigned );619 signed long int ?^=?( signed long int &, signed long int ), ?^=?( volatile signed long int &, signed long int );620 unsigned long int ?^=?( unsigned long int &, unsigned long int ), ?^=?( volatile unsigned long int &, unsigned long int );621 signed long long int ?^=?( signed long long int &, signed long long int ), ?^=?( volatile signed long long int &, signed long long int );622 unsigned long long int ?^=?( unsigned long long int &, unsigned long long int ), ?^=?( volatile unsigned long long int &, unsigned long long int );623 624 float ?=?( float &, float ), ?=?( volatile float &, float ),625 ?*=?( float &, float ), ?*=?( volatile float &, float ),626 ?/=?( float &, float ), ?/=?( volatile float &, float ),627 ?+=?( float &, float ), ?+=?( volatile float &, float ),628 ?-=?( float &, float ), ?-=?( volatile float &, float );629 630 double ?=?( double &, double ), ?=?( volatile double &, double ),631 ?*=?( double &, double ), ?*=?( volatile double &, double ),632 ?/=?( double &, double ), ?/=?( volatile double &, double ),633 ?+=?( double &, double ), ?+=?( volatile double &, double ),634 ?-=?( double &, double ), ?-=?( volatile double &, double );635 636 long double ?=?( long double &, long double ), ?=?( volatile long double &, long double ),637 ?*=?( long double &, long double ), ?*=?( volatile long double &, long double ),638 ?/=?( long double &, long double ), ?/=?( volatile long double &, long double ),639 ?+=?( long double &, long double ), ?+=?( volatile long double &, long double ),640 ?-=?( long double &, long double ), ?-=?( volatile long double &, long double );641 642 float _Complex ?=?( float _Complex &, float _Complex ), ?=?( volatile float _Complex &, float _Complex ),643 ?*=?( float _Complex &, float _Complex ), ?*=?( volatile float _Complex &, float _Complex ),644 ?/=?( float _Complex &, float _Complex ), ?/=?( volatile float _Complex &, float _Complex ),645 ?+=?( float _Complex &, float _Complex ), ?+=?( volatile float _Complex &, float _Complex ),646 ?-=?( float _Complex &, float _Complex ), ?-=?( volatile float _Complex &, float _Complex );647 648 double _Complex ?=?( double _Complex &, double _Complex ), ?=?( volatile double _Complex &, double _Complex ),649 ?*=?( double _Complex &, double _Complex ), ?*=?( volatile double _Complex &, double _Complex ),650 ?/=?( double _Complex &, double _Complex ), ?/=?( volatile double _Complex &, double _Complex ),651 ?+=?( double _Complex &, double _Complex ), ?+=?( volatile double _Complex &, double _Complex ),652 ?-=?( double _Complex &, double _Complex ), ?-=?( volatile double _Complex &, double _Complex );653 654 long double _Complex ?=?( long double _Complex &, long double _Complex ), ?=?( volatile long double _Complex &, long double _Complex ),655 ?*=?( long double _Complex &, long double _Complex ), ?*=?( volatile long double _Complex &, long double _Complex ),656 ?/=?( long double _Complex &, long double _Complex ), ?/=?( volatile long double _Complex &, long double _Complex ),657 ?+=?( long double _Complex &, long double _Complex ), ?+=?( volatile long double _Complex &, long double _Complex ),658 ?-=?( long double _Complex &, long double _Complex ), ?-=?( volatile long double _Complex &, long double _Complex );368 forall( ftype FT ) FT * ?=?( FT **, FT * ); 369 forall( ftype FT ) FT * ?=?( FT * volatile *, FT * ); 370 371 forall( dtype DT ) DT * ?=?( DT * *, DT * ); 372 forall( dtype DT ) DT * ?=?( DT * volatile *, DT * ); 373 forall( dtype DT ) const DT * ?=?( const DT * *, DT * ); 374 forall( dtype DT ) const DT * ?=?( const DT * volatile *, DT * ); 375 forall( dtype DT ) const DT * ?=?( const DT * *, const DT * ); 376 forall( dtype DT ) const DT * ?=?( const DT * volatile *, const DT * ); 377 forall( dtype DT ) volatile DT * ?=?( volatile DT * *, DT * ); 378 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, DT * ); 379 forall( dtype DT ) volatile DT * ?=?( volatile DT * *, volatile DT * ); 380 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, volatile DT * ); 381 382 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, DT * ); 383 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, DT * ); 384 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, const DT * ); 385 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, const DT * ); 386 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, volatile DT * ); 387 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, volatile DT * ); 388 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, const volatile DT * ); 389 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, const volatile DT * ); 390 391 forall( dtype DT ) DT * ?=?( DT * *, void * ); 392 forall( dtype DT ) DT * ?=?( DT * volatile *, void * ); 393 forall( dtype DT ) const DT * ?=?( const DT * *, void * ); 394 forall( dtype DT ) const DT * ?=?( const DT * volatile *, void * ); 395 forall( dtype DT ) const DT * ?=?( const DT * *, const void * ); 396 forall( dtype DT ) const DT * ?=?( const DT * volatile *, const void * ); 397 forall( dtype DT ) volatile DT * ?=?( volatile DT * *, void * ); 398 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, void * ); 399 forall( dtype DT ) volatile DT * ?=?( volatile DT * *, volatile void * ); 400 forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, volatile void * ); 401 402 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, void * ); 403 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, void * ); 404 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, const void * ); 405 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, const void * ); 406 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, volatile void * ); 407 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, volatile void * ); 408 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, const volatile void * ); 409 forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, const volatile void * ); 410 411 forall( dtype DT ) void * ?=?( void * *, DT * ); 412 forall( dtype DT ) void * ?=?( void * volatile *, DT * ); 413 forall( dtype DT ) const void * ?=?( const void * *, DT * ); 414 forall( dtype DT ) const void * ?=?( const void * volatile *, DT * ); 415 forall( dtype DT ) const void * ?=?( const void * *, const DT * ); 416 forall( dtype DT ) const void * ?=?( const void * volatile *, const DT * ); 417 forall( dtype DT ) volatile void * ?=?( volatile void * *, DT * ); 418 forall( dtype DT ) volatile void * ?=?( volatile void * volatile *, DT * ); 419 forall( dtype DT ) volatile void * ?=?( volatile void * *, volatile DT * ); 420 forall( dtype DT ) volatile void * ?=?( volatile void * volatile *, volatile DT * ); 421 forall( dtype DT ) const volatile void * ?=?( const volatile void * *, DT * ); 422 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile *, DT * ); 423 forall( dtype DT ) const volatile void * ?=?( const volatile void * *, const DT * ); 424 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile *, const DT * ); 425 forall( dtype DT ) const volatile void * ?=?( const volatile void * *, volatile DT * ); 426 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile *, volatile DT * ); 427 forall( dtype DT ) const volatile void * ?=?( const volatile void * *, const volatile DT * ); 428 forall( dtype DT ) const volatile void * ?=?( const volatile void * volatile *, const volatile DT * ); 429 430 void * ?=?( void * *, void * ); 431 void * ?=?( void * volatile *, void * ); 432 const void * ?=?( const void * *, void * ); 433 const void * ?=?( const void * volatile *, void * ); 434 const void * ?=?( const void * *, const void * ); 435 const void * ?=?( const void * volatile *, const void * ); 436 volatile void * ?=?( volatile void * *, void * ); 437 volatile void * ?=?( volatile void * volatile *, void * ); 438 volatile void * ?=?( volatile void * *, volatile void * ); 439 volatile void * ?=?( volatile void * volatile *, volatile void * ); 440 const volatile void * ?=?( const volatile void * *, void * ); 441 const volatile void * ?=?( const volatile void * volatile *, void * ); 442 const volatile void * ?=?( const volatile void * *, const void * ); 443 const volatile void * ?=?( const volatile void * volatile *, const void * ); 444 const volatile void * ?=?( const volatile void * *, volatile void * ); 445 const volatile void * ?=?( const volatile void * volatile *, volatile void * ); 446 const volatile void * ?=?( const volatile void * *, const volatile void * ); 447 const volatile void * ?=?( const volatile void * volatile *, const volatile void * ); 448 449 // //forall( dtype DT ) DT * ?=?( DT * *, zero_t ); 450 // //forall( dtype DT ) DT * ?=?( DT * volatile *, zero_t ); 451 // forall( dtype DT ) const DT * ?=?( const DT * *, zero_t ); 452 // forall( dtype DT ) const DT * ?=?( const DT * volatile *, zero_t ); 453 // //forall( dtype DT ) volatile DT * ?=?( volatile DT * *, zero_t ); 454 // //forall( dtype DT ) volatile DT * ?=?( volatile DT * volatile *, ); 455 // forall( dtype DT ) const volatile DT * ?=?( const volatile DT * *, zero_t ); 456 // forall( dtype DT ) const volatile DT * ?=?( const volatile DT * volatile *, zero_t ); 457 458 // forall( ftype FT ) FT * ?=?( FT * *, zero_t ); 459 // forall( ftype FT ) FT * ?=?( FT * volatile *, zero_t ); 460 461 forall( dtype T | sized(T) ) T * ?+=?( T * *, ptrdiff_t ); 462 forall( dtype T | sized(T) ) T * ?+=?( T * volatile *, ptrdiff_t ); 463 forall( dtype T | sized(T) ) const T * ?+=?( const T * *, ptrdiff_t ); 464 forall( dtype T | sized(T) ) const T * ?+=?( const T * volatile *, ptrdiff_t ); 465 forall( dtype T | sized(T) ) volatile T * ?+=?( volatile T * *, ptrdiff_t ); 466 forall( dtype T | sized(T) ) volatile T * ?+=?( volatile T * volatile *, ptrdiff_t ); 467 forall( dtype T | sized(T) ) const volatile T * ?+=?( const volatile T * *, ptrdiff_t ); 468 forall( dtype T | sized(T) ) const volatile T * ?+=?( const volatile T * volatile *, ptrdiff_t ); 469 forall( dtype T | sized(T) ) T * ?-=?( T * *, ptrdiff_t ); 470 forall( dtype T | sized(T) ) T * ?-=?( T * volatile *, ptrdiff_t ); 471 forall( dtype T | sized(T) ) const T * ?-=?( const T * *, ptrdiff_t ); 472 forall( dtype T | sized(T) ) const T * ?-=?( const T * volatile *, ptrdiff_t ); 473 forall( dtype T | sized(T) ) volatile T * ?-=?( volatile T * *, ptrdiff_t ); 474 forall( dtype T | sized(T) ) volatile T * ?-=?( volatile T * volatile *, ptrdiff_t ); 475 forall( dtype T | sized(T) ) const volatile T * ?-=?( const volatile T * *, ptrdiff_t ); 476 forall( dtype T | sized(T) ) const volatile T * ?-=?( const volatile T * volatile *, ptrdiff_t ); 477 478 _Bool ?=?( _Bool *, _Bool ), ?=?( volatile _Bool *, _Bool ); 479 char ?=?( char *, char ), ?=?( volatile char *, char ); 480 char signed ?=?( char signed *, char signed ), ?=?( volatile char signed *, char signed ); 481 char unsigned ?=?( char unsigned *, char unsigned ), ?=?( volatile char unsigned *, char unsigned ); 482 int short ?=?( int short *, int short ), ?=?( volatile int short *, int short ); 483 int short unsigned ?=?( int short unsigned *, int short unsigned ), ?=?( volatile int short unsigned *, int short unsigned ); 484 signed int ?=?( signed int *, signed int ), ?=?( volatile signed int *, signed int ); 485 unsigned int ?=?( unsigned *, unsigned ), ?=?( volatile unsigned *, unsigned ); 486 signed long int ?=?( signed long int *, signed long int ), ?=?( volatile signed long int *, signed long int ); 487 unsigned long int ?=?( unsigned long int *, unsigned long int ), ?=?( volatile unsigned long int *, unsigned long int ); 488 signed long long int ?=?( signed long long int *, signed long long int ), ?=?( volatile signed long long int *, signed long long int ); 489 unsigned long long int ?=?( unsigned long long int *, unsigned long long int ), ?=?( volatile unsigned long long int *, unsigned long long int ); 490 zero_t ?=?( zero_t *, zero_t ); 491 one_t ?=?( one_t *, one_t ); 492 493 494 _Bool ?*=?( _Bool *, _Bool ), ?*=?( volatile _Bool *, _Bool ); 495 char ?*=?( char *, char ), ?*=?( volatile char *, char ); 496 char signed ?*=?( char signed *, char signed ), ?*=?( volatile char signed *, char signed ); 497 char unsigned ?*=?( char unsigned *, char unsigned ), ?*=?( volatile char unsigned *, char unsigned ); 498 int short ?*=?( int short *, int short ), ?*=?( volatile int short *, int short ); 499 int short unsigned ?*=?( int short unsigned *, int short unsigned ), ?*=?( volatile int short unsigned *, int short unsigned ); 500 signed int ?*=?( signed int *, signed int ), ?*=?( volatile signed int *, signed int ); 501 unsigned int ?*=?( unsigned *, unsigned ), ?*=?( volatile unsigned *, unsigned ); 502 signed long int ?*=?( signed long int *, signed long int ), ?*=?( volatile signed long int *, signed long int ); 503 unsigned long int ?*=?( unsigned long int *, unsigned long int ), ?*=?( volatile unsigned long int *, unsigned long int ); 504 signed long long int ?*=?( signed long long int *, signed long long int ), ?*=?( volatile signed long long int *, signed long long int ); 505 unsigned long long int ?*=?( unsigned long long int *, unsigned long long int ), ?*=?( volatile unsigned long long int *, unsigned long long int ); 506 507 _Bool ?/=?( _Bool *, _Bool ), ?/=?( volatile _Bool *, _Bool ); 508 char ?/=?( char *, char ), ?/=?( volatile char *, char ); 509 char signed ?/=?( char signed *, char signed ), ?/=?( volatile char signed *, char signed ); 510 char unsigned ?/=?( char unsigned *, char unsigned ), ?/=?( volatile char unsigned *, char unsigned ); 511 int short ?/=?( int short *, int short ), ?/=?( volatile int short *, int short ); 512 int short unsigned ?/=?( int short unsigned *, int short unsigned ), ?/=?( volatile int short unsigned *, int short unsigned ); 513 signed int ?/=?( signed int *, signed int ), ?/=?( volatile signed int *, signed int ); 514 unsigned int ?/=?( unsigned *, unsigned ), ?/=?( volatile unsigned *, unsigned ); 515 signed long int ?/=?( signed long int *, signed long int ), ?/=?( volatile signed long int *, signed long int ); 516 unsigned long int ?/=?( unsigned long int *, unsigned long int ), ?/=?( volatile unsigned long int *, unsigned long int ); 517 signed long long int ?/=?( signed long long int *, signed long long int ), ?/=?( volatile signed long long int *, signed long long int ); 518 unsigned long long int ?/=?( unsigned long long int *, unsigned long long int ), ?/=?( volatile unsigned long long int *, unsigned long long int ); 519 520 _Bool ?%=?( _Bool *, _Bool ), ?%=?( volatile _Bool *, _Bool ); 521 char ?%=?( char *, char ), ?%=?( volatile char *, char ); 522 char signed ?%=?( char signed *, char signed ), ?%=?( volatile char signed *, char signed ); 523 char unsigned ?%=?( char unsigned *, char unsigned ), ?%=?( volatile char unsigned *, char unsigned ); 524 int short ?%=?( int short *, int short ), ?%=?( volatile int short *, int short ); 525 int short unsigned ?%=?( int short unsigned *, int short unsigned ), ?%=?( volatile int short unsigned *, int short unsigned ); 526 signed int ?%=?( signed int *, signed int ), ?%=?( volatile signed int *, signed int ); 527 unsigned int ?%=?( unsigned *, unsigned ), ?%=?( volatile unsigned *, unsigned ); 528 signed long int ?%=?( signed long int *, signed long int ), ?%=?( volatile signed long int *, signed long int ); 529 unsigned long int ?%=?( unsigned long int *, unsigned long int ), ?%=?( volatile unsigned long int *, unsigned long int ); 530 signed long long int ?%=?( signed long long int *, signed long long int ), ?%=?( volatile signed long long int *, signed long long int ); 531 unsigned long long int ?%=?( unsigned long long int *, unsigned long long int ), ?%=?( volatile unsigned long long int *, unsigned long long int ); 532 533 _Bool ?+=?( _Bool *, _Bool ), ?+=?( volatile _Bool *, _Bool ); 534 char ?+=?( char *, char ), ?+=?( volatile char *, char ); 535 char signed ?+=?( char signed *, char signed ), ?+=?( volatile char signed *, char signed ); 536 char unsigned ?+=?( char unsigned *, char unsigned ), ?+=?( volatile char unsigned *, char unsigned ); 537 int short ?+=?( int short *, int short ), ?+=?( volatile int short *, int short ); 538 int short unsigned ?+=?( int short unsigned *, int short unsigned ), ?+=?( volatile int short unsigned *, int short unsigned ); 539 signed int ?+=?( signed int *, signed int ), ?+=?( volatile signed int *, signed int ); 540 unsigned int ?+=?( unsigned *, unsigned ), ?+=?( volatile unsigned *, unsigned ); 541 signed long int ?+=?( signed long int *, signed long int ), ?+=?( volatile signed long int *, signed long int ); 542 unsigned long int ?+=?( unsigned long int *, unsigned long int ), ?+=?( volatile unsigned long int *, unsigned long int ); 543 signed long long int ?+=?( signed long long int *, signed long long int ), ?+=?( volatile signed long long int *, signed long long int ); 544 unsigned long long int ?+=?( unsigned long long int *, unsigned long long int ), ?+=?( volatile unsigned long long int *, unsigned long long int ); 545 546 _Bool ?-=?( _Bool *, _Bool ), ?-=?( volatile _Bool *, _Bool ); 547 char ?-=?( char *, char ), ?-=?( volatile char *, char ); 548 char signed ?-=?( char signed *, char signed ), ?-=?( volatile char signed *, char signed ); 549 char unsigned ?-=?( char unsigned *, char unsigned ), ?-=?( volatile char unsigned *, char unsigned ); 550 int short ?-=?( int short *, int short ), ?-=?( volatile int short *, int short ); 551 int short unsigned ?-=?( int short unsigned *, int short unsigned ), ?-=?( volatile int short unsigned *, int short unsigned ); 552 signed int ?-=?( signed int *, signed int ), ?-=?( volatile signed int *, signed int ); 553 unsigned int ?-=?( unsigned *, unsigned ), ?-=?( volatile unsigned *, unsigned ); 554 signed long int ?-=?( signed long int *, signed long int ), ?-=?( volatile signed long int *, signed long int ); 555 unsigned long int ?-=?( unsigned long int *, unsigned long int ), ?-=?( volatile unsigned long int *, unsigned long int ); 556 signed long long int ?-=?( signed long long int *, signed long long int ), ?-=?( volatile signed long long int *, signed long long int ); 557 unsigned long long int ?-=?( unsigned long long int *, unsigned long long int ), ?-=?( volatile unsigned long long int *, unsigned long long int ); 558 559 _Bool ?<<=?( _Bool *, _Bool ), ?<<=?( volatile _Bool *, _Bool ); 560 char ?<<=?( char *, char ), ?<<=?( volatile char *, char ); 561 char signed ?<<=?( char signed *, char signed ), ?<<=?( volatile char signed *, char signed ); 562 char unsigned ?<<=?( char unsigned *, char unsigned ), ?<<=?( volatile char unsigned *, char unsigned ); 563 int short ?<<=?( int short *, int short ), ?<<=?( volatile int short *, int short ); 564 int short unsigned ?<<=?( int short unsigned *, int short unsigned ), ?<<=?( volatile int short unsigned *, int short unsigned ); 565 signed int ?<<=?( signed int *, signed int ), ?<<=?( volatile signed int *, signed int ); 566 unsigned int ?<<=?( unsigned *, unsigned ), ?<<=?( volatile unsigned *, unsigned ); 567 signed long int ?<<=?( signed long int *, signed long int ), ?<<=?( volatile signed long int *, signed long int ); 568 unsigned long int ?<<=?( unsigned long int *, unsigned long int ), ?<<=?( volatile unsigned long int *, unsigned long int ); 569 signed long long int ?<<=?( signed long long int *, signed long long int ), ?<<=?( volatile signed long long int *, signed long long int ); 570 unsigned long long int ?<<=?( unsigned long long int *, unsigned long long int ), ?<<=?( volatile unsigned long long int *, unsigned long long int ); 571 572 _Bool ?>>=?( _Bool *, _Bool ), ?>>=?( volatile _Bool *, _Bool ); 573 char ?>>=?( char *, char ), ?>>=?( volatile char *, char ); 574 char signed ?>>=?( char signed *, char signed ), ?>>=?( volatile char signed *, char signed ); 575 char unsigned ?>>=?( char unsigned *, char unsigned ), ?>>=?( volatile char unsigned *, char unsigned ); 576 int short ?>>=?( int short *, int short ), ?>>=?( volatile int short *, int short ); 577 int short unsigned ?>>=?( int short unsigned *, int short unsigned ), ?>>=?( volatile int short unsigned *, int short unsigned ); 578 signed int ?>>=?( signed int *, signed int ), ?>>=?( volatile signed int *, signed int ); 579 unsigned int ?>>=?( unsigned *, unsigned ), ?>>=?( volatile unsigned *, unsigned ); 580 signed long int ?>>=?( signed long int *, signed long int ), ?>>=?( volatile signed long int *, signed long int ); 581 unsigned long int ?>>=?( unsigned long int *, unsigned long int ), ?>>=?( volatile unsigned long int *, unsigned long int ); 582 signed long long int ?>>=?( signed long long int *, signed long long int ), ?>>=?( volatile signed long long int *, signed long long int ); 583 unsigned long long int ?>>=?( unsigned long long int *, unsigned long long int ), ?>>=?( volatile unsigned long long int *, unsigned long long int ); 584 585 _Bool ?&=?( _Bool *, _Bool ), ?&=?( volatile _Bool *, _Bool ); 586 char ?&=?( char *, char ), ?&=?( volatile char *, char ); 587 char signed ?&=?( char signed *, char signed ), ?&=?( volatile char signed *, char signed ); 588 char unsigned ?&=?( char unsigned *, char unsigned ), ?&=?( volatile char unsigned *, char unsigned ); 589 int short ?&=?( int short *, int short ), ?&=?( volatile int short *, int short ); 590 int short unsigned ?&=?( int short unsigned *, int short unsigned ), ?&=?( volatile int short unsigned *, int short unsigned ); 591 signed int ?&=?( signed int *, signed int ), ?&=?( volatile signed int *, signed int ); 592 unsigned int ?&=?( unsigned *, unsigned ), ?&=?( volatile unsigned *, unsigned ); 593 signed long int ?&=?( signed long int *, signed long int ), ?&=?( volatile signed long int *, signed long int ); 594 unsigned long int ?&=?( unsigned long int *, unsigned long int ), ?&=?( volatile unsigned long int *, unsigned long int ); 595 signed long long int ?&=?( signed long long int *, signed long long int ), ?&=?( volatile signed long long int *, signed long long int ); 596 unsigned long long int ?&=?( unsigned long long int *, unsigned long long int ), ?&=?( volatile unsigned long long int *, unsigned long long int ); 597 598 _Bool ?|=?( _Bool *, _Bool ), ?|=?( volatile _Bool *, _Bool ); 599 char ?|=?( char *, char ), ?|=?( volatile char *, char ); 600 char signed ?|=?( char signed *, char signed ), ?|=?( volatile char signed *, char signed ); 601 char unsigned ?|=?( char unsigned *, char unsigned ), ?|=?( volatile char unsigned *, char unsigned ); 602 int short ?|=?( int short *, int short ), ?|=?( volatile int short *, int short ); 603 int short unsigned ?|=?( int short unsigned *, int short unsigned ), ?|=?( volatile int short unsigned *, int short unsigned ); 604 signed int ?|=?( signed int *, signed int ), ?|=?( volatile signed int *, signed int ); 605 unsigned int ?|=?( unsigned *, unsigned ), ?|=?( volatile unsigned *, unsigned ); 606 signed long int ?|=?( signed long int *, signed long int ), ?|=?( volatile signed long int *, signed long int ); 607 unsigned long int ?|=?( unsigned long int *, unsigned long int ), ?|=?( volatile unsigned long int *, unsigned long int ); 608 signed long long int ?|=?( signed long long int *, signed long long int ), ?|=?( volatile signed long long int *, signed long long int ); 609 unsigned long long int ?|=?( unsigned long long int *, unsigned long long int ), ?|=?( volatile unsigned long long int *, unsigned long long int ); 610 611 _Bool ?^=?( _Bool *, _Bool ), ?^=?( volatile _Bool *, _Bool ); 612 char ?^=?( char *, char ), ?^=?( volatile char *, char ); 613 char signed ?^=?( char signed *, char signed ), ?^=?( volatile char signed *, char signed ); 614 char unsigned ?^=?( char unsigned *, char unsigned ), ?^=?( volatile char unsigned *, char unsigned ); 615 int short ?^=?( int short *, int short ), ?^=?( volatile int short *, int short ); 616 int short unsigned ?^=?( int short unsigned *, int short unsigned ), ?^=?( volatile int short unsigned *, int short unsigned ); 617 signed int ?^=?( signed int *, signed int ), ?^=?( volatile signed int *, signed int ); 618 unsigned int ?^=?( unsigned *, unsigned ), ?^=?( volatile unsigned *, unsigned ); 619 signed long int ?^=?( signed long int *, signed long int ), ?^=?( volatile signed long int *, signed long int ); 620 unsigned long int ?^=?( unsigned long int *, unsigned long int ), ?^=?( volatile unsigned long int *, unsigned long int ); 621 signed long long int ?^=?( signed long long int *, signed long long int ), ?^=?( volatile signed long long int *, signed long long int ); 622 unsigned long long int ?^=?( unsigned long long int *, unsigned long long int ), ?^=?( volatile unsigned long long int *, unsigned long long int ); 623 624 float ?=?( float *, float ), ?=?( volatile float *, float ), 625 ?*=?( float *, float ), ?*=?( volatile float *, float ), 626 ?/=?( float *, float ), ?/=?( volatile float *, float ), 627 ?+=?( float *, float ), ?+=?( volatile float *, float ), 628 ?-=?( float *, float ), ?-=?( volatile float *, float ); 629 630 double ?=?( double *, double ), ?=?( volatile double *, double ), 631 ?*=?( double *, double ), ?*=?( volatile double *, double ), 632 ?/=?( double *, double ), ?/=?( volatile double *, double ), 633 ?+=?( double *, double ), ?+=?( volatile double *, double ), 634 ?-=?( double *, double ), ?-=?( volatile double *, double ); 635 636 long double ?=?( long double *, long double ), ?=?( volatile long double *, long double ), 637 ?*=?( long double *, long double ), ?*=?( volatile long double *, long double ), 638 ?/=?( long double *, long double ), ?/=?( volatile long double *, long double ), 639 ?+=?( long double *, long double ), ?+=?( volatile long double *, long double ), 640 ?-=?( long double *, long double ), ?-=?( volatile long double *, long double ); 641 642 float _Complex ?=?( float _Complex *, float _Complex ), ?=?( volatile float _Complex *, float _Complex ), 643 ?*=?( float _Complex *, float _Complex ), ?*=?( volatile float _Complex *, float _Complex ), 644 ?/=?( float _Complex *, float _Complex ), ?/=?( volatile float _Complex *, float _Complex ), 645 ?+=?( float _Complex *, float _Complex ), ?+=?( volatile float _Complex *, float _Complex ), 646 ?-=?( float _Complex *, float _Complex ), ?-=?( volatile float _Complex *, float _Complex ); 647 648 double _Complex ?=?( double _Complex *, double _Complex ), ?=?( volatile double _Complex *, double _Complex ), 649 ?*=?( double _Complex *, double _Complex ), ?*=?( volatile double _Complex *, double _Complex ), 650 ?/=?( double _Complex *, double _Complex ), ?/=?( volatile double _Complex *, double _Complex ), 651 ?+=?( double _Complex *, double _Complex ), ?+=?( volatile double _Complex *, double _Complex ), 652 ?-=?( double _Complex *, double _Complex ), ?-=?( volatile double _Complex *, double _Complex ); 653 654 long double _Complex ?=?( long double _Complex *, long double _Complex ), ?=?( volatile long double _Complex *, long double _Complex ), 655 ?*=?( long double _Complex *, long double _Complex ), ?*=?( volatile long double _Complex *, long double _Complex ), 656 ?/=?( long double _Complex *, long double _Complex ), ?/=?( volatile long double _Complex *, long double _Complex ), 657 ?+=?( long double _Complex *, long double _Complex ), ?+=?( volatile long double _Complex *, long double _Complex ), 658 ?-=?( long double _Complex *, long double _Complex ), ?-=?( volatile long double _Complex *, long double _Complex ); 659 659 660 660 … … 669 669 670 670 // default ctor 671 void ?{}( _Bool &);672 void ?{}( char &);673 void ?{}( unsigned char &);674 void ?{}( char signed &);675 void ?{}( int short &);676 void ?{}( int short unsigned &);677 void ?{}( signed int &);678 void ?{}( unsigned int &);679 void ?{}( signed long int &);680 void ?{}( unsigned long int &);681 void ?{}( signed long long int &);682 void ?{}( unsigned long long int &);683 void ?{}( float &);684 void ?{}( double &);685 void ?{}( long double &);686 void ?{}( float _Complex &);687 void ?{}( double _Complex &);688 void ?{}( long double _Complex &);689 void ?{}( zero_t &);690 void ?{}( one_t &);671 void ?{}( _Bool * ); 672 void ?{}( char * ); 673 void ?{}( unsigned char * ); 674 void ?{}( char signed * ); 675 void ?{}( int short * ); 676 void ?{}( int short unsigned * ); 677 void ?{}( signed int * ); 678 void ?{}( unsigned int * ); 679 void ?{}( signed long int * ); 680 void ?{}( unsigned long int * ); 681 void ?{}( signed long long int * ); 682 void ?{}( unsigned long long int * ); 683 void ?{}( float * ); 684 void ?{}( double * ); 685 void ?{}( long double * ); 686 void ?{}( float _Complex * ); 687 void ?{}( double _Complex * ); 688 void ?{}( long double _Complex * ); 689 void ?{}( zero_t * ); 690 void ?{}( one_t * ); 691 691 692 692 // copy ctor 693 void ?{}( _Bool &, _Bool );694 void ?{}( char &, char );695 void ?{}( unsigned char &, unsigned char );696 void ?{}( char signed &, char signed );697 void ?{}( int short &, int short );698 void ?{}( int short unsigned &, int short unsigned );699 void ?{}( signed int &, signed int);700 void ?{}( unsigned int &, unsigned int);701 void ?{}( signed long int &, signed long int);702 void ?{}( unsigned long int &, unsigned long int);703 void ?{}( signed long long int &, signed long long int);704 void ?{}( unsigned long long int &, unsigned long long int);705 void ?{}( float &, float);706 void ?{}( double &, double);707 void ?{}( long double &, long double);708 void ?{}( float _Complex &, float _Complex);709 void ?{}( double _Complex &, double _Complex);710 void ?{}( long double _Complex &, long double _Complex);711 void ?{}( zero_t &, zero_t );712 void ?{}( one_t &, one_t );693 void ?{}( _Bool *, _Bool ); 694 void ?{}( char *, char ); 695 void ?{}( unsigned char *, unsigned char ); 696 void ?{}( char signed *, char signed ); 697 void ?{}( int short *, int short ); 698 void ?{}( int short unsigned *, int short unsigned ); 699 void ?{}( signed int *, signed int); 700 void ?{}( unsigned int *, unsigned int); 701 void ?{}( signed long int *, signed long int); 702 void ?{}( unsigned long int *, unsigned long int); 703 void ?{}( signed long long int *, signed long long int); 704 void ?{}( unsigned long long int *, unsigned long long int); 705 void ?{}( float *, float); 706 void ?{}( double *, double); 707 void ?{}( long double *, long double); 708 void ?{}( float _Complex *, float _Complex); 709 void ?{}( double _Complex *, double _Complex); 710 void ?{}( long double _Complex *, long double _Complex); 711 void ?{}( zero_t *, zero_t ); 712 void ?{}( one_t *, one_t ); 713 713 714 714 // dtor 715 void ^?{}( _Bool &);716 void ^?{}( char &);717 void ^?{}( char unsigned &);718 void ^?{}( char signed &);719 void ^?{}( int short &);720 void ^?{}( int short unsigned &);721 void ^?{}( signed int &);722 void ^?{}( unsigned int &);723 void ^?{}( signed long int &);724 void ^?{}( unsigned long int &);725 void ^?{}( signed long long int &);726 void ^?{}( unsigned long long int &);727 void ^?{}( float &);728 void ^?{}( double &);729 void ^?{}( long double &);730 void ^?{}( float _Complex &);731 void ^?{}( double _Complex &);732 void ^?{}( long double _Complex &);733 void ^?{}( zero_t &);734 void ^?{}( one_t &);715 void ^?{}( _Bool * ); 716 void ^?{}( char * ); 717 void ^?{}( char unsigned * ); 718 void ^?{}( char signed * ); 719 void ^?{}( int short * ); 720 void ^?{}( int short unsigned * ); 721 void ^?{}( signed int * ); 722 void ^?{}( unsigned int * ); 723 void ^?{}( signed long int * ); 724 void ^?{}( unsigned long int * ); 725 void ^?{}( signed long long int * ); 726 void ^?{}( unsigned long long int * ); 727 void ^?{}( float * ); 728 void ^?{}( double * ); 729 void ^?{}( long double * ); 730 void ^?{}( float _Complex * ); 731 void ^?{}( double _Complex * ); 732 void ^?{}( long double _Complex * ); 733 void ^?{}( zero_t * ); 734 void ^?{}( one_t * ); 735 735 736 736 // // default ctor … … 754 754 // copied from assignment section 755 755 // copy constructors 756 forall( ftype FT ) void ?{}( FT * &, FT * );757 forall( ftype FT ) void ?{}( FT * volatile &, FT * );758 759 forall( dtype DT ) void ?{}( DT * &, DT * );760 forall( dtype DT ) void ?{}( const DT * &, DT * );761 forall( dtype DT ) void ?{}( const DT * &, const DT * );762 forall( dtype DT ) void ?{}( volatile DT * &, DT * );763 forall( dtype DT ) void ?{}( volatile DT * &, volatile DT * );764 765 forall( dtype DT ) void ?{}( const volatile DT * &, DT * );766 forall( dtype DT ) void ?{}( const volatile DT * &, const DT * );767 forall( dtype DT ) void ?{}( const volatile DT * &, volatile DT * );768 forall( dtype DT ) void ?{}( const volatile DT * &, const volatile DT * );769 770 forall( dtype DT ) void ?{}( DT * &, void * );771 forall( dtype DT ) void ?{}( const DT * &, void * );772 forall( dtype DT ) void ?{}( const DT * &, const void * );773 forall( dtype DT ) void ?{}( volatile DT * &, void * );774 forall( dtype DT ) void ?{}( volatile DT * &, volatile void * );775 776 forall( dtype DT ) void ?{}( const volatile DT * &, void * );777 forall( dtype DT ) void ?{}( const volatile DT * &, const void * );778 forall( dtype DT ) void ?{}( const volatile DT * &, volatile void * );779 forall( dtype DT ) void ?{}( const volatile DT * &, const volatile void * );780 781 forall( dtype DT ) void ?{}( void * &, DT * );782 forall( dtype DT ) void ?{}( const void * &, DT * );783 forall( dtype DT ) void ?{}( const void * &, const DT * );784 forall( dtype DT ) void ?{}( volatile void * &, DT * );785 forall( dtype DT ) void ?{}( volatile void * &, volatile DT * );786 forall( dtype DT ) void ?{}( const volatile void * &, DT * );787 forall( dtype DT ) void ?{}( const volatile void * &, const DT * );788 forall( dtype DT ) void ?{}( const volatile void * &, volatile DT * );789 forall( dtype DT ) void ?{}( const volatile void * &, const volatile DT * );790 791 void ?{}( void * &, void * );792 void ?{}( const void * &, void * );793 void ?{}( const void * &, const void * );794 void ?{}( volatile void * &, void * );795 void ?{}( volatile void * &, volatile void * );796 void ?{}( const volatile void * &, void * );797 void ?{}( const volatile void * &, const void * );798 void ?{}( const volatile void * &, volatile void * );799 void ?{}( const volatile void * &, const volatile void * );800 801 // forall( dtype DT ) void ?{}( DT * &, zero_t );802 // forall( dtype DT ) void ?{}( DT * volatile &, zero_t );803 forall( dtype DT ) void ?{}( const DT * &, zero_t );804 // forall( dtype DT ) void ?{}( volatile DT * &, zero_t );805 // forall( dtype DT ) void ?{}( volatile DT * volatile &, zero_t );806 forall( dtype DT ) void ?{}( const volatile DT * &, zero_t );807 808 forall( ftype FT ) void ?{}( FT * &, zero_t );756 forall( ftype FT ) void ?{}( FT **, FT * ); 757 forall( ftype FT ) void ?{}( FT * volatile *, FT * ); 758 759 forall( dtype DT ) void ?{}( DT * *, DT * ); 760 forall( dtype DT ) void ?{}( const DT * *, DT * ); 761 forall( dtype DT ) void ?{}( const DT * *, const DT * ); 762 forall( dtype DT ) void ?{}( volatile DT * *, DT * ); 763 forall( dtype DT ) void ?{}( volatile DT * *, volatile DT * ); 764 765 forall( dtype DT ) void ?{}( const volatile DT * *, DT * ); 766 forall( dtype DT ) void ?{}( const volatile DT * *, const DT * ); 767 forall( dtype DT ) void ?{}( const volatile DT * *, volatile DT * ); 768 forall( dtype DT ) void ?{}( const volatile DT * *, const volatile DT * ); 769 770 forall( dtype DT ) void ?{}( DT * *, void * ); 771 forall( dtype DT ) void ?{}( const DT * *, void * ); 772 forall( dtype DT ) void ?{}( const DT * *, const void * ); 773 forall( dtype DT ) void ?{}( volatile DT * *, void * ); 774 forall( dtype DT ) void ?{}( volatile DT * *, volatile void * ); 775 776 forall( dtype DT ) void ?{}( const volatile DT * *, void * ); 777 forall( dtype DT ) void ?{}( const volatile DT * *, const void * ); 778 forall( dtype DT ) void ?{}( const volatile DT * *, volatile void * ); 779 forall( dtype DT ) void ?{}( const volatile DT * *, const volatile void * ); 780 781 forall( dtype DT ) void ?{}( void * *, DT * ); 782 forall( dtype DT ) void ?{}( const void * *, DT * ); 783 forall( dtype DT ) void ?{}( const void * *, const DT * ); 784 forall( dtype DT ) void ?{}( volatile void * *, DT * ); 785 forall( dtype DT ) void ?{}( volatile void * *, volatile DT * ); 786 forall( dtype DT ) void ?{}( const volatile void * *, DT * ); 787 forall( dtype DT ) void ?{}( const volatile void * *, const DT * ); 788 forall( dtype DT ) void ?{}( const volatile void * *, volatile DT * ); 789 forall( dtype DT ) void ?{}( const volatile void * *, const volatile DT * ); 790 791 void ?{}( void * *, void * ); 792 void ?{}( const void * *, void * ); 793 void ?{}( const void * *, const void * ); 794 void ?{}( volatile void * *, void * ); 795 void ?{}( volatile void * *, volatile void * ); 796 void ?{}( const volatile void * *, void * ); 797 void ?{}( const volatile void * *, const void * ); 798 void ?{}( const volatile void * *, volatile void * ); 799 void ?{}( const volatile void * *, const volatile void * ); 800 801 // //forall( dtype DT ) void ?{}( DT * *, zero_t ); 802 // //forall( dtype DT ) void ?{}( DT * volatile *, zero_t ); 803 // forall( dtype DT ) void ?{}( const DT * *, zero_t ); 804 // //forall( dtype DT ) void ?{}( volatile DT * *, zero_t ); 805 // //forall( dtype DT ) void ?{}( volatile DT * volatile *, zero_t ); 806 // forall( dtype DT ) void ?{}( const volatile DT * *, zero_t ); 807 808 // forall( ftype FT ) void ?{}( FT * *, zero_t ); 809 809 810 810 // default ctors 811 forall( ftype FT ) void ?{}( FT * &);812 813 forall( dtype DT ) void ?{}( DT * &);814 forall( dtype DT ) void ?{}( const DT * &);815 forall( dtype DT ) void ?{}( volatile DT * &);816 forall( dtype DT ) void ?{}( const volatile DT * &);817 818 void ?{}( void * &);819 void ?{}( const void * &);820 void ?{}( volatile void * &);821 void ?{}( const volatile void * &);811 forall( ftype FT ) void ?{}( FT * * ); 812 813 forall( dtype DT ) void ?{}( DT * *); 814 forall( dtype DT ) void ?{}( const DT * *); 815 forall( dtype DT ) void ?{}( volatile DT * *); 816 forall( dtype DT ) void ?{}( const volatile DT * *); 817 818 void ?{}( void * *); 819 void ?{}( const void * *); 820 void ?{}( volatile void * *); 821 void ?{}( const volatile void * *); 822 822 823 823 // dtors 824 forall( ftype FT ) void ^?{}( FT * &);825 826 forall( dtype DT ) void ^?{}( DT * &);827 forall( dtype DT ) void ^?{}( const DT * &);828 forall( dtype DT ) void ^?{}( volatile DT * &);829 forall( dtype DT ) void ^?{}( const volatile DT * &);830 831 void ^?{}( void * &);832 void ^?{}( const void * &);833 void ^?{}( volatile void * &);834 void ^?{}( const volatile void * &);824 forall( ftype FT ) void ^?{}( FT * * ); 825 826 forall( dtype DT ) void ^?{}( DT * *); 827 forall( dtype DT ) void ^?{}( const DT * *); 828 forall( dtype DT ) void ^?{}( volatile DT * *); 829 forall( dtype DT ) void ^?{}( const volatile DT * *); 830 831 void ^?{}( void * *); 832 void ^?{}( const void * *); 833 void ^?{}( volatile void * *); 834 void ^?{}( const volatile void * *); 835 835 836 836 // Local Variables: // -
src/tests/.expect/32/KRfunctions.txt
r28e58fd raf08051 15 15 } 16 16 struct S { 17 17 int __i__i_1; 18 18 }; 19 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);20 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);21 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);22 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);23 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){24 ((void)((* ___dst__R2sS_1).__i__i_1) /* ?{} */);19 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 20 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 21 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 22 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 23 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 24 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))) /* ?{} */); 25 25 } 26 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){27 ((void)((* ___dst__R2sS_1).__i__i_1=___src__2sS_1.__i__i_1) /* ?{} */);26 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 27 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))=___src__2sS_1.__i__i_1) /* ?{} */); 28 28 } 29 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){30 ((void)((* ___dst__R2sS_1).__i__i_1) /* ^?{} */);29 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 30 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))) /* ^?{} */); 31 31 } 32 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){32 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 33 33 struct S ___ret__2sS_1; 34 ((void)((*___dst__ R2sS_1).__i__i_1=___src__2sS_1.__i__i_1));35 ((void)___constructor__F_ R2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1));34 ((void)((*___dst__P2sS_1).__i__i_1=___src__2sS_1.__i__i_1)); 35 ((void)___constructor__F_P2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1)); 36 36 return ((struct S )___ret__2sS_1); 37 37 } 38 static inline void ___constructor__F_ R2sSi_autogen___1(struct S *___dst__R2sS_1, int __i__i_1){39 ((void)((* ___dst__R2sS_1).__i__i_1=__i__i_1) /* ?{} */);38 static inline void ___constructor__F_P2sSi_autogen___1(struct S *___dst__P2sS_1, int __i__i_1){ 39 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))=__i__i_1) /* ?{} */); 40 40 } 41 41 int __f3__Fi_2sS2sSPi__1(struct S __a__2sS_1, struct S __b__2sS_1, int *__c__Pi_1){ … … 88 88 int __b__i_2; 89 89 int *(*_tmp_cp_ret0)(int __x__i_1, int __y__i_1); 90 ((void)(__x__PFPi_ii__2=(( (void)(_tmp_cp_ret0=__f10__FPFPi_ii__iPiPid__1(3, (&__a__i_2), (&__b__i_2), 3.5))) , _tmp_cp_ret0)));91 ((void)( _tmp_cp_ret0) /* ^?{} */);90 ((void)(__x__PFPi_ii__2=((_tmp_cp_ret0=__f10__FPFPi_ii__iPiPid__1(3, (&__a__i_2), (&__b__i_2), 3.5)) , _tmp_cp_ret0))); 91 ((void)((*((int *(**)(int __x__i_1, int __y__i_1))(&_tmp_cp_ret0)))) /* ^?{} */); 92 92 const int __f1__FCi_iPiPi__2(int __a__i_2, int *__b__Pi_2, int *__c__Pi_2){ 93 93 __attribute__ ((unused)) const int ___retval_f1__Ci_2; -
src/tests/.expect/32/attributes.txt
r28e58fd raf08051 11 11 __attribute__ ((unused)) struct __anonymous0 { 12 12 }; 13 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);14 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);15 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);16 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);17 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){18 } 19 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){20 } 21 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){22 } 23 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){13 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 14 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 15 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 16 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 17 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 18 } 19 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 20 } 21 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 22 } 23 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 24 24 struct __anonymous0 ___ret__13s__anonymous0_1; 25 ((void)___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1));25 ((void)___constructor__F_P13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1)); 26 26 return ((struct __anonymous0 )___ret__13s__anonymous0_1); 27 27 } … … 29 29 __attribute__ ((unused)) struct Agn2 { 30 30 }; 31 static inline void ___constructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1);32 static inline void ___constructor__F_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1);33 static inline void ___destructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1);34 static inline struct Agn2 ___operator_assign__F5sAgn2_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1);35 static inline void ___constructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1){36 } 37 static inline void ___constructor__F_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1){38 } 39 static inline void ___destructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1){40 } 41 static inline struct Agn2 ___operator_assign__F5sAgn2_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1){31 static inline void ___constructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1); 32 static inline void ___constructor__F_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1); 33 static inline void ___destructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1); 34 static inline struct Agn2 ___operator_assign__F5sAgn2_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1); 35 static inline void ___constructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1){ 36 } 37 static inline void ___constructor__F_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1){ 38 } 39 static inline void ___destructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1){ 40 } 41 static inline struct Agn2 ___operator_assign__F5sAgn2_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1){ 42 42 struct Agn2 ___ret__5sAgn2_1; 43 ((void)___constructor__F_ R5sAgn25sAgn2_autogen___1((&___ret__5sAgn2_1), ___src__5sAgn2_1));43 ((void)___constructor__F_P5sAgn25sAgn2_autogen___1((&___ret__5sAgn2_1), ___src__5sAgn2_1)); 44 44 return ((struct Agn2 )___ret__5sAgn2_1); 45 45 } … … 65 65 __attribute__ ((unused,unused)) int *__f9__Pi_1; 66 66 }; 67 static inline void ___constructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1);68 static inline void ___constructor__F_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1);69 static inline void ___destructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1);70 static inline struct Fdl ___operator_assign__F4sFdl_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1);71 static inline void ___constructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1){72 ((void)((* ___dst__R4sFdl_1).__f1__i_1) /* ?{} */);73 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ?{} */);74 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);75 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);76 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);77 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);78 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);79 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);80 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);81 } 82 static inline void ___constructor__F_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1){83 ((void)((* ___dst__R4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1) /* ?{} */);84 ((void)((* ___dst__R4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1) /* ?{} */);85 ((void)((* ___dst__R4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1) /* ?{} */);86 ((void)((* ___dst__R4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1) /* ?{} */);87 ((void)((* ___dst__R4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1) /* ?{} */);88 ((void)((* ___dst__R4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1) /* ?{} */);89 ((void)((* ___dst__R4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1) /* ?{} */);90 ((void)((* ___dst__R4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1) /* ?{} */);91 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1) /* ?{} */);92 } 93 static inline void ___destructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1){94 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ^?{} */);95 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ^?{} */);96 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ^?{} */);97 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ^?{} */);98 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ^?{} */);99 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ^?{} */);100 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ^?{} */);101 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ^?{} */);102 ((void)((* ___dst__R4sFdl_1).__f1__i_1) /* ^?{} */);103 } 104 static inline struct Fdl ___operator_assign__F4sFdl_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1){67 static inline void ___constructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1); 68 static inline void ___constructor__F_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1); 69 static inline void ___destructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1); 70 static inline struct Fdl ___operator_assign__F4sFdl_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1); 71 static inline void ___constructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1){ 72 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))) /* ?{} */); 73 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ?{} */); 74 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 75 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 76 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 77 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 78 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 79 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 80 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 81 } 82 static inline void ___constructor__F_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1){ 83 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=___src__4sFdl_1.__f1__i_1) /* ?{} */); 84 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=___src__4sFdl_1.__f2__i_1) /* ?{} */); 85 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=___src__4sFdl_1.__f3__i_1) /* ?{} */); 86 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=___src__4sFdl_1.__f4__i_1) /* ?{} */); 87 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=___src__4sFdl_1.__f5__i_1) /* ?{} */); 88 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=___src__4sFdl_1.__f6__i_1) /* ?{} */); 89 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=___src__4sFdl_1.__f7__i_1) /* ?{} */); 90 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=___src__4sFdl_1.__f8__i_1) /* ?{} */); 91 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))=___src__4sFdl_1.__f9__Pi_1) /* ?{} */); 92 } 93 static inline void ___destructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1){ 94 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ^?{} */); 95 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ^?{} */); 96 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ^?{} */); 97 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ^?{} */); 98 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ^?{} */); 99 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ^?{} */); 100 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ^?{} */); 101 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ^?{} */); 102 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))) /* ^?{} */); 103 } 104 static inline struct Fdl ___operator_assign__F4sFdl_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1){ 105 105 struct Fdl ___ret__4sFdl_1; 106 ((void)((*___dst__ R4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1));107 ((void)((*___dst__ R4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1));108 ((void)((*___dst__ R4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1));109 ((void)((*___dst__ R4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1));110 ((void)((*___dst__ R4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1));111 ((void)((*___dst__ R4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1));112 ((void)((*___dst__ R4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1));113 ((void)((*___dst__ R4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1));114 ((void)((*___dst__ R4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1));115 ((void)___constructor__F_ R4sFdl4sFdl_autogen___1((&___ret__4sFdl_1), ___src__4sFdl_1));106 ((void)((*___dst__P4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1)); 107 ((void)((*___dst__P4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1)); 108 ((void)((*___dst__P4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1)); 109 ((void)((*___dst__P4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1)); 110 ((void)((*___dst__P4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1)); 111 ((void)((*___dst__P4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1)); 112 ((void)((*___dst__P4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1)); 113 ((void)((*___dst__P4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1)); 114 ((void)((*___dst__P4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1)); 115 ((void)___constructor__F_P4sFdl4sFdl_autogen___1((&___ret__4sFdl_1), ___src__4sFdl_1)); 116 116 return ((struct Fdl )___ret__4sFdl_1); 117 117 } 118 static inline void ___constructor__F_ R4sFdli_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1){119 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);120 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ?{} */);121 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);122 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);123 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);124 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);125 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);126 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);127 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);128 } 129 static inline void ___constructor__F_ R4sFdlii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1){130 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);131 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);132 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);133 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);134 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);135 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);136 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);137 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);138 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);139 } 140 static inline void ___constructor__F_ R4sFdliii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1){141 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);142 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);143 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);144 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);145 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);146 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);147 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);148 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);149 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);150 } 151 static inline void ___constructor__F_ R4sFdliiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1){152 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);153 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);154 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);155 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);156 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);157 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);158 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);159 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);160 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);161 } 162 static inline void ___constructor__F_ R4sFdliiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1){163 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);164 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);165 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);166 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);167 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);168 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);169 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);170 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);171 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);172 } 173 static inline void ___constructor__F_ R4sFdliiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1){174 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);175 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);176 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);177 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);178 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);179 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);180 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);181 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);182 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);183 } 184 static inline void ___constructor__F_ R4sFdliiiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1){185 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);186 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);187 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);188 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);189 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);190 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);191 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);192 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);193 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);194 } 195 static inline void ___constructor__F_ R4sFdliiiiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1){196 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);197 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);198 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);199 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);200 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);201 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);202 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);203 ((void)((* ___dst__R4sFdl_1).__f8__i_1=__f8__i_1) /* ?{} */);204 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);205 } 206 static inline void ___constructor__F_ R4sFdliiiiiiiiPi_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1, int *__f9__Pi_1){207 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);208 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);209 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);210 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);211 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);212 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);213 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);214 ((void)((* ___dst__R4sFdl_1).__f8__i_1=__f8__i_1) /* ?{} */);215 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1=__f9__Pi_1) /* ?{} */);118 static inline void ___constructor__F_P4sFdli_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1){ 119 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 120 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ?{} */); 121 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 122 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 123 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 124 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 125 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 126 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 127 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 128 } 129 static inline void ___constructor__F_P4sFdlii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1){ 130 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 131 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 132 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 133 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 134 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 135 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 136 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 137 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 138 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 139 } 140 static inline void ___constructor__F_P4sFdliii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1){ 141 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 142 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 143 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 144 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 145 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 146 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 147 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 148 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 149 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 150 } 151 static inline void ___constructor__F_P4sFdliiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1){ 152 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 153 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 154 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 155 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 156 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 157 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 158 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 159 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 160 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 161 } 162 static inline void ___constructor__F_P4sFdliiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1){ 163 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 164 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 165 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 166 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 167 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 168 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 169 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 170 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 171 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 172 } 173 static inline void ___constructor__F_P4sFdliiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1){ 174 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 175 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 176 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 177 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 178 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 179 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 180 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 181 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 182 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 183 } 184 static inline void ___constructor__F_P4sFdliiiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1){ 185 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 186 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 187 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 188 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 189 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 190 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 191 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 192 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 193 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 194 } 195 static inline void ___constructor__F_P4sFdliiiiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1){ 196 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 197 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 198 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 199 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 200 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 201 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 202 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 203 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=__f8__i_1) /* ?{} */); 204 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 205 } 206 static inline void ___constructor__F_P4sFdliiiiiiiiPi_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1, int *__f9__Pi_1){ 207 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 208 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 209 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 210 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 211 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 212 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 213 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 214 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=__f8__i_1) /* ?{} */); 215 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))=__f9__Pi_1) /* ?{} */); 216 216 } 217 217 __attribute__ ((unused)) int __f__Fi___1() asm ( "xyz" ); … … 288 288 int __i__i_2; 289 289 }; 290 inline void ___constructor__F_ R13s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2){291 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2) /* ?{} */);292 } 293 inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){294 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2) /* ?{} */);295 } 296 inline void ___destructor__F_ R13s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2){297 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2) /* ^?{} */);298 } 299 inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){290 inline void ___constructor__F_P13s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2){ 291 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))) /* ?{} */); 292 } 293 inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){ 294 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))=___src__13s__anonymous4_2.__i__i_2) /* ?{} */); 295 } 296 inline void ___destructor__F_P13s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2){ 297 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))) /* ^?{} */); 298 } 299 inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){ 300 300 struct __anonymous4 ___ret__13s__anonymous4_2; 301 ((void)((*___dst__ R13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2));302 ((void)___constructor__F_ R13s__anonymous413s__anonymous4_autogen___2((&___ret__13s__anonymous4_2), ___src__13s__anonymous4_2));301 ((void)((*___dst__P13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2)); 302 ((void)___constructor__F_P13s__anonymous413s__anonymous4_autogen___2((&___ret__13s__anonymous4_2), ___src__13s__anonymous4_2)); 303 303 return ((struct __anonymous4 )___ret__13s__anonymous4_2); 304 304 } 305 inline void ___constructor__F_ R13s__anonymous4i_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, int __i__i_2){306 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2=__i__i_2) /* ?{} */);305 inline void ___constructor__F_P13s__anonymous4i_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, int __i__i_2){ 306 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))=__i__i_2) /* ?{} */); 307 307 } 308 308 ((void)sizeof(struct __anonymous4 )); … … 310 310 __R__C13e__anonymous5_2, 311 311 }; 312 inline void ___constructor__F_ R13e__anonymous5_intrinsic___2(__attribute__ ((unused)) enum __anonymous5 *___dst__R13e__anonymous5_2){313 } 314 inline void ___constructor__F_ R13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__R13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){315 ((void)((*___dst__ R13e__anonymous5_2)=___src__13e__anonymous5_2));316 } 317 inline void ___destructor__F_ R13e__anonymous5_intrinsic___2(__attribute__ ((unused)) enum __anonymous5 *___dst__R13e__anonymous5_2){318 } 319 inline enum __anonymous5 ___operator_assign__F13e__anonymous5_ R13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__R13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){312 inline void ___constructor__F_P13e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2){ 313 } 314 inline void ___constructor__F_P13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){ 315 ((void)((*___dst__P13e__anonymous5_2)=___src__13e__anonymous5_2)); 316 } 317 inline void ___destructor__F_P13e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2){ 318 } 319 inline enum __anonymous5 ___operator_assign__F13e__anonymous5_P13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){ 320 320 enum __anonymous5 ___ret__13e__anonymous5_2; 321 ((void)(___ret__13e__anonymous5_2=((*___dst__ R13e__anonymous5_2)=___src__13e__anonymous5_2)) /* ?{} */);321 ((void)(___ret__13e__anonymous5_2=((*___dst__P13e__anonymous5_2)=___src__13e__anonymous5_2)) /* ?{} */); 322 322 return ((enum __anonymous5 )___ret__13e__anonymous5_2); 323 323 } … … 337 337 __attribute__ ((unused,unused)) int (*__anonymous_object31)(); 338 338 }; 339 static inline void ___constructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1);340 static inline void ___constructor__F_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1);341 static inline void ___destructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1);342 static inline struct Vad ___operator_assign__F4sVad_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1);343 static inline void ___constructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1){344 } 345 static inline void ___constructor__F_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1){346 } 347 static inline void ___destructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1){348 } 349 static inline struct Vad ___operator_assign__F4sVad_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1){339 static inline void ___constructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1); 340 static inline void ___constructor__F_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1); 341 static inline void ___destructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1); 342 static inline struct Vad ___operator_assign__F4sVad_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1); 343 static inline void ___constructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1){ 344 } 345 static inline void ___constructor__F_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1){ 346 } 347 static inline void ___destructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1){ 348 } 349 static inline struct Vad ___operator_assign__F4sVad_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1){ 350 350 struct Vad ___ret__4sVad_1; 351 ((void)___constructor__F_ R4sVad4sVad_autogen___1((&___ret__4sVad_1), ___src__4sVad_1));351 ((void)___constructor__F_P4sVad4sVad_autogen___1((&___ret__4sVad_1), ___src__4sVad_1)); 352 352 return ((struct Vad )___ret__4sVad_1); 353 353 } -
src/tests/.expect/32/declarationSpecifier.txt
r28e58fd raf08051 16 16 int __i__i_1; 17 17 }; 18 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);19 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);20 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);21 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);22 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){23 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1) /* ?{} */);24 } 25 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){26 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1) /* ?{} */);27 } 28 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){29 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1) /* ^?{} */);30 } 31 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){18 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 19 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 20 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 21 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 22 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 23 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))) /* ?{} */); 24 } 25 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 26 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))=___src__13s__anonymous0_1.__i__i_1) /* ?{} */); 27 } 28 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 29 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))) /* ^?{} */); 30 } 31 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 32 32 struct __anonymous0 ___ret__13s__anonymous0_1; 33 ((void)((*___dst__ R13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1));34 ((void)___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1));33 ((void)((*___dst__P13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1)); 34 ((void)___constructor__F_P13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1)); 35 35 return ((struct __anonymous0 )___ret__13s__anonymous0_1); 36 36 } 37 static inline void ___constructor__F_ R13s__anonymous0i_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, int __i__i_1){38 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1=__i__i_1) /* ?{} */);37 static inline void ___constructor__F_P13s__anonymous0i_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, int __i__i_1){ 38 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))=__i__i_1) /* ?{} */); 39 39 } 40 40 volatile const struct __anonymous0 __x10__CV13s__anonymous0_1; … … 42 42 int __i__i_1; 43 43 }; 44 static inline void ___constructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1);45 static inline void ___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1);46 static inline void ___destructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1);47 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1);48 static inline void ___constructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1){49 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1) /* ?{} */);50 } 51 static inline void ___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){52 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1) /* ?{} */);53 } 54 static inline void ___destructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1){55 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1) /* ^?{} */);56 } 57 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){44 static inline void ___constructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1); 45 static inline void ___constructor__F_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1); 46 static inline void ___destructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1); 47 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1); 48 static inline void ___constructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1){ 49 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))) /* ?{} */); 50 } 51 static inline void ___constructor__F_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){ 52 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))=___src__13s__anonymous1_1.__i__i_1) /* ?{} */); 53 } 54 static inline void ___destructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1){ 55 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))) /* ^?{} */); 56 } 57 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){ 58 58 struct __anonymous1 ___ret__13s__anonymous1_1; 59 ((void)((*___dst__ R13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1));60 ((void)___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1((&___ret__13s__anonymous1_1), ___src__13s__anonymous1_1));59 ((void)((*___dst__P13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1)); 60 ((void)___constructor__F_P13s__anonymous113s__anonymous1_autogen___1((&___ret__13s__anonymous1_1), ___src__13s__anonymous1_1)); 61 61 return ((struct __anonymous1 )___ret__13s__anonymous1_1); 62 62 } 63 static inline void ___constructor__F_ R13s__anonymous1i_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, int __i__i_1){64 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1=__i__i_1) /* ?{} */);63 static inline void ___constructor__F_P13s__anonymous1i_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, int __i__i_1){ 64 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))=__i__i_1) /* ?{} */); 65 65 } 66 66 volatile const struct __anonymous1 __x11__CV13s__anonymous1_1; … … 68 68 int __i__i_1; 69 69 }; 70 static inline void ___constructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1);71 static inline void ___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1);72 static inline void ___destructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1);73 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1);74 static inline void ___constructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1){75 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1) /* ?{} */);76 } 77 static inline void ___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){78 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1) /* ?{} */);79 } 80 static inline void ___destructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1){81 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1) /* ^?{} */);82 } 83 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){70 static inline void ___constructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1); 71 static inline void ___constructor__F_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1); 72 static inline void ___destructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1); 73 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1); 74 static inline void ___constructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1){ 75 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))) /* ?{} */); 76 } 77 static inline void ___constructor__F_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){ 78 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))=___src__13s__anonymous2_1.__i__i_1) /* ?{} */); 79 } 80 static inline void ___destructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1){ 81 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))) /* ^?{} */); 82 } 83 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){ 84 84 struct __anonymous2 ___ret__13s__anonymous2_1; 85 ((void)((*___dst__ R13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1));86 ((void)___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1((&___ret__13s__anonymous2_1), ___src__13s__anonymous2_1));85 ((void)((*___dst__P13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1)); 86 ((void)___constructor__F_P13s__anonymous213s__anonymous2_autogen___1((&___ret__13s__anonymous2_1), ___src__13s__anonymous2_1)); 87 87 return ((struct __anonymous2 )___ret__13s__anonymous2_1); 88 88 } 89 static inline void ___constructor__F_ R13s__anonymous2i_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, int __i__i_1){90 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1=__i__i_1) /* ?{} */);89 static inline void ___constructor__F_P13s__anonymous2i_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, int __i__i_1){ 90 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))=__i__i_1) /* ?{} */); 91 91 } 92 92 volatile const struct __anonymous2 __x12__CV13s__anonymous2_1; … … 94 94 int __i__i_1; 95 95 }; 96 static inline void ___constructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1);97 static inline void ___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1);98 static inline void ___destructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1);99 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1);100 static inline void ___constructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1){101 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1) /* ?{} */);102 } 103 static inline void ___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){104 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1) /* ?{} */);105 } 106 static inline void ___destructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1){107 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1) /* ^?{} */);108 } 109 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){96 static inline void ___constructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1); 97 static inline void ___constructor__F_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1); 98 static inline void ___destructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1); 99 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1); 100 static inline void ___constructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1){ 101 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))) /* ?{} */); 102 } 103 static inline void ___constructor__F_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){ 104 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))=___src__13s__anonymous3_1.__i__i_1) /* ?{} */); 105 } 106 static inline void ___destructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1){ 107 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))) /* ^?{} */); 108 } 109 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){ 110 110 struct __anonymous3 ___ret__13s__anonymous3_1; 111 ((void)((*___dst__ R13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1));112 ((void)___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1((&___ret__13s__anonymous3_1), ___src__13s__anonymous3_1));111 ((void)((*___dst__P13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1)); 112 ((void)___constructor__F_P13s__anonymous313s__anonymous3_autogen___1((&___ret__13s__anonymous3_1), ___src__13s__anonymous3_1)); 113 113 return ((struct __anonymous3 )___ret__13s__anonymous3_1); 114 114 } 115 static inline void ___constructor__F_ R13s__anonymous3i_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, int __i__i_1){116 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1=__i__i_1) /* ?{} */);115 static inline void ___constructor__F_P13s__anonymous3i_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, int __i__i_1){ 116 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))=__i__i_1) /* ?{} */); 117 117 } 118 118 static volatile const struct __anonymous3 __x13__CV13s__anonymous3_1; … … 120 120 int __i__i_1; 121 121 }; 122 static inline void ___constructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1);123 static inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1);124 static inline void ___destructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1);125 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1);126 static inline void ___constructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1){127 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1) /* ?{} */);128 } 129 static inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){130 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1) /* ?{} */);131 } 132 static inline void ___destructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1){133 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1) /* ^?{} */);134 } 135 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){122 static inline void ___constructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1); 123 static inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1); 124 static inline void ___destructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1); 125 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1); 126 static inline void ___constructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1){ 127 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))) /* ?{} */); 128 } 129 static inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){ 130 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))=___src__13s__anonymous4_1.__i__i_1) /* ?{} */); 131 } 132 static inline void ___destructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1){ 133 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))) /* ^?{} */); 134 } 135 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){ 136 136 struct __anonymous4 ___ret__13s__anonymous4_1; 137 ((void)((*___dst__ R13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1));138 ((void)___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1((&___ret__13s__anonymous4_1), ___src__13s__anonymous4_1));137 ((void)((*___dst__P13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1)); 138 ((void)___constructor__F_P13s__anonymous413s__anonymous4_autogen___1((&___ret__13s__anonymous4_1), ___src__13s__anonymous4_1)); 139 139 return ((struct __anonymous4 )___ret__13s__anonymous4_1); 140 140 } 141 static inline void ___constructor__F_ R13s__anonymous4i_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, int __i__i_1){142 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1=__i__i_1) /* ?{} */);141 static inline void ___constructor__F_P13s__anonymous4i_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, int __i__i_1){ 142 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))=__i__i_1) /* ?{} */); 143 143 } 144 144 static volatile const struct __anonymous4 __x14__CV13s__anonymous4_1; … … 146 146 int __i__i_1; 147 147 }; 148 static inline void ___constructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1);149 static inline void ___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1);150 static inline void ___destructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1);151 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1);152 static inline void ___constructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1){153 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1) /* ?{} */);154 } 155 static inline void ___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){156 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1) /* ?{} */);157 } 158 static inline void ___destructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1){159 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1) /* ^?{} */);160 } 161 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){148 static inline void ___constructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1); 149 static inline void ___constructor__F_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1); 150 static inline void ___destructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1); 151 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1); 152 static inline void ___constructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1){ 153 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))) /* ?{} */); 154 } 155 static inline void ___constructor__F_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){ 156 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))=___src__13s__anonymous5_1.__i__i_1) /* ?{} */); 157 } 158 static inline void ___destructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1){ 159 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))) /* ^?{} */); 160 } 161 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){ 162 162 struct __anonymous5 ___ret__13s__anonymous5_1; 163 ((void)((*___dst__ R13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1));164 ((void)___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1((&___ret__13s__anonymous5_1), ___src__13s__anonymous5_1));163 ((void)((*___dst__P13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1)); 164 ((void)___constructor__F_P13s__anonymous513s__anonymous5_autogen___1((&___ret__13s__anonymous5_1), ___src__13s__anonymous5_1)); 165 165 return ((struct __anonymous5 )___ret__13s__anonymous5_1); 166 166 } 167 static inline void ___constructor__F_ R13s__anonymous5i_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, int __i__i_1){168 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1=__i__i_1) /* ?{} */);167 static inline void ___constructor__F_P13s__anonymous5i_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, int __i__i_1){ 168 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))=__i__i_1) /* ?{} */); 169 169 } 170 170 static volatile const struct __anonymous5 __x15__CV13s__anonymous5_1; … … 172 172 int __i__i_1; 173 173 }; 174 static inline void ___constructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1);175 static inline void ___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1);176 static inline void ___destructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1);177 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1);178 static inline void ___constructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1){179 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1) /* ?{} */);180 } 181 static inline void ___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){182 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1) /* ?{} */);183 } 184 static inline void ___destructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1){185 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1) /* ^?{} */);186 } 187 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){174 static inline void ___constructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1); 175 static inline void ___constructor__F_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1); 176 static inline void ___destructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1); 177 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1); 178 static inline void ___constructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1){ 179 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))) /* ?{} */); 180 } 181 static inline void ___constructor__F_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){ 182 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))=___src__13s__anonymous6_1.__i__i_1) /* ?{} */); 183 } 184 static inline void ___destructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1){ 185 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))) /* ^?{} */); 186 } 187 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){ 188 188 struct __anonymous6 ___ret__13s__anonymous6_1; 189 ((void)((*___dst__ R13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1));190 ((void)___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1((&___ret__13s__anonymous6_1), ___src__13s__anonymous6_1));189 ((void)((*___dst__P13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1)); 190 ((void)___constructor__F_P13s__anonymous613s__anonymous6_autogen___1((&___ret__13s__anonymous6_1), ___src__13s__anonymous6_1)); 191 191 return ((struct __anonymous6 )___ret__13s__anonymous6_1); 192 192 } 193 static inline void ___constructor__F_ R13s__anonymous6i_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, int __i__i_1){194 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1=__i__i_1) /* ?{} */);193 static inline void ___constructor__F_P13s__anonymous6i_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, int __i__i_1){ 194 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))=__i__i_1) /* ?{} */); 195 195 } 196 196 static volatile const struct __anonymous6 __x16__CV13s__anonymous6_1; … … 198 198 int __i__i_1; 199 199 }; 200 static inline void ___constructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1);201 static inline void ___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1);202 static inline void ___destructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1);203 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1);204 static inline void ___constructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1){205 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1) /* ?{} */);206 } 207 static inline void ___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){208 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1) /* ?{} */);209 } 210 static inline void ___destructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1){211 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1) /* ^?{} */);212 } 213 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){200 static inline void ___constructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1); 201 static inline void ___constructor__F_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1); 202 static inline void ___destructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1); 203 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1); 204 static inline void ___constructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1){ 205 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))) /* ?{} */); 206 } 207 static inline void ___constructor__F_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){ 208 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))=___src__13s__anonymous7_1.__i__i_1) /* ?{} */); 209 } 210 static inline void ___destructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1){ 211 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))) /* ^?{} */); 212 } 213 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){ 214 214 struct __anonymous7 ___ret__13s__anonymous7_1; 215 ((void)((*___dst__ R13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1));216 ((void)___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1((&___ret__13s__anonymous7_1), ___src__13s__anonymous7_1));215 ((void)((*___dst__P13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1)); 216 ((void)___constructor__F_P13s__anonymous713s__anonymous7_autogen___1((&___ret__13s__anonymous7_1), ___src__13s__anonymous7_1)); 217 217 return ((struct __anonymous7 )___ret__13s__anonymous7_1); 218 218 } 219 static inline void ___constructor__F_ R13s__anonymous7i_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, int __i__i_1){220 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1=__i__i_1) /* ?{} */);219 static inline void ___constructor__F_P13s__anonymous7i_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, int __i__i_1){ 220 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))=__i__i_1) /* ?{} */); 221 221 } 222 222 static volatile const struct __anonymous7 __x17__CV13s__anonymous7_1; … … 232 232 short __i__s_1; 233 233 }; 234 static inline void ___constructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1);235 static inline void ___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1);236 static inline void ___destructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1);237 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1);238 static inline void ___constructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1){239 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1) /* ?{} */);240 } 241 static inline void ___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){242 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1) /* ?{} */);243 } 244 static inline void ___destructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1){245 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1) /* ^?{} */);246 } 247 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){234 static inline void ___constructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1); 235 static inline void ___constructor__F_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1); 236 static inline void ___destructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1); 237 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1); 238 static inline void ___constructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1){ 239 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))) /* ?{} */); 240 } 241 static inline void ___constructor__F_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){ 242 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))=___src__13s__anonymous8_1.__i__s_1) /* ?{} */); 243 } 244 static inline void ___destructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1){ 245 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))) /* ^?{} */); 246 } 247 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){ 248 248 struct __anonymous8 ___ret__13s__anonymous8_1; 249 ((void)((*___dst__ R13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1));250 ((void)___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1((&___ret__13s__anonymous8_1), ___src__13s__anonymous8_1));249 ((void)((*___dst__P13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1)); 250 ((void)___constructor__F_P13s__anonymous813s__anonymous8_autogen___1((&___ret__13s__anonymous8_1), ___src__13s__anonymous8_1)); 251 251 return ((struct __anonymous8 )___ret__13s__anonymous8_1); 252 252 } 253 static inline void ___constructor__F_ R13s__anonymous8s_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, short __i__s_1){254 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1=__i__s_1) /* ?{} */);253 static inline void ___constructor__F_P13s__anonymous8s_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, short __i__s_1){ 254 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))=__i__s_1) /* ?{} */); 255 255 } 256 256 volatile const struct __anonymous8 __x29__CV13s__anonymous8_1; … … 258 258 short __i__s_1; 259 259 }; 260 static inline void ___constructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1);261 static inline void ___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1);262 static inline void ___destructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1);263 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1);264 static inline void ___constructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1){265 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1) /* ?{} */);266 } 267 static inline void ___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){268 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1) /* ?{} */);269 } 270 static inline void ___destructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1){271 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1) /* ^?{} */);272 } 273 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){260 static inline void ___constructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1); 261 static inline void ___constructor__F_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1); 262 static inline void ___destructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1); 263 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1); 264 static inline void ___constructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1){ 265 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))) /* ?{} */); 266 } 267 static inline void ___constructor__F_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){ 268 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))=___src__13s__anonymous9_1.__i__s_1) /* ?{} */); 269 } 270 static inline void ___destructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1){ 271 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))) /* ^?{} */); 272 } 273 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){ 274 274 struct __anonymous9 ___ret__13s__anonymous9_1; 275 ((void)((*___dst__ R13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1));276 ((void)___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1((&___ret__13s__anonymous9_1), ___src__13s__anonymous9_1));275 ((void)((*___dst__P13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1)); 276 ((void)___constructor__F_P13s__anonymous913s__anonymous9_autogen___1((&___ret__13s__anonymous9_1), ___src__13s__anonymous9_1)); 277 277 return ((struct __anonymous9 )___ret__13s__anonymous9_1); 278 278 } 279 static inline void ___constructor__F_ R13s__anonymous9s_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, short __i__s_1){280 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1=__i__s_1) /* ?{} */);279 static inline void ___constructor__F_P13s__anonymous9s_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, short __i__s_1){ 280 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))=__i__s_1) /* ?{} */); 281 281 } 282 282 volatile const struct __anonymous9 __x30__CV13s__anonymous9_1; … … 284 284 short __i__s_1; 285 285 }; 286 static inline void ___constructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1);287 static inline void ___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1);288 static inline void ___destructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1);289 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1);290 static inline void ___constructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1){291 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1) /* ?{} */);292 } 293 static inline void ___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){294 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1) /* ?{} */);295 } 296 static inline void ___destructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1){297 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1) /* ^?{} */);298 } 299 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){286 static inline void ___constructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1); 287 static inline void ___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1); 288 static inline void ___destructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1); 289 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1); 290 static inline void ___constructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1){ 291 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))) /* ?{} */); 292 } 293 static inline void ___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){ 294 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))=___src__14s__anonymous10_1.__i__s_1) /* ?{} */); 295 } 296 static inline void ___destructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1){ 297 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))) /* ^?{} */); 298 } 299 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){ 300 300 struct __anonymous10 ___ret__14s__anonymous10_1; 301 ((void)((*___dst__ R14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1));302 ((void)___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1((&___ret__14s__anonymous10_1), ___src__14s__anonymous10_1));301 ((void)((*___dst__P14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1)); 302 ((void)___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1((&___ret__14s__anonymous10_1), ___src__14s__anonymous10_1)); 303 303 return ((struct __anonymous10 )___ret__14s__anonymous10_1); 304 304 } 305 static inline void ___constructor__F_ R14s__anonymous10s_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, short __i__s_1){306 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1=__i__s_1) /* ?{} */);305 static inline void ___constructor__F_P14s__anonymous10s_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, short __i__s_1){ 306 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))=__i__s_1) /* ?{} */); 307 307 } 308 308 volatile const struct __anonymous10 __x31__CV14s__anonymous10_1; … … 310 310 short __i__s_1; 311 311 }; 312 static inline void ___constructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1);313 static inline void ___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1);314 static inline void ___destructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1);315 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1);316 static inline void ___constructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1){317 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1) /* ?{} */);318 } 319 static inline void ___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){320 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1) /* ?{} */);321 } 322 static inline void ___destructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1){323 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1) /* ^?{} */);324 } 325 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){312 static inline void ___constructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1); 313 static inline void ___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1); 314 static inline void ___destructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1); 315 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1); 316 static inline void ___constructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1){ 317 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))) /* ?{} */); 318 } 319 static inline void ___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){ 320 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))=___src__14s__anonymous11_1.__i__s_1) /* ?{} */); 321 } 322 static inline void ___destructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1){ 323 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))) /* ^?{} */); 324 } 325 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){ 326 326 struct __anonymous11 ___ret__14s__anonymous11_1; 327 ((void)((*___dst__ R14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1));328 ((void)___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1((&___ret__14s__anonymous11_1), ___src__14s__anonymous11_1));327 ((void)((*___dst__P14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1)); 328 ((void)___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1((&___ret__14s__anonymous11_1), ___src__14s__anonymous11_1)); 329 329 return ((struct __anonymous11 )___ret__14s__anonymous11_1); 330 330 } 331 static inline void ___constructor__F_ R14s__anonymous11s_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, short __i__s_1){332 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1=__i__s_1) /* ?{} */);331 static inline void ___constructor__F_P14s__anonymous11s_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, short __i__s_1){ 332 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))=__i__s_1) /* ?{} */); 333 333 } 334 334 static volatile const struct __anonymous11 __x32__CV14s__anonymous11_1; … … 336 336 short __i__s_1; 337 337 }; 338 static inline void ___constructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1);339 static inline void ___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1);340 static inline void ___destructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1);341 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1);342 static inline void ___constructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1){343 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1) /* ?{} */);344 } 345 static inline void ___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){346 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1) /* ?{} */);347 } 348 static inline void ___destructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1){349 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1) /* ^?{} */);350 } 351 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){338 static inline void ___constructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1); 339 static inline void ___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1); 340 static inline void ___destructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1); 341 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1); 342 static inline void ___constructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1){ 343 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))) /* ?{} */); 344 } 345 static inline void ___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){ 346 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))=___src__14s__anonymous12_1.__i__s_1) /* ?{} */); 347 } 348 static inline void ___destructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1){ 349 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))) /* ^?{} */); 350 } 351 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){ 352 352 struct __anonymous12 ___ret__14s__anonymous12_1; 353 ((void)((*___dst__ R14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1));354 ((void)___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1((&___ret__14s__anonymous12_1), ___src__14s__anonymous12_1));353 ((void)((*___dst__P14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1)); 354 ((void)___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1((&___ret__14s__anonymous12_1), ___src__14s__anonymous12_1)); 355 355 return ((struct __anonymous12 )___ret__14s__anonymous12_1); 356 356 } 357 static inline void ___constructor__F_ R14s__anonymous12s_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, short __i__s_1){358 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1=__i__s_1) /* ?{} */);357 static inline void ___constructor__F_P14s__anonymous12s_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, short __i__s_1){ 358 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))=__i__s_1) /* ?{} */); 359 359 } 360 360 static volatile const struct __anonymous12 __x33__CV14s__anonymous12_1; … … 362 362 short __i__s_1; 363 363 }; 364 static inline void ___constructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1);365 static inline void ___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1);366 static inline void ___destructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1);367 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1);368 static inline void ___constructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1){369 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1) /* ?{} */);370 } 371 static inline void ___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){372 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1) /* ?{} */);373 } 374 static inline void ___destructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1){375 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1) /* ^?{} */);376 } 377 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){364 static inline void ___constructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1); 365 static inline void ___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1); 366 static inline void ___destructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1); 367 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1); 368 static inline void ___constructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1){ 369 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))) /* ?{} */); 370 } 371 static inline void ___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){ 372 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))=___src__14s__anonymous13_1.__i__s_1) /* ?{} */); 373 } 374 static inline void ___destructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1){ 375 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))) /* ^?{} */); 376 } 377 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){ 378 378 struct __anonymous13 ___ret__14s__anonymous13_1; 379 ((void)((*___dst__ R14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1));380 ((void)___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1((&___ret__14s__anonymous13_1), ___src__14s__anonymous13_1));379 ((void)((*___dst__P14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1)); 380 ((void)___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1((&___ret__14s__anonymous13_1), ___src__14s__anonymous13_1)); 381 381 return ((struct __anonymous13 )___ret__14s__anonymous13_1); 382 382 } 383 static inline void ___constructor__F_ R14s__anonymous13s_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, short __i__s_1){384 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1=__i__s_1) /* ?{} */);383 static inline void ___constructor__F_P14s__anonymous13s_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, short __i__s_1){ 384 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))=__i__s_1) /* ?{} */); 385 385 } 386 386 static volatile const struct __anonymous13 __x34__CV14s__anonymous13_1; … … 388 388 short __i__s_1; 389 389 }; 390 static inline void ___constructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1);391 static inline void ___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1);392 static inline void ___destructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1);393 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1);394 static inline void ___constructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1){395 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1) /* ?{} */);396 } 397 static inline void ___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){398 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1) /* ?{} */);399 } 400 static inline void ___destructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1){401 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1) /* ^?{} */);402 } 403 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){390 static inline void ___constructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1); 391 static inline void ___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1); 392 static inline void ___destructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1); 393 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1); 394 static inline void ___constructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1){ 395 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))) /* ?{} */); 396 } 397 static inline void ___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){ 398 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))=___src__14s__anonymous14_1.__i__s_1) /* ?{} */); 399 } 400 static inline void ___destructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1){ 401 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))) /* ^?{} */); 402 } 403 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){ 404 404 struct __anonymous14 ___ret__14s__anonymous14_1; 405 ((void)((*___dst__ R14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1));406 ((void)___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1((&___ret__14s__anonymous14_1), ___src__14s__anonymous14_1));405 ((void)((*___dst__P14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1)); 406 ((void)___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1((&___ret__14s__anonymous14_1), ___src__14s__anonymous14_1)); 407 407 return ((struct __anonymous14 )___ret__14s__anonymous14_1); 408 408 } 409 static inline void ___constructor__F_ R14s__anonymous14s_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, short __i__s_1){410 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1=__i__s_1) /* ?{} */);409 static inline void ___constructor__F_P14s__anonymous14s_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, short __i__s_1){ 410 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))=__i__s_1) /* ?{} */); 411 411 } 412 412 static volatile const struct __anonymous14 __x35__CV14s__anonymous14_1; … … 414 414 short __i__s_1; 415 415 }; 416 static inline void ___constructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1);417 static inline void ___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1);418 static inline void ___destructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1);419 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1);420 static inline void ___constructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1){421 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1) /* ?{} */);422 } 423 static inline void ___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){424 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1) /* ?{} */);425 } 426 static inline void ___destructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1){427 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1) /* ^?{} */);428 } 429 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){416 static inline void ___constructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1); 417 static inline void ___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1); 418 static inline void ___destructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1); 419 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1); 420 static inline void ___constructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1){ 421 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))) /* ?{} */); 422 } 423 static inline void ___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){ 424 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))=___src__14s__anonymous15_1.__i__s_1) /* ?{} */); 425 } 426 static inline void ___destructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1){ 427 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))) /* ^?{} */); 428 } 429 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){ 430 430 struct __anonymous15 ___ret__14s__anonymous15_1; 431 ((void)((*___dst__ R14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1));432 ((void)___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1((&___ret__14s__anonymous15_1), ___src__14s__anonymous15_1));431 ((void)((*___dst__P14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1)); 432 ((void)___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1((&___ret__14s__anonymous15_1), ___src__14s__anonymous15_1)); 433 433 return ((struct __anonymous15 )___ret__14s__anonymous15_1); 434 434 } 435 static inline void ___constructor__F_ R14s__anonymous15s_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, short __i__s_1){436 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1=__i__s_1) /* ?{} */);435 static inline void ___constructor__F_P14s__anonymous15s_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, short __i__s_1){ 436 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))=__i__s_1) /* ?{} */); 437 437 } 438 438 static volatile const struct __anonymous15 __x36__CV14s__anonymous15_1; … … 456 456 int __i__i_1; 457 457 }; 458 static inline void ___constructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1);459 static inline void ___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1);460 static inline void ___destructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1);461 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1);462 static inline void ___constructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1){463 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1) /* ?{} */);464 } 465 static inline void ___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){466 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1) /* ?{} */);467 } 468 static inline void ___destructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1){469 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1) /* ^?{} */);470 } 471 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){458 static inline void ___constructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1); 459 static inline void ___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1); 460 static inline void ___destructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1); 461 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1); 462 static inline void ___constructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1){ 463 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))) /* ?{} */); 464 } 465 static inline void ___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){ 466 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))=___src__14s__anonymous16_1.__i__i_1) /* ?{} */); 467 } 468 static inline void ___destructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1){ 469 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))) /* ^?{} */); 470 } 471 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){ 472 472 struct __anonymous16 ___ret__14s__anonymous16_1; 473 ((void)((*___dst__ R14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1));474 ((void)___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1((&___ret__14s__anonymous16_1), ___src__14s__anonymous16_1));473 ((void)((*___dst__P14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1)); 474 ((void)___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1((&___ret__14s__anonymous16_1), ___src__14s__anonymous16_1)); 475 475 return ((struct __anonymous16 )___ret__14s__anonymous16_1); 476 476 } 477 static inline void ___constructor__F_ R14s__anonymous16i_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, int __i__i_1){478 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1=__i__i_1) /* ?{} */);477 static inline void ___constructor__F_P14s__anonymous16i_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, int __i__i_1){ 478 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))=__i__i_1) /* ?{} */); 479 479 } 480 480 static inline volatile const struct __anonymous16 __f31__FCV14s__anonymous16___1(); … … 482 482 int __i__i_1; 483 483 }; 484 static inline void ___constructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1);485 static inline void ___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1);486 static inline void ___destructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1);487 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1);488 static inline void ___constructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1){489 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1) /* ?{} */);490 } 491 static inline void ___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){492 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1) /* ?{} */);493 } 494 static inline void ___destructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1){495 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1) /* ^?{} */);496 } 497 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){484 static inline void ___constructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1); 485 static inline void ___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1); 486 static inline void ___destructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1); 487 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1); 488 static inline void ___constructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1){ 489 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))) /* ?{} */); 490 } 491 static inline void ___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){ 492 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))=___src__14s__anonymous17_1.__i__i_1) /* ?{} */); 493 } 494 static inline void ___destructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1){ 495 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))) /* ^?{} */); 496 } 497 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){ 498 498 struct __anonymous17 ___ret__14s__anonymous17_1; 499 ((void)((*___dst__ R14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1));500 ((void)___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1((&___ret__14s__anonymous17_1), ___src__14s__anonymous17_1));499 ((void)((*___dst__P14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1)); 500 ((void)___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1((&___ret__14s__anonymous17_1), ___src__14s__anonymous17_1)); 501 501 return ((struct __anonymous17 )___ret__14s__anonymous17_1); 502 502 } 503 static inline void ___constructor__F_ R14s__anonymous17i_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, int __i__i_1){504 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1=__i__i_1) /* ?{} */);503 static inline void ___constructor__F_P14s__anonymous17i_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, int __i__i_1){ 504 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))=__i__i_1) /* ?{} */); 505 505 } 506 506 static inline volatile const struct __anonymous17 __f32__FCV14s__anonymous17___1(); … … 508 508 int __i__i_1; 509 509 }; 510 static inline void ___constructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1);511 static inline void ___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1);512 static inline void ___destructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1);513 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1);514 static inline void ___constructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1){515 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1) /* ?{} */);516 } 517 static inline void ___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){518 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1) /* ?{} */);519 } 520 static inline void ___destructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1){521 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1) /* ^?{} */);522 } 523 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){510 static inline void ___constructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1); 511 static inline void ___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1); 512 static inline void ___destructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1); 513 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1); 514 static inline void ___constructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1){ 515 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))) /* ?{} */); 516 } 517 static inline void ___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){ 518 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))=___src__14s__anonymous18_1.__i__i_1) /* ?{} */); 519 } 520 static inline void ___destructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1){ 521 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))) /* ^?{} */); 522 } 523 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){ 524 524 struct __anonymous18 ___ret__14s__anonymous18_1; 525 ((void)((*___dst__ R14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1));526 ((void)___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1((&___ret__14s__anonymous18_1), ___src__14s__anonymous18_1));525 ((void)((*___dst__P14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1)); 526 ((void)___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1((&___ret__14s__anonymous18_1), ___src__14s__anonymous18_1)); 527 527 return ((struct __anonymous18 )___ret__14s__anonymous18_1); 528 528 } 529 static inline void ___constructor__F_ R14s__anonymous18i_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, int __i__i_1){530 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1=__i__i_1) /* ?{} */);529 static inline void ___constructor__F_P14s__anonymous18i_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, int __i__i_1){ 530 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))=__i__i_1) /* ?{} */); 531 531 } 532 532 static inline volatile const struct __anonymous18 __f33__FCV14s__anonymous18___1(); … … 534 534 int __i__i_1; 535 535 }; 536 static inline void ___constructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1);537 static inline void ___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1);538 static inline void ___destructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1);539 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1);540 static inline void ___constructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1){541 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1) /* ?{} */);542 } 543 static inline void ___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){544 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1) /* ?{} */);545 } 546 static inline void ___destructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1){547 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1) /* ^?{} */);548 } 549 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){536 static inline void ___constructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1); 537 static inline void ___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1); 538 static inline void ___destructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1); 539 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1); 540 static inline void ___constructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1){ 541 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))) /* ?{} */); 542 } 543 static inline void ___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){ 544 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))=___src__14s__anonymous19_1.__i__i_1) /* ?{} */); 545 } 546 static inline void ___destructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1){ 547 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))) /* ^?{} */); 548 } 549 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){ 550 550 struct __anonymous19 ___ret__14s__anonymous19_1; 551 ((void)((*___dst__ R14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1));552 ((void)___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1((&___ret__14s__anonymous19_1), ___src__14s__anonymous19_1));551 ((void)((*___dst__P14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1)); 552 ((void)___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1((&___ret__14s__anonymous19_1), ___src__14s__anonymous19_1)); 553 553 return ((struct __anonymous19 )___ret__14s__anonymous19_1); 554 554 } 555 static inline void ___constructor__F_ R14s__anonymous19i_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, int __i__i_1){556 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1=__i__i_1) /* ?{} */);555 static inline void ___constructor__F_P14s__anonymous19i_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, int __i__i_1){ 556 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))=__i__i_1) /* ?{} */); 557 557 } 558 558 static inline volatile const struct __anonymous19 __f34__FCV14s__anonymous19___1(); … … 560 560 int __i__i_1; 561 561 }; 562 static inline void ___constructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1);563 static inline void ___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1);564 static inline void ___destructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1);565 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1);566 static inline void ___constructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1){567 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1) /* ?{} */);568 } 569 static inline void ___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){570 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1) /* ?{} */);571 } 572 static inline void ___destructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1){573 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1) /* ^?{} */);574 } 575 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){562 static inline void ___constructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1); 563 static inline void ___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1); 564 static inline void ___destructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1); 565 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1); 566 static inline void ___constructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1){ 567 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))) /* ?{} */); 568 } 569 static inline void ___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){ 570 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))=___src__14s__anonymous20_1.__i__i_1) /* ?{} */); 571 } 572 static inline void ___destructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1){ 573 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))) /* ^?{} */); 574 } 575 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){ 576 576 struct __anonymous20 ___ret__14s__anonymous20_1; 577 ((void)((*___dst__ R14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1));578 ((void)___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1((&___ret__14s__anonymous20_1), ___src__14s__anonymous20_1));577 ((void)((*___dst__P14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1)); 578 ((void)___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1((&___ret__14s__anonymous20_1), ___src__14s__anonymous20_1)); 579 579 return ((struct __anonymous20 )___ret__14s__anonymous20_1); 580 580 } 581 static inline void ___constructor__F_ R14s__anonymous20i_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, int __i__i_1){582 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1=__i__i_1) /* ?{} */);581 static inline void ___constructor__F_P14s__anonymous20i_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, int __i__i_1){ 582 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))=__i__i_1) /* ?{} */); 583 583 } 584 584 static inline volatile const struct __anonymous20 __f35__FCV14s__anonymous20___1(); … … 586 586 int __i__i_1; 587 587 }; 588 static inline void ___constructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1);589 static inline void ___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1);590 static inline void ___destructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1);591 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1);592 static inline void ___constructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1){593 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1) /* ?{} */);594 } 595 static inline void ___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){596 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1) /* ?{} */);597 } 598 static inline void ___destructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1){599 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1) /* ^?{} */);600 } 601 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){588 static inline void ___constructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1); 589 static inline void ___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1); 590 static inline void ___destructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1); 591 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1); 592 static inline void ___constructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1){ 593 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))) /* ?{} */); 594 } 595 static inline void ___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){ 596 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))=___src__14s__anonymous21_1.__i__i_1) /* ?{} */); 597 } 598 static inline void ___destructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1){ 599 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))) /* ^?{} */); 600 } 601 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){ 602 602 struct __anonymous21 ___ret__14s__anonymous21_1; 603 ((void)((*___dst__ R14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1));604 ((void)___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1((&___ret__14s__anonymous21_1), ___src__14s__anonymous21_1));603 ((void)((*___dst__P14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1)); 604 ((void)___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1((&___ret__14s__anonymous21_1), ___src__14s__anonymous21_1)); 605 605 return ((struct __anonymous21 )___ret__14s__anonymous21_1); 606 606 } 607 static inline void ___constructor__F_ R14s__anonymous21i_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, int __i__i_1){608 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1=__i__i_1) /* ?{} */);607 static inline void ___constructor__F_P14s__anonymous21i_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, int __i__i_1){ 608 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))=__i__i_1) /* ?{} */); 609 609 } 610 610 static inline volatile const struct __anonymous21 __f36__FCV14s__anonymous21___1(); … … 612 612 int __i__i_1; 613 613 }; 614 static inline void ___constructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1);615 static inline void ___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1);616 static inline void ___destructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1);617 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1);618 static inline void ___constructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1){619 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1) /* ?{} */);620 } 621 static inline void ___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){622 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1) /* ?{} */);623 } 624 static inline void ___destructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1){625 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1) /* ^?{} */);626 } 627 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){614 static inline void ___constructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1); 615 static inline void ___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1); 616 static inline void ___destructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1); 617 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1); 618 static inline void ___constructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1){ 619 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))) /* ?{} */); 620 } 621 static inline void ___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){ 622 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))=___src__14s__anonymous22_1.__i__i_1) /* ?{} */); 623 } 624 static inline void ___destructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1){ 625 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))) /* ^?{} */); 626 } 627 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){ 628 628 struct __anonymous22 ___ret__14s__anonymous22_1; 629 ((void)((*___dst__ R14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1));630 ((void)___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1((&___ret__14s__anonymous22_1), ___src__14s__anonymous22_1));629 ((void)((*___dst__P14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1)); 630 ((void)___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1((&___ret__14s__anonymous22_1), ___src__14s__anonymous22_1)); 631 631 return ((struct __anonymous22 )___ret__14s__anonymous22_1); 632 632 } 633 static inline void ___constructor__F_ R14s__anonymous22i_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, int __i__i_1){634 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1=__i__i_1) /* ?{} */);633 static inline void ___constructor__F_P14s__anonymous22i_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, int __i__i_1){ 634 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))=__i__i_1) /* ?{} */); 635 635 } 636 636 static inline volatile const struct __anonymous22 __f37__FCV14s__anonymous22___1(); … … 638 638 int __i__i_1; 639 639 }; 640 static inline void ___constructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1);641 static inline void ___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1);642 static inline void ___destructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1);643 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1);644 static inline void ___constructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1){645 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1) /* ?{} */);646 } 647 static inline void ___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){648 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1) /* ?{} */);649 } 650 static inline void ___destructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1){651 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1) /* ^?{} */);652 } 653 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){640 static inline void ___constructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1); 641 static inline void ___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1); 642 static inline void ___destructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1); 643 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1); 644 static inline void ___constructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1){ 645 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))) /* ?{} */); 646 } 647 static inline void ___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){ 648 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))=___src__14s__anonymous23_1.__i__i_1) /* ?{} */); 649 } 650 static inline void ___destructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1){ 651 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))) /* ^?{} */); 652 } 653 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){ 654 654 struct __anonymous23 ___ret__14s__anonymous23_1; 655 ((void)((*___dst__ R14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1));656 ((void)___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1((&___ret__14s__anonymous23_1), ___src__14s__anonymous23_1));655 ((void)((*___dst__P14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1)); 656 ((void)___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1((&___ret__14s__anonymous23_1), ___src__14s__anonymous23_1)); 657 657 return ((struct __anonymous23 )___ret__14s__anonymous23_1); 658 658 } 659 static inline void ___constructor__F_ R14s__anonymous23i_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, int __i__i_1){660 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1=__i__i_1) /* ?{} */);659 static inline void ___constructor__F_P14s__anonymous23i_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, int __i__i_1){ 660 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))=__i__i_1) /* ?{} */); 661 661 } 662 662 static inline volatile const struct __anonymous23 __f38__FCV14s__anonymous23___1(); … … 687 687 __attribute__ ((unused)) int ___retval_main__i_1; 688 688 int _tmp_cp_ret0; 689 ((void)(___retval_main__i_1=(( (void)(_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1))) , _tmp_cp_ret0)) /* ?{} */);690 ((void)( _tmp_cp_ret0) /* ^?{} */);689 ((void)(___retval_main__i_1=((_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1)) , _tmp_cp_ret0)) /* ?{} */); 690 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 691 691 return ((int )___retval_main__i_1); 692 692 } -
src/tests/.expect/32/extension.txt
r28e58fd raf08051 13 13 __extension__ int __c__i_1; 14 14 }; 15 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);16 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);17 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);18 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);19 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){20 ((void)((* ___dst__R2sS_1).__a__i_1) /* ?{} */);21 ((void)((* ___dst__R2sS_1).__b__i_1) /* ?{} */);22 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);15 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 16 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 17 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 18 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 19 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 20 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ?{} */); 21 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */); 22 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 23 23 } 24 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){25 ((void)((* ___dst__R2sS_1).__a__i_1=___src__2sS_1.__a__i_1) /* ?{} */);26 ((void)((* ___dst__R2sS_1).__b__i_1=___src__2sS_1.__b__i_1) /* ?{} */);27 ((void)((* ___dst__R2sS_1).__c__i_1=___src__2sS_1.__c__i_1) /* ?{} */);24 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 25 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=___src__2sS_1.__a__i_1) /* ?{} */); 26 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=___src__2sS_1.__b__i_1) /* ?{} */); 27 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=___src__2sS_1.__c__i_1) /* ?{} */); 28 28 } 29 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){30 ((void)((* ___dst__R2sS_1).__c__i_1) /* ^?{} */);31 ((void)((* ___dst__R2sS_1).__b__i_1) /* ^?{} */);32 ((void)((* ___dst__R2sS_1).__a__i_1) /* ^?{} */);29 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 30 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ^?{} */); 31 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ^?{} */); 32 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ^?{} */); 33 33 } 34 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){34 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 35 35 struct S ___ret__2sS_1; 36 ((void)((*___dst__ R2sS_1).__a__i_1=___src__2sS_1.__a__i_1));37 ((void)((*___dst__ R2sS_1).__b__i_1=___src__2sS_1.__b__i_1));38 ((void)((*___dst__ R2sS_1).__c__i_1=___src__2sS_1.__c__i_1));39 ((void)___constructor__F_ R2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1));36 ((void)((*___dst__P2sS_1).__a__i_1=___src__2sS_1.__a__i_1)); 37 ((void)((*___dst__P2sS_1).__b__i_1=___src__2sS_1.__b__i_1)); 38 ((void)((*___dst__P2sS_1).__c__i_1=___src__2sS_1.__c__i_1)); 39 ((void)___constructor__F_P2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1)); 40 40 return ((struct S )___ret__2sS_1); 41 41 } 42 static inline void ___constructor__F_ R2sSi_autogen___1(struct S *___dst__R2sS_1, int __a__i_1){43 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);44 ((void)((* ___dst__R2sS_1).__b__i_1) /* ?{} */);45 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);42 static inline void ___constructor__F_P2sSi_autogen___1(struct S *___dst__P2sS_1, int __a__i_1){ 43 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 44 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */); 45 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 46 46 } 47 static inline void ___constructor__F_ R2sSii_autogen___1(struct S *___dst__R2sS_1, int __a__i_1, int __b__i_1){48 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);49 ((void)((* ___dst__R2sS_1).__b__i_1=__b__i_1) /* ?{} */);50 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);47 static inline void ___constructor__F_P2sSii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1){ 48 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 49 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */); 50 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 51 51 } 52 static inline void ___constructor__F_ R2sSiii_autogen___1(struct S *___dst__R2sS_1, int __a__i_1, int __b__i_1, int __c__i_1){53 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);54 ((void)((* ___dst__R2sS_1).__b__i_1=__b__i_1) /* ?{} */);55 ((void)((* ___dst__R2sS_1).__c__i_1=__c__i_1) /* ?{} */);52 static inline void ___constructor__F_P2sSiii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1, int __c__i_1){ 53 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 54 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */); 55 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=__c__i_1) /* ?{} */); 56 56 } 57 57 __extension__ union U { … … 60 60 __extension__ int __c__i_1; 61 61 }; 62 static inline void ___constructor__F_ R2uU_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1){62 static inline void ___constructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){ 63 63 } 64 static inline void ___constructor__F_ R2uU2uU_autogen___1(union U *___dst__R2uU_1, union U ___src__2uU_1){65 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U )));64 static inline void ___constructor__F_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 65 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 66 66 } 67 static inline void ___destructor__F_ R2uU_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1){67 static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){ 68 68 } 69 static inline union U ___operator_assign__F2uU_ R2uU2uU_autogen___1(union U *___dst__R2uU_1, union U ___src__2uU_1){69 static inline union U ___operator_assign__F2uU_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 70 70 union U ___ret__2uU_1; 71 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U )));72 ((void)___constructor__F_ R2uU2uU_autogen___1((&___ret__2uU_1), ___src__2uU_1));71 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 72 ((void)___constructor__F_P2uU2uU_autogen___1((&___ret__2uU_1), ___src__2uU_1)); 73 73 return ((union U )___ret__2uU_1); 74 74 } 75 static inline void ___constructor__F_ R2uUi_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1, int __src__i_1){76 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&__src__i_1)), sizeof(int )));75 static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){ 76 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))); 77 77 } 78 78 __extension__ enum E { … … 102 102 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 103 103 int _tmp_cp_ret0; 104 ((void)(( (void)(_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3))) , _tmp_cp_ret0));105 ((void)( _tmp_cp_ret0) /* ^?{} */);104 ((void)((_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret0)); 105 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 106 106 __extension__ int __mary__Fi_i__2(int __p__i_2){ 107 107 __attribute__ ((unused)) int ___retval_mary__i_2; … … 113 113 ((void)(((int )((__extension__ __a__i_2>__extension__ __b__i_2)!=((int )0))) ? __extension__ __c__i_2 : __extension__ __c__i_2)); 114 114 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); 115 ((void)(( (void)(((void)__extension__ __a__i_2) , __extension__ __b__i_2)) , __extension__ __c__i_2));115 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2)); 116 116 } -
src/tests/.expect/32/gccExtensions.txt
r28e58fd raf08051 43 43 __extension__ int __c__i_2; 44 44 }; 45 inline void ___constructor__F_ R2sS_autogen___2(struct S *___dst__R2sS_2){46 ((void)((* ___dst__R2sS_2).__a__i_2) /* ?{} */);47 ((void)((* ___dst__R2sS_2).__b__i_2) /* ?{} */);48 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);45 inline void ___constructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){ 46 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ?{} */); 47 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */); 48 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 49 49 } 50 inline void ___constructor__F_ R2sS2sS_autogen___2(struct S *___dst__R2sS_2, struct S ___src__2sS_2){51 ((void)((* ___dst__R2sS_2).__a__i_2=___src__2sS_2.__a__i_2) /* ?{} */);52 ((void)((* ___dst__R2sS_2).__b__i_2=___src__2sS_2.__b__i_2) /* ?{} */);53 ((void)((* ___dst__R2sS_2).__c__i_2=___src__2sS_2.__c__i_2) /* ?{} */);50 inline void ___constructor__F_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){ 51 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=___src__2sS_2.__a__i_2) /* ?{} */); 52 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=___src__2sS_2.__b__i_2) /* ?{} */); 53 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=___src__2sS_2.__c__i_2) /* ?{} */); 54 54 } 55 inline void ___destructor__F_ R2sS_autogen___2(struct S *___dst__R2sS_2){56 ((void)((* ___dst__R2sS_2).__c__i_2) /* ^?{} */);57 ((void)((* ___dst__R2sS_2).__b__i_2) /* ^?{} */);58 ((void)((* ___dst__R2sS_2).__a__i_2) /* ^?{} */);55 inline void ___destructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){ 56 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ^?{} */); 57 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ^?{} */); 58 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ^?{} */); 59 59 } 60 inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___2(struct S *___dst__R2sS_2, struct S ___src__2sS_2){60 inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){ 61 61 struct S ___ret__2sS_2; 62 ((void)((*___dst__ R2sS_2).__a__i_2=___src__2sS_2.__a__i_2));63 ((void)((*___dst__ R2sS_2).__b__i_2=___src__2sS_2.__b__i_2));64 ((void)((*___dst__ R2sS_2).__c__i_2=___src__2sS_2.__c__i_2));65 ((void)___constructor__F_ R2sS2sS_autogen___2((&___ret__2sS_2), ___src__2sS_2));62 ((void)((*___dst__P2sS_2).__a__i_2=___src__2sS_2.__a__i_2)); 63 ((void)((*___dst__P2sS_2).__b__i_2=___src__2sS_2.__b__i_2)); 64 ((void)((*___dst__P2sS_2).__c__i_2=___src__2sS_2.__c__i_2)); 65 ((void)___constructor__F_P2sS2sS_autogen___2((&___ret__2sS_2), ___src__2sS_2)); 66 66 return ((struct S )___ret__2sS_2); 67 67 } 68 inline void ___constructor__F_ R2sSi_autogen___2(struct S *___dst__R2sS_2, int __a__i_2){69 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);70 ((void)((* ___dst__R2sS_2).__b__i_2) /* ?{} */);71 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);68 inline void ___constructor__F_P2sSi_autogen___2(struct S *___dst__P2sS_2, int __a__i_2){ 69 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 70 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */); 71 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 72 72 } 73 inline void ___constructor__F_ R2sSii_autogen___2(struct S *___dst__R2sS_2, int __a__i_2, int __b__i_2){74 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);75 ((void)((* ___dst__R2sS_2).__b__i_2=__b__i_2) /* ?{} */);76 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);73 inline void ___constructor__F_P2sSii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2){ 74 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 75 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */); 76 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 77 77 } 78 inline void ___constructor__F_ R2sSiii_autogen___2(struct S *___dst__R2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){79 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);80 ((void)((* ___dst__R2sS_2).__b__i_2=__b__i_2) /* ?{} */);81 ((void)((* ___dst__R2sS_2).__c__i_2=__c__i_2) /* ?{} */);78 inline void ___constructor__F_P2sSiii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){ 79 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 80 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */); 81 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=__c__i_2) /* ?{} */); 82 82 } 83 83 int __i__i_2 = ((int )__extension__ 3); … … 85 85 __extension__ int __b__i_2; 86 86 __extension__ int __c__i_2; 87 ((void)(( (void)(((void)__extension__ __a__i_2) , __extension__ __b__i_2)) , __extension__ __c__i_2));87 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2)); 88 88 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 89 89 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); … … 101 101 int __i__i_2; 102 102 }; 103 inline void ___constructor__F_ R3ss2_autogen___2(struct s2 *___dst__R3ss2_2){104 ((void)((* ___dst__R3ss2_2).__i__i_2) /* ?{} */);103 inline void ___constructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){ 104 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ?{} */); 105 105 } 106 inline void ___constructor__F_ R3ss23ss2_autogen___2(struct s2 *___dst__R3ss2_2, struct s2 ___src__3ss2_2){107 ((void)((* ___dst__R3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2) /* ?{} */);106 inline void ___constructor__F_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){ 107 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=___src__3ss2_2.__i__i_2) /* ?{} */); 108 108 } 109 inline void ___destructor__F_ R3ss2_autogen___2(struct s2 *___dst__R3ss2_2){110 ((void)((* ___dst__R3ss2_2).__i__i_2) /* ^?{} */);109 inline void ___destructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){ 110 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ^?{} */); 111 111 } 112 inline struct s2 ___operator_assign__F3ss2_ R3ss23ss2_autogen___2(struct s2 *___dst__R3ss2_2, struct s2 ___src__3ss2_2){112 inline struct s2 ___operator_assign__F3ss2_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){ 113 113 struct s2 ___ret__3ss2_2; 114 ((void)((*___dst__ R3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2));115 ((void)___constructor__F_ R3ss23ss2_autogen___2((&___ret__3ss2_2), ___src__3ss2_2));114 ((void)((*___dst__P3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2)); 115 ((void)___constructor__F_P3ss23ss2_autogen___2((&___ret__3ss2_2), ___src__3ss2_2)); 116 116 return ((struct s2 )___ret__3ss2_2); 117 117 } 118 inline void ___constructor__F_ R3ss2i_autogen___2(struct s2 *___dst__R3ss2_2, int __i__i_2){119 ((void)((* ___dst__R3ss2_2).__i__i_2=__i__i_2) /* ?{} */);118 inline void ___constructor__F_P3ss2i_autogen___2(struct s2 *___dst__P3ss2_2, int __i__i_2){ 119 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=__i__i_2) /* ?{} */); 120 120 } 121 121 struct s3 { 122 122 int __i__i_2; 123 123 }; 124 inline void ___constructor__F_ R3ss3_autogen___2(struct s3 *___dst__R3ss3_2){125 ((void)((* ___dst__R3ss3_2).__i__i_2) /* ?{} */);124 inline void ___constructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){ 125 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ?{} */); 126 126 } 127 inline void ___constructor__F_ R3ss33ss3_autogen___2(struct s3 *___dst__R3ss3_2, struct s3 ___src__3ss3_2){128 ((void)((* ___dst__R3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2) /* ?{} */);127 inline void ___constructor__F_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){ 128 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=___src__3ss3_2.__i__i_2) /* ?{} */); 129 129 } 130 inline void ___destructor__F_ R3ss3_autogen___2(struct s3 *___dst__R3ss3_2){131 ((void)((* ___dst__R3ss3_2).__i__i_2) /* ^?{} */);130 inline void ___destructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){ 131 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ^?{} */); 132 132 } 133 inline struct s3 ___operator_assign__F3ss3_ R3ss33ss3_autogen___2(struct s3 *___dst__R3ss3_2, struct s3 ___src__3ss3_2){133 inline struct s3 ___operator_assign__F3ss3_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){ 134 134 struct s3 ___ret__3ss3_2; 135 ((void)((*___dst__ R3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2));136 ((void)___constructor__F_ R3ss33ss3_autogen___2((&___ret__3ss3_2), ___src__3ss3_2));135 ((void)((*___dst__P3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2)); 136 ((void)___constructor__F_P3ss33ss3_autogen___2((&___ret__3ss3_2), ___src__3ss3_2)); 137 137 return ((struct s3 )___ret__3ss3_2); 138 138 } 139 inline void ___constructor__F_ R3ss3i_autogen___2(struct s3 *___dst__R3ss3_2, int __i__i_2){140 ((void)((* ___dst__R3ss3_2).__i__i_2=__i__i_2) /* ?{} */);139 inline void ___constructor__F_P3ss3i_autogen___2(struct s3 *___dst__P3ss3_2, int __i__i_2){ 140 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=__i__i_2) /* ?{} */); 141 141 } 142 142 struct s3 __x1__3ss3_2; … … 145 145 int __i__i_2; 146 146 }; 147 inline void ___constructor__F_ R3ss4_autogen___2(struct s4 *___dst__R3ss4_2){148 ((void)((* ___dst__R3ss4_2).__i__i_2) /* ?{} */);147 inline void ___constructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){ 148 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ?{} */); 149 149 } 150 inline void ___constructor__F_ R3ss43ss4_autogen___2(struct s4 *___dst__R3ss4_2, struct s4 ___src__3ss4_2){151 ((void)((* ___dst__R3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2) /* ?{} */);150 inline void ___constructor__F_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){ 151 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=___src__3ss4_2.__i__i_2) /* ?{} */); 152 152 } 153 inline void ___destructor__F_ R3ss4_autogen___2(struct s4 *___dst__R3ss4_2){154 ((void)((* ___dst__R3ss4_2).__i__i_2) /* ^?{} */);153 inline void ___destructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){ 154 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ^?{} */); 155 155 } 156 inline struct s4 ___operator_assign__F3ss4_ R3ss43ss4_autogen___2(struct s4 *___dst__R3ss4_2, struct s4 ___src__3ss4_2){156 inline struct s4 ___operator_assign__F3ss4_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){ 157 157 struct s4 ___ret__3ss4_2; 158 ((void)((*___dst__ R3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2));159 ((void)___constructor__F_ R3ss43ss4_autogen___2((&___ret__3ss4_2), ___src__3ss4_2));158 ((void)((*___dst__P3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2)); 159 ((void)___constructor__F_P3ss43ss4_autogen___2((&___ret__3ss4_2), ___src__3ss4_2)); 160 160 return ((struct s4 )___ret__3ss4_2); 161 161 } 162 inline void ___constructor__F_ R3ss4i_autogen___2(struct s4 *___dst__R3ss4_2, int __i__i_2){163 ((void)((* ___dst__R3ss4_2).__i__i_2=__i__i_2) /* ?{} */);162 inline void ___constructor__F_P3ss4i_autogen___2(struct s4 *___dst__P3ss4_2, int __i__i_2){ 163 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=__i__i_2) /* ?{} */); 164 164 } 165 165 struct s4 __x2__3ss4_2; … … 184 184 __attribute__ ((unused)) int ___retval_main__i_1; 185 185 int _tmp_cp_ret0; 186 ((void)(___retval_main__i_1=(( (void)(_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1))) , _tmp_cp_ret0)) /* ?{} */);187 ((void)( _tmp_cp_ret0) /* ^?{} */);186 ((void)(___retval_main__i_1=((_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1)) , _tmp_cp_ret0)) /* ?{} */); 187 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 188 188 return ((int )___retval_main__i_1); 189 189 } -
src/tests/.expect/64/KRfunctions.txt
r28e58fd raf08051 17 17 int __i__i_1; 18 18 }; 19 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);20 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);21 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);22 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);23 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){24 ((void)((* ___dst__R2sS_1).__i__i_1) /* ?{} */);19 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 20 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 21 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 22 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 23 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 24 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))) /* ?{} */); 25 25 } 26 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){27 ((void)((* ___dst__R2sS_1).__i__i_1=___src__2sS_1.__i__i_1) /* ?{} */);26 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 27 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))=___src__2sS_1.__i__i_1) /* ?{} */); 28 28 } 29 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){30 ((void)((* ___dst__R2sS_1).__i__i_1) /* ^?{} */);29 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 30 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))) /* ^?{} */); 31 31 } 32 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){32 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 33 33 struct S ___ret__2sS_1; 34 ((void)((*___dst__ R2sS_1).__i__i_1=___src__2sS_1.__i__i_1));35 ((void)___constructor__F_ R2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1));34 ((void)((*___dst__P2sS_1).__i__i_1=___src__2sS_1.__i__i_1)); 35 ((void)___constructor__F_P2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1)); 36 36 return ((struct S )___ret__2sS_1); 37 37 } 38 static inline void ___constructor__F_ R2sSi_autogen___1(struct S *___dst__R2sS_1, int __i__i_1){39 ((void)((* ___dst__R2sS_1).__i__i_1=__i__i_1) /* ?{} */);38 static inline void ___constructor__F_P2sSi_autogen___1(struct S *___dst__P2sS_1, int __i__i_1){ 39 ((void)((*((int *)(&(*___dst__P2sS_1).__i__i_1)))=__i__i_1) /* ?{} */); 40 40 } 41 41 int __f3__Fi_2sS2sSPi__1(struct S __a__2sS_1, struct S __b__2sS_1, int *__c__Pi_1){ … … 88 88 int __b__i_2; 89 89 int *(*_tmp_cp_ret0)(int __x__i_1, int __y__i_1); 90 ((void)(__x__PFPi_ii__2=(( (void)(_tmp_cp_ret0=__f10__FPFPi_ii__iPiPid__1(3, (&__a__i_2), (&__b__i_2), 3.5))) , _tmp_cp_ret0)));91 ((void)( _tmp_cp_ret0) /* ^?{} */);90 ((void)(__x__PFPi_ii__2=((_tmp_cp_ret0=__f10__FPFPi_ii__iPiPid__1(3, (&__a__i_2), (&__b__i_2), 3.5)) , _tmp_cp_ret0))); 91 ((void)((*((int *(**)(int __x__i_1, int __y__i_1))(&_tmp_cp_ret0)))) /* ^?{} */); 92 92 const int __f1__FCi_iPiPi__2(int __a__i_2, int *__b__Pi_2, int *__c__Pi_2){ 93 93 __attribute__ ((unused)) const int ___retval_f1__Ci_2; -
src/tests/.expect/64/attributes.txt
r28e58fd raf08051 11 11 __attribute__ ((unused)) struct __anonymous0 { 12 12 }; 13 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);14 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);15 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);16 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);17 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){18 } 19 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){20 } 21 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){22 } 23 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){13 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 14 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 15 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 16 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 17 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 18 } 19 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 20 } 21 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 22 } 23 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 24 24 struct __anonymous0 ___ret__13s__anonymous0_1; 25 ((void)___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1));25 ((void)___constructor__F_P13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1)); 26 26 return ((struct __anonymous0 )___ret__13s__anonymous0_1); 27 27 } … … 29 29 __attribute__ ((unused)) struct Agn2 { 30 30 }; 31 static inline void ___constructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1);32 static inline void ___constructor__F_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1);33 static inline void ___destructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1);34 static inline struct Agn2 ___operator_assign__F5sAgn2_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1);35 static inline void ___constructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1){36 } 37 static inline void ___constructor__F_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1){38 } 39 static inline void ___destructor__F_ R5sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1){40 } 41 static inline struct Agn2 ___operator_assign__F5sAgn2_ R5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__R5sAgn2_1, struct Agn2 ___src__5sAgn2_1){31 static inline void ___constructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1); 32 static inline void ___constructor__F_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1); 33 static inline void ___destructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1); 34 static inline struct Agn2 ___operator_assign__F5sAgn2_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1); 35 static inline void ___constructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1){ 36 } 37 static inline void ___constructor__F_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1){ 38 } 39 static inline void ___destructor__F_P5sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1){ 40 } 41 static inline struct Agn2 ___operator_assign__F5sAgn2_P5sAgn25sAgn2_autogen___1(struct Agn2 *___dst__P5sAgn2_1, struct Agn2 ___src__5sAgn2_1){ 42 42 struct Agn2 ___ret__5sAgn2_1; 43 ((void)___constructor__F_ R5sAgn25sAgn2_autogen___1((&___ret__5sAgn2_1), ___src__5sAgn2_1));43 ((void)___constructor__F_P5sAgn25sAgn2_autogen___1((&___ret__5sAgn2_1), ___src__5sAgn2_1)); 44 44 return ((struct Agn2 )___ret__5sAgn2_1); 45 45 } … … 65 65 __attribute__ ((unused,unused)) int *__f9__Pi_1; 66 66 }; 67 static inline void ___constructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1);68 static inline void ___constructor__F_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1);69 static inline void ___destructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1);70 static inline struct Fdl ___operator_assign__F4sFdl_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1);71 static inline void ___constructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1){72 ((void)((* ___dst__R4sFdl_1).__f1__i_1) /* ?{} */);73 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ?{} */);74 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);75 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);76 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);77 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);78 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);79 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);80 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);81 } 82 static inline void ___constructor__F_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1){83 ((void)((* ___dst__R4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1) /* ?{} */);84 ((void)((* ___dst__R4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1) /* ?{} */);85 ((void)((* ___dst__R4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1) /* ?{} */);86 ((void)((* ___dst__R4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1) /* ?{} */);87 ((void)((* ___dst__R4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1) /* ?{} */);88 ((void)((* ___dst__R4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1) /* ?{} */);89 ((void)((* ___dst__R4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1) /* ?{} */);90 ((void)((* ___dst__R4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1) /* ?{} */);91 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1) /* ?{} */);92 } 93 static inline void ___destructor__F_ R4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1){94 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ^?{} */);95 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ^?{} */);96 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ^?{} */);97 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ^?{} */);98 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ^?{} */);99 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ^?{} */);100 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ^?{} */);101 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ^?{} */);102 ((void)((* ___dst__R4sFdl_1).__f1__i_1) /* ^?{} */);103 } 104 static inline struct Fdl ___operator_assign__F4sFdl_ R4sFdl4sFdl_autogen___1(struct Fdl *___dst__R4sFdl_1, struct Fdl ___src__4sFdl_1){67 static inline void ___constructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1); 68 static inline void ___constructor__F_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1); 69 static inline void ___destructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1); 70 static inline struct Fdl ___operator_assign__F4sFdl_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1); 71 static inline void ___constructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1){ 72 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))) /* ?{} */); 73 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ?{} */); 74 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 75 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 76 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 77 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 78 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 79 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 80 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 81 } 82 static inline void ___constructor__F_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1){ 83 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=___src__4sFdl_1.__f1__i_1) /* ?{} */); 84 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=___src__4sFdl_1.__f2__i_1) /* ?{} */); 85 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=___src__4sFdl_1.__f3__i_1) /* ?{} */); 86 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=___src__4sFdl_1.__f4__i_1) /* ?{} */); 87 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=___src__4sFdl_1.__f5__i_1) /* ?{} */); 88 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=___src__4sFdl_1.__f6__i_1) /* ?{} */); 89 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=___src__4sFdl_1.__f7__i_1) /* ?{} */); 90 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=___src__4sFdl_1.__f8__i_1) /* ?{} */); 91 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))=___src__4sFdl_1.__f9__Pi_1) /* ?{} */); 92 } 93 static inline void ___destructor__F_P4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1){ 94 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ^?{} */); 95 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ^?{} */); 96 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ^?{} */); 97 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ^?{} */); 98 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ^?{} */); 99 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ^?{} */); 100 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ^?{} */); 101 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ^?{} */); 102 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))) /* ^?{} */); 103 } 104 static inline struct Fdl ___operator_assign__F4sFdl_P4sFdl4sFdl_autogen___1(struct Fdl *___dst__P4sFdl_1, struct Fdl ___src__4sFdl_1){ 105 105 struct Fdl ___ret__4sFdl_1; 106 ((void)((*___dst__ R4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1));107 ((void)((*___dst__ R4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1));108 ((void)((*___dst__ R4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1));109 ((void)((*___dst__ R4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1));110 ((void)((*___dst__ R4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1));111 ((void)((*___dst__ R4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1));112 ((void)((*___dst__ R4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1));113 ((void)((*___dst__ R4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1));114 ((void)((*___dst__ R4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1));115 ((void)___constructor__F_ R4sFdl4sFdl_autogen___1((&___ret__4sFdl_1), ___src__4sFdl_1));106 ((void)((*___dst__P4sFdl_1).__f1__i_1=___src__4sFdl_1.__f1__i_1)); 107 ((void)((*___dst__P4sFdl_1).__f2__i_1=___src__4sFdl_1.__f2__i_1)); 108 ((void)((*___dst__P4sFdl_1).__f3__i_1=___src__4sFdl_1.__f3__i_1)); 109 ((void)((*___dst__P4sFdl_1).__f4__i_1=___src__4sFdl_1.__f4__i_1)); 110 ((void)((*___dst__P4sFdl_1).__f5__i_1=___src__4sFdl_1.__f5__i_1)); 111 ((void)((*___dst__P4sFdl_1).__f6__i_1=___src__4sFdl_1.__f6__i_1)); 112 ((void)((*___dst__P4sFdl_1).__f7__i_1=___src__4sFdl_1.__f7__i_1)); 113 ((void)((*___dst__P4sFdl_1).__f8__i_1=___src__4sFdl_1.__f8__i_1)); 114 ((void)((*___dst__P4sFdl_1).__f9__Pi_1=___src__4sFdl_1.__f9__Pi_1)); 115 ((void)___constructor__F_P4sFdl4sFdl_autogen___1((&___ret__4sFdl_1), ___src__4sFdl_1)); 116 116 return ((struct Fdl )___ret__4sFdl_1); 117 117 } 118 static inline void ___constructor__F_ R4sFdli_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1){119 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);120 ((void)((* ___dst__R4sFdl_1).__f2__i_1) /* ?{} */);121 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);122 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);123 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);124 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);125 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);126 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);127 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);128 } 129 static inline void ___constructor__F_ R4sFdlii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1){130 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);131 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);132 ((void)((* ___dst__R4sFdl_1).__f3__i_1) /* ?{} */);133 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);134 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);135 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);136 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);137 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);138 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);139 } 140 static inline void ___constructor__F_ R4sFdliii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1){141 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);142 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);143 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);144 ((void)((* ___dst__R4sFdl_1).__f4__i_1) /* ?{} */);145 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);146 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);147 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);148 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);149 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);150 } 151 static inline void ___constructor__F_ R4sFdliiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1){152 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);153 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);154 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);155 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);156 ((void)((* ___dst__R4sFdl_1).__f5__i_1) /* ?{} */);157 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);158 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);159 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);160 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);161 } 162 static inline void ___constructor__F_ R4sFdliiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1){163 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);164 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);165 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);166 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);167 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);168 ((void)((* ___dst__R4sFdl_1).__f6__i_1) /* ?{} */);169 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);170 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);171 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);172 } 173 static inline void ___constructor__F_ R4sFdliiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1){174 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);175 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);176 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);177 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);178 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);179 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);180 ((void)((* ___dst__R4sFdl_1).__f7__i_1) /* ?{} */);181 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);182 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);183 } 184 static inline void ___constructor__F_ R4sFdliiiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1){185 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);186 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);187 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);188 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);189 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);190 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);191 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);192 ((void)((* ___dst__R4sFdl_1).__f8__i_1) /* ?{} */);193 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);194 } 195 static inline void ___constructor__F_ R4sFdliiiiiiii_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1){196 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);197 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);198 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);199 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);200 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);201 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);202 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);203 ((void)((* ___dst__R4sFdl_1).__f8__i_1=__f8__i_1) /* ?{} */);204 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1) /* ?{} */);205 } 206 static inline void ___constructor__F_ R4sFdliiiiiiiiPi_autogen___1(struct Fdl *___dst__R4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1, int *__f9__Pi_1){207 ((void)((* ___dst__R4sFdl_1).__f1__i_1=__f1__i_1) /* ?{} */);208 ((void)((* ___dst__R4sFdl_1).__f2__i_1=__f2__i_1) /* ?{} */);209 ((void)((* ___dst__R4sFdl_1).__f3__i_1=__f3__i_1) /* ?{} */);210 ((void)((* ___dst__R4sFdl_1).__f4__i_1=__f4__i_1) /* ?{} */);211 ((void)((* ___dst__R4sFdl_1).__f5__i_1=__f5__i_1) /* ?{} */);212 ((void)((* ___dst__R4sFdl_1).__f6__i_1=__f6__i_1) /* ?{} */);213 ((void)((* ___dst__R4sFdl_1).__f7__i_1=__f7__i_1) /* ?{} */);214 ((void)((* ___dst__R4sFdl_1).__f8__i_1=__f8__i_1) /* ?{} */);215 ((void)((* ___dst__R4sFdl_1).__f9__Pi_1=__f9__Pi_1) /* ?{} */);118 static inline void ___constructor__F_P4sFdli_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1){ 119 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 120 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))) /* ?{} */); 121 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 122 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 123 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 124 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 125 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 126 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 127 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 128 } 129 static inline void ___constructor__F_P4sFdlii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1){ 130 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 131 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 132 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))) /* ?{} */); 133 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 134 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 135 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 136 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 137 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 138 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 139 } 140 static inline void ___constructor__F_P4sFdliii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1){ 141 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 142 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 143 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 144 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))) /* ?{} */); 145 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 146 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 147 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 148 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 149 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 150 } 151 static inline void ___constructor__F_P4sFdliiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1){ 152 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 153 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 154 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 155 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 156 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))) /* ?{} */); 157 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 158 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 159 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 160 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 161 } 162 static inline void ___constructor__F_P4sFdliiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1){ 163 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 164 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 165 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 166 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 167 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 168 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))) /* ?{} */); 169 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 170 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 171 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 172 } 173 static inline void ___constructor__F_P4sFdliiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1){ 174 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 175 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 176 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 177 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 178 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 179 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 180 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))) /* ?{} */); 181 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 182 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 183 } 184 static inline void ___constructor__F_P4sFdliiiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1){ 185 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 186 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 187 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 188 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 189 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 190 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 191 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 192 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))) /* ?{} */); 193 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 194 } 195 static inline void ___constructor__F_P4sFdliiiiiiii_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1){ 196 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 197 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 198 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 199 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 200 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 201 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 202 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 203 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=__f8__i_1) /* ?{} */); 204 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))) /* ?{} */); 205 } 206 static inline void ___constructor__F_P4sFdliiiiiiiiPi_autogen___1(struct Fdl *___dst__P4sFdl_1, int __f1__i_1, int __f2__i_1, int __f3__i_1, int __f4__i_1, int __f5__i_1, int __f6__i_1, int __f7__i_1, int __f8__i_1, int *__f9__Pi_1){ 207 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f1__i_1)))=__f1__i_1) /* ?{} */); 208 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f2__i_1)))=__f2__i_1) /* ?{} */); 209 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f3__i_1)))=__f3__i_1) /* ?{} */); 210 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f4__i_1)))=__f4__i_1) /* ?{} */); 211 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f5__i_1)))=__f5__i_1) /* ?{} */); 212 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f6__i_1)))=__f6__i_1) /* ?{} */); 213 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f7__i_1)))=__f7__i_1) /* ?{} */); 214 ((void)((*((int *)(&(*___dst__P4sFdl_1).__f8__i_1)))=__f8__i_1) /* ?{} */); 215 ((void)((*((int **)(&(*___dst__P4sFdl_1).__f9__Pi_1)))=__f9__Pi_1) /* ?{} */); 216 216 } 217 217 __attribute__ ((unused)) int __f__Fi___1() asm ( "xyz" ); … … 288 288 int __i__i_2; 289 289 }; 290 inline void ___constructor__F_ R13s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2){291 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2) /* ?{} */);292 } 293 inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){294 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2) /* ?{} */);295 } 296 inline void ___destructor__F_ R13s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2){297 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2) /* ^?{} */);298 } 299 inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){290 inline void ___constructor__F_P13s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2){ 291 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))) /* ?{} */); 292 } 293 inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){ 294 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))=___src__13s__anonymous4_2.__i__i_2) /* ?{} */); 295 } 296 inline void ___destructor__F_P13s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2){ 297 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))) /* ^?{} */); 298 } 299 inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, struct __anonymous4 ___src__13s__anonymous4_2){ 300 300 struct __anonymous4 ___ret__13s__anonymous4_2; 301 ((void)((*___dst__ R13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2));302 ((void)___constructor__F_ R13s__anonymous413s__anonymous4_autogen___2((&___ret__13s__anonymous4_2), ___src__13s__anonymous4_2));301 ((void)((*___dst__P13s__anonymous4_2).__i__i_2=___src__13s__anonymous4_2.__i__i_2)); 302 ((void)___constructor__F_P13s__anonymous413s__anonymous4_autogen___2((&___ret__13s__anonymous4_2), ___src__13s__anonymous4_2)); 303 303 return ((struct __anonymous4 )___ret__13s__anonymous4_2); 304 304 } 305 inline void ___constructor__F_ R13s__anonymous4i_autogen___2(struct __anonymous4 *___dst__R13s__anonymous4_2, int __i__i_2){306 ((void)((* ___dst__R13s__anonymous4_2).__i__i_2=__i__i_2) /* ?{} */);305 inline void ___constructor__F_P13s__anonymous4i_autogen___2(struct __anonymous4 *___dst__P13s__anonymous4_2, int __i__i_2){ 306 ((void)((*((int *)(&(*___dst__P13s__anonymous4_2).__i__i_2)))=__i__i_2) /* ?{} */); 307 307 } 308 308 ((void)sizeof(struct __anonymous4 )); … … 310 310 __R__C13e__anonymous5_2, 311 311 }; 312 inline void ___constructor__F_ R13e__anonymous5_intrinsic___2(__attribute__ ((unused)) enum __anonymous5 *___dst__R13e__anonymous5_2){313 } 314 inline void ___constructor__F_ R13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__R13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){315 ((void)((*___dst__ R13e__anonymous5_2)=___src__13e__anonymous5_2));316 } 317 inline void ___destructor__F_ R13e__anonymous5_intrinsic___2(__attribute__ ((unused)) enum __anonymous5 *___dst__R13e__anonymous5_2){318 } 319 inline enum __anonymous5 ___operator_assign__F13e__anonymous5_ R13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__R13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){312 inline void ___constructor__F_P13e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2){ 313 } 314 inline void ___constructor__F_P13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){ 315 ((void)((*___dst__P13e__anonymous5_2)=___src__13e__anonymous5_2)); 316 } 317 inline void ___destructor__F_P13e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2){ 318 } 319 inline enum __anonymous5 ___operator_assign__F13e__anonymous5_P13e__anonymous513e__anonymous5_intrinsic___2(enum __anonymous5 *___dst__P13e__anonymous5_2, enum __anonymous5 ___src__13e__anonymous5_2){ 320 320 enum __anonymous5 ___ret__13e__anonymous5_2; 321 ((void)(___ret__13e__anonymous5_2=((*___dst__ R13e__anonymous5_2)=___src__13e__anonymous5_2)) /* ?{} */);321 ((void)(___ret__13e__anonymous5_2=((*___dst__P13e__anonymous5_2)=___src__13e__anonymous5_2)) /* ?{} */); 322 322 return ((enum __anonymous5 )___ret__13e__anonymous5_2); 323 323 } … … 337 337 __attribute__ ((unused,unused)) int (*__anonymous_object31)(); 338 338 }; 339 static inline void ___constructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1);340 static inline void ___constructor__F_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1);341 static inline void ___destructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1);342 static inline struct Vad ___operator_assign__F4sVad_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1);343 static inline void ___constructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1){344 } 345 static inline void ___constructor__F_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1){346 } 347 static inline void ___destructor__F_ R4sVad_autogen___1(struct Vad *___dst__R4sVad_1){348 } 349 static inline struct Vad ___operator_assign__F4sVad_ R4sVad4sVad_autogen___1(struct Vad *___dst__R4sVad_1, struct Vad ___src__4sVad_1){339 static inline void ___constructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1); 340 static inline void ___constructor__F_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1); 341 static inline void ___destructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1); 342 static inline struct Vad ___operator_assign__F4sVad_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1); 343 static inline void ___constructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1){ 344 } 345 static inline void ___constructor__F_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1){ 346 } 347 static inline void ___destructor__F_P4sVad_autogen___1(struct Vad *___dst__P4sVad_1){ 348 } 349 static inline struct Vad ___operator_assign__F4sVad_P4sVad4sVad_autogen___1(struct Vad *___dst__P4sVad_1, struct Vad ___src__4sVad_1){ 350 350 struct Vad ___ret__4sVad_1; 351 ((void)___constructor__F_ R4sVad4sVad_autogen___1((&___ret__4sVad_1), ___src__4sVad_1));351 ((void)___constructor__F_P4sVad4sVad_autogen___1((&___ret__4sVad_1), ___src__4sVad_1)); 352 352 return ((struct Vad )___ret__4sVad_1); 353 353 } -
src/tests/.expect/64/declarationSpecifier.txt
r28e58fd raf08051 16 16 int __i__i_1; 17 17 }; 18 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);19 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);20 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1);21 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1);22 static inline void ___constructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){23 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1) /* ?{} */);24 } 25 static inline void ___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){26 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1) /* ?{} */);27 } 28 static inline void ___destructor__F_ R13s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1){29 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1) /* ^?{} */);30 } 31 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_ R13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){18 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 19 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 20 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1); 21 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1); 22 static inline void ___constructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 23 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))) /* ?{} */); 24 } 25 static inline void ___constructor__F_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 26 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))=___src__13s__anonymous0_1.__i__i_1) /* ?{} */); 27 } 28 static inline void ___destructor__F_P13s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1){ 29 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))) /* ^?{} */); 30 } 31 static inline struct __anonymous0 ___operator_assign__F13s__anonymous0_P13s__anonymous013s__anonymous0_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, struct __anonymous0 ___src__13s__anonymous0_1){ 32 32 struct __anonymous0 ___ret__13s__anonymous0_1; 33 ((void)((*___dst__ R13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1));34 ((void)___constructor__F_ R13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1));33 ((void)((*___dst__P13s__anonymous0_1).__i__i_1=___src__13s__anonymous0_1.__i__i_1)); 34 ((void)___constructor__F_P13s__anonymous013s__anonymous0_autogen___1((&___ret__13s__anonymous0_1), ___src__13s__anonymous0_1)); 35 35 return ((struct __anonymous0 )___ret__13s__anonymous0_1); 36 36 } 37 static inline void ___constructor__F_ R13s__anonymous0i_autogen___1(struct __anonymous0 *___dst__R13s__anonymous0_1, int __i__i_1){38 ((void)((* ___dst__R13s__anonymous0_1).__i__i_1=__i__i_1) /* ?{} */);37 static inline void ___constructor__F_P13s__anonymous0i_autogen___1(struct __anonymous0 *___dst__P13s__anonymous0_1, int __i__i_1){ 38 ((void)((*((int *)(&(*___dst__P13s__anonymous0_1).__i__i_1)))=__i__i_1) /* ?{} */); 39 39 } 40 40 volatile const struct __anonymous0 __x10__CV13s__anonymous0_1; … … 42 42 int __i__i_1; 43 43 }; 44 static inline void ___constructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1);45 static inline void ___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1);46 static inline void ___destructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1);47 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1);48 static inline void ___constructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1){49 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1) /* ?{} */);50 } 51 static inline void ___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){52 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1) /* ?{} */);53 } 54 static inline void ___destructor__F_ R13s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1){55 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1) /* ^?{} */);56 } 57 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_ R13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){44 static inline void ___constructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1); 45 static inline void ___constructor__F_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1); 46 static inline void ___destructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1); 47 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1); 48 static inline void ___constructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1){ 49 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))) /* ?{} */); 50 } 51 static inline void ___constructor__F_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){ 52 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))=___src__13s__anonymous1_1.__i__i_1) /* ?{} */); 53 } 54 static inline void ___destructor__F_P13s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1){ 55 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))) /* ^?{} */); 56 } 57 static inline struct __anonymous1 ___operator_assign__F13s__anonymous1_P13s__anonymous113s__anonymous1_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, struct __anonymous1 ___src__13s__anonymous1_1){ 58 58 struct __anonymous1 ___ret__13s__anonymous1_1; 59 ((void)((*___dst__ R13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1));60 ((void)___constructor__F_ R13s__anonymous113s__anonymous1_autogen___1((&___ret__13s__anonymous1_1), ___src__13s__anonymous1_1));59 ((void)((*___dst__P13s__anonymous1_1).__i__i_1=___src__13s__anonymous1_1.__i__i_1)); 60 ((void)___constructor__F_P13s__anonymous113s__anonymous1_autogen___1((&___ret__13s__anonymous1_1), ___src__13s__anonymous1_1)); 61 61 return ((struct __anonymous1 )___ret__13s__anonymous1_1); 62 62 } 63 static inline void ___constructor__F_ R13s__anonymous1i_autogen___1(struct __anonymous1 *___dst__R13s__anonymous1_1, int __i__i_1){64 ((void)((* ___dst__R13s__anonymous1_1).__i__i_1=__i__i_1) /* ?{} */);63 static inline void ___constructor__F_P13s__anonymous1i_autogen___1(struct __anonymous1 *___dst__P13s__anonymous1_1, int __i__i_1){ 64 ((void)((*((int *)(&(*___dst__P13s__anonymous1_1).__i__i_1)))=__i__i_1) /* ?{} */); 65 65 } 66 66 volatile const struct __anonymous1 __x11__CV13s__anonymous1_1; … … 68 68 int __i__i_1; 69 69 }; 70 static inline void ___constructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1);71 static inline void ___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1);72 static inline void ___destructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1);73 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1);74 static inline void ___constructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1){75 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1) /* ?{} */);76 } 77 static inline void ___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){78 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1) /* ?{} */);79 } 80 static inline void ___destructor__F_ R13s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1){81 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1) /* ^?{} */);82 } 83 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_ R13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){70 static inline void ___constructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1); 71 static inline void ___constructor__F_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1); 72 static inline void ___destructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1); 73 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1); 74 static inline void ___constructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1){ 75 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))) /* ?{} */); 76 } 77 static inline void ___constructor__F_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){ 78 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))=___src__13s__anonymous2_1.__i__i_1) /* ?{} */); 79 } 80 static inline void ___destructor__F_P13s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1){ 81 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))) /* ^?{} */); 82 } 83 static inline struct __anonymous2 ___operator_assign__F13s__anonymous2_P13s__anonymous213s__anonymous2_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, struct __anonymous2 ___src__13s__anonymous2_1){ 84 84 struct __anonymous2 ___ret__13s__anonymous2_1; 85 ((void)((*___dst__ R13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1));86 ((void)___constructor__F_ R13s__anonymous213s__anonymous2_autogen___1((&___ret__13s__anonymous2_1), ___src__13s__anonymous2_1));85 ((void)((*___dst__P13s__anonymous2_1).__i__i_1=___src__13s__anonymous2_1.__i__i_1)); 86 ((void)___constructor__F_P13s__anonymous213s__anonymous2_autogen___1((&___ret__13s__anonymous2_1), ___src__13s__anonymous2_1)); 87 87 return ((struct __anonymous2 )___ret__13s__anonymous2_1); 88 88 } 89 static inline void ___constructor__F_ R13s__anonymous2i_autogen___1(struct __anonymous2 *___dst__R13s__anonymous2_1, int __i__i_1){90 ((void)((* ___dst__R13s__anonymous2_1).__i__i_1=__i__i_1) /* ?{} */);89 static inline void ___constructor__F_P13s__anonymous2i_autogen___1(struct __anonymous2 *___dst__P13s__anonymous2_1, int __i__i_1){ 90 ((void)((*((int *)(&(*___dst__P13s__anonymous2_1).__i__i_1)))=__i__i_1) /* ?{} */); 91 91 } 92 92 volatile const struct __anonymous2 __x12__CV13s__anonymous2_1; … … 94 94 int __i__i_1; 95 95 }; 96 static inline void ___constructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1);97 static inline void ___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1);98 static inline void ___destructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1);99 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1);100 static inline void ___constructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1){101 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1) /* ?{} */);102 } 103 static inline void ___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){104 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1) /* ?{} */);105 } 106 static inline void ___destructor__F_ R13s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1){107 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1) /* ^?{} */);108 } 109 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_ R13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){96 static inline void ___constructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1); 97 static inline void ___constructor__F_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1); 98 static inline void ___destructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1); 99 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1); 100 static inline void ___constructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1){ 101 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))) /* ?{} */); 102 } 103 static inline void ___constructor__F_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){ 104 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))=___src__13s__anonymous3_1.__i__i_1) /* ?{} */); 105 } 106 static inline void ___destructor__F_P13s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1){ 107 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))) /* ^?{} */); 108 } 109 static inline struct __anonymous3 ___operator_assign__F13s__anonymous3_P13s__anonymous313s__anonymous3_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, struct __anonymous3 ___src__13s__anonymous3_1){ 110 110 struct __anonymous3 ___ret__13s__anonymous3_1; 111 ((void)((*___dst__ R13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1));112 ((void)___constructor__F_ R13s__anonymous313s__anonymous3_autogen___1((&___ret__13s__anonymous3_1), ___src__13s__anonymous3_1));111 ((void)((*___dst__P13s__anonymous3_1).__i__i_1=___src__13s__anonymous3_1.__i__i_1)); 112 ((void)___constructor__F_P13s__anonymous313s__anonymous3_autogen___1((&___ret__13s__anonymous3_1), ___src__13s__anonymous3_1)); 113 113 return ((struct __anonymous3 )___ret__13s__anonymous3_1); 114 114 } 115 static inline void ___constructor__F_ R13s__anonymous3i_autogen___1(struct __anonymous3 *___dst__R13s__anonymous3_1, int __i__i_1){116 ((void)((* ___dst__R13s__anonymous3_1).__i__i_1=__i__i_1) /* ?{} */);115 static inline void ___constructor__F_P13s__anonymous3i_autogen___1(struct __anonymous3 *___dst__P13s__anonymous3_1, int __i__i_1){ 116 ((void)((*((int *)(&(*___dst__P13s__anonymous3_1).__i__i_1)))=__i__i_1) /* ?{} */); 117 117 } 118 118 static volatile const struct __anonymous3 __x13__CV13s__anonymous3_1; … … 120 120 int __i__i_1; 121 121 }; 122 static inline void ___constructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1);123 static inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1);124 static inline void ___destructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1);125 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1);126 static inline void ___constructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1){127 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1) /* ?{} */);128 } 129 static inline void ___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){130 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1) /* ?{} */);131 } 132 static inline void ___destructor__F_ R13s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1){133 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1) /* ^?{} */);134 } 135 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_ R13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){122 static inline void ___constructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1); 123 static inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1); 124 static inline void ___destructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1); 125 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1); 126 static inline void ___constructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1){ 127 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))) /* ?{} */); 128 } 129 static inline void ___constructor__F_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){ 130 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))=___src__13s__anonymous4_1.__i__i_1) /* ?{} */); 131 } 132 static inline void ___destructor__F_P13s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1){ 133 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))) /* ^?{} */); 134 } 135 static inline struct __anonymous4 ___operator_assign__F13s__anonymous4_P13s__anonymous413s__anonymous4_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, struct __anonymous4 ___src__13s__anonymous4_1){ 136 136 struct __anonymous4 ___ret__13s__anonymous4_1; 137 ((void)((*___dst__ R13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1));138 ((void)___constructor__F_ R13s__anonymous413s__anonymous4_autogen___1((&___ret__13s__anonymous4_1), ___src__13s__anonymous4_1));137 ((void)((*___dst__P13s__anonymous4_1).__i__i_1=___src__13s__anonymous4_1.__i__i_1)); 138 ((void)___constructor__F_P13s__anonymous413s__anonymous4_autogen___1((&___ret__13s__anonymous4_1), ___src__13s__anonymous4_1)); 139 139 return ((struct __anonymous4 )___ret__13s__anonymous4_1); 140 140 } 141 static inline void ___constructor__F_ R13s__anonymous4i_autogen___1(struct __anonymous4 *___dst__R13s__anonymous4_1, int __i__i_1){142 ((void)((* ___dst__R13s__anonymous4_1).__i__i_1=__i__i_1) /* ?{} */);141 static inline void ___constructor__F_P13s__anonymous4i_autogen___1(struct __anonymous4 *___dst__P13s__anonymous4_1, int __i__i_1){ 142 ((void)((*((int *)(&(*___dst__P13s__anonymous4_1).__i__i_1)))=__i__i_1) /* ?{} */); 143 143 } 144 144 static volatile const struct __anonymous4 __x14__CV13s__anonymous4_1; … … 146 146 int __i__i_1; 147 147 }; 148 static inline void ___constructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1);149 static inline void ___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1);150 static inline void ___destructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1);151 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1);152 static inline void ___constructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1){153 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1) /* ?{} */);154 } 155 static inline void ___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){156 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1) /* ?{} */);157 } 158 static inline void ___destructor__F_ R13s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1){159 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1) /* ^?{} */);160 } 161 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_ R13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){148 static inline void ___constructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1); 149 static inline void ___constructor__F_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1); 150 static inline void ___destructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1); 151 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1); 152 static inline void ___constructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1){ 153 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))) /* ?{} */); 154 } 155 static inline void ___constructor__F_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){ 156 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))=___src__13s__anonymous5_1.__i__i_1) /* ?{} */); 157 } 158 static inline void ___destructor__F_P13s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1){ 159 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))) /* ^?{} */); 160 } 161 static inline struct __anonymous5 ___operator_assign__F13s__anonymous5_P13s__anonymous513s__anonymous5_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, struct __anonymous5 ___src__13s__anonymous5_1){ 162 162 struct __anonymous5 ___ret__13s__anonymous5_1; 163 ((void)((*___dst__ R13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1));164 ((void)___constructor__F_ R13s__anonymous513s__anonymous5_autogen___1((&___ret__13s__anonymous5_1), ___src__13s__anonymous5_1));163 ((void)((*___dst__P13s__anonymous5_1).__i__i_1=___src__13s__anonymous5_1.__i__i_1)); 164 ((void)___constructor__F_P13s__anonymous513s__anonymous5_autogen___1((&___ret__13s__anonymous5_1), ___src__13s__anonymous5_1)); 165 165 return ((struct __anonymous5 )___ret__13s__anonymous5_1); 166 166 } 167 static inline void ___constructor__F_ R13s__anonymous5i_autogen___1(struct __anonymous5 *___dst__R13s__anonymous5_1, int __i__i_1){168 ((void)((* ___dst__R13s__anonymous5_1).__i__i_1=__i__i_1) /* ?{} */);167 static inline void ___constructor__F_P13s__anonymous5i_autogen___1(struct __anonymous5 *___dst__P13s__anonymous5_1, int __i__i_1){ 168 ((void)((*((int *)(&(*___dst__P13s__anonymous5_1).__i__i_1)))=__i__i_1) /* ?{} */); 169 169 } 170 170 static volatile const struct __anonymous5 __x15__CV13s__anonymous5_1; … … 172 172 int __i__i_1; 173 173 }; 174 static inline void ___constructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1);175 static inline void ___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1);176 static inline void ___destructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1);177 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1);178 static inline void ___constructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1){179 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1) /* ?{} */);180 } 181 static inline void ___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){182 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1) /* ?{} */);183 } 184 static inline void ___destructor__F_ R13s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1){185 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1) /* ^?{} */);186 } 187 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_ R13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){174 static inline void ___constructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1); 175 static inline void ___constructor__F_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1); 176 static inline void ___destructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1); 177 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1); 178 static inline void ___constructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1){ 179 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))) /* ?{} */); 180 } 181 static inline void ___constructor__F_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){ 182 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))=___src__13s__anonymous6_1.__i__i_1) /* ?{} */); 183 } 184 static inline void ___destructor__F_P13s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1){ 185 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))) /* ^?{} */); 186 } 187 static inline struct __anonymous6 ___operator_assign__F13s__anonymous6_P13s__anonymous613s__anonymous6_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, struct __anonymous6 ___src__13s__anonymous6_1){ 188 188 struct __anonymous6 ___ret__13s__anonymous6_1; 189 ((void)((*___dst__ R13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1));190 ((void)___constructor__F_ R13s__anonymous613s__anonymous6_autogen___1((&___ret__13s__anonymous6_1), ___src__13s__anonymous6_1));189 ((void)((*___dst__P13s__anonymous6_1).__i__i_1=___src__13s__anonymous6_1.__i__i_1)); 190 ((void)___constructor__F_P13s__anonymous613s__anonymous6_autogen___1((&___ret__13s__anonymous6_1), ___src__13s__anonymous6_1)); 191 191 return ((struct __anonymous6 )___ret__13s__anonymous6_1); 192 192 } 193 static inline void ___constructor__F_ R13s__anonymous6i_autogen___1(struct __anonymous6 *___dst__R13s__anonymous6_1, int __i__i_1){194 ((void)((* ___dst__R13s__anonymous6_1).__i__i_1=__i__i_1) /* ?{} */);193 static inline void ___constructor__F_P13s__anonymous6i_autogen___1(struct __anonymous6 *___dst__P13s__anonymous6_1, int __i__i_1){ 194 ((void)((*((int *)(&(*___dst__P13s__anonymous6_1).__i__i_1)))=__i__i_1) /* ?{} */); 195 195 } 196 196 static volatile const struct __anonymous6 __x16__CV13s__anonymous6_1; … … 198 198 int __i__i_1; 199 199 }; 200 static inline void ___constructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1);201 static inline void ___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1);202 static inline void ___destructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1);203 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1);204 static inline void ___constructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1){205 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1) /* ?{} */);206 } 207 static inline void ___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){208 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1) /* ?{} */);209 } 210 static inline void ___destructor__F_ R13s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1){211 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1) /* ^?{} */);212 } 213 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_ R13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){200 static inline void ___constructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1); 201 static inline void ___constructor__F_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1); 202 static inline void ___destructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1); 203 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1); 204 static inline void ___constructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1){ 205 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))) /* ?{} */); 206 } 207 static inline void ___constructor__F_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){ 208 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))=___src__13s__anonymous7_1.__i__i_1) /* ?{} */); 209 } 210 static inline void ___destructor__F_P13s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1){ 211 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))) /* ^?{} */); 212 } 213 static inline struct __anonymous7 ___operator_assign__F13s__anonymous7_P13s__anonymous713s__anonymous7_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, struct __anonymous7 ___src__13s__anonymous7_1){ 214 214 struct __anonymous7 ___ret__13s__anonymous7_1; 215 ((void)((*___dst__ R13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1));216 ((void)___constructor__F_ R13s__anonymous713s__anonymous7_autogen___1((&___ret__13s__anonymous7_1), ___src__13s__anonymous7_1));215 ((void)((*___dst__P13s__anonymous7_1).__i__i_1=___src__13s__anonymous7_1.__i__i_1)); 216 ((void)___constructor__F_P13s__anonymous713s__anonymous7_autogen___1((&___ret__13s__anonymous7_1), ___src__13s__anonymous7_1)); 217 217 return ((struct __anonymous7 )___ret__13s__anonymous7_1); 218 218 } 219 static inline void ___constructor__F_ R13s__anonymous7i_autogen___1(struct __anonymous7 *___dst__R13s__anonymous7_1, int __i__i_1){220 ((void)((* ___dst__R13s__anonymous7_1).__i__i_1=__i__i_1) /* ?{} */);219 static inline void ___constructor__F_P13s__anonymous7i_autogen___1(struct __anonymous7 *___dst__P13s__anonymous7_1, int __i__i_1){ 220 ((void)((*((int *)(&(*___dst__P13s__anonymous7_1).__i__i_1)))=__i__i_1) /* ?{} */); 221 221 } 222 222 static volatile const struct __anonymous7 __x17__CV13s__anonymous7_1; … … 232 232 short __i__s_1; 233 233 }; 234 static inline void ___constructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1);235 static inline void ___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1);236 static inline void ___destructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1);237 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1);238 static inline void ___constructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1){239 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1) /* ?{} */);240 } 241 static inline void ___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){242 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1) /* ?{} */);243 } 244 static inline void ___destructor__F_ R13s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1){245 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1) /* ^?{} */);246 } 247 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_ R13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){234 static inline void ___constructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1); 235 static inline void ___constructor__F_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1); 236 static inline void ___destructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1); 237 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1); 238 static inline void ___constructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1){ 239 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))) /* ?{} */); 240 } 241 static inline void ___constructor__F_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){ 242 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))=___src__13s__anonymous8_1.__i__s_1) /* ?{} */); 243 } 244 static inline void ___destructor__F_P13s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1){ 245 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))) /* ^?{} */); 246 } 247 static inline struct __anonymous8 ___operator_assign__F13s__anonymous8_P13s__anonymous813s__anonymous8_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, struct __anonymous8 ___src__13s__anonymous8_1){ 248 248 struct __anonymous8 ___ret__13s__anonymous8_1; 249 ((void)((*___dst__ R13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1));250 ((void)___constructor__F_ R13s__anonymous813s__anonymous8_autogen___1((&___ret__13s__anonymous8_1), ___src__13s__anonymous8_1));249 ((void)((*___dst__P13s__anonymous8_1).__i__s_1=___src__13s__anonymous8_1.__i__s_1)); 250 ((void)___constructor__F_P13s__anonymous813s__anonymous8_autogen___1((&___ret__13s__anonymous8_1), ___src__13s__anonymous8_1)); 251 251 return ((struct __anonymous8 )___ret__13s__anonymous8_1); 252 252 } 253 static inline void ___constructor__F_ R13s__anonymous8s_autogen___1(struct __anonymous8 *___dst__R13s__anonymous8_1, short __i__s_1){254 ((void)((* ___dst__R13s__anonymous8_1).__i__s_1=__i__s_1) /* ?{} */);253 static inline void ___constructor__F_P13s__anonymous8s_autogen___1(struct __anonymous8 *___dst__P13s__anonymous8_1, short __i__s_1){ 254 ((void)((*((short *)(&(*___dst__P13s__anonymous8_1).__i__s_1)))=__i__s_1) /* ?{} */); 255 255 } 256 256 volatile const struct __anonymous8 __x29__CV13s__anonymous8_1; … … 258 258 short __i__s_1; 259 259 }; 260 static inline void ___constructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1);261 static inline void ___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1);262 static inline void ___destructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1);263 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1);264 static inline void ___constructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1){265 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1) /* ?{} */);266 } 267 static inline void ___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){268 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1) /* ?{} */);269 } 270 static inline void ___destructor__F_ R13s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1){271 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1) /* ^?{} */);272 } 273 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_ R13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){260 static inline void ___constructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1); 261 static inline void ___constructor__F_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1); 262 static inline void ___destructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1); 263 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1); 264 static inline void ___constructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1){ 265 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))) /* ?{} */); 266 } 267 static inline void ___constructor__F_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){ 268 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))=___src__13s__anonymous9_1.__i__s_1) /* ?{} */); 269 } 270 static inline void ___destructor__F_P13s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1){ 271 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))) /* ^?{} */); 272 } 273 static inline struct __anonymous9 ___operator_assign__F13s__anonymous9_P13s__anonymous913s__anonymous9_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, struct __anonymous9 ___src__13s__anonymous9_1){ 274 274 struct __anonymous9 ___ret__13s__anonymous9_1; 275 ((void)((*___dst__ R13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1));276 ((void)___constructor__F_ R13s__anonymous913s__anonymous9_autogen___1((&___ret__13s__anonymous9_1), ___src__13s__anonymous9_1));275 ((void)((*___dst__P13s__anonymous9_1).__i__s_1=___src__13s__anonymous9_1.__i__s_1)); 276 ((void)___constructor__F_P13s__anonymous913s__anonymous9_autogen___1((&___ret__13s__anonymous9_1), ___src__13s__anonymous9_1)); 277 277 return ((struct __anonymous9 )___ret__13s__anonymous9_1); 278 278 } 279 static inline void ___constructor__F_ R13s__anonymous9s_autogen___1(struct __anonymous9 *___dst__R13s__anonymous9_1, short __i__s_1){280 ((void)((* ___dst__R13s__anonymous9_1).__i__s_1=__i__s_1) /* ?{} */);279 static inline void ___constructor__F_P13s__anonymous9s_autogen___1(struct __anonymous9 *___dst__P13s__anonymous9_1, short __i__s_1){ 280 ((void)((*((short *)(&(*___dst__P13s__anonymous9_1).__i__s_1)))=__i__s_1) /* ?{} */); 281 281 } 282 282 volatile const struct __anonymous9 __x30__CV13s__anonymous9_1; … … 284 284 short __i__s_1; 285 285 }; 286 static inline void ___constructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1);287 static inline void ___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1);288 static inline void ___destructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1);289 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1);290 static inline void ___constructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1){291 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1) /* ?{} */);292 } 293 static inline void ___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){294 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1) /* ?{} */);295 } 296 static inline void ___destructor__F_ R14s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1){297 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1) /* ^?{} */);298 } 299 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_ R14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){286 static inline void ___constructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1); 287 static inline void ___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1); 288 static inline void ___destructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1); 289 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1); 290 static inline void ___constructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1){ 291 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))) /* ?{} */); 292 } 293 static inline void ___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){ 294 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))=___src__14s__anonymous10_1.__i__s_1) /* ?{} */); 295 } 296 static inline void ___destructor__F_P14s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1){ 297 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))) /* ^?{} */); 298 } 299 static inline struct __anonymous10 ___operator_assign__F14s__anonymous10_P14s__anonymous1014s__anonymous10_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, struct __anonymous10 ___src__14s__anonymous10_1){ 300 300 struct __anonymous10 ___ret__14s__anonymous10_1; 301 ((void)((*___dst__ R14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1));302 ((void)___constructor__F_ R14s__anonymous1014s__anonymous10_autogen___1((&___ret__14s__anonymous10_1), ___src__14s__anonymous10_1));301 ((void)((*___dst__P14s__anonymous10_1).__i__s_1=___src__14s__anonymous10_1.__i__s_1)); 302 ((void)___constructor__F_P14s__anonymous1014s__anonymous10_autogen___1((&___ret__14s__anonymous10_1), ___src__14s__anonymous10_1)); 303 303 return ((struct __anonymous10 )___ret__14s__anonymous10_1); 304 304 } 305 static inline void ___constructor__F_ R14s__anonymous10s_autogen___1(struct __anonymous10 *___dst__R14s__anonymous10_1, short __i__s_1){306 ((void)((* ___dst__R14s__anonymous10_1).__i__s_1=__i__s_1) /* ?{} */);305 static inline void ___constructor__F_P14s__anonymous10s_autogen___1(struct __anonymous10 *___dst__P14s__anonymous10_1, short __i__s_1){ 306 ((void)((*((short *)(&(*___dst__P14s__anonymous10_1).__i__s_1)))=__i__s_1) /* ?{} */); 307 307 } 308 308 volatile const struct __anonymous10 __x31__CV14s__anonymous10_1; … … 310 310 short __i__s_1; 311 311 }; 312 static inline void ___constructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1);313 static inline void ___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1);314 static inline void ___destructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1);315 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1);316 static inline void ___constructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1){317 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1) /* ?{} */);318 } 319 static inline void ___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){320 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1) /* ?{} */);321 } 322 static inline void ___destructor__F_ R14s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1){323 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1) /* ^?{} */);324 } 325 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_ R14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){312 static inline void ___constructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1); 313 static inline void ___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1); 314 static inline void ___destructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1); 315 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1); 316 static inline void ___constructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1){ 317 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))) /* ?{} */); 318 } 319 static inline void ___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){ 320 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))=___src__14s__anonymous11_1.__i__s_1) /* ?{} */); 321 } 322 static inline void ___destructor__F_P14s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1){ 323 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))) /* ^?{} */); 324 } 325 static inline struct __anonymous11 ___operator_assign__F14s__anonymous11_P14s__anonymous1114s__anonymous11_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, struct __anonymous11 ___src__14s__anonymous11_1){ 326 326 struct __anonymous11 ___ret__14s__anonymous11_1; 327 ((void)((*___dst__ R14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1));328 ((void)___constructor__F_ R14s__anonymous1114s__anonymous11_autogen___1((&___ret__14s__anonymous11_1), ___src__14s__anonymous11_1));327 ((void)((*___dst__P14s__anonymous11_1).__i__s_1=___src__14s__anonymous11_1.__i__s_1)); 328 ((void)___constructor__F_P14s__anonymous1114s__anonymous11_autogen___1((&___ret__14s__anonymous11_1), ___src__14s__anonymous11_1)); 329 329 return ((struct __anonymous11 )___ret__14s__anonymous11_1); 330 330 } 331 static inline void ___constructor__F_ R14s__anonymous11s_autogen___1(struct __anonymous11 *___dst__R14s__anonymous11_1, short __i__s_1){332 ((void)((* ___dst__R14s__anonymous11_1).__i__s_1=__i__s_1) /* ?{} */);331 static inline void ___constructor__F_P14s__anonymous11s_autogen___1(struct __anonymous11 *___dst__P14s__anonymous11_1, short __i__s_1){ 332 ((void)((*((short *)(&(*___dst__P14s__anonymous11_1).__i__s_1)))=__i__s_1) /* ?{} */); 333 333 } 334 334 static volatile const struct __anonymous11 __x32__CV14s__anonymous11_1; … … 336 336 short __i__s_1; 337 337 }; 338 static inline void ___constructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1);339 static inline void ___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1);340 static inline void ___destructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1);341 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1);342 static inline void ___constructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1){343 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1) /* ?{} */);344 } 345 static inline void ___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){346 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1) /* ?{} */);347 } 348 static inline void ___destructor__F_ R14s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1){349 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1) /* ^?{} */);350 } 351 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_ R14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){338 static inline void ___constructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1); 339 static inline void ___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1); 340 static inline void ___destructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1); 341 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1); 342 static inline void ___constructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1){ 343 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))) /* ?{} */); 344 } 345 static inline void ___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){ 346 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))=___src__14s__anonymous12_1.__i__s_1) /* ?{} */); 347 } 348 static inline void ___destructor__F_P14s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1){ 349 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))) /* ^?{} */); 350 } 351 static inline struct __anonymous12 ___operator_assign__F14s__anonymous12_P14s__anonymous1214s__anonymous12_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, struct __anonymous12 ___src__14s__anonymous12_1){ 352 352 struct __anonymous12 ___ret__14s__anonymous12_1; 353 ((void)((*___dst__ R14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1));354 ((void)___constructor__F_ R14s__anonymous1214s__anonymous12_autogen___1((&___ret__14s__anonymous12_1), ___src__14s__anonymous12_1));353 ((void)((*___dst__P14s__anonymous12_1).__i__s_1=___src__14s__anonymous12_1.__i__s_1)); 354 ((void)___constructor__F_P14s__anonymous1214s__anonymous12_autogen___1((&___ret__14s__anonymous12_1), ___src__14s__anonymous12_1)); 355 355 return ((struct __anonymous12 )___ret__14s__anonymous12_1); 356 356 } 357 static inline void ___constructor__F_ R14s__anonymous12s_autogen___1(struct __anonymous12 *___dst__R14s__anonymous12_1, short __i__s_1){358 ((void)((* ___dst__R14s__anonymous12_1).__i__s_1=__i__s_1) /* ?{} */);357 static inline void ___constructor__F_P14s__anonymous12s_autogen___1(struct __anonymous12 *___dst__P14s__anonymous12_1, short __i__s_1){ 358 ((void)((*((short *)(&(*___dst__P14s__anonymous12_1).__i__s_1)))=__i__s_1) /* ?{} */); 359 359 } 360 360 static volatile const struct __anonymous12 __x33__CV14s__anonymous12_1; … … 362 362 short __i__s_1; 363 363 }; 364 static inline void ___constructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1);365 static inline void ___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1);366 static inline void ___destructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1);367 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1);368 static inline void ___constructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1){369 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1) /* ?{} */);370 } 371 static inline void ___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){372 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1) /* ?{} */);373 } 374 static inline void ___destructor__F_ R14s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1){375 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1) /* ^?{} */);376 } 377 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_ R14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){364 static inline void ___constructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1); 365 static inline void ___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1); 366 static inline void ___destructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1); 367 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1); 368 static inline void ___constructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1){ 369 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))) /* ?{} */); 370 } 371 static inline void ___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){ 372 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))=___src__14s__anonymous13_1.__i__s_1) /* ?{} */); 373 } 374 static inline void ___destructor__F_P14s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1){ 375 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))) /* ^?{} */); 376 } 377 static inline struct __anonymous13 ___operator_assign__F14s__anonymous13_P14s__anonymous1314s__anonymous13_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, struct __anonymous13 ___src__14s__anonymous13_1){ 378 378 struct __anonymous13 ___ret__14s__anonymous13_1; 379 ((void)((*___dst__ R14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1));380 ((void)___constructor__F_ R14s__anonymous1314s__anonymous13_autogen___1((&___ret__14s__anonymous13_1), ___src__14s__anonymous13_1));379 ((void)((*___dst__P14s__anonymous13_1).__i__s_1=___src__14s__anonymous13_1.__i__s_1)); 380 ((void)___constructor__F_P14s__anonymous1314s__anonymous13_autogen___1((&___ret__14s__anonymous13_1), ___src__14s__anonymous13_1)); 381 381 return ((struct __anonymous13 )___ret__14s__anonymous13_1); 382 382 } 383 static inline void ___constructor__F_ R14s__anonymous13s_autogen___1(struct __anonymous13 *___dst__R14s__anonymous13_1, short __i__s_1){384 ((void)((* ___dst__R14s__anonymous13_1).__i__s_1=__i__s_1) /* ?{} */);383 static inline void ___constructor__F_P14s__anonymous13s_autogen___1(struct __anonymous13 *___dst__P14s__anonymous13_1, short __i__s_1){ 384 ((void)((*((short *)(&(*___dst__P14s__anonymous13_1).__i__s_1)))=__i__s_1) /* ?{} */); 385 385 } 386 386 static volatile const struct __anonymous13 __x34__CV14s__anonymous13_1; … … 388 388 short __i__s_1; 389 389 }; 390 static inline void ___constructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1);391 static inline void ___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1);392 static inline void ___destructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1);393 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1);394 static inline void ___constructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1){395 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1) /* ?{} */);396 } 397 static inline void ___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){398 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1) /* ?{} */);399 } 400 static inline void ___destructor__F_ R14s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1){401 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1) /* ^?{} */);402 } 403 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_ R14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){390 static inline void ___constructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1); 391 static inline void ___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1); 392 static inline void ___destructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1); 393 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1); 394 static inline void ___constructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1){ 395 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))) /* ?{} */); 396 } 397 static inline void ___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){ 398 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))=___src__14s__anonymous14_1.__i__s_1) /* ?{} */); 399 } 400 static inline void ___destructor__F_P14s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1){ 401 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))) /* ^?{} */); 402 } 403 static inline struct __anonymous14 ___operator_assign__F14s__anonymous14_P14s__anonymous1414s__anonymous14_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, struct __anonymous14 ___src__14s__anonymous14_1){ 404 404 struct __anonymous14 ___ret__14s__anonymous14_1; 405 ((void)((*___dst__ R14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1));406 ((void)___constructor__F_ R14s__anonymous1414s__anonymous14_autogen___1((&___ret__14s__anonymous14_1), ___src__14s__anonymous14_1));405 ((void)((*___dst__P14s__anonymous14_1).__i__s_1=___src__14s__anonymous14_1.__i__s_1)); 406 ((void)___constructor__F_P14s__anonymous1414s__anonymous14_autogen___1((&___ret__14s__anonymous14_1), ___src__14s__anonymous14_1)); 407 407 return ((struct __anonymous14 )___ret__14s__anonymous14_1); 408 408 } 409 static inline void ___constructor__F_ R14s__anonymous14s_autogen___1(struct __anonymous14 *___dst__R14s__anonymous14_1, short __i__s_1){410 ((void)((* ___dst__R14s__anonymous14_1).__i__s_1=__i__s_1) /* ?{} */);409 static inline void ___constructor__F_P14s__anonymous14s_autogen___1(struct __anonymous14 *___dst__P14s__anonymous14_1, short __i__s_1){ 410 ((void)((*((short *)(&(*___dst__P14s__anonymous14_1).__i__s_1)))=__i__s_1) /* ?{} */); 411 411 } 412 412 static volatile const struct __anonymous14 __x35__CV14s__anonymous14_1; … … 414 414 short __i__s_1; 415 415 }; 416 static inline void ___constructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1);417 static inline void ___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1);418 static inline void ___destructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1);419 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1);420 static inline void ___constructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1){421 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1) /* ?{} */);422 } 423 static inline void ___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){424 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1) /* ?{} */);425 } 426 static inline void ___destructor__F_ R14s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1){427 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1) /* ^?{} */);428 } 429 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_ R14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){416 static inline void ___constructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1); 417 static inline void ___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1); 418 static inline void ___destructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1); 419 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1); 420 static inline void ___constructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1){ 421 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))) /* ?{} */); 422 } 423 static inline void ___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){ 424 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))=___src__14s__anonymous15_1.__i__s_1) /* ?{} */); 425 } 426 static inline void ___destructor__F_P14s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1){ 427 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))) /* ^?{} */); 428 } 429 static inline struct __anonymous15 ___operator_assign__F14s__anonymous15_P14s__anonymous1514s__anonymous15_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, struct __anonymous15 ___src__14s__anonymous15_1){ 430 430 struct __anonymous15 ___ret__14s__anonymous15_1; 431 ((void)((*___dst__ R14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1));432 ((void)___constructor__F_ R14s__anonymous1514s__anonymous15_autogen___1((&___ret__14s__anonymous15_1), ___src__14s__anonymous15_1));431 ((void)((*___dst__P14s__anonymous15_1).__i__s_1=___src__14s__anonymous15_1.__i__s_1)); 432 ((void)___constructor__F_P14s__anonymous1514s__anonymous15_autogen___1((&___ret__14s__anonymous15_1), ___src__14s__anonymous15_1)); 433 433 return ((struct __anonymous15 )___ret__14s__anonymous15_1); 434 434 } 435 static inline void ___constructor__F_ R14s__anonymous15s_autogen___1(struct __anonymous15 *___dst__R14s__anonymous15_1, short __i__s_1){436 ((void)((* ___dst__R14s__anonymous15_1).__i__s_1=__i__s_1) /* ?{} */);435 static inline void ___constructor__F_P14s__anonymous15s_autogen___1(struct __anonymous15 *___dst__P14s__anonymous15_1, short __i__s_1){ 436 ((void)((*((short *)(&(*___dst__P14s__anonymous15_1).__i__s_1)))=__i__s_1) /* ?{} */); 437 437 } 438 438 static volatile const struct __anonymous15 __x36__CV14s__anonymous15_1; … … 456 456 int __i__i_1; 457 457 }; 458 static inline void ___constructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1);459 static inline void ___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1);460 static inline void ___destructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1);461 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1);462 static inline void ___constructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1){463 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1) /* ?{} */);464 } 465 static inline void ___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){466 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1) /* ?{} */);467 } 468 static inline void ___destructor__F_ R14s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1){469 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1) /* ^?{} */);470 } 471 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_ R14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){458 static inline void ___constructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1); 459 static inline void ___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1); 460 static inline void ___destructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1); 461 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1); 462 static inline void ___constructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1){ 463 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))) /* ?{} */); 464 } 465 static inline void ___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){ 466 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))=___src__14s__anonymous16_1.__i__i_1) /* ?{} */); 467 } 468 static inline void ___destructor__F_P14s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1){ 469 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))) /* ^?{} */); 470 } 471 static inline struct __anonymous16 ___operator_assign__F14s__anonymous16_P14s__anonymous1614s__anonymous16_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, struct __anonymous16 ___src__14s__anonymous16_1){ 472 472 struct __anonymous16 ___ret__14s__anonymous16_1; 473 ((void)((*___dst__ R14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1));474 ((void)___constructor__F_ R14s__anonymous1614s__anonymous16_autogen___1((&___ret__14s__anonymous16_1), ___src__14s__anonymous16_1));473 ((void)((*___dst__P14s__anonymous16_1).__i__i_1=___src__14s__anonymous16_1.__i__i_1)); 474 ((void)___constructor__F_P14s__anonymous1614s__anonymous16_autogen___1((&___ret__14s__anonymous16_1), ___src__14s__anonymous16_1)); 475 475 return ((struct __anonymous16 )___ret__14s__anonymous16_1); 476 476 } 477 static inline void ___constructor__F_ R14s__anonymous16i_autogen___1(struct __anonymous16 *___dst__R14s__anonymous16_1, int __i__i_1){478 ((void)((* ___dst__R14s__anonymous16_1).__i__i_1=__i__i_1) /* ?{} */);477 static inline void ___constructor__F_P14s__anonymous16i_autogen___1(struct __anonymous16 *___dst__P14s__anonymous16_1, int __i__i_1){ 478 ((void)((*((int *)(&(*___dst__P14s__anonymous16_1).__i__i_1)))=__i__i_1) /* ?{} */); 479 479 } 480 480 static inline volatile const struct __anonymous16 __f31__FCV14s__anonymous16___1(); … … 482 482 int __i__i_1; 483 483 }; 484 static inline void ___constructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1);485 static inline void ___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1);486 static inline void ___destructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1);487 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1);488 static inline void ___constructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1){489 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1) /* ?{} */);490 } 491 static inline void ___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){492 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1) /* ?{} */);493 } 494 static inline void ___destructor__F_ R14s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1){495 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1) /* ^?{} */);496 } 497 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_ R14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){484 static inline void ___constructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1); 485 static inline void ___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1); 486 static inline void ___destructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1); 487 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1); 488 static inline void ___constructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1){ 489 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))) /* ?{} */); 490 } 491 static inline void ___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){ 492 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))=___src__14s__anonymous17_1.__i__i_1) /* ?{} */); 493 } 494 static inline void ___destructor__F_P14s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1){ 495 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))) /* ^?{} */); 496 } 497 static inline struct __anonymous17 ___operator_assign__F14s__anonymous17_P14s__anonymous1714s__anonymous17_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, struct __anonymous17 ___src__14s__anonymous17_1){ 498 498 struct __anonymous17 ___ret__14s__anonymous17_1; 499 ((void)((*___dst__ R14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1));500 ((void)___constructor__F_ R14s__anonymous1714s__anonymous17_autogen___1((&___ret__14s__anonymous17_1), ___src__14s__anonymous17_1));499 ((void)((*___dst__P14s__anonymous17_1).__i__i_1=___src__14s__anonymous17_1.__i__i_1)); 500 ((void)___constructor__F_P14s__anonymous1714s__anonymous17_autogen___1((&___ret__14s__anonymous17_1), ___src__14s__anonymous17_1)); 501 501 return ((struct __anonymous17 )___ret__14s__anonymous17_1); 502 502 } 503 static inline void ___constructor__F_ R14s__anonymous17i_autogen___1(struct __anonymous17 *___dst__R14s__anonymous17_1, int __i__i_1){504 ((void)((* ___dst__R14s__anonymous17_1).__i__i_1=__i__i_1) /* ?{} */);503 static inline void ___constructor__F_P14s__anonymous17i_autogen___1(struct __anonymous17 *___dst__P14s__anonymous17_1, int __i__i_1){ 504 ((void)((*((int *)(&(*___dst__P14s__anonymous17_1).__i__i_1)))=__i__i_1) /* ?{} */); 505 505 } 506 506 static inline volatile const struct __anonymous17 __f32__FCV14s__anonymous17___1(); … … 508 508 int __i__i_1; 509 509 }; 510 static inline void ___constructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1);511 static inline void ___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1);512 static inline void ___destructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1);513 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1);514 static inline void ___constructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1){515 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1) /* ?{} */);516 } 517 static inline void ___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){518 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1) /* ?{} */);519 } 520 static inline void ___destructor__F_ R14s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1){521 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1) /* ^?{} */);522 } 523 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_ R14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){510 static inline void ___constructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1); 511 static inline void ___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1); 512 static inline void ___destructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1); 513 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1); 514 static inline void ___constructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1){ 515 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))) /* ?{} */); 516 } 517 static inline void ___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){ 518 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))=___src__14s__anonymous18_1.__i__i_1) /* ?{} */); 519 } 520 static inline void ___destructor__F_P14s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1){ 521 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))) /* ^?{} */); 522 } 523 static inline struct __anonymous18 ___operator_assign__F14s__anonymous18_P14s__anonymous1814s__anonymous18_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, struct __anonymous18 ___src__14s__anonymous18_1){ 524 524 struct __anonymous18 ___ret__14s__anonymous18_1; 525 ((void)((*___dst__ R14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1));526 ((void)___constructor__F_ R14s__anonymous1814s__anonymous18_autogen___1((&___ret__14s__anonymous18_1), ___src__14s__anonymous18_1));525 ((void)((*___dst__P14s__anonymous18_1).__i__i_1=___src__14s__anonymous18_1.__i__i_1)); 526 ((void)___constructor__F_P14s__anonymous1814s__anonymous18_autogen___1((&___ret__14s__anonymous18_1), ___src__14s__anonymous18_1)); 527 527 return ((struct __anonymous18 )___ret__14s__anonymous18_1); 528 528 } 529 static inline void ___constructor__F_ R14s__anonymous18i_autogen___1(struct __anonymous18 *___dst__R14s__anonymous18_1, int __i__i_1){530 ((void)((* ___dst__R14s__anonymous18_1).__i__i_1=__i__i_1) /* ?{} */);529 static inline void ___constructor__F_P14s__anonymous18i_autogen___1(struct __anonymous18 *___dst__P14s__anonymous18_1, int __i__i_1){ 530 ((void)((*((int *)(&(*___dst__P14s__anonymous18_1).__i__i_1)))=__i__i_1) /* ?{} */); 531 531 } 532 532 static inline volatile const struct __anonymous18 __f33__FCV14s__anonymous18___1(); … … 534 534 int __i__i_1; 535 535 }; 536 static inline void ___constructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1);537 static inline void ___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1);538 static inline void ___destructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1);539 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1);540 static inline void ___constructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1){541 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1) /* ?{} */);542 } 543 static inline void ___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){544 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1) /* ?{} */);545 } 546 static inline void ___destructor__F_ R14s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1){547 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1) /* ^?{} */);548 } 549 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_ R14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){536 static inline void ___constructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1); 537 static inline void ___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1); 538 static inline void ___destructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1); 539 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1); 540 static inline void ___constructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1){ 541 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))) /* ?{} */); 542 } 543 static inline void ___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){ 544 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))=___src__14s__anonymous19_1.__i__i_1) /* ?{} */); 545 } 546 static inline void ___destructor__F_P14s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1){ 547 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))) /* ^?{} */); 548 } 549 static inline struct __anonymous19 ___operator_assign__F14s__anonymous19_P14s__anonymous1914s__anonymous19_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, struct __anonymous19 ___src__14s__anonymous19_1){ 550 550 struct __anonymous19 ___ret__14s__anonymous19_1; 551 ((void)((*___dst__ R14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1));552 ((void)___constructor__F_ R14s__anonymous1914s__anonymous19_autogen___1((&___ret__14s__anonymous19_1), ___src__14s__anonymous19_1));551 ((void)((*___dst__P14s__anonymous19_1).__i__i_1=___src__14s__anonymous19_1.__i__i_1)); 552 ((void)___constructor__F_P14s__anonymous1914s__anonymous19_autogen___1((&___ret__14s__anonymous19_1), ___src__14s__anonymous19_1)); 553 553 return ((struct __anonymous19 )___ret__14s__anonymous19_1); 554 554 } 555 static inline void ___constructor__F_ R14s__anonymous19i_autogen___1(struct __anonymous19 *___dst__R14s__anonymous19_1, int __i__i_1){556 ((void)((* ___dst__R14s__anonymous19_1).__i__i_1=__i__i_1) /* ?{} */);555 static inline void ___constructor__F_P14s__anonymous19i_autogen___1(struct __anonymous19 *___dst__P14s__anonymous19_1, int __i__i_1){ 556 ((void)((*((int *)(&(*___dst__P14s__anonymous19_1).__i__i_1)))=__i__i_1) /* ?{} */); 557 557 } 558 558 static inline volatile const struct __anonymous19 __f34__FCV14s__anonymous19___1(); … … 560 560 int __i__i_1; 561 561 }; 562 static inline void ___constructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1);563 static inline void ___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1);564 static inline void ___destructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1);565 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1);566 static inline void ___constructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1){567 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1) /* ?{} */);568 } 569 static inline void ___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){570 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1) /* ?{} */);571 } 572 static inline void ___destructor__F_ R14s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1){573 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1) /* ^?{} */);574 } 575 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_ R14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){562 static inline void ___constructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1); 563 static inline void ___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1); 564 static inline void ___destructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1); 565 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1); 566 static inline void ___constructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1){ 567 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))) /* ?{} */); 568 } 569 static inline void ___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){ 570 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))=___src__14s__anonymous20_1.__i__i_1) /* ?{} */); 571 } 572 static inline void ___destructor__F_P14s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1){ 573 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))) /* ^?{} */); 574 } 575 static inline struct __anonymous20 ___operator_assign__F14s__anonymous20_P14s__anonymous2014s__anonymous20_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, struct __anonymous20 ___src__14s__anonymous20_1){ 576 576 struct __anonymous20 ___ret__14s__anonymous20_1; 577 ((void)((*___dst__ R14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1));578 ((void)___constructor__F_ R14s__anonymous2014s__anonymous20_autogen___1((&___ret__14s__anonymous20_1), ___src__14s__anonymous20_1));577 ((void)((*___dst__P14s__anonymous20_1).__i__i_1=___src__14s__anonymous20_1.__i__i_1)); 578 ((void)___constructor__F_P14s__anonymous2014s__anonymous20_autogen___1((&___ret__14s__anonymous20_1), ___src__14s__anonymous20_1)); 579 579 return ((struct __anonymous20 )___ret__14s__anonymous20_1); 580 580 } 581 static inline void ___constructor__F_ R14s__anonymous20i_autogen___1(struct __anonymous20 *___dst__R14s__anonymous20_1, int __i__i_1){582 ((void)((* ___dst__R14s__anonymous20_1).__i__i_1=__i__i_1) /* ?{} */);581 static inline void ___constructor__F_P14s__anonymous20i_autogen___1(struct __anonymous20 *___dst__P14s__anonymous20_1, int __i__i_1){ 582 ((void)((*((int *)(&(*___dst__P14s__anonymous20_1).__i__i_1)))=__i__i_1) /* ?{} */); 583 583 } 584 584 static inline volatile const struct __anonymous20 __f35__FCV14s__anonymous20___1(); … … 586 586 int __i__i_1; 587 587 }; 588 static inline void ___constructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1);589 static inline void ___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1);590 static inline void ___destructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1);591 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1);592 static inline void ___constructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1){593 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1) /* ?{} */);594 } 595 static inline void ___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){596 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1) /* ?{} */);597 } 598 static inline void ___destructor__F_ R14s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1){599 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1) /* ^?{} */);600 } 601 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_ R14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){588 static inline void ___constructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1); 589 static inline void ___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1); 590 static inline void ___destructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1); 591 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1); 592 static inline void ___constructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1){ 593 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))) /* ?{} */); 594 } 595 static inline void ___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){ 596 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))=___src__14s__anonymous21_1.__i__i_1) /* ?{} */); 597 } 598 static inline void ___destructor__F_P14s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1){ 599 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))) /* ^?{} */); 600 } 601 static inline struct __anonymous21 ___operator_assign__F14s__anonymous21_P14s__anonymous2114s__anonymous21_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, struct __anonymous21 ___src__14s__anonymous21_1){ 602 602 struct __anonymous21 ___ret__14s__anonymous21_1; 603 ((void)((*___dst__ R14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1));604 ((void)___constructor__F_ R14s__anonymous2114s__anonymous21_autogen___1((&___ret__14s__anonymous21_1), ___src__14s__anonymous21_1));603 ((void)((*___dst__P14s__anonymous21_1).__i__i_1=___src__14s__anonymous21_1.__i__i_1)); 604 ((void)___constructor__F_P14s__anonymous2114s__anonymous21_autogen___1((&___ret__14s__anonymous21_1), ___src__14s__anonymous21_1)); 605 605 return ((struct __anonymous21 )___ret__14s__anonymous21_1); 606 606 } 607 static inline void ___constructor__F_ R14s__anonymous21i_autogen___1(struct __anonymous21 *___dst__R14s__anonymous21_1, int __i__i_1){608 ((void)((* ___dst__R14s__anonymous21_1).__i__i_1=__i__i_1) /* ?{} */);607 static inline void ___constructor__F_P14s__anonymous21i_autogen___1(struct __anonymous21 *___dst__P14s__anonymous21_1, int __i__i_1){ 608 ((void)((*((int *)(&(*___dst__P14s__anonymous21_1).__i__i_1)))=__i__i_1) /* ?{} */); 609 609 } 610 610 static inline volatile const struct __anonymous21 __f36__FCV14s__anonymous21___1(); … … 612 612 int __i__i_1; 613 613 }; 614 static inline void ___constructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1);615 static inline void ___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1);616 static inline void ___destructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1);617 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1);618 static inline void ___constructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1){619 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1) /* ?{} */);620 } 621 static inline void ___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){622 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1) /* ?{} */);623 } 624 static inline void ___destructor__F_ R14s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1){625 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1) /* ^?{} */);626 } 627 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_ R14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){614 static inline void ___constructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1); 615 static inline void ___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1); 616 static inline void ___destructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1); 617 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1); 618 static inline void ___constructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1){ 619 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))) /* ?{} */); 620 } 621 static inline void ___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){ 622 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))=___src__14s__anonymous22_1.__i__i_1) /* ?{} */); 623 } 624 static inline void ___destructor__F_P14s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1){ 625 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))) /* ^?{} */); 626 } 627 static inline struct __anonymous22 ___operator_assign__F14s__anonymous22_P14s__anonymous2214s__anonymous22_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, struct __anonymous22 ___src__14s__anonymous22_1){ 628 628 struct __anonymous22 ___ret__14s__anonymous22_1; 629 ((void)((*___dst__ R14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1));630 ((void)___constructor__F_ R14s__anonymous2214s__anonymous22_autogen___1((&___ret__14s__anonymous22_1), ___src__14s__anonymous22_1));629 ((void)((*___dst__P14s__anonymous22_1).__i__i_1=___src__14s__anonymous22_1.__i__i_1)); 630 ((void)___constructor__F_P14s__anonymous2214s__anonymous22_autogen___1((&___ret__14s__anonymous22_1), ___src__14s__anonymous22_1)); 631 631 return ((struct __anonymous22 )___ret__14s__anonymous22_1); 632 632 } 633 static inline void ___constructor__F_ R14s__anonymous22i_autogen___1(struct __anonymous22 *___dst__R14s__anonymous22_1, int __i__i_1){634 ((void)((* ___dst__R14s__anonymous22_1).__i__i_1=__i__i_1) /* ?{} */);633 static inline void ___constructor__F_P14s__anonymous22i_autogen___1(struct __anonymous22 *___dst__P14s__anonymous22_1, int __i__i_1){ 634 ((void)((*((int *)(&(*___dst__P14s__anonymous22_1).__i__i_1)))=__i__i_1) /* ?{} */); 635 635 } 636 636 static inline volatile const struct __anonymous22 __f37__FCV14s__anonymous22___1(); … … 638 638 int __i__i_1; 639 639 }; 640 static inline void ___constructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1);641 static inline void ___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1);642 static inline void ___destructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1);643 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1);644 static inline void ___constructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1){645 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1) /* ?{} */);646 } 647 static inline void ___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){648 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1) /* ?{} */);649 } 650 static inline void ___destructor__F_ R14s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1){651 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1) /* ^?{} */);652 } 653 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_ R14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){640 static inline void ___constructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1); 641 static inline void ___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1); 642 static inline void ___destructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1); 643 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1); 644 static inline void ___constructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1){ 645 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))) /* ?{} */); 646 } 647 static inline void ___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){ 648 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))=___src__14s__anonymous23_1.__i__i_1) /* ?{} */); 649 } 650 static inline void ___destructor__F_P14s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1){ 651 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))) /* ^?{} */); 652 } 653 static inline struct __anonymous23 ___operator_assign__F14s__anonymous23_P14s__anonymous2314s__anonymous23_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, struct __anonymous23 ___src__14s__anonymous23_1){ 654 654 struct __anonymous23 ___ret__14s__anonymous23_1; 655 ((void)((*___dst__ R14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1));656 ((void)___constructor__F_ R14s__anonymous2314s__anonymous23_autogen___1((&___ret__14s__anonymous23_1), ___src__14s__anonymous23_1));655 ((void)((*___dst__P14s__anonymous23_1).__i__i_1=___src__14s__anonymous23_1.__i__i_1)); 656 ((void)___constructor__F_P14s__anonymous2314s__anonymous23_autogen___1((&___ret__14s__anonymous23_1), ___src__14s__anonymous23_1)); 657 657 return ((struct __anonymous23 )___ret__14s__anonymous23_1); 658 658 } 659 static inline void ___constructor__F_ R14s__anonymous23i_autogen___1(struct __anonymous23 *___dst__R14s__anonymous23_1, int __i__i_1){660 ((void)((* ___dst__R14s__anonymous23_1).__i__i_1=__i__i_1) /* ?{} */);659 static inline void ___constructor__F_P14s__anonymous23i_autogen___1(struct __anonymous23 *___dst__P14s__anonymous23_1, int __i__i_1){ 660 ((void)((*((int *)(&(*___dst__P14s__anonymous23_1).__i__i_1)))=__i__i_1) /* ?{} */); 661 661 } 662 662 static inline volatile const struct __anonymous23 __f38__FCV14s__anonymous23___1(); … … 687 687 __attribute__ ((unused)) int ___retval_main__i_1; 688 688 int _tmp_cp_ret0; 689 ((void)(___retval_main__i_1=(( (void)(_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1))) , _tmp_cp_ret0)) /* ?{} */);690 ((void)( _tmp_cp_ret0) /* ^?{} */);689 ((void)(___retval_main__i_1=((_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1)) , _tmp_cp_ret0)) /* ?{} */); 690 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 691 691 return ((int )___retval_main__i_1); 692 692 } -
src/tests/.expect/64/extension.txt
r28e58fd raf08051 13 13 __extension__ int __c__i_1; 14 14 }; 15 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);16 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);17 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1);18 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1);19 static inline void ___constructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){20 ((void)((* ___dst__R2sS_1).__a__i_1) /* ?{} */);21 ((void)((* ___dst__R2sS_1).__b__i_1) /* ?{} */);22 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);15 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 16 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 17 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1); 18 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1); 19 static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 20 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ?{} */); 21 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */); 22 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 23 23 } 24 static inline void ___constructor__F_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){25 ((void)((* ___dst__R2sS_1).__a__i_1=___src__2sS_1.__a__i_1) /* ?{} */);26 ((void)((* ___dst__R2sS_1).__b__i_1=___src__2sS_1.__b__i_1) /* ?{} */);27 ((void)((* ___dst__R2sS_1).__c__i_1=___src__2sS_1.__c__i_1) /* ?{} */);24 static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 25 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=___src__2sS_1.__a__i_1) /* ?{} */); 26 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=___src__2sS_1.__b__i_1) /* ?{} */); 27 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=___src__2sS_1.__c__i_1) /* ?{} */); 28 28 } 29 static inline void ___destructor__F_ R2sS_autogen___1(struct S *___dst__R2sS_1){30 ((void)((* ___dst__R2sS_1).__c__i_1) /* ^?{} */);31 ((void)((* ___dst__R2sS_1).__b__i_1) /* ^?{} */);32 ((void)((* ___dst__R2sS_1).__a__i_1) /* ^?{} */);29 static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){ 30 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ^?{} */); 31 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ^?{} */); 32 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ^?{} */); 33 33 } 34 static inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___1(struct S *___dst__R2sS_1, struct S ___src__2sS_1){34 static inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){ 35 35 struct S ___ret__2sS_1; 36 ((void)((*___dst__ R2sS_1).__a__i_1=___src__2sS_1.__a__i_1));37 ((void)((*___dst__ R2sS_1).__b__i_1=___src__2sS_1.__b__i_1));38 ((void)((*___dst__ R2sS_1).__c__i_1=___src__2sS_1.__c__i_1));39 ((void)___constructor__F_ R2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1));36 ((void)((*___dst__P2sS_1).__a__i_1=___src__2sS_1.__a__i_1)); 37 ((void)((*___dst__P2sS_1).__b__i_1=___src__2sS_1.__b__i_1)); 38 ((void)((*___dst__P2sS_1).__c__i_1=___src__2sS_1.__c__i_1)); 39 ((void)___constructor__F_P2sS2sS_autogen___1((&___ret__2sS_1), ___src__2sS_1)); 40 40 return ((struct S )___ret__2sS_1); 41 41 } 42 static inline void ___constructor__F_ R2sSi_autogen___1(struct S *___dst__R2sS_1, int __a__i_1){43 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);44 ((void)((* ___dst__R2sS_1).__b__i_1) /* ?{} */);45 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);42 static inline void ___constructor__F_P2sSi_autogen___1(struct S *___dst__P2sS_1, int __a__i_1){ 43 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 44 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */); 45 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 46 46 } 47 static inline void ___constructor__F_ R2sSii_autogen___1(struct S *___dst__R2sS_1, int __a__i_1, int __b__i_1){48 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);49 ((void)((* ___dst__R2sS_1).__b__i_1=__b__i_1) /* ?{} */);50 ((void)((* ___dst__R2sS_1).__c__i_1) /* ?{} */);47 static inline void ___constructor__F_P2sSii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1){ 48 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 49 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */); 50 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */); 51 51 } 52 static inline void ___constructor__F_ R2sSiii_autogen___1(struct S *___dst__R2sS_1, int __a__i_1, int __b__i_1, int __c__i_1){53 ((void)((* ___dst__R2sS_1).__a__i_1=__a__i_1) /* ?{} */);54 ((void)((* ___dst__R2sS_1).__b__i_1=__b__i_1) /* ?{} */);55 ((void)((* ___dst__R2sS_1).__c__i_1=__c__i_1) /* ?{} */);52 static inline void ___constructor__F_P2sSiii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1, int __c__i_1){ 53 ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */); 54 ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */); 55 ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=__c__i_1) /* ?{} */); 56 56 } 57 57 __extension__ union U { … … 60 60 __extension__ int __c__i_1; 61 61 }; 62 static inline void ___constructor__F_ R2uU_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1){62 static inline void ___constructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){ 63 63 } 64 static inline void ___constructor__F_ R2uU2uU_autogen___1(union U *___dst__R2uU_1, union U ___src__2uU_1){65 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U )));64 static inline void ___constructor__F_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 65 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 66 66 } 67 static inline void ___destructor__F_ R2uU_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1){67 static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){ 68 68 } 69 static inline union U ___operator_assign__F2uU_ R2uU2uU_autogen___1(union U *___dst__R2uU_1, union U ___src__2uU_1){69 static inline union U ___operator_assign__F2uU_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 70 70 union U ___ret__2uU_1; 71 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U )));72 ((void)___constructor__F_ R2uU2uU_autogen___1((&___ret__2uU_1), ___src__2uU_1));71 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 72 ((void)___constructor__F_P2uU2uU_autogen___1((&___ret__2uU_1), ___src__2uU_1)); 73 73 return ((union U )___ret__2uU_1); 74 74 } 75 static inline void ___constructor__F_ R2uUi_autogen___1(__attribute__ ((unused)) union U *___dst__R2uU_1, int __src__i_1){76 ((void)__builtin_memcpy(((void *)___dst__ R2uU_1), ((const void *)(&__src__i_1)), sizeof(int )));75 static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){ 76 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))); 77 77 } 78 78 __extension__ enum E { … … 102 102 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 103 103 int _tmp_cp_ret0; 104 ((void)(( (void)(_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3))) , _tmp_cp_ret0));105 ((void)( _tmp_cp_ret0) /* ^?{} */);104 ((void)((_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret0)); 105 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 106 106 __extension__ int __mary__Fi_i__2(int __p__i_2){ 107 107 __attribute__ ((unused)) int ___retval_mary__i_2; … … 113 113 ((void)(((int )((__extension__ __a__i_2>__extension__ __b__i_2)!=((int )0))) ? __extension__ __c__i_2 : __extension__ __c__i_2)); 114 114 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); 115 ((void)(( (void)(((void)__extension__ __a__i_2) , __extension__ __b__i_2)) , __extension__ __c__i_2));115 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2)); 116 116 } -
src/tests/.expect/64/gccExtensions.txt
r28e58fd raf08051 43 43 __extension__ int __c__i_2; 44 44 }; 45 inline void ___constructor__F_ R2sS_autogen___2(struct S *___dst__R2sS_2){46 ((void)((* ___dst__R2sS_2).__a__i_2) /* ?{} */);47 ((void)((* ___dst__R2sS_2).__b__i_2) /* ?{} */);48 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);45 inline void ___constructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){ 46 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ?{} */); 47 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */); 48 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 49 49 } 50 inline void ___constructor__F_ R2sS2sS_autogen___2(struct S *___dst__R2sS_2, struct S ___src__2sS_2){51 ((void)((* ___dst__R2sS_2).__a__i_2=___src__2sS_2.__a__i_2) /* ?{} */);52 ((void)((* ___dst__R2sS_2).__b__i_2=___src__2sS_2.__b__i_2) /* ?{} */);53 ((void)((* ___dst__R2sS_2).__c__i_2=___src__2sS_2.__c__i_2) /* ?{} */);50 inline void ___constructor__F_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){ 51 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=___src__2sS_2.__a__i_2) /* ?{} */); 52 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=___src__2sS_2.__b__i_2) /* ?{} */); 53 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=___src__2sS_2.__c__i_2) /* ?{} */); 54 54 } 55 inline void ___destructor__F_ R2sS_autogen___2(struct S *___dst__R2sS_2){56 ((void)((* ___dst__R2sS_2).__c__i_2) /* ^?{} */);57 ((void)((* ___dst__R2sS_2).__b__i_2) /* ^?{} */);58 ((void)((* ___dst__R2sS_2).__a__i_2) /* ^?{} */);55 inline void ___destructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){ 56 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ^?{} */); 57 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ^?{} */); 58 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ^?{} */); 59 59 } 60 inline struct S ___operator_assign__F2sS_ R2sS2sS_autogen___2(struct S *___dst__R2sS_2, struct S ___src__2sS_2){60 inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){ 61 61 struct S ___ret__2sS_2; 62 ((void)((*___dst__ R2sS_2).__a__i_2=___src__2sS_2.__a__i_2));63 ((void)((*___dst__ R2sS_2).__b__i_2=___src__2sS_2.__b__i_2));64 ((void)((*___dst__ R2sS_2).__c__i_2=___src__2sS_2.__c__i_2));65 ((void)___constructor__F_ R2sS2sS_autogen___2((&___ret__2sS_2), ___src__2sS_2));62 ((void)((*___dst__P2sS_2).__a__i_2=___src__2sS_2.__a__i_2)); 63 ((void)((*___dst__P2sS_2).__b__i_2=___src__2sS_2.__b__i_2)); 64 ((void)((*___dst__P2sS_2).__c__i_2=___src__2sS_2.__c__i_2)); 65 ((void)___constructor__F_P2sS2sS_autogen___2((&___ret__2sS_2), ___src__2sS_2)); 66 66 return ((struct S )___ret__2sS_2); 67 67 } 68 inline void ___constructor__F_ R2sSi_autogen___2(struct S *___dst__R2sS_2, int __a__i_2){69 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);70 ((void)((* ___dst__R2sS_2).__b__i_2) /* ?{} */);71 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);68 inline void ___constructor__F_P2sSi_autogen___2(struct S *___dst__P2sS_2, int __a__i_2){ 69 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 70 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */); 71 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 72 72 } 73 inline void ___constructor__F_ R2sSii_autogen___2(struct S *___dst__R2sS_2, int __a__i_2, int __b__i_2){74 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);75 ((void)((* ___dst__R2sS_2).__b__i_2=__b__i_2) /* ?{} */);76 ((void)((* ___dst__R2sS_2).__c__i_2) /* ?{} */);73 inline void ___constructor__F_P2sSii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2){ 74 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 75 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */); 76 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */); 77 77 } 78 inline void ___constructor__F_ R2sSiii_autogen___2(struct S *___dst__R2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){79 ((void)((* ___dst__R2sS_2).__a__i_2=__a__i_2) /* ?{} */);80 ((void)((* ___dst__R2sS_2).__b__i_2=__b__i_2) /* ?{} */);81 ((void)((* ___dst__R2sS_2).__c__i_2=__c__i_2) /* ?{} */);78 inline void ___constructor__F_P2sSiii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){ 79 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */); 80 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */); 81 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=__c__i_2) /* ?{} */); 82 82 } 83 83 int __i__i_2 = ((int )__extension__ 3); … … 85 85 __extension__ int __b__i_2; 86 86 __extension__ int __c__i_2; 87 ((void)(( (void)(((void)__extension__ __a__i_2) , __extension__ __b__i_2)) , __extension__ __c__i_2));87 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2)); 88 88 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 89 89 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); … … 101 101 int __i__i_2; 102 102 }; 103 inline void ___constructor__F_ R3ss2_autogen___2(struct s2 *___dst__R3ss2_2){104 ((void)((* ___dst__R3ss2_2).__i__i_2) /* ?{} */);103 inline void ___constructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){ 104 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ?{} */); 105 105 } 106 inline void ___constructor__F_ R3ss23ss2_autogen___2(struct s2 *___dst__R3ss2_2, struct s2 ___src__3ss2_2){107 ((void)((* ___dst__R3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2) /* ?{} */);106 inline void ___constructor__F_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){ 107 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=___src__3ss2_2.__i__i_2) /* ?{} */); 108 108 } 109 inline void ___destructor__F_ R3ss2_autogen___2(struct s2 *___dst__R3ss2_2){110 ((void)((* ___dst__R3ss2_2).__i__i_2) /* ^?{} */);109 inline void ___destructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){ 110 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ^?{} */); 111 111 } 112 inline struct s2 ___operator_assign__F3ss2_ R3ss23ss2_autogen___2(struct s2 *___dst__R3ss2_2, struct s2 ___src__3ss2_2){112 inline struct s2 ___operator_assign__F3ss2_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){ 113 113 struct s2 ___ret__3ss2_2; 114 ((void)((*___dst__ R3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2));115 ((void)___constructor__F_ R3ss23ss2_autogen___2((&___ret__3ss2_2), ___src__3ss2_2));114 ((void)((*___dst__P3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2)); 115 ((void)___constructor__F_P3ss23ss2_autogen___2((&___ret__3ss2_2), ___src__3ss2_2)); 116 116 return ((struct s2 )___ret__3ss2_2); 117 117 } 118 inline void ___constructor__F_ R3ss2i_autogen___2(struct s2 *___dst__R3ss2_2, int __i__i_2){119 ((void)((* ___dst__R3ss2_2).__i__i_2=__i__i_2) /* ?{} */);118 inline void ___constructor__F_P3ss2i_autogen___2(struct s2 *___dst__P3ss2_2, int __i__i_2){ 119 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=__i__i_2) /* ?{} */); 120 120 } 121 121 struct s3 { 122 122 int __i__i_2; 123 123 }; 124 inline void ___constructor__F_ R3ss3_autogen___2(struct s3 *___dst__R3ss3_2){125 ((void)((* ___dst__R3ss3_2).__i__i_2) /* ?{} */);124 inline void ___constructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){ 125 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ?{} */); 126 126 } 127 inline void ___constructor__F_ R3ss33ss3_autogen___2(struct s3 *___dst__R3ss3_2, struct s3 ___src__3ss3_2){128 ((void)((* ___dst__R3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2) /* ?{} */);127 inline void ___constructor__F_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){ 128 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=___src__3ss3_2.__i__i_2) /* ?{} */); 129 129 } 130 inline void ___destructor__F_ R3ss3_autogen___2(struct s3 *___dst__R3ss3_2){131 ((void)((* ___dst__R3ss3_2).__i__i_2) /* ^?{} */);130 inline void ___destructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){ 131 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ^?{} */); 132 132 } 133 inline struct s3 ___operator_assign__F3ss3_ R3ss33ss3_autogen___2(struct s3 *___dst__R3ss3_2, struct s3 ___src__3ss3_2){133 inline struct s3 ___operator_assign__F3ss3_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){ 134 134 struct s3 ___ret__3ss3_2; 135 ((void)((*___dst__ R3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2));136 ((void)___constructor__F_ R3ss33ss3_autogen___2((&___ret__3ss3_2), ___src__3ss3_2));135 ((void)((*___dst__P3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2)); 136 ((void)___constructor__F_P3ss33ss3_autogen___2((&___ret__3ss3_2), ___src__3ss3_2)); 137 137 return ((struct s3 )___ret__3ss3_2); 138 138 } 139 inline void ___constructor__F_ R3ss3i_autogen___2(struct s3 *___dst__R3ss3_2, int __i__i_2){140 ((void)((* ___dst__R3ss3_2).__i__i_2=__i__i_2) /* ?{} */);139 inline void ___constructor__F_P3ss3i_autogen___2(struct s3 *___dst__P3ss3_2, int __i__i_2){ 140 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=__i__i_2) /* ?{} */); 141 141 } 142 142 struct s3 __x1__3ss3_2; … … 145 145 int __i__i_2; 146 146 }; 147 inline void ___constructor__F_ R3ss4_autogen___2(struct s4 *___dst__R3ss4_2){148 ((void)((* ___dst__R3ss4_2).__i__i_2) /* ?{} */);147 inline void ___constructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){ 148 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ?{} */); 149 149 } 150 inline void ___constructor__F_ R3ss43ss4_autogen___2(struct s4 *___dst__R3ss4_2, struct s4 ___src__3ss4_2){151 ((void)((* ___dst__R3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2) /* ?{} */);150 inline void ___constructor__F_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){ 151 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=___src__3ss4_2.__i__i_2) /* ?{} */); 152 152 } 153 inline void ___destructor__F_ R3ss4_autogen___2(struct s4 *___dst__R3ss4_2){154 ((void)((* ___dst__R3ss4_2).__i__i_2) /* ^?{} */);153 inline void ___destructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){ 154 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ^?{} */); 155 155 } 156 inline struct s4 ___operator_assign__F3ss4_ R3ss43ss4_autogen___2(struct s4 *___dst__R3ss4_2, struct s4 ___src__3ss4_2){156 inline struct s4 ___operator_assign__F3ss4_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){ 157 157 struct s4 ___ret__3ss4_2; 158 ((void)((*___dst__ R3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2));159 ((void)___constructor__F_ R3ss43ss4_autogen___2((&___ret__3ss4_2), ___src__3ss4_2));158 ((void)((*___dst__P3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2)); 159 ((void)___constructor__F_P3ss43ss4_autogen___2((&___ret__3ss4_2), ___src__3ss4_2)); 160 160 return ((struct s4 )___ret__3ss4_2); 161 161 } 162 inline void ___constructor__F_ R3ss4i_autogen___2(struct s4 *___dst__R3ss4_2, int __i__i_2){163 ((void)((* ___dst__R3ss4_2).__i__i_2=__i__i_2) /* ?{} */);162 inline void ___constructor__F_P3ss4i_autogen___2(struct s4 *___dst__P3ss4_2, int __i__i_2){ 163 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=__i__i_2) /* ?{} */); 164 164 } 165 165 struct s4 __x2__3ss4_2; … … 184 184 __attribute__ ((unused)) int ___retval_main__i_1; 185 185 int _tmp_cp_ret0; 186 ((void)(___retval_main__i_1=(( (void)(_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1))) , _tmp_cp_ret0)) /* ?{} */);187 ((void)( _tmp_cp_ret0) /* ^?{} */);186 ((void)(___retval_main__i_1=((_tmp_cp_ret0=invoke_main(__argc__i_1, __argv__PPc_1, __envp__PPc_1)) , _tmp_cp_ret0)) /* ?{} */); 187 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 188 188 return ((int )___retval_main__i_1); 189 189 } -
src/tests/.expect/castError.txt
r28e58fd raf08051 4 4 to: 5 5 char 6 Alternatives are: Cost ( 1, 0, 0 , 0): Cast of:6 Alternatives are: Cost ( 1, 0, 0 ): Cast of: 7 7 Variable Expression: f: function 8 8 accepting unspecified arguments … … 18 18 Environment: 19 19 20 Cost ( 1, 0, 0 , 0): Cast of:20 Cost ( 1, 0, 0 ): Cast of: 21 21 Variable Expression: f: signed int 22 22 … … 28 28 Environment: 29 29 30 Cost ( 1, 0, 0 , 0): Cast of:30 Cost ( 1, 0, 0 ): Cast of: 31 31 Variable Expression: f: double 32 32 -
src/tests/.expect/memberCtors-ERR1.txt
r28e58fd raf08051 1 memberCtors.c:71 error: in void ?{}(B &b), field a2 used before being constructed1 memberCtors.c:71 error: in void ?{}(B *b), field a2 used before being constructed -
src/tests/.expect/memberCtors.txt
r28e58fd raf08051 7 7 constructing int 8 8 begin construct B 9 assign b .a210 constructing int 11 constructing int 12 begin construct A 13 construct a .x9 assign b->a2 10 constructing int 11 constructing int 12 begin construct A 13 construct a->x 14 14 constructing int: 1001 15 assign a .y16 assigning int: 0 0 17 end construct A 18 copy constructing int: 0 19 copy constructing int: 0 20 begin copy construct A 21 copy construct this .x22 copy constructing int: 1001 23 assign this .y15 assign a->y 16 assigning int: 0 0 17 end construct A 18 copy constructing int: 0 19 copy constructing int: 0 20 begin copy construct A 21 copy construct this->x 22 copy constructing int: 1001 23 assign this->y 24 24 copy constructing int: 0 25 25 destructing int: 0 … … 40 40 copy constructing int: 0 41 41 begin copy construct A 42 copy construct this .x43 copy constructing int: 1001 44 assign this .y45 copy constructing int: 0 46 destructing int: 0 47 destructing int: 0 48 end copy construct A 49 destructing int: 0 50 destructing int: 0 51 destructing int: 1001 52 destructing int: 0 53 destructing int: 0 54 destructing int: 1001 55 construct b .a156 constructing int 57 constructing int 58 begin construct A 59 construct a .x42 copy construct this->x 43 copy constructing int: 1001 44 assign this->y 45 copy constructing int: 0 46 destructing int: 0 47 destructing int: 0 48 end copy construct A 49 destructing int: 0 50 destructing int: 0 51 destructing int: 1001 52 destructing int: 0 53 destructing int: 0 54 destructing int: 1001 55 construct b->a1 56 constructing int 57 constructing int 58 begin construct A 59 construct a->x 60 60 constructing int: 1000 61 assign a .y61 assign a->y 62 62 assigning int: 0 0 63 63 end construct A … … 70 70 copy constructing int: 0 71 71 begin copy construct A 72 copy construct this .x72 copy construct this->x 73 73 copy constructing int: 1000 74 assign this .y75 copy constructing int: 0 76 destructing int: 0 77 destructing int: 0 78 end copy construct A 79 copy constructing int: 0 80 copy constructing int: 0 81 begin copy construct A 82 copy construct this .x83 copy constructing int: 1001 84 assign this .y85 copy constructing int: 0 86 destructing int: 0 87 destructing int: 0 88 end copy construct A 89 copy constructing int: 0 90 copy constructing int: 0 91 begin copy construct A 92 copy construct this .x93 copy constructing int: 0 94 assign this .y74 assign this->y 75 copy constructing int: 0 76 destructing int: 0 77 destructing int: 0 78 end copy construct A 79 copy constructing int: 0 80 copy constructing int: 0 81 begin copy construct A 82 copy construct this->x 83 copy constructing int: 1001 84 assign this->y 85 copy constructing int: 0 86 destructing int: 0 87 destructing int: 0 88 end copy construct A 89 copy constructing int: 0 90 copy constructing int: 0 91 begin copy construct A 92 copy construct this->x 93 copy constructing int: 0 94 assign this->y 95 95 copy constructing int: 0 96 96 destructing int: 0 … … 101 101 constructing int 102 102 begin construct A 103 construct a .x103 construct a->x 104 104 constructing int: 999 105 assign a .y106 assigning int: 0 0 107 end construct A 108 copy constructing int: 0 109 copy constructing int: 0 110 begin copy construct A 111 copy construct this .x112 copy constructing int: 999 113 assign this .y105 assign a->y 106 assigning int: 0 0 107 end construct A 108 copy constructing int: 0 109 copy constructing int: 0 110 begin copy construct A 111 copy construct this->x 112 copy constructing int: 999 113 assign this->y 114 114 copy constructing int: 0 115 115 destructing int: 0 … … 130 130 copy constructing int: 0 131 131 begin copy construct A 132 copy construct this .x133 copy constructing int: 999 134 assign this .y132 copy construct this->x 133 copy constructing int: 999 134 assign this->y 135 135 copy constructing int: 0 136 136 destructing int: 0 … … 158 158 constructing int 159 159 begin construct A 160 construct a .x160 construct a->x 161 161 constructing int: 999 162 assign a .y163 assigning int: 0 0 164 end construct A 165 copy constructing int: 0 166 copy constructing int: 0 167 begin copy construct A 168 copy construct this .x169 copy constructing int: 999 170 assign this .y162 assign a->y 163 assigning int: 0 0 164 end construct A 165 copy constructing int: 0 166 copy constructing int: 0 167 begin copy construct A 168 copy construct this->x 169 copy constructing int: 999 170 assign this->y 171 171 copy constructing int: 0 172 172 destructing int: 0 … … 187 187 copy constructing int: 0 188 188 begin copy construct A 189 copy construct this .x190 copy constructing int: 999 191 assign this .y189 copy construct this->x 190 copy constructing int: 999 191 assign this->y 192 192 copy constructing int: 0 193 193 destructing int: 0 -
src/tests/alloc.c
r28e58fd raf08051 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // … … 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // alloc.c -- 8 // 7 // alloc.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Feb 3 07:56:22 2016 … … 12 12 // Last Modified On : Thu Jul 20 16:01:10 2017 13 13 // Update Count : 318 14 // 14 // 15 15 16 16 #include <assert.h> … … 19 19 #include <stdlib.h> // posix_memalign 20 20 #include <fstream> 21 #include <stdlib> 21 #include <stdlib> // access C malloc, realloc 22 22 23 23 int * foo( int * p, int c ) { return p; } … … 26 26 27 27 int main( void ) { 28 29 28 size_t dim = 10; 29 int * p; 30 30 char fill = '\1'; 31 31 32 32 // allocation, non-array types 33 33 34 p = (void *)malloc( sizeof(*p) );// C malloc, type unsafe34 p = (void *)malloc( sizeof(*p) ); // C malloc, type unsafe 35 35 *p = 0xdeadbeef; 36 36 printf( "C malloc %#x\n", *p ); 37 38 39 p = malloc();// CFA malloc, type safe37 free( p ); 38 39 p = malloc(); // CFA malloc, type safe 40 40 *p = 0xdeadbeef; 41 41 printf( "CFA malloc %#x\n", *p ); 42 43 44 p = alloc();// CFA alloc, type safe42 free( p ); 43 44 p = alloc(); // CFA alloc, type safe 45 45 *p = 0xdeadbeef; 46 46 printf( "CFA alloc %#x\n", *p ); 47 48 49 p = alloc( fill );// CFA alloc, fill47 free( p ); 48 49 p = alloc( fill ); // CFA alloc, fill 50 50 printf( "CFA alloc, fill %08x\n", *p ); 51 51 … … 54 54 printf( "\n" ); 55 55 56 p = calloc( dim, sizeof( *p ) );// C array calloc, type unsafe56 p = calloc( dim, sizeof( *p ) ); // C array calloc, type unsafe 57 57 printf( "C array calloc, fill 0\n" ); 58 58 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] ); } 59 59 printf( "\n" ); 60 61 62 p = calloc( dim );// CFA array calloc, type safe60 free( p ); 61 62 p = calloc( dim ); // CFA array calloc, type safe 63 63 printf( "CFA array calloc, fill 0\n" ); 64 64 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] ); } 65 65 printf( "\n" ); 66 67 68 p = alloc( dim );// CFA array alloc, type safe66 free( p ); 67 68 p = alloc( dim ); // CFA array alloc, type safe 69 69 for ( int i = 0; i < dim; i += 1 ) { p[i] = 0xdeadbeef; } 70 70 printf( "CFA array alloc, no fill\n" ); 71 71 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] ); } 72 72 printf( "\n" ); 73 74 75 p = alloc( 2 * dim, fill );// CFA array alloc, fill73 free( p ); 74 75 p = alloc( 2 * dim, fill ); // CFA array alloc, fill 76 76 printf( "CFA array alloc, fill %#x\n", fill ); 77 77 for ( int i = 0; i < 2 * dim; i += 1 ) { printf( "%#x ", p[i] ); } … … 83 83 printf( "\n" ); 84 84 85 p = (void *)realloc( p, dim * sizeof(*p) );// C realloc85 p = (void *)realloc( p, dim * sizeof(*p) ); // C realloc 86 86 for ( int i = 0; i < dim; i += 1 ) { p[i] = 0xdeadbeef; } 87 87 printf( "C realloc\n" ); … … 89 89 printf( "\n" ); 90 90 91 p = realloc( p, 2 * dim * sizeof(*p) );// CFA realloc91 p = realloc( p, 2 * dim * sizeof(*p) ); // CFA realloc 92 92 for ( int i = dim; i < 2 * dim; i += 1 ) { p[i] = 0x1010101; } 93 93 printf( "CFA realloc\n" ); … … 100 100 printf( "\n" ); 101 101 102 p = alloc( p, dim );// CFA resize array alloc102 p = alloc( p, dim ); // CFA resize array alloc 103 103 for ( int i = 0; i < dim; i += 1 ) { p[i] = 0xdeadbeef; } 104 104 printf( "CFA resize alloc\n" ); … … 106 106 printf( "\n" ); 107 107 108 p = alloc( p, 2 * dim );// CFA resize array alloc108 p = alloc( p, 2 * dim ); // CFA resize array alloc 109 109 for ( int i = dim; i < 2 * dim; i += 1 ) { p[i] = 0x1010101; } 110 110 printf( "CFA resize array alloc\n" ); … … 112 112 printf( "\n" ); 113 113 114 p = alloc( p, dim );// CFA array alloc114 p = alloc( p, dim ); // CFA array alloc 115 115 printf( "CFA resize array alloc\n" ); 116 116 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] ); } … … 120 120 p = 0; 121 121 122 p = alloc( p, dim, fill );// CFA array alloc, fill122 p = alloc( p, dim, fill ); // CFA array alloc, fill 123 123 printf( "CFA resize array alloc, fill\n" ); 124 124 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] ); } 125 125 printf( "\n" ); 126 126 127 p = alloc( p, 2 * dim, fill );// CFA array alloc, fill127 p = alloc( p, 2 * dim, fill ); // CFA array alloc, fill 128 128 printf( "CFA resize array alloc, fill\n" ); 129 129 for ( int i = 0; i < 2 * dim; i += 1 ) { printf( "%#x ", p[i] ); } 130 130 printf( "\n" ); 131 131 132 p = alloc( p, dim, fill );// CFA array alloc, fill132 p = alloc( p, dim, fill ); // CFA array alloc, fill 133 133 printf( "CFA resize array alloc, fill\n" ); 134 134 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x ", p[i] );; } … … 137 137 138 138 139 140 139 struct Struct { int x; double y; }; 140 Struct st, st1, sta[dim], sta1[dim], * stp, * stp1; 141 141 142 142 // alignment, non-array types … … 144 144 enum { Alignment = 128 }; 145 145 146 stp = &(*(Struct*)memalign( Alignment, sizeof( *stp ) ) ){ 42, 42.5 }; // C memalign146 stp = (memalign( Alignment, sizeof( *stp ) ) ){ 42, 42.5 }; // C memalign 147 147 assert( (uintptr_t)stp % Alignment == 0 ); 148 148 printf( "C memalign %d %g\n", stp->x, stp->y ); 149 150 151 stp = &(*memalign( Alignment )){ 42, 42.5 };// CFA memalign149 free( stp ); 150 151 stp = (memalign( Alignment )){ 42, 42.5 }; // CFA memalign 152 152 assert( (uintptr_t)stp % Alignment == 0 ); 153 153 printf( "CFA memalign %d %g\n", stp->x, stp->y ); 154 155 156 posix_memalign( (void **)&stp, Alignment, sizeof( *stp ) );// C posix_memalign154 free( stp ); 155 156 posix_memalign( (void **)&stp, Alignment, sizeof( *stp ) ); // C posix_memalign 157 157 *stp = (Struct){ 42, 42.5 }; 158 158 assert( (uintptr_t)stp % Alignment == 0 ); 159 159 printf( "CFA posix_memalign %d %g\n", stp->x, stp->y ); 160 161 162 posix_memalign( &stp, Alignment );// CFA posix_memalign160 free( stp ); 161 162 posix_memalign( &stp, Alignment ); // CFA posix_memalign 163 163 *stp = (Struct){ 42, 42.5 }; 164 164 assert( (uintptr_t)stp % Alignment == 0 ); 165 165 printf( "CFA posix_memalign %d %g\n", stp->x, stp->y ); 166 167 168 stp = &(*aligned_alloc( Alignment )){ 42, 42.5 };// CFA aligned_alloc166 free( stp ); 167 168 stp = (aligned_alloc( Alignment )){ 42, 42.5 }; // CFA aligned_alloc 169 169 assert( (uintptr_t)stp % Alignment == 0 ); 170 170 printf( "CFA aligned_alloc %d %g\n", stp->x, stp->y ); 171 172 173 stp = &(*align_alloc( Alignment )){ 42, 42.5 };// CFA align_alloc171 free( stp ); 172 173 stp = (align_alloc( Alignment )){ 42, 42.5 }; // CFA align_alloc 174 174 assert( (uintptr_t)stp % Alignment == 0 ); 175 175 printf( "CFA align_alloc %d %g\n", stp->x, stp->y ); 176 177 178 stp = align_alloc( Alignment, fill );// CFA memalign, fill176 free( stp ); 177 178 stp = align_alloc( Alignment, fill ); // CFA memalign, fill 179 179 assert( (uintptr_t)stp % Alignment == 0 ); 180 180 printf( "CFA align_alloc fill %#x %a\n", stp->x, stp->y ); 181 181 free( stp ); 182 182 183 183 … … 185 185 printf( "\n" ); 186 186 187 stp = align_alloc( Alignment, dim );// CFA array memalign187 stp = align_alloc( Alignment, dim ); // CFA array memalign 188 188 assert( (uintptr_t)stp % Alignment == 0 ); 189 189 for ( int i = 0; i < dim; i += 1 ) { stp[i] = (Struct){ 42, 42.5 }; } … … 191 191 for ( int i = 0; i < dim; i += 1 ) { printf( "%d %g, ", stp[i].x, stp[i].y ); } 192 192 printf( "\n" ); 193 194 195 stp = align_alloc( Alignment, dim, fill );// CFA array memalign, fill193 free( stp ); 194 195 stp = align_alloc( Alignment, dim, fill ); // CFA array memalign, fill 196 196 assert( (uintptr_t)stp % Alignment == 0 ); 197 197 printf( "CFA array align_alloc, fill\n" ); 198 198 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", stp[i].x, stp[i].y ); } 199 199 printf( "\n" ); 200 200 free( stp ); 201 201 202 202 … … 204 204 printf( "\n" ); 205 205 206 memset( &st, fill );// CFA memset, type safe206 memset( &st, fill ); // CFA memset, type safe 207 207 printf( "CFA memset %#x %a\n", st.x, st.y ); 208 memcpy( &st1, &st );// CFA memcpy, type safe208 memcpy( &st1, &st ); // CFA memcpy, type safe 209 209 printf( "CFA memcpy %#x %a\n", st1.x, st1.y ); 210 210 … … 213 213 printf( "\n" ); 214 214 215 memset( sta, dim, fill );// CFA array memset, type safe215 memset( sta, dim, fill ); // CFA array memset, type safe 216 216 printf( "CFA array memset\n" ); 217 217 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta[i].x, sta[i].y ); } 218 218 printf( "\n" ); 219 219 220 memcpy( sta1, sta, dim );// CFA array memcpy, type safe220 memcpy( sta1, sta, dim ); // CFA array memcpy, type safe 221 221 printf( "CFA memcpy\n" ); 222 222 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); } … … 245 245 printf( "\n" ); 246 246 247 248 249 250 251 247 float * fp = malloc() + 1; 248 printf( "pointer arithmetic %d\n", fp == fp - 1 ); 249 free( fp - 1 ); 250 251 p = foo( bar( baz( malloc(), 0 ), 0 ), 0 ); 252 252 *p = 0xdeadbeef; 253 253 printf( "CFA deep malloc %#x\n", *p ); 254 254 free( p ); 255 255 256 256 stp = malloc(); 257 257 printf( "\nSHOULD FAIL\n" ); 258 259 260 258 p = alloc( stp, dim * sizeof(*stp) ); 259 p = memset( stp, 10 ); 260 p = memcpy( &st1, &st ); 261 261 } // main 262 262 -
src/tests/avltree/avl.h
r28e58fd raf08051 21 21 // xxx - unbound type variable problems when trying to use new instead of create 22 22 // forall( otype T, ttype Params | { void ?{}(T *, Params); } ) T * new( Params p ); 23 24 forall(dtype T | { void ^?{}(T *); }) 25 void delete(T * x); 23 26 24 27 // To-do: properly use height or balance factor … … 55 58 56 59 forall(otype K | Comparable(K), otype V) 57 void ?{}(tree(K, V) &t, K key, V value);60 void ?{}(tree(K, V) *t, K key, V value); 58 61 59 62 forall(otype K, otype V) 60 void ^?{}(tree(K, V) &t);63 void ^?{}(tree(K, V) * t); 61 64 62 65 forall(otype K | Comparable(K), otype V) -
src/tests/avltree/avl1.c
r28e58fd raf08051 1 1 #include "avl.h" 2 2 // #include "cwrap.h" 3 #include <stdlib>4 3 5 4 forall(otype K | Comparable(K), otype V) 6 void ?{}(tree(K, V) &t, K key, V value){7 ( t.key) { key };8 ( t.value) { value };9 t .parent = NULL;10 t .left = NULL;11 t .right = NULL;12 t .balance = 0;5 void ?{}(tree(K, V) *t, K key, V value){ 6 (&t->key) { key }; 7 (&t->value) { value }; 8 t->parent = NULL; 9 t->left = NULL; 10 t->right = NULL; 11 t->balance = 0; 13 12 } 14 13 15 14 forall(otype K, otype V) 16 void ^?{}(tree(K, V) &t){17 delete(t .left);18 delete(t .right);19 ^( t.key){};20 ^( t.value){};15 void ^?{}(tree(K, V) * t){ 16 delete(t->left); 17 delete(t->right); 18 ^(&t->key){}; 19 ^(&t->value){}; 21 20 } 22 21 … … 25 24 // infinite loop trying to resolve ... t = malloc(); 26 25 tree(K, V) * t = malloc(sizeof(tree(K,V))); 27 (*t){ key, value };26 t { key, value }; 28 27 return t; 29 28 } -
src/tests/avltree/avl3.c
r28e58fd raf08051 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib> 3 4 // from stdlib 5 forall(otype T) 6 void swap(T *, T *); 4 7 5 8 // swaps the data within two tree nodes 6 9 forall(otype K | Comparable(K), otype V) 7 10 void node_swap(tree(K, V) * t, tree(K, V) * t2){ 8 swap( t->key,t2->key);9 swap( t->value,t2->value);11 swap(&t->key, &t2->key); 12 swap(&t->value, &t2->value); 10 13 } 11 14 … … 13 16 forall(otype K | Comparable(K), otype V) 14 17 tree(K, V) * find_successor(tree(K, V) * t){ 15 16 17 18 19 20 21 22 23 18 tree(K, V) * find_successor_helper(tree(K, V) * t){ 19 // go left as deep as possible, return the last node 20 if (empty(t->left)){ 21 return t; 22 } else { 23 return find_successor_helper(t->left); 24 } 25 } 26 return find_successor_helper(t->right); 24 27 } 25 28 … … 27 30 forall(otype K | Comparable(K), otype V) 28 31 void deleteSingleNode(tree(K, V) * t) { 29 30 31 delete(t);32 t->left = NULL; 33 t->right = NULL; 34 deleteSingleNode(t); 32 35 } 33 36 … … 35 38 forall(otype K | Comparable(K), otype V) 36 39 tree(K, V) * remove_node(tree(K, V) * t){ 37 38 39 40 41 42 43 44 45 40 // is the node a leaf? 41 if (empty(t->left) && empty(t->right)){ 42 // yes, just delete this node 43 delete(t); 44 return NULL; 45 } else if (empty(t->left)){ 46 // if the left is empty, there is only one child -> move right up 47 node_swap(t, t->right); 48 tree(K, V) * tmp = t->right; 46 49 47 48 49 50 // relink tree 51 t->left = tmp->left; 52 t->right = tmp->right; 50 53 51 52 53 54 55 56 57 58 54 setParent(t->left, t); 55 setParent(t->right, t); 56 deleteSingleNode(tmp); 57 return t; 58 } else if (empty(t->right)){ 59 // if the right is empty, there is only one child -> move left up 60 node_swap(t, t->left); 61 tree(K, V) * tmp = t->left; 59 62 60 61 62 63 // relink tree 64 t->left = tmp->left; 65 t->right = tmp->right; 63 66 64 65 66 67 68 69 70 71 67 setParent(t->left, t); 68 setParent(t->right, t); 69 deleteSingleNode(tmp); 70 return t; 71 } else { 72 // swap with the successor 73 tree(K, V) * s = find_successor(t); 74 tree(K, V) * parent = s->parent; 72 75 73 74 75 76 77 78 79 80 81 82 83 76 if (parent->left == s){ 77 parent->left = s->right; 78 } else { 79 assert(parent->right == s); 80 parent->right = s->right; 81 } 82 setParent(s->right, parent); 83 node_swap(t, s); 84 deleteSingleNode(s); 85 return t; 86 } 84 87 } 85 88 … … 87 90 forall(otype K | Comparable(K), otype V) 88 91 tree(K, V) * remove_helper(tree(K, V) * t, K key, int * worked){ 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 92 if (empty(t)){ 93 // did not work because key was not found 94 // set the status variable and return 95 *worked = 1; 96 } else if (t->key == key) { 97 t = remove_node(t); 98 } else if (t->key < key){ 99 t->right = remove_helper(t->right, key, worked); 100 } else { 101 // t->key > key 102 t->left = remove_helper(t->left, key, worked); 103 } 104 // try to fix after deleting 105 if (! empty(t)) { 106 t = tryFix(t); 107 } 108 return t; 106 109 } 107 110 108 111 forall(otype K | Comparable(K), otype V) 109 112 int remove(tree(K, V) ** t, K key){ 110 111 112 113 113 int worked = 0; 114 tree(K, V) * newTree = remove_helper(*t, key, &worked); 115 *t = newTree; 116 return worked; 114 117 } 115 116 // Local Variables: //117 // tab-width: 4 //118 // End: // -
src/tests/avltree/avl_test.c
r28e58fd raf08051 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib>4 3 5 4 extern "C" { -
src/tests/coroutine.c
r28e58fd raf08051 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // fibonacci.c -- 8 // 6 // 7 // fibonacci.c -- 8 // 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu Jun 8 07:29:37 2017 … … 12 12 // Last Modified On : Thu Jun 8 07:37:12 2017 13 13 // Update Count : 5 14 // 14 // 15 15 16 16 #include <fstream> … … 21 21 }; 22 22 23 void ?{}( Fibonacci &this ) {24 this .fn = 0;23 void ?{}( Fibonacci * this ) { 24 this->fn = 0; 25 25 } 26 26 27 void main( Fibonacci &this ) {27 void main( Fibonacci * this ) { 28 28 int fn1, fn2; // retained between resumes 29 this .fn = 0; // case 030 fn1 = this .fn;29 this->fn = 0; // case 0 30 fn1 = this->fn; 31 31 suspend(); // return to last resume 32 32 33 this .fn = 1; // case 133 this->fn = 1; // case 1 34 34 fn2 = fn1; 35 fn1 = this .fn;35 fn1 = this->fn; 36 36 suspend(); // return to last resume 37 37 38 38 for ( ;; ) { // general case 39 this .fn = fn1 + fn2;39 this->fn = fn1 + fn2; 40 40 fn2 = fn1; 41 fn1 = this .fn;41 fn1 = this->fn; 42 42 suspend(); // return to last resume 43 43 } // for 44 44 } 45 45 46 int next( Fibonacci &this ) {46 int next( Fibonacci * this ) { 47 47 resume( this ); // transfer to last suspend 48 return this .fn;48 return this->fn; 49 49 } 50 50 … … 52 52 Fibonacci f1, f2; 53 53 for ( int i = 1; i <= 10; i += 1 ) { 54 sout | next( f1 ) | ' ' | next(f2 ) | endl;54 sout | next( &f1 ) | ' ' | next( &f2 ) | endl; 55 55 } // for 56 56 } -
src/tests/dtor-early-exit.c
r28e58fd raf08051 27 27 28 28 // don't want these called 29 void ?{}(A &a) { assert( false ); }30 void ?{}(A & a, const char * name) { a.name = name; sout | "construct " | name | endl; a.x = (int*)malloc(); }31 void ?{}(A &a, const char * name, int * ptr) { assert( false ); }32 33 A ?=?(A & a, A b) { sout | "assign " | a.name | " " | b.name; return a; }34 void ?{}(A & a, A b) { sout | "copy construct " | b.name | endl; a.x = (int*)malloc(); }35 void ^?{}(A & a) { sout | "destruct " | a.name | endl; free(a.x); }29 void ?{}(A * a) { assert( false ); } 30 void ?{}(A * a, const char * name) { a->name = name; sout | "construct " | name | endl; a->x = (int*)malloc(); } 31 void ?{}(A * a, const char * name, int * ptr) { assert( false ); } 32 33 A ?=?(A * a, A a) { sout | "assign " | a->name | " " | a.name; return a; } 34 void ?{}(A * a, A a) { sout | "copy construct " | a.name | endl; a->x = (int*)malloc(); } 35 void ^?{}(A * a) { sout | "destruct " | a->name | endl; free(a->x); } 36 36 37 37 // test returns -
src/tests/fstream_test.c
r28e58fd raf08051 7 7 // fstream_test.c -- 8 8 // 9 // Author : Peter A. Buhr9 // Author : Richard C. Bilson 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 11:30:26 201713 // Update Count : 6 512 // Last Modified On : Mon May 2 15:25:54 2016 13 // Update Count : 61 14 14 // 15 15 … … 19 19 int nombre; 20 20 sout | "Entrez un nombre, s'il vous plaît:" | endl; 21 sin | nombre; 22 sout | "Vous avez entré" | nombre | endl; 23 sout | "le nombre" | nombre | "est" 24 | (nombre > 0 ? "positif" : nombre == 0 ? "zéro" : "négatif") | endl; 21 sin | &nombre; 22 sout | "Vous avez entré" | nombre | "stocké à l'adresse" | &nombre | endl; 23 sout | "nombre" | nombre | "est" 24 | (nombre > 0 ? "plus grand que" : nombre == 0 ? "égal à" : "moins de") 25 | "zéro" | endl; 25 26 26 27 sout | "Entrez trois nombres, s'il vous plaît: " | endl; 27 28 int i, j, k; 28 sin | i | j |k;29 sin | &i | &j | &k; 29 30 sout | "Vous avez entré" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl; 30 31 } -
src/tests/globals.c
r28e58fd raf08051 5 5 }; 6 6 7 void ?{}( value_t & this ) { this.value = 22; }7 void ?{}( value_t * this ) { this->value = 22; } 8 8 9 9 //Standard case … … 12 12 }; 13 13 14 void ?{}( g_t & this ) { (this.val){}; }14 void ?{}( g_t * this ) { (&this->val){}; } 15 15 16 16 g_t g; … … 25 25 //Inline case 26 26 struct gi_t; 27 void ?{}( gi_t &this );27 void ?{}( gi_t * this ); 28 28 29 29 struct gi_t { … … 31 31 } gi; 32 32 33 void ?{}( gi_t & this ) { (this.val){}; }33 void ?{}( gi_t * this ) { (&this->val){}; } 34 34 35 35 //Inline autogen case … … 43 43 }; 44 44 45 void ?{}( gs_t & this ) { (this.val){}; }45 void ?{}( gs_t * this ) { (&this->val){}; } 46 46 47 47 static gs_t gs; … … 56 56 //Static inline case 57 57 struct gsi_t; 58 void ?{}( gsi_t &this );58 void ?{}( gsi_t * this ); 59 59 60 60 static struct gsi_t { … … 62 62 } gsi; 63 63 64 void ?{}( gsi_t & this ) { (this.val){}; }64 void ?{}( gsi_t * this ) { (&this->val){}; } 65 65 66 66 //Static inline autogen case -
src/tests/gmp.c
r28e58fd raf08051 10 10 // Created On : Tue Apr 19 08:55:51 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 09:33:26201713 // Update Count : 54 312 // Last Modified On : Thu Jul 13 16:35:01 2017 13 // Update Count : 541 14 14 // 15 15 … … 70 70 sout | endl; 71 71 72 sin | x | y | z;73 sout | x | y | z | endl;74 75 sout | endl;76 77 72 sout | "Fibonacci Numbers" | endl; 78 73 Int fn, fn1, fn2; -
src/tests/init_once.c
r28e58fd raf08051 60 60 return -1; 61 61 } 62 void ?{}(array &arr) {63 memset(arr .elems, 0, sizeof(arr.elems));64 arr .length = 0;62 void ?{}(array * arr) { 63 memset(arr->elems, 0, sizeof(arr->elems)); 64 arr->length = 0; 65 65 } 66 66 array constructed; 67 67 array destructed; 68 68 69 void ?{}(init_once &x) {70 assert( find( &constructed, &x ) == -1 );71 remove( &destructed, &x );72 insert( &constructed, &x );69 void ?{}(init_once * x) { 70 assert( find( &constructed, x ) == -1 ); 71 remove( &destructed, x ); 72 insert( &constructed, x ); 73 73 74 x .x = malloc(sizeof(int));74 x->x = malloc(sizeof(int)); 75 75 } 76 76 77 void ?{}(init_once &x, init_once other) {77 void ?{}(init_once * x, init_once other) { 78 78 x{}; // reuse default ctor 79 79 } 80 80 81 void ^?{}(init_once &x) {82 assert( find( &destructed, &x ) == -1 );83 remove( &constructed, &x );84 insert( &destructed, &x );81 void ^?{}(init_once * x) { 82 assert( find( &destructed, x ) == -1 ); 83 remove( &constructed, x ); 84 insert( &destructed, x ); 85 85 86 free(x .x);86 free(x->x); 87 87 } 88 88 //*** end setup … … 125 125 init_once x; 126 126 init_once y = x; 127 x{}; // ensure this doesn't execute127 (&x) {}; // ensure this doesn't execute 128 128 break; 129 129 } -
src/tests/io.c
r28e58fd raf08051 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 21:27:50201713 // Update Count : 7 912 // Last Modified On : Thu Jul 6 23:26:12 2017 13 // Update Count : 78 14 14 // 15 15 … … 89 89 90 90 sout | "input bacis types" | endl; 91 &in | c// character92 | si | usi | i | ui | li | uli | lli | ulli// integral93 | f | d |ld // floating point94 | fc | dc | ldc// floating-point complex91 &in | &c // character 92 | &si | &usi | &i | &ui | &li | &uli | &lli | &ulli // integral 93 | &f | &d | &ld // floating point 94 | &fc | &dc | &ldc // floating-point complex 95 95 | cstr( s1 ) | cstr( s2, size ); // C string, length unchecked and checked 96 96 sout | endl; -
src/tests/memberCtors.c
r28e58fd raf08051 3 3 }; 4 4 5 void ?{}(WrappedInt &this) {5 void ?{}(WrappedInt * this) { 6 6 printf("constructing int\n"); 7 this .x = 0;7 this->x = 0; 8 8 } 9 9 10 void ?{}(WrappedInt &this, WrappedInt other) {10 void ?{}(WrappedInt * this, WrappedInt other) { 11 11 printf("copy constructing int: %d\n", other.x); 12 this .x = other.x;12 this->x = other.x; 13 13 } 14 14 15 void ?{}(WrappedInt &this, int x) {15 void ?{}(WrappedInt * this, int x) { 16 16 printf("constructing int: %d\n", x); 17 this .x = x;17 this->x = x; 18 18 } 19 19 20 void ^?{}(WrappedInt &this) {21 printf("destructing int: %d\n", this .x);20 void ^?{}(WrappedInt * this) { 21 printf("destructing int: %d\n", this->x); 22 22 } 23 23 24 void ?=?(WrappedInt &this, int x) {25 printf("assigning int: %d %d\n", this .x, x);26 this .x = x;24 void ?=?(WrappedInt * this, int x) { 25 printf("assigning int: %d %d\n", this->x, x); 26 this->x = x; 27 27 } 28 28 … … 31 31 }; 32 32 33 void ?{}(A &a) {33 void ?{}(A * a) { 34 34 // currently must define default ctor, since there's no "= default" syntax 35 35 } 36 36 37 void ?{}(A &a, int x) {37 void ?{}(A * a, int x) { 38 38 printf("begin construct A\n"); 39 printf("construct a .x\n");40 ( a.x){ x+999 };41 printf("assign a .y\n");42 a .y = 0; // not a constructor - default constructor will be inserted39 printf("construct a->x\n"); 40 (&a->x){ x+999 }; 41 printf("assign a->y\n"); 42 a->y = 0; // not a constructor - default constructor will be inserted 43 43 printf("end construct A\n"); 44 44 } // z never constructed - will be automatically default constructed 45 45 46 void ?{}(A &this, A other) {46 void ?{}(A * this, A other) { 47 47 printf("begin copy construct A\n"); 48 printf("copy construct this .x\n");49 ( this.x){ other.x };50 printf("assign this .y\n");51 this .y = other.y; // not a constructor - copy constructor will be inserted48 printf("copy construct this->x\n"); 49 (&this->x){ other.x }; 50 printf("assign this->y\n"); 51 this->y = other.y; // not a constructor - copy constructor will be inserted 52 52 printf("end copy construct A\n"); 53 53 } // z never constructed - will be automatically copy constructed 54 54 55 A ?=?(A &this, A other) {55 A ?=?(A * this, A other) { 56 56 printf("begin ?=? A\n"); 57 this .x = other.x;58 this .y = other.y;59 this .z = other.z;57 this->x = other.x; 58 this->y = other.y; 59 this->z = other.z; 60 60 printf("end ?=? A\n"); 61 return this;61 return *this; 62 62 } 63 63 … … 66 66 }; 67 67 68 void ?{}(B &b) {68 void ?{}(B * b) { 69 69 printf("begin construct B\n"); 70 printf("assign b .a2\n");71 b .a2 = (A) { 2 };72 printf("construct b .a1\n");73 ( b.a1){ 1 };70 printf("assign b->a2\n"); 71 b->a2 = (A) { 2 }; 72 printf("construct b->a1\n"); 73 (&b->a1){ 1 }; 74 74 #ifdef ERR1 75 ( b.a2){ b.a3 }; // error, b->a2 was used previously but is explicitly constructed75 (&b->a2){ b->a3 }; // error, b->a2 was used previously but is explicitly constructed 76 76 #endif 77 77 printf("end construct B\n"); 78 78 } // a2, a3 never constructed - will be automatically default constructed 79 79 80 void ^?{}(B &b) {81 b .a2 = (A) { 0 };82 ^( b.a1){};80 void ^?{}(B * b) { 81 b->a2 = (A) { 0 }; 82 ^(&b->a1){}; 83 83 } // a2, a3 never destructed - will be automatically destructed 84 84 -
src/tests/monitor.c
r28e58fd raf08051 8 8 }; 9 9 10 void ?{}(global_t &this) {11 this .value = 0;10 void ?{}(global_t * this) { 11 this->value = 0; 12 12 } 13 13 14 14 static global_t global; 15 15 16 void increment3( global_t &mutex this ) {17 this .value += 1;16 void increment3( global_t * mutex this ) { 17 this->value += 1; 18 18 } 19 19 20 void increment2( global_t &mutex this ) {20 void increment2( global_t * mutex this ) { 21 21 increment3( this ); 22 22 } 23 23 24 void increment( global_t &mutex this ) {24 void increment( global_t * mutex this ) { 25 25 increment2( this ); 26 26 } … … 28 28 thread MyThread {}; 29 29 30 void main( MyThread &this ) {30 void main( MyThread* this ) { 31 31 for(int i = 0; i < 1_000_000; i++) { 32 increment( global );32 increment( &global ); 33 33 } 34 34 } -
src/tests/multi-monitor.c
r28e58fd raf08051 10 10 static monitor_t m1, m2, m3; 11 11 12 void increment( monitor_t & mutex p1, monitor_t & mutex p2, int &value ) {13 value += 1;12 void increment( monitor_t * mutex p1, monitor_t * mutex p2, int * value ) { 13 *value += 1; 14 14 } 15 15 16 thread MyThread { 16 struct MyThread { 17 thread_desc __thrd; 17 18 int target; 18 19 }; 19 20 20 void ?{}( MyThread & this, int target ) { 21 this.target = target; 21 DECL_THREAD(MyThread); 22 23 void ?{}( MyThread * this, int target ) { 24 this->target = target; 22 25 } 23 26 24 void ^?{}( MyThread &mutex this ) {}27 void ^?{}( MyThread * mutex this ) {} 25 28 26 void main( MyThread &this ) {29 void main( MyThread* this ) { 27 30 for(int i = 0; i < 1000000; i++) { 28 choose(this .target) {29 case 0: increment( m1, m2,global12 );30 case 1: increment( m2, m3,global23 );31 case 2: increment( m1, m3,global13 );31 choose(this->target) { 32 case 0: increment( &m1, &m2, &global12 ); 33 case 1: increment( &m2, &m3, &global23 ); 34 case 2: increment( &m1, &m3, &global13 ); 32 35 } 33 36 } 34 }35 36 forall(dtype T | sized(T) | { void ^?{}(T & mutex); })37 void delete_mutex(T * x) {38 ^(*x){};39 free(x);40 37 } 41 38 … … 43 40 processor p; 44 41 { 45 MyThread* f[6];42 scoped(MyThread) * f[6]; 46 43 for(int i = 0; i < 6; i++) { 47 f[i] = new(i % 3);44 f[i] = ((scoped(MyThread) *)malloc()){ i % 3 }; 48 45 } 49 46 50 47 for(int i = 0; i < 6; i++) { 51 delete _mutex( f[i] );48 delete( f[i] ); 52 49 } 53 50 } -
src/tests/multiDimension.c
r28e58fd raf08051 4 4 }; 5 5 6 void ?{}(X &this) {6 void ?{}(X * this) { 7 7 printf("default constructing\n"); 8 ( this.a){ 123 };9 this .ptr = malloc(sizeof(int));8 (&this->a){ 123 }; 9 this->ptr = malloc(sizeof(int)); 10 10 } 11 11 12 void ?{}(X &this, X other) {12 void ?{}(X * this, X other) { 13 13 printf("copy constructing\n"); 14 ( this.a){ other.a };15 this .ptr = malloc(sizeof(int));14 (&this->a){ other.a }; 15 this->ptr = malloc(sizeof(int)); 16 16 } 17 17 18 void ?{}(X &this, int a) {18 void ?{}(X * this, int a) { 19 19 printf("constructing with %d\n", a); 20 ( this.a){ a };21 this .ptr = malloc(sizeof(int));20 (&this->a){ a }; 21 this->ptr = malloc(sizeof(int)); 22 22 } 23 23 24 void ^?{}(X &this) {24 void ^?{}(X * this) { 25 25 printf("destructing\n"); 26 free(this .ptr);26 free(this->ptr); 27 27 } 28 28 29 X ?=?(X &this, X other) {30 this .a = other.a;31 return this;29 X ?=?(X * this, X other) { 30 this->a = other.a; 31 return *this; 32 32 } 33 33 -
src/tests/operators.c
r28e58fd raf08051 11 11 } 12 12 13 int ?=?( int &a, int b ) {13 int ?=?( int *a, int b ) { 14 14 return 0; 15 15 } -
src/tests/preempt.c
r28e58fd raf08051 16 16 }; 17 17 18 void ?{}( worker_t &this, int value ) {19 this .value = value;18 void ?{}( worker_t * this, int value ) { 19 this->value = value; 20 20 } 21 21 22 void main(worker_t &this) {22 void main(worker_t * this) { 23 23 while(counter < 1000) { 24 if( (counter % 7) == this .value ) {24 if( (counter % 7) == this->value ) { 25 25 int next = __atomic_add_fetch_4(&counter, 1, __ATOMIC_SEQ_CST); 26 26 if( (next % 100) == 0 ) printf("%d\n", next); -
src/tests/rational.c
r28e58fd raf08051 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 6 // 7 7 // rational.c -- test rational number package 8 // 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Mon Mar 28 08:43:12 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 21:40:11201713 // Update Count : 6 614 // 12 // Last Modified On : Wed May 17 15:46:35 2017 13 // Update Count : 65 14 // 15 15 16 16 #include <rational> … … 20 20 21 21 // UNNECESSARY, FIX ME 22 void ?{}( int & this ) {this = 0; }23 void ?{}( int & this, zero_t ) {this = 0; }24 void ?{}( int & this, one_t ) {this = 1; }22 void ?{}( int * this ) { *this = 0; } 23 void ?{}( int * this, zero_t ) { *this = 0; } 24 void ?{}( int * this, one_t ) { *this = 1; } 25 25 double convert( int i ) { return (double)i; } 26 26 int convert( double d ) { return (int)d; } … … 92 92 sout | x | endl; 93 93 94 sin | a |b;94 sin | &a | &b; 95 95 sout | a | b | endl; 96 96 } // main -
src/tests/sched-int-barge.c
r28e58fd raf08051 28 28 }; 29 29 30 void ?{} ( global_data_t &this ) {31 this .done = false;32 this .counter = 0;33 this .state = BARGE;30 void ?{} ( global_data_t * this ) { 31 this->done = false; 32 this->counter = 0; 33 this->state = BARGE; 34 34 35 this .do_signal = 6;36 this .do_wait1 = 1;37 this .do_wait2 = 3;35 this->do_signal = 6; 36 this->do_wait1 = 1; 37 this->do_wait2 = 3; 38 38 } 39 39 40 void ^?{} ( global_data_t &this ) {}40 void ^?{} ( global_data_t * this ) {} 41 41 42 42 global_t globalA; … … 48 48 thread Threads {}; 49 49 50 bool logicC( global_t & mutex a, global_t & mutex b, global_data_t &mutex c ) {51 c .counter++;50 bool logicC( global_t * mutex a, global_t * mutex b, global_data_t * mutex c ) { 51 c->counter++; 52 52 53 if( (c .counter % 1000) == 0 ) sout | c.counter | endl;53 if( (c->counter % 1000) == 0 ) sout | c->counter | endl; 54 54 55 int action = c .counter % 10;55 int action = c->counter % 10; 56 56 57 57 if( action == 0 ) { 58 c .do_signal = max( ((unsigned)rand48()) % 10, 1);59 c .do_wait1 = ((unsigned)rand48()) % (c.do_signal);60 c .do_wait2 = ((unsigned)rand48()) % (c.do_signal);58 c->do_signal = max( ((unsigned)rand48()) % 10, 1); 59 c->do_wait1 = ((unsigned)rand48()) % (c->do_signal); 60 c->do_wait2 = ((unsigned)rand48()) % (c->do_signal); 61 61 62 if(c .do_wait1 == c.do_wait2) sout | "Same" | endl;62 if(c->do_wait1 == c->do_wait2) sout | "Same" | endl; 63 63 } 64 64 65 if( action == c .do_wait1 || action == c.do_wait2 ) {66 c .state = WAIT;65 if( action == c->do_wait1 || action == c->do_wait2 ) { 66 c->state = WAIT; 67 67 wait( &cond ); 68 68 69 if(c .state != SIGNAL) {70 sout | "ERROR Barging detected" | c .counter | endl;69 if(c->state != SIGNAL) { 70 sout | "ERROR Barging detected" | c->counter | endl; 71 71 abort(); 72 72 } 73 73 } 74 else if( action == c .do_signal ) {75 c .state = SIGNAL;74 else if( action == c->do_signal ) { 75 c->state = SIGNAL; 76 76 77 77 signal( &cond ); … … 79 79 } 80 80 else { 81 c .state = BARGE;81 c->state = BARGE; 82 82 } 83 83 84 if( c .counter >= N ) c.done = true;85 return !c .done;84 if( c->counter >= N ) c->done = true; 85 return !c->done; 86 86 } 87 87 88 bool logicB( global_t & mutex a, global_t &mutex b ) {89 return logicC(a, b, globalC);88 bool logicB( global_t * mutex a, global_t * mutex b ) { 89 return logicC(a, b, &globalC); 90 90 } 91 91 92 bool logicA( global_t &mutex a ) {93 return logicB(a, globalB);92 bool logicA( global_t * mutex a ) { 93 return logicB(a, &globalB); 94 94 } 95 95 96 void main( Threads &this ) {97 while( logicA( globalA) ) { yield(); };96 void main( Threads* this ) { 97 while( logicA(&globalA) ) { yield(); }; 98 98 } 99 99 … … 101 101 102 102 int main(int argc, char* argv[]) { 103 104 105 106 107 108 103 rand48seed(0); 104 processor p; 105 { 106 Threads t[17]; 107 the_threads = (thread_desc*)t; 108 } 109 109 } -
src/tests/sched-int-block.c
r28e58fd raf08051 24 24 }; 25 25 26 void ?{} ( global_data_t &this ) {27 this .last_thread = NULL;28 this .last_signaller = NULL;26 void ?{} ( global_data_t * this ) { 27 this->last_thread = NULL; 28 this->last_signaller = NULL; 29 29 } 30 30 31 void ^?{} ( global_data_t &this ) {}31 void ^?{} ( global_data_t * this ) {} 32 32 33 33 global_data_t globalA, globalB; … … 38 38 39 39 //------------------------------------------------------------------------------ 40 void wait_op( global_data_t & mutex a, global_data_t &mutex b, unsigned i ) {40 void wait_op( global_data_t * mutex a, global_data_t * mutex b, unsigned i ) { 41 41 wait( &cond, (uintptr_t)this_thread ); 42 42 43 43 yield( ((unsigned)rand48()) % 10 ); 44 44 45 if(a .last_thread != a.last_signaller || b.last_thread != b.last_signaller ) {46 sout | "ERROR Barging detected, expected" | a .last_signaller | b.last_signaller | "got" | a.last_thread | b.last_thread | endl;45 if(a->last_thread != a->last_signaller || b->last_thread != b->last_signaller ) { 46 sout | "ERROR Barging detected, expected" | a->last_signaller | b->last_signaller | "got" | a->last_thread | b->last_thread | endl; 47 47 abort(); 48 48 } 49 49 50 a .last_thread = b.last_thread = this_thread;50 a->last_thread = b->last_thread = this_thread; 51 51 52 52 yield( ((unsigned)rand48()) % 10 ); … … 54 54 55 55 thread Waiter {}; 56 void main( Waiter &this ) {56 void main( Waiter* this ) { 57 57 for( int i = 0; i < N; i++ ) { 58 wait_op( globalA,globalB, i );58 wait_op( &globalA, &globalB, i ); 59 59 } 60 60 } 61 61 62 62 //------------------------------------------------------------------------------ 63 void signal_op( global_data_t & mutex a, global_data_t &mutex b ) {63 void signal_op( global_data_t * mutex a, global_data_t * mutex b ) { 64 64 yield( ((unsigned)rand48()) % 10 ); 65 65 66 [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller]= this_thread;66 a->last_thread = b->last_thread = a->last_signaller = b->last_signaller = this_thread; 67 67 68 68 if( !is_empty( &cond ) ) { … … 77 77 yield( ((unsigned)rand48()) % 10 ); 78 78 79 if(a .last_thread != next || b.last_thread != next) {80 sout | "ERROR Barging detected, expected" | next | "got" | a .last_thread | b.last_thread | endl;79 if(a->last_thread != next || b->last_thread != next) { 80 sout | "ERROR Barging detected, expected" | next | "got" | a->last_thread | b->last_thread | endl; 81 81 abort(); 82 82 } … … 86 86 87 87 thread Signaller {}; 88 void main( Signaller &this ) {88 void main( Signaller* this ) { 89 89 while( !done ) { 90 signal_op( globalA,globalB );90 signal_op( &globalA, &globalB ); 91 91 } 92 92 } 93 93 94 94 //------------------------------------------------------------------------------ 95 void barge_op( global_data_t &mutex a ) {96 a .last_thread = this_thread;95 void barge_op( global_data_t * mutex a ) { 96 a->last_thread = this_thread; 97 97 } 98 98 99 99 thread Barger {}; 100 void main( Barger &this ) {100 void main( Barger* this ) { 101 101 for( unsigned i = 0; !done; i++ ) { 102 102 //Choose some monitor to barge into with some irregular pattern 103 103 bool choose_a = (i % 13) > (i % 17); 104 if ( choose_a ) barge_op( globalA ); 105 else barge_op( globalB ); 104 barge_op( choose_a ? &globalA : &globalB ); 106 105 } 107 106 } -
src/tests/sched-int-disjoint.c
r28e58fd raf08051 20 20 21 21 monitor global_data_t; 22 void ?{}( global_data_t &this );23 void ^?{} ( global_data_t &this );22 void ?{}( global_data_t * this ); 23 void ^?{} ( global_data_t * this ); 24 24 25 25 monitor global_data_t { … … 32 32 volatile bool all_done; 33 33 34 void ?{}( global_data_t &this ) {35 this .counter == 0;36 this .state = BARGE;34 void ?{}( global_data_t * this ) { 35 this->counter == 0; 36 this->state = BARGE; 37 37 } 38 38 39 void ^?{} ( global_data_t &this ) {}39 void ^?{} ( global_data_t * this ) {} 40 40 41 41 //------------------------------------------------------------------------------ 42 42 // Barging logic 43 void barge( global_data_t &mutex d ) {44 d .state = BARGE;43 void barge( global_data_t * mutex d ) { 44 d->state = BARGE; 45 45 } 46 46 47 47 thread Barger {}; 48 48 49 void main( Barger &this ) {49 void main( Barger * this ) { 50 50 while( !all_done ) { 51 barge( data );51 barge( &data ); 52 52 yield(); 53 53 } … … 56 56 //------------------------------------------------------------------------------ 57 57 // Waiting logic 58 bool wait( global_t & mutex m, global_data_t &mutex d ) {58 bool wait( global_t * mutex m, global_data_t * mutex d ) { 59 59 wait( &cond ); 60 if( d .state != SIGNAL ) {60 if( d->state != SIGNAL ) { 61 61 sout | "ERROR barging!" | endl; 62 62 } 63 63 64 d .counter++;64 d->counter++; 65 65 66 if( (d .counter % 1000) == 0 ) sout | d.counter | endl;66 if( (d->counter % 1000) == 0 ) sout | d->counter | endl; 67 67 68 return d .counter < N;68 return d->counter < N; 69 69 } 70 70 71 71 thread Waiter {}; 72 72 73 void main( Waiter &this ) {74 while( wait( mut,data ) ) { yield(); }73 void main( Waiter * this ) { 74 while( wait( &mut, &data ) ) { yield(); } 75 75 } 76 76 … … 78 78 //------------------------------------------------------------------------------ 79 79 // Signalling logic 80 void signal( condition * cond, global_t & mutex a, global_data_t &mutex b ) {81 b .state = SIGNAL;80 void signal( condition * cond, global_t * mutex a, global_data_t * mutex b ) { 81 b->state = SIGNAL; 82 82 signal( cond ); 83 83 } 84 84 85 void logic( global_t &mutex a ) {86 signal( &cond, a, data );85 void logic( global_t * mutex a ) { 86 signal( &cond, a, &data ); 87 87 88 88 yield( (unsigned)rand48() % 10 ); … … 97 97 thread Signaller {}; 98 98 99 void main( Signaller &this ) {99 void main( Signaller * this ) { 100 100 while( !all_done ) { 101 logic( mut );101 logic( &mut ); 102 102 yield(); 103 103 } -
src/tests/sched-int-wait.c
r28e58fd raf08051 33 33 //---------------------------------------------------------------------------------------------------- 34 34 // Tools 35 void signal( condition * cond, global_t & mutex a, global_t &mutex b ) {35 void signal( condition * cond, global_t * mutex a, global_t * mutex b ) { 36 36 signal( cond ); 37 37 } 38 38 39 void signal( condition * cond, global_t & mutex a, global_t & mutex b, global_t &mutex c ) {39 void signal( condition * cond, global_t * mutex a, global_t * mutex b, global_t * mutex c ) { 40 40 signal( cond ); 41 41 } 42 42 43 void wait( condition * cond, global_t & mutex a, global_t &mutex b ) {43 void wait( condition * cond, global_t * mutex a, global_t * mutex b ) { 44 44 wait( cond ); 45 45 } 46 46 47 void wait( condition * cond, global_t & mutex a, global_t & mutex b, global_t &mutex c ) {47 void wait( condition * cond, global_t * mutex a, global_t * mutex b, global_t * mutex c ) { 48 48 wait( cond ); 49 49 } … … 51 51 //---------------------------------------------------------------------------------------------------- 52 52 // Signaler 53 void main( Signaler &this ) {53 void main( Signaler* this ) { 54 54 55 55 while( waiter_left != 0 ) { … … 57 57 switch( action ) { 58 58 case 0: 59 signal( &condABC, globalA, globalB,globalC );59 signal( &condABC, &globalA, &globalB, &globalC ); 60 60 break; 61 61 case 1: 62 signal( &condAB , globalA,globalB );62 signal( &condAB , &globalA, &globalB ); 63 63 break; 64 64 case 2: 65 signal( &condBC , globalB,globalC );65 signal( &condBC , &globalB, &globalC ); 66 66 break; 67 67 case 3: 68 signal( &condAC , globalA,globalC );68 signal( &condAC , &globalA, &globalC ); 69 69 break; 70 70 default: … … 78 78 //---------------------------------------------------------------------------------------------------- 79 79 // Waiter ABC 80 void main( WaiterABC &this ) {80 void main( WaiterABC* this ) { 81 81 for( int i = 0; i < N; i++ ) { 82 wait( &condABC, globalA, globalB,globalC );82 wait( &condABC, &globalA, &globalB, &globalC ); 83 83 } 84 84 … … 88 88 //---------------------------------------------------------------------------------------------------- 89 89 // Waiter AB 90 void main( WaiterAB &this ) {90 void main( WaiterAB* this ) { 91 91 for( int i = 0; i < N; i++ ) { 92 wait( &condAB , globalA,globalB );92 wait( &condAB , &globalA, &globalB ); 93 93 } 94 94 … … 98 98 //---------------------------------------------------------------------------------------------------- 99 99 // Waiter AC 100 void main( WaiterAC &this ) {100 void main( WaiterAC* this ) { 101 101 for( int i = 0; i < N; i++ ) { 102 wait( &condAC , globalA,globalC );102 wait( &condAC , &globalA, &globalC ); 103 103 } 104 104 … … 108 108 //---------------------------------------------------------------------------------------------------- 109 109 // Waiter BC 110 void main( WaiterBC &this ) {110 void main( WaiterBC* this ) { 111 111 for( int i = 0; i < N; i++ ) { 112 wait( &condBC , globalB,globalC );112 wait( &condBC , &globalB, &globalC ); 113 113 } 114 114 -
src/tests/swap.c
r28e58fd raf08051 7 7 // swap.c -- 8 8 // 9 // Author : Peter A. Buhr9 // Author : Richard C. Bilson 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 20:34:45 201713 // Update Count : 7012 // Last Modified On : Thu Apr 21 08:10:41 2016 13 // Update Count : 69 14 14 // 15 15 … … 20 20 char c1 = 'a', c2 = 'b'; 21 21 sout | "char\t\t\t" | c1 | ' ' | c2 | "\t\t\tswap "; 22 swap( c1,c2 );22 swap( &c1, &c2 ); 23 23 sout | '\t' | c1 | ' ' | c2 | endl; 24 24 25 25 signed int i1 = -1, i2 = -2; 26 26 sout | "signed int\t\t" | i1 | i2 | "\t\t\tswap "; 27 swap( i1,i2 );27 swap( &i1, &i2 ); 28 28 sout | '\t' | i1 | i2 | endl; 29 29 30 30 unsigned int ui1 = 1, ui2 = 2; 31 31 sout | "unsigned int\t\t" | ui1 | ui2 | "\t\t\tswap "; 32 swap( ui1,ui2 );32 swap( &ui1, &ui2 ); 33 33 sout | '\t' | ui1 | ui2 | endl; 34 34 35 35 signed long int li1 = -1, li2 = -2; 36 36 sout | "signed long int\t\t" | li1 | li2 | "\t\t\tswap "; 37 swap( li1,li2 );37 swap( &li1, &li2 ); 38 38 sout | '\t' | li1 | li2 | endl; 39 39 40 40 unsigned long int uli1 = 1, uli2 = 2; 41 41 sout | "unsigned long int\t" | uli1 | uli2 | "\t\t\tswap "; 42 swap( uli1,uli2 );42 swap( &uli1, &uli2 ); 43 43 sout | '\t' | uli1 | uli2 | endl; 44 44 45 45 signed long long int lli1 = -1, lli2 = -2; 46 46 sout | "signed long long int\t" | lli1 | lli2 | "\t\t\tswap "; 47 swap( lli1,lli2 );47 swap( &lli1, &lli2 ); 48 48 sout | '\t' | lli1 | lli2 | endl; 49 49 50 50 unsigned long long int ulli1 = 1, ulli2 = 2; 51 51 sout | "unsigned long long int\t" | ulli1 | ulli2 | "\t\t\tswap "; 52 swap( ulli1,ulli2 );52 swap( &ulli1, &ulli2 ); 53 53 sout | '\t' | ulli1 | ulli2 | endl; 54 54 55 55 float f1 = 1.5, f2 = 2.5; 56 56 sout | "float\t\t\t" | f1 | f2 | "\t\t\tswap "; 57 swap( f1,f2 );57 swap( &f1, &f2 ); 58 58 sout | '\t' | f1 | f2 | endl; 59 59 60 60 double d1 = 1.5, d2 = 2.5; 61 61 sout | "double\t\t\t" | d1 | d2 | "\t\t\tswap "; 62 swap( d1,d2 );62 swap( &d1, &d2 ); 63 63 sout | '\t' | d1 | d2 | endl; 64 64 65 65 long double ld1 = 1.5, ld2 = 2.5; 66 66 sout | "long double\t\t" | ld1 | ld2 | "\t\t\tswap "; 67 swap( ld1,ld2 );67 swap( &ld1, &ld2 ); 68 68 sout | '\t' | ld1 | ld2 | endl; 69 69 70 70 float _Complex fc1 = 1.5f+1.5if, fc2 = 2.5f+2.5if; 71 71 sout | "float _Complex\t\t" | fc1 | fc2 | "\tswap "; 72 swap( fc1,fc2 );72 swap( &fc1, &fc2 ); 73 73 sout | '\t' | fc1 | fc2 | endl; 74 74 75 75 double _Complex dc1 = 1.5d+1.5id, dc2 = 2.5d+2.5id; 76 76 sout | "double _Complex\t\t" | dc1 | dc2 | "\tswap "; 77 swap( dc1,dc2 );77 swap( &dc1, &dc2 ); 78 78 sout | '\t' | dc1 | dc2 | endl; 79 79 80 80 long double _Complex ldc1 = 1.5d+1.5il, ldc2 = 2.5d+2.5il; 81 81 sout | "long double _Complex\t" | ldc1 | ldc2 | "\tswap "; 82 swap( ldc1,ldc2 );82 swap( &ldc1, &ldc2 ); 83 83 sout | '\t' | ldc1 | ldc2 | endl; 84 84 … … 86 86 ofstream * ?|?( ofstream * os, S s ) { return os | s.i | s.j; } 87 87 sout | "struct S\t\t" | s1 | "," | s2 | "\t\tswap "; 88 swap( s1,s2 );88 swap( &s1, &s2 ); 89 89 sout | '\t' | s1 | "," | s2 | endl; 90 90 } // main -
src/tests/test.py
r28e58fd raf08051 31 31 # parses the Makefile to find the machine type (32-bit / 64-bit) 32 32 def getMachineType(): 33 sh('echo "void ?{}(int &a,int b){}int main(){return 0;}" > .dummy.c')33 sh('echo "void ?{}(int*a,int b){}int main(){return 0;}" > .dummy.c') 34 34 ret, out = sh("make .dummy -s", print2stdout=True) 35 35 … … 174 174 if make_ret == 0 : 175 175 # fetch optional input 176 stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test. name) else ""176 stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test.path) else "" 177 177 178 178 if fileIsExecutable(test.name) : -
src/tests/thread.c
r28e58fd raf08051 7 7 thread Second { semaphore* lock; }; 8 8 9 void ?{}( First & this, semaphore & lock ) { this.lock = &lock; }10 void ?{}( Second & this, semaphore & lock ) { this.lock = &lock; }9 void ?{}( First * this, semaphore* lock ) { this->lock = lock; } 10 void ?{}( Second * this, semaphore* lock ) { this->lock = lock; } 11 11 12 void main(First &this) {12 void main(First* this) { 13 13 for(int i = 0; i < 10; i++) { 14 14 sout | "First : Suspend No." | i + 1 | endl; 15 15 yield(); 16 16 } 17 V(this .lock);17 V(this->lock); 18 18 } 19 19 20 void main(Second &this) {21 P(this .lock);20 void main(Second* this) { 21 P(this->lock); 22 22 for(int i = 0; i < 10; i++) { 23 23 sout | "Second : Suspend No." | i + 1 | endl; … … 33 33 processor p; 34 34 { 35 First f = { lock };36 Second s = { lock };35 First f = { &lock }; 36 Second s = { &lock }; 37 37 } 38 38 } -
src/tests/tupleAssign.c
r28e58fd raf08051 48 48 int z; 49 49 } x; 50 X ?=?(X &x, double d) {}50 X ?=?(X * x, double d) {} 51 51 [int, double, int] t; 52 52 -
src/tests/tupleMember.c
r28e58fd raf08051 34 34 } v; 35 35 36 V &h() {36 lvalue V h() { 37 37 static V local = { 111, { 222, 333 }, 444.5 }; 38 38 return local; -
src/tests/tupleVariadic.c
r28e58fd raf08051 29 29 } 30 30 31 forall( dtype T, ttype Params | sized(T) | { void ?{}(T &, Params); } )31 forall( dtype T, ttype Params | sized(T) | { void ?{}(T *, Params); } ) 32 32 T * new(Params p); 33 33 … … 38 38 39 39 // xxx - eventually this will be collapsed...x 40 void ?{}(array &a) {41 a .size = 0;42 a .data = 0;40 void ?{}(array * a) { 41 a->size = 0; 42 a->data = 0; 43 43 printf("called ?{} with no a\n"); 44 44 } 45 45 46 void ?{}(array &a, int a0) {47 a .size = 1;48 a .data = (int*)malloc(sizeof(int)*a.size);49 a .data[0] = a0;46 void ?{}(array * a, int a0) { 47 a->size = 1; 48 a->data = (int*)malloc(sizeof(int)*a->size); 49 a->data[0] = a0; 50 50 printf("called ?{} with a: %d\n", a0); 51 51 } 52 52 53 void ?{}(array &a, int a0, int a1) {54 a .size = 2;55 a .data = (int*)malloc(sizeof(int)*a.size);56 a .data[0] = a0;57 a .data[1] = a1;53 void ?{}(array * a, int a0, int a1) { 54 a->size = 2; 55 a->data = (int*)malloc(sizeof(int)*a->size); 56 a->data[0] = a0; 57 a->data[1] = a1; 58 58 printf("called ?{} with a: %d %d\n", a0, a1); 59 59 } 60 60 61 void ?{}(array &a, int a0, int a1, int a2) {62 a .size = 3;63 a .data = (int*)malloc(sizeof(int)*a.size);64 a .data[0] = a0;65 a .data[1] = a1;66 a .data[2] = a2;61 void ?{}(array * a, int a0, int a1, int a2) { 62 a->size = 3; 63 a->data = (int*)malloc(sizeof(int)*a->size); 64 a->data[0] = a0; 65 a->data[1] = a1; 66 a->data[2] = a2; 67 67 printf("called ?{} with a: %d %d %d\n", a0, a1, a2); 68 68 } 69 69 70 70 // test use of a tuple argument 71 [void] ?{}(array &a, [int, int, int, int] args) {71 [void] ?{}(array * a, [int, int, int, int] args) { 72 72 int a0, a1, a2, a3; 73 73 [a0, a1, a2, a3] = args; 74 a .size = 4;75 a .data = malloc(sizeof(int)*a.size);76 a .data[0] = a0;77 a .data[1] = a1;78 a .data[2] = a2;79 a .data[3] = a3;74 a->size = 4; 75 a->data = malloc(sizeof(int)*a->size); 76 a->data[0] = a0; 77 a->data[1] = a1; 78 a->data[2] = a2; 79 a->data[3] = a3; 80 80 printf("called ?{} with a: %d %d %d %d\n", a0, a1, a2, a3); 81 81 } -
src/tests/vector/array.h
r28e58fd raf08051 21 21 // element has index 0. 22 22 trait array( otype array_type, otype elt_type ) { 23 elt_type &?[?]( array_type, int );23 lvalue elt_type ?[?]( array_type, int ); 24 24 }; 25 25 -
src/tests/vector/vector_int.c
r28e58fd raf08051 20 20 #define DEFAULT_CAPACITY 20 21 21 22 void ?{}( vector_int &vec ) {22 void ?{}( vector_int * vec ) { 23 23 vec { DEFAULT_CAPACITY }; 24 24 } 25 25 26 void ?{}( vector_int &vec, int reserve ) {27 vec .last = -1;28 vec .capacity = reserve;29 vec .data = malloc( sizeof( int ) * reserve );26 void ?{}( vector_int * vec, int reserve ) { 27 vec->last = -1; 28 vec->capacity = reserve; 29 vec->data = malloc( sizeof( int ) * reserve ); 30 30 } 31 31 32 void ?{}( vector_int &vec, vector_int other ) {33 vec .last = other.last;34 vec .capacity = other.capacity;35 vec .data = malloc( sizeof( int ) * other.capacity );36 for (int i = 0; i < vec .last; i++) {37 vec .data[i] = other.data[i];32 void ?{}( vector_int * vec, vector_int other ) { 33 vec->last = other.last; 34 vec->capacity = other.capacity; 35 vec->data = malloc( sizeof( int ) * other.capacity ); 36 for (int i = 0; i < vec->last; i++) { 37 vec->data[i] = other.data[i]; 38 38 } 39 39 } 40 40 41 void ^?{}( vector_int &vec ) {42 free( vec .data );41 void ^?{}( vector_int * vec ) { 42 free( vec->data ); 43 43 } 44 44 … … 61 61 // implement bounded_array 62 62 63 int &?[?]( vector_int * vec, int index ) {63 lvalue int ?[?]( vector_int * vec, int index ) { 64 64 return vec->data[ index ]; 65 65 } -
src/tests/vector/vector_int.h
r28e58fd raf08051 24 24 } vector_int; 25 25 26 void ?{}( vector_int &); // allocate vector with default capacity27 void ?{}( vector_int &, int reserve ); // allocate vector with specified capacity28 void ?{}( vector_int & vec, vector_int other );// copy constructor29 void ^?{}( vector_int & );// deallocate vector's storage26 void ?{}( vector_int * ); // allocate vector with default capacity 27 void ?{}( vector_int *, int reserve ); // allocate vector with specified capacity 28 void ?{}( vector_int * vec, vector_int other ); // copy constructor 29 void ^?{}( vector_int * ); // deallocate vector's storage 30 30 31 31 void reserve( vector_int *vec, int reserve ); // reserve more capacity … … 34 34 // implement bounded_array 35 35 36 int & ?[?]( vector_int * vec, int index );// access to arbitrary element (does not resize)37 int last( vector_int * vec ); 36 lvalue int ?[?]( vector_int * vec, int index ); // access to arbitrary element (does not resize) 37 int last( vector_int * vec ); // return last element 38 38 39 39 // Local Variables: // -
src/tests/vector/vector_test.c
r28e58fd raf08051 9 9 // Author : Richard C. Bilson 10 10 // Created On : Wed May 27 17:56:53 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Aug 24 08:15:38 201713 // Update Count : 1 911 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Apr 27 17:31:27 2016 13 // Update Count : 18 14 14 // 15 15 … … 27 27 sout | "enter N elements and C-d on a separate line:" | endl; 28 28 for ( ;; ) { 29 sin | num;29 sin | # 30 30 if ( fail( sin ) || eof( sin ) ) break; 31 31 append( &vec, num );
Note:
See TracChangeset
for help on using the changeset viewer.