Changeset d06c808 for src/ResolvExpr


Ignore:
Timestamp:
Nov 8, 2017, 10:49:46 AM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6fa9e71, f5c3b6c
Parents:
9f4524b
Message:

Update debug print in AlternativeFinder?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r9f4524b rd06c808  
    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                )
    320323                return convCost;
    321324        }
     
    370373                                if ( function->get_isVarArgs() ) {
    371374                                        convCost.incUnsafe();
     375                                        PRINT( std::cerr << "end of formals with varargs function: inc unsafe: " << convCost << std::endl; ; )
    372376                                        // convert reference-typed expressions to value-typed expressions
    373377                                        referenceToRvalueConversion( *actualExpr );
     
    378382                        }
    379383                        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                         )
    389384                        convCost += computeExpressionConversionCost( *actualExpr, formalType, indexer, alt.env );
    390385                        ++formal; // can't be in for-loop update because of the continue
Note: See TracChangeset for help on using the changeset viewer.