Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    rd06c808 rb0837e4  
    312312                Cost convCost = conversionCost( actualType, formalType, indexer, env );
    313313                PRINT(
    314                         std::cerr << std::endl << "cost is " << convCost << std::endl;
     314                        std::cerr << std::endl << "cost is" << convCost << std::endl;
    315315                )
    316316                if ( convCost == Cost::infinity ) {
     
    318318                }
    319319                convCost.incPoly( polyCost( formalType, env, indexer ) + polyCost( actualType, env, indexer ) );
    320                 PRINT(
    321                         std::cerr << "cost with polycost is " << convCost << std::endl;
    322                 )
    323320                return convCost;
    324321        }
     
    373370                                if ( function->get_isVarArgs() ) {
    374371                                        convCost.incUnsafe();
    375                                         PRINT( std::cerr << "end of formals with varargs function: inc unsafe: " << convCost << std::endl; ; )
    376372                                        // convert reference-typed expressions to value-typed expressions
    377373                                        referenceToRvalueConversion( *actualExpr );
     
    382378                        }
    383379                        Type * formalType = (*formal)->get_type();
     380                        PRINT(
     381                                std::cerr << std::endl << "converting ";
     382                                actualType->print( std::cerr, 8 );
     383                                std::cerr << std::endl << " to ";
     384                                formalType->print( std::cerr, 8 );
     385                                std::cerr << std::endl << "environment is: ";
     386                                alt.env.print( std::cerr, 8 );
     387                                std::cerr << std::endl;
     388                        )
    384389                        convCost += computeExpressionConversionCost( *actualExpr, formalType, indexer, alt.env );
    385390                        ++formal; // can't be in for-loop update because of the continue
Note: See TracChangeset for help on using the changeset viewer.