_ZN4Ogre15CompositionPass15setThreadGroupsERKNS_6VectorILi3EiEE:
  315|    129|        void setThreadGroups(const Vector3i& g) { mThreadGroups = g; }
_ZN4Ogre15CompositionPass13setCameraNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  318|  5.24k|        void setCameraName(const String& name) { mRenderScene.cameraName = name; }
_ZN4Ogre15CompositionPass8InputTexC2Ev:
  240|  96.6k|            InputTex() : mrtIndex(0) {}
_ZN4Ogre15CompositionPass12MaterialDataC2Ev:
  340|  6.03k|            MaterialData() : identifier(0) {}
_ZN4Ogre15CompositionPass15RenderSceneDataC2Ev:
  358|  6.03k|                : firstRenderQueue(RENDER_QUEUE_BACKGROUND), lastRenderQueue(RENDER_QUEUE_TRANSPARENTS),
  359|  6.03k|                  alignCameraToFace(false)
  360|  6.03k|            {
  361|  6.03k|            }
_ZN4Ogre15CompositionPass9ClearDataC2Ev:
  379|  6.03k|                : buffers(FBT_COLOUR | FBT_DEPTH), colour(ColourValue::ZERO), automaticColour(false),
  380|  6.03k|                  depth(1.0f), stencil(0)
  381|  6.03k|            {
  382|  6.03k|            }
_ZN4Ogre15CompositionPass8QuadDataC2Ev:
  401|  6.03k|                : cornerModified(false), rect(-1, 1, 1, -1), farCorners(false), farCornersViewSpace(false)
  402|  6.03k|            {
  403|  6.03k|            }

_ZN4Ogre21CompositionTargetPass14setOutputSliceEi:
   75|  1.23k|        void setOutputSlice(int slice) { mOutputSlice = slice; }
_ZNK4Ogre21CompositionTargetPass9getPassesEv:
  141|    133|        const Passes& getPasses() const {
  142|    133|            return mPasses;
  143|    133|        }

_ZN4Ogre17GpuProgramManager16createParametersEv:
  163|    867|        static GpuProgramParametersPtr createParameters(void) { return std::make_shared<GpuProgramParameters>(); }

_ZNK4Ogre15GpuProgramUsage7getTypeEv:
  102|  52.2k|        GpuProgramType getType(void) const { return mType; }
_ZNK4Ogre15GpuProgramUsage14getProgramNameEv:
  125|  52.0k|        const String& getProgramName(void) const { return mProgram->getName(); }

_ZNK4Ogre11LodStrategy7getNameEv:
  103|      8|        const String& getName() const { return mName; }

_ZN4Ogre13OptimisedUtilC2Ev:
   64|      2|        OptimisedUtil(void) {}

_ZN4Ogre34RenderSystemCapabilitiesSerializer22addCapabilitiesMappingERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_12CapabilitiesE:
  100|     43|        {
  101|     43|            mCapabilitiesMap.emplace(name, cap);
  102|     43|        }
_ZN4Ogre34RenderSystemCapabilitiesSerializer14addKeywordTypeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS0_21CapabilityKeywordTypeE:
  117|     31|        {
  118|     31|            mKeywordTypeMap.emplace(keyword, type);
  119|     31|        }
_ZN4Ogre34RenderSystemCapabilitiesSerializer18addSetStringMethodERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEMNS_24RenderSystemCapabilitiesEFvS9_E:
  132|      4|        {
  133|      4|            mSetStringMethodDispatchTable.emplace(keyword, method);
  134|      4|        }
_ZN4Ogre34RenderSystemCapabilitiesSerializer15addSetIntMethodERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEMNS_24RenderSystemCapabilitiesEFvtE:
  152|     10|        {
  153|     10|            mSetIntMethodDispatchTable.emplace(keyword, method);
  154|     10|        }
_ZN4Ogre34RenderSystemCapabilitiesSerializer16addSetBoolMethodERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEMNS_24RenderSystemCapabilitiesEFvbE:
  172|      1|        {
  173|      1|            mSetBoolMethodDispatchTable.emplace(keyword, method);
  174|      1|        }
_ZN4Ogre34RenderSystemCapabilitiesSerializer16addSetRealMethodERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEMNS_24RenderSystemCapabilitiesEFvfE:
  192|      1|        {
  193|      1|            mSetRealMethodDispatchTable.emplace(keyword, method);
  194|      1|        }

_ZNK4Ogre15ResourceManager15getLoadingOrderEv:
  383|  1.88k|        Real getLoadingOrder(void) const override { return mLoadOrder; }

_ZN4Ogre22ScriptCompilerListenerD2Ev:
  383|      1|        virtual ~ScriptCompilerListener() {}

_ZN4Ogre16ScriptTranslator7getRealERKNS_9SharedPtrINS_12AbstractNodeEEEPf:
   72|  59.7k|        {
   73|  59.7k|#if OGRE_DOUBLE_PRECISION == 0
   74|  59.7k|            return getFloat(node, result);
   75|       |#else
   76|       |            return getDouble(node, result);
   77|       |#endif
   78|  59.7k|        }

_ZN4Ogre9SharedPtrINSt3__14listINS0_INS_12ConcreteNodeEEENS1_9allocatorIS4_EEEEEC2IS7_EERKNS1_10shared_ptrIT_EE:
   59|     75|        SharedPtr(const shared_ptr<Y>& r) : shared_ptr<T>(r) {}
_ZN4Ogre9SharedPtrINS_10DataStreamEEC2INS_16MemoryDataStreamEEEPT_:
   50|    327|        explicit SharedPtr(Y* ptr) : shared_ptr<T>(ptr) {}

_ZN4Ogre7TextureD2Ev:
  144|    569|        virtual ~Texture() {}

_ZN4Ogre21DefaultTextureManager10createImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmS9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
  446|    569|        {
  447|    569|            return new NullTexture(this, name, handle, group);
  448|    569|        }
_ZN4Ogre21DefaultTextureManager11NullTextureC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEmSC_:
  435|    569|                : Texture(creator, name, handle, group)
  436|    569|            {
  437|    569|            }
_ZN4Ogre14TextureManager20getDefaultNumMipmapsEv:
  399|    998|        {
  400|    998|            return mDefaultNumMipmaps;
  401|    998|        }
_ZN4Ogre14TextureManager18_createSamplerImplEv:
  416|     92|        virtual SamplerPtr _createSamplerImpl() { return std::make_shared<Sampler>(); }

_ZN4Ogre9ASTCCodec7startupEv:
  165|      1|	{
  166|      1|		if (!msInstance)
  ------------------
  |  Branch (166:7): [True: 1, False: 0]
  ------------------
  167|      1|		{
  168|      1|			msInstance = OGRE_NEW ASTCCodec();
  169|      1|			Codec::registerCodec(msInstance);
  170|      1|		}
  171|       |
  172|      1|        LogManager::getSingleton().logMessage(LML_NORMAL,
  173|      1|                                              "ASTC codec registering");
  174|      1|	}
_ZN4Ogre9ASTCCodecC2Ev:
  187|      1|        mType("astc")
  188|      1|    { 
  189|      1|    }
_ZNK4Ogre9ASTCCodec7getTypeEv:
  273|      1|    {
  274|      1|        return mType;
  275|      1|    }

_ZN4Ogre14ArchiveManager12getSingletonEv:
   40|      3|    {  
   41|       |        assert( msSingleton );  return ( *msSingleton );  
   42|      3|    }
_ZN4Ogre14ArchiveManagerC2Ev:
   45|      1|    {
   46|      1|    }
_ZN4Ogre14ArchiveManager17addArchiveFactoryEPNS_14ArchiveFactoryE:
  126|      3|    {
  127|      3|        mArchFactories.emplace(factory->getType(), factory);
  128|      3|        LogManager::getSingleton().logMessage("ArchiveFactory for type '" + factory->getType() + "' registered");
  129|      3|    }

_ZNK4Ogre21BillboardChainFactory7getTypeEv:
  710|      3|    {
  711|      3|        return MOT_BILLBOARD_CHAIN;
  712|      3|    }

_ZNK4Ogre19BillboardSetFactory7getTypeEv:
 1038|      3|    {
 1039|      3|        return MOT_BILLBOARD_SET;
 1040|      3|    }

_ZN4Ogre5Codec13registerCodecEPS0_:
   62|      6|    {
   63|      6|        auto ret = msMapCodecs.emplace(pCodec->getType(), pCodec);
   64|      6|        if (!ret.second)
  ------------------
  |  Branch (64:13): [True: 0, False: 6]
  ------------------
   65|       |            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, pCodec->getType() + " already has a registered codec");
   66|      6|    }

_ZN4Ogre15CompositionPassC2EPNS_21CompositionTargetPassE:
   34|  6.03k|    mParent(parent),
   35|  6.03k|    mType(PT_RENDERQUAD)
   36|  6.03k|{
   37|  6.03k|}
_ZN4Ogre15CompositionPassD2Ev:
   40|  6.03k|{
   41|  6.03k|}
_ZN4Ogre15CompositionPass7setTypeENS0_8PassTypeE:
   44|  6.03k|{
   45|  6.03k|    mType = type;
   46|  6.03k|}
_ZNK4Ogre15CompositionPass7getTypeEv:
   49|  6.03k|{
   50|  6.03k|    return mType;
   51|  6.03k|}
_ZN4Ogre15CompositionPass13setIdentifierEj:
   54|      4|{
   55|      4|    mMaterial.identifier = id;
   56|      4|}
_ZN4Ogre15CompositionPass11setMaterialERKNS_9SharedPtrINS_8MaterialEEE:
   64|  59.2k|{
   65|  59.2k|    mMaterial.material = mat;
   66|  59.2k|}
_ZN4Ogre15CompositionPass15setClearBuffersEj:
   79|    258|{
   80|    258|    mClear.buffers = val;
   81|    258|}
_ZN4Ogre15CompositionPass17setMaterialSchemeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  165|    128|{
  166|    128|    mRenderScene.materialScheme = schemeName;
  167|    128|}

_ZN4Ogre21CompositionTargetPassC2EPNS_20CompositionTechniqueE:
   35|  2.90k|    mParent(parent),
   36|  2.90k|    mInputMode(IM_NONE),
   37|  2.90k|    mOnlyInitial(false),
   38|  2.90k|    mVisibilityMask(0xFFFFFFFF),
   39|  2.90k|    mLodBias(1.0f),
   40|  2.90k|    mMaterialScheme(MaterialManager::DEFAULT_SCHEME_NAME), 
   41|  2.90k|    mShadowsEnabled(true),
   42|  2.90k|    mOutputSlice(0)
   43|  2.90k|{
   44|  2.90k|    if (Root::getSingleton().getRenderSystem())
  ------------------
  |  Branch (44:9): [True: 0, False: 2.90k]
  ------------------
   45|      0|    {
   46|      0|        mMaterialScheme = Root::getSingleton().getRenderSystem()->_getDefaultViewportMaterialScheme();
   47|      0|    }
   48|  2.90k|}
_ZN4Ogre21CompositionTargetPassD2Ev:
   51|  2.90k|{
   52|  2.90k|    removeAllPasses();
   53|  2.90k|}
_ZN4Ogre21CompositionTargetPass12setInputModeENS0_9InputModeE:
   56|     19|{
   57|     19|    mInputMode = mode;
   58|     19|}
_ZNK4Ogre21CompositionTargetPass12getInputModeEv:
   61|      2|{
   62|      2|    return mInputMode;
   63|      2|}
_ZN4Ogre21CompositionTargetPass13setOutputNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   66|  1.43k|{
   67|  1.43k|    mOutputName = out;
   68|  1.43k|}
_ZN4Ogre21CompositionTargetPass17setMaterialSchemeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  106|     67|{
  107|     67|    mMaterialScheme = schemeName;
  108|     67|}
_ZN4Ogre21CompositionTargetPass10createPassENS_15CompositionPass8PassTypeE:
  126|  6.03k|{
  127|       |    CompositionPass *t = OGRE_NEW CompositionPass(this);
  128|  6.03k|    t->setType(type);
  129|  6.03k|    mPasses.push_back(t);
  130|  6.03k|    return t;
  131|  6.03k|}
_ZN4Ogre21CompositionTargetPass15removeAllPassesEv:
  143|  2.90k|{
  144|  2.90k|    for (auto p : mPasses)
  ------------------
  |  Branch (144:17): [True: 6.03k, False: 2.90k]
  ------------------
  145|  6.03k|    {
  146|       |        OGRE_DELETE (p);
  147|  6.03k|    }
  148|  2.90k|    mPasses.clear();
  149|  2.90k|}

_ZN4Ogre20CompositionTechniqueC2EPNS_10CompositorE:
   34|  1.47k|    mParent(parent)
   35|  1.47k|{
   36|       |    mOutputTarget = OGRE_NEW CompositionTargetPass(this);
   37|  1.47k|}
_ZN4Ogre20CompositionTechniqueD2Ev:
   40|  1.47k|{
   41|  1.47k|    removeAllTextureDefinitions();
   42|  1.47k|    removeAllTargetPasses();
   43|       |    OGRE_DELETE  mOutputTarget;
   44|  1.47k|}
_ZN4Ogre20CompositionTechnique23createTextureDefinitionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   47|  1.91k|{
   48|  1.91k|    if(getTextureDefinition(name))
  ------------------
  |  Branch (48:8): [True: 286, False: 1.63k]
  ------------------
   49|  1.91k|        OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, "Texture '"+name+"' already exists");
   50|       |
   51|  1.63k|    TextureDefinition *t = OGRE_NEW TextureDefinition();
   52|  1.63k|    t->name = name;
   53|  1.63k|    mTextureDefinitions.push_back(t);
   54|  1.63k|    return t;
   55|  1.91k|}
_ZNK4Ogre20CompositionTechnique20getTextureDefinitionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   67|  1.91k|{
   68|  1.91k|    for (auto *t : mTextureDefinitions)
  ------------------
  |  Branch (68:18): [True: 2.32k, False: 1.63k]
  ------------------
   69|  2.32k|    {
   70|  2.32k|        if (t->name == name)
  ------------------
  |  Branch (70:13): [True: 286, False: 2.03k]
  ------------------
   71|    286|            return t;
   72|  2.32k|    }
   73|  1.63k|    return 0;
   74|       |
   75|  1.91k|}
_ZN4Ogre20CompositionTechnique27removeAllTextureDefinitionsEv:
   78|  1.47k|{
   79|  1.47k|    for (auto *t : mTextureDefinitions)
  ------------------
  |  Branch (79:18): [True: 1.63k, False: 1.47k]
  ------------------
   80|  1.63k|    {
   81|       |        OGRE_DELETE t;
   82|  1.63k|    }
   83|  1.47k|    mTextureDefinitions.clear();
   84|  1.47k|}
_ZN4Ogre20CompositionTechnique16createTargetPassEv:
   93|  1.43k|{
   94|       |    CompositionTargetPass *t = OGRE_NEW CompositionTargetPass(this);
   95|  1.43k|    mTargetPasses.push_back(t);
   96|  1.43k|    return t;
   97|  1.43k|}
_ZN4Ogre20CompositionTechnique21removeAllTargetPassesEv:
  109|  1.47k|{
  110|  1.47k|    for (auto *t : mTargetPasses)
  ------------------
  |  Branch (110:18): [True: 1.43k, False: 1.47k]
  ------------------
  111|  1.43k|    {
  112|       |        OGRE_DELETE t;
  113|  1.43k|    }
  114|  1.47k|    mTargetPasses.clear();
  115|  1.47k|}

_ZN4Ogre10CompositorC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   37|     95|    Resource(creator, name, handle, group, isManual, loader),
   38|     95|    mCompilationRequired(true)
   39|     95|{
   40|     95|}
_ZN4Ogre10CompositorD2Ev:
   44|     95|{
   45|     95|    removeAllTechniques();
   46|       |    // have to call this here reather than in Resource destructor
   47|       |    // since calling virtual methods in base destructors causes crash
   48|     95|    unload();
   49|     95|}
_ZN4Ogre10Compositor15createTechniqueEv:
   52|  1.47k|{
   53|       |    CompositionTechnique *t = OGRE_NEW CompositionTechnique(this);
   54|  1.47k|    mTechniques.push_back(t);
   55|  1.47k|    mCompilationRequired = true;
   56|  1.47k|    return t;
   57|  1.47k|}
_ZN4Ogre10Compositor19removeAllTechniquesEv:
   71|    187|{
   72|    187|    for (auto *t : mTechniques)
  ------------------
  |  Branch (72:18): [True: 1.47k, False: 187]
  ------------------
   73|  1.47k|    {
   74|       |        OGRE_DELETE t;
   75|  1.47k|    }
   76|    187|    mTechniques.clear();
   77|    187|    mSupportedTechniques.clear();
   78|    187|    mCompilationRequired = true;
   79|    187|}

_ZN4Ogre17CompositorManager12getSingletonEv:
   44|     95|{  
   45|       |    assert( msSingleton );  return ( *msSingleton );  
   46|     95|}//-----------------------------------------------------------------------
_ZN4Ogre17CompositorManagerC2Ev:
   48|      1|    mRectangle(0)
   49|      1|{
   50|       |    // Loading order (just after materials)
   51|      1|    mLoadOrder = 110.0f;
   52|       |
   53|       |    // Resource type
   54|      1|    mResourceType = "Compositor";
   55|       |
   56|       |    // Register with resource group manager
   57|      1|    ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);
   58|       |
   59|      1|}
_ZN4Ogre17CompositorManager10createImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmS9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   76|     95|{
   77|       |    return OGRE_NEW Compositor(this, name, handle, group, isManual, loader);
   78|     95|}
_ZN4Ogre17CompositorManager6createERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   83|     95|{
   84|     95|    return static_pointer_cast<Compositor>(createResource(name,group,isManual,loader,createParams));
   85|     95|}

_ZN4Ogre8DDSCodec7startupEv:
  175|      1|    {
  176|      1|        if (!msInstance)
  ------------------
  |  Branch (176:13): [True: 1, False: 0]
  ------------------
  177|      1|        {
  178|       |
  179|      1|            LogManager::getSingleton().logMessage(
  180|      1|                LML_NORMAL,
  181|      1|                "DDS codec registering");
  182|       |
  183|      1|            msInstance = OGRE_NEW DDSCodec();
  184|      1|            Codec::registerCodec(msInstance);
  185|      1|        }
  186|       |
  187|      1|    }
_ZN4Ogre8DDSCodecC2Ev:
  201|      1|        mType("dds"),
  202|      1|        mDecodeEnforce(false)
  203|      1|    { 
  204|      1|    }
_ZNK4Ogre8DDSCodec7getTypeEv:
 1062|      1|    {
 1063|      1|        return mType;
 1064|      1|    }

_ZN4Ogre10DataStream11getAsStringEv:
  169|    327|    {
  170|       |        // Read the entire buffer - ideally in one read, but if the size of
  171|       |        // the buffer is unknown, do multiple fixed size reads.
  172|    327|        size_t bufSize = (mSize > 0 ? mSize : 4096);
  ------------------
  |  Branch (172:27): [True: 327, False: 0]
  ------------------
  173|    327|        char* pBuf = OGRE_ALLOC_T(char, bufSize, MEMCATEGORY_GENERAL);
  174|       |        // Ensure read from begin of stream
  175|    327|        seek(0);
  176|    327|        String result;
  177|    654|        while (!eof())
  ------------------
  |  Branch (177:16): [True: 327, False: 327]
  ------------------
  178|    327|        {
  179|    327|            size_t nr = read(pBuf, bufSize);
  180|    327|            result.append(pBuf, nr);
  181|    327|        }
  182|       |        OGRE_FREE(pBuf, MEMCATEGORY_GENERAL);
  183|    327|        return result;
  184|    327|    }
_ZN4Ogre16MemoryDataStreamC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPvmbb:
  199|    327|        : DataStream(name, static_cast<uint16>(readOnly ? READ : (READ | WRITE)))
  ------------------
  |  Branch (199:48): [True: 327, False: 0]
  ------------------
  200|    327|    {
  201|    327|        mData = mPos = static_cast<uchar*>(pMem);
  202|    327|        mSize = inSize;
  203|    327|        mEnd = mData + mSize;
  204|    327|        mFreeOnClose = freeOnClose;
  205|       |        assert(mEnd >= mPos);
  206|    327|    }
_ZN4Ogre16MemoryDataStreamD2Ev:
  336|    327|    {
  337|    327|        close();
  338|    327|    }
_ZN4Ogre16MemoryDataStream4readEPvm:
  341|    327|    {
  342|       |        // Read over end of memory?
  343|    327|        if (mPos >= mEnd)
  ------------------
  |  Branch (343:13): [True: 0, False: 327]
  ------------------
  344|      0|            return 0;
  345|    327|        size_t cnt = std::min(count, static_cast<size_t>(mEnd - mPos));
  346|    327|        if (cnt == 0)
  ------------------
  |  Branch (346:13): [True: 0, False: 327]
  ------------------
  347|      0|            return 0;
  348|       |
  349|    327|        assert (cnt<=count);
  350|       |
  351|    327|        memcpy(buf, mPos, cnt);
  352|    327|        mPos += cnt;
  353|    327|        return cnt;
  354|    327|    }
_ZN4Ogre16MemoryDataStream4seekEm:
  443|    327|    {
  444|    327|        if (mData + pos > mEnd)
  ------------------
  |  Branch (444:13): [True: 0, False: 327]
  ------------------
  445|      0|            pos = static_cast<size_t>(mEnd - mData); // will trigger eof
  446|    327|        mPos = mData + pos;
  447|    327|    }
_ZNK4Ogre16MemoryDataStream3eofEv:
  456|    654|    {
  457|    654|        return mPos >= mEnd;
  458|    654|    }
_ZN4Ogre16MemoryDataStream5closeEv:
  461|    327|    {
  462|    327|        mAccess = 0;
  463|    327|        if (mFreeOnClose && mData)
  ------------------
  |  Branch (463:13): [True: 0, False: 327]
  |  Branch (463:29): [True: 0, False: 0]
  ------------------
  464|      0|        {
  465|       |            OGRE_FREE(mData, MEMCATEGORY_GENERAL);
  466|      0|            mData = 0;
  467|      0|        }
  468|    327|    }

_ZN4Ogre16DefaultWorkQueueC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   80|      1|    : DefaultWorkQueueBase(name), mNumThreadsRegisteredWithRS(0)
   81|      1|    {
   82|      1|    }

_ZN4Ogre23DistanceLodStrategyBaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   36|      2|        : LodStrategy(name)
   37|      2|        , mReferenceViewEnabled(false)
   38|      2|        , mReferenceViewValue(-1)
   39|      2|    { }
_ZNK4Ogre23DistanceLodStrategyBase12getBaseValueEv:
   75|      8|    {
   76|      8|        return Real(0);
   77|      8|    }
_ZNK4Ogre23DistanceLodStrategyBase18transformUserValueEf:
   86|  48.8k|    {
   87|       |        // Square user-supplied distance
   88|  48.8k|        return Math::Sqr(userValue);
   89|  48.8k|    }
_ZN4Ogre25DistanceLodSphereStrategyC2Ev:
  160|      1|        : DistanceLodStrategyBase("distance_sphere")
  161|      1|    { }
_ZN4Ogre22DistanceLodBoxStrategyC2Ev:
  192|      1|        : DistanceLodStrategyBase("distance_box")
  193|      1|    { }

_ZN4Ogre13DynLibManagerC2Ev:
   48|      1|    {
   49|      1|    }

_ZN4Ogre8ETCCodec7startupEv:
   93|      1|    {
   94|      1|        if (!msPKMInstance)
  ------------------
  |  Branch (94:13): [True: 1, False: 0]
  ------------------
   95|      1|        {
   96|      1|            msPKMInstance = OGRE_NEW ETCCodec("pkm");
   97|      1|            Codec::registerCodec(msPKMInstance);
   98|      1|        }
   99|       |
  100|      1|        if (!msKTXInstance)
  ------------------
  |  Branch (100:13): [True: 1, False: 0]
  ------------------
  101|      1|        {
  102|      1|            msKTXInstance = OGRE_NEW ETCCodec("ktx");
  103|      1|            Codec::registerCodec(msKTXInstance);
  104|      1|        }
  105|       |
  106|      1|        LogManager::getSingleton().logMessage(LML_NORMAL,
  107|      1|                                              "ETC codec registering");
  108|      1|    }
_ZN4Ogre8ETCCodecC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  128|      2|        mType(type)
  129|      2|    {
  130|      2|    }
_ZNK4Ogre8ETCCodec7getTypeEv:
  140|      2|    {
  141|      2|        return mType;
  142|      2|    }

_ZNK4Ogre13EntityFactory7getTypeEv:
 2249|      3|    {
 2250|      3|        return MOT_ENTITY;
 2251|      3|    }

_ZN4Ogre9ExceptionC2EiRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_PKcSB_l:
   43|    493|        line( lin ),
   44|    493|        typeName(typ),
   45|    493|        description( desc ),
   46|    493|        source( src ),
   47|    493|        file( fil )
   48|    493|    {
   49|    493|        StringStream ss;
   50|       |
   51|    493|        ss << typeName << ": "
   52|    493|           << description
   53|    493|           << " in " << source;
   54|       |
   55|    493|        if( line > 0 )
  ------------------
  |  Branch (55:13): [True: 493, False: 0]
  ------------------
   56|    493|        {
   57|    493|            ss << " at " << file << " (line " << line << ")";
   58|    493|        }
   59|       |
   60|    493|        fullDesc = ss.str();
   61|    493|    }

_ZN4Ogre28ExternalTextureSourceManagerC2Ev:
   58|      1|    {
   59|      1|        mCurrExternalTextureSource = 0;
   60|      1|    }

_ZNK4Ogre24FileSystemArchiveFactory7getTypeEv:
  478|      2|    {
  479|      2|        static String name = "FileSystem";
  480|      2|        return name;
  481|      2|    }

_ZN4Ogre14FileSystemUtil14openOutputFileERNSt3__114basic_ofstreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEEj:
   84|      1|    {
   85|       |#if OGRE_FILESYSTEM_USE_WIDECHAR
   86|       |        stream.open(toWide(path).c_str(), mode);
   87|       |#else
   88|      1|        stream.open(path.c_str(), mode);
   89|      1|#endif
   90|      1|    }

_ZN4Ogre10GpuProgramC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   98|    605|        : Resource(creator, name, handle, group, isManual, loader), mType(GPT_VERTEX_PROGRAM), mLoadFromFile(true),
   99|    605|          mInstancing(false), mSkeletalAnimation(false), mMorphAnimation(false), mVertexTextureFetch(false),
  100|    605|          mNeedsAdjacencyInfo(false), mCompileError(false), mLoadedManualNamedConstants(false), mPoseAnimation(0)
  101|    605|    {
  102|    605|        createParameterMappingStructures();
  103|    605|    }
_ZN4Ogre10GpuProgram7setTypeENS_14GpuProgramTypeE:
  106|    605|    {
  107|    605|        mType = t;
  108|    605|    }
_ZN4Ogre10GpuProgram13setSyntaxCodeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  111|    605|    {
  112|    605|        mSyntaxCode = syntax;
  113|    605|    }
_ZN4Ogre10GpuProgram13setSourceFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  116|    400|    {
  117|    400|        OgreAssert(!filename.empty(), "invalid filename");
  ------------------
  |  Branch (117:9): [True: 0, False: 400]
  ------------------
  118|       |
  119|    400|        mFilename = filename;
  120|    400|        mSource.clear();
  121|    400|        mLoadFromFile = true;
  122|    400|        mCompileError = false;
  123|    400|    }
_ZN4Ogre10GpuProgram32createParameterMappingStructuresEb:
  261|    605|    {
  262|    605|        createLogicalParameterMappingStructures(recreateIfExists);
  263|    605|        createNamedParameterMappingStructures(recreateIfExists);
  264|    605|    }
_ZN4Ogre10GpuProgram39createLogicalParameterMappingStructuresEb:
  267|    605|    {
  268|    605|        if (recreateIfExists || !mLogicalToPhysical)
  ------------------
  |  Branch (268:13): [True: 605, False: 0]
  |  Branch (268:33): [True: 0, False: 0]
  ------------------
  269|    605|            mLogicalToPhysical = std::make_shared<GpuLogicalBufferStruct>();
  270|    605|    }
_ZN4Ogre10GpuProgram37createNamedParameterMappingStructuresEb:
  273|    605|    {
  274|    605|        if (recreateIfExists || !mConstantDefs)
  ------------------
  |  Branch (274:13): [True: 605, False: 0]
  |  Branch (274:33): [True: 0, False: 0]
  ------------------
  275|    605|            mConstantDefs = std::make_shared<GpuNamedConstants>();
  276|    605|    }
_ZN4Ogre10GpuProgram16createParametersEv:
  310|    860|    {
  311|       |        // Default implementation simply returns standard parameters.
  312|    860|        GpuProgramParametersSharedPtr ret =
  313|    860|            GpuProgramManager::getSingleton().createParameters();
  314|       |
  315|       |
  316|       |        // optionally load manually supplied named constants
  317|    860|        if (!mManualNamedConstantsFile.empty() && !mLoadedManualNamedConstants)
  ------------------
  |  Branch (317:13): [True: 0, False: 860]
  |  Branch (317:51): [True: 0, False: 0]
  ------------------
  318|      0|        {
  319|      0|            try
  320|      0|            {
  321|      0|                GpuNamedConstants namedConstants;
  322|      0|                DataStreamPtr stream =
  323|      0|                    ResourceGroupManager::getSingleton().openResource(
  324|      0|                    mManualNamedConstantsFile, mGroup, this);
  325|      0|                namedConstants.load(stream);
  326|      0|                setManualNamedConstants(namedConstants);
  327|      0|            }
  328|      0|            catch(const Exception& e)
  329|      0|            {
  330|      0|                LogManager::getSingleton().stream() <<
  331|      0|                    "Unable to load manual named constants for GpuProgram " << mName <<
  332|      0|                    ": " << e.getDescription();
  333|      0|            }
  334|      0|            mLoadedManualNamedConstants = true;
  335|      0|        }
  336|       |
  337|       |
  338|       |        // set up named parameters, if any
  339|    860|        if (mConstantDefs && !mConstantDefs->map.empty())
  ------------------
  |  Branch (339:13): [True: 860, False: 0]
  |  Branch (339:30): [True: 0, False: 860]
  ------------------
  340|      0|        {
  341|      0|            ret->_setNamedConstants(mConstantDefs);
  342|      0|        }
  343|       |        // link shared logical / physical map for low-level use
  344|    860|        ret->_setLogicalIndexes(mLogicalToPhysical);
  345|       |
  346|       |        // Copy in default parameters if present
  347|    860|        if (mDefaultParams)
  ------------------
  |  Branch (347:13): [True: 0, False: 860]
  ------------------
  348|      0|            ret->copyConstantsFrom(*(mDefaultParams.get()));
  349|       |
  350|    860|        return ret;
  351|    860|    }
_ZN4Ogre10GpuProgram24setupBaseParamDictionaryEv:
  390|      1|    {
  391|      1|        ParamDictionary* dict = getParamDictionary();
  392|       |
  393|      1|        dict->addParameter(
  394|      1|            ParameterDef("type", "'vertex_program', 'geometry_program', 'fragment_program', 'hull_program', 'domain_program', 'compute_program'",
  395|      1|                         PT_STRING), &msTypeCmd);
  396|      1|        dict->addParameter(
  397|      1|            ParameterDef("syntax", "Syntax code, e.g. vs_1_1", PT_STRING), &msSyntaxCmd);
  398|      1|        dict->addParameter("includes_instancing", &msInstancingCmd);
  399|      1|        dict->addParameter(
  400|      1|            ParameterDef("includes_skeletal_animation",
  401|      1|                         "Whether this vertex program includes skeletal animation", PT_BOOL),
  402|      1|            &msSkeletalCmd);
  403|      1|        dict->addParameter(
  404|      1|            ParameterDef("includes_morph_animation",
  405|      1|                         "Whether this vertex program includes morph animation", PT_BOOL),
  406|      1|            &msMorphCmd);
  407|      1|        dict->addParameter(
  408|      1|            ParameterDef("includes_pose_animation",
  409|      1|                         "The number of poses this vertex program supports for pose animation", PT_INT),
  410|      1|            &msPoseCmd);
  411|      1|        dict->addParameter(
  412|      1|            ParameterDef("uses_vertex_texture_fetch",
  413|      1|                         "Whether this vertex program requires vertex texture fetch support.", PT_BOOL),
  414|      1|            &msVTFCmd);
  415|      1|        dict->addParameter(
  416|      1|            ParameterDef("manual_named_constants",
  417|      1|                         "File containing named parameter mappings for low-level programs.", PT_BOOL),
  418|      1|            &msManNamedConstsFileCmd);
  419|      1|    }

_ZN4Ogre17GpuProgramManager12getSingletonEv:
  118|  15.8k|    {  
  119|       |        assert( msSingleton );  return ( *msSingleton );  
  120|  15.8k|    }
_ZNK4Ogre17GpuProgramManager9getByNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  123|  1.87k|    {
  124|  1.87k|        return static_pointer_cast<GpuProgram>(getResourceByName(name, group));
  125|  1.87k|    }
_ZN4Ogre17GpuProgramManagerC2Ev:
  128|      1|    {
  129|       |        // Loading order
  130|      1|        mLoadOrder = 50.0f;
  131|       |        // Resource type
  132|      1|        mResourceType = "GpuProgram";
  133|      1|        mSaveMicrocodesToCache = false;
  134|      1|        mCacheDirty = false;
  135|       |
  136|      1|        mNullFactory = std::make_unique<NullProgramFactory>();
  137|      1|        addFactory(mNullFactory.get());
  138|      1|        mUnifiedFactory = std::make_unique<UnifiedHighLevelGpuProgramFactory>();
  139|      1|        addFactory(mUnifiedFactory.get());
  140|       |
  141|      1|        ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);
  142|      1|    }
_ZN4Ogre17GpuProgramManager6createERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_NS_14GpuProgramTypeES9_bPNS_20ManualResourceLoaderE:
  188|    605|    {
  189|    605|        auto prg = getFactory(syntaxCode)->create(this, name, getNextHandle(), group, isManual, loader);
  190|    605|        prg->setType(gptype);
  191|    605|        prg->setSyntaxCode(syntaxCode);
  192|       |
  193|    605|        ResourcePtr ret(prg);
  194|    605|        addImpl(ret);
  195|       |        // Tell resource group manager
  196|    605|        if(ret)
  ------------------
  |  Branch (196:12): [True: 601, False: 4]
  ------------------
  197|    601|            ResourceGroupManager::getSingleton()._notifyResourceCreated(ret);
  198|    605|        return static_pointer_cast<GpuProgram>(ret);
  199|    605|    }
_ZN4Ogre17GpuProgramManager22createSharedParametersERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  239|     19|    {
  240|     19|        if (mSharedParametersMap.find(name) != mSharedParametersMap.end())
  ------------------
  |  Branch (240:13): [True: 0, False: 19]
  ------------------
  241|      0|        {
  242|      0|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, 
  243|      0|                "The shared parameter set '" + name + "' already exists!", 
  244|      0|                "GpuProgramManager::createSharedParameters");
  245|      0|        }
  246|     19|        GpuSharedParametersPtr ret(OGRE_NEW GpuSharedParameters(name));
  247|     19|        mSharedParametersMap[name] = ret;
  248|     19|        return ret;
  249|     19|    }
_ZN4Ogre17GpuProgramManager10addFactoryEPNS_17GpuProgramFactoryE:
  430|      2|    {
  431|       |        // deliberately allow later plugins to override earlier ones
  432|      2|        mFactories[factory->getLanguage()] = factory;
  433|      2|    }
_ZN4Ogre17GpuProgramManager10getFactoryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  447|    605|    {
  448|    605|        FactoryMap::iterator i = mFactories.find(language);
  449|       |
  450|    605|        if (i == mFactories.end())
  ------------------
  |  Branch (450:13): [True: 474, False: 131]
  ------------------
  451|    474|        {
  452|       |            // use the null factory to create programs that will never be supported
  453|    474|            i = mFactories.find(sNullLang);
  454|    474|        }
  455|    605|        return i->second;
  456|    605|    }
_ZNK4Ogre17GpuProgramManager19isLanguageSupportedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  459|  12.5k|    {
  460|  12.5k|        return mFactories.find(lang) != mFactories.end();
  461|  12.5k|    }
OgreGpuProgramManager.cpp:_ZN4Ogre12_GLOBAL__N_118NullProgramFactoryC2Ev:
   73|      1|        NullProgramFactory() {}
OgreGpuProgramManager.cpp:_ZNK4Ogre12_GLOBAL__N_118NullProgramFactory11getLanguageEv:
   77|      1|        {
   78|      1|            return sNullLang;
   79|      1|        }
OgreGpuProgramManager.cpp:_ZN4Ogre12_GLOBAL__N_118NullProgramFactory6createEPNS_15ResourceManagerERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEmSC_bPNS_20ManualResourceLoaderE:
   83|    477|        {
   84|       |            return OGRE_NEW NullProgram(creator, name, handle, group, isManual, loader);
   85|    477|        }
OgreGpuProgramManager.cpp:_ZN4Ogre12_GLOBAL__N_111NullProgramC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEmSC_bPNS_20ManualResourceLoaderE:
   53|    477|            : GpuProgram(creator, name, handle, group, isManual, loader){}
OgreGpuProgramManager.cpp:_ZNK4Ogre12_GLOBAL__N_111NullProgram11isSupportedEv:
   56|  1.51k|        bool isSupported(void) const override { return false; }
OgreGpuProgramManager.cpp:_ZNK4Ogre12_GLOBAL__N_111NullProgram11getLanguageEv:
   58|    359|        const String& getLanguage(void) const override { return sNullLang; }

_ZN4Ogre17GpuNamedConstantsC2Ev:
  201|    624|    GpuNamedConstants::GpuNamedConstants() : bufferSize(0), registerCount(0) {}
_ZN4Ogre17GpuNamedConstantsD2Ev:
  202|    605|    GpuNamedConstants::~GpuNamedConstants() {}
_ZN4Ogre22GpuLogicalBufferStructC2Ev:
  204|    605|    GpuLogicalBufferStruct::GpuLogicalBufferStruct() : bufferSize(0) {}
_ZN4Ogre22GpuLogicalBufferStructD2Ev:
  205|    605|    GpuLogicalBufferStruct::~GpuLogicalBufferStruct() {}
_ZN4Ogre19GpuSharedParametersC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  329|     19|        : mName(name), mVersion(0), mOffset(0), mDirty(false), mUseLinearColours(false)
  330|     19|    {
  331|     19|    }
_ZN4Ogre19GpuSharedParameters21addConstantDefinitionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_15GpuConstantTypeEj:
  344|    198|    {
  345|    198|        if (mNamedConstants.map.find(name) != mNamedConstants.map.end())
  ------------------
  |  Branch (345:13): [True: 189, False: 9]
  ------------------
  346|    189|        {
  347|    189|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  348|    189|                        "Constant entry with name '" + name + "' already exists. ",
  349|    189|                        "GpuSharedParameters::addConstantDefinition");
  350|    189|        }
  351|      9|        GpuConstantDefinition def;
  352|      9|        def.arraySize = arraySize;
  353|      9|        def.constType = constType;
  354|       |
  355|       |		// here, we do not consider padding, but rather alignment
  356|      9|        def.elementSize = GpuConstantDefinition::getElementSize(constType, false);
  357|       |
  358|       |		// we try to adhere to GLSL std140 packing rules
  359|       |		// handle alignment requirements
  360|      9|        size_t align_size = std::min<size_t>(def.elementSize == 3 ? 4 : def.elementSize, 4); // vec3 is 16 byte aligned, which is max
  ------------------
  |  Branch (360:46): [True: 1, False: 8]
  ------------------
  361|      9|        align_size *= 4; // bytes
  362|       |
  363|      9|        size_t nextAlignedOffset = ((mOffset + align_size - 1) / align_size) * align_size;
  364|       |
  365|       |        // abuse logical index to store offset
  366|      9|        if (mOffset + align_size > nextAlignedOffset)
  ------------------
  |  Branch (366:13): [True: 9, False: 0]
  ------------------
  367|      9|        {
  368|      9|            def.logicalIndex = nextAlignedOffset;
  369|      9|        }
  370|      0|        else
  371|      0|        {
  372|      0|            def.logicalIndex = mOffset;
  373|      0|        }
  374|       |
  375|      9|        mOffset = def.logicalIndex + (def.constType == GCT_MATRIX_4X3 ? 16 : def.elementSize) * 4; // mat4x3 have a size of 64 bytes
  ------------------
  |  Branch (375:39): [True: 0, False: 9]
  ------------------
  376|       |
  377|      9|        def.variability = (uint16)GPV_GLOBAL;
  378|       |
  379|      9|        if (def.isFloat())
  ------------------
  |  Branch (379:13): [True: 5, False: 4]
  ------------------
  380|      5|        {
  381|      5|            def.physicalIndex = mConstants.size();
  382|      5|            mConstants.resize(mConstants.size() + def.arraySize * def.elementSize*4);
  383|      5|        }
  384|      4|        else if (def.isDouble())
  ------------------
  |  Branch (384:18): [True: 0, False: 4]
  ------------------
  385|      0|        {
  386|      0|            def.physicalIndex = mConstants.size();
  387|      0|            mConstants.resize(mConstants.size() + def.arraySize * def.elementSize*8);
  388|      0|        }
  389|      4|        else if (def.isInt() || def.isUnsignedInt() || def.isBool())
  ------------------
  |  Branch (389:18): [True: 4, False: 0]
  |  Branch (389:33): [True: 0, False: 0]
  |  Branch (389:56): [True: 0, False: 0]
  ------------------
  390|      4|        {
  391|      4|            def.physicalIndex = mConstants.size();
  392|      4|            mConstants.resize(mConstants.size() + def.arraySize * def.elementSize*4);
  393|      4|        }
  394|      0|        else 
  395|      0|        {
  396|       |            //FIXME Is this the right exception type?
  397|      0|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  398|      0|                        "Constant entry with name '" + name + "' is not a known type.",
  399|      0|                        "GpuSharedParameters::addConstantDefinition");
  400|      0|        }
  401|       |
  402|      9|        mNamedConstants.map[name] = def;
  403|       |
  404|      9|        ++mVersion;
  405|      9|    }
_ZN4Ogre19GpuSharedParameters16setNamedConstantERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKfj:
  606|      4|    {
  607|      4|        _setNamedConstant(name, val, count);
  608|      4|    }
_ZN4Ogre19GpuSharedParameters10_markDirtyEv:
  631|      4|    {
  632|      4|        mDirty = true;
  633|      4|    }
_ZN4Ogre20GpuProgramParametersC2Ev:
  740|    867|        mCombinedVariability(GPV_GLOBAL)
  741|    867|        , mTransposeMatrices(false)
  742|    867|        , mIgnoreMissingParams(false)
  743|    867|        , mActivePassIterationIndex(std::numeric_limits<size_t>::max())
  744|    867|        , mUseLinearColours(false)
  745|    867|    {
  746|    867|        static_assert((sizeof(AutoConstantDictionary) / sizeof(AutoConstantDefinition) - 5) == ACT_FROXEL_RECORDS,
  747|    867|                      "AutoConstantDictionary out of sync");
  748|    867|    }
_ZN4Ogre20GpuProgramParametersD2Ev:
  749|  52.8k|    GpuProgramParameters::~GpuProgramParameters() {}
_ZN4Ogre20GpuProgramParametersC2ERKS0_:
  754|  52.0k|    {
  755|  52.0k|        *this = oth;
  756|  52.0k|    }
_ZN4Ogre20GpuProgramParametersaSERKS0_:
  760|  52.0k|    {
  761|       |        // let compiler perform shallow copies of structures
  762|       |        // AutoConstantEntry, RealConstantEntry, IntConstantEntry
  763|  52.0k|        mConstants = oth.mConstants;
  764|  52.0k|        mRegisters = oth.mRegisters;
  765|  52.0k|        mAutoConstants = oth.mAutoConstants;
  766|  52.0k|        mLogicalToPhysical = oth.mLogicalToPhysical;
  767|  52.0k|        mNamedConstants = oth.mNamedConstants;
  768|  52.0k|        copySharedParamSetUsage(oth.mSharedParamSets);
  769|       |
  770|  52.0k|        mCombinedVariability = oth.mCombinedVariability;
  771|  52.0k|        mTransposeMatrices = oth.mTransposeMatrices;
  772|  52.0k|        mIgnoreMissingParams  = oth.mIgnoreMissingParams;
  773|  52.0k|        mActivePassIterationIndex = oth.mActivePassIterationIndex;
  774|  52.0k|        mUseLinearColours = oth.mUseLinearColours;
  775|       |
  776|  52.0k|        return *this;
  777|  52.0k|    }
_ZN4Ogre20GpuProgramParameters23copySharedParamSetUsageERKNSt3__16vectorINS_24GpuSharedParametersUsageENS1_9allocatorIS3_EEEE:
  780|  52.0k|    {
  781|  52.0k|        mSharedParamSets.clear();
  782|  52.0k|        for (const auto& i : srcList)
  ------------------
  |  Branch (782:28): [True: 0, False: 52.0k]
  ------------------
  783|      0|        {
  784|      0|            mSharedParamSets.push_back(GpuSharedParametersUsage(i.getSharedParams(), this));
  785|      0|        }
  786|       |
  787|  52.0k|    }
_ZN4Ogre20GpuProgramParameters18_setLogicalIndexesERKNS_9SharedPtrINS_22GpuLogicalBufferStructEEE:
  822|    860|    {
  823|    860|        mLogicalToPhysical = indexMap;
  824|       |
  825|       |        // resize the internal buffers
  826|       |        // Note that these will only contain something after the first parameter
  827|       |        // set has set some parameters
  828|       |
  829|       |        // Size and reset buffer (fill with zero to make comparison later ok)
  830|    860|        if (indexMap && indexMap->bufferSize*4 > mConstants.size())
  ------------------
  |  Branch (830:13): [True: 860, False: 0]
  |  Branch (830:25): [True: 0, False: 860]
  ------------------
  831|      0|        {
  832|      0|            mConstants.insert(mConstants.end(), indexMap->bufferSize * 4 - mConstants.size(), 0);
  833|      0|        }
  834|    860|    }
_ZN4Ogre20GpuProgramParameters30copyMatchingNamedConstantsFromERKS0_:
 2462|    167|    {
 2463|    167|        if (mNamedConstants && source.mNamedConstants)
  ------------------
  |  Branch (2463:13): [True: 0, False: 167]
  |  Branch (2463:32): [True: 0, False: 0]
  ------------------
 2464|      0|        {
 2465|      0|            std::map<size_t, String> srcToDestNamedMap;
 2466|      0|            for (auto& m : source.mNamedConstants->map)
  ------------------
  |  Branch (2466:26): [True: 0, False: 0]
  ------------------
 2467|      0|            {
 2468|      0|                const String& paramName = m.first;
 2469|      0|                const GpuConstantDefinition& olddef = m.second;
 2470|      0|                const GpuConstantDefinition* newdef = _findNamedConstantDefinition(paramName, false);
 2471|      0|                if (newdef)
  ------------------
  |  Branch (2471:21): [True: 0, False: 0]
  ------------------
 2472|      0|                {
 2473|       |                    // Copy data across, based on smallest common definition size
 2474|      0|                    size_t srcsz = olddef.elementSize * olddef.arraySize;
 2475|      0|                    size_t destsz = newdef->elementSize * newdef->arraySize;
 2476|      0|                    size_t sz = std::min(srcsz, destsz);
 2477|      0|                    if (newdef->isFloat() || newdef->isInt() || newdef->isUnsignedInt() || newdef->isBool())
  ------------------
  |  Branch (2477:25): [True: 0, False: 0]
  |  Branch (2477:46): [True: 0, False: 0]
  |  Branch (2477:65): [True: 0, False: 0]
  |  Branch (2477:92): [True: 0, False: 0]
  ------------------
 2478|      0|                    {
 2479|      0|                        OgreAssert(mConstants.size() >= (newdef->physicalIndex + sz * 4), "Invalid physical index or size");
  ------------------
  |  Branch (2479:25): [True: 0, False: 0]
  ------------------
 2480|      0|                        memcpy(getFloatPointer(newdef->physicalIndex),
 2481|      0|                               source.getFloatPointer(olddef.physicalIndex),
 2482|      0|                               sz * 4);
 2483|      0|                    }
 2484|      0|                    else if (newdef->isDouble())
  ------------------
  |  Branch (2484:30): [True: 0, False: 0]
  ------------------
 2485|      0|                    {
 2486|       |
 2487|      0|                        memcpy(getDoublePointer(newdef->physicalIndex),
 2488|      0|                               source.getDoublePointer(olddef.physicalIndex),
 2489|      0|                               sz * sizeof(double));
 2490|      0|                    }
 2491|      0|                    else if (newdef->isSampler())
  ------------------
  |  Branch (2491:30): [True: 0, False: 0]
  ------------------
 2492|      0|                    {
 2493|      0|                        *getRegPointer(newdef->physicalIndex) = *source.getRegPointer(olddef.physicalIndex);
 2494|      0|                    }
 2495|      0|                    else
 2496|      0|                    {
 2497|       |                        //TODO exception handling
 2498|      0|                    }
 2499|       |                    // we'll use this map to resolve autos later
 2500|       |                    // ignore the [0] aliases
 2501|      0|                    if (!StringUtil::endsWith(paramName, "[0]") && source.findAutoConstantEntry(paramName))
  ------------------
  |  Branch (2501:25): [True: 0, False: 0]
  |  Branch (2501:25): [True: 0, False: 0]
  |  Branch (2501:68): [True: 0, False: 0]
  ------------------
 2502|      0|                        srcToDestNamedMap[olddef.physicalIndex] = paramName;
 2503|      0|                }
 2504|      0|            }
 2505|       |
 2506|      0|            for (const auto& autoEntry : source.mAutoConstants)
  ------------------
  |  Branch (2506:40): [True: 0, False: 0]
  ------------------
 2507|      0|            {
 2508|       |                // find dest physical index
 2509|      0|                std::map<size_t, String>::iterator mi = srcToDestNamedMap.find(autoEntry.physicalIndex);
 2510|      0|                if (mi != srcToDestNamedMap.end())
  ------------------
  |  Branch (2510:21): [True: 0, False: 0]
  ------------------
 2511|      0|                {
 2512|      0|                    if (getAutoConstantDefinition(autoEntry.paramType)->dataType == ACDT_REAL)
  ------------------
  |  Branch (2512:25): [True: 0, False: 0]
  ------------------
 2513|      0|                    {
 2514|      0|                        setNamedAutoConstantReal(mi->second, autoEntry.paramType, autoEntry.fData);
 2515|      0|                    }
 2516|      0|                    else
 2517|      0|                    {
 2518|      0|                        setNamedAutoConstant(mi->second, autoEntry.paramType, autoEntry.data);
 2519|      0|                    }
 2520|      0|                }
 2521|       |
 2522|      0|            }
 2523|       |
 2524|       |            // Copy shared param sets
 2525|      0|            for (const auto& usage : source.mSharedParamSets)
  ------------------
  |  Branch (2525:36): [True: 0, False: 0]
  ------------------
 2526|      0|            {
 2527|      0|                if (!isUsingSharedParameters(usage.getName()))
  ------------------
  |  Branch (2527:21): [True: 0, False: 0]
  ------------------
 2528|      0|                {
 2529|      0|                    addSharedParameters(usage.getSharedParams());
 2530|      0|                }
 2531|      0|            }
 2532|      0|        }
 2533|    167|    }
_ZN4Ogre20GpuProgramParameters25getAutoConstantDefinitionERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2537|    198|    {
 2538|       |        // find a constant definition that matches name by iterating through the
 2539|       |        // constant definition array
 2540|    198|        bool nameFound = false;
 2541|    198|        size_t i = 0;
 2542|    198|        const size_t numDefs = getNumAutoConstantDefinitions();
 2543|  29.1k|        while (!nameFound && (i < numDefs))
  ------------------
  |  Branch (2543:16): [True: 29.1k, False: 0]
  |  Branch (2543:30): [True: 28.9k, False: 198]
  ------------------
 2544|  28.9k|        {
 2545|  28.9k|            if (name == AutoConstantDictionary[i].name)
  ------------------
  |  Branch (2545:17): [True: 0, False: 28.9k]
  ------------------
 2546|      0|                nameFound = true;
 2547|  28.9k|            else
 2548|  28.9k|                ++i;
 2549|  28.9k|        }
 2550|       |
 2551|    198|        if (nameFound)
  ------------------
  |  Branch (2551:13): [True: 0, False: 198]
  ------------------
 2552|      0|            return &AutoConstantDictionary[i];
 2553|    198|        else
 2554|    198|            return 0;
 2555|    198|    }
_ZN4Ogre20GpuProgramParameters29getNumAutoConstantDefinitionsEv:
 2568|    198|    {
 2569|    198|        return sizeof(AutoConstantDictionary)/sizeof(AutoConstantDefinition);
 2570|    198|    }
_ZN4Ogre19GpuSharedParameters17_setNamedConstantIfEEvRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKT_j:
  596|      4|    {
  597|      4|        GpuConstantDefinitionMap::const_iterator i = mNamedConstants.map.find(name);
  598|      4|        if (i == mNamedConstants.map.end())
  ------------------
  |  Branch (598:13): [True: 0, False: 4]
  ------------------
  599|      0|            return; // ignore
  600|       |
  601|      4|        const GpuConstantDefinition& def = i->second;
  602|      4|        memcpy(&mConstants[def.physicalIndex], val, sizeof(float) * std::min(count, def.elementSize * def.arraySize));
  603|      4|        _markDirty();
  604|      4|    }

_ZN4Ogre15GpuProgramUsageC2ENS_14GpuProgramTypeEPNS_4PassE:
   36|    700|        mParent(parent), mProgram(), mRecreateParams(false),mType(gptype)
   37|    700|    {
   38|    700|    }
_ZN4Ogre15GpuProgramUsageC2ERKS0_PNS_4PassE:
   41|  52.0k|        : mParent(parent)
   42|  52.0k|        , mProgram(oth.mProgram)
   43|       |        // nfz: parameters should be copied not just use a shared ptr to the original
   44|  52.0k|        , mParameters(OGRE_NEW GpuProgramParameters(*oth.mParameters))
   45|  52.0k|        , mRecreateParams(false)
   46|  52.0k|        , mType(oth.mType)
   47|  52.0k|    {
   48|  52.0k|    }
_ZN4Ogre15GpuProgramUsageD2Ev:
   51|  52.7k|    {
   52|  52.7k|        if (mProgram)
  ------------------
  |  Branch (52:13): [True: 52.7k, False: 0]
  ------------------
   53|  52.7k|            mProgram->removeListener(this);
   54|  52.7k|    }
_ZN4Ogre15GpuProgramUsage17_getProgramByNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_NS_14GpuProgramTypeE:
   59|    592|    {
   60|    592|        GpuProgramPtr program =
   61|    592|            GpuProgramManager::getSingleton().getByName(name, group);
   62|       |
   63|       |        //Look again without the group if not found
   64|    592|        if (!program)
  ------------------
  |  Branch (64:13): [True: 0, False: 592]
  ------------------
   65|      0|            program = GpuProgramManager::getSingleton().getByName(
   66|      0|                name, ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME);
   67|       |
   68|    592|        if (!program)
  ------------------
  |  Branch (68:13): [True: 0, False: 592]
  ------------------
   69|      0|        {
   70|      0|            String progType = GpuProgram::getProgramTypeName(type);
   71|      0|            OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND,
   72|      0|                        "Unable to locate " + progType + " program called " + name);
   73|      0|        }
   74|       |
   75|    592|        return program;
   76|    592|    }
_ZN4Ogre15GpuProgramUsage10setProgramERKNS_9SharedPtrINS_10GpuProgramEEEb:
  100|    867|    {
  101|    867|        if (mProgram)
  ------------------
  |  Branch (101:13): [True: 167, False: 700]
  ------------------
  102|    167|        {
  103|    167|            mProgram->removeListener(this);
  104|    167|            mRecreateParams = true;
  105|    167|        }
  106|       |
  107|    867|        mProgram = prog;
  108|       |
  109|       |        // Reset parameters
  110|    867|        if (resetParams || !mParameters || mRecreateParams)
  ------------------
  |  Branch (110:13): [True: 867, False: 0]
  |  Branch (110:28): [True: 0, False: 0]
  |  Branch (110:44): [True: 0, False: 0]
  ------------------
  111|    867|        {
  112|    867|            recreateParameters();
  113|    867|        }
  114|       |
  115|       |        // Listen in on reload events so we can regenerate params
  116|    867|        mProgram->addListener(this);
  117|    867|    }
_ZN4Ogre15GpuProgramUsage18recreateParametersEv:
  170|    867|    {
  171|       |        // Keep a reference to old ones to copy
  172|    867|        GpuProgramParametersSharedPtr savedParams = mParameters;
  173|       |
  174|       |        // Create new params
  175|    867|        mParameters = mProgram->createParameters();
  176|       |
  177|       |        // Copy old (matching) values across
  178|       |        // Don't use copyConstantsFrom since program may be different
  179|    867|        if (savedParams)
  ------------------
  |  Branch (179:13): [True: 167, False: 700]
  ------------------
  180|    167|            mParameters->copyMatchingNamedConstantsFrom(*savedParams.get());
  181|       |
  182|    867|        mRecreateParams = false;
  183|       |
  184|    867|    }

_ZNK4Ogre12LightFactory7getTypeEv:
  874|      3|    {
  875|      3|        return MOT_LIGHT;
  876|      3|    }

_ZN4Ogre11LodStrategyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   35|      4|        : mName(name)
   36|      4|    { }

_ZN4Ogre18LodStrategyManager12getSingletonEv:
   43|    664|    {
   44|       |        assert( msSingleton );  return ( *msSingleton );
   45|    664|    }
_ZN4Ogre18LodStrategyManagerC2Ev:
   48|      1|    {
   49|       |        // Add distance strategies for bounding box and bounding sphere
   50|      1|        LodStrategy *strategy = OGRE_NEW DistanceLodBoxStrategy();
   51|      1|        addStrategy(strategy);
   52|      1|        strategy = OGRE_NEW DistanceLodSphereStrategy();
   53|      1|        addStrategy(strategy);
   54|       |
   55|       |        // Set the default strategy to distance_sphere
   56|      1|        setDefaultStrategy(strategy);
   57|       |
   58|       |        // Add pixel-count strategies (internally based on bounding sphere)
   59|      1|        strategy = OGRE_NEW AbsolutePixelCountLodStrategy();
   60|      1|        addStrategy(strategy);
   61|       |        strategy = OGRE_NEW ScreenRatioPixelCountLodStrategy();
   62|      1|        addStrategy(strategy);
   63|      1|    }
_ZN4Ogre18LodStrategyManager11addStrategyEPNS_11LodStrategyE:
   72|      4|    {
   73|       |        // Check for invalid strategy name
   74|      4|        if (strategy->getName() == "default")
  ------------------
  |  Branch (74:13): [True: 0, False: 4]
  ------------------
   75|      4|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Lod strategy name must not be \"default\".", "LodStrategyManager::addStrategy");
   76|       |
   77|       |        // Insert the strategy into the map with its name as the key
   78|      4|        mStrategies.insert(std::make_pair(strategy->getName(), strategy));
   79|      4|    }
_ZN4Ogre18LodStrategyManager11getStrategyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  110|     31|    {
  111|       |        // If name is "default", return the default strategy instead of performing a lookup
  112|     31|        if (name == "default") {
  ------------------
  |  Branch (112:13): [True: 0, False: 31]
  ------------------
  113|      0|            return getDefaultStrategy();
  114|     31|        } else if (name == "Distance") {
  ------------------
  |  Branch (114:20): [True: 0, False: 31]
  ------------------
  115|      0|            return getStrategy("distance_box"); // Backward compatibility for loading old meshes.
  116|     31|        } else if (name == "PixelCount") {
  ------------------
  |  Branch (116:20): [True: 0, False: 31]
  ------------------
  117|      0|            return getStrategy("pixel_count"); // Backward compatibility for loading old meshes.
  118|      0|        }
  119|       |        // Find strategy with specified name
  120|     31|        StrategyMap::iterator it = mStrategies.find(name);
  121|       |
  122|       |        // If not found, return null
  123|     31|        if (it == mStrategies.end())
  ------------------
  |  Branch (123:13): [True: 31, False: 0]
  ------------------
  124|     31|            return 0;
  125|       |
  126|       |        // Otherwise, return the strategy
  127|      0|        return it->second;
  128|     31|    }
_ZN4Ogre18LodStrategyManager18setDefaultStrategyEPNS_11LodStrategyE:
  131|      1|    {
  132|      1|        mDefaultStrategy = strategy;
  133|      1|    }
_ZN4Ogre18LodStrategyManager18getDefaultStrategyEv:
  142|    633|    {
  143|    633|        return mDefaultStrategy;
  144|    633|    }

_ZN4Ogre3LogC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb:
   54|      1|        mLogLevel(LML_NORMAL), mDebugOut(debuggerOutput),
   55|      1|        mSuppressFile(suppressFile), mTimeStamp(true), mLogName(name), mTermHasColours(false)
   56|      1|    {
   57|      1|        if (!mSuppressFile)
  ------------------
  |  Branch (57:13): [True: 1, False: 0]
  ------------------
   58|      1|        {
   59|      1|            FileSystemUtil::openOutputFile(mLog, name);
   60|       |
   61|       |#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && _WIN32_WINNT >= _WIN32_WINNT_VISTA
   62|       |            // Register log file to be collected by Windows Error Reporting
   63|       |            const std::wstring wname = FileSystemUtil::toWide(name);
   64|       |            if (!wname.empty())
   65|       |                WerRegisterFile(wname.c_str(), WerRegFileTypeOther, WER_FILE_ANONYMOUS_DATA);
   66|       |#endif
   67|      1|        }
   68|       |
   69|      1|#if OGRE_PLATFORM != OGRE_PLATFORM_WINRT
   70|      1|        char* val = getenv("OGRE_MIN_LOGLEVEL");
   71|      1|        int min_lml;
   72|      1|        if(val && StringConverter::parse(val, min_lml))
  ------------------
  |  Branch (72:12): [True: 0, False: 1]
  |  Branch (72:12): [True: 0, False: 1]
  |  Branch (72:19): [True: 0, False: 0]
  ------------------
   73|      0|            setMinLogLevel(LogMessageLevel(min_lml));
   74|       |
   75|      1|        if(mDebugOut)
  ------------------
  |  Branch (75:12): [True: 0, False: 1]
  ------------------
   76|      0|        {
   77|      0|            val = getenv("TERM");
   78|      0|            mTermHasColours = val && String(val).find("xterm") != String::npos;
  ------------------
  |  Branch (78:31): [True: 0, False: 0]
  |  Branch (78:38): [True: 0, False: 0]
  ------------------
   79|      0|        }
   80|      1|#endif
   81|      1|    }
_ZN4Ogre3Log10logMessageERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_15LogMessageLevelEb:
   94|  4.40k|    {
   95|  4.40k|        OGRE_LOCK_AUTO_MUTEX;
   96|  4.40k|        if (lml >= mLogLevel)
  ------------------
  |  Branch (96:13): [True: 3.06k, False: 1.33k]
  ------------------
   97|  3.06k|        {
   98|  3.06k|            bool skipThisMessage = false;
   99|  3.06k|            for(auto & l : mListeners)
  ------------------
  |  Branch (99:26): [True: 0, False: 3.06k]
  ------------------
  100|      0|                l->messageLogged( message, lml, maskDebug, mLogName, skipThisMessage);
  101|       |            
  102|  3.06k|            if (!skipThisMessage)
  ------------------
  |  Branch (102:17): [True: 3.06k, False: 0]
  ------------------
  103|  3.06k|            {
  104|  3.06k|                if (mDebugOut && !maskDebug)
  ------------------
  |  Branch (104:21): [True: 0, False: 3.06k]
  |  Branch (104:34): [True: 0, False: 0]
  ------------------
  105|      0|                {
  106|       |#    if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && OGRE_DEBUG_MODE
  107|       |                    OutputDebugStringA("Ogre: ");
  108|       |                    OutputDebugStringA(message.c_str());
  109|       |                    OutputDebugStringA("\n");
  110|       |#    endif
  111|       |
  112|      0|                    std::ostream& os = int(lml) >= int(LML_WARNING) ? std::cerr : std::cout;
  ------------------
  |  Branch (112:40): [True: 0, False: 0]
  ------------------
  113|       |
  114|      0|                    if(mTermHasColours) {
  ------------------
  |  Branch (114:24): [True: 0, False: 0]
  ------------------
  115|      0|                        if(lml == LML_WARNING)
  ------------------
  |  Branch (115:28): [True: 0, False: 0]
  ------------------
  116|      0|                            os << YELLOW;
  117|      0|                        if(lml == LML_CRITICAL)
  ------------------
  |  Branch (117:28): [True: 0, False: 0]
  ------------------
  118|      0|                            os << RED;
  119|      0|                    }
  120|       |
  121|      0|                    os << message;
  122|       |
  123|      0|                    if(mTermHasColours) {
  ------------------
  |  Branch (123:24): [True: 0, False: 0]
  ------------------
  124|      0|                        os << RESET;
  125|      0|                    }
  126|       |
  127|      0|                    os << std::endl;
  128|      0|                }
  129|       |
  130|       |                // Write time into log
  131|  3.06k|                if (!mSuppressFile)
  ------------------
  |  Branch (131:21): [True: 3.06k, False: 0]
  ------------------
  132|  3.06k|                {
  133|  3.06k|                    if (mTimeStamp)
  ------------------
  |  Branch (133:25): [True: 3.06k, False: 0]
  ------------------
  134|  3.06k|                    {
  135|  3.06k|                        auto t = std::time(nullptr);
  136|  3.06k|                        auto pTime = std::localtime(&t);
  137|  3.06k|                        mLog << std::put_time(pTime, "%H:%M:%S: ");
  138|  3.06k|                    }
  139|  3.06k|                    mLog << message << std::endl;
  140|       |
  141|       |                    // Flush stcmdream to ensure it is written (incase of a crash, we need log to be up to date)
  142|  3.06k|                    mLog.flush();
  143|  3.06k|                }
  144|  3.06k|            }
  145|  3.06k|        }
  146|  4.40k|    }
_ZN4Ogre3Log14setMinLogLevelENS_15LogMessageLevelE:
  170|      1|    {
  171|      1|        OGRE_LOCK_AUTO_MUTEX;
  172|      1|        mLogLevel = lml;
  173|      1|    }
_ZN4Ogre3Log6streamENS_15LogMessageLevelEb:
  193|  3.06k|    {
  194|  3.06k|        return Stream(this, lml, maskDebug);
  195|       |
  196|  3.06k|    }

_ZN4Ogre10LogManager15getSingletonPtrEv:
   35|      1|    {
   36|      1|        return msSingleton;
   37|      1|    }
_ZN4Ogre10LogManager12getSingletonEv:
   39|  4.40k|    {  
   40|       |        assert( msSingleton );  return ( *msSingleton );  
   41|  4.40k|    }
_ZN4Ogre10LogManagerC2Ev:
   44|      1|    {
   45|       |        mDefaultLog = NULL;
   46|      1|    }
_ZN4Ogre10LogManager9createLogERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbb:
   61|      1|    {
   62|      1|        OGRE_LOCK_AUTO_MUTEX;
   63|       |
   64|      1|        Log* newLog = OGRE_NEW Log(name, debuggerOutput, suppressFileOutput);
   65|       |
   66|      1|        if( !mDefaultLog || defaultLog )
  ------------------
  |  Branch (66:13): [True: 1, False: 0]
  |  Branch (66:29): [True: 0, False: 0]
  ------------------
   67|      1|        {
   68|      1|            mDefaultLog = newLog;
   69|      1|        }
   70|       |
   71|      1|        mLogs.emplace(name, newLog);
   72|       |
   73|      1|        return newLog;
   74|      1|    }
_ZN4Ogre10LogManager10logMessageERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_15LogMessageLevelEb:
  125|  1.33k|    {
  126|  1.33k|        OGRE_LOCK_AUTO_MUTEX;
  127|  1.33k|        if (mDefaultLog)
  ------------------
  |  Branch (127:13): [True: 1.33k, False: 0]
  ------------------
  128|  1.33k|        {
  129|  1.33k|            mDefaultLog->logMessage(message, lml, maskDebug);
  130|  1.33k|        }
  131|  1.33k|    }
_ZN4Ogre10LogManager8logErrorERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  134|  3.06k|    {
  135|  3.06k|        stream(LML_CRITICAL, maskDebug) << "Error: " << message;
  136|  3.06k|    }
_ZN4Ogre10LogManager14setMinLogLevelENS_15LogMessageLevelE:
  155|      1|    {
  156|      1|        OGRE_LOCK_AUTO_MUTEX;
  157|      1|        if (mDefaultLog)
  ------------------
  |  Branch (157:13): [True: 1, False: 0]
  ------------------
  158|      1|        {
  159|      1|            mDefaultLog->setMinLogLevel(lml);
  160|      1|        }
  161|      1|    }
_ZN4Ogre10LogManager6streamENS_15LogMessageLevelEb:
  164|  3.06k|    {
  165|  3.06k|            OGRE_LOCK_AUTO_MUTEX;
  166|  3.06k|        OgreAssert(mDefaultLog, "Default log not found");
  ------------------
  |  Branch (166:9): [True: 0, False: 3.06k]
  ------------------
  167|  3.06k|        return mDefaultLog->stream(lml, maskDebug);
  168|  3.06k|    }

_ZNK4Ogre19ManualObjectFactory7getTypeEv:
  723|      3|    {
  724|      3|        return MOT_MANUAL_OBJECT;
  725|      3|    }

_ZN4Ogre8MaterialC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   39|    632|        :Resource(creator, name, handle, group, false, NULL),
   40|    632|         mReceiveShadows(true),
   41|    632|         mTransparencyCastsShadows(false),
   42|    632|         mCompilationRequired(true)
   43|    632|    {
   44|       |        // Override isManual, not applicable for Material (we always want to call loadImpl)
   45|    632|        if(isManual)
  ------------------
  |  Branch (45:12): [True: 0, False: 632]
  ------------------
   46|      0|        {
   47|      0|            LogManager::getSingleton().logWarning("Material " + name +
   48|      0|                " was requested with isManual=true, but this is not applicable " 
   49|      0|                "for materials; the flag has been reset to false");
   50|      0|        }
   51|       |
   52|       |        // Initialise to default strategy
   53|    632|        mLodStrategy = LodStrategyManager::getSingleton().getDefaultStrategy();
   54|       |
   55|    632|        mLodValues.push_back(0.0f);
   56|       |
   57|    632|        applyDefaults();
   58|       |
   59|       |        /* For consistency with StringInterface, but we don't add any parameters here
   60|       |        That's because the Resource implementation of StringInterface is to
   61|       |        list all the options that need to be set before loading, of which 
   62|       |        we have none as such. Full details can be set through scripts.
   63|       |        */ 
   64|    632|        createParamDictionary("Material");
   65|    632|    }
_ZN4Ogre8MaterialD2Ev:
   68|    629|    {
   69|    629|        removeAllTechniques();
   70|       |        // have to call this here reather than in Resource destructor
   71|       |        // since calling virtual methods in base destructors causes crash
   72|    629|        unload(); 
   73|    629|    }
_ZN4Ogre8MaterialaSERKS0_:
   76|    900|    {
   77|    900|        if (this == &rhs)
  ------------------
  |  Branch (77:13): [True: 0, False: 900]
  ------------------
   78|      0|            return *this;
   79|       |
   80|    900|        Resource::operator=(rhs);
   81|    900|        mReceiveShadows = rhs.mReceiveShadows;
   82|    900|        mTransparencyCastsShadows = rhs.mTransparencyCastsShadows;
   83|       |
   84|       |        // Copy Techniques
   85|    900|        this->removeAllTechniques();
   86|    900|        for(auto *t : rhs.mTechniques)
  ------------------
  |  Branch (86:21): [True: 69.6k, False: 900]
  ------------------
   87|  69.6k|        {
   88|  69.6k|            Technique* tech = this->createTechnique();
   89|  69.6k|            *tech = *t;
   90|  69.6k|            if (t->isSupported())
  ------------------
  |  Branch (90:17): [True: 0, False: 69.6k]
  ------------------
   91|      0|            {
   92|      0|                insertSupportedTechnique(tech);
   93|      0|            }
   94|  69.6k|        }
   95|       |
   96|       |        // Also copy LOD information
   97|    900|        mUserLodValues = rhs.mUserLodValues;
   98|    900|        mLodValues = rhs.mLodValues;
   99|    900|        mLodStrategy = rhs.mLodStrategy;
  100|    900|        mCompilationRequired = rhs.mCompilationRequired;
  101|       |
  102|       |        // creating techniques moves us into unloaded state
  103|       |        // insertSupportedTechnique is equivalent to prepare
  104|    900|        if(rhs.isLoaded())
  ------------------
  |  Branch (104:12): [True: 0, False: 900]
  ------------------
  105|      0|            load();
  106|       |
  107|    900|        return *this;
  108|    900|    }
_ZNK4Ogre8Material5cloneERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  170|    269|    {
  171|    269|        MaterialPtr newMat =
  172|    269|            MaterialManager::getSingleton().create(newName, newGroup.empty() ? mGroup : newGroup);
  ------------------
  |  Branch (172:61): [True: 269, False: 0]
  ------------------
  173|       |
  174|    269|        if(!newMat) // interception by collision handler
  ------------------
  |  Branch (174:12): [True: 0, False: 269]
  ------------------
  175|      0|            return newMat;
  176|       |
  177|       |        // Keep handle (see below, copy overrides everything)
  178|    269|        ResourceHandle newHandle = newMat->getHandle();
  179|       |        // Assign values from this
  180|    269|        *newMat = *this;
  181|       |        // Restore new group if required, will have been overridden by operator
  182|    269|        if (!newGroup.empty())
  ------------------
  |  Branch (182:13): [True: 0, False: 269]
  ------------------
  183|      0|        {
  184|      0|            newMat->mGroup = newGroup;
  185|      0|        }
  186|       |        
  187|       |        // Correct the name & handle, they get copied too
  188|    269|        newMat->mName = newName;
  189|    269|        newMat->mHandle = newHandle;
  190|       |
  191|       |        //if we're cloning from a loaded material, notify the creator or otherwise size won't be right
  192|    269|        if (newMat->getLoadingState() == LOADSTATE_LOADED)
  ------------------
  |  Branch (192:13): [True: 0, False: 269]
  ------------------
  193|      0|        {
  194|       |            // Notify manager
  195|      0|            if (mCreator)
  ------------------
  |  Branch (195:17): [True: 0, False: 0]
  ------------------
  196|      0|                mCreator->_notifyResourceLoaded(newMat.get());
  197|      0|        }
  198|       |
  199|    269|        return newMat;
  200|    269|    }
_ZN4Ogre8Material13applyDefaultsEv:
  217|    632|    {
  218|    632|        MaterialPtr defaults = MaterialManager::getSingleton().getDefaultSettings();
  219|       |
  220|    632|        if (defaults)
  ------------------
  |  Branch (220:13): [True: 631, False: 1]
  ------------------
  221|    631|        {
  222|       |            // save name & handle
  223|    631|            String savedName = mName;
  224|    631|            String savedGroup = mGroup;
  225|    631|            ResourceHandle savedHandle = mHandle;
  226|    631|            *this = *defaults;
  227|       |            // restore name & handle
  228|    631|            mName = savedName;
  229|    631|            mHandle = savedHandle;
  230|    631|            mGroup = savedGroup;
  231|    631|        }
  232|    632|        _notifyNeedsRecompile();
  233|       |
  234|    632|    }
_ZN4Ogre8Material15createTechniqueEv:
  237|  70.6k|    {
  238|       |        Technique *t = OGRE_NEW Technique(this);
  239|  70.6k|        mTechniques.push_back(t);
  240|  70.6k|        _notifyNeedsRecompile();
  241|  70.6k|        return t;
  242|  70.6k|    }
_ZN4Ogre8Material19removeAllTechniquesEv:
  367|  1.88k|    {
  368|  1.88k|        for (auto *t : mTechniques)
  ------------------
  |  Branch (368:22): [True: 70.6k, False: 1.88k]
  ------------------
  369|  70.6k|        {
  370|       |            OGRE_DELETE t;
  371|  70.6k|        }
  372|  1.88k|        mTechniques.clear();
  373|  1.88k|        clearBestTechniqueList();
  374|  1.88k|    }
_ZN4Ogre8Material22clearBestTechniqueListEv:
  437|  1.88k|    {
  438|  1.88k|        mSupportedTechniques.clear();
  439|  1.88k|        mBestTechniquesBySchemeList.clear();
  440|  1.88k|        _notifyNeedsRecompile();
  441|  1.88k|    }
_ZN4Ogre8Material18setLightingEnabledEb:
  493|      1|    void Material::setLightingEnabled(bool enabled) { ALL_TECHNIQUES(setLightingEnabled(enabled)); }
  ------------------
  |  |  443|      1|    #define ALL_TECHNIQUES(fncall) for(auto t : mTechniques) t->fncall
  |  |  ------------------
  |  |  |  Branch (443:47): [True: 1, False: 1]
  |  |  ------------------
  ------------------
_ZN4Ogre8Material21_notifyNeedsRecompileEv:
  534|  74.6k|    {
  535|  74.6k|        mCompilationRequired = true;
  536|       |        // Also need to unload to ensure we loaded any new items
  537|  74.6k|        if (isLoaded()) // needed to stop this being called in 'loading' state
  ------------------
  |  Branch (537:13): [True: 0, False: 74.6k]
  ------------------
  538|      0|            unload();
  539|  74.6k|    }
_ZN4Ogre8Material12setLodLevelsERKNSt3__16vectorIfNS1_9allocatorIfEEEE:
  542|      7|    {
  543|       |        // Square the distances for the internal list
  544|       |        // First, clear and add single zero entry
  545|      7|        mLodValues.clear();
  546|      7|        mUserLodValues.clear();
  547|      7|        mUserLodValues.push_back(0);
  548|      7|        if (mLodStrategy)
  ------------------
  |  Branch (548:13): [True: 7, False: 0]
  ------------------
  549|      7|            mLodValues.push_back(mLodStrategy->getBaseValue());
  550|      7|        for (auto& v : lodValues)
  ------------------
  |  Branch (550:22): [True: 48.8k, False: 7]
  ------------------
  551|  48.8k|        {
  552|  48.8k|            mUserLodValues.push_back(v);
  553|  48.8k|            if (mLodStrategy)
  ------------------
  |  Branch (553:17): [True: 48.8k, False: 0]
  ------------------
  554|  48.8k|                mLodValues.push_back(mLodStrategy->transformUserValue(v));
  555|  48.8k|        }
  556|      7|    }
_ZN4Ogre8Material14setLodStrategyEPNS_11LodStrategyE:
  579|      1|    {
  580|      1|        mLodStrategy = lodStrategy;
  581|       |
  582|      1|        assert(mLodValues.size());
  583|      1|        mLodValues[0] = mLodStrategy->getBaseValue();
  584|       |
  585|       |        // Re-transform all user LOD values (starting at index 1, no need to transform base value)
  586|      1|        for (size_t i = 1; i < mUserLodValues.size(); ++i)
  ------------------
  |  Branch (586:28): [True: 0, False: 1]
  ------------------
  587|      0|            mLodValues[i] = mLodStrategy->transformUserValue(mUserLodValues[i]);
  588|      1|    }

_ZN4Ogre15MaterialManager15getSingletonPtrEv:
   40|   140k|    {
   41|   140k|        return msSingleton;
   42|   140k|    }
_ZN4Ogre15MaterialManager12getSingletonEv:
   44|   203k|    {
   45|       |        assert( msSingleton );  return ( *msSingleton );
   46|   203k|    }
_ZN4Ogre15MaterialManagerC2Ev:
   50|      1|    {
   51|       |        // Loading order
   52|      1|        mLoadOrder = 100.0f;
   53|       |        // Scripting is supported by this manager
   54|       |
   55|       |        // Resource type
   56|      1|        mResourceType = "Material";
   57|       |
   58|       |        // Register with resource group manager
   59|      1|        ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);
   60|       |
   61|       |        // Default scheme
   62|      1|        mActiveSchemeIndex = 0;
   63|      1|        mActiveSchemeName = MSN_DEFAULT;
   64|      1|        mSchemes[mActiveSchemeName] = 0;
   65|       |
   66|      1|    }
_ZN4Ogre15MaterialManager10createImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmS9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   83|    632|    {
   84|       |        return OGRE_NEW Material(this, name, handle, group, isManual, loader);
   85|    632|    }
_ZN4Ogre15MaterialManager6createERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   90|    632|    {
   91|    632|        return static_pointer_cast<Material>(createResource(name,group,isManual,loader,createParams));
   92|    632|    }
_ZNK4Ogre15MaterialManager9getByNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
   95|  61.6k|    {
   96|  61.6k|        return static_pointer_cast<Material>(getResourceByName(name, groupName));
   97|  61.6k|    }
_ZN4Ogre15MaterialManager10initialiseEv:
  111|      1|    {
  112|       |        // Set up default material - don't use name constructor as we want to avoid applying defaults
  113|      1|        mDefaultSettings = create("DefaultSettings", ResourceGroupManager::INTERNAL_RESOURCE_GROUP_NAME);
  114|       |        // Add a single technique and pass, non-programmable
  115|      1|        mDefaultSettings->createTechnique()->createPass();
  116|       |
  117|       |        // Set the default LOD strategy
  118|      1|        mDefaultSettings->setLodStrategy(LodStrategyManager::getSingleton().getDefaultStrategy());
  119|       |
  120|       |        // Set up a lit base white material
  121|      1|        create("BaseWhite", ResourceGroupManager::INTERNAL_RESOURCE_GROUP_NAME);
  122|       |        // Set up an unlit base white material
  123|      1|        MaterialPtr baseWhiteNoLighting = create("BaseWhiteNoLighting",
  124|      1|        ResourceGroupManager::INTERNAL_RESOURCE_GROUP_NAME);
  125|      1|        baseWhiteNoLighting->setLightingEnabled(false);
  126|       |
  127|      1|    }
_ZN4Ogre15MaterialManager15_getSchemeIndexERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  161|    111|    {
  162|    111|        unsigned short ret = 0;
  163|    111|        SchemeMap::iterator i = mSchemes.find(schemeName);
  164|    111|        if (i != mSchemes.end())
  ------------------
  |  Branch (164:13): [True: 89, False: 22]
  ------------------
  165|     89|        {
  166|     89|            ret = i->second;
  167|     89|        }
  168|     22|        else
  169|     22|        {
  170|       |            // Create new
  171|     22|            ret = static_cast<unsigned short>(mSchemes.size());
  172|     22|            mSchemes[schemeName] = ret;
  173|     22|        }
  174|    111|        return ret;
  175|       |
  176|    111|    }
_ZN4Ogre15MaterialManager38_notifyBeforeIlluminationPassesClearedEPNS_9TechniqueE:
  273|   140k|	{
  274|       |		// First, check the scheme specific listeners
  275|   140k|		ListenerMap::iterator it = mListenerMap.find(mActiveSchemeName);
  276|   140k|		if(it != mListenerMap.end())
  ------------------
  |  Branch (276:6): [True: 0, False: 140k]
  ------------------
  277|      0|		{
  278|      0|			ListenerList& listenerList = it->second;
  279|      0|			for(auto & i : listenerList)
  ------------------
  |  Branch (279:17): [True: 0, False: 0]
  ------------------
  280|      0|			{
  281|      0|				bool handled = i->beforeIlluminationPassesCleared(tech);
  282|      0|				if(handled)
  ------------------
  |  Branch (282:8): [True: 0, False: 0]
  ------------------
  283|      0|					return;
  284|      0|			}
  285|      0|		}
  286|       |
  287|       |		//If no success, check generic listeners
  288|   140k|		it = mListenerMap.find(BLANKSTRING);
  289|   140k|		if(it != mListenerMap.end())
  ------------------
  |  Branch (289:6): [True: 0, False: 140k]
  ------------------
  290|      0|		{
  291|      0|			ListenerList& listenerList = it->second;
  292|      0|			for(auto & i : listenerList)
  ------------------
  |  Branch (292:17): [True: 0, False: 0]
  ------------------
  293|      0|			{
  294|      0|				bool handled = i->beforeIlluminationPassesCleared(tech);
  295|      0|				if(handled)
  ------------------
  |  Branch (295:8): [True: 0, False: 0]
  ------------------
  296|      0|					return;
  297|      0|			}
  298|      0|		}
  299|   140k|	}

_ZN4Ogre11MeshManagerC2Ev:
   63|      1|    mBoundsPaddingFactor(0.01), mListener(0)
   64|      1|    {
   65|      1|        mBlendWeightsBaseElementType = VET_FLOAT1;
   66|      1|        mPrepAllMeshesForShadowVolumes = false;
   67|       |
   68|      1|        mLoadOrder = 350.0f;
   69|      1|        mResourceType = "Mesh";
   70|       |
   71|      1|        mMeshCodec = std::make_unique<MeshCodec>();
   72|      1|        Codec::registerCodec(mMeshCodec.get());
   73|       |
   74|      1|        ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);
   75|       |
   76|      1|        mPrefabLoader = std::make_unique<PrefabFactory>();
   77|      1|    }
_ZNK4Ogre9MeshCodec7getTypeEv:
   39|      1|        String getType() const override { return "mesh"; }

_ZN4Ogre18MurmurHash3_x86_32EPKvmjPv:
   98|  52.0k|{
   99|  52.0k|  const uint8_t * data = (const uint8_t*)key;
  100|  52.0k|  const int nblocks = len / 4;
  101|       |
  102|  52.0k|  uint32_t h1 = seed;
  103|       |
  104|  52.0k|  const uint32_t c1 = 0xcc9e2d51;
  105|  52.0k|  const uint32_t c2 = 0x1b873593;
  106|       |
  107|       |  //----------
  108|       |  // body
  109|       |
  110|  52.0k|  const uint32_t * blocks = (const uint32_t *)(data + nblocks*4);
  111|       |
  112|   212k|  for(int i = -nblocks; i; i++)
  ------------------
  |  Branch (112:25): [True: 160k, False: 52.0k]
  ------------------
  113|   160k|  {
  114|   160k|    uint32_t k1 = getblock32(blocks,i);
  115|       |
  116|   160k|    k1 *= c1;
  117|   160k|    k1 = ROTL32(k1,15);
  ------------------
  |  |   44|   160k|#define ROTL32(x,y) rotl32(x,y)
  ------------------
  118|   160k|    k1 *= c2;
  119|       |    
  120|   160k|    h1 ^= k1;
  121|   160k|    h1 = ROTL32(h1,13); 
  ------------------
  |  |   44|   160k|#define ROTL32(x,y) rotl32(x,y)
  ------------------
  122|   160k|    h1 = h1*5+0xe6546b64;
  123|   160k|  }
  124|       |
  125|       |  //----------
  126|       |  // tail
  127|       |
  128|  52.0k|  const uint8_t * tail = (const uint8_t*)(data + nblocks*4);
  129|       |
  130|  52.0k|  uint32_t k1 = 0;
  131|       |
  132|  52.0k|  switch(len & 3)
  ------------------
  |  Branch (132:10): [True: 1, False: 52.0k]
  ------------------
  133|  52.0k|  {
  134|      0|  case 3: k1 ^= tail[2] << 16; OGRE_FALLTHROUGH;
  ------------------
  |  Branch (134:3): [True: 0, False: 52.0k]
  ------------------
  135|      0|  case 2: k1 ^= tail[1] << 8; OGRE_FALLTHROUGH;
  ------------------
  |  Branch (135:3): [True: 0, False: 52.0k]
  ------------------
  136|      1|  case 1: k1 ^= tail[0];
  ------------------
  |  Branch (136:3): [True: 1, False: 52.0k]
  ------------------
  137|      1|          k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1;
  ------------------
  |  |   44|      1|#define ROTL32(x,y) rotl32(x,y)
  ------------------
  138|  52.0k|  };
  139|       |
  140|       |  //----------
  141|       |  // finalization
  142|       |
  143|  52.0k|  h1 ^= len;
  144|       |
  145|  52.0k|  h1 = fmix32(h1);
  146|       |
  147|  52.0k|  *(uint32_t*)out = h1;
  148|  52.0k|} 
_ZN4Ogre10getblock32EPKji:
   58|   160k|{
   59|   160k|  return p[i];
   60|   160k|}
_Z6rotl32ja:
   35|   321k|{
   36|   321k|  return (x << r) | (x >> (32 - r));
   37|   321k|}
_ZN4Ogre6fmix32Ej:
   71|  52.0k|{
   72|  52.0k|  h ^= h >> 16;
   73|  52.0k|  h *= 0x85ebca6b;
   74|  52.0k|  h ^= h >> 13;
   75|  52.0k|  h *= 0xc2b2ae35;
   76|  52.0k|  h ^= h >> 16;
   77|       |
   78|  52.0k|  return h;
   79|  52.0k|}

_ZN4Ogre13OptimisedUtil21_detectImplementationEv:
  326|      2|    {
  327|       |        //
  328|       |        // Some speed test results (averaged number of CPU timestamp (RDTSC) per-function call):
  329|       |        //
  330|       |        //   Dagon SkeletonAnimation sample - softwareVertexSkinning:
  331|       |        //
  332|       |        //                                      Pentium 4 3.0G HT       Athlon XP 2500+     Athlon 64 X2 Dual Core 3800+
  333|       |        //
  334|       |        //      Shared Buffers, General C       763677                  462903              473038
  335|       |        //      Shared Buffers, Unrolled SSE    210030 *best*           369762              228328 *best*
  336|       |        //      Shared Buffers, General SSE     286202                  352412 *best*       302796
  337|       |        //
  338|       |        //      Separated Buffers, General C    762640                  464840              478740
  339|       |        //      Separated Buffers, Unrolled SSE 219222 *best*           287992 *best*       238770 *best*
  340|       |        //      Separated Buffers, General SSE  290129                  341614              307262
  341|       |        //
  342|       |        //      PosOnly, General C              388663                  257350              262831
  343|       |        //      PosOnly, Unrolled SSE           139814 *best*           200323 *best*       168995 *best*
  344|       |        //      PosOnly, General SSE            172693                  213704              175447
  345|       |        //
  346|       |        //   Another my own test scene - softwareVertexSkinning:
  347|       |        //
  348|       |        //                                      Pentium P4 3.0G HT      Athlon XP 2500+
  349|       |        //
  350|       |        //      Shared Buffers, General C       74527                   -
  351|       |        //      Shared Buffers, Unrolled SSE    22743 *best*            -
  352|       |        //      Shared Buffers, General SSE     28527                   -
  353|       |        //
  354|       |        //
  355|       |        // Note that speed test appears unaligned load/store instruction version
  356|       |        // loss performance 5%-10% than aligned load/store version, even if both
  357|       |        // of them access to aligned data. Thus, we should use aligned load/store
  358|       |        // as soon as possible.
  359|       |        //
  360|       |        //
  361|       |        // We are pick up the implementation based on test results above.
  362|       |        //
  363|       |#ifdef __DO_PROFILE__
  364|       |        {
  365|       |            static OptimisedUtilProfiler msOptimisedUtilProfiler;
  366|       |            return &msOptimisedUtilProfiler;
  367|       |        }
  368|       |
  369|       |#else   // !__DO_PROFILE__
  370|       |
  371|      2|#if __OGRE_HAVE_SSE
  372|      2|        if (PlatformInformation::getCpuFeatures() & PlatformInformation::CPU_FEATURE_SSE)
  ------------------
  |  Branch (372:13): [True: 2, False: 0]
  ------------------
  373|      2|        {
  374|      2|            return _getOptimisedUtilSSE();
  375|      2|        }
  376|      0|        else
  377|       |#elif __OGRE_HAVE_NEON
  378|       |        if (PlatformInformation::getCpuFeatures() & PlatformInformation::CPU_FEATURE_NEON)
  379|       |        {
  380|       |            return _getOptimisedUtilSSE();
  381|       |        }
  382|       |        else
  383|       |#endif  // __OGRE_HAVE_SSE
  384|      0|        {
  385|      0|            return _getOptimisedUtilGeneral();
  386|      0|        }
  387|       |
  388|      2|#endif  // __DO_PROFILE__
  389|      2|    }

_ZN4Ogre16OptimisedUtilSSEC2Ev:
  900|      2|        : mPreferGeneralVersionForSharedBuffers(false)
  901|      2|    {
  902|       |        // For AMD Athlon XP (but not that for Althon 64), it's prefer to never use
  903|       |        // unrolled version for shared buffers at all, I guess because that version
  904|       |        // run out of usable CPU registers, or L1/L2 cache related problem, causing
  905|       |        // slight performance loss than general version.
  906|       |        //
  907|      2|#if OGRE_CPU == OGRE_CPU_X86
  908|      2|        if (PlatformInformation::getCpuIdentifier().find("AuthenticAMD") != String::npos)
  ------------------
  |  Branch (908:13): [True: 0, False: 2]
  ------------------
  909|      0|        {
  910|       |            // How can I check it's an Athlon XP but not Althon 64?
  911|       |            // Ok, just test whether supports SSE2/SSE3 or not, if not,
  912|       |            // assume general version faster than unrolled version :)
  913|       |            //
  914|      0|            if (!(PlatformInformation::getCpuFeatures() &
  ------------------
  |  Branch (914:17): [True: 0, False: 0]
  ------------------
  915|      0|                (PlatformInformation::CPU_FEATURE_SSE2 | PlatformInformation::CPU_FEATURE_SSE3)))
  916|      0|            {
  917|      0|                mPreferGeneralVersionForSharedBuffers = true;
  918|      0|            }
  919|      0|        }
  920|      2|#endif
  921|      2|    }
_ZN4Ogre20_getOptimisedUtilSSEEv:
 1993|      2|    {
 1994|      2|        static OptimisedUtilSSE msOptimisedUtilSSE;
 1995|      2|        return &msOptimisedUtilSSE;
 1996|      2|    }

_ZN4Ogre10PVRTCCodec7startupEv:
  114|      1|    {
  115|      1|        if (!msInstance)
  ------------------
  |  Branch (115:13): [True: 1, False: 0]
  ------------------
  116|      1|        {
  117|      1|            LogManager::getSingleton().logMessage(
  118|      1|                LML_NORMAL,
  119|      1|                "PVRTC codec registering");
  120|       |
  121|       |            msInstance = OGRE_NEW PVRTCCodec();
  122|      1|            Codec::registerCodec(msInstance);
  123|      1|        }
  124|      1|    }
_ZN4Ogre10PVRTCCodecC2Ev:
  137|      1|        mType("pvr")
  138|      1|    { 
  139|      1|    }
_ZNK4Ogre10PVRTCCodec7getTypeEv:
  289|      1|    {
  290|      1|        return mType;
  291|      1|    }

_ZN4Ogre21ParticleSystemManager12getSingletonEv:
   47|    327|    {  
   48|       |        assert( msSingleton );  return ( *msSingleton );  
   49|    327|    }
_ZN4Ogre21ParticleSystemManagerC2Ev:
   52|      1|    {
   53|      1|        OGRE_LOCK_AUTO_MUTEX;
   54|       |        mFactory = OGRE_NEW ParticleSystemFactory();
   55|      1|        Root::getSingleton().addMovableObjectFactory(mFactory);
   56|      1|    }
_ZN4Ogre21ParticleSystemManager18removeAllTemplatesEb:
  133|    327|    {
  134|    327|        OGRE_LOCK_AUTO_MUTEX;
  135|    327|        if (deleteTemplate)
  ------------------
  |  Branch (135:13): [True: 327, False: 0]
  ------------------
  136|    327|        {
  137|    327|            ParticleTemplateMap::iterator itr;
  138|    327|            for (itr = mSystemTemplates.begin(); itr != mSystemTemplates.end(); ++itr)
  ------------------
  |  Branch (138:50): [True: 0, False: 327]
  ------------------
  139|    327|                OGRE_DELETE itr->second;
  140|    327|        }
  141|       |
  142|    327|        mSystemTemplates.clear();
  143|    327|    }
_ZNK4Ogre21ParticleSystemFactory7getTypeEv:
  397|      3|    {
  398|      3|        return MOT_PARTICLE_SYSTEM;
  399|      3|    }

_ZN4Ogre4Pass22getBuiltinHashFunctionENS0_19BuiltinHashFunctionE:
   92|  36.3k|    {
   93|  36.3k|        Pass::HashFunc* hashFunc = NULL;
   94|       |
   95|  36.3k|        switch(builtin)
  ------------------
  |  Branch (95:16): [True: 36.3k, False: 0]
  ------------------
   96|  36.3k|        {
   97|  35.4k|        case MIN_TEXTURE_CHANGE:
  ------------------
  |  Branch (97:9): [True: 35.4k, False: 867]
  ------------------
   98|  35.4k|            hashFunc = &sMinTextureStateChangeHashFunc;
   99|  35.4k|            break;
  100|    867|        case MIN_GPU_PROGRAM_CHANGE:
  ------------------
  |  Branch (100:9): [True: 867, False: 35.4k]
  ------------------
  101|    867|            hashFunc = &sMinGpuProgramChangeHashFunc;
  102|    867|            break;
  103|  36.3k|        }
  104|       |
  105|  36.3k|        return hashFunc;
  106|  36.3k|    }
_ZN4Ogre4PassC2EPNS_9TechniqueEt:
  122|  45.9k|        : mParent(parent)
  123|  45.9k|        , mHash(0)
  124|  45.9k|        , mAmbient(ColourValue::White)
  125|  45.9k|        , mDiffuse(ColourValue::White)
  126|  45.9k|        , mSpecular(ColourValue::Black)
  127|  45.9k|        , mEmissive(ColourValue::Black)
  128|  45.9k|        , mShininess(0)
  129|  45.9k|        , mTracking(TVC_NONE)
  130|  45.9k|        , mHashDirtyQueued(false)
  131|  45.9k|        , mDepthCheck(true)
  132|  45.9k|        , mDepthWrite(true)
  133|  45.9k|        , mAlphaToCoverageEnabled(false)
  134|  45.9k|        , mTransparentSorting(true)
  135|  45.9k|        , mTransparentSortingForced(false)
  136|  45.9k|        , mLightingEnabled(true)
  137|  45.9k|        , mIteratePerLight(false)
  138|  45.9k|        , mRunOnlyForOneLightType(false)
  139|  45.9k|        , mPolygonModeOverrideable(true)
  140|  45.9k|        , mFogOverride(false)
  141|  45.9k|        , mQueuedForDeletion(false)
  142|  45.9k|        , mLightScissoring(false)
  143|  45.9k|        , mLightClipPlanes(false)
  144|  45.9k|        , mPointSpritesEnabled(false)
  145|  45.9k|        , mPointAttenuationEnabled(false)
  146|  45.9k|        , mContentTypeLookupBuilt(false)
  147|  45.9k|        , mAlphaRejectVal(0)
  148|  45.9k|        , mDepthBiasConstant(0.0f)
  149|  45.9k|        , mDepthBiasSlopeScale(0.0f)
  150|  45.9k|        , mDepthBiasPerIteration(0.0f)
  151|  45.9k|        , mDepthFunc(CMPF_LESS_EQUAL)
  152|  45.9k|        , mAlphaRejectFunc(CMPF_ALWAYS_PASS)
  153|  45.9k|        , mCullMode(CULL_CLOCKWISE)
  154|  45.9k|        , mManualCullMode(MANUAL_CULL_BACK)
  155|  45.9k|        , mMaxSimultaneousLights(OGRE_MAX_SIMULTANEOUS_LIGHTS)
  156|  45.9k|        , mStartLight(0)
  157|  45.9k|        , mLightsPerIteration(1)
  158|  45.9k|        , mIndex(index)
  159|  45.9k|        , mLightMask(0xFFFFFFFF)
  160|  45.9k|        , mFogColour(ColourValue::White)
  161|  45.9k|        , mFogStart(0.0)
  162|  45.9k|        , mFogEnd(1.0)
  163|  45.9k|        , mFogDensity(0.001)
  164|  45.9k|        , mLineWidth(1.0f)
  165|  45.9k|        , mPassIterationCount(1)
  166|  45.9k|        , mPointMinSize(0.0f)
  167|  45.9k|        , mPointMaxSize(0.0f)
  168|  45.9k|        , mPointAttenution(1.0f, 1.0f, 0.0f, 0.0f)
  169|  45.9k|        , mShadeOptions(SO_GOURAUD)
  170|  45.9k|        , mPolygonMode(PM_SOLID)
  171|  45.9k|        , mIlluminationStage(IS_UNKNOWN)
  172|  45.9k|        , mOnlyLightType(Light::LT_POINT)
  173|  45.9k|        , mFogMode(FOG_NONE)
  174|  45.9k|    {
  175|       |        // init the hash inline
  176|  45.9k|        _recalculateHash();
  177|  45.9k|   }
_ZN4Ogre4PassC2EPNS_9TechniqueEtRKS0_:
  181|  69.6k|        : mParent(parent), mQueuedForDeletion(false), mIndex(index), mPassIterationCount(1)
  182|  69.6k|    {
  183|  69.6k|        *this = oth;
  184|  69.6k|        mParent = parent;
  185|  69.6k|        mIndex = index;
  186|  69.6k|        mQueuedForDeletion = false;
  187|       |
  188|       |        // init the hash inline
  189|  69.6k|        _recalculateHash();
  190|  69.6k|    }
_ZN4Ogre4PassD2Ev:
  191|   115k|    Pass::~Pass() = default; // ensure unique_ptr destructors are in cpp
_ZN4Ogre4PassaSERKS0_:
  194|  69.6k|    {
  195|  69.6k|        mName = oth.mName;
  196|  69.6k|        mHash = oth.mHash;
  197|  69.6k|        mAmbient = oth.mAmbient;
  198|  69.6k|        mDiffuse = oth.mDiffuse;
  199|  69.6k|        mSpecular = oth.mSpecular;
  200|  69.6k|        mEmissive = oth.mEmissive;
  201|  69.6k|        mShininess = oth.mShininess;
  202|  69.6k|        mTracking = oth.mTracking;
  203|       |
  204|       |        // Copy fog parameters
  205|  69.6k|        mFogOverride = oth.mFogOverride;
  206|  69.6k|        mFogMode = oth.mFogMode;
  207|  69.6k|        mFogColour = oth.mFogColour;
  208|  69.6k|        mFogStart = oth.mFogStart;
  209|  69.6k|        mFogEnd = oth.mFogEnd;
  210|  69.6k|        mFogDensity = oth.mFogDensity;
  211|       |
  212|       |        // Default blending (overwrite)
  213|  69.6k|        mBlendState = oth.mBlendState;
  214|       |
  215|  69.6k|        mDepthCheck = oth.mDepthCheck;
  216|  69.6k|        mDepthWrite = oth.mDepthWrite;
  217|  69.6k|        mAlphaRejectFunc = oth.mAlphaRejectFunc;
  218|  69.6k|        mAlphaRejectVal = oth.mAlphaRejectVal;
  219|  69.6k|        mAlphaToCoverageEnabled = oth.mAlphaToCoverageEnabled;
  220|  69.6k|        mTransparentSorting = oth.mTransparentSorting;
  221|  69.6k|        mTransparentSortingForced = oth.mTransparentSortingForced;
  222|  69.6k|        mDepthFunc = oth.mDepthFunc;
  223|  69.6k|        mDepthBiasConstant = oth.mDepthBiasConstant;
  224|  69.6k|        mDepthBiasSlopeScale = oth.mDepthBiasSlopeScale;
  225|  69.6k|        mDepthBiasPerIteration = oth.mDepthBiasPerIteration;
  226|  69.6k|        mCullMode = oth.mCullMode;
  227|  69.6k|        mManualCullMode = oth.mManualCullMode;
  228|  69.6k|        mLightingEnabled = oth.mLightingEnabled;
  229|  69.6k|        mMaxSimultaneousLights = oth.mMaxSimultaneousLights;
  230|  69.6k|        mStartLight = oth.mStartLight;
  231|  69.6k|        mIteratePerLight = oth.mIteratePerLight;
  232|  69.6k|        mLightsPerIteration = oth.mLightsPerIteration;
  233|  69.6k|        mRunOnlyForOneLightType = oth.mRunOnlyForOneLightType;
  234|  69.6k|        mOnlyLightType = oth.mOnlyLightType;
  235|  69.6k|        mShadeOptions = oth.mShadeOptions;
  236|  69.6k|        mPolygonMode = oth.mPolygonMode;
  237|  69.6k|        mPolygonModeOverrideable = oth.mPolygonModeOverrideable;
  238|  69.6k|        mPassIterationCount = oth.mPassIterationCount;
  239|  69.6k|        mLineWidth = oth.mLineWidth;
  240|  69.6k|        mPointAttenution = oth.mPointAttenution;
  241|  69.6k|        mPointMinSize = oth.mPointMinSize;
  242|  69.6k|        mPointMaxSize = oth.mPointMaxSize;
  243|  69.6k|        mPointSpritesEnabled = oth.mPointSpritesEnabled;
  244|  69.6k|        mPointAttenuationEnabled = oth.mPointAttenuationEnabled;
  245|  69.6k|        mShadowContentTypeLookup = oth.mShadowContentTypeLookup;
  246|  69.6k|        mContentTypeLookupBuilt = oth.mContentTypeLookupBuilt;
  247|  69.6k|        mLightScissoring = oth.mLightScissoring;
  248|  69.6k|        mLightClipPlanes = oth.mLightClipPlanes;
  249|  69.6k|        mIlluminationStage = oth.mIlluminationStage;
  250|  69.6k|        mLightMask = oth.mLightMask;
  251|       |
  252|   418k|        for(int i = 0; i < GPT_PIPELINE_COUNT; i++)
  ------------------
  |  Branch (252:24): [True: 348k, False: 69.6k]
  ------------------
  253|   348k|        {
  254|   348k|            auto& programUsage = mProgramUsage[i];
  255|   348k|            auto& othUsage = oth.mProgramUsage[i];
  256|   348k|            programUsage = othUsage ? std::make_unique<GpuProgramUsage>(*othUsage, this) : nullptr;
  ------------------
  |  Branch (256:28): [True: 52.0k, False: 296k]
  ------------------
  257|   348k|        }
  258|       |
  259|       |        // Clear texture units but doesn't notify need recompilation in the case
  260|       |        // we are cloning, The parent material will take care of this.
  261|  69.6k|        for (auto *t : mTextureUnitStates)
  ------------------
  |  Branch (261:22): [True: 0, False: 69.6k]
  ------------------
  262|      0|        {
  263|      0|            OGRE_DELETE t;
  264|      0|        }
  265|       |
  266|  69.6k|        mTextureUnitStates.clear();
  267|       |
  268|       |        // Copy texture units
  269|  69.6k|        for (auto *s : oth.mTextureUnitStates)
  ------------------
  |  Branch (269:22): [True: 34.4k, False: 69.6k]
  ------------------
  270|  34.4k|        {
  271|  34.4k|            TextureUnitState* t = OGRE_NEW TextureUnitState(this, *s);
  272|  34.4k|            mTextureUnitStates.push_back(t);
  273|  34.4k|        }
  274|       |
  275|  69.6k|        _dirtyHash();
  276|       |
  277|  69.6k|        return *this;
  278|  69.6k|    }
_ZN4Ogre4Pass22createTextureUnitStateEv:
  355|    534|    {
  356|       |        TextureUnitState *t = OGRE_NEW TextureUnitState(this);
  357|    534|        addTextureUnitState(t);
  358|    534|        mContentTypeLookupBuilt = false;
  359|    534|        return t;
  360|    534|    }
_ZN4Ogre4Pass19addTextureUnitStateEPNS_16TextureUnitStateE:
  374|    534|    {
  375|    534|        OGRE_LOCK_MUTEX(mTexUnitChangeMutex);
  376|       |
  377|    534|        OgreAssert(state , "TextureUnitState is NULL");
  ------------------
  |  Branch (377:9): [True: 0, False: 534]
  ------------------
  378|       |
  379|       |        // only attach TUS to pass if TUS does not belong to another pass
  380|    534|        OgreAssert(!state->getParent() || (state->getParent() == this), "TextureUnitState already attached to another pass");
  ------------------
  |  Branch (380:9): [True: 0, False: 534]
  |  Branch (380:9): [True: 534, False: 0]
  ------------------
  381|       |
  382|    534|        mTextureUnitStates.push_back(state);
  383|       |        // Notify state
  384|    534|        state->_notifyParent(this);
  385|       |        // if texture unit state name is empty then give it a default name based on its index
  386|    534|        if (state->getName().empty())
  ------------------
  |  Branch (386:13): [True: 534, False: 0]
  ------------------
  387|    534|        {
  388|       |            // its the last entry in the container so its index is size - 1
  389|    534|            size_t idx = mTextureUnitStates.size() - 1;
  390|       |
  391|       |            // allow 8 digit hex number. there should never be that many texture units.
  392|       |            // This sprintf replaced a call to StringConverter::toString for performance reasons
  393|    534|            state->setName( StringUtil::format("%lx", static_cast<long>(idx)));
  394|    534|        }
  395|    534|        _notifyNeedsRecompile();
  396|    534|        _dirtyHash();
  397|       |
  398|    534|        mContentTypeLookupBuilt = false;
  399|    534|    }
_ZN4Ogre4Pass26removeAllTextureUnitStatesEv:
  459|   115k|    {
  460|   115k|        OGRE_LOCK_MUTEX(mTexUnitChangeMutex);
  461|   115k|        TextureUnitStates::iterator i, iend;
  462|   115k|        iend = mTextureUnitStates.end();
  463|   150k|        for (i = mTextureUnitStates.begin(); i != iend; ++i)
  ------------------
  |  Branch (463:46): [True: 34.9k, False: 115k]
  ------------------
  464|  34.9k|        {
  465|       |            OGRE_DELETE *i;
  466|  34.9k|        }
  467|   115k|        mTextureUnitStates.clear();
  468|   115k|        _notifyNeedsRecompile();
  469|   115k|        _dirtyHash();
  470|   115k|        mContentTypeLookupBuilt = false;
  471|   115k|    }
_ZN4Ogre4Pass16setSceneBlendingENS_14SceneBlendTypeE:
  502|    153|    {
  503|       |        // Convert type into blend factors
  504|       |
  505|    153|        SceneBlendFactor source;
  506|    153|        SceneBlendFactor dest;
  507|    153|        _getBlendFlags(sbt, source, dest);
  508|       |
  509|       |        // Set blend factors
  510|       |
  511|    153|        setSceneBlending(source, dest);
  512|    153|    }
_ZN4Ogre4Pass24setSeparateSceneBlendingENS_14SceneBlendTypeES1_:
  515|     12|    {
  516|       |        // Convert types into blend factors
  517|       |
  518|     12|        SceneBlendFactor source;
  519|     12|        SceneBlendFactor dest;
  520|     12|        _getBlendFlags(sbt, source, dest);
  521|       |
  522|     12|        SceneBlendFactor sourceAlpha;
  523|     12|        SceneBlendFactor destAlpha;
  524|     12|        _getBlendFlags(sbta, sourceAlpha, destAlpha);
  525|       |
  526|       |        // Set blend factors
  527|       |
  528|     12|        setSeparateSceneBlending(source, dest, sourceAlpha, destAlpha);
  529|     12|    }
_ZN4Ogre4Pass16setSceneBlendingENS_16SceneBlendFactorES1_:
  533|    153|    {
  534|    153|        mBlendState.sourceFactor = sourceFactor;
  535|    153|        mBlendState.sourceFactorAlpha = sourceFactor;
  536|    153|        mBlendState.destFactor = destFactor;
  537|    153|        mBlendState.destFactorAlpha = destFactor;
  538|    153|    }
_ZN4Ogre4Pass24setSeparateSceneBlendingENS_16SceneBlendFactorES1_S1_S1_:
  541|     12|    {
  542|     12|        mBlendState.sourceFactor = sourceFactor;
  543|     12|        mBlendState.destFactor = destFactor;
  544|     12|        mBlendState.sourceFactorAlpha = sourceFactorAlpha;
  545|     12|        mBlendState.destFactorAlpha = destFactorAlpha;
  546|     12|    }
_ZN4Ogre4Pass21setColourWriteEnabledEbbbb:
  600|     47|    {
  601|     47|        mBlendState.writeR = red;
  602|     47|        mBlendState.writeG = green;
  603|     47|        mBlendState.writeB = blue;
  604|     47|        mBlendState.writeA = alpha;
  605|     47|    }
_ZN4Ogre4Pass6setFogEbNS_7FogModeERKNS_11ColourValueEfff:
  634|     60|    {
  635|     60|        mFogOverride = overrideScene;
  636|     60|        if (overrideScene)
  ------------------
  |  Branch (636:13): [True: 60, False: 0]
  ------------------
  637|     60|        {
  638|     60|            mFogMode = mode;
  639|     60|            mFogColour = colour;
  640|     60|            mFogStart = start;
  641|     60|            mFogEnd = end;
  642|     60|            mFogDensity = density;
  643|     60|        }
  644|     60|    }
_ZN4Ogre4Pass12setDepthBiasEff:
  647|     15|    {
  648|     15|       mDepthBiasConstant = constantBias;
  649|     15|       mDepthBiasSlopeScale = slopeScaleBias;
  650|     15|    }
_ZN4Ogre4Pass13setGpuProgramENS_14GpuProgramTypeERKNS_9SharedPtrINS_10GpuProgramEEEb:
  770|    867|    {
  771|    867|        OGRE_LOCK_MUTEX(mGpuProgramChangeMutex);
  772|       |
  773|    867|        std::unique_ptr<GpuProgramUsage>& programUsage = getProgramUsage(type);
  774|       |
  775|       |        // Turn off fragment program if name blank
  776|    867|        if (!program)
  ------------------
  |  Branch (776:13): [True: 0, False: 867]
  ------------------
  777|      0|        {
  778|      0|            programUsage.reset();
  779|      0|        }
  780|    867|        else
  781|    867|        {
  782|    867|            if (!programUsage)
  ------------------
  |  Branch (782:17): [True: 700, False: 167]
  ------------------
  783|    700|            {
  784|    700|                programUsage = std::make_unique<GpuProgramUsage>(type, this);
  785|    700|            }
  786|    867|            programUsage->setProgram(program, resetParams);
  787|    867|        }
  788|       |        // Needs recompilation
  789|    867|        _notifyNeedsRecompile();
  790|       |
  791|    867|        if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_GPU_PROGRAM_CHANGE ) )
  ------------------
  |  Branch (791:13): [True: 867, False: 0]
  ------------------
  792|    867|        {
  793|    867|            _dirtyHash();
  794|    867|        }
  795|    867|    }
_ZN4Ogre4Pass15getProgramUsageENS_14GpuProgramTypeE:
  820|    867|    std::unique_ptr<GpuProgramUsage>& Pass::getProgramUsage(GpuProgramType programType) {
  821|    867|        return mProgramUsage[programType % GPT_PIPELINE_COUNT];
  822|    867|    }
_ZNK4Ogre4Pass15getProgramUsageENS_14GpuProgramTypeE:
  825|   924k|    {
  826|   924k|        static std::unique_ptr<GpuProgramUsage> nullUsage;
  827|   924k|        auto& ret = mProgramUsage[programType % GPT_PIPELINE_COUNT];
  828|   924k|        return ret && ret->getType() == programType ? ret : nullUsage;
  ------------------
  |  Branch (828:16): [True: 52.2k, False: 872k]
  |  Branch (828:23): [True: 52.0k, False: 270]
  ------------------
  829|   924k|    }
_ZNK4Ogre4Pass17getGpuProgramNameENS_14GpuProgramTypeE:
  843|   924k|    {
  844|   924k|        OGRE_LOCK_MUTEX(mGpuProgramChangeMutex);
  845|       |
  846|   924k|        const std::unique_ptr<GpuProgramUsage>& programUsage = getProgramUsage(type);
  847|   924k|        if (!programUsage)
  ------------------
  |  Branch (847:13): [True: 872k, False: 52.0k]
  ------------------
  848|   872k|            return BLANKSTRING;
  849|  52.0k|        else
  850|  52.0k|            return programUsage->getProgramName();
  851|   924k|    }
_ZNK4Ogre4Pass8isLoadedEv:
  854|  36.8k|    {
  855|  36.8k|        return mParent->isLoaded();
  856|  36.8k|    }
_ZN4Ogre4Pass16_recalculateHashEv:
  859|   115k|    {
  860|       |        /* Hash format is 32-bit, divided as follows (high to low bits)
  861|       |           bits   purpose
  862|       |            4     Pass index (i.e. max 16 passes!)
  863|       |           28     Pass contents
  864|       |       */
  865|   115k|        mHash = (*msHashFunc)(this);
  866|       |
  867|       |        // overwrite the 4 upper bits with pass index
  868|   115k|        mHash = (uint32(mIndex) << 28) | (mHash >> 4);
  869|   115k|    }
_ZN4Ogre4Pass10_dirtyHashEv:
  872|   186k|    {
  873|   186k|        if (mQueuedForDeletion)
  ------------------
  |  Branch (873:13): [True: 115k, False: 71.0k]
  ------------------
  874|   115k|            return;
  875|       |
  876|  71.0k|        Material* mat = mParent->getParent();
  877|  71.0k|        if (mat->isLoading() || mat->isLoaded())
  ------------------
  |  Branch (877:13): [True: 0, False: 71.0k]
  |  Branch (877:33): [True: 0, False: 71.0k]
  ------------------
  878|      0|        {
  879|      0|            OGRE_LOCK_MUTEX(msDirtyHashListMutex);
  880|       |            // Mark this hash as for follow up
  881|      0|            msDirtyHashList.insert(this);
  882|      0|            mHashDirtyQueued = false;
  883|      0|        }
  884|  71.0k|        else
  885|  71.0k|        {
  886|  71.0k|            mHashDirtyQueued = true;
  887|  71.0k|        }
  888|  71.0k|    }
_ZN4Ogre4Pass21_notifyNeedsRecompileEv:
  897|   116k|    {
  898|   116k|        if (!mQueuedForDeletion)
  ------------------
  |  Branch (898:13): [True: 1.40k, False: 115k]
  ------------------
  899|  1.40k|            mParent->_notifyNeedsRecompile();
  900|   116k|    }
_ZN4Ogre4Pass25processPendingPassUpdatesEv:
  934|    327|    {
  935|    327|        {
  936|    327|            OGRE_LOCK_MUTEX(msPassGraveyardMutex);
  937|       |            // Delete items in the graveyard
  938|    327|            for (auto& i : msPassGraveyard)
  ------------------
  |  Branch (938:26): [True: 115k, False: 327]
  ------------------
  939|   115k|            {
  940|   115k|                OGRE_DELETE i;
  941|   115k|            }
  942|    327|            msPassGraveyard.clear();
  943|    327|        }
  944|    327|        PassSet tempDirtyHashList;
  945|    327|        {
  946|    327|            OGRE_LOCK_MUTEX(msDirtyHashListMutex);
  947|       |            // The dirty ones will have been removed from the groups above using the old hash now
  948|    327|            tempDirtyHashList.swap(msDirtyHashList);
  949|    327|        }
  950|    327|        for (auto *p : tempDirtyHashList)
  ------------------
  |  Branch (950:22): [True: 0, False: 327]
  ------------------
  951|      0|        {
  952|      0|            p->_recalculateHash();
  953|      0|        }
  954|    327|    }
_ZN4Ogre4Pass16queueForDeletionEv:
  957|   115k|    {
  958|   115k|        mQueuedForDeletion = true;
  959|       |
  960|   115k|        removeAllTextureUnitStates();
  961|   115k|        for (auto& u : mProgramUsage)
  ------------------
  |  Branch (961:22): [True: 577k, False: 115k]
  ------------------
  962|   577k|            u.reset();
  963|       |
  964|       |        // remove from dirty list, if there
  965|   115k|        {
  966|   115k|            OGRE_LOCK_MUTEX(msDirtyHashListMutex);
  967|   115k|            msDirtyHashList.erase(this);
  968|   115k|        }
  969|   115k|        {
  970|   115k|            OGRE_LOCK_MUTEX(msPassGraveyardMutex);
  971|   115k|            msPassGraveyard.insert(this);
  972|   115k|        }
  973|   115k|    }
_ZNK4Ogre4Pass16getResourceGroupEv:
  989|  59.8k|    {
  990|  59.8k|        return mParent->getResourceGroup();
  991|  59.8k|    }
OgrePass.cpp:_ZN4OgreL14_getBlendFlagsENS_14SceneBlendTypeERNS_16SceneBlendFactorES2_:
  474|    177|    {
  475|    177|        switch ( type )
  476|    177|        {
  477|     20|        case SBT_TRANSPARENT_ALPHA:
  ------------------
  |  Branch (477:9): [True: 20, False: 157]
  ------------------
  478|     20|            source = SBF_SOURCE_ALPHA;
  479|     20|            dest = SBF_ONE_MINUS_SOURCE_ALPHA;
  480|     20|            return;
  481|     12|        case SBT_TRANSPARENT_COLOUR:
  ------------------
  |  Branch (481:9): [True: 12, False: 165]
  ------------------
  482|     12|            source = SBF_SOURCE_COLOUR;
  483|     12|            dest = SBF_ONE_MINUS_SOURCE_COLOUR;
  484|     12|            return;
  485|      0|        case SBT_MODULATE:
  ------------------
  |  Branch (485:9): [True: 0, False: 177]
  ------------------
  486|      0|            source = SBF_DEST_COLOUR;
  487|      0|            dest = SBF_ZERO;
  488|      0|            return;
  489|    145|        case SBT_ADD:
  ------------------
  |  Branch (489:9): [True: 145, False: 32]
  ------------------
  490|    145|            source = SBF_ONE;
  491|    145|            dest = SBF_ONE;
  492|    145|            return;
  493|      0|        default:
  ------------------
  |  Branch (493:9): [True: 0, False: 177]
  ------------------
  494|      0|        case SBT_REPLACE:
  ------------------
  |  Branch (494:9): [True: 0, False: 177]
  ------------------
  495|      0|            source = SBF_ONE;
  496|      0|            dest = SBF_ZERO;
  497|      0|            return;
  498|    177|        }
  499|    177|    }
_ZNK4Ogre27MinGpuProgramChangeHashFuncclEPKNS_4PassE:
   67|   115k|        {
   68|   115k|            OGRE_LOCK_MUTEX(p->mGpuProgramChangeMutex);
   69|   115k|            uint32 hash = 0;
   70|       |
   71|  1.04M|            for(int i = 0; i < GPT_COUNT; i++)
  ------------------
  |  Branch (71:28): [True: 924k, False: 115k]
  ------------------
   72|   924k|            {
   73|   924k|                const String& name = p->getGpuProgramName(GpuProgramType(i));
   74|   924k|                if(!name.empty()) {
  ------------------
  |  Branch (74:20): [True: 52.0k, False: 872k]
  ------------------
   75|  52.0k|                    hash = FastHash(name.c_str(), name.size(), hash);
   76|  52.0k|                }
   77|   924k|            }
   78|       |
   79|   115k|            return hash;
   80|   115k|        }

_ZN4Ogre25PixelCountLodStrategyBaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   37|      2|        : LodStrategy(name)
   38|      2|    { }
_ZN4Ogre29AbsolutePixelCountLodStrategyC2Ev:
   92|      1|        : PixelCountLodStrategyBase("pixel_count")
   93|      1|    { }
_ZN4Ogre32ScreenRatioPixelCountLodStrategyC2Ev:
  172|      1|        : PixelCountLodStrategyBase("screen_ratio_pixel_count")
  173|      1|    { }

_ZN4Ogre9PixelUtil8getFlagsENS_11PixelFormatE:
  198|   123k|    {
  199|   123k|        return getDescriptionFor(format).flags;
  200|   123k|    }
_ZN4Ogre9PixelUtil12isCompressedENS_11PixelFormatE:
  218|   123k|    {
  219|   123k|        return (PixelUtil::getFlags(format) & PFF_COMPRESSED) > 0;
  220|   123k|    }
_ZN4Ogre9PixelUtil13getFormatNameENS_11PixelFormatE:
  265|  91.7k|    {
  266|  91.7k|        return getDescriptionFor(srcformat).name;
  267|  91.7k|    }
_ZN4Ogre9PixelUtil12isAccessibleENS_11PixelFormatE:
  270|   127k|    {
  271|   127k|        return (srcformat != PF_UNKNOWN) && !isCompressed(srcformat);
  ------------------
  |  Branch (271:16): [True: 123k, False: 3.12k]
  |  Branch (271:45): [True: 91.7k, False: 32.1k]
  ------------------
  272|   127k|    }
_ZN4Ogre9PixelUtil17getFormatFromNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb:
  287|  3.12k|    {
  288|  3.12k|        String tmp = name;
  289|  3.12k|        if (!caseSensitive)
  ------------------
  |  Branch (289:13): [True: 3.12k, False: 0]
  ------------------
  290|  3.12k|        {
  291|       |            // We are stored upper-case format names.
  292|  3.12k|            StringUtil::toUpperCase(tmp);
  293|  3.12k|        }
  294|       |
  295|   127k|        for (int i = 0; i < PF_COUNT; ++i)
  ------------------
  |  Branch (295:25): [True: 127k, False: 487]
  ------------------
  296|   127k|        {
  297|   127k|            PixelFormat pf = static_cast<PixelFormat>(i);
  298|   127k|            if (!accessibleOnly || isAccessible(pf))
  ------------------
  |  Branch (298:17): [True: 0, False: 127k]
  |  Branch (298:36): [True: 91.7k, False: 35.2k]
  ------------------
  299|  91.7k|            {
  300|  91.7k|                if (tmp == getFormatName(pf))
  ------------------
  |  Branch (300:21): [True: 2.63k, False: 89.1k]
  ------------------
  301|  2.63k|                    return pf;
  302|  91.7k|            }
  303|   127k|        }
  304|       |
  305|       |        // allow look-up by alias name
  306|    487|        if(tmp == "PF_BYTE_RGB")
  ------------------
  |  Branch (306:12): [True: 66, False: 421]
  ------------------
  307|     66|            return PF_BYTE_RGB;
  308|    421|        if(tmp == "PF_BYTE_RGBA")
  ------------------
  |  Branch (308:12): [True: 205, False: 216]
  ------------------
  309|    205|            return PF_BYTE_RGBA;
  310|    216|        if(tmp == "PF_BYTE_BGR")
  ------------------
  |  Branch (310:12): [True: 0, False: 216]
  ------------------
  311|      0|            return PF_BYTE_BGR;
  312|    216|        if(tmp == "PF_BYTE_BGRA")
  ------------------
  |  Branch (312:12): [True: 0, False: 216]
  ------------------
  313|      0|            return PF_BYTE_BGRA;
  314|       |
  315|    216|        return PF_UNKNOWN;
  316|    216|    }
OgrePixelFormat.cpp:_ZN4OgreL17getDescriptionForENS_11PixelFormatE:
   88|   215k|    {
   89|   215k|        const int ord = (int)fmt;
   90|   215k|        assert(ord>=0 && ord<PF_COUNT);
   91|       |
   92|   215k|        return _pixelFormats[ord];
   93|   215k|    }

_ZN4Ogre19PlatformInformation16getCpuIdentifierEv:
  675|      2|    {
  676|      2|        static const String sIdentifier = _detectCpuIdentifier();
  677|      2|        return sIdentifier;
  678|      2|    }
_ZN4Ogre19PlatformInformation14getCpuFeaturesEv:
  681|      2|    {
  682|      2|        static const uint sFeatures = _detectCpuFeatures();
  683|      2|        return sFeatures;
  684|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL20_detectCpuIdentifierEv:
  427|      2|    {
  428|       |        // Supports CPUID instruction ?
  429|      2|        if (_isSupportCpuid())
  ------------------
  |  Branch (429:13): [True: 2, False: 0]
  ------------------
  430|      2|        {
  431|      2|            CpuidResult result;
  432|      2|            uint nExIds;
  433|      2|            char CPUString[0x20];
  434|      2|            char CPUBrandString[0x40];
  435|       |
  436|      2|            StringStream detailedIdentStr;
  437|       |
  438|       |
  439|       |            // Has standard feature ?
  440|      2|            if (_performCpuid(0, result))
  ------------------
  |  Branch (440:17): [True: 2, False: 0]
  ------------------
  441|      2|            {
  442|      2|                memset(CPUString, 0, sizeof(CPUString));
  443|      2|                memset(CPUBrandString, 0, sizeof(CPUBrandString));
  444|       |
  445|       |                //*((int*)CPUString) = result._ebx;
  446|       |                //*((int*)(CPUString+4)) = result._edx;
  447|       |                //*((int*)(CPUString+8)) = result._ecx;
  448|      2|                memcpy(CPUString, &result._ebx, sizeof(int));
  449|      2|                memcpy(CPUString+4, &result._edx, sizeof(int));
  450|      2|                memcpy(CPUString+8, &result._ecx, sizeof(int));
  451|       |
  452|      2|                detailedIdentStr << CPUString;
  453|       |
  454|       |                // Calling _performCpuid with 0x80000000 as the query argument
  455|       |                // gets the number of valid extended IDs.
  456|      2|                nExIds = _performCpuid(0x80000000, result);
  457|       |
  458|     20|                for (uint i=0x80000000; i<=nExIds; ++i)
  ------------------
  |  Branch (458:41): [True: 18, False: 2]
  ------------------
  459|     18|                {
  460|     18|                    _performCpuid(i, result);
  461|       |
  462|       |                    // Interpret CPU brand string and cache information.
  463|     18|                    if  (i == 0x80000002)
  ------------------
  |  Branch (463:26): [True: 2, False: 16]
  ------------------
  464|      2|                    {
  465|      2|                        memcpy(CPUBrandString + 0, &result._eax, sizeof(result._eax));
  466|      2|                        memcpy(CPUBrandString + 4, &result._ebx, sizeof(result._ebx));
  467|      2|                        memcpy(CPUBrandString + 8, &result._ecx, sizeof(result._ecx));
  468|      2|                        memcpy(CPUBrandString + 12, &result._edx, sizeof(result._edx));
  469|      2|                    }
  470|     16|                    else if  (i == 0x80000003)
  ------------------
  |  Branch (470:31): [True: 2, False: 14]
  ------------------
  471|      2|                    {
  472|      2|                        memcpy(CPUBrandString + 16 + 0, &result._eax, sizeof(result._eax));
  473|      2|                        memcpy(CPUBrandString + 16 + 4, &result._ebx, sizeof(result._ebx));
  474|      2|                        memcpy(CPUBrandString + 16 + 8, &result._ecx, sizeof(result._ecx));
  475|      2|                        memcpy(CPUBrandString + 16 + 12, &result._edx, sizeof(result._edx));
  476|      2|                    }
  477|     14|                    else if  (i == 0x80000004)
  ------------------
  |  Branch (477:31): [True: 2, False: 12]
  ------------------
  478|      2|                    {
  479|      2|                        memcpy(CPUBrandString + 32 + 0, &result._eax, sizeof(result._eax));
  480|      2|                        memcpy(CPUBrandString + 32 + 4, &result._ebx, sizeof(result._ebx));
  481|      2|                        memcpy(CPUBrandString + 32 + 8, &result._ecx, sizeof(result._ecx));
  482|      2|                        memcpy(CPUBrandString + 32 + 12, &result._edx, sizeof(result._edx));
  483|      2|                    }
  484|     18|                }
  485|       |
  486|      2|                String brand(CPUBrandString);
  487|      2|                StringUtil::trim(brand);
  488|      2|                if (!brand.empty())
  ------------------
  |  Branch (488:21): [True: 2, False: 0]
  ------------------
  489|      2|                    detailedIdentStr << ": " << brand;
  490|       |
  491|      2|                return detailedIdentStr.str();
  492|      2|            }
  493|      2|        }
  494|       |
  495|      0|        return "X86";
  496|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL13_performCpuidEiRNS_11CpuidResultE:
  151|     30|    {
  152|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
  153|       |        int CPUInfo[4];
  154|       |        __cpuid(CPUInfo, query);
  155|       |        result._eax = CPUInfo[0];
  156|       |        result._ebx = CPUInfo[1];
  157|       |        result._ecx = CPUInfo[2];
  158|       |        result._edx = CPUInfo[3];
  159|       |        return result._eax;
  160|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  161|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64
  162|     30|        __asm__
  163|     30|        (
  164|     30|            "cpuid": "=a" (result._eax), "=b" (result._ebx), "=c" (result._ecx), "=d" (result._edx) : "a" (query)
  165|     30|        );
  166|       |        #else
  167|       |        __asm__
  168|       |        (
  169|       |            "pushl  %%ebx           \n\t"
  170|       |            "cpuid                  \n\t"
  171|       |            "movl   %%ebx, %%edi    \n\t"
  172|       |            "popl   %%ebx           \n\t"
  173|       |            : "=a" (result._eax), "=D" (result._ebx), "=c" (result._ecx), "=d" (result._edx)
  174|       |            : "a" (query)
  175|       |        );
  176|       |       #endif // OGRE_ARCHITECTURE_64
  177|     30|        return result._eax;
  178|       |
  179|       |#else
  180|       |        // TODO: Supports other compiler
  181|       |        return 0;
  182|       |#endif
  183|     30|    }
OgrePlatformInformation.cpp:_ZN4OgreL18_detectCpuFeaturesEv:
  408|      2|    {
  409|      2|        uint features = queryCpuFeatures();
  410|       |
  411|      2|        const uint sse_features = 0
  412|      2|            | PlatformInformation::CPU_FEATURE_SSE
  413|      2|            | PlatformInformation::CPU_FEATURE_SSE2
  414|      2|            | PlatformInformation::CPU_FEATURE_SSE3
  415|      2|            | PlatformInformation::CPU_FEATURE_SSE41
  416|      2|            | PlatformInformation::CPU_FEATURE_SSE42;
  417|       |
  418|      2|        if ((features & sse_features) && !_checkOperatingSystemSupportSSE())
  ------------------
  |  Branch (418:13): [True: 2, False: 0]
  |  Branch (418:42): [True: 0, False: 2]
  ------------------
  419|      0|        {
  420|      0|            features &= ~sse_features;
  421|      0|        }
  422|       |
  423|      2|        return features;
  424|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL16queryCpuFeaturesEv:
  266|      2|    {
  267|       |
  268|      2|#define CPUID_FUNC_VENDOR_ID                 0x0
  269|      2|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  270|      2|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  271|      2|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  273|       |
  274|      2|#define CPUID_STD_FPU               (1<<0)
  275|      2|#define CPUID_STD_TSC               (1<<4)
  276|      2|#define CPUID_STD_CMOV              (1<<15)
  277|      2|#define CPUID_STD_MMX               (1<<23)
  278|      2|#define CPUID_STD_SSE               (1<<25)
  279|      2|#define CPUID_STD_SSE2              (1<<26)
  280|      2|#define CPUID_STD_HTT               (1<<28)     // EDX[28] - Bit 28 set indicates  Hyper-Threading Technology is supported in hardware.
  281|       |
  282|      2|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  283|      2|#define CPUID_STD_SSE41             (1<<19)     // ECX[19] - Bit 0 of standard function 1 indicate SSE41 supported
  284|      2|#define CPUID_STD_SSE42             (1<<20)     // ECX[20] - Bit 0 of standard function 1 indicate SSE42 supported
  285|       |
  286|      2|#define CPUID_FAMILY_ID_MASK        0x0F00      // EAX[11:8] - Bit 11 thru 8 contains family  processor id
  287|      2|#define CPUID_EXT_FAMILY_ID_MASK    0x0F00000   // EAX[23:20] - Bit 23 thru 20 contains extended family processor id
  288|      2|#define CPUID_PENTIUM4_ID           0x0F00      // Pentium 4 family processor id
  289|       |
  290|      2|#define CPUID_EXT_3DNOW             (1<<31)
  291|      2|#define CPUID_EXT_AMD_3DNOWEXT      (1<<30)
  292|      2|#define CPUID_EXT_AMD_MMXEXT        (1<<22)
  293|       |
  294|       |
  295|      2|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  296|       |
  297|      2|        uint features = 0;
  298|       |
  299|       |        // Supports CPUID instruction ?
  300|      2|        if (_isSupportCpuid())
  ------------------
  |  Branch (300:13): [True: 2, False: 0]
  ------------------
  301|      2|        {
  302|      2|            CpuidResult result;
  303|       |
  304|       |            // Has standard feature ?
  305|      2|            if (_performCpuid(CPUID_FUNC_VENDOR_ID, result))
  ------------------
  |  |  268|      2|#define CPUID_FUNC_VENDOR_ID                 0x0
  ------------------
  |  Branch (305:17): [True: 2, False: 0]
  ------------------
  306|      2|            {
  307|       |                // Check vendor strings
  308|      2|                if (memcmp(&result._ebx, "GenuineIntel", 12) == 0)
  ------------------
  |  Branch (308:21): [True: 2, False: 0]
  ------------------
  309|      2|                {
  310|      2|                    if (result._eax > 2)
  ------------------
  |  Branch (310:25): [True: 2, False: 0]
  ------------------
  311|      2|                        features |= PlatformInformation::CPU_FEATURE_PRO;
  312|       |
  313|       |                    // Check standard feature
  314|      2|                    _performCpuid(CPUID_FUNC_STANDARD_FEATURES, result);
  ------------------
  |  |  269|      2|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  ------------------
  315|       |
  316|      2|                    if (result._edx & CPUID_STD_FPU)
  ------------------
  |  |  274|      2|#define CPUID_STD_FPU               (1<<0)
  ------------------
  |  Branch (316:25): [True: 2, False: 0]
  ------------------
  317|      2|                        features |= PlatformInformation::CPU_FEATURE_FPU;
  318|      2|                    if (result._edx & CPUID_STD_TSC)
  ------------------
  |  |  275|      2|#define CPUID_STD_TSC               (1<<4)
  ------------------
  |  Branch (318:25): [True: 2, False: 0]
  ------------------
  319|      2|                        features |= PlatformInformation::CPU_FEATURE_TSC;
  320|      2|                    if (result._edx & CPUID_STD_CMOV)
  ------------------
  |  |  276|      2|#define CPUID_STD_CMOV              (1<<15)
  ------------------
  |  Branch (320:25): [True: 2, False: 0]
  ------------------
  321|      2|                        features |= PlatformInformation::CPU_FEATURE_CMOV;
  322|      2|                    if (result._edx & CPUID_STD_MMX)
  ------------------
  |  |  277|      2|#define CPUID_STD_MMX               (1<<23)
  ------------------
  |  Branch (322:25): [True: 2, False: 0]
  ------------------
  323|      2|                        features |= PlatformInformation::CPU_FEATURE_MMX;
  324|      2|                    if (result._edx & CPUID_STD_SSE)
  ------------------
  |  |  278|      2|#define CPUID_STD_SSE               (1<<25)
  ------------------
  |  Branch (324:25): [True: 2, False: 0]
  ------------------
  325|      2|                        features |= PlatformInformation::CPU_FEATURE_MMXEXT | PlatformInformation::CPU_FEATURE_SSE;
  326|      2|                    if (result._edx & CPUID_STD_SSE2)
  ------------------
  |  |  279|      2|#define CPUID_STD_SSE2              (1<<26)
  ------------------
  |  Branch (326:25): [True: 2, False: 0]
  ------------------
  327|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE2;
  328|      2|                    if (result._ecx & CPUID_STD_SSE3)
  ------------------
  |  |  282|      2|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  ------------------
  |  Branch (328:25): [True: 2, False: 0]
  ------------------
  329|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE3;
  330|      2|                    if (result._ecx & CPUID_STD_SSE41)
  ------------------
  |  |  283|      2|#define CPUID_STD_SSE41             (1<<19)     // ECX[19] - Bit 0 of standard function 1 indicate SSE41 supported
  ------------------
  |  Branch (330:25): [True: 2, False: 0]
  ------------------
  331|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE41;
  332|      2|                    if (result._ecx & CPUID_STD_SSE42)
  ------------------
  |  |  284|      2|#define CPUID_STD_SSE42             (1<<20)     // ECX[20] - Bit 0 of standard function 1 indicate SSE42 supported
  ------------------
  |  Branch (332:25): [True: 2, False: 0]
  ------------------
  333|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE42;
  334|       |
  335|       |                    // Check to see if this is a Pentium 4 or later processor
  336|      2|                    if ((result._eax & CPUID_EXT_FAMILY_ID_MASK) ||
  ------------------
  |  |  287|      2|#define CPUID_EXT_FAMILY_ID_MASK    0x0F00000   // EAX[23:20] - Bit 23 thru 20 contains extended family processor id
  ------------------
  |  Branch (336:25): [True: 0, False: 2]
  ------------------
  337|      2|                        (result._eax & CPUID_FAMILY_ID_MASK) == CPUID_PENTIUM4_ID)
  ------------------
  |  |  286|      2|#define CPUID_FAMILY_ID_MASK        0x0F00      // EAX[11:8] - Bit 11 thru 8 contains family  processor id
  ------------------
                                      (result._eax & CPUID_FAMILY_ID_MASK) == CPUID_PENTIUM4_ID)
  ------------------
  |  |  288|      2|#define CPUID_PENTIUM4_ID           0x0F00      // Pentium 4 family processor id
  ------------------
  |  Branch (337:25): [True: 0, False: 2]
  ------------------
  338|      0|                    {
  339|       |                        // Check hyper-threading technology
  340|      0|                        if (result._edx & CPUID_STD_HTT)
  ------------------
  |  |  280|      0|#define CPUID_STD_HTT               (1<<28)     // EDX[28] - Bit 28 set indicates  Hyper-Threading Technology is supported in hardware.
  ------------------
  |  Branch (340:29): [True: 0, False: 0]
  ------------------
  341|      0|                            features |= PlatformInformation::CPU_FEATURE_HTT;
  342|      0|                    }
  343|       |
  344|       |
  345|      2|                    const uint maxExtensionFunctionSupport = _performCpuid(CPUID_FUNC_EXTENSION_QUERY, result);
  ------------------
  |  |  270|      2|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  ------------------
  346|      2|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_ADVANCED_POWER_MANAGEMENT)
  ------------------
  |  |  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  |  Branch (346:25): [True: 2, False: 0]
  ------------------
  347|      2|                    {
  348|      2|                        _performCpuid(CPUID_FUNC_ADVANCED_POWER_MANAGEMENT, result);
  ------------------
  |  |  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  349|       |
  350|      2|                        if (result._edx & CPUID_APM_INVARIANT_TSC)
  ------------------
  |  |  295|      2|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  ------------------
  |  Branch (350:29): [True: 2, False: 0]
  ------------------
  351|      2|                            features |= PlatformInformation::CPU_FEATURE_INVARIANT_TSC;
  352|      2|                    }
  353|      2|                }
  354|      0|                else if (memcmp(&result._ebx, "AuthenticAMD", 12) == 0)
  ------------------
  |  Branch (354:26): [True: 0, False: 0]
  ------------------
  355|      0|                {
  356|      0|                    features |= PlatformInformation::CPU_FEATURE_PRO;
  357|       |
  358|       |                    // Check standard feature
  359|      0|                    _performCpuid(CPUID_FUNC_STANDARD_FEATURES, result);
  ------------------
  |  |  269|      0|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  ------------------
  360|       |
  361|      0|                    if (result._edx & CPUID_STD_FPU)
  ------------------
  |  |  274|      0|#define CPUID_STD_FPU               (1<<0)
  ------------------
  |  Branch (361:25): [True: 0, False: 0]
  ------------------
  362|      0|                        features |= PlatformInformation::CPU_FEATURE_FPU;
  363|      0|                    if (result._edx & CPUID_STD_TSC)
  ------------------
  |  |  275|      0|#define CPUID_STD_TSC               (1<<4)
  ------------------
  |  Branch (363:25): [True: 0, False: 0]
  ------------------
  364|      0|                        features |= PlatformInformation::CPU_FEATURE_TSC;
  365|      0|                    if (result._edx & CPUID_STD_CMOV)
  ------------------
  |  |  276|      0|#define CPUID_STD_CMOV              (1<<15)
  ------------------
  |  Branch (365:25): [True: 0, False: 0]
  ------------------
  366|      0|                        features |= PlatformInformation::CPU_FEATURE_CMOV;
  367|      0|                    if (result._edx & CPUID_STD_MMX)
  ------------------
  |  |  277|      0|#define CPUID_STD_MMX               (1<<23)
  ------------------
  |  Branch (367:25): [True: 0, False: 0]
  ------------------
  368|      0|                        features |= PlatformInformation::CPU_FEATURE_MMX;
  369|      0|                    if (result._edx & CPUID_STD_SSE)
  ------------------
  |  |  278|      0|#define CPUID_STD_SSE               (1<<25)
  ------------------
  |  Branch (369:25): [True: 0, False: 0]
  ------------------
  370|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE;
  371|      0|                    if (result._edx & CPUID_STD_SSE2)
  ------------------
  |  |  279|      0|#define CPUID_STD_SSE2              (1<<26)
  ------------------
  |  Branch (371:25): [True: 0, False: 0]
  ------------------
  372|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE2;
  373|       |
  374|      0|                    if (result._ecx & CPUID_STD_SSE3)
  ------------------
  |  |  282|      0|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  ------------------
  |  Branch (374:25): [True: 0, False: 0]
  ------------------
  375|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE3;
  376|       |
  377|       |                    // Has extended feature ?
  378|      0|                    const uint maxExtensionFunctionSupport = _performCpuid(CPUID_FUNC_EXTENSION_QUERY, result);
  ------------------
  |  |  270|      0|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  ------------------
  379|      0|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_EXTENDED_FEATURES)
  ------------------
  |  |  271|      0|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  ------------------
  |  Branch (379:25): [True: 0, False: 0]
  ------------------
  380|      0|                    {
  381|       |                        // Check extended feature
  382|      0|                        _performCpuid(CPUID_FUNC_EXTENDED_FEATURES, result);
  ------------------
  |  |  271|      0|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  ------------------
  383|       |
  384|      0|                        if (result._edx & CPUID_EXT_3DNOW)
  ------------------
  |  |  290|      0|#define CPUID_EXT_3DNOW             (1<<31)
  ------------------
  |  Branch (384:29): [True: 0, False: 0]
  ------------------
  385|      0|                            features |= PlatformInformation::CPU_FEATURE_3DNOW;
  386|      0|                        if (result._edx & CPUID_EXT_AMD_3DNOWEXT)
  ------------------
  |  |  291|      0|#define CPUID_EXT_AMD_3DNOWEXT      (1<<30)
  ------------------
  |  Branch (386:29): [True: 0, False: 0]
  ------------------
  387|      0|                            features |= PlatformInformation::CPU_FEATURE_3DNOWEXT;
  388|      0|                        if (result._edx & CPUID_EXT_AMD_MMXEXT)
  ------------------
  |  |  292|      0|#define CPUID_EXT_AMD_MMXEXT        (1<<22)
  ------------------
  |  Branch (388:29): [True: 0, False: 0]
  ------------------
  389|      0|                            features |= PlatformInformation::CPU_FEATURE_MMXEXT;
  390|      0|                    }
  391|       |
  392|       |
  393|      0|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_ADVANCED_POWER_MANAGEMENT)
  ------------------
  |  |  272|      0|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  |  Branch (393:25): [True: 0, False: 0]
  ------------------
  394|      0|                    {
  395|      0|                        _performCpuid(CPUID_FUNC_ADVANCED_POWER_MANAGEMENT, result);
  ------------------
  |  |  272|      0|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  396|       |
  397|      0|                        if (result._edx & CPUID_APM_INVARIANT_TSC)
  ------------------
  |  |  295|      0|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  ------------------
  |  Branch (397:29): [True: 0, False: 0]
  ------------------
  398|      0|                            features |= PlatformInformation::CPU_FEATURE_INVARIANT_TSC;
  399|      0|                    }
  400|      0|                }
  401|      2|            }
  402|      2|        }
  403|       |
  404|      2|        return features;
  405|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL31_checkOperatingSystemSupportSSEEv:
  202|      2|    {
  203|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
  204|       |        /*
  205|       |            The FP part of SSE introduces a new architectural state and therefore
  206|       |            requires support from the operating system. So even if CPUID indicates
  207|       |            support for SSE FP, the application might not be able to use it. If
  208|       |            CPUID indicates support for SSE FP, check here whether it is also
  209|       |            supported by the OS, and turn off the SSE FP feature bit if there
  210|       |            is no OS support for SSE FP.
  211|       |
  212|       |            Operating systems that do not support SSE FP return an illegal
  213|       |            instruction exception if execution of an SSE FP instruction is performed.
  214|       |            Here, a sample SSE FP instruction is executed, and is checked for an
  215|       |            exception using the (non-standard) __try/__except mechanism
  216|       |            of Microsoft Visual C/C++.
  217|       |        */
  218|       |        // Visual Studio 2005, Both AMD and Intel x64 support SSE
  219|       |        // note that even though this is a build rather than runtime setting, all
  220|       |        // 64-bit CPUs support this so since binary is 64-bit only we're ok
  221|       |    #if _MSC_VER >= 1400 && defined(_M_X64)
  222|       |            return true;
  223|       |    #else
  224|       |        __try
  225|       |        {
  226|       |            __asm orps  xmm0, xmm0
  227|       |            return true;
  228|       |        }
  229|       |        __except(EXCEPTION_EXECUTE_HANDLER)
  230|       |        {
  231|       |            return false;
  232|       |        }
  233|       |    #endif
  234|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  235|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64 
  236|      2|            return true;
  237|       |        #else
  238|       |        // Does gcc have __try/__except similar mechanism?
  239|       |        // Use signal, setjmp/longjmp instead.
  240|       |        void (*oldHandler)(int);
  241|       |        oldHandler = signal(SIGILL, _illegalHandler);
  242|       |
  243|       |        if (setjmp(sIllegalJmpBuf))
  244|       |        {
  245|       |            signal(SIGILL, oldHandler);
  246|       |            return false;
  247|       |        }
  248|       |        else
  249|       |        {
  250|       |            __asm__ __volatile__ ("orps %xmm0, %xmm0");
  251|       |            signal(SIGILL, oldHandler);
  252|       |            return true;
  253|       |        }
  254|       |       #endif
  255|       |#else
  256|       |        // TODO: Supports other compiler, assumed is supported by default
  257|       |        return true;
  258|       |#endif
  259|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL15_isSupportCpuidEv:
   83|      4|    {
   84|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
   85|       |        // Visual Studio 2005 & 64-bit compilers always supports __cpuid intrinsic
   86|       |        // note that even though this is a build rather than runtime setting, all
   87|       |        // 64-bit CPUs support this so since binary is 64-bit only we're ok
   88|       |    #if _MSC_VER >= 1400 && defined(_M_X64)
   89|       |        return true;
   90|       |    #else
   91|       |        // If we can modify flag register bit 21, the cpu is supports CPUID instruction
   92|       |        __asm
   93|       |        {
   94|       |            // Read EFLAG
   95|       |            pushfd
   96|       |            pop     eax
   97|       |            mov     ecx, eax
   98|       |
   99|       |            // Modify bit 21
  100|       |            xor     eax, 0x200000
  101|       |            push    eax
  102|       |            popfd
  103|       |
  104|       |            // Read back EFLAG
  105|       |            pushfd
  106|       |            pop     eax
  107|       |
  108|       |            // Restore EFLAG
  109|       |            push    ecx
  110|       |            popfd
  111|       |
  112|       |            // Check bit 21 modifiable
  113|       |            xor     eax, ecx
  114|       |            neg     eax
  115|       |            sbb     eax, eax
  116|       |
  117|       |            // Return values in eax, no return statement requirement here for VC.
  118|       |        }
  119|       |    #endif
  120|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  121|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64
  122|      4|           return true;
  123|       |       #else
  124|       |        unsigned oldFlags, newFlags;
  125|       |        __asm__
  126|       |        (
  127|       |            "pushfl         \n\t"
  128|       |            "pop    %0      \n\t"
  129|       |            "mov    %0, %1  \n\t"
  130|       |            "xor    %2, %0  \n\t"
  131|       |            "push   %0      \n\t"
  132|       |            "popfl          \n\t"
  133|       |            "pushfl         \n\t"
  134|       |            "pop    %0      \n\t"
  135|       |            "push   %1      \n\t"
  136|       |            "popfl          \n\t"
  137|       |            : "=r" (oldFlags), "=r" (newFlags)
  138|       |            : "n" (0x200000)
  139|       |        );
  140|       |        return oldFlags != newFlags;
  141|       |       #endif // 64
  142|       |#else
  143|       |        // TODO: Supports other compiler
  144|       |        return false;
  145|       |#endif
  146|      4|    }

_ZN4Ogre24RenderSystemCapabilities16vendorFromStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  266|    727|    {
  267|    727|        initVendorStrings();
  268|    727|        GPUVendor ret = GPU_UNKNOWN;
  269|    727|        String cmpString = vendorString;
  270|    727|        StringUtil::toLowerCase(cmpString);
  271|  7.11k|        for (int i = 0; i < GPU_VENDOR_COUNT; ++i)
  ------------------
  |  Branch (271:25): [True: 6.84k, False: 277]
  ------------------
  272|  6.84k|        {
  273|       |            // case insensitive (lower case)
  274|  6.84k|            if (msGPUVendorStrings[i] == cmpString)
  ------------------
  |  Branch (274:17): [True: 450, False: 6.39k]
  ------------------
  275|    450|            {
  276|    450|                ret = static_cast<GPUVendor>(i);
  277|    450|                break;
  278|    450|            }
  279|  6.84k|        }
  280|       |
  281|    727|        return ret;
  282|       |        
  283|    727|    }
_ZN4Ogre24RenderSystemCapabilities17initVendorStringsEv:
  292|    727|    {
  293|    727|        if (msGPUVendorStrings[0].empty())
  ------------------
  |  Branch (293:13): [True: 1, False: 726]
  ------------------
  294|      1|        {
  295|       |            // Always lower case!
  296|      1|            msGPUVendorStrings[GPU_UNKNOWN] = "unknown";
  297|      1|            msGPUVendorStrings[GPU_NVIDIA] = "nvidia";
  298|      1|            msGPUVendorStrings[GPU_AMD] = "amd";
  299|      1|            msGPUVendorStrings[GPU_INTEL] = "intel";
  300|      1|            msGPUVendorStrings[GPU_IMAGINATION_TECHNOLOGIES] = "imagination technologies";
  301|      1|            msGPUVendorStrings[GPU_APPLE] = "apple";    // iOS Simulator
  302|      1|            msGPUVendorStrings[GPU_NOKIA] = "nokia";
  303|      1|            msGPUVendorStrings[GPU_MS_SOFTWARE] = "microsoft"; // Microsoft software device
  304|      1|            msGPUVendorStrings[GPU_MS_WARP] = "ms warp";
  305|      1|            msGPUVendorStrings[GPU_ARM] = "arm";
  306|      1|            msGPUVendorStrings[GPU_QUALCOMM] = "qualcomm";
  307|      1|            msGPUVendorStrings[GPU_MOZILLA] = "mozilla";
  308|      1|            msGPUVendorStrings[GPU_WEBKIT] = "webkit";
  309|      1|        }
  310|    727|    }

_ZN4Ogre31RenderSystemCapabilitiesManagerC2Ev:
   49|      1|    RenderSystemCapabilitiesManager::RenderSystemCapabilitiesManager() : mSerializer(0), mScriptPattern("*.rendercaps")
   50|      1|    {
   51|       |        mSerializer = OGRE_NEW RenderSystemCapabilitiesSerializer();
   52|      1|    }

_ZN4Ogre34RenderSystemCapabilitiesSerializerC2Ev:
   38|      1|    RenderSystemCapabilitiesSerializer::RenderSystemCapabilitiesSerializer() : mCurrentLineNumber(0), mCurrentLine(0),
   39|      1|        mCurrentCapabilities(0)
   40|      1|    {
   41|      1|        initialiaseDispatchTables();
   42|      1|    }
_ZN4Ogre34RenderSystemCapabilitiesSerializer25initialiaseDispatchTablesEv:
  267|      1|    {
  268|       |        // set up driver version parsing
  269|      1|        addKeywordType("driver_version", SET_STRING_METHOD);
  270|       |        // set up the setters for driver versions
  271|      1|        addSetStringMethod("driver_version", &RenderSystemCapabilities::parseDriverVersionFromString);
  272|       |        
  273|       |        // set up device name parsing
  274|      1|        addKeywordType("device_name", SET_STRING_METHOD);
  275|       |        // set up the setters for device names
  276|      1|        addSetStringMethod("device_name", &RenderSystemCapabilities::setDeviceName);
  277|       |        
  278|       |        // set up render system name parsing
  279|      1|        addKeywordType("render_system_name", SET_STRING_METHOD);
  280|       |        // set up the setters 
  281|      1|        addSetStringMethod("render_system_name", &RenderSystemCapabilities::setRenderSystemName);
  282|       |
  283|       |        // set up vendor parsing
  284|      1|        addKeywordType("vendor", SET_STRING_METHOD);
  285|       |        // set up the setters for driver versions
  286|      1|        addSetStringMethod("vendor", &RenderSystemCapabilities::parseVendorFromString);
  287|       |
  288|       |        // initialize int types
  289|      1|        addKeywordType("num_world_matrices", SET_INT_METHOD);
  290|      1|        addKeywordType("num_texture_units", SET_INT_METHOD);
  291|      1|        addKeywordType("stencil_buffer_bit_depth", SET_INT_METHOD);
  292|      1|        addKeywordType("num_vertex_blend_matrices", SET_INT_METHOD);
  293|      1|        addKeywordType("num_multi_render_targets", SET_INT_METHOD);
  294|      1|        addKeywordType("vertex_program_constant_float_count", SET_INT_METHOD);
  295|      1|        addKeywordType("vertex_program_constant_int_count", SET_INT_METHOD);
  296|      1|        addKeywordType("vertex_program_constant_bool_count", SET_INT_METHOD);
  297|      1|        addKeywordType("fragment_program_constant_float_count", SET_INT_METHOD);
  298|      1|        addKeywordType("fragment_program_constant_int_count", SET_INT_METHOD);
  299|      1|        addKeywordType("fragment_program_constant_bool_count", SET_INT_METHOD);
  300|      1|        addKeywordType("geometry_program_constant_float_count", SET_INT_METHOD);
  301|      1|        addKeywordType("geometry_program_constant_int_count", SET_INT_METHOD);
  302|      1|        addKeywordType("geometry_program_constant_bool_count", SET_INT_METHOD);
  303|      1|        addKeywordType("tessellation_hull_program_constant_float_count", SET_INT_METHOD);
  304|      1|        addKeywordType("tessellation_hull_program_constant_int_count", SET_INT_METHOD);
  305|      1|        addKeywordType("tessellation_hull_program_constant_bool_count", SET_INT_METHOD);
  306|      1|        addKeywordType("tessellation_domain_program_constant_float_count", SET_INT_METHOD);
  307|      1|        addKeywordType("tessellation_domain_program_constant_int_count", SET_INT_METHOD);
  308|      1|        addKeywordType("tessellation_domain_program_constant_bool_count", SET_INT_METHOD);
  309|      1|        addKeywordType("compute_program_constant_float_count", SET_INT_METHOD);
  310|      1|        addKeywordType("compute_program_constant_int_count", SET_INT_METHOD);
  311|      1|        addKeywordType("compute_program_constant_bool_count", SET_INT_METHOD);
  312|      1|        addKeywordType("num_vertex_texture_units", SET_INT_METHOD);
  313|       |
  314|       |        // initialize int setters
  315|      1|        addSetIntMethod("num_texture_units", &RenderSystemCapabilities::setNumTextureUnits);
  316|      1|        addSetIntMethod("stencil_buffer_bit_depth", &RenderSystemCapabilities::setStencilBufferBitDepth);
  317|      1|        addSetIntMethod("num_multi_render_targets", &RenderSystemCapabilities::setNumMultiRenderTargets);
  318|      1|        addSetIntMethod("vertex_program_constant_float_count", &RenderSystemCapabilities::setVertexProgramConstantFloatCount);
  319|      1|        addSetIntMethod("fragment_program_constant_float_count", &RenderSystemCapabilities::setFragmentProgramConstantFloatCount);
  320|      1|        addSetIntMethod("geometry_program_constant_float_count", &RenderSystemCapabilities::setGeometryProgramConstantFloatCount);
  321|      1|        addSetIntMethod("tessellation_hull_program_constant_float_count", &RenderSystemCapabilities::setTessellationHullProgramConstantFloatCount);
  322|      1|        addSetIntMethod("tessellation_domain_program_constant_float_count", &RenderSystemCapabilities::setTessellationDomainProgramConstantFloatCount);
  323|      1|        addSetIntMethod("compute_program_constant_float_count", &RenderSystemCapabilities::setComputeProgramConstantFloatCount);
  324|      1|        addSetIntMethod("num_vertex_texture_units", &RenderSystemCapabilities::setNumVertexTextureUnits);
  325|       |
  326|       |        // initialize bool types
  327|      1|        addKeywordType("non_pow2_textures_limited", SET_BOOL_METHOD);
  328|       |
  329|       |        // initialize bool setters
  330|      1|        addSetBoolMethod("non_pow2_textures_limited", &RenderSystemCapabilities::setNonPOW2TexturesLimited);
  331|       |
  332|       |        // initialize Real types
  333|      1|        addKeywordType("max_point_size", SET_REAL_METHOD);
  334|       |
  335|       |        // initialize Real setters
  336|      1|        addSetRealMethod("max_point_size", &RenderSystemCapabilities::setMaxPointSize);
  337|       |
  338|       |        // there is no dispatch table for shader profiles, just the type
  339|      1|        addKeywordType("shader_profile", ADD_SHADER_PROFILE_STRING);
  340|       |
  341|      1|        addCapabilitiesMapping("fixed_function", RSC_FIXED_FUNCTION);
  342|      1|        addCapabilitiesMapping("anisotropy", RSC_ANISOTROPY);
  343|      1|        addCapabilitiesMapping("hwstencil", RSC_HWSTENCIL);
  344|      1|        addCapabilitiesMapping("32bit_index", RSC_32BIT_INDEX);
  345|      1|        addCapabilitiesMapping("vertex_program", RSC_VERTEX_PROGRAM);
  346|      1|        addCapabilitiesMapping("geometry_program", RSC_GEOMETRY_PROGRAM);
  347|      1|        addCapabilitiesMapping("tessellation_hull_program", RSC_TESSELLATION_HULL_PROGRAM);
  348|      1|        addCapabilitiesMapping("tessellation_domain_program", RSC_TESSELLATION_DOMAIN_PROGRAM);
  349|      1|        addCapabilitiesMapping("compute_program", RSC_COMPUTE_PROGRAM);
  350|      1|        addCapabilitiesMapping("two_sided_stencil", RSC_TWO_SIDED_STENCIL);
  351|      1|        addCapabilitiesMapping("stencil_wrap", RSC_STENCIL_WRAP);
  352|      1|        addCapabilitiesMapping("hwocclusion", RSC_HWOCCLUSION);
  353|      1|        addCapabilitiesMapping("user_clip_planes", RSC_USER_CLIP_PLANES);
  354|      1|        addCapabilitiesMapping("hwrender_to_texture", RSC_HWRENDER_TO_TEXTURE);
  355|      1|        addCapabilitiesMapping("texture_float", RSC_TEXTURE_FLOAT);
  356|      1|        addCapabilitiesMapping("non_power_of_2_textures", RSC_NON_POWER_OF_2_TEXTURES);
  357|      1|        addCapabilitiesMapping("texture_3d", RSC_TEXTURE_3D);
  358|      1|        addCapabilitiesMapping("texture_2d_array", RSC_TEXTURE_3D);
  359|      1|        addCapabilitiesMapping("texture_1d", RSC_TEXTURE_1D);
  360|      1|        addCapabilitiesMapping("point_sprites", RSC_POINT_SPRITES);
  361|      1|        addCapabilitiesMapping("wide_lines", RSC_WIDE_LINES);
  362|      1|        addCapabilitiesMapping("vertex_texture_fetch", RSC_VERTEX_TEXTURE_FETCH);
  363|      1|        addCapabilitiesMapping("mipmap_lod_bias", RSC_MIPMAP_LOD_BIAS);
  364|      1|        addCapabilitiesMapping("atomic_counters", RSC_READ_WRITE_BUFFERS);
  365|      1|        addCapabilitiesMapping("texture_compression", RSC_TEXTURE_COMPRESSION);
  366|      1|        addCapabilitiesMapping("texture_compression_dxt", RSC_TEXTURE_COMPRESSION_DXT);
  367|      1|        addCapabilitiesMapping("texture_compression_vtc", RSC_TEXTURE_COMPRESSION_VTC);
  368|      1|        addCapabilitiesMapping("texture_compression_pvrtc", RSC_TEXTURE_COMPRESSION_PVRTC);
  369|      1|        addCapabilitiesMapping("texture_compression_atc", RSC_TEXTURE_COMPRESSION_ATC);
  370|      1|        addCapabilitiesMapping("texture_compression_etc1", RSC_TEXTURE_COMPRESSION_ETC1);
  371|      1|        addCapabilitiesMapping("texture_compression_etc2", RSC_TEXTURE_COMPRESSION_ETC2);
  372|      1|        addCapabilitiesMapping("texture_compression_bc4_bc5", RSC_TEXTURE_COMPRESSION_BC4_BC5);
  373|      1|        addCapabilitiesMapping("texture_compression_bc6h_bc7", RSC_TEXTURE_COMPRESSION_BC6H_BC7);
  374|      1|        addCapabilitiesMapping("texture_compression_astc", RSC_TEXTURE_COMPRESSION_ASTC);
  375|      1|        addCapabilitiesMapping("hwrender_to_vertex_buffer", RSC_HWRENDER_TO_VERTEX_BUFFER);
  376|       |
  377|      1|        addCapabilitiesMapping("pbuffer", RSC_PBUFFER);
  378|      1|        addCapabilitiesMapping("perstageconstant", RSC_PERSTAGECONSTANT);
  379|      1|        addCapabilitiesMapping("vao", RSC_VAO);
  380|      1|        addCapabilitiesMapping("separate_shader_objects", RSC_SEPARATE_SHADER_OBJECTS);
  381|      1|        addCapabilitiesMapping("glsl_sso_redeclare", RSC_GLSL_SSO_REDECLARE);
  382|      1|        addCapabilitiesMapping("debug", RSC_DEBUG);
  383|      1|        addCapabilitiesMapping("mapbuffer", RSC_MAPBUFFER);
  384|      1|        addCapabilitiesMapping("automipmap_compressed", RSC_AUTOMIPMAP_COMPRESSED);
  385|      1|    }

_ZN4Ogre8ResourceC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   36|  1.90k|        : mCreator(creator), mName(name), mGroup(group), mHandle(handle), 
   37|  1.90k|        mLoadingState(LOADSTATE_UNLOADED), mIsBackgroundLoaded(false),
   38|  1.90k|        mIsManual(isManual), mSize(0),  mLoader(loader), mStateCount(0)
   39|  1.90k|    {
   40|  1.90k|    }
_ZN4Ogre8ResourceD2Ev:
   43|  1.89k|    { 
   44|  1.89k|    }
_ZN4Ogre8ResourceaSERKS0_:
   46|    900|    {
   47|    900|        mName = rhs.mName;
   48|    900|        mGroup = rhs.mGroup;
   49|    900|        mCreator = rhs.mCreator;
   50|    900|        mIsManual = rhs.mIsManual;
   51|    900|        mLoader = rhs.mLoader;
   52|    900|        mHandle = rhs.mHandle;
   53|    900|        mSize = rhs.mSize;
   54|       |
   55|    900|        mLoadingState.store(rhs.mLoadingState.load());
   56|    900|        mIsBackgroundLoaded = rhs.mIsBackgroundLoaded;
   57|       |
   58|    900|        return *this;
   59|    900|    }
_ZN4Ogre8Resource6unloadEv:
  333|  2.48k|    { 
  334|       |        // Early-out without lock (mitigate perf cost of ensuring unloaded)
  335|  2.48k|        LoadingState old = mLoadingState.load();
  336|  2.48k|        if (old!=LOADSTATE_LOADED && old!=LOADSTATE_PREPARED) return;
  ------------------
  |  Branch (336:13): [True: 2.48k, False: 0]
  |  Branch (336:38): [True: 2.48k, False: 0]
  ------------------
  337|       |
  338|       |
  339|      0|        if (!mLoadingState.compare_exchange_strong(old,LOADSTATE_UNLOADING)) return;
  ------------------
  |  Branch (339:13): [True: 0, False: 0]
  ------------------
  340|       |
  341|       |        // Scope lock for actual unload
  342|      0|        {
  343|      0|                    OGRE_LOCK_AUTO_MUTEX;
  344|      0|            if (old==LOADSTATE_PREPARED) {
  ------------------
  |  Branch (344:17): [True: 0, False: 0]
  ------------------
  345|      0|                unprepareImpl();
  346|      0|            } else {
  347|      0|                preUnloadImpl();
  348|      0|                unloadImpl();
  349|      0|                postUnloadImpl();
  350|      0|            }
  351|      0|        }
  352|       |
  353|      0|        mLoadingState.store(LOADSTATE_UNLOADED);
  354|       |
  355|       |        // Notify manager
  356|       |        // Note if we have gone from PREPARED to UNLOADED, then we haven't actually
  357|       |        // unloaded, i.e. there is no memory freed on the GPU.
  358|      0|        if(old==LOADSTATE_LOADED && mCreator)
  ------------------
  |  Branch (358:12): [True: 0, False: 0]
  |  Branch (358:37): [True: 0, False: 0]
  ------------------
  359|      0|            mCreator->_notifyResourceUnloaded(this);
  360|       |
  361|      0|        _fireUnloadingComplete();
  362|       |
  363|       |
  364|      0|    }
_ZN4Ogre8Resource11addListenerEPNS0_8ListenerE:
  386|    860|    {
  387|    860|            OGRE_LOCK_MUTEX(mListenerListMutex);
  388|    860|        mListenerList.insert(lis);
  389|    860|    }
_ZN4Ogre8Resource14removeListenerEPNS0_8ListenerE:
  392|  52.8k|    {
  393|       |        // O(n) but not called very often
  394|  52.8k|            OGRE_LOCK_MUTEX(mListenerListMutex);
  395|  52.8k|        mListenerList.erase(lis);
  396|  52.8k|    }

_ZN4Ogre23ResourceBackgroundQueueC2Ev:
   47|      1|    ResourceBackgroundQueue::ResourceBackgroundQueue() {}

_ZN4Ogre20ResourceGroupManager12getSingletonEv:
   40|   132k|    {  
   41|       |        assert( msSingleton );  return ( *msSingleton );  
   42|   132k|    }
_ZN4Ogre20ResourceGroupManagerC2Ev:
   58|      1|        : mLoadingListener(0), mCurrentGroup(0)
   59|      1|    {
   60|       |        // Create the 'General' group
   61|      1|        createResourceGroup(DEFAULT_RESOURCE_GROUP_NAME, true); // the "General" group is synonymous to global pool
   62|       |        // Create the 'Internal' group
   63|      1|        createResourceGroup(INTERNAL_RESOURCE_GROUP_NAME, true);
   64|       |        // Create the 'Autodetect' group (only used for temp storage)
   65|      1|        createResourceGroup(AUTODETECT_RESOURCE_GROUP_NAME, true); // autodetect includes the global pool
   66|       |        // default world group to the default group
   67|      1|        mWorldGroupName = DEFAULT_RESOURCE_GROUP_NAME;
   68|      1|    }
_ZN4Ogre20ResourceGroupManager19createResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
   83|    331|    {
   84|    331|        LogManager::getSingleton().logMessage("Creating resource group " + name);
   85|    331|        if (getResourceGroup(name))
  ------------------
  |  Branch (85:13): [True: 0, False: 331]
  ------------------
   86|      0|        {
   87|      0|            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, 
   88|      0|                "Resource group with name '" + name + "' already exists!", 
   89|      0|                "ResourceGroupManager::createResourceGroup");
   90|      0|        }
   91|    331|        ResourceGroup* grp = OGRE_NEW_T(ResourceGroup, MEMCATEGORY_RESOURCE)();
   92|    331|        grp->groupStatus = ResourceGroup::UNINITIALSED;
   93|    331|        grp->name = name;
   94|    331|        grp->inGlobalPool = inGlobalPool;
   95|    331|        grp->customStageCount = 0;
   96|       |
   97|    331|        OGRE_LOCK_AUTO_MUTEX;
   98|    331|        mResourceGroupMap.emplace(name, grp);
   99|    331|    }
_ZN4Ogre20ResourceGroupManager19unloadResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  281|    327|    {
  282|    327|        LogManager::getSingleton().logMessage("Unloading resource group " + name);
  283|    327|        ResourceGroup* grp = getResourceGroup(name, true);
  284|    327|        OGRE_LOCK_AUTO_MUTEX;
  285|       |        // Set current group
  286|    327|        mCurrentGroup = grp;
  287|    327|        OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME); // lock group mutex 
  288|       |
  289|       |        // unload in reverse order
  290|    327|        for (auto& oi : grp->loadResourceOrderMap)
  ------------------
  |  Branch (290:23): [True: 332, False: 327]
  ------------------
  291|    332|        {
  292|    332|            for (auto& l : oi.second)
  ------------------
  |  Branch (292:26): [True: 1.88k, False: 332]
  ------------------
  293|  1.88k|            {
  294|  1.88k|                Resource* resource = l.get();
  295|  1.88k|                if (!reloadableOnly || resource->isReloadable())
  ------------------
  |  Branch (295:21): [True: 1.88k, False: 0]
  |  Branch (295:40): [True: 0, False: 0]
  ------------------
  296|  1.88k|                {
  297|  1.88k|                    resource->unload();
  298|  1.88k|                }
  299|  1.88k|            }
  300|    332|        }
  301|       |
  302|    327|        grp->groupStatus = ResourceGroup::INITIALISED;
  303|       |
  304|       |        // reset current group
  305|    327|        mCurrentGroup = 0;
  306|    327|        LogManager::getSingleton().logMessage("Finished unloading resource group " + name);
  307|    327|    }
_ZN4Ogre20ResourceGroupManager20destroyResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  362|    327|    {
  363|    327|        LogManager::getSingleton().logMessage("Destroying resource group " + name);
  364|    327|        ResourceGroup* grp = getResourceGroup(name, true);
  365|    327|        OGRE_LOCK_AUTO_MUTEX;
  366|       |        // set current group
  367|    327|        mCurrentGroup = grp;
  368|    327|        unloadResourceGroup(name, false); // will throw an exception if name not valid
  369|    327|        dropGroupContents(grp);
  370|    327|        deleteGroup(grp);
  371|    327|        mResourceGroupMap.erase(mResourceGroupMap.find(name));
  372|       |        // reset current group
  373|    327|        mCurrentGroup = 0;
  374|    327|    }
_ZN4Ogre20ResourceGroupManager24_registerResourceManagerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_15ResourceManagerE:
  702|      5|    {
  703|      5|        OGRE_LOCK_AUTO_MUTEX;
  704|       |
  705|      5|        LogManager::getSingleton().logMessage(
  706|      5|            "Registering ResourceManager for type " + resourceType);
  707|      5|        mResourceManagerMap[resourceType] = rm;
  708|      5|    }
_ZN4Ogre20ResourceGroupManager21_registerScriptLoaderEPNS_12ScriptLoaderE:
  726|      1|    {
  727|      1|            OGRE_LOCK_AUTO_MUTEX;
  728|       |
  729|      1|        mScriptLoaderOrderMap.emplace(su->getLoadingOrder(), su);
  730|      1|    }
_ZNK4Ogre20ResourceGroupManager22_notifyResourceCreatedERNS_9SharedPtrINS_8ResourceEEE:
  863|  1.88k|    {
  864|  1.88k|        if (mCurrentGroup && res->getGroup() == mCurrentGroup->name)
  ------------------
  |  Branch (864:13): [True: 0, False: 1.88k]
  |  Branch (864:30): [True: 0, False: 0]
  ------------------
  865|      0|        {
  866|       |            // Use current group (batch loading)
  867|      0|            addCreatedResource(res, *mCurrentGroup);
  868|      0|        }
  869|  1.88k|        else
  870|  1.88k|        {
  871|       |            // Find group
  872|  1.88k|            ResourceGroup* grp = getResourceGroup(res->getGroup());
  873|  1.88k|            if (grp)
  ------------------
  |  Branch (873:17): [True: 1.88k, False: 0]
  ------------------
  874|  1.88k|            {
  875|  1.88k|                addCreatedResource(res, *grp);
  876|  1.88k|            }
  877|  1.88k|        }
  878|       |
  879|  1.88k|        fireResourceCreated(res);
  880|  1.88k|    }
_ZNK4Ogre20ResourceGroupManager22_notifyResourceRemovedERKNS_9SharedPtrINS_8ResourceEEE:
  883|  1.88k|    {
  884|  1.88k|        fireResourceRemove(res);
  885|       |
  886|  1.88k|        if (mCurrentGroup && res->getGroup() == mCurrentGroup->name)
  ------------------
  |  Branch (886:13): [True: 1.88k, False: 0]
  |  Branch (886:30): [True: 1.88k, False: 0]
  ------------------
  887|  1.88k|        {
  888|       |            // Do nothing - we're batch unloading so list will be cleared
  889|  1.88k|        }
  890|      0|        else
  891|      0|        {
  892|       |            // Find group
  893|      0|            ResourceGroup* grp = getResourceGroup(res->getGroup());
  894|      0|            if (grp)
  ------------------
  |  Branch (894:17): [True: 0, False: 0]
  ------------------
  895|      0|            {
  896|      0|                            OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME); // lock group mutex
  897|      0|                ResourceGroup::LoadResourceOrderMap::iterator i = 
  898|      0|                    grp->loadResourceOrderMap.find(
  899|      0|                        res->getCreator()->getLoadingOrder());
  900|      0|                if (i != grp->loadResourceOrderMap.end())
  ------------------
  |  Branch (900:21): [True: 0, False: 0]
  ------------------
  901|      0|                {
  902|       |                    // Iterate over the resource list and remove
  903|      0|                    LoadUnloadResourceList& resList = i->second;
  904|      0|                    for (LoadUnloadResourceList::iterator l = resList.begin();
  905|      0|                        l != resList.end(); ++ l)
  ------------------
  |  Branch (905:25): [True: 0, False: 0]
  ------------------
  906|      0|                    {
  907|      0|                        if ((*l).get() == res.get())
  ------------------
  |  Branch (907:29): [True: 0, False: 0]
  ------------------
  908|      0|                        {
  909|       |                            // this is the one
  910|      0|                            resList.erase(l);
  911|      0|                            break;
  912|      0|                        }
  913|      0|                    }
  914|      0|                }
  915|      0|            }
  916|      0|        }
  917|  1.88k|    }
_ZNK4Ogre20ResourceGroupManager18addCreatedResourceERNS_9SharedPtrINS_8ResourceEEERNS0_13ResourceGroupE:
  990|  1.88k|    {
  991|  1.88k|            OGRE_LOCK_MUTEX(grp.OGRE_AUTO_MUTEX_NAME);
  992|  1.88k|        Real order = res->getCreator()->getLoadingOrder();
  993|       |
  994|  1.88k|        ResourceGroup::LoadResourceOrderMap::iterator i = grp.loadResourceOrderMap.find(order);
  995|  1.88k|        LoadUnloadResourceList& loadList =
  996|  1.88k|            i == grp.loadResourceOrderMap.end() ? grp.loadResourceOrderMap[order] : i->second;
  ------------------
  |  Branch (996:13): [True: 333, False: 1.55k]
  ------------------
  997|       |
  998|  1.88k|        loadList.push_back(res);
  999|  1.88k|    }
_ZNK4Ogre20ResourceGroupManager16getResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
 1003|   129k|    {
 1004|   129k|        OGRE_LOCK_AUTO_MUTEX;
 1005|   129k|        ResourceGroupMap::const_iterator i = mResourceGroupMap.find(name);
 1006|       |
 1007|   129k|        if (i == mResourceGroupMap.end())
  ------------------
  |  Branch (1007:13): [True: 331, False: 129k]
  ------------------
 1008|    331|        {
 1009|    331|            if (throwOnFailure)
  ------------------
  |  Branch (1009:17): [True: 0, False: 331]
  ------------------
 1010|    331|                OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "Cannot locate a resource group called '" + name + "'");
 1011|       |
 1012|    331|            return nullptr;
 1013|    331|        }
 1014|       |
 1015|   129k|        return i->second;
 1016|   129k|    }
_ZN4Ogre20ResourceGroupManager17dropGroupContentsEPNS0_13ResourceGroupE:
 1034|    327|    {
 1035|    327|            OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME);
 1036|       |
 1037|    327|        bool groupSet = false;
 1038|    327|        if (!mCurrentGroup)
  ------------------
  |  Branch (1038:13): [True: 327, False: 0]
  ------------------
 1039|    327|        {
 1040|       |            // Set current group to indicate ignoring of notifications
 1041|    327|            mCurrentGroup = grp;
 1042|    327|            groupSet = true;
 1043|    327|        }
 1044|       |        // delete all the load list entries
 1045|    327|        for (auto& j : grp->loadResourceOrderMap)
  ------------------
  |  Branch (1045:22): [True: 332, False: 327]
  ------------------
 1046|    332|        {
 1047|       |            // Iterate over resources
 1048|    332|            for (auto& k : j.second)
  ------------------
  |  Branch (1048:26): [True: 1.88k, False: 332]
  ------------------
 1049|  1.88k|            {
 1050|  1.88k|                k->getCreator()->remove(k);
 1051|  1.88k|            }
 1052|    332|        }
 1053|    327|        grp->loadResourceOrderMap.clear();
 1054|       |
 1055|    327|        if (groupSet)
  ------------------
  |  Branch (1055:13): [True: 327, False: 0]
  ------------------
 1056|    327|        {
 1057|    327|            mCurrentGroup = 0;
 1058|    327|        }
 1059|    327|    }
_ZN4Ogre20ResourceGroupManager11deleteGroupEPNS0_13ResourceGroupE:
 1062|    327|    {
 1063|    327|        {
 1064|    327|            OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME);
 1065|       |            // delete all the load list entries
 1066|    327|            grp->loadResourceOrderMap.clear();
 1067|    327|        }
 1068|       |
 1069|       |        // delete ResourceGroup
 1070|       |        OGRE_DELETE_T(grp, ResourceGroup, MEMCATEGORY_RESOURCE);
 1071|    327|    }
_ZNK4Ogre20ResourceGroupManager19fireResourceCreatedERKNS_9SharedPtrINS_8ResourceEEE:
 1203|  1.88k|    {
 1204|  1.88k|        OGRE_LOCK_AUTO_MUTEX;
 1205|  1.88k|        for (auto l : mResourceGroupListenerList)
  ------------------
  |  Branch (1205:21): [True: 0, False: 1.88k]
  ------------------
 1206|      0|        {
 1207|      0|            l->resourceCreated(resource);
 1208|      0|        }
 1209|  1.88k|    }
_ZNK4Ogre20ResourceGroupManager18fireResourceRemoveERKNS_9SharedPtrINS_8ResourceEEE:
 1212|  1.88k|    {
 1213|  1.88k|        OGRE_LOCK_AUTO_MUTEX;
 1214|  1.88k|        for (auto l : mResourceGroupListenerList)
  ------------------
  |  Branch (1214:21): [True: 0, False: 1.88k]
  ------------------
 1215|      0|        {
 1216|      0|            l->resourceRemove(resource);
 1217|      0|        }
 1218|  1.88k|    }
_ZNK4Ogre20ResourceGroupManager27isResourceGroupInGlobalPoolERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1462|   126k|    {
 1463|   126k|        return getResourceGroup(name, true)->inGlobalPool;
 1464|   126k|    }
_ZNK4Ogre20ResourceGroupManager18getLoadingListenerEv:
 1495|  1.90k|    {
 1496|  1.90k|        return mLoadingListener;
 1497|  1.90k|    }

_ZN4Ogre15ResourceManagerC2Ev:
   35|      6|        : mNextHandle(1), mMemoryUsage(0), mVerbose(true), mLoadOrder(0)
   36|      6|    {
   37|       |        // Init memory limit & usage
   38|      6|        mMemoryBudget = std::numeric_limits<unsigned long>::max();
   39|      6|    }
_ZN4Ogre15ResourceManager14createResourceERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   53|  1.29k|    {
   54|  1.29k|        OgreAssert(!name.empty(), "resource name must not be empty");
  ------------------
  |  Branch (54:9): [True: 0, False: 1.29k]
  ------------------
   55|       |
   56|       |        // Call creation implementation
   57|  1.29k|        ResourcePtr ret = ResourcePtr(
   58|  1.29k|            createImpl(name, getNextHandle(), group, isManual, loader, params));
   59|  1.29k|        if (params)
  ------------------
  |  Branch (59:13): [True: 0, False: 1.29k]
  ------------------
   60|      0|            ret->setParameterList(*params);
   61|       |
   62|  1.29k|        addImpl(ret);
   63|       |        // Tell resource group manager
   64|  1.29k|        if(ret)
  ------------------
  |  Branch (64:12): [True: 1.28k, False: 11]
  ------------------
   65|  1.28k|            ResourceGroupManager::getSingleton()._notifyResourceCreated(ret);
   66|  1.29k|        return ret;
   67|       |
   68|  1.29k|    }
_ZN4Ogre15ResourceManager16createOrRetrieveERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_bPNS_20ManualResourceLoaderEPKNS1_3mapIS7_S7_NS1_4lessIS7_EENS5_INS1_4pairIS8_S7_EEEEEE:
   75|  58.7k|    {
   76|       |        // Lock for the whole get / insert
   77|  58.7k|            OGRE_LOCK_AUTO_MUTEX;
   78|       |
   79|  58.7k|        ResourcePtr res = getResourceByName(name, group);
   80|  58.7k|        bool created = false;
   81|  58.7k|        if (!res)
  ------------------
  |  Branch (81:13): [True: 569, False: 58.2k]
  ------------------
   82|    569|        {
   83|    569|            created = true;
   84|    569|            res = createResource(name, group, isManual, loader, params);
   85|    569|        }
   86|       |
   87|  58.7k|        return ResourceCreateOrRetrieveResult(res, created);
   88|  58.7k|    }
_ZN4Ogre15ResourceManager7addImplERNS_9SharedPtrINS_8ResourceEEE:
  112|  1.90k|    {
  113|  1.90k|            OGRE_LOCK_AUTO_MUTEX;
  114|       |
  115|  1.90k|            std::pair<ResourceMap::iterator, bool> result;
  116|  1.90k|        if(ResourceGroupManager::getSingleton().isResourceGroupInGlobalPool(res->getGroup()))
  ------------------
  |  Branch (116:12): [True: 3, False: 1.89k]
  ------------------
  117|      3|        {
  118|      3|            result = mResources.emplace(res->getName(), res);
  119|      3|        }
  120|  1.89k|        else
  121|  1.89k|        {
  122|       |            // we will create the group if it doesn't exists in our list
  123|  1.89k|            auto resgroup = mResourcesWithGroup.emplace(res->getGroup(), ResourceMap()).first;
  124|  1.89k|            result = resgroup->second.emplace(res->getName(), res);
  125|  1.89k|        }
  126|       |
  127|       |        // Attempt to resolve the collision
  128|  1.90k|        ResourceLoadingListener* listener = ResourceGroupManager::getSingleton().getLoadingListener();
  129|  1.90k|        if (!result.second && listener)
  ------------------
  |  Branch (129:13): [True: 15, False: 1.88k]
  |  Branch (129:31): [True: 0, False: 15]
  ------------------
  130|      0|        {
  131|      0|            if(listener->resourceCollision(res.get(), this) == false)
  ------------------
  |  Branch (131:16): [True: 0, False: 0]
  ------------------
  132|      0|            {
  133|       |                // explicitly use previous instance and destroy current
  134|      0|                res.reset();
  135|      0|                return;
  136|      0|            }
  137|       |
  138|       |            // Try to do the addition again, no seconds attempts to resolve collisions are allowed
  139|      0|            if(ResourceGroupManager::getSingleton().isResourceGroupInGlobalPool(res->getGroup()))
  ------------------
  |  Branch (139:16): [True: 0, False: 0]
  ------------------
  140|      0|            {
  141|      0|                result = mResources.emplace(res->getName(), res);
  142|      0|            }
  143|      0|            else
  144|      0|            {
  145|      0|                auto resgroup = mResourcesWithGroup.emplace(res->getGroup(), ResourceMap()).first;
  146|      0|                result = resgroup->second.emplace(res->getName(), res);
  147|      0|            }
  148|      0|        }
  149|       |
  150|  1.90k|        if (!result.second)
  ------------------
  |  Branch (150:13): [True: 15, False: 1.88k]
  ------------------
  151|     15|        {
  152|     15|            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, getResourceType()+" with the name " + res->getName() +
  153|     15|                " already exists.", "ResourceManager::add");
  154|     15|        }
  155|       |
  156|       |        // Insert the handle
  157|  1.88k|        std::pair<ResourceHandleMap::iterator, bool> resultHandle = mResourcesByHandle.emplace(res->getHandle(), res);
  158|  1.88k|        if (!resultHandle.second)
  ------------------
  |  Branch (158:13): [True: 0, False: 1.88k]
  ------------------
  159|      0|        {
  160|       |            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, getResourceType()+" with the handle " +
  161|      0|                StringConverter::toString((long) (res->getHandle())) +
  162|      0|                " already exists.", "ResourceManager::add");
  163|      0|        }
  164|  1.88k|    }
_ZN4Ogre15ResourceManager10removeImplERKNS_9SharedPtrINS_8ResourceEEE:
  167|  1.88k|    {
  168|  1.88k|        OgreAssert(res, "attempting to remove nullptr");
  ------------------
  |  Branch (168:9): [True: 0, False: 1.88k]
  ------------------
  169|       |
  170|  1.88k|#if OGRE_RESOURCEMANAGER_STRICT
  171|  1.88k|        if (res->getCreator() != this)
  ------------------
  |  Branch (171:13): [True: 0, False: 1.88k]
  ------------------
  172|  1.88k|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Resource '" + res->getName() + "' was not created by the '" +
  173|  1.88k|                                                          getResourceType() + "' ResourceManager");
  174|  1.88k|#endif
  175|       |
  176|  1.88k|        OGRE_LOCK_AUTO_MUTEX;
  177|       |
  178|  1.88k|        if(ResourceGroupManager::getSingleton().isResourceGroupInGlobalPool(res->getGroup()))
  ------------------
  |  Branch (178:12): [True: 0, False: 1.88k]
  ------------------
  179|      0|        {
  180|      0|            ResourceMap::iterator nameIt = mResources.find(res->getName());
  181|      0|            if (nameIt != mResources.end())
  ------------------
  |  Branch (181:17): [True: 0, False: 0]
  ------------------
  182|      0|            {
  183|      0|                mResources.erase(nameIt);
  184|      0|            }
  185|      0|        }
  186|  1.88k|        else
  187|  1.88k|        {
  188|  1.88k|            ResourceWithGroupMap::iterator groupIt = mResourcesWithGroup.find(res->getGroup());
  189|  1.88k|            if (groupIt != mResourcesWithGroup.end())
  ------------------
  |  Branch (189:17): [True: 1.88k, False: 0]
  ------------------
  190|  1.88k|            {
  191|  1.88k|                ResourceMap::iterator nameIt = groupIt->second.find(res->getName());
  192|  1.88k|                if (nameIt != groupIt->second.end())
  ------------------
  |  Branch (192:21): [True: 1.88k, False: 0]
  ------------------
  193|  1.88k|                {
  194|  1.88k|                    groupIt->second.erase(nameIt);
  195|  1.88k|                }
  196|       |
  197|  1.88k|                if (groupIt->second.empty())
  ------------------
  |  Branch (197:21): [True: 332, False: 1.55k]
  ------------------
  198|    332|                {
  199|    332|                    mResourcesWithGroup.erase(groupIt);
  200|    332|                }
  201|  1.88k|            }
  202|  1.88k|        }
  203|       |
  204|  1.88k|        ResourceHandleMap::iterator handleIt = mResourcesByHandle.find(res->getHandle());
  205|  1.88k|        if (handleIt != mResourcesByHandle.end())
  ------------------
  |  Branch (205:13): [True: 1.88k, False: 0]
  ------------------
  206|  1.88k|        {
  207|  1.88k|            mResourcesByHandle.erase(handleIt);
  208|  1.88k|        }
  209|       |        // Tell resource group manager
  210|  1.88k|        ResourceGroupManager::getSingleton()._notifyResourceRemoved(res);
  211|  1.88k|    }
_ZN4Ogre15ResourceManager6removeERKNS_9SharedPtrINS_8ResourceEEE:
  298|  1.88k|    {
  299|  1.88k|        removeImpl(res);
  300|  1.88k|    }
_ZNK4Ogre15ResourceManager17getResourceByNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  380|   122k|    {
  381|   122k|        OGRE_LOCK_AUTO_MUTEX;
  382|       |
  383|       |        // resource should be in global pool
  384|   122k|        bool isGlobal = ResourceGroupManager::getSingleton().isResourceGroupInGlobalPool(groupName);
  385|       |
  386|   122k|        if(isGlobal)
  ------------------
  |  Branch (386:12): [True: 324, False: 122k]
  ------------------
  387|    324|        {
  388|    324|            auto it = mResources.find(name);
  389|    324|            if( it != mResources.end())
  ------------------
  |  Branch (389:17): [True: 0, False: 324]
  ------------------
  390|      0|            {
  391|      0|                return it->second;
  392|      0|            }
  393|    324|        }
  394|       |
  395|       |        // look in all grouped pools
  396|   122k|        if (groupName == ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
  ------------------
  |  Branch (396:13): [True: 324, False: 122k]
  ------------------
  397|    324|        {
  398|    324|            for (auto& r : mResourcesWithGroup)
  ------------------
  |  Branch (398:26): [True: 279, False: 324]
  ------------------
  399|    279|            {
  400|    279|                auto resMapIt = r.second.find(name);
  401|       |
  402|    279|                if( resMapIt != r.second.end())
  ------------------
  |  Branch (402:21): [True: 0, False: 279]
  ------------------
  403|      0|                {
  404|      0|                    return resMapIt->second;
  405|      0|                }
  406|    279|            }
  407|    324|        }
  408|   122k|        else if (!isGlobal)
  ------------------
  |  Branch (408:18): [True: 122k, False: 0]
  ------------------
  409|   122k|        {
  410|       |            // look in the grouped pool
  411|   122k|            auto itGroup = mResourcesWithGroup.find(groupName);
  412|   122k|            if (itGroup != mResourcesWithGroup.end())
  ------------------
  |  Branch (412:17): [True: 122k, False: 266]
  ------------------
  413|   122k|            {
  414|   122k|                auto it = itGroup->second.find(name);
  415|       |
  416|   122k|                if( it != itGroup->second.end())
  ------------------
  |  Branch (416:21): [True: 119k, False: 3.02k]
  ------------------
  417|   119k|                {
  418|   119k|                    return it->second;
  419|   119k|                }
  420|   122k|            }
  421|       |
  422|       |#if !OGRE_RESOURCEMANAGER_STRICT
  423|       |            // fall back to global
  424|       |            auto it = mResources.find(name);
  425|       |            if( it != mResources.end())
  426|       |            {
  427|       |                return it->second;
  428|       |            }
  429|       |#endif
  430|   122k|        }
  431|       |    
  432|  3.61k|        return ResourcePtr();
  433|   122k|    }
_ZN4Ogre15ResourceManager13getNextHandleEv:
  443|  1.90k|    {
  444|       |        // This is an atomic operation and hence needs no locking
  445|  1.90k|        return mNextHandle++;
  446|  1.90k|    }

_ZNK4Ogre18RibbonTrailFactory7getTypeEv:
  433|      3|    {
  434|      3|        return MOT_RIBBON_TRAIL;
  435|      3|    }

_ZN4Ogre4Root12getSingletonEv:
   86|  2.90k|    {
   87|       |        assert( msSingleton );  return ( *msSingleton );
   88|  2.90k|    }
_ZN4Ogre4RootC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_S9_:
   96|      1|      : mQueuedEnd(false)
   97|      1|      , mCurrentSceneManager(NULL)
   98|      1|      , mNextFrame(1)
   99|      1|      , mFrameSmoothingTime(0.0f)
  100|      1|      , mRemoveQueueStructuresOnClear(false)
  101|      1|      , mDefaultMinPixelSize(0)
  102|      1|      , mNextMovableObjectTypeFlag(1)
  103|      1|      , mIsInitialised(false)
  104|      1|      , mIsBlendIndicesGpuRedundant(true)
  105|      1|      , mIsBlendWeightsGpuRedundant(true)
  106|      1|    {
  107|       |        // superclass will do singleton checking
  108|       |
  109|       |        // Init
  110|      1|        mActiveRenderer = 0;
  111|      1|        mVersion = StringConverter::toString(OGRE_VERSION_MAJOR) + "." +
  112|      1|            StringConverter::toString(OGRE_VERSION_MINOR) + "." +
  113|      1|            StringConverter::toString(OGRE_VERSION_PATCH) +
  114|      1|            OGRE_VERSION_SUFFIX + " " +
  115|      1|            "(" + OGRE_VERSION_NAME + ")";
  116|      1|        mConfigFileName = configFileName;
  117|       |
  118|       |        // Create log manager and default log file if there is no log manager yet
  119|      1|        if(!LogManager::getSingletonPtr())
  ------------------
  |  Branch (119:12): [True: 0, False: 1]
  ------------------
  120|      0|        {
  121|      0|            mLogManager = std::make_unique<LogManager>();
  122|       |
  123|       |#if OGRE_PLATFORM == OGRE_PLATFORM_EMSCRIPTEN
  124|       |            // suppress writing log to Emscripten virtual FS, improves performance
  125|       |            mLogManager->createLog(logFileName, true, true, true);
  126|       |#else
  127|      0|            mLogManager->createLog(logFileName, true, true);
  128|      0|#endif
  129|       |
  130|       |#if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
  131|       |            mAndroidLogger.reset(new AndroidLogListener());
  132|       |            mLogManager->getDefaultLog()->addListener(mAndroidLogger.get());
  133|       |#endif
  134|      0|        }
  135|       |
  136|      1|        mDynLibManager = std::make_unique<DynLibManager>();
  137|      1|        mArchiveManager = std::make_unique<ArchiveManager>();
  138|      1|        mResourceGroupManager = std::make_unique<ResourceGroupManager>();
  139|       |
  140|       |        // WorkQueue (note: users can replace this if they want)
  141|      1|        DefaultWorkQueue* defaultQ = OGRE_NEW DefaultWorkQueue("Root");
  142|       |        // match threads to hardware
  143|      1|        int threadCount = OGRE_THREAD_HARDWARE_CONCURRENCY;
  144|       |        // but clamp it at 2 by default - we dont scale much beyond that currently
  145|       |        // yet it helps on android where it needlessly burns CPU
  146|      1|        threadCount = Math::Clamp(threadCount, 1, 2);
  147|      1|        defaultQ->setWorkerThreadCount(threadCount);
  148|       |
  149|       |        // only allow workers to access rendersystem if threadsupport is 1
  150|      1|        defaultQ->setWorkersCanAccessRenderSystem(OGRE_THREAD_SUPPORT == 1);
  151|      1|        mWorkQueue.reset(defaultQ);
  152|       |
  153|       |        // ResourceBackgroundQueue
  154|      1|        mResourceBackgroundQueue = std::make_unique<ResourceBackgroundQueue>();
  155|       |
  156|       |        // Create SceneManager enumerator (note - will be managed by singleton)
  157|      1|        mSceneManagerEnum = std::make_unique<SceneManagerEnumerator>();
  158|      1|        mShadowTextureManager = std::make_unique<ShadowTextureManager>();
  159|      1|        mRenderSystemCapabilitiesManager = std::make_unique<RenderSystemCapabilitiesManager>();
  160|      1|        mMaterialManager = std::make_unique<MaterialManager>();
  161|      1|        mMeshManager = std::make_unique<MeshManager>();
  162|      1|        mSkeletonManager = std::make_unique<SkeletonManager>();
  163|      1|        mParticleManager = std::make_unique<ParticleSystemManager>();
  164|      1|        mTimer = std::make_unique<Timer>();
  165|      1|        mLodStrategyManager = std::make_unique<LodStrategyManager>();
  166|       |
  167|       |#if OGRE_PROFILING
  168|       |        // Profiler
  169|       |        mProfiler.reset(new Profiler());
  170|       |        Profiler::getSingleton().setTimer(mTimer.get());
  171|       |#endif
  172|       |
  173|       |
  174|      1|        mFileSystemArchiveFactory = std::make_unique<FileSystemArchiveFactory>();
  175|      1|        ArchiveManager::getSingleton().addArchiveFactory( mFileSystemArchiveFactory.get() );
  176|      1|#   if OGRE_NO_ZIP_ARCHIVE == 0
  177|      1|        mZipArchiveFactory = std::make_unique<ZipArchiveFactory>();
  178|      1|        ArchiveManager::getSingleton().addArchiveFactory( mZipArchiveFactory.get() );
  179|      1|        mEmbeddedZipArchiveFactory = std::make_unique<EmbeddedZipArchiveFactory>();
  180|      1|        ArchiveManager::getSingleton().addArchiveFactory( mEmbeddedZipArchiveFactory.get() );
  181|      1|#   endif
  182|       |
  183|      1|#if OGRE_NO_DDS_CODEC == 0
  184|       |        // Register image codecs
  185|      1|        DDSCodec::startup();
  186|      1|#endif
  187|      1|#if OGRE_NO_PVRTC_CODEC == 0
  188|      1|        PVRTCCodec::startup();
  189|      1|#endif
  190|      1|#if OGRE_NO_ETC_CODEC == 0
  191|      1|        ETCCodec::startup();
  192|      1|#endif
  193|      1|#if OGRE_NO_ASTC_CODEC == 0
  194|      1|        ASTCCodec::startup();
  195|      1|#endif
  196|       |
  197|      1|        mGpuProgramManager = std::make_unique<GpuProgramManager>();
  198|      1|        mExternalTextureSourceManager = std::make_unique<ExternalTextureSourceManager>();
  199|      1|        mCompositorManager = std::make_unique<CompositorManager>();
  200|      1|        mCompilerManager = std::make_unique<ScriptCompilerManager>();
  201|       |
  202|       |        // Auto window
  203|      1|        mAutoWindow = 0;
  204|       |
  205|       |        // instantiate and register base movable factories
  206|      1|        mEntityFactory = std::make_unique<EntityFactory>();
  207|      1|        addMovableObjectFactory(mEntityFactory.get());
  208|      1|        mLightFactory = std::make_unique<LightFactory>();
  209|      1|        addMovableObjectFactory(mLightFactory.get());
  210|      1|        mBillboardSetFactory = std::make_unique<BillboardSetFactory>();
  211|      1|        addMovableObjectFactory(mBillboardSetFactory.get());
  212|      1|        mManualObjectFactory = std::make_unique<ManualObjectFactory>();
  213|      1|        addMovableObjectFactory(mManualObjectFactory.get());
  214|      1|        mBillboardChainFactory = std::make_unique<BillboardChainFactory>();
  215|      1|        addMovableObjectFactory(mBillboardChainFactory.get());
  216|      1|        mRibbonTrailFactory = std::make_unique<RibbonTrailFactory>();
  217|      1|        addMovableObjectFactory(mRibbonTrailFactory.get());
  218|      1|        mStaticGeometryFactory = std::make_unique<StaticGeometryFactory>();
  219|      1|        addMovableObjectFactory(mStaticGeometryFactory.get());
  220|      1|        mRectangle2DFactory = std::make_unique<Rectangle2DFactory>();
  221|      1|        addMovableObjectFactory(mRectangle2DFactory.get());
  222|       |
  223|       |        // Load plugins
  224|      1|        if (!pluginFileName.empty())
  ------------------
  |  Branch (224:13): [True: 0, False: 1]
  ------------------
  225|      0|            loadPlugins(pluginFileName);
  226|       |
  227|      1|        LogManager::getSingleton().logMessage("*-*-* OGRE Initialising");
  228|      1|        LogManager::getSingleton().logMessage("*-*-* Version " + mVersion);
  229|       |
  230|       |        // Can't create managers until initialised
  231|      1|        mControllerManager = 0;
  232|       |
  233|      1|        mFirstTimePostWindowInit = false;
  234|      1|    }
_ZN4Ogre4Root15getRenderSystemEv:
  481|  2.90k|    {
  482|       |        // Gets the currently active renderer
  483|  2.90k|        return mActiveRenderer;
  484|       |
  485|  2.90k|    }
_ZN4Ogre4Root23addMovableObjectFactoryEPNS_20MovableObjectFactoryEb:
 1162|      9|    {
 1163|      9|        MovableObjectFactoryMap::iterator facti = mMovableObjectFactoryMap.find(
 1164|      9|            fact->getType());
 1165|      9|        if (!overrideExisting && facti != mMovableObjectFactoryMap.end())
  ------------------
  |  Branch (1165:13): [True: 9, False: 0]
  |  Branch (1165:13): [True: 0, False: 9]
  |  Branch (1165:34): [True: 0, False: 9]
  ------------------
 1166|      0|        {
 1167|      0|            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM,
 1168|      0|                "A factory of type '" + fact->getType() + "' already exists.",
 1169|      0|                "Root::addMovableObjectFactory");
 1170|      0|        }
 1171|       |
 1172|      9|        if (fact->requestTypeFlags())
  ------------------
  |  Branch (1172:13): [True: 0, False: 9]
  ------------------
 1173|      0|        {
 1174|      0|            if (facti != mMovableObjectFactoryMap.end() && facti->second->requestTypeFlags())
  ------------------
  |  Branch (1174:17): [True: 0, False: 0]
  |  Branch (1174:17): [True: 0, False: 0]
  |  Branch (1174:60): [True: 0, False: 0]
  ------------------
 1175|      0|            {
 1176|       |                // Copy type flags from the factory we're replacing
 1177|      0|                fact->_notifyTypeFlags(facti->second->getTypeFlags());
 1178|      0|            }
 1179|      0|            else
 1180|      0|            {
 1181|       |                // Allocate new
 1182|      0|                fact->_notifyTypeFlags(_allocateNextMovableObjectTypeFlag());
 1183|      0|            }
 1184|      0|        }
 1185|       |
 1186|       |        // Save
 1187|      9|        mMovableObjectFactoryMap[fact->getType()] = fact;
 1188|       |
 1189|      9|        LogManager::getSingleton().logMessage("MovableObjectFactory for type '" +
 1190|      9|            fact->getType() + "' registered.");
 1191|       |
 1192|      9|    }

_ZN4Ogre22SceneManagerEnumeratorC2Ev:
   47|      1|        : mInstanceCreateCount(0), mCurrentRenderSystem(0)
   48|      1|    {
   49|      1|        addFactory(&mDefaultFactory);
   50|       |
   51|      1|    }
_ZN4Ogre22SceneManagerEnumerator10addFactoryEPNS_19SceneManagerFactoryE:
   75|      1|    {
   76|      1|        mFactories[fact->getTypeName()] = fact;
   77|       |        // add to metadata
   78|      1|        mMetaDataList.push_back(fact->getTypeName());
   79|       |        // Log
   80|      1|        LogManager::getSingleton().logMessage("SceneManagerFactory for type '" + fact->getTypeName() + "' registered.");
   81|      1|    }

_ZN4Ogre26DefaultSceneManagerFactoryC2Ev:
   49|      1|        DefaultSceneManagerFactory() {}
_ZNK4Ogre26DefaultSceneManagerFactory11getTypeNameEv:
   52|      3|        const String& getTypeName(void) const override { return SMT_DEFAULT; }

_ZN4Ogre12AbstractNodeC2EPS0_:
   40|  3.07M|        :line(0), type(ANT_UNKNOWN), parent(ptr)
   41|  3.07M|    {}
_ZN4Ogre16AtomAbstractNodeC2EPNS_12AbstractNodeE:
   45|  2.11M|        :AbstractNode(ptr), id(0)
   46|  2.11M|    {
   47|  2.11M|        type = ANT_ATOM;
   48|  2.11M|    }
_ZNK4Ogre16AtomAbstractNode5cloneEv:
   51|   457k|    {
   52|       |        AtomAbstractNode *node = OGRE_NEW AtomAbstractNode(parent);
   53|   457k|        node->file = file;
   54|   457k|        node->line = line;
   55|   457k|        node->id = id;
   56|   457k|        node->type = type;
   57|   457k|        node->value = value;
   58|   457k|        return node;
   59|   457k|    }
_ZN4Ogre18ObjectAbstractNodeC2EPNS_12AbstractNodeE:
   63|   138k|        :AbstractNode(ptr), id(0), abstract(false)
   64|   138k|    {
   65|   138k|        type = ANT_OBJECT;
   66|   138k|    }
_ZNK4Ogre18ObjectAbstractNode5cloneEv:
   69|   120k|    {
   70|   120k|        ObjectAbstractNode *node = OGRE_NEW ObjectAbstractNode(parent);
   71|   120k|        node->file = file;
   72|   120k|        node->line = line;
   73|   120k|        node->type = type;
   74|   120k|        node->name = name;
   75|   120k|        node->cls = cls;
   76|   120k|        node->id = id;
   77|   120k|        node->abstract = abstract;
   78|   120k|        for(const auto & i : children)
  ------------------
  |  Branch (78:28): [True: 196k, False: 120k]
  ------------------
   79|   196k|        {
   80|   196k|            AbstractNodePtr newNode = AbstractNodePtr(i->clone());
   81|   196k|            newNode->parent = node;
   82|   196k|            node->children.push_back(newNode);
   83|   196k|        }
   84|   120k|        for(const auto & value : values)
  ------------------
  |  Branch (84:32): [True: 56.1k, False: 120k]
  ------------------
   85|  56.1k|        {
   86|  56.1k|            AbstractNodePtr newNode = AbstractNodePtr(value->clone());
   87|  56.1k|            newNode->parent = node;
   88|  56.1k|            node->values.push_back(newNode);
   89|  56.1k|        }
   90|   120k|        node->mEnv = mEnv;
   91|   120k|        return node;
   92|   120k|    }
_ZN4Ogre18ObjectAbstractNode11setVariableERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  100|    154|    {
  101|    154|        mEnv[inName] = value;
  102|    154|    }
_ZNK4Ogre18ObjectAbstractNode11getVariableERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  105|   600k|    {
  106|   600k|        std::map<String,String>::const_iterator i = mEnv.find(inName);
  107|   600k|        if(i != mEnv.end())
  ------------------
  |  Branch (107:12): [True: 3.78k, False: 596k]
  ------------------
  108|  3.78k|            return std::make_pair(true, i->second);
  109|       |
  110|   596k|        auto parentNode = this->parent;
  111|  1.76M|        while(parentNode && parentNode->type == ANT_OBJECT)
  ------------------
  |  Branch (111:15): [True: 1.21M, False: 546k]
  |  Branch (111:29): [True: 1.21M, False: 32]
  ------------------
  112|  1.21M|        {
  113|  1.21M|            ObjectAbstractNode *parentObj = (ObjectAbstractNode*)parentNode;
  114|  1.21M|            i = parentObj->mEnv.find(inName);
  115|  1.21M|            if(i != parentObj->mEnv.end())
  ------------------
  |  Branch (115:16): [True: 49.7k, False: 1.16M]
  ------------------
  116|  49.7k|                return std::make_pair(true, i->second);
  117|  1.16M|            parentNode = parentNode->parent;
  118|  1.16M|        }
  119|   546k|        return std::make_pair(false, "");
  120|   596k|    }
_ZNK4Ogre18ObjectAbstractNode12getVariablesEv:
  123|  23.7k|    {
  124|  23.7k|        return mEnv;
  125|  23.7k|    }
_ZN4Ogre20PropertyAbstractNodeC2EPNS_12AbstractNodeE:
  129|   219k|        :AbstractNode(ptr), id(0)
  130|   219k|    {
  131|   219k|        type = ANT_PROPERTY;
  132|   219k|    }
_ZNK4Ogre20PropertyAbstractNode5cloneEv:
  135|   195k|    {
  136|   195k|        PropertyAbstractNode *node = OGRE_NEW PropertyAbstractNode(parent);
  137|   195k|        node->file = file;
  138|   195k|        node->line = line;
  139|   195k|        node->type = type;
  140|   195k|        node->name = name;
  141|   195k|        node->id = id;
  142|   195k|        for(const auto & value : values)
  ------------------
  |  Branch (142:32): [True: 394k, False: 195k]
  ------------------
  143|   394k|        {
  144|   394k|            AbstractNodePtr newNode = AbstractNodePtr(value->clone());
  145|   394k|            newNode->parent = node;
  146|   394k|            node->values.push_back(newNode);
  147|   394k|        }
  148|   195k|        return node;
  149|   195k|    }
_ZN4Ogre18ImportAbstractNodeC2Ev:
  153|     75|        :AbstractNode(0)
  154|     75|    {
  155|     75|        type = ANT_IMPORT;
  156|     75|    }
_ZN4Ogre26VariableAccessAbstractNodeC2EPNS_12AbstractNodeE:
  171|   605k|        :AbstractNode(ptr)
  172|   605k|    {
  173|   605k|        type = ANT_VARIABLE_ACCESS;
  174|   605k|    }
_ZNK4Ogre26VariableAccessAbstractNode5cloneEv:
  177|  21.9k|    {
  178|       |        VariableAccessAbstractNode *node = OGRE_NEW VariableAccessAbstractNode(parent);
  179|  21.9k|        node->file = file;
  180|  21.9k|        node->line = line;
  181|  21.9k|        node->type = type;
  182|  21.9k|        node->name = name;
  183|  21.9k|        return node;
  184|  21.9k|    }
_ZN4Ogre22ScriptCompilerListenerC2Ev:
  188|      1|    {
  189|      1|    }
_ZN4Ogre22ScriptCompilerListener13preConversionEPNS_14ScriptCompilerENS_9SharedPtrINSt3__14listINS3_INS_12ConcreteNodeEEENS4_9allocatorIS7_EEEEEE:
  197|    326|    {
  198|       |
  199|    326|    }
_ZN4Ogre22ScriptCompilerListener14postConversionEPNS_14ScriptCompilerERKNS_9SharedPtrINSt3__14listINS3_INS_12AbstractNodeEEENS4_9allocatorIS7_EEEEEE:
  202|    326|    {
  203|    326|        return true;
  204|    326|    }
_ZN4Ogre22ScriptCompilerListener11handleEventEPNS_14ScriptCompilerEPNS_19ScriptCompilerEventEPv:
  220|   134k|    {
  221|   134k|        return false;
  222|   134k|    }
_ZN4Ogre14ScriptCompilerC2Ev:
  261|      1|        :mListener(0)
  262|      1|    {
  263|      1|        initWordMap();
  264|      1|    }
_ZN4Ogre14ScriptCompiler7compileERKNS_9SharedPtrINSt3__14listINS1_INS_12ConcreteNodeEEENS2_9allocatorIS5_EEEEEERKNS2_12basic_stringIcNS2_11char_traitsIcEENS6_IcEEEE:
  327|    326|    {
  328|    326|        if(nodes && !nodes->empty())
  ------------------
  |  Branch (328:12): [True: 326, False: 0]
  |  Branch (328:21): [True: 326, False: 0]
  ------------------
  329|    326|        {
  330|    326|            mSourceFile = nodes->front()->file;
  331|    326|        }
  332|       |
  333|       |        // Set up the compilation context
  334|    326|        mGroup = group;
  335|       |
  336|       |        // Clear the past errors
  337|    326|        mErrors.clear();
  338|       |
  339|       |        // Clear the environment
  340|    326|        mEnv.clear();
  341|       |
  342|    326|        if(mListener)
  ------------------
  |  Branch (342:12): [True: 326, False: 0]
  ------------------
  343|    326|            mListener->preConversion(this, nodes);
  344|       |
  345|       |        // Convert our nodes to an AST
  346|    326|        AbstractNodeListPtr ast = convertToAST(*nodes);
  347|       |        // Processes the imports for this script
  348|    326|        processImports(*ast);
  349|       |        // Process object inheritance
  350|    326|        processObjects(*ast, *ast);
  351|       |        // Process variable expansion
  352|    326|        std::set<String> expadingVars;
  353|    326|        processVariables(*ast, expadingVars);
  354|       |
  355|       |        // Allows early bail-out through the listener
  356|    326|        if(mListener && !mListener->postConversion(this, ast))
  ------------------
  |  Branch (356:12): [True: 326, False: 0]
  |  Branch (356:25): [True: 0, False: 326]
  ------------------
  357|      0|            return mErrors.empty();
  358|       |
  359|       |        // Translate the nodes
  360|    326|        for(auto & i : *ast)
  ------------------
  |  Branch (360:22): [True: 26.7k, False: 326]
  ------------------
  361|  26.7k|        {
  362|       |#if DEBUG_AST
  363|       |            logAST(0, i);
  364|       |#endif
  365|  26.7k|            if(i->type == ANT_OBJECT && static_cast<ObjectAbstractNode*>(i.get())->abstract)
  ------------------
  |  Branch (365:16): [True: 2.98k, False: 23.7k]
  |  Branch (365:41): [True: 9, False: 2.97k]
  ------------------
  366|      9|                continue;
  367|       |            //LogManager::getSingleton().logMessage(static_cast<ObjectAbstractNode*>((*i).get())->name);
  368|  26.7k|            ScriptTranslator *translator = ScriptCompilerManager::getSingleton().getTranslator(i);
  369|  26.7k|            if(translator)
  ------------------
  |  Branch (369:16): [True: 611, False: 26.1k]
  ------------------
  370|    611|                translator->translate(this, i);
  371|  26.7k|        }
  372|       |
  373|    326|        mImports.clear();
  374|    326|        mImportRequests.clear();
  375|    326|        mImportTable.clear();
  376|    326|        mSourceFile.clear();
  377|       |
  378|    326|        return mErrors.empty();
  379|    326|    }
_ZN4Ogre14ScriptCompiler8addErrorEjRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiS9_:
  382|  1.24M|    {
  383|  1.24M|        if(mListener)
  ------------------
  |  Branch (383:12): [True: 1.24M, False: 0]
  ------------------
  384|  1.24M|        {
  385|  1.24M|            mListener->handleError(this, code, file, line, msg);
  386|  1.24M|        }
  387|      0|        else
  388|      0|        {
  389|      0|            static ScriptCompilerListener defaultListener;
  390|      0|            defaultListener.handleError(this, code, file, line, msg);
  391|      0|        }
  392|       |
  393|  1.24M|        mErrors.push_back({file, msg, line, code});
  394|  1.24M|    }
_ZN4Ogre14ScriptCompiler8addErrorERKNS_12AbstractNodeERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEj:
  397|  23.8k|    {
  398|  23.8k|        addError(code, mSourceFile, node.line, msg);
  399|  23.8k|    }
_ZN4Ogre14ScriptCompiler11setListenerEPNS_22ScriptCompilerListenerE:
  402|      1|    {
  403|      1|        mListener = listener;
  404|      1|    }
_ZN4Ogre14ScriptCompiler11getListenerEv:
  407|     14|    {
  408|     14|        return mListener;
  409|     14|    }
_ZNK4Ogre14ScriptCompiler16getResourceGroupEv:
  412|  64.0k|    {
  413|  64.0k|        return mGroup;
  414|  64.0k|    }
_ZN4Ogre14ScriptCompiler10_fireEventEPNS_19ScriptCompilerEventEPv:
  417|   134k|    {
  418|   134k|        if(mListener)
  ------------------
  |  Branch (418:12): [True: 134k, False: 0]
  ------------------
  419|   134k|            return mListener->handleEvent(this, evt, retval);
  420|      0|        return false;
  421|   134k|    }
_ZN4Ogre14ScriptCompiler12convertToASTERKNSt3__14listINS_9SharedPtrINS_12ConcreteNodeEEENS1_9allocatorIS5_EEEE:
  424|  53.3k|    {
  425|  53.3k|        AbstractTreeBuilder builder(this);
  426|  53.3k|        AbstractTreeBuilder::visit(&builder, nodes);
  427|  53.3k|        return builder.getResult();
  428|  53.3k|    }
_ZN4Ogre14ScriptCompiler14processImportsERNSt3__14listINS_9SharedPtrINS_12AbstractNodeEEENS1_9allocatorIS5_EEEE:
  431|    326|    {
  432|       |        // We only need to iterate over the top-level of nodes
  433|    326|        AbstractNodeList::iterator i = nodes.begin();
  434|  27.3k|        while(i != nodes.end())
  ------------------
  |  Branch (434:15): [True: 27.0k, False: 326]
  ------------------
  435|  27.0k|        {
  436|       |            // We move to the next node here and save the current one.
  437|       |            // If any replacement happens, then we are still assured that
  438|       |            // i points to the node *after* the replaced nodes, no matter
  439|       |            // how many insertions and deletions may happen
  440|  27.0k|            AbstractNodeList::iterator cur = i++;
  441|  27.0k|            if((*cur)->type == ANT_IMPORT)
  ------------------
  |  Branch (441:16): [True: 75, False: 26.9k]
  ------------------
  442|     75|            {
  443|     75|                ImportAbstractNode *import = (ImportAbstractNode*)(*cur).get();
  444|       |                // Only process if the file's contents haven't been loaded
  445|     75|                if(mImports.find(import->source) == mImports.end())
  ------------------
  |  Branch (445:20): [True: 75, False: 0]
  ------------------
  446|     75|                {
  447|       |                    // Load the script
  448|     75|                    AbstractNodeListPtr importedNodes = loadImportPath(import->source);
  449|     75|                    if(importedNodes && !importedNodes->empty())
  ------------------
  |  Branch (449:24): [True: 75, False: 0]
  |  Branch (449:41): [True: 0, False: 75]
  ------------------
  450|      0|                    {
  451|      0|                        processImports(*importedNodes);
  452|      0|                        processObjects(*importedNodes, *importedNodes);
  453|      0|                    }
  454|     75|                    else
  455|     75|                    {
  456|     75|                        addError(CE_REFERENCETOANONEXISTINGOBJECT, import->file, import->line, import->source);
  457|     75|                    }
  458|       |
  459|     75|                    if(importedNodes && !importedNodes->empty())
  ------------------
  |  Branch (459:24): [True: 75, False: 0]
  |  Branch (459:41): [True: 0, False: 75]
  ------------------
  460|      0|                        mImports.insert(std::make_pair(import->source, importedNodes));
  461|     75|                }
  462|       |
  463|     75|                ImportRequestMap::iterator iter = mImportRequests.lower_bound(import->source),
  464|     75|                                           end = mImportRequests.upper_bound(import->source);
  465|       |                // Handle the target request now
  466|       |                // If it is a '*' import we remove all previous requests and just use the '*'
  467|       |                // Otherwise, ensure '*' isn't already registered and register our request
  468|     75|                if(import->target == "*")
  ------------------
  |  Branch (468:20): [True: 30, False: 45]
  ------------------
  469|     30|                {
  470|     30|                    mImportRequests.erase(iter, end);
  471|     30|                    mImportRequests.insert(std::make_pair(import->source, "*"));
  472|     30|                }
  473|     45|                else
  474|     45|                {
  475|     45|                    if(iter == end || iter->second != "*")
  ------------------
  |  Branch (475:24): [True: 24, False: 21]
  |  Branch (475:39): [True: 14, False: 7]
  ------------------
  476|     38|                    {
  477|     38|                        mImportRequests.insert(std::make_pair(import->source, import->target));
  478|     38|                    }
  479|     45|                }
  480|       |
  481|     75|                nodes.erase(cur);
  482|     75|            }
  483|  27.0k|        }
  484|       |
  485|       |        // All import nodes are removed
  486|       |        // We have cached the code blocks from all the imported scripts
  487|       |        // We can process all import requests now
  488|    326|        for(auto & import : mImports)
  ------------------
  |  Branch (488:27): [True: 0, False: 326]
  ------------------
  489|      0|        {
  490|      0|            ImportRequestMap::iterator j = mImportRequests.lower_bound(import.first),
  491|      0|                end = mImportRequests.upper_bound(import.first);
  492|      0|            if(j != end)
  ------------------
  |  Branch (492:16): [True: 0, False: 0]
  ------------------
  493|      0|            {
  494|      0|                if(j->second == "*")
  ------------------
  |  Branch (494:20): [True: 0, False: 0]
  ------------------
  495|      0|                {
  496|       |                    // Insert the entire AST into the import table
  497|      0|                    mImportTable.insert(mImportTable.begin(), import.second->begin(), import.second->end());
  498|      0|                    continue; // Skip ahead to the next file
  499|      0|                }
  500|      0|                else
  501|      0|                {
  502|      0|                    for(; j != end; ++j)
  ------------------
  |  Branch (502:27): [True: 0, False: 0]
  ------------------
  503|      0|                    {
  504|       |                        // Locate this target and insert it into the import table
  505|      0|                        auto target = locateTarget(*import.second, j->second);
  506|      0|                        if(target)
  ------------------
  |  Branch (506:28): [True: 0, False: 0]
  ------------------
  507|      0|                            mImportTable.insert(mImportTable.begin(), target);
  508|      0|                        else
  509|       |                            // -1 for line as we lost that info here
  510|      0|                            addError(CE_REFERENCETOANONEXISTINGOBJECT, nodes.front()->file, -1, j->second);
  511|      0|                    }
  512|      0|                }
  513|      0|            }
  514|      0|        }
  515|    326|    }
_ZN4Ogre14ScriptCompiler14loadImportPathERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  518|     75|    {
  519|     75|        AbstractNodeListPtr retval;
  520|     75|        ConcreteNodeListPtr nodes;
  521|       |
  522|     75|        if(mListener)
  ------------------
  |  Branch (522:12): [True: 75, False: 0]
  ------------------
  523|     75|            nodes = mListener->importFile(this, name);
  524|       |
  525|     75|        if(!nodes && ResourceGroupManager::getSingletonPtr())
  ------------------
  |  Branch (525:12): [True: 0, False: 75]
  |  Branch (525:22): [True: 0, False: 0]
  ------------------
  526|      0|        {
  527|      0|            auto stream = ResourceGroupManager::getSingleton().openResource(name, mGroup, NULL, false);
  528|       |
  529|      0|            if (!stream)
  ------------------
  |  Branch (529:17): [True: 0, False: 0]
  ------------------
  530|      0|                return retval;
  531|       |
  532|      0|            nodes = ScriptParser::parse(ScriptLexer::tokenize(stream->getAsString(), name), name);
  533|      0|        }
  534|       |
  535|     75|        if(nodes)
  ------------------
  |  Branch (535:12): [True: 75, False: 0]
  ------------------
  536|     75|            retval = convertToAST(*nodes);
  537|       |
  538|     75|        return retval;
  539|     75|    }
_ZN4Ogre14ScriptCompiler12locateTargetERKNSt3__14listINS_9SharedPtrINS_12AbstractNodeEEENS1_9allocatorIS5_EEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS6_IcEEEE:
  542|  10.2k|    {
  543|       |        // Search for a top-level object node
  544|  10.2k|        for(const auto& n : nodes)
  ------------------
  |  Branch (544:27): [True: 1.24M, False: 6.02k]
  ------------------
  545|  1.24M|        {
  546|  1.24M|            if(n->type == ANT_OBJECT && static_cast<ObjectAbstractNode*>(n.get())->name == target)
  ------------------
  |  Branch (546:16): [True: 773k, False: 476k]
  |  Branch (546:41): [True: 4.23k, False: 769k]
  ------------------
  547|  4.23k|            {
  548|  4.23k|                return n;
  549|  4.23k|            }
  550|  1.24M|        }
  551|       |
  552|  6.02k|        return nullptr;
  553|  10.2k|    }
_ZN4Ogre14ScriptCompiler14processObjectsERNSt3__14listINS_9SharedPtrINS_12AbstractNodeEEENS1_9allocatorIS5_EEEERKS8_PKNS_18ObjectAbstractNodeE:
  556|   138k|    {
  557|   138k|        for(auto& node : nodes)
  ------------------
  |  Branch (557:24): [True: 357k, False: 138k]
  ------------------
  558|   357k|        {
  559|   357k|            if(node->type == ANT_OBJECT)
  ------------------
  |  Branch (559:16): [True: 137k, False: 219k]
  ------------------
  560|   137k|            {
  561|   137k|                ObjectAbstractNode *obj = (ObjectAbstractNode*)node.get();
  562|       |
  563|   137k|                auto skipNode = exclude ? exclude : obj; // set to us at the top level
  ------------------
  |  Branch (563:33): [True: 134k, False: 3.08k]
  ------------------
  564|       |
  565|   137k|#ifdef OGRE_BUILD_COMPONENT_OVERLAY
  566|   137k|                bool isOverlayElement = obj->cls == "overlay_element";
  567|   137k|#endif
  568|       |                // Overlay base classes in order.
  569|   137k|                for (String& base : obj->bases)
  ------------------
  |  Branch (569:35): [True: 7.25k, False: 137k]
  ------------------
  570|  7.25k|                {
  571|       |                    // Check the top level first, then check the import table
  572|  7.25k|                    auto target = locateTarget(top, base);
  573|  7.25k|                    if(!target)
  ------------------
  |  Branch (573:24): [True: 3.01k, False: 4.23k]
  ------------------
  574|  3.01k|                        target = locateTarget(mImportTable, base);
  575|       |
  576|  7.25k|                    if (!target)
  ------------------
  |  Branch (576:25): [True: 3.01k, False: 4.23k]
  ------------------
  577|  3.01k|                    {
  578|  3.01k|                        addError(CE_OBJECTBASENOTFOUND, obj->file, obj->line, base);
  579|  3.01k|                        continue;
  580|  3.01k|                    }
  581|       |
  582|  4.23k|                    auto& src = static_cast<const ObjectAbstractNode&>(*target);
  583|       |
  584|  4.23k|                    if (target.get() == skipNode)
  ------------------
  |  Branch (584:25): [True: 269, False: 3.96k]
  ------------------
  585|    269|                    {
  586|    269|                        addError(CE_OBJECTBASENOTFOUND, obj->file, obj->line, "cannot inherit from itself");
  587|    269|                        continue;
  588|    269|                    }
  589|       |
  590|  3.96k|                    if (src.cls != obj->cls)
  ------------------
  |  Branch (590:25): [True: 1.69k, False: 2.27k]
  ------------------
  591|  1.69k|                    {
  592|  1.69k|                        addError(CE_OBJECTBASENOTFOUND, obj->file, obj->line, "cannot inherit from a different type");
  593|  1.69k|                        continue;
  594|  1.69k|                    }
  595|       |
  596|  2.27k|#ifdef OGRE_BUILD_COMPONENT_OVERLAY
  597|       |                    // uses custom inheritance for renaming children
  598|  2.27k|                    if (isOverlayElement)
  ------------------
  |  Branch (598:25): [True: 0, False: 2.27k]
  ------------------
  599|      0|                    {
  600|      0|                        if (src.abstract)
  ------------------
  |  Branch (600:29): [True: 0, False: 0]
  ------------------
  601|      0|                            base = ""; // hide from custom inheritance
  602|      0|                        else
  603|      0|                            continue;
  604|      0|                    }
  605|  2.27k|#endif
  606|  2.27k|                    overlayObject(src, *obj);
  607|  2.27k|                }
  608|       |
  609|       |                // Recurse into children
  610|   137k|                processObjects(obj->children, top, skipNode);
  611|       |
  612|       |                // Overrides now exist in obj's overrides list. These are non-object nodes which must now
  613|       |                // Be placed in the children section of the object node such that overriding from parents
  614|       |                // into children works properly.
  615|   137k|                obj->children.insert(obj->children.begin(), obj->overrides.begin(), obj->overrides.end());
  616|   137k|            }
  617|   357k|        }
  618|   138k|    }
_ZN4Ogre14ScriptCompiler13overlayObjectERKNS_18ObjectAbstractNodeERS1_:
  621|  23.7k|    {
  622|       |        // Overlay the environment of one on top the other first
  623|  23.7k|        for(const auto & i : src.getVariables())
  ------------------
  |  Branch (623:28): [True: 836, False: 23.7k]
  ------------------
  624|    836|        {
  625|    836|            std::pair<bool,String> var = dest.getVariable(i.first);
  626|    836|            if(!var.first)
  ------------------
  |  Branch (626:16): [True: 4, False: 832]
  ------------------
  627|      4|                dest.setVariable(i.first, i.second);
  628|    836|        }
  629|       |
  630|       |        // Create a vector storing each pairing of override between source and destination
  631|  23.7k|        typedef SharedPtr<ObjectAbstractNode> ObjectAbstractNodePtr;
  632|  23.7k|        std::vector<std::pair<ObjectAbstractNodePtr,AbstractNodeList::iterator> > overrides;
  633|       |        // A list of indices for each destination node tracks the minimum
  634|       |        // source node they can index-match against
  635|  23.7k|        std::map<ObjectAbstractNode*,size_t> indices;
  636|       |        // A map storing which nodes have overridden from the destination node
  637|  23.7k|        std::map<ObjectAbstractNode*,bool> overridden;
  638|       |
  639|       |        // Fill the vector with objects from the source node (base)
  640|       |        // And insert non-objects into the overrides list of the destination
  641|  23.7k|        AbstractNodeList::iterator insertPos = dest.children.begin();
  642|  23.7k|        for(const auto & i : src.children)
  ------------------
  |  Branch (642:28): [True: 168k, False: 23.7k]
  ------------------
  643|   168k|        {
  644|   168k|            if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (644:16): [True: 114k, False: 54.2k]
  ------------------
  645|   114k|            {
  646|   114k|                overrides.push_back(std::make_pair(static_pointer_cast<ObjectAbstractNode>(i), dest.children.end()));
  647|   114k|            }
  648|  54.2k|            else
  649|  54.2k|            {
  650|  54.2k|                AbstractNodePtr newNode(i->clone());
  651|  54.2k|                newNode->parent = &dest;
  652|  54.2k|                dest.overrides.push_back(newNode);
  653|  54.2k|            }
  654|   168k|        }
  655|       |
  656|       |        // Track the running maximum override index in the name-matching phase
  657|  23.7k|        size_t maxOverrideIndex = 0;
  658|       |
  659|       |        // Loop through destination children searching for name-matching overrides
  660|   680k|        for(AbstractNodeList::iterator i = dest.children.begin(); i != dest.children.end(); )
  ------------------
  |  Branch (660:67): [True: 656k, False: 23.7k]
  ------------------
  661|   656k|        {
  662|   656k|            if((*i)->type == ANT_OBJECT)
  ------------------
  |  Branch (662:16): [True: 618k, False: 38.0k]
  ------------------
  663|   618k|            {
  664|       |                // Start tracking the override index position for this object
  665|   618k|                size_t overrideIndex = 0;
  666|       |
  667|   618k|                ObjectAbstractNode *node = static_cast<ObjectAbstractNode*>((*i).get());
  668|   618k|                indices[node] = maxOverrideIndex;
  669|   618k|                overridden[node] = false;
  670|       |
  671|       |                // special treatment for materials with * in their name
  672|   618k|                bool nodeHasWildcard=node->name.find('*') != String::npos;
  673|       |
  674|       |                // Find the matching name node
  675|  17.7M|                for(size_t j = 0; j < overrides.size(); ++j)
  ------------------
  |  Branch (675:35): [True: 17.7M, False: 26.8k]
  ------------------
  676|  17.7M|                {
  677|  17.7M|                    ObjectAbstractNode *temp = overrides[j].first.get();
  678|       |                    // Consider a match a node that has a wildcard and matches an input name
  679|  17.7M|                    bool wildcardMatch = nodeHasWildcard &&
  ------------------
  |  Branch (679:42): [True: 61.3k, False: 17.6M]
  ------------------
  680|  61.3k|                        (StringUtil::match(temp->name,node->name,true) ||
  ------------------
  |  Branch (680:26): [True: 30.8k, False: 30.5k]
  ------------------
  681|  30.5k|                            (node->name.size() == 1 && temp->name.empty()));
  ------------------
  |  Branch (681:30): [True: 0, False: 30.5k]
  |  Branch (681:56): [True: 0, False: 0]
  ------------------
  682|  17.7M|                    if(temp->cls == node->cls && !node->name.empty() && (temp->name == node->name || wildcardMatch))
  ------------------
  |  Branch (682:24): [True: 3.21M, False: 14.5M]
  |  Branch (682:50): [True: 3.04M, False: 173k]
  |  Branch (682:74): [True: 591k, False: 2.45M]
  |  Branch (682:102): [True: 590, False: 2.45M]
  ------------------
  683|   592k|                    {
  684|       |                        // Pair these two together unless it's already paired
  685|   592k|                        if(overrides[j].second == dest.children.end())
  ------------------
  |  Branch (685:28): [True: 13.8k, False: 578k]
  ------------------
  686|  13.8k|                        {
  687|  13.8k|                            AbstractNodeList::iterator currentIterator = i;
  688|  13.8k|                            ObjectAbstractNode *currentNode = node;
  689|  13.8k|                            if (wildcardMatch)
  ------------------
  |  Branch (689:33): [True: 770, False: 13.1k]
  ------------------
  690|    770|                            {
  691|       |                                //If wildcard is matched, make a copy of current material and put it before the iterator, matching its name to the parent. Use same reinterpret cast as above when node is set
  692|    770|                                AbstractNodePtr newNode((*i)->clone());
  693|    770|                                currentIterator = dest.children.insert(currentIterator, newNode);
  694|    770|                                currentNode = static_cast<ObjectAbstractNode*>((*currentIterator).get());
  695|    770|                                currentNode->name = temp->name;//make the regex match its matcher
  696|    770|                            }
  697|  13.8k|                            overrides[j] = std::make_pair(overrides[j].first, currentIterator);
  698|       |                            // Store the max override index for this matched pair
  699|  13.8k|                            overrideIndex = j;
  700|  13.8k|                            overrideIndex = maxOverrideIndex = std::max(overrideIndex, maxOverrideIndex);
  701|  13.8k|                            indices[currentNode] = overrideIndex;
  702|  13.8k|                            overridden[currentNode] = true;
  703|  13.8k|                        }
  704|   578k|                        else
  705|   578k|                        {
  706|   578k|                            addError(CE_DUPLICATEOVERRIDE, node->file, node->line);
  707|   578k|                        }
  708|       |
  709|   592k|                        if(!wildcardMatch)
  ------------------
  |  Branch (709:28): [True: 591k, False: 800]
  ------------------
  710|   591k|                            break;
  711|   592k|                    }
  712|  17.7M|                }
  713|       |
  714|   618k|                if (nodeHasWildcard)
  ------------------
  |  Branch (714:21): [True: 200, False: 618k]
  ------------------
  715|    200|                {
  716|       |                    //if the node has a wildcard it will be deleted since it was duplicated for every match
  717|    200|                    AbstractNodeList::iterator deletable=i++;
  718|    200|                    dest.children.erase(deletable);
  719|    200|                }
  720|   618k|                else
  721|   618k|                {
  722|   618k|                    ++i; //Behavior in absence of regex, just increment iterator
  723|   618k|                }
  724|   618k|            }
  725|  38.0k|            else
  726|  38.0k|            {
  727|  38.0k|                ++i; //Behavior in absence of replaceable object, just increment iterator to find another
  728|  38.0k|            }
  729|   656k|        }
  730|       |
  731|       |        // Now make matches based on index
  732|       |        // Loop through destination children searching for index-matching overrides
  733|   680k|        for(AbstractNodeList::iterator i = dest.children.begin(); i != dest.children.end(); ++i)
  ------------------
  |  Branch (733:67): [True: 657k, False: 23.7k]
  ------------------
  734|   657k|        {
  735|   657k|            if((*i)->type == ANT_OBJECT)
  ------------------
  |  Branch (735:16): [True: 619k, False: 38.0k]
  ------------------
  736|   619k|            {
  737|   619k|                ObjectAbstractNode *node = static_cast<ObjectAbstractNode*>((*i).get());
  738|   619k|                if(!overridden[node])
  ------------------
  |  Branch (738:20): [True: 605k, False: 13.8k]
  ------------------
  739|   605k|                {
  740|       |                    // Retrieve the minimum override index from the map
  741|   605k|                    size_t overrideIndex = indices[node];
  742|       |
  743|   605k|                    if(overrideIndex < overrides.size())
  ------------------
  |  Branch (743:24): [True: 605k, False: 18]
  ------------------
  744|   605k|                    {
  745|       |                        // Search for minimum matching override
  746|   224M|                        for(size_t j = overrideIndex; j < overrides.size(); ++j)
  ------------------
  |  Branch (746:55): [True: 223M, False: 597k]
  ------------------
  747|   223M|                        {
  748|   223M|                            ObjectAbstractNode *temp = overrides[j].first.get();
  749|   223M|                            if(temp->name.empty() && node->name.empty() && temp->cls == node->cls && overrides[j].second == dest.children.end())
  ------------------
  |  Branch (749:32): [True: 174k, False: 223M]
  |  Branch (749:32): [True: 7.60k, False: 223M]
  |  Branch (749:54): [True: 35.5k, False: 138k]
  |  Branch (749:76): [True: 9.09k, False: 26.4k]
  |  Branch (749:102): [True: 7.60k, False: 1.48k]
  ------------------
  750|  7.60k|                            {
  751|  7.60k|                                overrides[j] = std::make_pair(overrides[j].first, i);
  752|  7.60k|                                break;
  753|  7.60k|                            }
  754|   223M|                        }
  755|   605k|                    }
  756|   605k|                }
  757|   619k|            }
  758|   657k|        }
  759|       |
  760|       |        // Loop through overrides, either inserting source nodes or overriding
  761|  23.7k|        insertPos = dest.children.begin();
  762|  23.7k|        for(auto & override : overrides)
  ------------------
  |  Branch (762:29): [True: 114k, False: 23.7k]
  ------------------
  763|   114k|        {
  764|   114k|            if(override.second != dest.children.end())
  ------------------
  |  Branch (764:16): [True: 21.4k, False: 93.1k]
  ------------------
  765|  21.4k|            {
  766|       |                // Override the destination with the source (base) object
  767|  21.4k|                overlayObject(*override.first,
  768|  21.4k|                    static_cast<ObjectAbstractNode&>(**override.second));
  769|  21.4k|                insertPos = override.second;
  770|  21.4k|                insertPos++;
  771|  21.4k|            }
  772|  93.1k|            else
  773|  93.1k|            {
  774|       |                // No override was possible, so insert this node at the insert position
  775|       |                // into the destination (child) object
  776|  93.1k|                AbstractNodePtr newNode(override.first->clone());
  777|  93.1k|                newNode->parent = &dest;
  778|  93.1k|                if(insertPos != dest.children.end())
  ------------------
  |  Branch (778:20): [True: 83.9k, False: 9.16k]
  ------------------
  779|  83.9k|                {
  780|  83.9k|                    dest.children.insert(insertPos, newNode);
  781|  83.9k|                }
  782|  9.16k|                else
  783|  9.16k|                {
  784|  9.16k|                    dest.children.push_back(newNode);
  785|  9.16k|                }
  786|  93.1k|            }
  787|   114k|        }
  788|  23.7k|    }
_ZN4Ogre14ScriptCompiler14isNameExcludedERKNS_18ObjectAbstractNodeEPNS_12AbstractNodeE:
  791|  10.4k|    {
  792|       |        // Run past the listener
  793|  10.4k|        bool excludeName = false;
  794|  10.4k|        ProcessNameExclusionScriptCompilerEvent evt(node.cls, parent);
  795|  10.4k|        if(_fireEvent(&evt, (void*)&excludeName))
  ------------------
  |  Branch (795:12): [True: 0, False: 10.4k]
  ------------------
  796|      0|            return excludeName;
  797|       |
  798|       |        // Process the built-in name exclusions
  799|  10.4k|        if(node.id == ID_EMITTER || node.id == ID_AFFECTOR)
  ------------------
  |  Branch (799:12): [True: 3, False: 10.4k]
  |  Branch (799:37): [True: 222, False: 10.1k]
  ------------------
  800|    225|        {
  801|       |            // emitters or affectors inside a particle_system are excluded
  802|    364|            while(parent && parent->type == ANT_OBJECT)
  ------------------
  |  Branch (802:19): [True: 139, False: 225]
  |  Branch (802:29): [True: 139, False: 0]
  ------------------
  803|    139|            {
  804|    139|                ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(parent);
  805|    139|                if(obj->id == ID_PARTICLE_SYSTEM)
  ------------------
  |  Branch (805:20): [True: 0, False: 139]
  ------------------
  806|      0|                    return true;
  807|    139|                parent = obj->parent;
  808|    139|            }
  809|    225|        }
  810|  10.1k|        else if(node.id == ID_PASS)
  ------------------
  |  Branch (810:17): [True: 2.95k, False: 7.23k]
  ------------------
  811|  2.95k|        {
  812|       |            // passes inside compositors are excluded
  813|  8.62k|            while(parent && parent->type == ANT_OBJECT)
  ------------------
  |  Branch (813:19): [True: 5.86k, False: 2.76k]
  |  Branch (813:29): [True: 5.85k, False: 7]
  ------------------
  814|  5.85k|            {
  815|  5.85k|                ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(parent);
  816|  5.85k|                if(obj->id == ID_TARGET || obj->id == ID_TARGET_OUTPUT)
  ------------------
  |  Branch (816:20): [True: 52, False: 5.80k]
  |  Branch (816:44): [True: 132, False: 5.66k]
  ------------------
  817|    184|                    return true;
  818|  5.66k|                parent = obj->parent;
  819|  5.66k|            }
  820|  2.95k|        }
  821|  7.23k|        else if(node.id == ID_TEXTURE_SOURCE)
  ------------------
  |  Branch (821:17): [True: 172, False: 7.06k]
  ------------------
  822|    172|        {
  823|       |            // Parent must be texture_unit
  824|    985|            while(parent && parent->type == ANT_OBJECT)
  ------------------
  |  Branch (824:19): [True: 820, False: 165]
  |  Branch (824:29): [True: 813, False: 7]
  ------------------
  825|    813|            {
  826|    813|                ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(parent);
  827|    813|                if(obj->id == ID_TEXTURE_UNIT)
  ------------------
  |  Branch (827:20): [True: 0, False: 813]
  ------------------
  828|      0|                    return true;
  829|    813|                parent = obj->parent;
  830|    813|            }
  831|    172|        }
  832|       |
  833|  10.2k|        return false;
  834|  10.4k|    }
_ZN4Ogre14ScriptCompiler16processVariablesERNSt3__14listINS_9SharedPtrINS_12AbstractNodeEEENS1_9allocatorIS5_EEEERNS1_3setINS1_12basic_stringIcNS1_11char_traitsIcEENS6_IcEEEENS1_4lessISF_EENS6_ISF_EEEE:
  837|   547k|    {
  838|   547k|        AbstractNodeList::iterator i = nodes.begin();
  839|  3.60M|        while(i != nodes.end())
  ------------------
  |  Branch (839:15): [True: 3.05M, False: 547k]
  ------------------
  840|  3.05M|        {
  841|  3.05M|            AbstractNodeList::iterator cur = i;
  842|  3.05M|            ++i;
  843|       |
  844|  3.05M|            if((*cur)->type == ANT_OBJECT)
  ------------------
  |  Branch (844:16): [True: 137k, False: 2.91M]
  ------------------
  845|   137k|            {
  846|       |                // Only process if this object is not abstract
  847|   137k|                ObjectAbstractNode *obj = (ObjectAbstractNode*)(*cur).get();
  848|   137k|                if(!obj->abstract)
  ------------------
  |  Branch (848:20): [True: 137k, False: 19]
  ------------------
  849|   137k|                {
  850|   137k|                    processVariables(obj->children, expandingVars);
  851|   137k|                    processVariables(obj->values, expandingVars);
  852|   137k|                }
  853|   137k|            }
  854|  2.91M|            else if((*cur)->type == ANT_PROPERTY)
  ------------------
  |  Branch (854:21): [True: 218k, False: 2.69M]
  ------------------
  855|   218k|            {
  856|   218k|                PropertyAbstractNode *prop = (PropertyAbstractNode*)(*cur).get();
  857|   218k|                processVariables(prop->values, expandingVars);
  858|   218k|            }
  859|  2.69M|            else if((*cur)->type == ANT_VARIABLE_ACCESS)
  ------------------
  |  Branch (859:21): [True: 600k, False: 2.09M]
  ------------------
  860|   600k|            {
  861|   600k|                VariableAccessAbstractNode *var = (VariableAccessAbstractNode*)(*cur).get();
  862|       |
  863|       |                // Look up the enclosing scope
  864|   600k|                ObjectAbstractNode *scope = 0;
  865|   600k|                AbstractNode *temp = var->parent;
  866|  1.01M|                while(temp)
  ------------------
  |  Branch (866:23): [True: 1.01M, False: 307]
  ------------------
  867|  1.01M|                {
  868|  1.01M|                    if(temp->type == ANT_OBJECT)
  ------------------
  |  Branch (868:24): [True: 599k, False: 419k]
  ------------------
  869|   599k|                    {
  870|   599k|                        scope = (ObjectAbstractNode*)temp;
  871|   599k|                        break;
  872|   599k|                    }
  873|   419k|                    temp = temp->parent;
  874|   419k|                }
  875|       |
  876|       |                // Look up the variable in the environment
  877|   600k|                std::pair<bool,String> varAccess;
  878|   600k|                if(scope)
  ------------------
  |  Branch (878:20): [True: 599k, False: 307]
  ------------------
  879|   599k|                    varAccess = scope->getVariable(var->name);
  880|   600k|                if(!scope || !varAccess.first)
  ------------------
  |  Branch (880:20): [True: 307, False: 599k]
  |  Branch (880:30): [True: 546k, False: 52.7k]
  ------------------
  881|   547k|                {
  882|   547k|                    std::map<String,String>::iterator k = mEnv.find(var->name);
  883|   547k|                    varAccess.first = k != mEnv.end();
  884|   547k|                    if(varAccess.first)
  ------------------
  |  Branch (884:24): [True: 304, False: 546k]
  ------------------
  885|    304|                        varAccess.second = k->second;
  886|   547k|                }
  887|       |
  888|   600k|                if(varAccess.first)
  ------------------
  |  Branch (888:20): [True: 53.0k, False: 546k]
  ------------------
  889|  53.0k|                {
  890|  53.0k|                    if(!expandingVars.insert(var->name).second)
  ------------------
  |  Branch (890:24): [True: 64, False: 52.9k]
  ------------------
  891|     64|                    {
  892|       |                        // Error
  893|     64|                        addError(CE_INVALIDPARAMETERS, var->file, var->line, var->name+ " is defined recursively");
  894|     64|                        nodes.erase(cur);
  895|     64|                        continue;
  896|     64|                    }
  897|       |
  898|       |                    // Found the variable, so process it and insert it into the tree
  899|  52.9k|                    ConcreteNodeListPtr cst = ScriptParser::parseChunk(ScriptLexer::tokenize(varAccess.second, var->file), var->file);
  900|  52.9k|                    AbstractNodeListPtr ast = convertToAST(*cst);
  901|       |
  902|       |                    // Set up ownership for these nodes
  903|  52.9k|                    for(auto & j : *ast)
  ------------------
  |  Branch (903:34): [True: 1.92M, False: 52.9k]
  ------------------
  904|  1.92M|                        j->parent = var->parent;
  905|       |
  906|       |                    // Recursively handle variable accesses within the variable expansion
  907|  52.9k|                    processVariables(*ast, expandingVars);
  908|       |
  909|       |                    // Insert the nodes in place of the variable
  910|  52.9k|                    nodes.insert(cur, ast->begin(), ast->end());
  911|       |
  912|  52.9k|                    expandingVars.erase(var->name);
  913|  52.9k|                }
  914|   546k|                else
  915|   546k|                {
  916|       |                    // Error
  917|   546k|                    addError(CE_UNDEFINEDVARIABLE, var->file, var->line, var->name);
  918|   546k|                }
  919|       |
  920|       |                // Remove the variable node
  921|   599k|                nodes.erase(cur);
  922|   599k|            }
  923|  3.05M|        }
  924|   547k|    }
_ZN4Ogre14ScriptCompiler11initWordMapEv:
  927|      1|    {
  928|      1|        mIds["on"] = ID_ON;
  929|      1|        mIds["off"] = ID_OFF;
  930|      1|        mIds["true"] = ID_TRUE;
  931|      1|        mIds["false"] = ID_FALSE;
  932|      1|        mIds["yes"] = ID_YES;
  933|      1|        mIds["no"] = ID_NO;
  934|       |
  935|       |        // Material ids
  936|      1|        mIds["material"] = ID_MATERIAL;
  937|      1|        mIds["vertex_program"] = ID_VERTEX_PROGRAM;
  938|      1|        mIds["geometry_program"] = ID_GEOMETRY_PROGRAM;
  939|      1|        mIds["fragment_program"] = ID_FRAGMENT_PROGRAM;
  940|      1|        mIds["tessellation_hull_program"] = ID_TESSELLATION_HULL_PROGRAM;
  941|      1|        mIds["tessellation_domain_program"] = ID_TESSELLATION_DOMAIN_PROGRAM;
  942|      1|        mIds["compute_program"] = ID_COMPUTE_PROGRAM;
  943|      1|        mIds["mesh_program"] = ID_MESH_PROGRAM;
  944|      1|        mIds["task_program"] = ID_TASK_PROGRAM;
  945|      1|        mIds["technique"] = ID_TECHNIQUE;
  946|      1|        mIds["pass"] = ID_PASS;
  947|      1|        mIds["texture_unit"] = ID_TEXTURE_UNIT;
  948|      1|        mIds["vertex_program_ref"] = ID_VERTEX_PROGRAM_REF;
  949|      1|        mIds["geometry_program_ref"] = ID_GEOMETRY_PROGRAM_REF;
  950|      1|        mIds["fragment_program_ref"] = ID_FRAGMENT_PROGRAM_REF;
  951|      1|        mIds["tessellation_hull_program_ref"] = ID_TESSELLATION_HULL_PROGRAM_REF;
  952|      1|        mIds["tessellation_domain_program_ref"] = ID_TESSELLATION_DOMAIN_PROGRAM_REF;
  953|      1|        mIds["compute_program_ref"] = ID_COMPUTE_PROGRAM_REF;
  954|      1|        mIds["mesh_program_ref"] = ID_MESH_PROGRAM_REF;
  955|      1|        mIds["task_program_ref"] = ID_TASK_PROGRAM_REF;
  956|      1|        mIds["shadow_caster_vertex_program_ref"] = ID_SHADOW_CASTER_VERTEX_PROGRAM_REF;
  957|      1|        mIds["shadow_caster_fragment_program_ref"] = ID_SHADOW_CASTER_FRAGMENT_PROGRAM_REF;
  958|      1|        mIds["shadow_receiver_vertex_program_ref"] = ID_SHADOW_RECEIVER_VERTEX_PROGRAM_REF;
  959|      1|        mIds["shadow_receiver_fragment_program_ref"] = ID_SHADOW_RECEIVER_FRAGMENT_PROGRAM_REF;
  960|       |
  961|      1|        mIds["lod_values"] = ID_LOD_VALUES;
  962|      1|        mIds["lod_strategy"] = ID_LOD_STRATEGY;
  963|      1|        mIds["lod_distances"] = ID_LOD_DISTANCES;
  964|      1|        mIds["receive_shadows"] = ID_RECEIVE_SHADOWS;
  965|      1|        mIds["transparency_casts_shadows"] = ID_TRANSPARENCY_CASTS_SHADOWS;
  966|      1|        mIds["set_texture_alias"] = ID_SET_TEXTURE_ALIAS;
  967|       |
  968|      1|        mIds["source"] = ID_SOURCE;
  969|      1|        mIds["syntax"] = ID_SYNTAX;
  970|      1|        mIds["default_params"] = ID_DEFAULT_PARAMS;
  971|      1|        mIds["param_indexed"] = ID_PARAM_INDEXED;
  972|      1|        mIds["param_named"] = ID_PARAM_NAMED;
  973|      1|        mIds["param_indexed_auto"] = ID_PARAM_INDEXED_AUTO;
  974|      1|        mIds["param_named_auto"] = ID_PARAM_NAMED_AUTO;
  975|       |
  976|      1|        mIds["scheme"] = ID_SCHEME;
  977|      1|        mIds["lod_index"] = ID_LOD_INDEX;
  978|      1|        mIds["shadow_caster_material"] = ID_SHADOW_CASTER_MATERIAL;
  979|      1|        mIds["shadow_receiver_material"] = ID_SHADOW_RECEIVER_MATERIAL;
  980|      1|        mIds["gpu_vendor_rule"] = ID_GPU_VENDOR_RULE;
  981|      1|        mIds["gpu_device_rule"] = ID_GPU_DEVICE_RULE;
  982|      1|        mIds["include"] = ID_INCLUDE;
  983|      1|        mIds["exclude"] = ID_EXCLUDE;
  984|       |
  985|      1|        mIds["ambient"] = ID_AMBIENT;
  986|      1|        mIds["diffuse"] = ID_DIFFUSE;
  987|      1|        mIds["specular"] = ID_SPECULAR;
  988|      1|        mIds["emissive"] = ID_EMISSIVE;
  989|      1|        mIds["vertexcolour"] = ID_VERTEXCOLOUR;
  990|      1|        mIds["scene_blend"] = ID_SCENE_BLEND;
  991|      1|        mIds["colour_blend"] = ID_COLOUR_BLEND;
  992|      1|        mIds["one"] = ID_ONE;
  993|      1|        mIds["zero"] = ID_ZERO;
  994|      1|        mIds["dest_colour"] = ID_DEST_COLOUR;
  995|      1|        mIds["src_colour"] = ID_SRC_COLOUR;
  996|      1|        mIds["one_minus_src_colour"] = ID_ONE_MINUS_SRC_COLOUR;
  997|      1|        mIds["one_minus_dest_colour"] = ID_ONE_MINUS_DEST_COLOUR;
  998|      1|        mIds["dest_alpha"] = ID_DEST_ALPHA;
  999|      1|        mIds["src_alpha"] = ID_SRC_ALPHA;
 1000|      1|        mIds["one_minus_dest_alpha"] = ID_ONE_MINUS_DEST_ALPHA;
 1001|      1|        mIds["one_minus_src_alpha"] = ID_ONE_MINUS_SRC_ALPHA;
 1002|      1|        mIds["separate_scene_blend"] = ID_SEPARATE_SCENE_BLEND;
 1003|      1|        mIds["scene_blend_op"] = ID_SCENE_BLEND_OP;
 1004|      1|        mIds["reverse_subtract"] = ID_REVERSE_SUBTRACT;
 1005|      1|        mIds["min"] = ID_MIN;
 1006|      1|        mIds["max"] = ID_MAX;
 1007|      1|        mIds["separate_scene_blend_op"] = ID_SEPARATE_SCENE_BLEND_OP;
 1008|      1|        mIds["depth_check"] = ID_DEPTH_CHECK;
 1009|      1|        mIds["depth_write"] = ID_DEPTH_WRITE;
 1010|      1|        mIds["depth_func"] = ID_DEPTH_FUNC;
 1011|      1|        mIds["depth_bias"] = ID_DEPTH_BIAS;
 1012|      1|        mIds["iteration_depth_bias"] = ID_ITERATION_DEPTH_BIAS;
 1013|      1|        mIds["always_fail"] = ID_ALWAYS_FAIL;
 1014|      1|        mIds["always_pass"] = ID_ALWAYS_PASS;
 1015|      1|        mIds["less_equal"] = ID_LESS_EQUAL;
 1016|      1|        mIds["less"] = ID_LESS;
 1017|      1|        mIds["equal"] = ID_EQUAL;
 1018|      1|        mIds["not_equal"] = ID_NOT_EQUAL;
 1019|      1|        mIds["greater_equal"] = ID_GREATER_EQUAL;
 1020|      1|        mIds["greater"] = ID_GREATER;
 1021|      1|        mIds["alpha_rejection"] = ID_ALPHA_REJECTION;
 1022|      1|        mIds["alpha_to_coverage"] = ID_ALPHA_TO_COVERAGE;
 1023|      1|        mIds["light_scissor"] = ID_LIGHT_SCISSOR;
 1024|      1|        mIds["light_clip_planes"] = ID_LIGHT_CLIP_PLANES;
 1025|      1|        mIds["transparent_sorting"] = ID_TRANSPARENT_SORTING;
 1026|      1|        mIds["illumination_stage"] = ID_ILLUMINATION_STAGE;
 1027|      1|        mIds["decal"] = ID_DECAL;
 1028|      1|        mIds["cull_hardware"] = ID_CULL_HARDWARE;
 1029|      1|        mIds["clockwise"] = ID_CLOCKWISE;
 1030|      1|        mIds["anticlockwise"] = ID_ANTICLOCKWISE;
 1031|      1|        mIds["cull_software"] = ID_CULL_SOFTWARE;
 1032|      1|        mIds["back"] = ID_BACK;
 1033|      1|        mIds["front"] = ID_FRONT;
 1034|      1|        mIds["lighting"] = ID_LIGHTING;
 1035|      1|        mIds["shading"] = ID_SHADING;
 1036|      1|        mIds["flat"] = ID_FLAT;
 1037|      1|        mIds["gouraud"] = ID_GOURAUD;
 1038|      1|        mIds["phong"] = ID_PHONG;
 1039|      1|        mIds["polygon_mode"] = ID_POLYGON_MODE;
 1040|      1|        mIds["solid"] = ID_SOLID;
 1041|      1|        mIds["wireframe"] = ID_WIREFRAME;
 1042|      1|        mIds["points"] = ID_POINTS;
 1043|      1|        mIds["polygon_mode_overrideable"] = ID_POLYGON_MODE_OVERRIDEABLE;
 1044|      1|        mIds["fog_override"] = ID_FOG_OVERRIDE;
 1045|      1|        mIds["none"] = ID_NONE;
 1046|      1|        mIds["linear"] = ID_LINEAR;
 1047|      1|        mIds["exp"] = ID_EXP;
 1048|      1|        mIds["exp2"] = ID_EXP2;
 1049|      1|        mIds["colour_write"] = ID_COLOUR_WRITE;
 1050|      1|        mIds["max_lights"] = ID_MAX_LIGHTS;
 1051|      1|        mIds["start_light"] = ID_START_LIGHT;
 1052|      1|        mIds["iteration"] = ID_ITERATION;
 1053|      1|        mIds["once"] = ID_ONCE;
 1054|      1|        mIds["once_per_light"] = ID_ONCE_PER_LIGHT;
 1055|      1|        mIds["per_n_lights"] = ID_PER_N_LIGHTS;
 1056|      1|        mIds["per_light"] = ID_PER_LIGHT;
 1057|      1|        mIds["point"] = ID_POINT;
 1058|      1|        mIds["spot"] = ID_SPOT;
 1059|      1|        mIds["directional"] = ID_DIRECTIONAL;
 1060|      1|        mIds["light_mask"] = ID_LIGHT_MASK;
 1061|      1|        mIds["point_size"] = ID_POINT_SIZE;
 1062|      1|        mIds["point_sprites"] = ID_POINT_SPRITES;
 1063|      1|        mIds["point_size_min"] = ID_POINT_SIZE_MIN;
 1064|      1|        mIds["point_size_max"] = ID_POINT_SIZE_MAX;
 1065|      1|        mIds["point_size_attenuation"] = ID_POINT_SIZE_ATTENUATION;
 1066|       |
 1067|      1|        mIds["texture_alias"] = ID_TEXTURE_ALIAS;
 1068|      1|        mIds["texture"] = ID_TEXTURE;
 1069|      1|        mIds["1d"] = ID_1D;
 1070|      1|        mIds["2d"] = ID_2D;
 1071|      1|        mIds["3d"] = ID_3D;
 1072|      1|        mIds["cubic"] = ID_CUBIC;
 1073|      1|        mIds["unlimited"] = ID_UNLIMITED;
 1074|      1|        mIds["2darray"] = ID_2DARRAY; // deprecated and undocumented
 1075|      1|        mIds["2d_array"] = ID_2DARRAY;
 1076|      1|        mIds["2d_ms"] = ID_2DMS;
 1077|      1|        mIds["alpha"] = ID_ALPHA;
 1078|      1|        mIds["gamma"] = ID_GAMMA;
 1079|      1|        mIds["anim_texture"] = ID_ANIM_TEXTURE;
 1080|      1|        mIds["cubic_texture"] = ID_CUBIC_TEXTURE;
 1081|      1|        mIds["separateUV"] = ID_SEPARATE_UV;
 1082|      1|        mIds["combinedUVW"] = ID_COMBINED_UVW;
 1083|      1|        mIds["tex_coord_set"] = ID_TEX_COORD_SET;
 1084|      1|        mIds["tex_address_mode"] = ID_TEX_ADDRESS_MODE;
 1085|      1|        mIds["wrap"] = ID_WRAP;
 1086|      1|        mIds["clamp"] = ID_CLAMP;
 1087|      1|        mIds["mirror"] = ID_MIRROR;
 1088|      1|        mIds["border"] = ID_BORDER;
 1089|      1|        mIds["tex_border_colour"] = ID_TEX_BORDER_COLOUR;
 1090|      1|        mIds["filtering"] = ID_FILTERING;
 1091|      1|        mIds["bilinear"] = ID_BILINEAR;
 1092|      1|        mIds["trilinear"] = ID_TRILINEAR;
 1093|      1|        mIds["anisotropic"] = ID_ANISOTROPIC;
 1094|      1|        mIds["compare_test"] = ID_CMPTEST;
 1095|      1|        mIds["compare_func"] = ID_CMPFUNC;
 1096|      1|        mIds["max_anisotropy"] = ID_MAX_ANISOTROPY;
 1097|      1|        mIds["mipmap_bias"] = ID_MIPMAP_BIAS;
 1098|      1|        mIds["colour_op"] = ID_COLOUR_OP;
 1099|      1|        mIds["replace"] = ID_REPLACE;
 1100|      1|        mIds["add"] = ID_ADD;
 1101|      1|        mIds["modulate"] = ID_MODULATE;
 1102|      1|        mIds["alpha_blend"] = ID_ALPHA_BLEND;
 1103|      1|        mIds["colour_op_ex"] = ID_COLOUR_OP_EX;
 1104|      1|        mIds["source1"] = ID_SOURCE1;
 1105|      1|        mIds["source2"] = ID_SOURCE2;
 1106|      1|        mIds["modulate"] = ID_MODULATE;
 1107|      1|        mIds["modulate_x2"] = ID_MODULATE_X2;
 1108|      1|        mIds["modulate_x4"] = ID_MODULATE_X4;
 1109|      1|        mIds["add"] = ID_ADD;
 1110|      1|        mIds["add_signed"] = ID_ADD_SIGNED;
 1111|      1|        mIds["add_smooth"] = ID_ADD_SMOOTH;
 1112|      1|        mIds["subtract"] = ID_SUBTRACT;
 1113|      1|        mIds["blend_diffuse_alpha"] = ID_BLEND_DIFFUSE_ALPHA;
 1114|      1|        mIds["blend_texture_alpha"] = ID_BLEND_TEXTURE_ALPHA;
 1115|      1|        mIds["blend_current_alpha"] = ID_BLEND_CURRENT_ALPHA;
 1116|      1|        mIds["blend_manual"] = ID_BLEND_MANUAL;
 1117|      1|        mIds["dotproduct"] = ID_DOT_PRODUCT;
 1118|      1|        mIds["blend_diffuse_colour"] = ID_BLEND_DIFFUSE_COLOUR;
 1119|      1|        mIds["src_current"] = ID_SRC_CURRENT;
 1120|      1|        mIds["src_texture"] = ID_SRC_TEXTURE;
 1121|      1|        mIds["src_diffuse"] = ID_SRC_DIFFUSE;
 1122|      1|        mIds["src_specular"] = ID_SRC_SPECULAR;
 1123|      1|        mIds["src_manual"] = ID_SRC_MANUAL;
 1124|      1|        mIds["colour_op_multipass_fallback"] = ID_COLOUR_OP_MULTIPASS_FALLBACK;
 1125|      1|        mIds["alpha_op_ex"] = ID_ALPHA_OP_EX;
 1126|      1|        mIds["env_map"] = ID_ENV_MAP;
 1127|      1|        mIds["spherical"] = ID_SPHERICAL;
 1128|      1|        mIds["planar"] = ID_PLANAR;
 1129|      1|        mIds["cubic_reflection"] = ID_CUBIC_REFLECTION;
 1130|      1|        mIds["cubic_normal"] = ID_CUBIC_NORMAL;
 1131|      1|        mIds["scroll"] = ID_SCROLL;
 1132|      1|        mIds["scroll_anim"] = ID_SCROLL_ANIM;
 1133|      1|        mIds["rotate"] = ID_ROTATE;
 1134|      1|        mIds["rotate_anim"] = ID_ROTATE_ANIM;
 1135|      1|        mIds["scale"] = ID_SCALE;
 1136|      1|        mIds["wave_xform"] = ID_WAVE_XFORM;
 1137|      1|        mIds["scroll_x"] = ID_SCROLL_X;
 1138|      1|        mIds["scroll_y"] = ID_SCROLL_Y;
 1139|      1|        mIds["scale_x"] = ID_SCALE_X;
 1140|      1|        mIds["scale_y"] = ID_SCALE_Y;
 1141|      1|        mIds["sine"] = ID_SINE;
 1142|      1|        mIds["triangle"] = ID_TRIANGLE;
 1143|      1|        mIds["sawtooth"] = ID_SAWTOOTH;
 1144|      1|        mIds["square"] = ID_SQUARE;
 1145|      1|        mIds["inverse_sawtooth"] = ID_INVERSE_SAWTOOTH;
 1146|      1|        mIds["transform"] = ID_TRANSFORM;
 1147|      1|        mIds["geometry"] = ID_GEOMETRY;
 1148|      1|        mIds["tessellation_hull"] = ID_TESSELLATION_HULL;
 1149|      1|        mIds["tessellation_domain"] = ID_TESSELLATION_DOMAIN;
 1150|      1|        mIds["compute"] = ID_COMPUTE;
 1151|      1|        mIds["content_type"] = ID_CONTENT_TYPE;
 1152|      1|        mIds["named"] = ID_NAMED;
 1153|      1|        mIds["shadow"] = ID_SHADOW;
 1154|      1|        mIds["texture_source"] = ID_TEXTURE_SOURCE;
 1155|      1|        mIds["shared_params"] = ID_SHARED_PARAMS;
 1156|      1|        mIds["shared_param_named"] = ID_SHARED_PARAM_NAMED;
 1157|      1|        mIds["shared_params_ref"] = ID_SHARED_PARAMS_REF;
 1158|      1|        mIds["use_linear_colours"] = ID_USE_LINEAR_COLOURS;
 1159|       |
 1160|       |        // Particle system
 1161|      1|        mIds["particle_system"] = ID_PARTICLE_SYSTEM;
 1162|      1|        mIds["emitter"] = ID_EMITTER;
 1163|      1|        mIds["affector"] = ID_AFFECTOR;
 1164|       |
 1165|       |        // Compositor
 1166|      1|        mIds["compositor"] = ID_COMPOSITOR;
 1167|      1|        mIds["target"] = ID_TARGET;
 1168|      1|        mIds["target_output"] = ID_TARGET_OUTPUT;
 1169|       |
 1170|      1|        mIds["input"] = ID_INPUT;
 1171|       |        //mIds["none"] = ID_NONE; - already registered
 1172|      1|        mIds["previous"] = ID_PREVIOUS;
 1173|      1|        mIds["target_width"] = ID_TARGET_WIDTH;
 1174|      1|        mIds["target_height"] = ID_TARGET_HEIGHT;
 1175|      1|        mIds["target_width_scaled"] = ID_TARGET_WIDTH_SCALED;
 1176|      1|        mIds["target_height_scaled"] = ID_TARGET_HEIGHT_SCALED;
 1177|      1|        mIds["pooled"] = ID_POOLED;
 1178|       |        //mIds["gamma"] = ID_GAMMA; - already registered
 1179|      1|        mIds["no_fsaa"] = ID_NO_FSAA;
 1180|      1|        mIds["fsaa"] = ID_FSAA;
 1181|      1|        mIds["depth_pool"] = ID_DEPTH_POOL;
 1182|       |
 1183|      1|        mIds["texture_ref"] = ID_TEXTURE_REF;
 1184|      1|        mIds["local_scope"] = ID_SCOPE_LOCAL;
 1185|      1|        mIds["chain_scope"] = ID_SCOPE_CHAIN;
 1186|      1|        mIds["global_scope"] = ID_SCOPE_GLOBAL;
 1187|      1|        mIds["compositor_logic"] = ID_COMPOSITOR_LOGIC;
 1188|       |
 1189|      1|        mIds["only_initial"] = ID_ONLY_INITIAL;
 1190|      1|        mIds["visibility_mask"] = ID_VISIBILITY_MASK;
 1191|      1|        mIds["lod_bias"] = ID_LOD_BIAS;
 1192|      1|        mIds["material_scheme"] = ID_MATERIAL_SCHEME;
 1193|      1|        mIds["shadows"] = ID_SHADOWS_ENABLED;
 1194|       |
 1195|      1|        mIds["clear"] = ID_CLEAR;
 1196|      1|        mIds["stencil"] = ID_STENCIL;
 1197|      1|        mIds["render_scene"] = ID_RENDER_SCENE;
 1198|      1|        mIds["render_quad"] = ID_RENDER_QUAD;
 1199|      1|        mIds["identifier"] = ID_IDENTIFIER;
 1200|      1|        mIds["first_render_queue"] = ID_FIRST_RENDER_QUEUE;
 1201|      1|        mIds["last_render_queue"] = ID_LAST_RENDER_QUEUE;
 1202|      1|        mIds["quad_normals"] = ID_QUAD_NORMALS;
 1203|      1|        mIds["camera_far_corners_view_space"] = ID_CAMERA_FAR_CORNERS_VIEW_SPACE;
 1204|      1|        mIds["camera_far_corners_world_space"] = ID_CAMERA_FAR_CORNERS_WORLD_SPACE;
 1205|       |
 1206|      1|        mIds["buffers"] = ID_BUFFERS;
 1207|      1|        mIds["colour"] = ID_COLOUR;
 1208|      1|        mIds["depth"] = ID_DEPTH;
 1209|      1|        mIds["colour_value"] = ID_COLOUR_VALUE;
 1210|      1|        mIds["depth_value"] = ID_DEPTH_VALUE;
 1211|      1|        mIds["stencil_value"] = ID_STENCIL_VALUE;
 1212|       |
 1213|      1|        mIds["check"] = ID_CHECK;
 1214|      1|        mIds["comp_func"] = ID_COMP_FUNC;
 1215|      1|        mIds["ref_value"] = ID_REF_VALUE;
 1216|      1|        mIds["mask"] = ID_MASK;
 1217|      1|        mIds["fail_op"] = ID_FAIL_OP;
 1218|      1|        mIds["keep"] = ID_KEEP;
 1219|      1|        mIds["increment"] = ID_INCREMENT;
 1220|      1|        mIds["decrement"] = ID_DECREMENT;
 1221|      1|        mIds["increment_wrap"] = ID_INCREMENT_WRAP;
 1222|      1|        mIds["decrement_wrap"] = ID_DECREMENT_WRAP;
 1223|      1|        mIds["invert"] = ID_INVERT;
 1224|      1|        mIds["depth_fail_op"] = ID_DEPTH_FAIL_OP;
 1225|      1|        mIds["pass_op"] = ID_PASS_OP;
 1226|      1|        mIds["two_sided"] = ID_TWO_SIDED;
 1227|       |
 1228|      1|        mIds["line_width"] = ID_LINE_WIDTH;
 1229|      1|        mIds["sampler"] = ID_SAMPLER;
 1230|      1|        mIds["sampler_ref"] = ID_SAMPLER_REF;
 1231|      1|        mIds["thread_groups"] = ID_THREAD_GROUPS;
 1232|      1|        mIds["render_custom"] = ID_RENDER_CUSTOM;
 1233|      1|        mIds["auto"] = ID_AUTO;
 1234|      1|        mIds["camera"] = ID_CAMERA;
 1235|      1|        mIds["align_to_face"] = ID_ALIGN_TO_FACE;
 1236|      1|        mIds["unordered_access_mip"] = ID_UNORDERED_ACCESS_MIP;
 1237|       |
 1238|      1|		mLargestRegisteredWordId = ID_END_BUILTIN_IDS;
 1239|      1|	}
_ZN4Ogre14ScriptCompiler19AbstractTreeBuilderC2EPS0_:
 1258|  53.3k|        :mNodes(std::make_shared<AbstractNodeList>()), mCurrent(0), mCompiler(compiler)
 1259|  53.3k|    {
 1260|  53.3k|    }
_ZNK4Ogre14ScriptCompiler19AbstractTreeBuilder9getResultEv:
 1263|  53.3k|    {
 1264|  53.3k|        return mNodes;
 1265|  53.3k|    }
_ZN4Ogre14ScriptCompiler19AbstractTreeBuilder5visitEPNS_12ConcreteNodeE:
 1268|  2.26M|    {
 1269|  2.26M|        AbstractNodePtr asn;
 1270|       |
 1271|       |        // Import = "import" >> 2 children, mCurrent == null
 1272|  2.26M|        if(node->type == CNT_IMPORT && mCurrent == 0)
  ------------------
  |  Branch (1272:12): [True: 140, False: 2.26M]
  |  Branch (1272:40): [True: 75, False: 65]
  ------------------
 1273|     75|        {
 1274|     75|            if(node->children.size() > 2)
  ------------------
  |  Branch (1274:16): [True: 0, False: 75]
  ------------------
 1275|      0|            {
 1276|      0|                mCompiler->addError(CE_FEWERPARAMETERSEXPECTED, node->file, node->line);
 1277|      0|                return;
 1278|      0|            }
 1279|     75|            if(node->children.size() < 2)
  ------------------
  |  Branch (1279:16): [True: 0, False: 75]
  ------------------
 1280|      0|            {
 1281|      0|                mCompiler->addError(CE_STRINGEXPECTED, node->file, node->line);
 1282|      0|                return;
 1283|      0|            }
 1284|       |
 1285|     75|            ImportAbstractNode *impl = OGRE_NEW ImportAbstractNode();
 1286|     75|            impl->line = node->line;
 1287|     75|            impl->file = node->file;
 1288|       |
 1289|     75|            ConcreteNodeList::iterator iter = node->children.begin();
 1290|     75|            impl->target = (*iter)->token;
 1291|       |
 1292|     75|            iter++;
 1293|     75|            impl->source = (*iter)->token;
 1294|       |
 1295|     75|            asn = AbstractNodePtr(impl);
 1296|     75|        }
 1297|       |        // variable set = "set" >> 2 children, children[0] == variable
 1298|  2.26M|        else if(node->type == CNT_VARIABLE_ASSIGN)
  ------------------
  |  Branch (1298:17): [True: 231, False: 2.26M]
  ------------------
 1299|    231|        {
 1300|    231|            if(node->children.size() > 2)
  ------------------
  |  Branch (1300:16): [True: 0, False: 231]
  ------------------
 1301|      0|            {
 1302|      0|                mCompiler->addError(CE_FEWERPARAMETERSEXPECTED, node->file, node->line);
 1303|      0|                return;
 1304|      0|            }
 1305|    231|            if(node->children.size() < 2)
  ------------------
  |  Branch (1305:16): [True: 0, False: 231]
  ------------------
 1306|      0|            {
 1307|      0|                mCompiler->addError(CE_STRINGEXPECTED, node->file, node->line);
 1308|      0|                return;
 1309|      0|            }
 1310|    231|            if(node->children.front()->type != CNT_VARIABLE)
  ------------------
  |  Branch (1310:16): [True: 0, False: 231]
  ------------------
 1311|      0|            {
 1312|      0|                mCompiler->addError(CE_VARIABLEEXPECTED, node->children.front()->file, node->children.front()->line);
 1313|      0|                return;
 1314|      0|            }
 1315|       |
 1316|    231|            ConcreteNodeList::iterator i = node->children.begin();
 1317|    231|            String name = (*i)->token;
 1318|       |
 1319|    231|            ++i;
 1320|    231|            String value = (*i)->token;
 1321|       |
 1322|    231|            if(mCurrent && mCurrent->type == ANT_OBJECT)
  ------------------
  |  Branch (1322:16): [True: 182, False: 49]
  |  Branch (1322:28): [True: 150, False: 32]
  ------------------
 1323|    150|            {
 1324|    150|                ObjectAbstractNode *ptr = (ObjectAbstractNode*)mCurrent;
 1325|    150|                ptr->setVariable(name, value);
 1326|    150|            }
 1327|     81|            else
 1328|     81|            {
 1329|     81|                mCompiler->mEnv.insert(std::make_pair(name, value));
 1330|     81|            }
 1331|    231|        }
 1332|       |        // variable = $*, no children
 1333|  2.26M|        else if(node->type == CNT_VARIABLE)
  ------------------
  |  Branch (1333:17): [True: 580k, False: 1.68M]
  ------------------
 1334|   580k|        {
 1335|   580k|            if(!node->children.empty())
  ------------------
  |  Branch (1335:16): [True: 0, False: 580k]
  ------------------
 1336|      0|            {
 1337|      0|                mCompiler->addError(CE_FEWERPARAMETERSEXPECTED, node->file, node->line);
 1338|      0|                return;
 1339|      0|            }
 1340|       |
 1341|   580k|            VariableAccessAbstractNode *impl = OGRE_NEW VariableAccessAbstractNode(mCurrent);
 1342|   580k|            impl->line = node->line;
 1343|   580k|            impl->file = node->file;
 1344|   580k|            impl->name = node->token;
 1345|       |
 1346|   580k|            asn = AbstractNodePtr(impl);
 1347|   580k|        }
 1348|       |        // Handle properties and objects here
 1349|  1.68M|        else if(!node->children.empty())
  ------------------
  |  Branch (1349:17): [True: 42.4k, False: 1.63M]
  ------------------
 1350|  42.4k|        {
 1351|       |            // Grab the last two nodes
 1352|  42.4k|            ConcreteNodePtr temp1, temp2;
 1353|  42.4k|            ConcreteNodeList::reverse_iterator riter = node->children.rbegin();
 1354|  42.4k|            if(riter != node->children.rend())
  ------------------
  |  Branch (1354:16): [True: 42.4k, False: 0]
  ------------------
 1355|  42.4k|            {
 1356|  42.4k|                temp1 = *riter;
 1357|  42.4k|                riter++;
 1358|  42.4k|            }
 1359|  42.4k|            if(riter != node->children.rend())
  ------------------
  |  Branch (1359:16): [True: 30.0k, False: 12.4k]
  ------------------
 1360|  30.0k|                temp2 = *riter;
 1361|       |
 1362|       |            // object = last 2 children == { and }
 1363|  42.4k|            if(temp1 && temp2 &&
  ------------------
  |  Branch (1363:16): [True: 42.4k, False: 0]
  |  Branch (1363:25): [True: 30.0k, False: 12.4k]
  ------------------
 1364|  30.0k|                temp1->type == CNT_RBRACE && temp2->type == CNT_LBRACE)
  ------------------
  |  Branch (1364:17): [True: 17.5k, False: 12.4k]
  |  Branch (1364:46): [True: 17.5k, False: 0]
  ------------------
 1365|  17.5k|            {
 1366|  17.5k|                if(node->children.size() < 2)
  ------------------
  |  Branch (1366:20): [True: 0, False: 17.5k]
  ------------------
 1367|      0|                {
 1368|      0|                    mCompiler->addError(CE_STRINGEXPECTED, node->file, node->line);
 1369|      0|                    return;
 1370|      0|                }
 1371|       |
 1372|  17.5k|                ObjectAbstractNode *impl = OGRE_NEW ObjectAbstractNode(mCurrent);
 1373|  17.5k|                impl->line = node->line;
 1374|  17.5k|                impl->file = node->file;
 1375|  17.5k|                impl->abstract = false;
 1376|       |
 1377|       |                // Create a temporary detail list
 1378|  17.5k|                std::list<ConcreteNode*> temp;
 1379|  17.5k|                if(node->token == "abstract")
  ------------------
  |  Branch (1379:20): [True: 16, False: 17.5k]
  ------------------
 1380|     16|                {
 1381|     16|                    impl->abstract = true;
 1382|     16|                    for(const auto& c : node->children)
  ------------------
  |  Branch (1382:39): [True: 63, False: 16]
  ------------------
 1383|     63|                        temp.push_back(c.get());
 1384|     16|                }
 1385|  17.5k|                else
 1386|  17.5k|                {
 1387|  17.5k|                    temp.push_back(node);
 1388|  17.5k|                    for(const auto& c : node->children)
  ------------------
  |  Branch (1388:39): [True: 66.5k, False: 17.5k]
  ------------------
 1389|  66.5k|                        temp.push_back(c.get());
 1390|  17.5k|                }
 1391|       |
 1392|       |                // Get the type of object
 1393|  17.5k|                std::list<ConcreteNode*>::const_iterator iter = temp.begin();
 1394|  17.5k|                impl->cls = (*iter)->token;
 1395|  17.5k|                ++iter;
 1396|       |
 1397|       |                // try to map the cls to an id
 1398|  17.5k|                ScriptCompiler::IdMap::const_iterator iter2 = mCompiler->mIds.find(impl->cls);
 1399|  17.5k|                if(iter2 != mCompiler->mIds.end())
  ------------------
  |  Branch (1399:20): [True: 9.83k, False: 7.72k]
  ------------------
 1400|  9.83k|                {
 1401|  9.83k|                    impl->id = iter2->second;
 1402|  9.83k|                }
 1403|  7.72k|                else
 1404|  7.72k|                {
 1405|  7.72k|                    mCompiler->addError(CE_UNEXPECTEDTOKEN, impl->file, impl->line,
 1406|  7.72k|                                        "'" + impl->cls + "'. If this is a legacy script you must prepend the type (e.g. font, overlay).");
 1407|  7.72k|                }
 1408|       |
 1409|       |                // Get the name
 1410|       |                // Unless the type is in the exclusion list
 1411|  17.5k|                if(iter != temp.end() && ((*iter)->type == CNT_WORD || (*iter)->type == CNT_QUOTE || (*iter)->type == CNT_VARIABLE) &&
  ------------------
  |  Branch (1411:20): [True: 17.5k, False: 0]
  |  Branch (1411:20): [True: 10.2k, False: 7.32k]
  |  Branch (1411:43): [True: 10.3k, False: 7.17k]
  |  Branch (1411:72): [True: 23, False: 7.15k]
  |  Branch (1411:102): [True: 12, False: 7.14k]
  ------------------
 1412|  10.4k|                    !mCompiler->isNameExcluded(*impl, mCurrent))
  ------------------
  |  Branch (1412:21): [True: 10.2k, False: 184]
  ------------------
 1413|  10.2k|                {
 1414|  10.2k|                    impl->name = (*iter)->token;
 1415|  10.2k|                    ++iter;
 1416|  10.2k|                }
 1417|       |
 1418|       |                // Everything up until the colon is a "value" of this object
 1419|  35.2k|                while(iter != temp.end() && (*iter)->type != CNT_COLON && (*iter)->type != CNT_LBRACE)
  ------------------
  |  Branch (1419:23): [True: 35.2k, False: 0]
  |  Branch (1419:23): [True: 17.7k, False: 17.5k]
  |  Branch (1419:45): [True: 32.0k, False: 3.28k]
  |  Branch (1419:75): [True: 17.7k, False: 14.2k]
  ------------------
 1420|  17.7k|                {
 1421|  17.7k|                    if((*iter)->type == CNT_VARIABLE)
  ------------------
  |  Branch (1421:24): [True: 3.12k, False: 14.6k]
  ------------------
 1422|  3.12k|                    {
 1423|  3.12k|                        VariableAccessAbstractNode *var = OGRE_NEW VariableAccessAbstractNode(impl);
 1424|  3.12k|                        var->file = (*iter)->file;
 1425|  3.12k|                        var->line = (*iter)->line;
 1426|  3.12k|                        var->type = ANT_VARIABLE_ACCESS;
 1427|  3.12k|                        var->name = (*iter)->token;
 1428|  3.12k|                        impl->values.push_back(AbstractNodePtr(var));
 1429|  3.12k|                    }
 1430|  14.6k|                    else
 1431|  14.6k|                    {
 1432|  14.6k|                        AtomAbstractNode *atom = OGRE_NEW AtomAbstractNode(impl);
 1433|  14.6k|                        atom->file = (*iter)->file;
 1434|  14.6k|                        atom->line = (*iter)->line;
 1435|  14.6k|                        atom->type = ANT_ATOM;
 1436|  14.6k|                        atom->value = (*iter)->token;
 1437|       |
 1438|  14.6k|                        auto idpos = mCompiler->mIds.find(atom->value);
 1439|  14.6k|                        if(idpos != mCompiler->mIds.end())
  ------------------
  |  Branch (1439:28): [True: 506, False: 14.1k]
  ------------------
 1440|    506|                            atom->id = idpos->second;
 1441|       |
 1442|  14.6k|                        impl->values.push_back(AbstractNodePtr(atom));
 1443|  14.6k|                    }
 1444|  17.7k|                    ++iter;
 1445|  17.7k|                }
 1446|       |
 1447|       |                // Find the bases
 1448|  17.5k|                if(iter != temp.end() && (*iter)->type == CNT_COLON)
  ------------------
  |  Branch (1448:20): [True: 17.5k, False: 0]
  |  Branch (1448:20): [True: 3.28k, False: 14.2k]
  |  Branch (1448:42): [True: 3.28k, False: 14.2k]
  ------------------
 1449|  3.28k|                {
 1450|       |                    // Children of the ':' are bases
 1451|  3.28k|                    for(auto & j : (*iter)->children)
  ------------------
  |  Branch (1451:34): [True: 7.31k, False: 3.28k]
  ------------------
 1452|  7.31k|                        impl->bases.push_back(j->token);
 1453|  3.28k|                    ++iter;
 1454|  3.28k|                }
 1455|       |
 1456|  17.5k|                asn = AbstractNodePtr(impl);
 1457|  17.5k|                mCurrent = impl;
 1458|       |
 1459|       |                // Visit the children of the {
 1460|  17.5k|                AbstractTreeBuilder::visit(this, temp2->children);
 1461|       |
 1462|       |                // Go back up the stack
 1463|  17.5k|                mCurrent = impl->parent;
 1464|  17.5k|            }
 1465|       |            // Otherwise, it is a property
 1466|  24.8k|            else
 1467|  24.8k|            {
 1468|  24.8k|                PropertyAbstractNode *impl = OGRE_NEW PropertyAbstractNode(mCurrent);
 1469|  24.8k|                impl->line = node->line;
 1470|  24.8k|                impl->file = node->file;
 1471|  24.8k|                impl->name = node->token;
 1472|       |
 1473|  24.8k|                ScriptCompiler::IdMap::const_iterator iter2 = mCompiler->mIds.find(impl->name);
 1474|  24.8k|                if(iter2 != mCompiler->mIds.end())
  ------------------
  |  Branch (1474:20): [True: 12.6k, False: 12.2k]
  ------------------
 1475|  12.6k|                    impl->id = iter2->second;
 1476|       |
 1477|  24.8k|                asn = AbstractNodePtr(impl);
 1478|  24.8k|                mCurrent = impl;
 1479|       |
 1480|       |                // Visit the children of the {
 1481|  24.8k|                AbstractTreeBuilder::visit(this, node->children);
 1482|       |
 1483|       |                // Go back up the stack
 1484|  24.8k|                mCurrent = impl->parent;
 1485|  24.8k|            }
 1486|  42.4k|        }
 1487|       |        // Otherwise, it is a standard atom
 1488|  1.63M|        else
 1489|  1.63M|        {
 1490|  1.63M|            AtomAbstractNode *impl = OGRE_NEW AtomAbstractNode(mCurrent);
 1491|  1.63M|            impl->line = node->line;
 1492|  1.63M|            impl->file = node->file;
 1493|  1.63M|            impl->value = node->token;
 1494|       |
 1495|  1.63M|            ScriptCompiler::IdMap::const_iterator iter2 = mCompiler->mIds.find(impl->value);
 1496|  1.63M|            if(iter2 != mCompiler->mIds.end())
  ------------------
  |  Branch (1496:16): [True: 24.3k, False: 1.61M]
  ------------------
 1497|  24.3k|                impl->id = iter2->second;
 1498|       |
 1499|  1.63M|            asn = AbstractNodePtr(impl);
 1500|       |
 1501|  1.63M|            if(mCurrent && mCurrent->type != ANT_PROPERTY)
  ------------------
  |  Branch (1501:16): [True: 254k, False: 1.38M]
  |  Branch (1501:28): [True: 3.83k, False: 251k]
  ------------------
 1502|  3.83k|            {
 1503|       |                // stray atom outside of a property is likely a property without a value
 1504|  3.83k|                mCompiler->addError(*impl, "missing property value");
 1505|  3.83k|            }
 1506|  1.63M|        }
 1507|       |
 1508|       |        // Here, we must insert the node into the tree
 1509|  2.26M|        if(asn)
  ------------------
  |  Branch (1509:12): [True: 2.26M, False: 231]
  ------------------
 1510|  2.26M|        {
 1511|  2.26M|            if(mCurrent)
  ------------------
  |  Branch (1511:16): [True: 309k, False: 1.95M]
  ------------------
 1512|   309k|            {
 1513|   309k|                if(mCurrent->type == ANT_PROPERTY)
  ------------------
  |  Branch (1513:20): [True: 269k, False: 40.2k]
  ------------------
 1514|   269k|                {
 1515|   269k|                    PropertyAbstractNode *impl = static_cast<PropertyAbstractNode*>(mCurrent);
 1516|   269k|                    impl->values.push_back(asn);
 1517|   269k|                }
 1518|  40.2k|                else
 1519|  40.2k|                {
 1520|  40.2k|                    ObjectAbstractNode *impl = static_cast<ObjectAbstractNode*>(mCurrent);
 1521|  40.2k|                    impl->children.push_back(asn);
 1522|  40.2k|                }
 1523|   309k|            }
 1524|  1.95M|            else
 1525|  1.95M|            {
 1526|  1.95M|                mNodes->push_back(asn);
 1527|  1.95M|            }
 1528|  2.26M|        }
 1529|  2.26M|    }
_ZN4Ogre14ScriptCompiler19AbstractTreeBuilder5visitEPS1_RKNSt3__14listINS_9SharedPtrINS_12ConcreteNodeEEENS3_9allocatorIS7_EEEE:
 1532|  95.8k|    {
 1533|  95.8k|        for(const auto & node : nodes)
  ------------------
  |  Branch (1533:31): [True: 2.26M, False: 95.8k]
  ------------------
 1534|  2.26M|            visitor->visit(node.get());
 1535|  95.8k|    }
_ZN4Ogre21ScriptCompilerManager12getSingletonEv:
 1547|   115k|    {
 1548|       |        assert( msSingleton );  return ( *msSingleton );
 1549|   115k|    }
_ZN4Ogre21ScriptCompilerManagerC2Ev:
 1552|      1|    {
 1553|      1|            OGRE_LOCK_AUTO_MUTEX;
 1554|      1|        mScriptPatterns.push_back("*.program");
 1555|      1|        mScriptPatterns.push_back("*.material");
 1556|      1|        mScriptPatterns.push_back("*.particle");
 1557|      1|        mScriptPatterns.push_back("*.compositor");
 1558|      1|        mScriptPatterns.push_back("*.os");
 1559|      1|        ResourceGroupManager::getSingleton()._registerScriptLoader(this);
 1560|       |
 1561|       |        mBuiltinTranslatorManager = OGRE_NEW BuiltinScriptTranslatorManager();
 1562|      1|        mManagers.push_back(mBuiltinTranslatorManager);
 1563|      1|    }
_ZN4Ogre21ScriptCompilerManager11setListenerEPNS_22ScriptCompilerListenerE:
 1571|      1|    {
 1572|      1|            OGRE_LOCK_AUTO_MUTEX;
 1573|      1|        mScriptCompiler.setListener(listener);
 1574|      1|    }
_ZN4Ogre21ScriptCompilerManager13getTranslatorERKNS_9SharedPtrINS_12AbstractNodeEEE:
 1607|   114k|    {
 1608|   114k|        ScriptTranslator *translator = 0;
 1609|   114k|        {
 1610|   114k|                    OGRE_LOCK_AUTO_MUTEX;
 1611|       |
 1612|       |            // Start looking from the back
 1613|   171k|            for(std::vector<ScriptTranslatorManager*>::reverse_iterator i = mManagers.rbegin(); i != mManagers.rend(); ++i)
  ------------------
  |  Branch (1613:97): [True: 114k, False: 56.4k]
  ------------------
 1614|   114k|            {
 1615|   114k|                translator = (*i)->getTranslator(node);
 1616|   114k|                if(translator != 0)
  ------------------
  |  Branch (1616:20): [True: 58.5k, False: 56.4k]
  ------------------
 1617|  58.5k|                    break;
 1618|   114k|            }
 1619|   114k|        }
 1620|   114k|        return translator;
 1621|   114k|	}
_ZNK4Ogre21ScriptCompilerManager15getLoadingOrderEv:
 1639|      1|    {
 1640|       |        /// Load relatively early, before most script loaders run
 1641|      1|        return 90.0f;
 1642|      1|    }
_ZN4Ogre21ScriptCompilerManager11parseScriptERNS_9SharedPtrINS_10DataStreamEEERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
 1645|    327|    {
 1646|    327|        ConcreteNodeListPtr nodes =
 1647|    327|            ScriptParser::parse(ScriptLexer::tokenize(stream->getAsString(), stream->getName()), stream->getName());
 1648|    327|        {
 1649|       |            // compile is not reentrant
 1650|    327|            OGRE_LOCK_AUTO_MUTEX;
 1651|    327|            mScriptCompiler.compile(nodes, groupName);
 1652|    327|        }
 1653|    327|    }

_ZN4Ogre11ScriptLexer8tokenizeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
   35|  53.3k|    {
   36|  53.3k|        String error;
   37|  53.3k|        ScriptTokenList ret = _tokenize(str, source.c_str(), error);
   38|       |
   39|  53.3k|        if (!error.empty())
  ------------------
  |  Branch (39:13): [True: 3.06k, False: 50.2k]
  ------------------
   40|  3.06k|            LogManager::getSingleton().logError("ScriptLexer - " + error);
   41|       |
   42|  53.3k|        return ret;
   43|  53.3k|    }
_ZN4Ogre11ScriptLexer9_tokenizeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKcRS7_:
   46|  53.3k|    {
   47|       |        // State enums
   48|  53.3k|        enum{ READY = 0, COMMENT, MULTICOMMENT, WORD, QUOTE, VAR, POSSIBLECOMMENT };
   49|       |
   50|       |        // Set up some constant characters of interest
   51|  53.3k|        const wchar_t varopener = '$', quote = '\"', slash = '/', backslash = '\\', openbrace = '{', closebrace = '}', colon = ':', star = '*', cr = '\r', lf = '\n';
   52|  53.3k|        char c = 0, lastc = 0;
   53|       |
   54|  53.3k|        String lexeme;
   55|  53.3k|        uint32 line = 1, state = READY, lastQuote = 0, firstOpenBrace = 0, braceLayer = 0;
   56|  53.3k|        ScriptTokenList tokens;
   57|       |
   58|       |        // Iterate over the input
   59|  53.3k|        for(char i : str)
  ------------------
  |  Branch (59:20): [True: 24.1M, False: 53.2k]
  ------------------
   60|  24.1M|        {
   61|  24.1M|            lastc = c;
   62|  24.1M|            c = i;
   63|       |
   64|  24.1M|            if(c == quote)
  ------------------
  |  Branch (64:16): [True: 29.0k, False: 24.1M]
  ------------------
   65|  29.0k|                lastQuote = line;
   66|       |            
   67|  24.1M|            if(state == READY || state == WORD || state == VAR)
  ------------------
  |  Branch (67:16): [True: 4.41M, False: 19.7M]
  |  Branch (67:34): [True: 11.4M, False: 8.33M]
  |  Branch (67:51): [True: 6.58M, False: 1.75M]
  ------------------
   68|  22.4M|            {
   69|  22.4M|                if(c == openbrace)
  ------------------
  |  Branch (69:20): [True: 37.1k, False: 22.4M]
  ------------------
   70|  37.1k|                {
   71|  37.1k|                    if(braceLayer == 0)
  ------------------
  |  Branch (71:24): [True: 3.48k, False: 33.6k]
  ------------------
   72|  3.48k|                        firstOpenBrace = line;
   73|       |
   74|  37.1k|                    if (braceLayer >= MAX_BRACE_LAYER)
  ------------------
  |  Branch (74:25): [True: 2, False: 37.1k]
  ------------------
   75|      2|                    {
   76|      2|                        error = StringUtil::format("too deeply nested open brackets '{' (max %u) at %s:%d",
   77|      2|                                                   MAX_BRACE_LAYER, source, line);
   78|      2|                        return tokens;
   79|      2|                    }
   80|       |
   81|  37.1k|                    braceLayer ++;
   82|  37.1k|                }
   83|  22.4M|                else if(c == closebrace)
  ------------------
  |  Branch (83:25): [True: 31.3k, False: 22.3M]
  ------------------
   84|  31.3k|                {
   85|  31.3k|                    if (braceLayer == 0)
  ------------------
  |  Branch (85:25): [True: 76, False: 31.2k]
  ------------------
   86|     76|                    {
   87|     76|                        error = StringUtil::format(
   88|     76|                            "no matching open bracket '{' found for close bracket '}' at %s:%d", source,
   89|     76|                            line);
   90|     76|                        return tokens;
   91|     76|                    }
   92|       |
   93|  31.2k|                    braceLayer --;
   94|  31.2k|                }
   95|  22.4M|            }
   96|       |            
   97|       |            
   98|  24.1M|            switch(state)
  ------------------
  |  Branch (98:20): [True: 24.1M, False: 0]
  ------------------
   99|  24.1M|            {
  100|  4.41M|            case READY:
  ------------------
  |  Branch (100:13): [True: 4.41M, False: 19.7M]
  ------------------
  101|  4.41M|                if(c == slash && lastc == slash)
  ------------------
  |  Branch (101:20): [True: 2.33k, False: 4.41M]
  |  Branch (101:34): [True: 0, False: 2.33k]
  ------------------
  102|      0|                {
  103|       |                    // Comment start, clear out the lexeme
  104|      0|                    lexeme = "";
  105|      0|                    state = COMMENT;
  106|      0|                }
  107|  4.41M|                else if(c == star && lastc == slash)
  ------------------
  |  Branch (107:25): [True: 3.21k, False: 4.41M]
  |  Branch (107:38): [True: 0, False: 3.21k]
  ------------------
  108|      0|                {
  109|      0|                    lexeme = "";
  110|      0|                    state = MULTICOMMENT;
  111|      0|                }
  112|  4.41M|                else if(c == quote)
  ------------------
  |  Branch (112:25): [True: 9.02k, False: 4.41M]
  ------------------
  113|  9.02k|                {
  114|       |                    // Clear out the lexeme ready to be filled with quotes!
  115|  9.02k|                    lexeme = c;
  116|  9.02k|                    state = QUOTE;
  117|  9.02k|                }
  118|  4.41M|                else if(c == varopener)
  ------------------
  |  Branch (118:25): [True: 585k, False: 3.82M]
  ------------------
  119|   585k|                {
  120|       |                    // Set up to read in a variable
  121|   585k|                    lexeme = c;
  122|   585k|                    state = VAR;
  123|   585k|                }
  124|  3.82M|                else if(isNewline(c))
  ------------------
  |  Branch (124:25): [True: 75.3k, False: 3.74M]
  ------------------
  125|  75.3k|                {
  126|  75.3k|                    lexeme = c;
  127|  75.3k|                    setToken(lexeme, line, tokens);
  128|  75.3k|                }
  129|  3.74M|                else if(!isWhitespace(c))
  ------------------
  |  Branch (129:25): [True: 1.72M, False: 2.02M]
  ------------------
  130|  1.72M|                {
  131|  1.72M|                    lexeme = c;
  132|  1.72M|                    if(c == slash)
  ------------------
  |  Branch (132:24): [True: 2.33k, False: 1.72M]
  ------------------
  133|  2.33k|                        state = POSSIBLECOMMENT;
  134|  1.72M|                    else
  135|  1.72M|                        state = WORD;
  136|  1.72M|                }
  137|  4.41M|                break;
  138|  63.0k|            case COMMENT:
  ------------------
  |  Branch (138:13): [True: 63.0k, False: 24.1M]
  ------------------
  139|  63.0k|                if(isNewline(c))
  ------------------
  |  Branch (139:20): [True: 1.45k, False: 61.5k]
  ------------------
  140|  1.45k|                {
  141|  1.45k|                    lexeme = c;
  142|  1.45k|                    setToken(lexeme, line, tokens);
  143|  1.45k|                    state = READY;
  144|  1.45k|                }
  145|  63.0k|                break;
  146|      0|            case MULTICOMMENT:
  ------------------
  |  Branch (146:13): [True: 0, False: 24.1M]
  ------------------
  147|      0|                if(c == slash && lastc == star)
  ------------------
  |  Branch (147:20): [True: 0, False: 0]
  |  Branch (147:34): [True: 0, False: 0]
  ------------------
  148|      0|                    state = READY;
  149|      0|                break;
  150|  2.33k|            case POSSIBLECOMMENT:
  ------------------
  |  Branch (150:13): [True: 2.33k, False: 24.1M]
  ------------------
  151|  2.33k|                if(c == slash && lastc == slash)
  ------------------
  |  Branch (151:20): [True: 1.45k, False: 874]
  |  Branch (151:34): [True: 1.45k, False: 0]
  ------------------
  152|  1.45k|                {
  153|  1.45k|                    lexeme = "";
  154|  1.45k|                    state = COMMENT;
  155|  1.45k|                    break;  
  156|  1.45k|                }
  157|    874|                else if(c == star && lastc == slash)
  ------------------
  |  Branch (157:25): [True: 0, False: 874]
  |  Branch (157:38): [True: 0, False: 0]
  ------------------
  158|      0|                {
  159|      0|                    lexeme = "";
  160|      0|                    state = MULTICOMMENT;
  161|      0|                    break;
  162|      0|                }
  163|    874|                else
  164|    874|                {
  165|    874|                    state = WORD;
  166|    874|                    OGRE_FALLTHROUGH;
  167|    874|                }
  168|  11.4M|            case WORD:
  ------------------
  |  Branch (168:13): [True: 11.4M, False: 12.7M]
  ------------------
  169|  11.4M|                if(isNewline(c))
  ------------------
  |  Branch (169:20): [True: 40.7k, False: 11.3M]
  ------------------
  170|  40.7k|                {
  171|  40.7k|                    setToken(lexeme, line, tokens);
  172|  40.7k|                    lexeme = c;
  173|  40.7k|                    setToken(lexeme, line, tokens);
  174|  40.7k|                    state = READY;
  175|  40.7k|                }
  176|  11.3M|                else if(isWhitespace(c))
  ------------------
  |  Branch (176:25): [True: 1.59M, False: 9.80M]
  ------------------
  177|  1.59M|                {
  178|  1.59M|                    setToken(lexeme, line, tokens);
  179|  1.59M|                    state = READY;
  180|  1.59M|                }
  181|  9.80M|                else if(c == openbrace || c == closebrace || c == colon)
  ------------------
  |  Branch (181:25): [True: 13.3k, False: 9.79M]
  |  Branch (181:43): [True: 19.1k, False: 9.77M]
  |  Branch (181:62): [True: 1.23k, False: 9.77M]
  ------------------
  182|  33.7k|                {
  183|  33.7k|                    setToken(lexeme, line, tokens);
  184|  33.7k|                    lexeme = c;
  185|  33.7k|                    setToken(lexeme, line, tokens);
  186|  33.7k|                    state = READY;
  187|  33.7k|                }
  188|  9.77M|                else
  189|  9.77M|                {
  190|  9.77M|                    lexeme += c;
  191|  9.77M|                }
  192|  11.4M|                break;
  193|  1.68M|            case QUOTE:
  ------------------
  |  Branch (193:13): [True: 1.68M, False: 22.5M]
  ------------------
  194|  1.68M|                if(c != backslash)
  ------------------
  |  Branch (194:20): [True: 1.68M, False: 498]
  ------------------
  195|  1.68M|                {
  196|       |                    // Allow embedded quotes with escaping
  197|  1.68M|                    if(c == quote && lastc == backslash)
  ------------------
  |  Branch (197:24): [True: 9.05k, False: 1.67M]
  |  Branch (197:38): [True: 31, False: 9.02k]
  ------------------
  198|     31|                    {
  199|     31|                        lexeme += c;
  200|     31|                    }
  201|  1.68M|                    else if(c == quote)
  ------------------
  |  Branch (201:29): [True: 9.02k, False: 1.67M]
  ------------------
  202|  9.02k|                    {
  203|  9.02k|                        lexeme += c;
  204|  9.02k|                        setToken(lexeme, line, tokens);
  205|  9.02k|                        state = READY;
  206|  9.02k|                    }
  207|  1.67M|                    else
  208|  1.67M|                    {
  209|       |                        // Backtrack here and allow a backslash normally within the quote
  210|  1.67M|                        if(lastc == backslash)
  ------------------
  |  Branch (210:28): [True: 467, False: 1.67M]
  ------------------
  211|    467|                            lexeme = lexeme + "\\" + c;
  212|  1.67M|                        else
  213|  1.67M|                            lexeme += c;
  214|  1.67M|                    }
  215|  1.68M|                }
  216|  1.68M|                break;
  217|  6.58M|            case VAR:
  ------------------
  |  Branch (217:13): [True: 6.58M, False: 17.6M]
  ------------------
  218|  6.58M|                if(isNewline(c))
  ------------------
  |  Branch (218:20): [True: 609, False: 6.58M]
  ------------------
  219|    609|                {
  220|    609|                    setToken(lexeme, line, tokens);
  221|    609|                    lexeme = c;
  222|    609|                    setToken(lexeme, line, tokens);
  223|    609|                    state = READY;
  224|    609|                }
  225|  6.58M|                else if(isWhitespace(c))
  ------------------
  |  Branch (225:25): [True: 584k, False: 6.00M]
  ------------------
  226|   584k|                {
  227|   584k|                    setToken(lexeme, line, tokens);
  228|   584k|                    state = READY;
  229|   584k|                }
  230|  6.00M|                else if(c == openbrace || c == closebrace || c == colon)
  ------------------
  |  Branch (230:25): [True: 27, False: 6.00M]
  |  Branch (230:43): [True: 6, False: 6.00M]
  |  Branch (230:62): [True: 91, False: 6.00M]
  ------------------
  231|    124|                {
  232|    124|                    setToken(lexeme, line, tokens);
  233|    124|                    lexeme = c;
  234|    124|                    setToken(lexeme, line, tokens);
  235|    124|                    state = READY;
  236|    124|                }
  237|  6.00M|                else
  238|  6.00M|                {
  239|  6.00M|                    lexeme += c;
  240|  6.00M|                }
  241|  6.58M|                break;
  242|  24.1M|            }
  243|       |
  244|       |            // Separate check for newlines just to track line numbers
  245|  24.1M|            if(c == cr || (c == lf && lastc != cr))
  ------------------
  |  Branch (245:16): [True: 911, False: 24.1M]
  |  Branch (245:28): [True: 134k, False: 24.0M]
  |  Branch (245:39): [True: 134k, False: 101]
  ------------------
  246|   135k|                line++;
  247|  24.1M|        }
  248|       |
  249|       |        // Check for valid exit states
  250|  53.2k|        if(state == WORD || state == VAR)
  ------------------
  |  Branch (250:12): [True: 52.8k, False: 408]
  |  Branch (250:29): [True: 281, False: 127]
  ------------------
  251|  53.1k|        {
  252|  53.1k|            if(!lexeme.empty())
  ------------------
  |  Branch (252:16): [True: 53.1k, False: 0]
  ------------------
  253|  53.1k|                setToken(lexeme, line, tokens);
  254|  53.1k|        }
  255|    127|        else
  256|    127|        {
  257|    127|            if(state == QUOTE)
  ------------------
  |  Branch (257:16): [True: 7, False: 120]
  ------------------
  258|      7|            {
  259|      7|                error = StringUtil::format("no matching \" found for \" at %s:%d", source, lastQuote);
  260|      7|                return tokens;
  261|      7|            }
  262|    127|        }
  263|       |        
  264|       |        // Check that all opened brackets have been closed
  265|  53.2k|        if (braceLayer == 1)
  ------------------
  |  Branch (265:13): [True: 2.24k, False: 50.9k]
  ------------------
  266|  2.24k|        {
  267|  2.24k|            error = StringUtil::format("no matching closing bracket '}' for open bracket '{' at %s:%d",
  268|  2.24k|                                       source, firstOpenBrace);
  269|  2.24k|        }
  270|  50.9k|        else if (braceLayer > 1)
  ------------------
  |  Branch (270:18): [True: 735, False: 50.2k]
  ------------------
  271|    735|        {
  272|    735|            error = StringUtil::format(
  273|    735|                "too many open brackets (%d) '{' without matching closing bracket '}' in %s", braceLayer,
  274|    735|                source);
  275|    735|        }
  276|       |       
  277|  53.2k|        return tokens;
  278|  53.2k|    }
_ZN4Ogre11ScriptLexer8setTokenERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEjRNS1_6vectorINS_11ScriptTokenENS5_ISB_EEEE:
  281|  2.46M|    {
  282|  2.46M|        const char openBracket = '{', closeBracket = '}', colon = ':',
  283|  2.46M|            quote = '\"', var = '$';
  284|       |
  285|  2.46M|        ScriptToken token;
  286|  2.46M|        token.line = line;
  287|  2.46M|        bool ignore = false;
  288|       |
  289|       |        // Check the user token map first
  290|  2.46M|        if(lexeme.size() == 1 && isNewline(lexeme[0]))
  ------------------
  |  Branch (290:12): [True: 322k, False: 2.14M]
  |  Branch (290:34): [True: 118k, False: 204k]
  ------------------
  291|   118k|        {
  292|   118k|            token.type = TID_NEWLINE;
  293|   118k|            if(!tokens.empty() && tokens.back().type == TID_NEWLINE)
  ------------------
  |  Branch (293:16): [True: 118k, False: 70]
  |  Branch (293:35): [True: 71.5k, False: 46.4k]
  ------------------
  294|  71.5k|                ignore = true;
  295|   118k|        }
  296|  2.34M|        else if(lexeme.size() == 1 && lexeme[0] == openBracket)
  ------------------
  |  Branch (296:17): [True: 204k, False: 2.14M]
  |  Branch (296:39): [True: 30.1k, False: 174k]
  ------------------
  297|  30.1k|            token.type = TID_LBRACKET;
  298|  2.31M|        else if(lexeme.size() == 1 && lexeme[0] == closeBracket)
  ------------------
  |  Branch (298:17): [True: 174k, False: 2.14M]
  |  Branch (298:39): [True: 29.9k, False: 144k]
  ------------------
  299|  29.9k|            token.type = TID_RBRACKET;
  300|  2.28M|        else if(lexeme.size() == 1 && lexeme[0] == colon)
  ------------------
  |  Branch (300:17): [True: 144k, False: 2.14M]
  |  Branch (300:39): [True: 4.51k, False: 140k]
  ------------------
  301|  4.51k|            token.type = TID_COLON;
  302|  2.28M|        else
  303|  2.28M|        {
  304|  2.28M|            token.lexeme = lexeme;
  305|       |
  306|       |            // This is either a non-zero length phrase or quoted phrase
  307|  2.28M|            if(lexeme.size() >= 2 && lexeme[0] == quote && lexeme[lexeme.size() - 1] == quote)
  ------------------
  |  Branch (307:16): [True: 2.14M, False: 140k]
  |  Branch (307:38): [True: 9.02k, False: 2.13M]
  |  Branch (307:60): [True: 9.02k, False: 0]
  ------------------
  308|  9.02k|            {
  309|  9.02k|                token.type = TID_QUOTE;
  310|  9.02k|            }
  311|  2.27M|            else if(lexeme.size() > 1 && lexeme[0] == var)
  ------------------
  |  Branch (311:21): [True: 2.13M, False: 140k]
  |  Branch (311:42): [True: 584k, False: 1.55M]
  ------------------
  312|   584k|                token.type = TID_VARIABLE;
  313|  1.69M|            else
  314|  1.69M|            {
  315|  1.69M|                token.type = TID_WORD;
  316|  1.69M|            }
  317|  2.28M|        }
  318|       |
  319|  2.46M|        if(!ignore)
  ------------------
  |  Branch (319:12): [True: 2.39M, False: 71.5k]
  ------------------
  320|  2.39M|            tokens.push_back(token);
  321|  2.46M|    }
_ZN4Ogre11ScriptLexer12isWhitespaceEc:
  324|  21.7M|    {
  325|  21.7M|        return c == ' ' || c == '\r' || c == '\t';
  ------------------
  |  Branch (325:16): [True: 4.15M, False: 17.5M]
  |  Branch (325:28): [True: 0, False: 17.5M]
  |  Branch (325:41): [True: 52.0k, False: 17.5M]
  ------------------
  326|  21.7M|    }
_ZN4Ogre11ScriptLexer9isNewlineEc:
  329|  22.2M|    {
  330|  22.2M|        return c == '\n' || c == '\r';
  ------------------
  |  Branch (330:16): [True: 234k, False: 22.0M]
  |  Branch (330:29): [True: 1.74k, False: 22.0M]
  ------------------
  331|  22.2M|    }

_ZN4Ogre12ScriptParser5parseERKNSt3__16vectorINS_11ScriptTokenENS1_9allocatorIS3_EEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS4_IcEEEE:
   42|    327|    {
   43|    327|        auto nodes = std::make_shared<ConcreteNodeList>();
   44|       |
   45|    327|        enum{READY, OBJECT};
   46|    327|        uint32 state = READY;
   47|       |
   48|    327|        ConcreteNode *parent = 0;
   49|    327|        ConcreteNodePtr node;
   50|    327|        const ScriptToken *token = 0;
   51|    327|        ScriptTokenList::const_iterator i = tokens.begin(), end = tokens.end();
   52|   459k|        while(i != end)
  ------------------
  |  Branch (52:15): [True: 459k, False: 326]
  ------------------
   53|   459k|        {
   54|   459k|            token = &*i;
   55|       |
   56|   459k|            switch(state)
  ------------------
  |  Branch (56:20): [True: 459k, False: 0]
  ------------------
   57|   459k|            {
   58|   102k|            case READY:
  ------------------
  |  Branch (58:13): [True: 102k, False: 356k]
  ------------------
   59|   102k|                if(token->type == TID_WORD)
  ------------------
  |  Branch (59:20): [True: 55.9k, False: 46.0k]
  ------------------
   60|  55.9k|                {
   61|  55.9k|                    if(token->lexeme == "import")
  ------------------
  |  Branch (61:24): [True: 140, False: 55.8k]
  ------------------
   62|    140|                    {
   63|    140|                        node = std::make_shared<ConcreteNode>();
   64|    140|                        node->token = token->lexeme;
   65|    140|                        node->file = file;
   66|    140|                        node->line = token->line;
   67|    140|                        node->type = CNT_IMPORT;
   68|       |
   69|       |                        // The next token is the target
   70|    140|                        ++i;
   71|    140|                        if(i == end || (i->type != TID_WORD && i->type != TID_QUOTE))
  ------------------
  |  Branch (71:28): [True: 0, False: 140]
  |  Branch (71:41): [True: 2, False: 138]
  |  Branch (71:64): [True: 0, False: 2]
  ------------------
   72|    140|                            OGRE_EXCEPT(Exception::ERR_INVALID_STATE, 
   73|    140|                                Ogre::String("expected import target at line ") + 
   74|    140|                                    Ogre::StringConverter::toString(node->line),
   75|    140|                                "ScriptParser::parse");
   76|    140|                        ConcreteNodePtr temp(OGRE_NEW ConcreteNode());
   77|    140|                        temp->parent = node.get();
   78|    140|                        temp->file = file;
   79|    140|                        temp->line = i->line;
   80|    140|                        temp->type = i->type == TID_WORD ? CNT_WORD : CNT_QUOTE;
  ------------------
  |  Branch (80:38): [True: 138, False: 2]
  ------------------
   81|    140|                        temp->token = unquoted(i->lexeme, temp->type == CNT_QUOTE);
   82|    140|                        node->children.push_back(temp);
   83|       |
   84|       |                        // The next token must be "from"
   85|    140|                        ++i;
   86|    140|                        if (i == end || i->type != TID_WORD || i->lexeme != "from")
  ------------------
  |  Branch (86:29): [True: 0, False: 140]
  |  Branch (86:41): [True: 0, False: 140]
  |  Branch (86:64): [True: 0, False: 140]
  ------------------
   87|    140|                            OGRE_EXCEPT(Exception::ERR_INVALID_STATE,
   88|    140|                                        StringUtil::format("expected 'from' at line %d", node->line));
   89|       |                        // The token after "from" is the source
   90|    140|                        ++i;
   91|    140|                        if(i == end || (i->type != TID_WORD && i->type != TID_QUOTE))
  ------------------
  |  Branch (91:28): [True: 0, False: 140]
  |  Branch (91:41): [True: 93, False: 47]
  |  Branch (91:64): [True: 0, False: 93]
  ------------------
   92|    140|                            OGRE_EXCEPT(Exception::ERR_INVALID_STATE, 
   93|    140|                                Ogre::String("expected import source at line ") + 
   94|    140|                                    Ogre::StringConverter::toString(node->line),
   95|    140|                                "ScriptParser::parse");
   96|    140|                        temp = std::make_shared<ConcreteNode>();
   97|    140|                        temp->parent = node.get();
   98|    140|                        temp->file = file;
   99|    140|                        temp->line = i->line;
  100|    140|                        temp->type = i->type == TID_WORD ? CNT_WORD : CNT_QUOTE;
  ------------------
  |  Branch (100:38): [True: 47, False: 93]
  ------------------
  101|    140|                        temp->token = unquoted(i->lexeme, temp->type == CNT_QUOTE);
  102|    140|                        node->children.push_back(temp);
  103|       |
  104|       |                        // Consume all the newlines
  105|    140|                        i = skipNewlines(i, end);
  106|       |
  107|       |                        // Insert the node
  108|    140|                        if(parent)
  ------------------
  |  Branch (108:28): [True: 65, False: 75]
  ------------------
  109|     65|                        {
  110|     65|                            node->parent = parent;
  111|     65|                            parent->children.push_back(node);
  112|     65|                        }
  113|     75|                        else
  114|     75|                        {
  115|     75|                            node->parent = 0;
  116|     75|                            nodes->push_back(node);
  117|     75|                        }
  118|    140|                        node = ConcreteNodePtr();
  119|    140|                    }
  120|  55.8k|                    else if(token->lexeme == "set")
  ------------------
  |  Branch (120:29): [True: 231, False: 55.6k]
  ------------------
  121|    231|                    {
  122|    231|                        node = std::make_shared<ConcreteNode>();
  123|    231|                        node->token = token->lexeme;
  124|    231|                        node->file = file;
  125|    231|                        node->line = token->line;
  126|    231|                        node->type = CNT_VARIABLE_ASSIGN;
  127|       |
  128|       |                        // The next token is the variable
  129|    231|                        ++i;
  130|    231|                        if(i == end || i->type != TID_VARIABLE)
  ------------------
  |  Branch (130:28): [True: 0, False: 231]
  |  Branch (130:40): [True: 0, False: 231]
  ------------------
  131|    231|                            OGRE_EXCEPT(Exception::ERR_INVALID_STATE, 
  132|    231|                                Ogre::String("expected variable name at line ") + 
  133|    231|                                    Ogre::StringConverter::toString(node->line),
  134|    231|                                "ScriptParser::parse");
  135|    231|                        ConcreteNodePtr temp(OGRE_NEW ConcreteNode());
  136|    231|                        temp->parent = node.get();
  137|    231|                        temp->file = file;
  138|    231|                        temp->line = i->line;
  139|    231|                        temp->type = CNT_VARIABLE;
  140|    231|                        temp->token = i->lexeme;
  141|    231|                        node->children.push_back(temp);
  142|       |
  143|       |                        // The next token is the assignment
  144|    231|                        ++i;
  145|    231|                        if(i == end || (i->type != TID_WORD && i->type != TID_QUOTE))
  ------------------
  |  Branch (145:28): [True: 0, False: 231]
  |  Branch (145:41): [True: 35, False: 196]
  |  Branch (145:64): [True: 0, False: 35]
  ------------------
  146|    231|                            OGRE_EXCEPT(Exception::ERR_INVALID_STATE, 
  147|    231|                                Ogre::String("expected variable value at line ") + 
  148|    231|                                    Ogre::StringConverter::toString(node->line),
  149|    231|                                "ScriptParser::parse");
  150|    231|                        temp = std::make_shared<ConcreteNode>();
  151|    231|                        temp->parent = node.get();
  152|    231|                        temp->file = file;
  153|    231|                        temp->line = i->line;
  154|    231|                        temp->type = i->type == TID_WORD ? CNT_WORD : CNT_QUOTE;
  ------------------
  |  Branch (154:38): [True: 196, False: 35]
  ------------------
  155|    231|                        temp->token = unquoted(i->lexeme, temp->type == CNT_QUOTE);
  156|    231|                        node->children.push_back(temp);
  157|       |
  158|       |                        // Consume all the newlines
  159|    231|                        i = skipNewlines(i, end);
  160|       |
  161|       |                        // Insert the node
  162|    231|                        if(parent)
  ------------------
  |  Branch (162:28): [True: 182, False: 49]
  ------------------
  163|    182|                        {
  164|    182|                            node->parent = parent;
  165|    182|                            parent->children.push_back(node);
  166|    182|                        }
  167|     49|                        else
  168|     49|                        {
  169|     49|                            node->parent = 0;
  170|     49|                            nodes->push_back(node);
  171|     49|                        }
  172|    231|                        node = ConcreteNodePtr();
  173|    231|                    }
  174|  55.6k|                    else
  175|  55.6k|                    {
  176|  55.6k|                        node = std::make_shared<ConcreteNode>();
  177|  55.6k|                        node->file = file;
  178|  55.6k|                        node->line = token->line;
  179|  55.6k|                        node->type = token->type == TID_WORD ? CNT_WORD : CNT_QUOTE;
  ------------------
  |  Branch (179:38): [True: 55.6k, False: 0]
  ------------------
  180|  55.6k|                        node->token = unquoted(token->lexeme, node->type == CNT_QUOTE);
  181|       |
  182|       |                        // Insert the node
  183|  55.6k|                        if(parent)
  ------------------
  |  Branch (183:28): [True: 41.0k, False: 14.5k]
  ------------------
  184|  41.0k|                        {
  185|  41.0k|                            node->parent = parent;
  186|  41.0k|                            parent->children.push_back(node);
  187|  41.0k|                        }
  188|  14.5k|                        else
  189|  14.5k|                        {
  190|  14.5k|                            node->parent = 0;
  191|  14.5k|                            nodes->push_back(node);
  192|  14.5k|                        }
  193|       |
  194|       |                        // Set the parent
  195|  55.6k|                        parent = node.get();
  196|       |
  197|       |                        // Switch states
  198|  55.6k|                        state = OBJECT;
  199|       |
  200|  55.6k|                        node = ConcreteNodePtr();
  201|  55.6k|                    }
  202|  55.9k|                }
  203|  46.0k|                else if(token->type == TID_RBRACKET)
  ------------------
  |  Branch (203:25): [True: 16.6k, False: 29.4k]
  ------------------
  204|  16.6k|                {
  205|       |                    // Go up one level if we can
  206|  16.6k|                    if(parent)
  ------------------
  |  Branch (206:24): [True: 15.1k, False: 1.50k]
  ------------------
  207|  15.1k|                        parent = parent->parent;
  208|       |
  209|  16.6k|                    node = std::make_shared<ConcreteNode>();
  210|  16.6k|                    node->token = token->lexeme;
  211|  16.6k|                    node->file = file;
  212|  16.6k|                    node->line = token->line;
  213|  16.6k|                    node->type = CNT_RBRACE;
  214|       |
  215|       |                    // Consume all the newlines
  216|  16.6k|                    i = skipNewlines(i, end);
  217|       |
  218|       |                    // Insert the node
  219|  16.6k|                    if(parent)
  ------------------
  |  Branch (219:24): [True: 15.1k, False: 1.50k]
  ------------------
  220|  15.1k|                    {
  221|  15.1k|                        node->parent = parent;
  222|  15.1k|                        parent->children.push_back(node);
  223|  15.1k|                    }
  224|  1.50k|                    else
  225|  1.50k|                    {
  226|  1.50k|                        node->parent = 0;
  227|  1.50k|                        nodes->push_back(node);
  228|  1.50k|                    }
  229|       |
  230|       |                    // Move up another level
  231|  16.6k|                    if(parent)
  ------------------
  |  Branch (231:24): [True: 15.1k, False: 1.50k]
  ------------------
  232|  15.1k|                        parent = parent->parent;
  233|       |
  234|  16.6k|                    node = ConcreteNodePtr();
  235|  16.6k|                }
  236|   102k|                break;
  237|   356k|            case OBJECT:
  ------------------
  |  Branch (237:13): [True: 356k, False: 102k]
  ------------------
  238|   356k|                if(token->type == TID_NEWLINE)
  ------------------
  |  Branch (238:20): [True: 29.1k, False: 327k]
  ------------------
  239|  29.1k|                {
  240|       |                    // Look ahead to the next non-newline token and if it isn't an {, this was a property
  241|  29.1k|                    ScriptTokenList::const_iterator next = skipNewlines(i, end);
  242|  29.1k|                    if(next == end || next->type != TID_LBRACKET)
  ------------------
  |  Branch (242:24): [True: 4, False: 29.1k]
  |  Branch (242:39): [True: 23.8k, False: 5.30k]
  ------------------
  243|  23.8k|                    {
  244|       |                        // Ended a property here
  245|  23.8k|                        if(parent)
  ------------------
  |  Branch (245:28): [True: 23.8k, False: 0]
  ------------------
  246|  23.8k|                            parent = parent->parent;
  247|  23.8k|                        state = READY;
  248|  23.8k|                    }
  249|  29.1k|                }
  250|   327k|                else if(token->type == TID_COLON)
  ------------------
  |  Branch (250:25): [True: 4.50k, False: 323k]
  ------------------
  251|  4.50k|                {
  252|  4.50k|                    node = std::make_shared<ConcreteNode>();
  253|  4.50k|                    node->token = token->lexeme;
  254|  4.50k|                    node->file = file;
  255|  4.50k|                    node->line = token->line;
  256|  4.50k|                    node->type = CNT_COLON;
  257|       |
  258|       |                    // The following token are the parent objects (base classes).
  259|       |                    // Require at least one of them.
  260|       |
  261|  4.50k|                    ScriptTokenList::const_iterator j = i + 1;
  262|  4.50k|                    j = skipNewlines(j, end);
  263|  4.50k|                    if(j == end || (j->type != TID_WORD && j->type != TID_QUOTE)) {
  ------------------
  |  Branch (263:24): [True: 1, False: 4.50k]
  |  Branch (263:37): [True: 21, False: 4.48k]
  |  Branch (263:60): [True: 0, False: 21]
  ------------------
  264|      1|                        OGRE_EXCEPT(Exception::ERR_INVALID_STATE, 
  265|      1|                            Ogre::String("expected object identifier at line ") + 
  266|      1|                                    Ogre::StringConverter::toString(node->line),
  267|      1|                            "ScriptParser::parse");
  268|      1|                    }
  269|       |
  270|  14.7k|                    while(j != end && (j->type == TID_WORD || j->type == TID_QUOTE))
  ------------------
  |  Branch (270:27): [True: 14.7k, False: 3]
  |  Branch (270:40): [True: 10.2k, False: 4.52k]
  |  Branch (270:63): [True: 21, False: 4.50k]
  ------------------
  271|  10.2k|                    {
  272|  10.2k|                        ConcreteNodePtr tempNode = std::make_shared<ConcreteNode>();
  273|  10.2k|                        tempNode->token = j->lexeme;
  274|  10.2k|                        tempNode->file = file;
  275|  10.2k|                        tempNode->line = j->line;
  276|  10.2k|                        tempNode->type = j->type == TID_WORD ? CNT_WORD : CNT_QUOTE;
  ------------------
  |  Branch (276:42): [True: 10.2k, False: 21]
  ------------------
  277|  10.2k|                        tempNode->parent = node.get();
  278|  10.2k|                        node->children.push_back(tempNode);
  279|  10.2k|                        ++j;
  280|  10.2k|                    }
  281|       |
  282|       |                    // Move it backwards once, since the end of the loop moves it forwards again anyway
  283|  4.50k|                    i = --j;
  284|       |
  285|       |                    // Insert the node
  286|  4.50k|                    if(parent)
  ------------------
  |  Branch (286:24): [True: 4.50k, False: 0]
  ------------------
  287|  4.50k|                    {
  288|  4.50k|                        node->parent = parent;
  289|  4.50k|                        parent->children.push_back(node);
  290|  4.50k|                    }
  291|      0|                    else
  292|      0|                    {
  293|      0|                        node->parent = 0;
  294|      0|                        nodes->push_back(node);
  295|      0|                    }
  296|  4.50k|                    node = ConcreteNodePtr();
  297|  4.50k|                }
  298|   323k|                else if(token->type == TID_LBRACKET)
  ------------------
  |  Branch (298:25): [True: 18.2k, False: 305k]
  ------------------
  299|  18.2k|                {
  300|  18.2k|                    node = std::make_shared<ConcreteNode>();
  301|  18.2k|                    node->token = token->lexeme;
  302|  18.2k|                    node->file = file;
  303|  18.2k|                    node->line = token->line;
  304|  18.2k|                    node->type = CNT_LBRACE;
  305|       |
  306|       |                    // Consume all the newlines
  307|  18.2k|                    i = skipNewlines(i, end);
  308|       |
  309|       |                    // Insert the node
  310|  18.2k|                    if(parent)
  ------------------
  |  Branch (310:24): [True: 18.2k, False: 0]
  ------------------
  311|  18.2k|                    {
  312|  18.2k|                        node->parent = parent;
  313|  18.2k|                        parent->children.push_back(node);
  314|  18.2k|                    }
  315|      0|                    else
  316|      0|                    {
  317|      0|                        node->parent = 0;
  318|      0|                        nodes->push_back(node);
  319|      0|                    }
  320|       |
  321|       |                    // Set the parent
  322|  18.2k|                    parent = node.get();
  323|       |
  324|       |                    // Change the state
  325|  18.2k|                    state = READY;
  326|       |
  327|  18.2k|                    node = ConcreteNodePtr();
  328|  18.2k|                }
  329|   305k|                else if(token->type == TID_RBRACKET)
  ------------------
  |  Branch (329:25): [True: 13.3k, False: 291k]
  ------------------
  330|  13.3k|                {
  331|       |                    // Go up one level if we can
  332|  13.3k|                    if(parent)
  ------------------
  |  Branch (332:24): [True: 13.3k, False: 0]
  ------------------
  333|  13.3k|                        parent = parent->parent;
  334|       |
  335|       |                    // If the parent is currently a { then go up again
  336|  13.3k|                    if(parent && parent->type == CNT_LBRACE && parent->parent)
  ------------------
  |  Branch (336:24): [True: 2.45k, False: 10.9k]
  |  Branch (336:34): [True: 2.45k, False: 0]
  |  Branch (336:64): [True: 2.45k, False: 0]
  ------------------
  337|  2.45k|                        parent = parent->parent;
  338|       |
  339|  13.3k|                    node = std::make_shared<ConcreteNode>();
  340|  13.3k|                    node->token = token->lexeme;
  341|  13.3k|                    node->file = file;
  342|  13.3k|                    node->line = token->line;
  343|  13.3k|                    node->type = CNT_RBRACE;
  344|       |
  345|       |                    // Consume all the newlines
  346|  13.3k|                    i = skipNewlines(i, end);
  347|       |
  348|       |                    // Insert the node
  349|  13.3k|                    if(parent)
  ------------------
  |  Branch (349:24): [True: 2.45k, False: 10.9k]
  ------------------
  350|  2.45k|                    {
  351|  2.45k|                        node->parent = parent;
  352|  2.45k|                        parent->children.push_back(node);
  353|  2.45k|                    }
  354|  10.9k|                    else
  355|  10.9k|                    {
  356|  10.9k|                        node->parent = 0;
  357|  10.9k|                        nodes->push_back(node);
  358|  10.9k|                    }
  359|       |
  360|       |                    // Move up another level
  361|  13.3k|                    if(parent)
  ------------------
  |  Branch (361:24): [True: 2.45k, False: 10.9k]
  ------------------
  362|  2.45k|                        parent = parent->parent;
  363|       |
  364|  13.3k|                    node = ConcreteNodePtr();
  365|  13.3k|                    state = READY;
  366|  13.3k|                }
  367|   291k|                else if(token->type == TID_VARIABLE)
  ------------------
  |  Branch (367:25): [True: 18.5k, False: 273k]
  ------------------
  368|  18.5k|                {
  369|  18.5k|                    node = std::make_shared<ConcreteNode>();
  370|  18.5k|                    node->token = token->lexeme;
  371|  18.5k|                    node->file = file;
  372|  18.5k|                    node->line = token->line;
  373|  18.5k|                    node->type = CNT_VARIABLE;
  374|       |
  375|       |                    // Insert the node
  376|  18.5k|                    if(parent)
  ------------------
  |  Branch (376:24): [True: 18.5k, False: 0]
  ------------------
  377|  18.5k|                    {
  378|  18.5k|                        node->parent = parent;
  379|  18.5k|                        parent->children.push_back(node);
  380|  18.5k|                    }
  381|      0|                    else
  382|      0|                    {
  383|      0|                        node->parent = 0;
  384|      0|                        nodes->push_back(node);
  385|      0|                    }
  386|  18.5k|                    node = ConcreteNodePtr();
  387|  18.5k|                }
  388|   273k|                else if(token->type == TID_QUOTE)
  ------------------
  |  Branch (388:25): [True: 8.73k, False: 264k]
  ------------------
  389|  8.73k|                {
  390|  8.73k|                    node = std::make_shared<ConcreteNode>();
  391|  8.73k|                    node->token = unquoted(token->lexeme);
  392|  8.73k|                    node->file = file;
  393|  8.73k|                    node->line = token->line;
  394|  8.73k|                    node->type = CNT_QUOTE;
  395|       |
  396|       |                    // Insert the node
  397|  8.73k|                    if(parent)
  ------------------
  |  Branch (397:24): [True: 8.73k, False: 0]
  ------------------
  398|  8.73k|                    {
  399|  8.73k|                        node->parent = parent;
  400|  8.73k|                        parent->children.push_back(node);
  401|  8.73k|                    }
  402|      0|                    else
  403|      0|                    {
  404|      0|                        node->parent = 0;
  405|      0|                        nodes->push_back(node);
  406|      0|                    }
  407|  8.73k|                    node = ConcreteNodePtr();
  408|  8.73k|                }
  409|   264k|                else if(token->type == TID_WORD)
  ------------------
  |  Branch (409:25): [True: 264k, False: 0]
  ------------------
  410|   264k|                {
  411|   264k|                    node = std::make_shared<ConcreteNode>();
  412|   264k|                    node->token = token->lexeme;
  413|   264k|                    node->file = file;
  414|   264k|                    node->line = token->line;
  415|   264k|                    node->type = CNT_WORD;
  416|       |
  417|       |                    // Insert the node
  418|   264k|                    if(parent)
  ------------------
  |  Branch (418:24): [True: 264k, False: 0]
  ------------------
  419|   264k|                    {
  420|   264k|                        node->parent = parent;
  421|   264k|                        parent->children.push_back(node);
  422|   264k|                    }
  423|      0|                    else
  424|      0|                    {
  425|      0|                        node->parent = 0;
  426|      0|                        nodes->push_back(node);
  427|      0|                    }
  428|   264k|                    node = ConcreteNodePtr();
  429|   264k|                }
  430|   356k|                break;
  431|   459k|            }
  432|       |
  433|   459k|            ++i;
  434|   459k|        }
  435|       |
  436|    326|        return nodes;
  437|    327|    }
_ZN4Ogre12ScriptParser10parseChunkERKNSt3__16vectorINS_11ScriptTokenENS1_9allocatorIS3_EEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS4_IcEEEE:
  440|  52.9k|    {
  441|  52.9k|        auto nodes = std::make_shared<ConcreteNodeList>();
  442|       |
  443|  52.9k|        ConcreteNodePtr node;
  444|  52.9k|        for(const auto& token : tokens)
  ------------------
  |  Branch (444:31): [True: 1.92M, False: 52.9k]
  ------------------
  445|  1.92M|        {
  446|  1.92M|            switch(token.type)
  447|  1.92M|            {
  448|   565k|            case TID_VARIABLE:
  ------------------
  |  Branch (448:13): [True: 565k, False: 1.36M]
  ------------------
  449|   565k|                node = std::make_shared<ConcreteNode>();
  450|   565k|                node->file = file;
  451|   565k|                node->line = token.line;
  452|   565k|                node->parent = 0;
  453|   565k|                node->token = token.lexeme;
  454|   565k|                node->type = CNT_VARIABLE;
  455|   565k|                break;
  456|  1.36M|            case TID_WORD:
  ------------------
  |  Branch (456:13): [True: 1.36M, False: 565k]
  ------------------
  457|  1.36M|                node = std::make_shared<ConcreteNode>();
  458|  1.36M|                node->file = file;
  459|  1.36M|                node->line = token.line;
  460|  1.36M|                node->parent = 0;
  461|  1.36M|                node->token = token.lexeme;
  462|  1.36M|                node->type = CNT_WORD;
  463|  1.36M|                break;
  464|     25|            case TID_QUOTE:
  ------------------
  |  Branch (464:13): [True: 25, False: 1.92M]
  ------------------
  465|     25|                node = std::make_shared<ConcreteNode>();
  466|     25|                node->file = file;
  467|     25|                node->line = token.line;
  468|     25|                node->parent = 0;
  469|     25|                node->token= unquoted(token.lexeme);
  470|     25|                node->type = CNT_QUOTE;
  471|     25|                break;
  472|      0|            default:
  ------------------
  |  Branch (472:13): [True: 0, False: 1.92M]
  ------------------
  473|      0|                OGRE_EXCEPT(Exception::ERR_INVALID_STATE,
  474|  1.92M|                    Ogre::String("unexpected token") + token.lexeme + " at line " +
  475|  1.92M|                        Ogre::StringConverter::toString(token.line),
  476|  1.92M|                    "ScriptParser::parseChunk");
  477|  1.92M|            }
  478|       |
  479|  1.92M|            if(node)
  ------------------
  |  Branch (479:16): [True: 1.92M, False: 0]
  ------------------
  480|  1.92M|                nodes->push_back(node);
  481|  1.92M|        }
  482|       |
  483|  52.9k|        return nodes;
  484|  52.9k|    }
_ZN4Ogre12ScriptParser12skipNewlinesENSt3__111__wrap_iterIPKNS_11ScriptTokenEEES6_:
  496|  82.2k|    {
  497|   111k|        while(i != end && i->type == TID_NEWLINE)
  ------------------
  |  Branch (497:15): [True: 111k, False: 5]
  |  Branch (497:27): [True: 29.1k, False: 82.2k]
  ------------------
  498|  29.1k|            ++i;
  499|  82.2k|        return i;
  500|  82.2k|    }
OgreScriptParser.cpp:_ZN4OgreL8unquotedERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEb:
   37|  64.8k|    {
   38|  64.8k|        return trim ? str.substr(1, str.size() - 2) : str;
  ------------------
  |  Branch (38:16): [True: 8.88k, False: 56.0k]
  ------------------
   39|  64.8k|    }

_ZN4Ogre8getValueIfEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
   93|  1.99k|    {
   94|  1.99k|        return StringConverter::parse(node->getString(), result);
   95|  1.99k|    }
_ZN4Ogre8getValueIbEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  101|    222|    {
  102|    222|        return ScriptTranslator::getBoolean(node, &result);
  103|    222|    }
_ZN4Ogre8getValueIjEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  105|  6.76k|    {
  106|  6.76k|        return StringConverter::parse(node->getString(), result);
  107|  6.76k|    }
_ZN4Ogre8getValueIiEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  109|    391|    {
  110|    391|        return StringConverter::parse(node->getString(), result);
  111|    391|    }
_ZN4Ogre8getValueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  113|   298k|    {
  114|   298k|        return ScriptTranslator::getString(node, &result);
  115|   298k|    }
_ZN4Ogre8getValueINS_15CompareFunctionEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  118|      2|    {
  119|      2|        return ScriptTranslator::getCompareFunction(node, &result);
  120|      2|    }
_ZN4Ogre8getValueINS_16StencilOperationEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  123|      6|    {
  124|      6|        return ScriptTranslator::getStencilOp(node, &result);
  125|      6|    }
_ZN4Ogre8getValueINS_14SceneBlendTypeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  146|    184|    {
  147|    184|        switch (getAtomId(node))
  148|    184|        {
  149|    145|        case ID_ADD:
  ------------------
  |  Branch (149:9): [True: 145, False: 39]
  ------------------
  150|    145|            result = SBT_ADD;
  151|    145|            break;
  152|      0|        case ID_MODULATE:
  ------------------
  |  Branch (152:9): [True: 0, False: 184]
  ------------------
  153|      0|            result = SBT_MODULATE;
  154|      0|            break;
  155|     12|        case ID_COLOUR_BLEND:
  ------------------
  |  Branch (155:9): [True: 12, False: 172]
  ------------------
  156|     12|            result = SBT_TRANSPARENT_COLOUR;
  157|     12|            break;
  158|     20|        case ID_ALPHA_BLEND:
  ------------------
  |  Branch (158:9): [True: 20, False: 164]
  ------------------
  159|     20|            result = SBT_TRANSPARENT_ALPHA;
  160|     20|            break;
  161|      7|        default:
  ------------------
  |  Branch (161:9): [True: 7, False: 177]
  ------------------
  162|      7|            return false;
  163|    184|        }
  164|    177|        return true;
  165|    184|    }
_ZN4Ogre8getValueINS_11CullingModeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  193|     18|    {
  194|     18|        switch (getAtomId(node))
  195|     18|        {
  196|      0|        case ID_CLOCKWISE:
  ------------------
  |  Branch (196:9): [True: 0, False: 18]
  ------------------
  197|      0|            result = CULL_CLOCKWISE;
  198|      0|            break;
  199|      0|        case ID_ANTICLOCKWISE:
  ------------------
  |  Branch (199:9): [True: 0, False: 18]
  ------------------
  200|      0|            result = CULL_ANTICLOCKWISE;
  201|      0|            break;
  202|     15|        case ID_NONE:
  ------------------
  |  Branch (202:9): [True: 15, False: 3]
  ------------------
  203|     15|            result = CULL_NONE;
  204|     15|            break;
  205|      3|        default:
  ------------------
  |  Branch (205:9): [True: 3, False: 15]
  ------------------
  206|      3|            return false;
  207|     18|        }
  208|     15|        return true;
  209|     18|    }
_ZN4Ogre8getValueINS_17ManualCullingModeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  212|     11|    {
  213|     11|        switch (getAtomId(node))
  214|     11|        {
  215|      0|        case ID_FRONT:
  ------------------
  |  Branch (215:9): [True: 0, False: 11]
  ------------------
  216|      0|            result = MANUAL_CULL_FRONT;
  217|      0|            break;
  218|      0|        case ID_BACK:
  ------------------
  |  Branch (218:9): [True: 0, False: 11]
  ------------------
  219|      0|            result = MANUAL_CULL_BACK;
  220|      0|            break;
  221|      0|        case ID_NONE:
  ------------------
  |  Branch (221:9): [True: 0, False: 11]
  ------------------
  222|      0|            result = MANUAL_CULL_NONE;
  223|      0|            break;
  224|     11|        default:
  ------------------
  |  Branch (224:9): [True: 11, False: 0]
  ------------------
  225|     11|            return false;
  226|     11|        }
  227|      0|        return true;
  228|     11|    }
_ZN4Ogre8getValueINS_11PolygonModeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  250|     17|    {
  251|     17|        switch (getAtomId(node))
  252|     17|        {
  253|      0|        case ID_SOLID:
  ------------------
  |  Branch (253:9): [True: 0, False: 17]
  ------------------
  254|      0|            result = PM_SOLID;
  255|      0|            break;
  256|      0|        case ID_POINTS:
  ------------------
  |  Branch (256:9): [True: 0, False: 17]
  ------------------
  257|      0|            result = PM_POINTS;
  258|      0|            break;
  259|      4|        case ID_WIREFRAME:
  ------------------
  |  Branch (259:9): [True: 4, False: 13]
  ------------------
  260|      4|            result = PM_WIREFRAME;
  261|      4|            break;
  262|     13|        default:
  ------------------
  |  Branch (262:9): [True: 13, False: 4]
  ------------------
  263|     13|            return false;
  264|     17|        }
  265|      4|        return true;
  266|     17|    }
_ZN4Ogre8getValueINS_19LayerBlendOperationEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  269|      7|    {
  270|      7|        switch (getAtomId(node))
  271|      7|        {
  272|      0|        case ID_REPLACE:
  ------------------
  |  Branch (272:9): [True: 0, False: 7]
  ------------------
  273|      0|            result = LBO_REPLACE;
  274|      0|            break;
  275|      0|        case ID_ADD:
  ------------------
  |  Branch (275:9): [True: 0, False: 7]
  ------------------
  276|      0|            result = LBO_ADD;
  277|      0|            break;
  278|      0|        case ID_MODULATE:
  ------------------
  |  Branch (278:9): [True: 0, False: 7]
  ------------------
  279|      0|            result = LBO_MODULATE;
  280|      0|            break;
  281|      0|        case ID_ALPHA_BLEND:
  ------------------
  |  Branch (281:9): [True: 0, False: 7]
  ------------------
  282|      0|            result = LBO_ALPHA_BLEND;
  283|      0|            break;
  284|      7|        default:
  ------------------
  |  Branch (284:9): [True: 7, False: 0]
  ------------------
  285|      7|            return false;
  286|      7|        }
  287|      0|        return true;
  288|      7|    }
_ZN4Ogre8getValueINS_21LayerBlendOperationExEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  291|     12|    {
  292|     12|        switch (getAtomId(node))
  293|     12|        {
  294|      6|        case ID_SOURCE1:
  ------------------
  |  Branch (294:9): [True: 6, False: 6]
  ------------------
  295|      6|            op = LBX_SOURCE1;
  296|      6|            break;
  297|      5|        case ID_SOURCE2:
  ------------------
  |  Branch (297:9): [True: 5, False: 7]
  ------------------
  298|      5|            op = LBX_SOURCE2;
  299|      5|            break;
  300|      0|        case ID_MODULATE:
  ------------------
  |  Branch (300:9): [True: 0, False: 12]
  ------------------
  301|      0|            op = LBX_MODULATE;
  302|      0|            break;
  303|      0|        case ID_MODULATE_X2:
  ------------------
  |  Branch (303:9): [True: 0, False: 12]
  ------------------
  304|      0|            op = LBX_MODULATE_X2;
  305|      0|            break;
  306|      0|        case ID_MODULATE_X4:
  ------------------
  |  Branch (306:9): [True: 0, False: 12]
  ------------------
  307|      0|            op = LBX_MODULATE_X4;
  308|      0|            break;
  309|      0|        case ID_ADD:
  ------------------
  |  Branch (309:9): [True: 0, False: 12]
  ------------------
  310|      0|            op = LBX_ADD;
  311|      0|            break;
  312|      0|        case ID_ADD_SIGNED:
  ------------------
  |  Branch (312:9): [True: 0, False: 12]
  ------------------
  313|      0|            op = LBX_ADD_SIGNED;
  314|      0|            break;
  315|      0|        case ID_ADD_SMOOTH:
  ------------------
  |  Branch (315:9): [True: 0, False: 12]
  ------------------
  316|      0|            op = LBX_ADD_SMOOTH;
  317|      0|            break;
  318|      0|        case ID_SUBTRACT:
  ------------------
  |  Branch (318:9): [True: 0, False: 12]
  ------------------
  319|      0|            op = LBX_SUBTRACT;
  320|      0|            break;
  321|      0|        case ID_BLEND_DIFFUSE_ALPHA:
  ------------------
  |  Branch (321:9): [True: 0, False: 12]
  ------------------
  322|      0|            op = LBX_BLEND_DIFFUSE_ALPHA;
  323|      0|            break;
  324|      0|        case ID_BLEND_TEXTURE_ALPHA:
  ------------------
  |  Branch (324:9): [True: 0, False: 12]
  ------------------
  325|      0|            op = LBX_BLEND_TEXTURE_ALPHA;
  326|      0|            break;
  327|      0|        case ID_BLEND_CURRENT_ALPHA:
  ------------------
  |  Branch (327:9): [True: 0, False: 12]
  ------------------
  328|      0|            op = LBX_BLEND_CURRENT_ALPHA;
  329|      0|            break;
  330|      1|        case ID_BLEND_MANUAL:
  ------------------
  |  Branch (330:9): [True: 1, False: 11]
  ------------------
  331|      1|            op = LBX_BLEND_MANUAL;
  332|      1|            break;
  333|      0|        case ID_DOT_PRODUCT:
  ------------------
  |  Branch (333:9): [True: 0, False: 12]
  ------------------
  334|      0|            op = LBX_DOTPRODUCT;
  335|      0|            break;
  336|      0|        case ID_BLEND_DIFFUSE_COLOUR:
  ------------------
  |  Branch (336:9): [True: 0, False: 12]
  ------------------
  337|      0|            op = LBX_BLEND_DIFFUSE_COLOUR;
  338|      0|            break;
  339|      0|        default:
  ------------------
  |  Branch (339:9): [True: 0, False: 12]
  ------------------
  340|      0|            return false;
  341|     12|        }
  342|     12|        return true;
  343|     12|    }
_ZN4Ogre8getValueINS_16LayerBlendSourceEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  346|     24|    {
  347|     24|        switch (getAtomId(node))
  348|     24|        {
  349|      5|        case ID_SRC_CURRENT:
  ------------------
  |  Branch (349:9): [True: 5, False: 19]
  ------------------
  350|      5|            source1 = LBS_CURRENT;
  351|      5|            break;
  352|      1|        case ID_SRC_TEXTURE:
  ------------------
  |  Branch (352:9): [True: 1, False: 23]
  ------------------
  353|      1|            source1 = LBS_TEXTURE;
  354|      1|            break;
  355|      4|        case ID_SRC_DIFFUSE:
  ------------------
  |  Branch (355:9): [True: 4, False: 20]
  ------------------
  356|      4|            source1 = LBS_DIFFUSE;
  357|      4|            break;
  358|      0|        case ID_SRC_SPECULAR:
  ------------------
  |  Branch (358:9): [True: 0, False: 24]
  ------------------
  359|      0|            source1 = LBS_SPECULAR;
  360|      0|            break;
  361|     13|        case ID_SRC_MANUAL:
  ------------------
  |  Branch (361:9): [True: 13, False: 11]
  ------------------
  362|     13|            source1 = LBS_MANUAL;
  363|     13|            break;
  364|      1|        default:
  ------------------
  |  Branch (364:9): [True: 1, False: 23]
  ------------------
  365|      1|            return false;
  366|     24|        }
  367|     23|        return true;
  368|     24|    }
_ZN4Ogre8getValueINS_21CompositionTargetPass9InputModeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  371|     20|    {
  372|     20|        switch (getAtomId(node))
  373|     20|        {
  374|     18|        case ID_NONE:
  ------------------
  |  Branch (374:9): [True: 18, False: 2]
  ------------------
  375|     18|            result = CompositionTargetPass::IM_NONE;
  376|     18|            break;
  377|      1|        case ID_PREVIOUS:
  ------------------
  |  Branch (377:9): [True: 1, False: 19]
  ------------------
  378|      1|            result = CompositionTargetPass::IM_PREVIOUS;
  379|      1|            break;
  380|      1|        default:
  ------------------
  |  Branch (380:9): [True: 1, False: 19]
  ------------------
  381|      1|            return false;
  382|     20|        }
  383|     19|        return true;
  384|     20|    }
_ZN4Ogre8getValueINS_13FilterOptionsEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  387|     53|    {
  388|     53|        switch (getAtomId(node))
  389|     53|        {
  390|      0|        case ID_NONE:
  ------------------
  |  Branch (390:9): [True: 0, False: 53]
  ------------------
  391|      0|            tmip = FO_NONE;
  392|      0|            break;
  393|      0|        case ID_POINT:
  ------------------
  |  Branch (393:9): [True: 0, False: 53]
  ------------------
  394|      0|            tmip = FO_POINT;
  395|      0|            break;
  396|     16|        case ID_LINEAR:
  ------------------
  |  Branch (396:9): [True: 16, False: 37]
  ------------------
  397|     16|            tmip = FO_LINEAR;
  398|     16|            break;
  399|      0|        case ID_ANISOTROPIC:
  ------------------
  |  Branch (399:9): [True: 0, False: 53]
  ------------------
  400|      0|            tmip = FO_ANISOTROPIC;
  401|      0|            break;
  402|     37|        default:
  ------------------
  |  Branch (402:9): [True: 37, False: 16]
  ------------------
  403|     37|            return false;
  404|     53|        }
  405|     16|        return true;
  406|     53|    }
_ZN4Ogre8getValueINS_21TextureAddressingModeEEEbRKNS_9SharedPtrINS_12AbstractNodeEEERT_:
  409|     51|    {
  410|     51|        switch (getAtomId(node))
  411|     51|        {
  412|      0|        case ID_WRAP:
  ------------------
  |  Branch (412:9): [True: 0, False: 51]
  ------------------
  413|      0|            result = TextureUnitState::TAM_WRAP;
  414|      0|            break;
  415|     19|        case ID_CLAMP:
  ------------------
  |  Branch (415:9): [True: 19, False: 32]
  ------------------
  416|     19|            result = TextureUnitState::TAM_CLAMP;
  417|     19|            break;
  418|      0|        case ID_MIRROR:
  ------------------
  |  Branch (418:9): [True: 0, False: 51]
  ------------------
  419|      0|            result = TextureUnitState::TAM_MIRROR;
  420|      0|            break;
  421|      0|        case ID_BORDER:
  ------------------
  |  Branch (421:9): [True: 0, False: 51]
  ------------------
  422|      0|            result = TextureUnitState::TAM_BORDER;
  423|      0|            break;
  424|     32|        default:
  ------------------
  |  Branch (424:9): [True: 32, False: 19]
  ------------------
  425|     32|            return false;
  426|     51|        }
  427|     19|        return true;
  428|     51|    }
_ZN4Ogre16ScriptTranslator11processNodeEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
  505|  88.2k|    {
  506|  88.2k|        if(node->type != ANT_OBJECT)
  ------------------
  |  Branch (506:12): [True: 0, False: 88.2k]
  ------------------
  507|      0|            return;
  508|       |
  509|       |        // Abstract objects are completely skipped
  510|  88.2k|        if((static_cast<ObjectAbstractNode*>(node.get()))->abstract)
  ------------------
  |  Branch (510:12): [True: 2, False: 88.2k]
  ------------------
  511|      2|            return;
  512|       |
  513|       |        // Retrieve the translator to use
  514|  88.2k|        ScriptTranslator *translator =
  515|  88.2k|            ScriptCompilerManager::getSingleton().getTranslator(node);
  516|       |
  517|  88.2k|        if(translator)
  ------------------
  |  Branch (517:12): [True: 57.9k, False: 30.2k]
  ------------------
  518|  57.9k|            translator->translate(compiler, node);
  519|  30.2k|        else
  520|  30.2k|            compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, node->file, node->line,
  521|  30.2k|                               "token \"" + static_cast<ObjectAbstractNode*>(node.get())->cls + "\" is not recognized");
  522|  88.2k|    }
_ZN4Ogre16ScriptTranslator9getNodeAtERKNSt3__14listINS_9SharedPtrINS_12AbstractNodeEEENS1_9allocatorIS5_EEEEm:
  525|  32.9k|    {
  526|  32.9k|        if(index >= nodes.size())
  ------------------
  |  Branch (526:12): [True: 316, False: 32.6k]
  ------------------
  527|    316|            return nodes.end();
  528|       |
  529|  32.6k|        return std::next(nodes.begin(), index);
  530|  32.9k|    }
_ZN4Ogre16ScriptTranslator10getBooleanERKNS_9SharedPtrINS_12AbstractNodeEEEPb:
  533|    528|    {
  534|    528|        if (node->type != ANT_ATOM)
  ------------------
  |  Branch (534:13): [True: 1, False: 527]
  ------------------
  535|      1|            return false;
  536|    527|        AtomAbstractNode *atom = (AtomAbstractNode*)node.get();
  537|    527|		 if (atom->id == 1 || atom->id == 2)
  ------------------
  |  Branch (537:8): [True: 238, False: 289]
  |  Branch (537:25): [True: 58, False: 231]
  ------------------
  538|    296|		{
  539|    296|			*result = atom->id == 1 ? true : false;
  ------------------
  |  Branch (539:14): [True: 238, False: 58]
  ------------------
  540|    296|			return true;
  541|    296|		}
  542|       |        //     return false;
  543|    231|		return false;
  544|    527|    }
_ZN4Ogre16ScriptTranslator9getStringERKNS_9SharedPtrINS_12AbstractNodeEEEPNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE:
  547|   315k|    {
  548|   315k|        if(node->type != ANT_ATOM)
  ------------------
  |  Branch (548:12): [True: 413, False: 314k]
  ------------------
  549|    413|            return false;
  550|   314k|        AtomAbstractNode *atom = (AtomAbstractNode*)node.get();
  551|   314k|        *result = atom->value;
  552|   314k|        return true;
  553|   315k|    }
_ZN4Ogre16ScriptTranslator8getFloatERKNS_9SharedPtrINS_12AbstractNodeEEEPf:
  556|  61.3k|    {
  557|  61.3k|        return StringConverter::parse(node->getString(), *result);
  558|  61.3k|    }
_ZN4Ogre16ScriptTranslator6getIntERKNS_9SharedPtrINS_12AbstractNodeEEEPi:
  566|  1.36k|    {
  567|  1.36k|        return StringConverter::parse(node->getString(), *result);
  568|  1.36k|    }
_ZN4Ogre16ScriptTranslator7getUIntERKNS_9SharedPtrINS_12AbstractNodeEEEPj:
  571|    276|    {
  572|    276|        return StringConverter::parse(node->getString(), *result);
  573|    276|    }
_ZN4Ogre16ScriptTranslator9getColourENSt3__121__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEES7_PNS_11ColourValueEi:
  576|    678|    {
  577|    678|        int n = 0;
  578|  1.80k|        while(i != end && n < maxEntries)
  ------------------
  |  Branch (578:15): [True: 1.54k, False: 265]
  |  Branch (578:27): [True: 1.54k, False: 0]
  ------------------
  579|  1.54k|        {
  580|  1.54k|            float v = 0;
  581|  1.54k|            if(getFloat(*i, &v))
  ------------------
  |  Branch (581:16): [True: 1.13k, False: 413]
  ------------------
  582|  1.13k|            {
  583|  1.13k|                switch(n)
  ------------------
  |  Branch (583:24): [True: 1.13k, False: 0]
  ------------------
  584|  1.13k|                {
  585|    542|                case 0:
  ------------------
  |  Branch (585:17): [True: 542, False: 589]
  ------------------
  586|    542|                    result->r = v;
  587|    542|                    break;
  588|    275|                case 1:
  ------------------
  |  Branch (588:17): [True: 275, False: 856]
  ------------------
  589|    275|                    result->g = v;
  590|    275|                    break;
  591|    254|                case 2:
  ------------------
  |  Branch (591:17): [True: 254, False: 877]
  ------------------
  592|    254|                    result->b = v;
  593|    254|                    break;
  594|     60|                case 3:
  ------------------
  |  Branch (594:17): [True: 60, False: 1.07k]
  ------------------
  595|     60|                    result->a = v;
  596|     60|                    break;
  597|  1.13k|                }
  598|  1.13k|            }
  599|    413|            else
  600|    413|            {
  601|    413|                return false;
  602|    413|            }
  603|  1.13k|            ++n;
  604|  1.13k|            ++i;
  605|  1.13k|        }
  606|       |        // return error if we found less than rgb before end, unless constrained
  607|    265|        return (n >= 3 || n == maxEntries);
  ------------------
  |  Branch (607:17): [True: 242, False: 23]
  |  Branch (607:27): [True: 0, False: 23]
  ------------------
  608|    678|    }
_ZN4Ogre16ScriptTranslator19getSceneBlendFactorERKNS_9SharedPtrINS_12AbstractNodeEEEPNS_16SceneBlendFactorE:
  611|     15|    {
  612|     15|        switch(getAtomId(node))
  613|     15|        {
  614|      0|        case ID_ONE:
  ------------------
  |  Branch (614:9): [True: 0, False: 15]
  ------------------
  615|      0|            *sbf = SBF_ONE;
  616|      0|            break;
  617|      0|        case ID_ZERO:
  ------------------
  |  Branch (617:9): [True: 0, False: 15]
  ------------------
  618|      0|            *sbf = SBF_ZERO;
  619|      0|            break;
  620|      0|        case ID_DEST_COLOUR:
  ------------------
  |  Branch (620:9): [True: 0, False: 15]
  ------------------
  621|      0|            *sbf = SBF_DEST_COLOUR;
  622|      0|            break;
  623|      0|        case ID_DEST_ALPHA:
  ------------------
  |  Branch (623:9): [True: 0, False: 15]
  ------------------
  624|      0|            *sbf = SBF_DEST_ALPHA;
  625|      0|            break;
  626|      0|        case ID_SRC_ALPHA:
  ------------------
  |  Branch (626:9): [True: 0, False: 15]
  ------------------
  627|      0|            *sbf = SBF_SOURCE_ALPHA;
  628|      0|            break;
  629|      0|        case ID_SRC_COLOUR:
  ------------------
  |  Branch (629:9): [True: 0, False: 15]
  ------------------
  630|      0|            *sbf = SBF_SOURCE_COLOUR;
  631|      0|            break;
  632|      0|        case ID_ONE_MINUS_DEST_COLOUR:
  ------------------
  |  Branch (632:9): [True: 0, False: 15]
  ------------------
  633|      0|            *sbf = SBF_ONE_MINUS_DEST_COLOUR;
  634|      0|            break;
  635|      0|        case ID_ONE_MINUS_SRC_COLOUR:
  ------------------
  |  Branch (635:9): [True: 0, False: 15]
  ------------------
  636|      0|            *sbf = SBF_ONE_MINUS_SOURCE_COLOUR;
  637|      0|            break;
  638|      0|        case ID_ONE_MINUS_DEST_ALPHA:
  ------------------
  |  Branch (638:9): [True: 0, False: 15]
  ------------------
  639|      0|            *sbf = SBF_ONE_MINUS_DEST_ALPHA;
  640|      0|            break;
  641|      0|        case ID_ONE_MINUS_SRC_ALPHA:
  ------------------
  |  Branch (641:9): [True: 0, False: 15]
  ------------------
  642|      0|            *sbf = SBF_ONE_MINUS_SOURCE_ALPHA;
  643|      0|            break;
  644|     15|        default:
  ------------------
  |  Branch (644:9): [True: 15, False: 0]
  ------------------
  645|     15|            return false;
  646|     15|        }
  647|      0|        return true;
  648|     15|    }
_ZN4Ogre16ScriptTranslator18getCompareFunctionERKNS_9SharedPtrINS_12AbstractNodeEEEPNS_15CompareFunctionE:
  651|    151|    {
  652|    151|        switch(getAtomId(node))
  653|    151|        {
  654|      1|        case ID_ALWAYS_FAIL:
  ------------------
  |  Branch (654:9): [True: 1, False: 150]
  ------------------
  655|      1|            *func = CMPF_ALWAYS_FAIL;
  656|      1|            break;
  657|      2|        case ID_ALWAYS_PASS:
  ------------------
  |  Branch (657:9): [True: 2, False: 149]
  ------------------
  658|      2|            *func = CMPF_ALWAYS_PASS;
  659|      2|            break;
  660|      0|        case ID_LESS:
  ------------------
  |  Branch (660:9): [True: 0, False: 151]
  ------------------
  661|      0|            *func = CMPF_LESS;
  662|      0|            break;
  663|      0|        case ID_LESS_EQUAL:
  ------------------
  |  Branch (663:9): [True: 0, False: 151]
  ------------------
  664|      0|            *func = CMPF_LESS_EQUAL;
  665|      0|            break;
  666|      0|        case ID_EQUAL:
  ------------------
  |  Branch (666:9): [True: 0, False: 151]
  ------------------
  667|      0|            *func = CMPF_EQUAL;
  668|      0|            break;
  669|      0|        case ID_NOT_EQUAL:
  ------------------
  |  Branch (669:9): [True: 0, False: 151]
  ------------------
  670|      0|            *func = CMPF_NOT_EQUAL;
  671|      0|            break;
  672|    132|        case ID_GREATER_EQUAL:
  ------------------
  |  Branch (672:9): [True: 132, False: 19]
  ------------------
  673|    132|            *func = CMPF_GREATER_EQUAL;
  674|    132|            break;
  675|      0|        case ID_GREATER:
  ------------------
  |  Branch (675:9): [True: 0, False: 151]
  ------------------
  676|      0|            *func = CMPF_GREATER;
  677|      0|            break;
  678|     16|        default:
  ------------------
  |  Branch (678:9): [True: 16, False: 135]
  ------------------
  679|     16|            return false;
  680|    151|        }
  681|    135|        return true;
  682|    151|    }
_ZN4Ogre16ScriptTranslator9getVectorENSt3__121__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEES7_RNS1_6vectorIfNS1_9allocatorIfEEEEm:
  756|    590|    {
  757|    590|        return _getVector(i, end, vals, count);
  758|    590|    }
_ZN4Ogre16ScriptTranslator12getStencilOpERKNS_9SharedPtrINS_12AbstractNodeEEEPNS_16StencilOperationE:
  839|      6|    {
  840|      6|        switch(getAtomId(node))
  841|      6|        {
  842|      0|        case ID_KEEP:
  ------------------
  |  Branch (842:9): [True: 0, False: 6]
  ------------------
  843|      0|            *op = SOP_KEEP;
  844|      0|            break;
  845|      0|        case ID_ZERO:
  ------------------
  |  Branch (845:9): [True: 0, False: 6]
  ------------------
  846|      0|            *op = SOP_ZERO;
  847|      0|            break;
  848|      0|        case ID_REPLACE:
  ------------------
  |  Branch (848:9): [True: 0, False: 6]
  ------------------
  849|      0|            *op = SOP_REPLACE;
  850|      0|            break;
  851|      0|        case ID_INCREMENT:
  ------------------
  |  Branch (851:9): [True: 0, False: 6]
  ------------------
  852|      0|            *op = SOP_INCREMENT;
  853|      0|            break;
  854|      0|        case ID_DECREMENT:
  ------------------
  |  Branch (854:9): [True: 0, False: 6]
  ------------------
  855|      0|            *op = SOP_DECREMENT;
  856|      0|            break;
  857|      0|        case ID_INCREMENT_WRAP:
  ------------------
  |  Branch (857:9): [True: 0, False: 6]
  ------------------
  858|      0|            *op = SOP_INCREMENT_WRAP;
  859|      0|            break;
  860|      0|        case ID_DECREMENT_WRAP:
  ------------------
  |  Branch (860:9): [True: 0, False: 6]
  ------------------
  861|      0|            *op = SOP_DECREMENT_WRAP;
  862|      0|            break;
  863|      0|        case ID_INVERT:
  ------------------
  |  Branch (863:9): [True: 0, False: 6]
  ------------------
  864|      0|            *op = SOP_INVERT;
  865|      0|            break;
  866|      6|        default:
  ------------------
  |  Branch (866:9): [True: 6, False: 0]
  ------------------
  867|      6|            return false;
  868|      6|        }
  869|      0|        return true;
  870|      6|    }
_ZN4Ogre16ScriptTranslator15getConstantTypeENSt3__121__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEEPNS_15GpuConstantTypeE:
  873|  1.05k|    {
  874|  1.05k|        const String& val = (*i)->getString();
  875|  1.05k|        if(val.empty())
  ------------------
  |  Branch (875:12): [True: 0, False: 1.05k]
  ------------------
  876|      0|            return false;
  877|       |
  878|  1.05k|        if (val.find("float") != String::npos)
  ------------------
  |  Branch (878:13): [True: 699, False: 353]
  ------------------
  879|    699|        {
  880|    699|            int count = 1;
  881|    699|            if (val.size() == 6)
  ------------------
  |  Branch (881:17): [True: 697, False: 2]
  ------------------
  882|    697|                count = StringConverter::parseInt(val.substr(5));
  883|      2|            else if (val.size() > 6)
  ------------------
  |  Branch (883:22): [True: 2, False: 0]
  ------------------
  884|      2|                return false;
  885|       |
  886|    697|            if (count > 4 || count == 0)
  ------------------
  |  Branch (886:17): [True: 166, False: 531]
  |  Branch (886:30): [True: 338, False: 193]
  ------------------
  887|    504|                return false;
  888|       |
  889|    193|            *op = (GpuConstantType)(GCT_FLOAT1 + count - 1);
  890|    193|        }
  891|    353|        else if (val.find("double") != String::npos)
  ------------------
  |  Branch (891:18): [True: 190, False: 163]
  ------------------
  892|    190|        {
  893|    190|            int count = 1;
  894|    190|            if (val.size() == 7)
  ------------------
  |  Branch (894:17): [True: 188, False: 2]
  ------------------
  895|    188|                count = StringConverter::parseInt(val.substr(6));
  896|      2|            else if (val.size() > 7)
  ------------------
  |  Branch (896:22): [True: 2, False: 0]
  ------------------
  897|      2|                return false;
  898|       |
  899|    188|            if (count > 4 || count == 0)
  ------------------
  |  Branch (899:17): [True: 0, False: 188]
  |  Branch (899:30): [True: 188, False: 0]
  ------------------
  900|    188|                return false;
  901|       |
  902|      0|            *op = (GpuConstantType)(GCT_DOUBLE1 + count - 1);
  903|      0|        }
  904|    163|        else if (val.find("uint") != String::npos)
  ------------------
  |  Branch (904:18): [True: 0, False: 163]
  ------------------
  905|      0|        {
  906|      0|            int count = 1;
  907|      0|            if (val.size() == 5)
  ------------------
  |  Branch (907:17): [True: 0, False: 0]
  ------------------
  908|      0|                count = StringConverter::parseInt(val.substr(4));
  909|      0|            else if (val.size() > 5)
  ------------------
  |  Branch (909:22): [True: 0, False: 0]
  ------------------
  910|      0|                return false;
  911|       |
  912|      0|            if (count > 4 || count == 0)
  ------------------
  |  Branch (912:17): [True: 0, False: 0]
  |  Branch (912:30): [True: 0, False: 0]
  ------------------
  913|      0|                return false;
  914|       |
  915|      0|            *op = (GpuConstantType)(GCT_UINT1 + count - 1);
  916|      0|        }
  917|    163|        else if (val.find("int") != String::npos)
  ------------------
  |  Branch (917:18): [True: 6, False: 157]
  ------------------
  918|      6|        {
  919|      6|            int count = 1;
  920|      6|            if (val.size() == 4)
  ------------------
  |  Branch (920:17): [True: 0, False: 6]
  ------------------
  921|      0|                count = StringConverter::parseInt(val.substr(3));
  922|      6|            else if (val.size() > 4)
  ------------------
  |  Branch (922:22): [True: 0, False: 6]
  ------------------
  923|      0|                return false;
  924|       |
  925|      6|            if (count > 4 || count == 0)
  ------------------
  |  Branch (925:17): [True: 0, False: 6]
  |  Branch (925:30): [True: 0, False: 6]
  ------------------
  926|      0|                return false;
  927|       |
  928|      6|            *op = (GpuConstantType)(GCT_INT1 + count - 1);
  929|      6|        }
  930|    157|        else if (val.find("bool") != String::npos)
  ------------------
  |  Branch (930:18): [True: 0, False: 157]
  ------------------
  931|      0|        {
  932|      0|            int count = 1;
  933|      0|            if (val.size() == 5)
  ------------------
  |  Branch (933:17): [True: 0, False: 0]
  ------------------
  934|      0|                count = StringConverter::parseInt(val.substr(4));
  935|      0|            else if (val.size() > 5)
  ------------------
  |  Branch (935:22): [True: 0, False: 0]
  ------------------
  936|      0|                return false;
  937|       |
  938|      0|            if (count > 4 || count == 0)
  ------------------
  |  Branch (938:17): [True: 0, False: 0]
  |  Branch (938:30): [True: 0, False: 0]
  ------------------
  939|      0|                return false;
  940|       |
  941|      0|            *op = (GpuConstantType)(GCT_BOOL1 + count - 1);
  942|      0|        }
  943|    157|        else if(val.find("matrix") != String::npos)
  ------------------
  |  Branch (943:17): [True: 2, False: 155]
  ------------------
  944|      2|        {
  945|      2|            int count1, count2;
  946|       |
  947|      2|            if (val.size() == 9)
  ------------------
  |  Branch (947:17): [True: 0, False: 2]
  ------------------
  948|      0|            {
  949|      0|                count1 = StringConverter::parseInt(val.substr(6, 1));
  950|      0|                count2 = StringConverter::parseInt(val.substr(8, 1));
  951|      0|            }
  952|      2|            else
  953|      2|                return false;
  954|       |
  955|      0|            if (count1 > 4 || count1 < 2 || count2 > 4 || count2 < 2)
  ------------------
  |  Branch (955:17): [True: 0, False: 0]
  |  Branch (955:31): [True: 0, False: 0]
  |  Branch (955:45): [True: 0, False: 0]
  |  Branch (955:59): [True: 0, False: 0]
  ------------------
  956|      0|                return false;
  957|       |
  958|      0|            switch(count1)
  ------------------
  |  Branch (958:20): [True: 0, False: 0]
  ------------------
  959|      0|            {
  960|      0|            case 2:
  ------------------
  |  Branch (960:13): [True: 0, False: 0]
  ------------------
  961|      0|                *op = (GpuConstantType)(GCT_MATRIX_2X2 + count2 - 2);
  962|      0|                break;
  963|      0|            case 3:
  ------------------
  |  Branch (963:13): [True: 0, False: 0]
  ------------------
  964|      0|                *op = (GpuConstantType)(GCT_MATRIX_3X2 + count2 - 2);
  965|      0|                break;
  966|      0|            case 4:
  ------------------
  |  Branch (966:13): [True: 0, False: 0]
  ------------------
  967|      0|                *op = (GpuConstantType)(GCT_MATRIX_4X2 + count2 - 2);
  968|      0|                break;
  969|      0|            }
  970|       |
  971|      0|        }
  972|    155|        else
  973|    155|        {
  974|    155|            return false;
  975|    155|        }
  976|       |
  977|    199|        return true;
  978|  1.05k|    }
_ZN4Ogre18MaterialTranslatorC2Ev:
  984|      1|    {
  985|      1|    }
_ZN4Ogre18MaterialTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
  988|    366|    {
  989|    366|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
  990|    366|        if(obj->name.empty())
  ------------------
  |  Branch (990:12): [True: 6, False: 360]
  ------------------
  991|      6|        {
  992|      6|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line);
  993|      6|            return;
  994|      6|        }
  995|       |
  996|    360|        Material* mMaterial = 0;
  997|       |
  998|       |        // Create a material with the given name
  999|    360|        CreateMaterialScriptCompilerEvent evt(node->file, obj->name, compiler->getResourceGroup());
 1000|    360|        bool processed = compiler->_fireEvent(&evt, (void*)&mMaterial);
 1001|       |
 1002|    360|        if(!processed)
  ------------------
  |  Branch (1002:12): [True: 360, False: 0]
  ------------------
 1003|    360|        {
 1004|    360|            mMaterial = MaterialManager::getSingleton().create(obj->name, compiler->getResourceGroup()).get();
 1005|    360|        }
 1006|       |
 1007|    360|        if(!mMaterial)
  ------------------
  |  Branch (1007:12): [True: 0, False: 360]
  ------------------
 1008|      0|        {
 1009|      0|            compiler->addError(ScriptCompiler::CE_OBJECTALLOCATIONERROR, obj->file, obj->line, obj->name);
 1010|      0|            return;
 1011|      0|        }
 1012|       |
 1013|    360|        mMaterial->removeAllTechniques();
 1014|    360|        obj->context = mMaterial;
 1015|    360|        mMaterial->_notifyOrigin(obj->file);
 1016|       |
 1017|    360|        bool bval;
 1018|    360|        String sval;
 1019|       |
 1020|    360|        for(auto & i : obj->children)
  ------------------
  |  Branch (1020:22): [True: 4.80k, False: 360]
  ------------------
 1021|  4.80k|        {
 1022|  4.80k|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (1022:16): [True: 1.98k, False: 2.81k]
  ------------------
 1023|  1.98k|            {
 1024|  1.98k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 1025|  1.98k|                switch(prop->id)
 1026|  1.98k|                {
 1027|      7|                case ID_LOD_VALUES:
  ------------------
  |  Branch (1027:17): [True: 7, False: 1.98k]
  ------------------
 1028|      7|                    {
 1029|      7|                        Material::LodValueList lods;
 1030|      7|                        for(const auto& j : prop->values)
  ------------------
  |  Branch (1030:43): [True: 59.5k, False: 7]
  ------------------
 1031|  59.5k|                        {
 1032|  59.5k|                            Real v = 0;
 1033|  59.5k|                            if(getReal(j, &v))
  ------------------
  |  Branch (1033:32): [True: 48.8k, False: 10.6k]
  ------------------
 1034|  48.8k|                                lods.push_back(v);
 1035|  10.6k|                            else
 1036|  10.6k|                                compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 1037|  10.6k|                                                   "lod_values expects only numbers as arguments");
 1038|  59.5k|                        }
 1039|      7|                        mMaterial->setLodLevels(lods);
 1040|      7|                    }
 1041|      7|                    break;
 1042|      0|                case ID_LOD_DISTANCES:
  ------------------
  |  Branch (1042:17): [True: 0, False: 1.98k]
  ------------------
 1043|      0|                    {
 1044|       |                        // Deprecated! Only for backwards compatibility.
 1045|       |                        // Set strategy hard-coded to 'distance' strategy, since that was the only one available back then,
 1046|       |                        // when using this material keyword was still current.
 1047|      0|                        LodStrategy *strategy = DistanceLodSphereStrategy::getSingletonPtr();
 1048|      0|                        mMaterial->setLodStrategy(strategy);
 1049|       |
 1050|      0|                        compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file,
 1051|      0|                                           prop->line,
 1052|      0|                                           "lod_distances. Use lod_values.");
 1053|       |                        // Read in LOD distances
 1054|      0|                        Material::LodValueList lods;
 1055|      0|                        for(auto& j : prop->values)
  ------------------
  |  Branch (1055:37): [True: 0, False: 0]
  ------------------
 1056|      0|                        {
 1057|      0|                            Real v = 0;
 1058|      0|                            if(getReal(j, &v))
  ------------------
  |  Branch (1058:32): [True: 0, False: 0]
  ------------------
 1059|      0|                                lods.push_back(v);
 1060|      0|                            else
 1061|      0|                                compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 1062|      0|                                                   "lod_values expects only numbers as arguments");
 1063|      0|                        }
 1064|      0|                        mMaterial->setLodLevels(lods);
 1065|      0|                    }
 1066|      0|                    break;
 1067|    181|                case ID_LOD_STRATEGY:
  ------------------
  |  Branch (1067:17): [True: 181, False: 1.80k]
  ------------------
 1068|    181|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (1068:24): [True: 31, False: 150]
  ------------------
 1069|     31|                    {
 1070|     31|                            if (sval == "Distance" || sval == "PixelCount")
  ------------------
  |  Branch (1070:33): [True: 0, False: 31]
  |  Branch (1070:55): [True: 0, False: 31]
  ------------------
 1071|      0|                                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 1072|      0|                                                   sval + ". use distance_box or pixel_count");
 1073|       |
 1074|     31|                            LodStrategy* strategy = LodStrategyManager::getSingleton().getStrategy(sval);
 1075|     31|                            if (strategy)
  ------------------
  |  Branch (1075:33): [True: 0, False: 31]
  ------------------
 1076|      0|                                mMaterial->setLodStrategy(strategy);
 1077|     31|                            else
 1078|     31|                                compiler->addError(*prop, sval);
 1079|     31|                    }
 1080|    181|                    break;
 1081|      0|                case ID_RECEIVE_SHADOWS:
  ------------------
  |  Branch (1081:17): [True: 0, False: 1.98k]
  ------------------
 1082|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1082:24): [True: 0, False: 0]
  ------------------
 1083|      0|                        mMaterial->setReceiveShadows(bval);
 1084|      0|                    break;
 1085|      0|                case ID_TRANSPARENCY_CASTS_SHADOWS:
  ------------------
  |  Branch (1085:17): [True: 0, False: 1.98k]
  ------------------
 1086|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1086:24): [True: 0, False: 0]
  ------------------
 1087|      0|                        mMaterial->setTransparencyCastsShadows(bval);
 1088|      0|                    break;
 1089|    350|                case ID_SET_TEXTURE_ALIAS:
  ------------------
  |  Branch (1089:17): [True: 350, False: 1.63k]
  ------------------
 1090|    350|                    if(prop->values.size() != 2)
  ------------------
  |  Branch (1090:24): [True: 30, False: 320]
  ------------------
 1091|     30|                    {
 1092|     30|                        compiler->addError(*prop, "set_texture_alias must have 2 string arguments");
 1093|     30|                    }
 1094|    320|                    else
 1095|    320|                    {
 1096|    320|                        compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 1097|    320|                                            "set_texture_alias. Use 'set $variable value'");
 1098|       |
 1099|    320|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1100|    320|                        String name, value;
 1101|    320|                        if(getString(*i0, &name) && getString(*i1, &value))
  ------------------
  |  Branch (1101:28): [True: 320, False: 0]
  |  Branch (1101:53): [True: 320, False: 0]
  ------------------
 1102|    320|                            mTextureAliases.insert(std::make_pair(name, value));
 1103|    320|                    }
 1104|    350|                    break;
 1105|  1.44k|                default:
  ------------------
  |  Branch (1105:17): [True: 1.44k, False: 538]
  ------------------
 1106|  1.44k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 1107|  1.44k|                                       "token \"" + prop->name + "\" is not recognized");
 1108|  1.98k|                }
 1109|  1.98k|            }
 1110|  2.81k|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (1110:21): [True: 1.24k, False: 1.57k]
  ------------------
 1111|  1.24k|            {
 1112|  1.24k|                processNode(compiler, i);
 1113|  1.24k|            }
 1114|  4.80k|        }
 1115|       |
 1116|    360|        applyTextureAliases(compiler, mMaterial, mTextureAliases);
 1117|    360|        mTextureAliases.clear();
 1118|    360|    }
_ZN4Ogre19TechniqueTranslatorC2Ev:
 1124|      1|        :mTechnique(0)
 1125|      1|    {
 1126|      1|    }
_ZN4Ogre19TechniqueTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 1129|    974|    {
 1130|    974|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 1131|       |
 1132|       |        // Create the technique from the material
 1133|    974|        Ogre::Material *material = Ogre::any_cast<Ogre::Material*>(obj->parent->context);
 1134|    974|        mTechnique = material->createTechnique();
 1135|    974|        obj->context = mTechnique;
 1136|       |
 1137|       |        // Get the name of the technique
 1138|    974|        if(!obj->name.empty())
  ------------------
  |  Branch (1138:12): [True: 563, False: 411]
  ------------------
 1139|    563|            mTechnique->setName(obj->name);
 1140|       |
 1141|    974|        uint32 uival;
 1142|    974|        String sval;
 1143|       |
 1144|       |        // Set the properties for the material
 1145|    974|        for(auto & i : obj->children)
  ------------------
  |  Branch (1145:22): [True: 66.7k, False: 974]
  ------------------
 1146|  66.7k|        {
 1147|  66.7k|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (1147:16): [True: 4.15k, False: 62.5k]
  ------------------
 1148|  4.15k|            {
 1149|  4.15k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 1150|  4.15k|                switch(prop->id)
 1151|  4.15k|                {
 1152|    368|                case ID_SCHEME:
  ------------------
  |  Branch (1152:17): [True: 368, False: 3.78k]
  ------------------
 1153|    368|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (1153:24): [True: 111, False: 257]
  ------------------
 1154|    111|                        mTechnique->setSchemeName(sval);
 1155|    368|                    break;
 1156|      0|                case ID_LOD_INDEX:
  ------------------
  |  Branch (1156:17): [True: 0, False: 4.15k]
  ------------------
 1157|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (1157:24): [True: 0, False: 0]
  ------------------
 1158|      0|                        mTechnique->setLodIndex(static_cast<uint16>(uival));
 1159|      0|                    break;
 1160|      0|                case ID_SHADOW_CASTER_MATERIAL:
  ------------------
  |  Branch (1160:17): [True: 0, False: 4.15k]
  ------------------
 1161|      0|                    if (getValue(prop, compiler, sval))
  ------------------
  |  Branch (1161:25): [True: 0, False: 0]
  ------------------
 1162|      0|                    {
 1163|      0|                        try
 1164|      0|                        {
 1165|      0|                            mTechnique->setShadowCasterMaterial(processResourceName(compiler, ResourceType::MATERIAL, sval));
 1166|      0|                        }
 1167|      0|                        catch (Exception& e)
 1168|      0|                        {
 1169|      0|                            compiler->addError(*prop, e.getDescription());
 1170|      0|                        }
 1171|      0|                    }
 1172|      0|                    break;
 1173|      1|                case ID_SHADOW_RECEIVER_MATERIAL:
  ------------------
  |  Branch (1173:17): [True: 1, False: 4.15k]
  ------------------
 1174|      1|                    if (getValue(prop, compiler, sval))
  ------------------
  |  Branch (1174:25): [True: 1, False: 0]
  ------------------
 1175|      1|                    {
 1176|      1|                        try
 1177|      1|                        {
 1178|      1|                            mTechnique->setShadowReceiverMaterial(processResourceName(compiler, ResourceType::MATERIAL, sval));
 1179|      1|                        }
 1180|      1|                        catch (Exception& e)
 1181|      1|                        {
 1182|      0|                            compiler->addError(*prop, e.getDescription());
 1183|      0|                        }
 1184|      1|                    }
 1185|      1|                    break;
 1186|    811|                case ID_GPU_VENDOR_RULE:
  ------------------
  |  Branch (1186:17): [True: 811, False: 3.34k]
  ------------------
 1187|    811|                    if(prop->values.size() < 2)
  ------------------
  |  Branch (1187:24): [True: 13, False: 798]
  ------------------
 1188|     13|                    {
 1189|     13|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line,
 1190|     13|                                           "gpu_vendor_rule must have 2 arguments");
 1191|     13|                    }
 1192|    798|                    else if(prop->values.size() > 2)
  ------------------
  |  Branch (1192:29): [True: 71, False: 727]
  ------------------
 1193|     71|                    {
 1194|     71|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1195|     71|                                           "gpu_vendor_rule must have 2 arguments");
 1196|     71|                    }
 1197|    727|                    else
 1198|    727|                    {
 1199|    727|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0);
 1200|    727|                        AbstractNodeList::const_iterator i1 = getNodeAt(prop->values, 1);
 1201|       |
 1202|    727|                        Technique::GPUVendorRule rule;
 1203|    727|                        uint32 id0 = getAtomId(*i0);
 1204|    727|                        if (id0 == ID_INCLUDE)
  ------------------
  |  Branch (1204:29): [True: 0, False: 727]
  ------------------
 1205|      0|                        {
 1206|      0|                            rule.includeOrExclude = Technique::INCLUDE;
 1207|      0|                        }
 1208|    727|                        else if (id0 == ID_EXCLUDE)
  ------------------
  |  Branch (1208:34): [True: 0, False: 727]
  ------------------
 1209|      0|                        {
 1210|      0|                            rule.includeOrExclude = Technique::EXCLUDE;
 1211|      0|                        }
 1212|    727|                        else
 1213|    727|                        {
 1214|    727|                            compiler->addError(*prop, "gpu_vendor_rule cannot accept \"" + (*i0)->getValue() + "\" as first argument");
 1215|    727|                        }
 1216|       |
 1217|    727|                        String vendor;
 1218|    727|                        if(!getString(*i1, &vendor))
  ------------------
  |  Branch (1218:28): [True: 0, False: 727]
  ------------------
 1219|      0|                            compiler->addError(*prop, "gpu_vendor_rule cannot accept \"" + (*i1)->getValue() + "\" as second argument");
 1220|       |
 1221|    727|                        rule.vendor = RenderSystemCapabilities::vendorFromString(vendor);
 1222|       |
 1223|    727|                        if (rule.vendor != GPU_UNKNOWN)
  ------------------
  |  Branch (1223:29): [True: 450, False: 277]
  ------------------
 1224|    450|                        {
 1225|    450|                            mTechnique->addGPUVendorRule(rule);
 1226|    450|                        }
 1227|    727|                    }
 1228|    811|                    break;
 1229|    304|                case ID_GPU_DEVICE_RULE:
  ------------------
  |  Branch (1229:17): [True: 304, False: 3.85k]
  ------------------
 1230|    304|                    if(prop->values.size() < 2)
  ------------------
  |  Branch (1230:24): [True: 134, False: 170]
  ------------------
 1231|    134|                    {
 1232|    134|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line,
 1233|    134|                                           "gpu_device_rule must have at least 2 arguments");
 1234|    134|                    }
 1235|    170|                    else if(prop->values.size() > 3)
  ------------------
  |  Branch (1235:29): [True: 22, False: 148]
  ------------------
 1236|     22|                    {
 1237|     22|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1238|     22|                                           "gpu_device_rule must have at most 3 arguments");
 1239|     22|                    }
 1240|    148|                    else
 1241|    148|                    {
 1242|    148|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0);
 1243|    148|                        AbstractNodeList::const_iterator i1 = getNodeAt(prop->values, 1);
 1244|       |
 1245|    148|                        Technique::GPUDeviceNameRule rule;
 1246|    148|                        uint32 id0 = getAtomId(*i0);
 1247|    148|                        if (id0 == ID_INCLUDE)
  ------------------
  |  Branch (1247:29): [True: 0, False: 148]
  ------------------
 1248|      0|                        {
 1249|      0|                            rule.includeOrExclude = Technique::INCLUDE;
 1250|      0|                        }
 1251|    148|                        else if (id0 == ID_EXCLUDE)
  ------------------
  |  Branch (1251:34): [True: 0, False: 148]
  ------------------
 1252|      0|                        {
 1253|      0|                            rule.includeOrExclude = Technique::EXCLUDE;
 1254|      0|                        }
 1255|    148|                        else
 1256|    148|                        {
 1257|    148|                            compiler->addError(*prop, "gpu_device_rule cannot accept \"" + (*i0)->getValue() + "\" as first argument");
 1258|    148|                        }
 1259|       |
 1260|    148|                        if(!getString(*i1, &rule.devicePattern))
  ------------------
  |  Branch (1260:28): [True: 3, False: 145]
  ------------------
 1261|      3|                            compiler->addError(*prop, "gpu_device_rule cannot accept \"" + (*i1)->getValue() + "\" as second argument");
 1262|       |
 1263|    148|                        if (prop->values.size() == 3)
  ------------------
  |  Branch (1263:29): [True: 122, False: 26]
  ------------------
 1264|    122|                        {
 1265|    122|                            AbstractNodeList::const_iterator i2 = getNodeAt(prop->values, 2);
 1266|    122|                            if (!getBoolean(*i2, &rule.caseSensitive))
  ------------------
  |  Branch (1266:33): [True: 121, False: 1]
  ------------------
 1267|    121|                                compiler->addError(*prop, "gpu_device_rule third argument must be \"true\", \"false\", \"yes\", \"no\", \"on\", or \"off\"");
 1268|    122|                        }
 1269|       |
 1270|    148|                        mTechnique->addGPUDeviceNameRule(rule);
 1271|    148|                    }
 1272|    304|                    break;
 1273|  2.67k|                default:
  ------------------
  |  Branch (1273:17): [True: 2.67k, False: 1.48k]
  ------------------
 1274|  2.67k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 1275|  2.67k|                                       "token \"" + prop->name + "\" is not recognized");
 1276|  4.15k|                }
 1277|  4.15k|            }
 1278|  62.5k|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (1278:21): [True: 61.7k, False: 756]
  ------------------
 1279|  61.7k|            {
 1280|  61.7k|                processNode(compiler, i);
 1281|  61.7k|            }
 1282|  66.7k|        }
 1283|    974|    }
_ZN4Ogre14PassTranslatorC2Ev:
 1289|      1|        :mPass(0)
 1290|      1|    {
 1291|      1|    }
_ZN4Ogre14PassTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 1294|  45.9k|    {
 1295|  45.9k|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 1296|       |
 1297|  45.9k|        Technique *technique = any_cast<Technique*>(obj->parent->context);
 1298|  45.9k|        mPass = technique->createPass();
 1299|  45.9k|        obj->context = mPass;
 1300|       |
 1301|       |        // Get the name of the technique
 1302|  45.9k|        if(!obj->name.empty())
  ------------------
  |  Branch (1302:12): [True: 45.7k, False: 201]
  ------------------
 1303|  45.7k|            mPass->setName(obj->name);
 1304|       |
 1305|  45.9k|        Real fval;
 1306|  45.9k|        bool bval;
 1307|  45.9k|        uint32 uival;
 1308|       |
 1309|       |        // Set the properties for the material
 1310|  45.9k|        for(auto & i : obj->children)
  ------------------
  |  Branch (1310:22): [True: 8.67k, False: 45.9k]
  ------------------
 1311|  8.67k|        {
 1312|  8.67k|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (1312:16): [True: 5.48k, False: 3.19k]
  ------------------
 1313|  5.48k|            {
 1314|  5.48k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 1315|  5.48k|                switch(prop->id)
 1316|  5.48k|                {
 1317|     14|                case ID_AMBIENT:
  ------------------
  |  Branch (1317:17): [True: 14, False: 5.47k]
  ------------------
 1318|     14|                    if(prop->values.empty())
  ------------------
  |  Branch (1318:24): [True: 0, False: 14]
  ------------------
 1319|      0|                    {
 1320|      0|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 1321|      0|                    }
 1322|     14|                    else if(prop->values.size() > 4)
  ------------------
  |  Branch (1322:29): [True: 0, False: 14]
  ------------------
 1323|      0|                    {
 1324|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1325|      0|                                           "ambient must have at most 4 parameters");
 1326|      0|                    }
 1327|     14|                    else
 1328|     14|                    {
 1329|     14|                        if(getAtomId(prop->values.front()) == ID_VERTEXCOLOUR)
  ------------------
  |  Branch (1329:28): [True: 0, False: 14]
  ------------------
 1330|      0|                        {
 1331|      0|                            mPass->setVertexColourTracking(mPass->getVertexColourTracking() | TVC_AMBIENT);
 1332|      0|                        }
 1333|     14|                        else
 1334|     14|                        {
 1335|     14|                            ColourValue val = ColourValue::White;
 1336|     14|                            if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (1336:32): [True: 5, False: 9]
  ------------------
 1337|      5|                                mPass->setAmbient(val);
 1338|      9|                            else
 1339|      9|                                compiler->addError(*prop, "ambient requires 3 or 4 colour arguments, or a \"vertexcolour\" directive");
 1340|     14|                        }
 1341|     14|                    }
 1342|     14|                    break;
 1343|    184|                case ID_DIFFUSE:
  ------------------
  |  Branch (1343:17): [True: 184, False: 5.30k]
  ------------------
 1344|    184|                    if(prop->values.empty())
  ------------------
  |  Branch (1344:24): [True: 0, False: 184]
  ------------------
 1345|      0|                    {
 1346|      0|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 1347|      0|                    }
 1348|    184|                    else if(prop->values.size() > 4)
  ------------------
  |  Branch (1348:29): [True: 36, False: 148]
  ------------------
 1349|     36|                    {
 1350|     36|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1351|     36|                                           "diffuse must have at most 4 arguments");
 1352|     36|                    }
 1353|    148|                    else
 1354|    148|                    {
 1355|    148|                        if(getAtomId(prop->values.front()) == ID_VERTEXCOLOUR)
  ------------------
  |  Branch (1355:28): [True: 0, False: 148]
  ------------------
 1356|      0|                        {
 1357|      0|                            mPass->setVertexColourTracking(mPass->getVertexColourTracking() | TVC_DIFFUSE);
 1358|      0|                        }
 1359|    148|                        else
 1360|    148|                        {
 1361|    148|                            ColourValue val = ColourValue::White;
 1362|    148|                            if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (1362:32): [True: 130, False: 18]
  ------------------
 1363|    130|                                mPass->setDiffuse(val);
 1364|     18|                            else
 1365|     18|                                compiler->addError(*prop, "diffuse requires 3 or 4 colour arguments, or a \"vertexcolour\" directive");
 1366|    148|                        }
 1367|    148|                    }
 1368|    184|                    break;
 1369|     88|                case ID_SPECULAR:
  ------------------
  |  Branch (1369:17): [True: 88, False: 5.39k]
  ------------------
 1370|     88|                    if(prop->values.empty())
  ------------------
  |  Branch (1370:24): [True: 74, False: 14]
  ------------------
 1371|     74|                    {
 1372|     74|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 1373|     74|                    }
 1374|     14|                    else if(prop->values.size() > 5)
  ------------------
  |  Branch (1374:29): [True: 11, False: 3]
  ------------------
 1375|     11|                    {
 1376|     11|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1377|     11|                                           "specular must have at most 5 arguments");
 1378|     11|                    }
 1379|      3|                    else
 1380|      3|                    {
 1381|      3|                        if(getAtomId(prop->values.front()) == ID_VERTEXCOLOUR)
  ------------------
  |  Branch (1381:28): [True: 0, False: 3]
  ------------------
 1382|      0|                        {
 1383|      0|                            mPass->setVertexColourTracking(mPass->getVertexColourTracking() | TVC_SPECULAR);
 1384|       |
 1385|      0|                            if(prop->values.size() >= 2)
  ------------------
  |  Branch (1385:32): [True: 0, False: 0]
  ------------------
 1386|      0|                            {
 1387|      0|                                Real val = 0;
 1388|      0|                                if(getReal(prop->values.back(), &val))
  ------------------
  |  Branch (1388:36): [True: 0, False: 0]
  ------------------
 1389|      0|                                    mPass->setShininess(val);
 1390|      0|                                else
 1391|      0|                                    compiler->addError(*prop, "specular does not support \"" + prop->values.back()->getValue() + "\" as its second argument");
 1392|      0|                            }
 1393|      0|                        }
 1394|      3|                        else
 1395|      3|                        {
 1396|      3|                            if(prop->values.size() < 4)
  ------------------
  |  Branch (1396:32): [True: 3, False: 0]
  ------------------
 1397|      3|                            {
 1398|      3|                                compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 1399|      3|                                                   "specular expects at least 4 arguments");
 1400|      3|                            }
 1401|      0|                            else
 1402|      0|                            {
 1403|      0|                                ColourValue val;
 1404|      0|                                if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (1404:36): [True: 0, False: 0]
  ------------------
 1405|      0|                                {
 1406|      0|                                    if(prop->values.size() == 4)
  ------------------
  |  Branch (1406:40): [True: 0, False: 0]
  ------------------
 1407|      0|                                    {
 1408|      0|                                        mPass->setShininess(val.a);
 1409|      0|                                        val.a = 1.0f;
 1410|      0|                                        mPass->setSpecular(val);
 1411|      0|                                    }
 1412|      0|                                    else
 1413|      0|                                    {
 1414|      0|                                        mPass->setSpecular(val);
 1415|       |
 1416|      0|                                        Real shininess;
 1417|      0|                                        if(getReal(*getNodeAt(prop->values, 4), &shininess))
  ------------------
  |  Branch (1417:44): [True: 0, False: 0]
  ------------------
 1418|      0|                                            mPass->setShininess(shininess);
 1419|      0|                                        else
 1420|      0|                                            compiler->addError(*prop, "specular fourth argument must be a valid number for shininess attribute");
 1421|      0|                                    }
 1422|      0|                                }
 1423|      0|                                else
 1424|      0|                                {
 1425|      0|                                    compiler->addError(*prop, "specular must have first 3 arguments be a valid colour");
 1426|      0|                                }
 1427|      0|                            }
 1428|       |
 1429|      3|                        }
 1430|      3|                    }
 1431|     88|                    break;
 1432|    241|                case ID_EMISSIVE:
  ------------------
  |  Branch (1432:17): [True: 241, False: 5.24k]
  ------------------
 1433|    241|                    if(prop->values.empty())
  ------------------
  |  Branch (1433:24): [True: 17, False: 224]
  ------------------
 1434|     17|                    {
 1435|     17|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 1436|     17|                    }
 1437|    224|                    else if(prop->values.size() > 4)
  ------------------
  |  Branch (1437:29): [True: 3, False: 221]
  ------------------
 1438|      3|                    {
 1439|      3|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1440|      3|                                           "emissive must have at most 4 arguments");
 1441|      3|                    }
 1442|    221|                    else
 1443|    221|                    {
 1444|    221|                        if(getAtomId(prop->values.front()) == ID_VERTEXCOLOUR)
  ------------------
  |  Branch (1444:28): [True: 0, False: 221]
  ------------------
 1445|      0|                        {
 1446|      0|                            mPass->setVertexColourTracking(mPass->getVertexColourTracking() | TVC_EMISSIVE);
 1447|      0|                        }
 1448|    221|                        else
 1449|    221|                        {
 1450|    221|                            ColourValue val(0.0f, 0.0f, 0.0f, 1.0f);
 1451|    221|                            if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (1451:32): [True: 73, False: 148]
  ------------------
 1452|     73|                                mPass->setSelfIllumination(val);
 1453|    148|                            else
 1454|    148|                                compiler->addError(*prop, "emissive requires 3 or 4 colour arguments, or a \"vertexcolour\" directive");
 1455|    221|                        }
 1456|    221|                    }
 1457|    241|                    break;
 1458|    165|                case ID_SCENE_BLEND:
  ------------------
  |  Branch (1458:17): [True: 165, False: 5.32k]
  ------------------
 1459|    165|                    if(prop->values.size() == 1)
  ------------------
  |  Branch (1459:24): [True: 157, False: 8]
  ------------------
 1460|    157|                    {
 1461|    157|                        SceneBlendType enval;
 1462|    157|                        if(getValue(prop->values.front(), enval))
  ------------------
  |  Branch (1462:28): [True: 153, False: 4]
  ------------------
 1463|    153|                        {
 1464|    153|                            mPass->setSceneBlending(enval);
 1465|    153|                        }
 1466|      4|                        else
 1467|      4|                        {
 1468|      4|                            compiler->addError(*prop, prop->values.front()->getString());
 1469|      4|                        }
 1470|    157|                    }
 1471|      8|                    else if(prop->values.size() == 2)
  ------------------
  |  Branch (1471:29): [True: 3, False: 5]
  ------------------
 1472|      3|                    {
 1473|      3|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1474|      3|                        SceneBlendFactor sbf0, sbf1;
 1475|      3|                        if(getSceneBlendFactor(*i0, &sbf0) && getSceneBlendFactor(*i1, &sbf1))
  ------------------
  |  Branch (1475:28): [True: 0, False: 3]
  |  Branch (1475:63): [True: 0, False: 0]
  ------------------
 1476|      0|                        {
 1477|      0|                            mPass->setSceneBlending(sbf0, sbf1);
 1478|      0|                        }
 1479|      3|                        else
 1480|      3|                        {
 1481|      3|                            compiler->addError(*prop, "scene_blend does not support \"" + (*i0)->getValue() + "\" and \"" + (*i1)->getValue() + "\" as arguments");
 1482|      3|                        }
 1483|      3|                    }
 1484|      5|                    else
 1485|      5|                    {
 1486|      5|                        compiler->addError(*prop, "scene_blend must have 1 or 2 arguments");
 1487|      5|                    }
 1488|    165|                    break;
 1489|     27|                case ID_SEPARATE_SCENE_BLEND:
  ------------------
  |  Branch (1489:17): [True: 27, False: 5.46k]
  ------------------
 1490|     27|                    if(prop->values.size() == 2)
  ------------------
  |  Branch (1490:24): [True: 15, False: 12]
  ------------------
 1491|     15|                    {
 1492|     15|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1493|     15|                        SceneBlendType sbt0, sbt1;
 1494|     15|                        if (getValue(*i0, sbt0) && getValue(*i1, sbt1))
  ------------------
  |  Branch (1494:29): [True: 12, False: 3]
  |  Branch (1494:52): [True: 12, False: 0]
  ------------------
 1495|     12|                        {
 1496|     12|                            mPass->setSeparateSceneBlending(sbt0, sbt1);
 1497|     12|                        }
 1498|      3|                        else
 1499|      3|                        {
 1500|      3|                            compiler->addError(*prop, "one of the arguments to separate_scene_blend is not a valid "
 1501|      3|                                                      "scene blend factor directive");
 1502|      3|                        }
 1503|     15|                    }
 1504|     12|                    else if(prop->values.size() == 4)
  ------------------
  |  Branch (1504:29): [True: 12, False: 0]
  ------------------
 1505|     12|                    {
 1506|     12|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1),
 1507|     12|                            i2 = getNodeAt(prop->values, 2), i3 = getNodeAt(prop->values, 3);
 1508|     12|                        SceneBlendFactor sbf0, sbf1, sbf2, sbf3;
 1509|     12|                        if(getSceneBlendFactor(*i0, &sbf0) && getSceneBlendFactor(*i1, &sbf1) && getSceneBlendFactor(*i2, &sbf2) &&
  ------------------
  |  Branch (1509:28): [True: 0, False: 12]
  |  Branch (1509:63): [True: 0, False: 0]
  |  Branch (1509:98): [True: 0, False: 0]
  ------------------
 1510|      0|                            getSceneBlendFactor(*i3, &sbf3))
  ------------------
  |  Branch (1510:29): [True: 0, False: 0]
  ------------------
 1511|      0|                        {
 1512|      0|                            mPass->setSeparateSceneBlending(sbf0, sbf1, sbf2, sbf3);
 1513|      0|                        }
 1514|     12|                        else
 1515|     12|                        {
 1516|     12|                            compiler->addError(*prop, "one of the arguments to separate_scene_blend is not a valid "
 1517|     12|                                                      "scene blend factor");
 1518|     12|                        }
 1519|     12|                    }
 1520|      0|                    else
 1521|      0|                    {
 1522|      0|                        compiler->addError(*prop, "separate_scene_blend must have 2 or 4 arguments");
 1523|      0|                    }
 1524|     27|                    break;
 1525|     11|                case ID_SCENE_BLEND_OP:
  ------------------
  |  Branch (1525:17): [True: 11, False: 5.47k]
  ------------------
 1526|     11|                    SceneBlendOperation sop;
 1527|     11|                    if(getValue(prop, compiler, sop))
  ------------------
  |  Branch (1527:24): [True: 0, False: 11]
  ------------------
 1528|      0|                        mPass->setSceneBlendingOperation(sop);
 1529|     11|                    break;
 1530|      0|                case ID_SEPARATE_SCENE_BLEND_OP:
  ------------------
  |  Branch (1530:17): [True: 0, False: 5.48k]
  ------------------
 1531|      0|                    if(prop->values.empty())
  ------------------
  |  Branch (1531:24): [True: 0, False: 0]
  ------------------
 1532|      0|                    {
 1533|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1534|      0|                    }
 1535|      0|                    else if(prop->values.size() != 2)
  ------------------
  |  Branch (1535:29): [True: 0, False: 0]
  ------------------
 1536|      0|                    {
 1537|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1538|      0|                                           "separate_scene_blend_op must have 2 arguments");
 1539|      0|                    }
 1540|      0|                    else
 1541|      0|                    {
 1542|      0|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1543|      0|                        SceneBlendOperation op, alphaOp;
 1544|      0|                        if(getValue(*i0, op) && getValue(*i1, alphaOp))
  ------------------
  |  Branch (1544:28): [True: 0, False: 0]
  |  Branch (1544:49): [True: 0, False: 0]
  ------------------
 1545|      0|                        {
 1546|      0|                            mPass->setSeparateSceneBlendingOperation(op, alphaOp);
 1547|      0|                        }
 1548|      0|                        else
 1549|      0|                        {
 1550|      0|                            compiler->addError(*prop, prop->values.front()->getValue() + ": unrecognized argument");
 1551|      0|                        }
 1552|      0|                    }
 1553|      0|                    break;
 1554|    147|                case ID_DEPTH_CHECK:
  ------------------
  |  Branch (1554:17): [True: 147, False: 5.34k]
  ------------------
 1555|    147|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1555:24): [True: 146, False: 1]
  ------------------
 1556|    146|                        mPass->setDepthCheckEnabled(bval);
 1557|    147|                    break;
 1558|     13|                case ID_DEPTH_WRITE:
  ------------------
  |  Branch (1558:17): [True: 13, False: 5.47k]
  ------------------
 1559|     13|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1559:24): [True: 13, False: 0]
  ------------------
 1560|     13|                        mPass->setDepthWriteEnabled(bval);
 1561|     13|                    break;
 1562|     15|                case ID_DEPTH_BIAS:
  ------------------
  |  Branch (1562:17): [True: 15, False: 5.47k]
  ------------------
 1563|     15|                    if(prop->values.empty())
  ------------------
  |  Branch (1563:24): [True: 0, False: 15]
  ------------------
 1564|      0|                    {
 1565|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1566|      0|                    }
 1567|     15|                    else if(prop->values.size() > 2)
  ------------------
  |  Branch (1567:29): [True: 0, False: 15]
  ------------------
 1568|      0|                    {
 1569|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1570|      0|                                           "depth_bias must have at most 2 arguments");
 1571|      0|                    }
 1572|     15|                    else
 1573|     15|                    {
 1574|     15|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1575|     15|                        float val0, val1 = 0.0f;
 1576|     15|                        if(getFloat(*i0, &val0))
  ------------------
  |  Branch (1576:28): [True: 15, False: 0]
  ------------------
 1577|     15|                        {
 1578|     15|                            if(i1 != prop->values.end())
  ------------------
  |  Branch (1578:32): [True: 15, False: 0]
  ------------------
 1579|     15|                                getFloat(*i1, &val1);
 1580|     15|                            mPass->setDepthBias(val0, val1);
 1581|     15|                        }
 1582|      0|                        else
 1583|      0|                        {
 1584|      0|                            compiler->addError(*prop, "depth_bias does not support \"" + (*i0)->getValue() + "\" for argument 1");
 1585|      0|                        }
 1586|     15|                    }
 1587|     15|                    break;
 1588|      4|                case ID_DEPTH_FUNC:
  ------------------
  |  Branch (1588:17): [True: 4, False: 5.48k]
  ------------------
 1589|      4|                    CompareFunction dfunc;
 1590|      4|                    if(getValue(prop, compiler, dfunc))
  ------------------
  |  Branch (1590:24): [True: 2, False: 2]
  ------------------
 1591|      2|                        mPass->setDepthFunction(dfunc);
 1592|      4|                    break;
 1593|      0|                case ID_ITERATION_DEPTH_BIAS:
  ------------------
  |  Branch (1593:17): [True: 0, False: 5.48k]
  ------------------
 1594|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (1594:24): [True: 0, False: 0]
  ------------------
 1595|      0|                        mPass->setIterationDepthBias(fval);
 1596|      0|                    break;
 1597|    153|                case ID_ALPHA_REJECTION:
  ------------------
  |  Branch (1597:17): [True: 153, False: 5.33k]
  ------------------
 1598|    153|                    if(prop->values.empty())
  ------------------
  |  Branch (1598:24): [True: 0, False: 153]
  ------------------
 1599|      0|                    {
 1600|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1601|      0|                    }
 1602|    153|                    else if(prop->values.size() > 2)
  ------------------
  |  Branch (1602:29): [True: 4, False: 149]
  ------------------
 1603|      4|                    {
 1604|      4|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1605|      4|                                           "alpha_rejection must have at most 2 arguments");
 1606|      4|                    }
 1607|    149|                    else
 1608|    149|                    {
 1609|    149|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 1610|    149|                        CompareFunction func;
 1611|    149|                        if(getCompareFunction(*i0, &func))
  ------------------
  |  Branch (1611:28): [True: 133, False: 16]
  ------------------
 1612|    133|                        {
 1613|    133|                            if(i1 != prop->values.end())
  ------------------
  |  Branch (1613:32): [True: 133, False: 0]
  ------------------
 1614|    133|                            {
 1615|    133|                                uint32 val = 0;
 1616|    133|                                if(getUInt(*i1, &val))
  ------------------
  |  Branch (1616:36): [True: 0, False: 133]
  ------------------
 1617|      0|                                    mPass->setAlphaRejectSettings(func, static_cast<unsigned char>(val));
 1618|    133|                                else
 1619|    133|                                    compiler->addError(*prop, (*i1)->getValue() + " is not a valid integer");
 1620|    133|                            }
 1621|      0|                            else
 1622|      0|                                mPass->setAlphaRejectFunction(func);
 1623|    133|                        }
 1624|     16|                        else
 1625|     16|                            compiler->addError(*prop, (*i0)->getValue() + " is not a valid CompareFunction");
 1626|    149|                    }
 1627|    153|                    break;
 1628|      0|                case ID_ALPHA_TO_COVERAGE:
  ------------------
  |  Branch (1628:17): [True: 0, False: 5.48k]
  ------------------
 1629|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1629:24): [True: 0, False: 0]
  ------------------
 1630|      0|                        mPass->setAlphaToCoverageEnabled(bval);
 1631|      0|                    break;
 1632|      0|                case ID_LIGHT_SCISSOR:
  ------------------
  |  Branch (1632:17): [True: 0, False: 5.48k]
  ------------------
 1633|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1633:24): [True: 0, False: 0]
  ------------------
 1634|      0|                        mPass->setLightScissoringEnabled(bval);
 1635|      0|                    break;
 1636|      0|                case ID_LIGHT_CLIP_PLANES:
  ------------------
  |  Branch (1636:17): [True: 0, False: 5.48k]
  ------------------
 1637|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1637:24): [True: 0, False: 0]
  ------------------
 1638|      0|                        mPass->setLightClipPlanesEnabled(bval);
 1639|      0|                    break;
 1640|      0|                case ID_TRANSPARENT_SORTING:
  ------------------
  |  Branch (1640:17): [True: 0, False: 5.48k]
  ------------------
 1641|      0|                    if(prop->values.empty())
  ------------------
  |  Branch (1641:24): [True: 0, False: 0]
  ------------------
 1642|      0|                    {
 1643|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1644|      0|                    }
 1645|      0|                    else if(prop->values.size() > 1)
  ------------------
  |  Branch (1645:29): [True: 0, False: 0]
  ------------------
 1646|      0|                    {
 1647|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1648|      0|                                           "transparent_sorting must have at most 1 argument");
 1649|      0|                    }
 1650|      0|                    else
 1651|      0|                    {
 1652|      0|                        bool val = true;
 1653|      0|                        if(getBoolean(prop->values.front(), &val))
  ------------------
  |  Branch (1653:28): [True: 0, False: 0]
  ------------------
 1654|      0|                        {
 1655|      0|                            mPass->setTransparentSortingEnabled(val);
 1656|      0|                            mPass->setTransparentSortingForced(false);
 1657|      0|                        }
 1658|      0|                        else
 1659|      0|                        {
 1660|      0|                            String val2;
 1661|      0|                            if (prop->values.front()->getString()=="force")
  ------------------
  |  Branch (1661:33): [True: 0, False: 0]
  ------------------
 1662|      0|                            {
 1663|      0|                                mPass->setTransparentSortingEnabled(true);
 1664|      0|                                mPass->setTransparentSortingForced(true);
 1665|      0|                            }
 1666|      0|                            else
 1667|      0|                            {
 1668|      0|                                compiler->addError(*prop, prop->values.front()->getValue() + " must be boolean or force");
 1669|      0|                            }
 1670|      0|                        }
 1671|      0|                    }
 1672|      0|                    break;
 1673|      7|                case ID_ILLUMINATION_STAGE:
  ------------------
  |  Branch (1673:17): [True: 7, False: 5.48k]
  ------------------
 1674|      7|                    IlluminationStage is;
 1675|      7|                    if(getValue(prop, compiler, is))
  ------------------
  |  Branch (1675:24): [True: 0, False: 7]
  ------------------
 1676|      0|                        mPass->setIlluminationStage(is);
 1677|      7|                    break;
 1678|     24|                case ID_CULL_HARDWARE:
  ------------------
  |  Branch (1678:17): [True: 24, False: 5.46k]
  ------------------
 1679|     24|                    CullingMode cmode;
 1680|     24|                    if(getValue(prop, compiler, cmode))
  ------------------
  |  Branch (1680:24): [True: 15, False: 9]
  ------------------
 1681|     15|                        mPass->setCullingMode(cmode);
 1682|     24|                    break;
 1683|     11|                case ID_CULL_SOFTWARE:
  ------------------
  |  Branch (1683:17): [True: 11, False: 5.47k]
  ------------------
 1684|     11|                    ManualCullingMode mmode;
 1685|     11|                    if(getValue(prop, compiler, mmode))
  ------------------
  |  Branch (1685:24): [True: 0, False: 11]
  ------------------
 1686|      0|                        mPass->setManualCullingMode(mmode);
 1687|     11|                    compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 1688|     11|                                       prop->name + ". Only used by the BSP scene manager.");
 1689|     11|                    break;
 1690|     49|                case ID_LIGHTING:
  ------------------
  |  Branch (1690:17): [True: 49, False: 5.43k]
  ------------------
 1691|     49|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1691:24): [True: 36, False: 13]
  ------------------
 1692|     36|                        mPass->setLightingEnabled(bval);
 1693|     49|                    break;
 1694|      0|                case ID_SHADING:
  ------------------
  |  Branch (1694:17): [True: 0, False: 5.48k]
  ------------------
 1695|      0|                    ShadeOptions smode;
 1696|      0|                    if(getValue(prop, compiler, smode))
  ------------------
  |  Branch (1696:24): [True: 0, False: 0]
  ------------------
 1697|      0|                        mPass->setShadingMode(smode);
 1698|      0|                    break;
 1699|     17|                case ID_POLYGON_MODE:
  ------------------
  |  Branch (1699:17): [True: 17, False: 5.47k]
  ------------------
 1700|     17|                    PolygonMode pmode;
 1701|     17|                    if(getValue(prop, compiler, pmode))
  ------------------
  |  Branch (1701:24): [True: 4, False: 13]
  ------------------
 1702|      4|                        mPass->setPolygonMode(pmode);
 1703|     17|                    break;
 1704|     10|                case ID_POLYGON_MODE_OVERRIDEABLE:
  ------------------
  |  Branch (1704:17): [True: 10, False: 5.47k]
  ------------------
 1705|     10|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1705:24): [True: 8, False: 2]
  ------------------
 1706|      8|                        mPass->setPolygonModeOverrideable(bval);
 1707|     10|                    break;
 1708|    118|                case ID_FOG_OVERRIDE:
  ------------------
  |  Branch (1708:17): [True: 118, False: 5.36k]
  ------------------
 1709|    118|                    if(prop->values.empty())
  ------------------
  |  Branch (1709:24): [True: 2, False: 116]
  ------------------
 1710|      2|                    {
 1711|      2|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1712|      2|                    }
 1713|    116|                    else if(prop->values.size() > 8)
  ------------------
  |  Branch (1713:29): [True: 16, False: 100]
  ------------------
 1714|     16|                    {
 1715|     16|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1716|     16|                                           "fog_override must have at most 8 arguments");
 1717|     16|                    }
 1718|    100|                    else
 1719|    100|                    {
 1720|    100|                        AbstractNodeList::const_iterator i1 = getNodeAt(prop->values, 1), i2 = getNodeAt(prop->values, 2);
 1721|    100|                        bool val = false;
 1722|    100|                        if(getBoolean(prop->values.front(), &val))
  ------------------
  |  Branch (1722:28): [True: 62, False: 38]
  ------------------
 1723|     62|                        {
 1724|     62|                            FogMode mode = FOG_NONE;
 1725|     62|                            ColourValue clr = ColourValue::White;
 1726|     62|                            Real dens = 0.001, start = 0.0f, end = 1.0f;
 1727|       |
 1728|     62|                            if(i1 != prop->values.end())
  ------------------
  |  Branch (1728:32): [True: 62, False: 0]
  ------------------
 1729|     62|                            {
 1730|     62|                                if((*i1)->type == ANT_ATOM)
  ------------------
  |  Branch (1730:36): [True: 62, False: 0]
  ------------------
 1731|     62|                                {
 1732|     62|                                    AtomAbstractNode *atom = (AtomAbstractNode*)(*i1).get();
 1733|     62|                                    switch(atom->id)
 1734|     62|                                    {
 1735|      0|                                    case ID_NONE:
  ------------------
  |  Branch (1735:37): [True: 0, False: 62]
  ------------------
 1736|      0|                                        mode = FOG_NONE;
 1737|      0|                                        break;
 1738|      2|                                    case ID_LINEAR:
  ------------------
  |  Branch (1738:37): [True: 2, False: 60]
  ------------------
 1739|      2|                                        mode = FOG_LINEAR;
 1740|      2|                                        break;
 1741|     30|                                    case ID_EXP:
  ------------------
  |  Branch (1741:37): [True: 30, False: 32]
  ------------------
 1742|     30|                                        mode = FOG_EXP;
 1743|     30|                                        break;
 1744|      0|                                    case ID_EXP2:
  ------------------
  |  Branch (1744:37): [True: 0, False: 62]
  ------------------
 1745|      0|                                        mode = FOG_EXP2;
 1746|      0|                                        break;
 1747|     30|                                    default:
  ------------------
  |  Branch (1747:37): [True: 30, False: 32]
  ------------------
 1748|     30|                                        compiler->addError(*prop, (*i1)->getValue() + " is not a valid FogMode");
 1749|     30|                                        break;
 1750|     62|                                    }
 1751|     62|                                }
 1752|      0|                                else
 1753|      0|                                {
 1754|      0|                                    compiler->addError(*prop, (*i1)->getValue() + " is not a valid FogMode");
 1755|      0|                                    break;
 1756|      0|                                }
 1757|     62|                            }
 1758|       |
 1759|     62|                            if(i2 != prop->values.end())
  ------------------
  |  Branch (1759:32): [True: 2, False: 60]
  ------------------
 1760|      2|                            {
 1761|      2|                                if(!getColour(i2, prop->values.end(), &clr, 3))
  ------------------
  |  Branch (1761:36): [True: 2, False: 0]
  ------------------
 1762|      2|                                {
 1763|      2|                                    compiler->addError(*prop, (*i2)->getValue() + " is not a valid colour");
 1764|      2|                                    break;
 1765|      2|                                }
 1766|       |
 1767|      0|                                i2 = getNodeAt(prop->values, 5);
 1768|      0|                            }
 1769|       |
 1770|     60|                            if(i2 != prop->values.end())
  ------------------
  |  Branch (1770:32): [True: 0, False: 60]
  ------------------
 1771|      0|                            {
 1772|      0|                                if(!getReal(*i2, &dens))
  ------------------
  |  Branch (1772:36): [True: 0, False: 0]
  ------------------
 1773|      0|                                {
 1774|      0|                                    compiler->addError(*prop, (*i2)->getValue() + " is not a valid number");
 1775|      0|                                    break;
 1776|      0|                                }
 1777|      0|                                ++i2;
 1778|      0|                            }
 1779|       |
 1780|     60|                            if(i2 != prop->values.end())
  ------------------
  |  Branch (1780:32): [True: 0, False: 60]
  ------------------
 1781|      0|                            {
 1782|      0|                                if(!getReal(*i2, &start))
  ------------------
  |  Branch (1782:36): [True: 0, False: 0]
  ------------------
 1783|      0|                                {
 1784|      0|                                    compiler->addError(*prop, (*i2)->getValue() + " is not a valid number");
 1785|      0|                                    return;
 1786|      0|                                }
 1787|      0|                                ++i2;
 1788|      0|                            }
 1789|       |
 1790|     60|                            if(i2 != prop->values.end())
  ------------------
  |  Branch (1790:32): [True: 0, False: 60]
  ------------------
 1791|      0|                            {
 1792|      0|                                if(!getReal(*i2, &end))
  ------------------
  |  Branch (1792:36): [True: 0, False: 0]
  ------------------
 1793|      0|                                {
 1794|      0|                                    compiler->addError(*prop, (*i2)->getValue() + " is not a valid number");
 1795|      0|                                    return;
 1796|      0|                                }
 1797|      0|                                ++i2;
 1798|      0|                            }
 1799|       |
 1800|     60|                            mPass->setFog(val, mode, clr, dens, start, end);
 1801|     60|                        }
 1802|     38|                        else
 1803|     38|                            compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid boolean");
 1804|    100|                    }
 1805|    116|                    break;
 1806|    116|                case ID_COLOUR_WRITE:
  ------------------
  |  Branch (1806:17): [True: 68, False: 5.41k]
  ------------------
 1807|     68|                    if(prop->values.empty())
  ------------------
  |  Branch (1807:24): [True: 0, False: 68]
  ------------------
 1808|      0|                    {
 1809|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1810|      0|                    }
 1811|     68|                    else if(prop->values.size() == 1)
  ------------------
  |  Branch (1811:29): [True: 5, False: 63]
  ------------------
 1812|      5|                    {
 1813|      5|                        if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1813:28): [True: 0, False: 5]
  ------------------
 1814|      0|                            mPass->setColourWriteEnabled(bval);
 1815|      5|                    }
 1816|     63|                    else if(prop->values.size() != 4)
  ------------------
  |  Branch (1816:29): [True: 16, False: 47]
  ------------------
 1817|     16|                    {
 1818|     16|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1819|     16|                                           "colour_write must have exactly 1 or 4 arguments");
 1820|     16|                    }
 1821|     47|                    else
 1822|     47|                    {
 1823|     47|                        bool colourMask[] = {false ,false ,false, false};
 1824|       |
 1825|     47|                        uint8 channelIndex = 0;
 1826|     47|                        for(const AbstractNodePtr& abstractNode : prop->values)
  ------------------
  |  Branch (1826:65): [True: 77, False: 0]
  ------------------
 1827|     77|                        {
 1828|     77|                            if(!getBoolean(abstractNode, &colourMask[channelIndex++]))
  ------------------
  |  Branch (1828:32): [True: 47, False: 30]
  ------------------
 1829|     47|                            {
 1830|     47|                                compiler->addError(*prop, abstractNode->getValue() + " is not a valid boolean");
 1831|     47|                                break;
 1832|     47|                            }
 1833|     77|                        }
 1834|       |
 1835|     47|                        mPass->setColourWriteEnabled(colourMask[0], colourMask[1], colourMask[2], colourMask[3]);
 1836|     47|                    }
 1837|     68|                    break;
 1838|     10|                case ID_MAX_LIGHTS:
  ------------------
  |  Branch (1838:17): [True: 10, False: 5.47k]
  ------------------
 1839|     10|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (1839:24): [True: 3, False: 7]
  ------------------
 1840|      3|                        mPass->setMaxSimultaneousLights(Math::uint16Cast(uival));
 1841|     10|                    break;
 1842|      4|                case ID_START_LIGHT:
  ------------------
  |  Branch (1842:17): [True: 4, False: 5.48k]
  ------------------
 1843|      4|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (1843:24): [True: 0, False: 4]
  ------------------
 1844|      0|                        mPass->setStartLight(static_cast<uint16>(uival));
 1845|      4|                    break;
 1846|      2|                case ID_LIGHT_MASK:
  ------------------
  |  Branch (1846:17): [True: 2, False: 5.48k]
  ------------------
 1847|      2|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (1847:24): [True: 2, False: 0]
  ------------------
 1848|      2|                        mPass->setLightMask(static_cast<uint16>(uival));
 1849|      2|                    break;
 1850|      1|                case ID_ITERATION:
  ------------------
  |  Branch (1850:17): [True: 1, False: 5.48k]
  ------------------
 1851|      1|                {
 1852|      1|                    if(prop->values.empty())
  ------------------
  |  Branch (1852:24): [True: 1, False: 0]
  ------------------
 1853|      1|                    {
 1854|      1|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1855|      1|                        break;
 1856|      1|                    }
 1857|       |
 1858|      0|                    auto setLightType = [this, prop, compiler](AbstractNodeList::const_iterator it)
 1859|      0|                    {
 1860|      0|                        if(it == prop->values.end())
 1861|      0|                        {
 1862|      0|                            mPass->setIteratePerLight(true, false);
 1863|      0|                            return;
 1864|      0|                        }
 1865|      0|                        switch(getAtomId(*it))
 1866|      0|                        {
 1867|      0|                        case ID_POINT:
 1868|      0|                            mPass->setIteratePerLight(true, true, Light::LT_POINT);
 1869|      0|                            break;
 1870|      0|                        case ID_DIRECTIONAL:
 1871|      0|                            mPass->setIteratePerLight(true, true, Light::LT_DIRECTIONAL);
 1872|      0|                            break;
 1873|      0|                        case ID_SPOT:
 1874|      0|                            mPass->setIteratePerLight(true, true, Light::LT_SPOTLIGHT);
 1875|      0|                            break;
 1876|      0|                        default:
 1877|       |                            // no ID_RECT to keep the header ABI stable
 1878|      0|                            if ((*it)->getValue() == "rect")
 1879|      0|                                mPass->setIteratePerLight(true, true, Light::LT_RECTLIGHT);
 1880|      0|                            else
 1881|      0|                                compiler->addError(*prop, (*it)->getValue() + " is not a valid light type (point, directional, spot, or rect)");
 1882|      0|                        }
 1883|      0|                    };
 1884|       |
 1885|      0|                    AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0);
 1886|      0|                    auto atomid = getAtomId(*i0);
 1887|      0|                    if(atomid == ID_ONCE)
  ------------------
  |  Branch (1887:24): [True: 0, False: 0]
  ------------------
 1888|      0|                    {
 1889|      0|                        mPass->setIteratePerLight(false);
 1890|      0|                    }
 1891|      0|                    else if(atomid == ID_ONCE_PER_LIGHT)
  ------------------
  |  Branch (1891:29): [True: 0, False: 0]
  ------------------
 1892|      0|                    {
 1893|      0|                        setLightType(getNodeAt(prop->values, 1));
 1894|      0|                    }
 1895|      0|                    else if(getValue(*i0, uival))
  ------------------
  |  Branch (1895:29): [True: 0, False: 0]
  ------------------
 1896|      0|                    {
 1897|      0|                        mPass->setPassIterationCount(uival);
 1898|       |
 1899|      0|                        AbstractNodeList::const_iterator i1 = getNodeAt(prop->values, 1);
 1900|      0|                        if(i1 != prop->values.end())
  ------------------
  |  Branch (1900:28): [True: 0, False: 0]
  ------------------
 1901|      0|                        {
 1902|      0|                            atomid = getAtomId(*i1);
 1903|      0|                            if(atomid == ID_PER_LIGHT)
  ------------------
  |  Branch (1903:32): [True: 0, False: 0]
  ------------------
 1904|      0|                            {
 1905|      0|                                setLightType(getNodeAt(prop->values, 2));
 1906|      0|                            }
 1907|      0|                            else if(atomid == ID_PER_N_LIGHTS)
  ------------------
  |  Branch (1907:37): [True: 0, False: 0]
  ------------------
 1908|      0|                            {
 1909|      0|                                AbstractNodeList::const_iterator i2 = getNodeAt(prop->values, 2);
 1910|      0|                                if(i2 != prop->values.end() && getValue(*i2, uival))
  ------------------
  |  Branch (1910:36): [True: 0, False: 0]
  |  Branch (1910:36): [True: 0, False: 0]
  |  Branch (1910:64): [True: 0, False: 0]
  ------------------
 1911|      0|                                {
 1912|      0|                                    mPass->setLightCountPerIteration(static_cast<unsigned short>(uival));
 1913|      0|                                    setLightType(getNodeAt(prop->values, 3));
 1914|      0|                                }
 1915|      0|                                else
 1916|      0|                                {
 1917|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 1918|      0|                                                       "per_n_lights requires a light count");
 1919|      0|                                }
 1920|      0|                            }
 1921|      0|                        }
 1922|      0|                    }
 1923|      0|                    else
 1924|      0|                    {
 1925|      0|                        compiler->addError(*prop);
 1926|      0|                    }
 1927|      0|                }
 1928|      0|                break;
 1929|      0|                case ID_LINE_WIDTH:
  ------------------
  |  Branch (1929:17): [True: 0, False: 5.48k]
  ------------------
 1930|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (1930:24): [True: 0, False: 0]
  ------------------
 1931|      0|                        mPass->setLineWidth(fval);
 1932|      0|                    break;
 1933|      0|                case ID_POINT_SIZE:
  ------------------
  |  Branch (1933:17): [True: 0, False: 5.48k]
  ------------------
 1934|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (1934:24): [True: 0, False: 0]
  ------------------
 1935|      0|                        mPass->setPointSize(fval);
 1936|      0|                    break;
 1937|      0|                case ID_POINT_SPRITES:
  ------------------
  |  Branch (1937:17): [True: 0, False: 5.48k]
  ------------------
 1938|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (1938:24): [True: 0, False: 0]
  ------------------
 1939|      0|                        mPass->setPointSpritesEnabled(bval);
 1940|      0|                    break;
 1941|      7|                case ID_POINT_SIZE_ATTENUATION:
  ------------------
  |  Branch (1941:17): [True: 7, False: 5.48k]
  ------------------
 1942|      7|                    if(prop->values.empty())
  ------------------
  |  Branch (1942:24): [True: 0, False: 7]
  ------------------
 1943|      0|                    {
 1944|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 1945|      0|                    }
 1946|      7|                    else if(prop->values.size() > 4)
  ------------------
  |  Branch (1946:29): [True: 0, False: 7]
  ------------------
 1947|      0|                    {
 1948|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 1949|      0|                                           "point_size_attenuation must have at most 4 arguments");
 1950|      0|                    }
 1951|      7|                    else
 1952|      7|                    {
 1953|      7|                        bool val = false;
 1954|      7|                        if(getBoolean(prop->values.front(), &val))
  ------------------
  |  Branch (1954:28): [True: 0, False: 7]
  ------------------
 1955|      0|                        {
 1956|      0|                            if(val)
  ------------------
  |  Branch (1956:32): [True: 0, False: 0]
  ------------------
 1957|      0|                            {
 1958|      0|                                if (prop->values.size() > 1)
  ------------------
  |  Branch (1958:37): [True: 0, False: 0]
  ------------------
 1959|      0|                                {
 1960|      0|                                    std::vector<float> data;
 1961|      0|                                    if(prop->values.size() != 4 || !getVector(++prop->values.begin(), prop->values.end(), data, 3))
  ------------------
  |  Branch (1961:40): [True: 0, False: 0]
  |  Branch (1961:40): [True: 0, False: 0]
  |  Branch (1961:68): [True: 0, False: 0]
  ------------------
 1962|      0|                                    {
 1963|      0|                                        compiler->addError(*prop);
 1964|      0|                                        return;
 1965|      0|                                    }
 1966|      0|                                    mPass->setPointAttenuation(true, data[0], data[1], data[2]);
 1967|      0|                                }
 1968|      0|                                else
 1969|      0|                                {
 1970|      0|                                    mPass->setPointAttenuation(true);
 1971|      0|                                }
 1972|      0|                            }
 1973|      0|                            else
 1974|      0|                            {
 1975|      0|                                mPass->setPointAttenuation(false);
 1976|      0|                            }
 1977|      0|                        }
 1978|      7|                        else
 1979|      7|                            compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid boolean");
 1980|      7|                    }
 1981|      7|                    break;
 1982|      7|                case ID_POINT_SIZE_MIN:
  ------------------
  |  Branch (1982:17): [True: 2, False: 5.48k]
  ------------------
 1983|      2|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (1983:24): [True: 0, False: 2]
  ------------------
 1984|      0|                        mPass->setPointMinSize(fval);
 1985|      2|                    break;
 1986|      0|                case ID_POINT_SIZE_MAX:
  ------------------
  |  Branch (1986:17): [True: 0, False: 5.48k]
  ------------------
 1987|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (1987:24): [True: 0, False: 0]
  ------------------
 1988|      0|                        mPass->setPointMaxSize(fval);
 1989|      0|                    break;
 1990|  4.09k|                default:
  ------------------
  |  Branch (1990:17): [True: 4.09k, False: 1.39k]
  ------------------
 1991|  4.09k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 1992|  4.09k|                                       "token \"" + prop->name + "\" is not recognized");
 1993|  5.48k|                }
 1994|  5.48k|            }
 1995|  3.19k|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (1995:21): [True: 2.71k, False: 480]
  ------------------
 1996|  2.71k|            {
 1997|  2.71k|                ObjectAbstractNode *child = static_cast<ObjectAbstractNode*>(i.get());
 1998|  2.71k|                switch(child->id)
 1999|  2.71k|                {
 2000|     42|                case ID_FRAGMENT_PROGRAM_REF:
  ------------------
  |  Branch (2000:17): [True: 42, False: 2.66k]
  ------------------
 2001|     51|                case ID_VERTEX_PROGRAM_REF:
  ------------------
  |  Branch (2001:17): [True: 9, False: 2.70k]
  ------------------
 2002|     51|                case ID_GEOMETRY_PROGRAM_REF:
  ------------------
  |  Branch (2002:17): [True: 0, False: 2.71k]
  ------------------
 2003|     51|                case ID_TESSELLATION_HULL_PROGRAM_REF:
  ------------------
  |  Branch (2003:17): [True: 0, False: 2.71k]
  ------------------
 2004|     51|                case ID_TESSELLATION_DOMAIN_PROGRAM_REF:
  ------------------
  |  Branch (2004:17): [True: 0, False: 2.71k]
  ------------------
 2005|     51|                case ID_COMPUTE_PROGRAM_REF:
  ------------------
  |  Branch (2005:17): [True: 0, False: 2.71k]
  ------------------
 2006|     51|                case ID_MESH_PROGRAM_REF:
  ------------------
  |  Branch (2006:17): [True: 0, False: 2.71k]
  ------------------
 2007|     51|                case ID_TASK_PROGRAM_REF:
  ------------------
  |  Branch (2007:17): [True: 0, False: 2.71k]
  ------------------
 2008|     51|                    translateProgramRef(getProgramType(child->id), compiler, child);
 2009|     51|                    break;
 2010|      0|                case ID_SHADOW_CASTER_VERTEX_PROGRAM_REF:
  ------------------
  |  Branch (2010:17): [True: 0, False: 2.71k]
  ------------------
 2011|      0|                    translateShadowCasterProgramRef(GPT_VERTEX_PROGRAM, compiler, child);
 2012|      0|                    break;
 2013|    274|                case ID_SHADOW_CASTER_FRAGMENT_PROGRAM_REF:
  ------------------
  |  Branch (2013:17): [True: 274, False: 2.43k]
  ------------------
 2014|    274|                    translateShadowCasterProgramRef(GPT_FRAGMENT_PROGRAM, compiler, child);
 2015|    274|                    break;
 2016|      0|                case ID_SHADOW_RECEIVER_VERTEX_PROGRAM_REF:
  ------------------
  |  Branch (2016:17): [True: 0, False: 2.71k]
  ------------------
 2017|      0|                    translateShadowReceiverProgramRef(GPT_VERTEX_PROGRAM, compiler, child);
 2018|      0|                    break;
 2019|      4|                case ID_SHADOW_RECEIVER_FRAGMENT_PROGRAM_REF:
  ------------------
  |  Branch (2019:17): [True: 4, False: 2.70k]
  ------------------
 2020|      4|                    translateShadowReceiverProgramRef(GPT_FRAGMENT_PROGRAM, compiler, child);
 2021|      4|                    break;
 2022|  1.79k|                default:
  ------------------
  |  Branch (2022:17): [True: 1.79k, False: 921]
  ------------------
 2023|  1.79k|                    processNode(compiler, i);
 2024|  1.79k|                    break;
 2025|      8|                case ID_FRAGMENT_PROGRAM:
  ------------------
  |  Branch (2025:17): [True: 8, False: 2.70k]
  ------------------
 2026|     42|                case ID_VERTEX_PROGRAM:
  ------------------
  |  Branch (2026:17): [True: 34, False: 2.67k]
  ------------------
 2027|     48|                case ID_GEOMETRY_PROGRAM:
  ------------------
  |  Branch (2027:17): [True: 6, False: 2.70k]
  ------------------
 2028|     67|                case ID_TESSELLATION_HULL_PROGRAM:
  ------------------
  |  Branch (2028:17): [True: 19, False: 2.69k]
  ------------------
 2029|    592|                case ID_TESSELLATION_DOMAIN_PROGRAM:
  ------------------
  |  Branch (2029:17): [True: 525, False: 2.18k]
  ------------------
 2030|    592|                case ID_COMPUTE_PROGRAM:
  ------------------
  |  Branch (2030:17): [True: 0, False: 2.71k]
  ------------------
 2031|    592|                case ID_MESH_PROGRAM:
  ------------------
  |  Branch (2031:17): [True: 0, False: 2.71k]
  ------------------
 2032|    592|                case ID_TASK_PROGRAM:
  ------------------
  |  Branch (2032:17): [True: 0, False: 2.71k]
  ------------------
 2033|    592|                {
 2034|       |                    // auto assign inline defined programs
 2035|    592|                    processNode(compiler, i);
 2036|    592|                    GpuProgramType type = getProgramType(child->id);
 2037|    592|                    mPass->setGpuProgram(type, GpuProgramUsage::_getProgramByName(child->name, mPass->getResourceGroup(), type));
 2038|    592|                }
 2039|  2.71k|                }
 2040|  2.71k|            }
 2041|  8.67k|        }
 2042|  45.9k|    }
_ZN4Ogre14PassTranslator19translateProgramRefENS_14GpuProgramTypeEPNS_14ScriptCompilerEPNS_18ObjectAbstractNodeE:
 2069|     51|    {
 2070|     51|        auto program = getProgram(compiler, node);
 2071|     51|        if(!program) return;
  ------------------
  |  Branch (2071:12): [True: 45, False: 6]
  ------------------
 2072|      6|        auto pass = any_cast<Pass*>(node->parent->context);
 2073|       |
 2074|      6|        pass->setGpuProgram(type, program);
 2075|      6|        if(program->isSupported())
  ------------------
  |  Branch (2075:12): [True: 0, False: 6]
  ------------------
 2076|      0|        {
 2077|      0|            GpuProgramParametersSharedPtr params = pass->getGpuProgramParameters(type);
 2078|      0|            GpuProgramTranslator::translateProgramParameters(compiler, params, node);
 2079|      0|        }
 2080|      6|    }
_ZN4Ogre14PassTranslator31translateShadowCasterProgramRefENS_14GpuProgramTypeEPNS_14ScriptCompilerEPNS_18ObjectAbstractNodeE:
 2083|    274|    {
 2084|    274|        auto program = getProgram(compiler, node);
 2085|    274|        if(!program) return;
  ------------------
  |  Branch (2085:12): [True: 5, False: 269]
  ------------------
 2086|    269|        auto pass = any_cast<Pass*>(node->parent->context);
 2087|       |
 2088|    269|        compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, node->file, node->line,
 2089|    269|                           node->cls + ". Use shadow_caster_material instead");
 2090|       |
 2091|    269|        auto caster_mat = pass->getParent()->getShadowCasterMaterial();
 2092|    269|        if(!caster_mat)
  ------------------
  |  Branch (2092:12): [True: 269, False: 0]
  ------------------
 2093|    269|        {
 2094|    269|            auto src_mat = pass->getParent()->getParent();
 2095|       |            // only first pass of this will be used. The caster material is technique specific.
 2096|    269|            caster_mat = src_mat->clone(
 2097|    269|                StringUtil::format("%s/%p/CasterFallback", src_mat->getName().c_str(), pass->getParent()));
 2098|    269|            pass->getParent()->setShadowCasterMaterial(caster_mat);
 2099|    269|        }
 2100|    269|        auto caster_pass = caster_mat->getTechnique(0)->getPass(0);
 2101|       |
 2102|    269|        caster_pass->setGpuProgram(type, program);
 2103|    269|        if(program->isSupported())
  ------------------
  |  Branch (2103:12): [True: 0, False: 269]
  ------------------
 2104|      0|        {
 2105|      0|            GpuProgramParametersSharedPtr params = caster_pass->getGpuProgramParameters(type);
 2106|      0|            GpuProgramTranslator::translateProgramParameters(compiler, params, node);
 2107|      0|        }
 2108|    269|    }
_ZN4Ogre14PassTranslator33translateShadowReceiverProgramRefENS_14GpuProgramTypeEPNS_14ScriptCompilerEPNS_18ObjectAbstractNodeE:
 2111|      4|    {
 2112|      4|        auto program = getProgram(compiler, node);
 2113|      4|        if(!program) return;
  ------------------
  |  Branch (2113:12): [True: 4, False: 0]
  ------------------
 2114|      0|        auto pass = any_cast<Pass*>(node->parent->context);
 2115|       |
 2116|      0|        compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, node->file, node->line,
 2117|      0|                           node->cls + ". Use shadow_receiver_material instead");
 2118|       |
 2119|      0|        auto receiver_mat = pass->getParent()->getShadowReceiverMaterial();
 2120|      0|        if(!receiver_mat)
  ------------------
  |  Branch (2120:12): [True: 0, False: 0]
  ------------------
 2121|      0|        {
 2122|      0|            auto src_mat = pass->getParent()->getParent();
 2123|       |            // only first pass of this will be used
 2124|      0|            receiver_mat = src_mat->clone(src_mat->getName()+"/ReceiverFallback");
 2125|      0|            pass->getParent()->setShadowReceiverMaterial(receiver_mat);
 2126|      0|        }
 2127|      0|        auto receiver_pass = receiver_mat->getTechnique(0)->getPass(0);
 2128|       |
 2129|      0|        receiver_pass->setGpuProgram(type, program);
 2130|      0|        if(program->isSupported())
  ------------------
  |  Branch (2130:12): [True: 0, False: 0]
  ------------------
 2131|      0|        {
 2132|      0|            GpuProgramParametersSharedPtr params = receiver_pass->getGpuProgramParameters(type);
 2133|      0|            GpuProgramTranslator::translateProgramParameters(compiler, params, node);
 2134|      0|        }
 2135|      0|    }
_ZN4Ogre21TextureUnitTranslatorC2Ev:
 2140|      1|        :mUnit(0)
 2141|      1|    {
 2142|      1|    }
_ZN4Ogre17SamplerTranslator21translateSamplerParamEPNS_14ScriptCompilerERKNSt3__110shared_ptrINS_7SamplerEEEPNS_20PropertyAbstractNodeE:
 2145|    372|    {
 2146|    372|        bool bval;
 2147|    372|        Real fval;
 2148|    372|        uint32 uival;
 2149|       |
 2150|    372|        switch(prop->id)
  ------------------
  |  Branch (2150:16): [True: 372, False: 0]
  ------------------
 2151|    372|        {
 2152|    118|        case ID_TEX_ADDRESS_MODE:
  ------------------
  |  Branch (2152:9): [True: 118, False: 254]
  ------------------
 2153|    118|            {
 2154|    118|                if(prop->values.empty())
  ------------------
  |  Branch (2154:20): [True: 67, False: 51]
  ------------------
 2155|     67|                {
 2156|     67|                    compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2157|     67|                }
 2158|     51|                else
 2159|     51|                {
 2160|     51|                    AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2161|     51|                        i1 = getNodeAt(prop->values, 1),
 2162|     51|                        i2 = getNodeAt(prop->values, 2);
 2163|     51|                    Sampler::UVWAddressingMode mode;
 2164|       |
 2165|     51|                    if(!getValue(*i0, mode.u))
  ------------------
  |  Branch (2165:24): [True: 32, False: 19]
  ------------------
 2166|     32|                    {
 2167|     32|                        compiler->addError(*prop, (*i0)->getValue() + " not supported as first argument (must be \"wrap\", \"clamp\", \"mirror\", or \"border\")");
 2168|     32|                        return;
 2169|     32|                    }
 2170|     19|                    mode.v = mode.u;
 2171|     19|                    mode.w = mode.u;
 2172|       |
 2173|     19|                    if(i1 != prop->values.end())
  ------------------
  |  Branch (2173:24): [True: 0, False: 19]
  ------------------
 2174|      0|                    {
 2175|      0|                        if(!getValue(*i1, mode.v))
  ------------------
  |  Branch (2175:28): [True: 0, False: 0]
  ------------------
 2176|      0|                        {
 2177|      0|                            compiler->addError(*prop, (*i1)->getValue() + " not supported as second argument (must be \"wrap\", \"clamp\", \"mirror\", or \"border\")");
 2178|      0|                        }
 2179|      0|                    }
 2180|       |
 2181|     19|                    if(i2 != prop->values.end())
  ------------------
  |  Branch (2181:24): [True: 0, False: 19]
  ------------------
 2182|      0|                    {
 2183|      0|                        if(!getValue(*i2, mode.w))
  ------------------
  |  Branch (2183:28): [True: 0, False: 0]
  ------------------
 2184|      0|                        {
 2185|      0|                            compiler->addError(*prop, (*i2)->getValue() + " not supported as third argument (must be \"wrap\", \"clamp\", \"mirror\", or \"border\")");
 2186|      0|                        }
 2187|      0|                    }
 2188|       |
 2189|     19|                    sampler->setAddressingMode(mode);
 2190|     19|                }
 2191|    118|            }
 2192|     86|            break;
 2193|     86|        case ID_TEX_BORDER_COLOUR:
  ------------------
  |  Branch (2193:9): [True: 35, False: 337]
  ------------------
 2194|     35|            if(prop->values.empty())
  ------------------
  |  Branch (2194:16): [True: 0, False: 35]
  ------------------
 2195|      0|            {
 2196|      0|                compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 2197|      0|            }
 2198|     35|            else
 2199|     35|            {
 2200|     35|                ColourValue val;
 2201|     35|                if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (2201:20): [True: 34, False: 1]
  ------------------
 2202|     34|                    sampler->setBorderColour(val);
 2203|      1|                else
 2204|      1|                    compiler->addError(*prop, "tex_border_colour only accepts a colour argument");
 2205|     35|            }
 2206|     35|            break;
 2207|    217|        case ID_FILTERING:
  ------------------
  |  Branch (2207:9): [True: 217, False: 155]
  ------------------
 2208|    217|            if(prop->values.empty())
  ------------------
  |  Branch (2208:16): [True: 0, False: 217]
  ------------------
 2209|      0|            {
 2210|      0|                compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2211|      0|            }
 2212|    217|            else if(prop->values.size() == 1)
  ------------------
  |  Branch (2212:21): [True: 38, False: 179]
  ------------------
 2213|     38|            {
 2214|     38|                switch(getAtomId(prop->values.front()))
 2215|     38|                {
 2216|     37|                case ID_NONE:
  ------------------
  |  Branch (2216:17): [True: 37, False: 1]
  ------------------
 2217|     37|                    sampler->setFiltering(TFO_NONE);
 2218|     37|                    break;
 2219|      0|                case ID_BILINEAR:
  ------------------
  |  Branch (2219:17): [True: 0, False: 38]
  ------------------
 2220|      0|                    sampler->setFiltering(TFO_BILINEAR);
 2221|      0|                    break;
 2222|      0|                case ID_TRILINEAR:
  ------------------
  |  Branch (2222:17): [True: 0, False: 38]
  ------------------
 2223|      0|                    sampler->setFiltering(TFO_TRILINEAR);
 2224|      0|                    break;
 2225|      0|                case ID_ANISOTROPIC:
  ------------------
  |  Branch (2225:17): [True: 0, False: 38]
  ------------------
 2226|      0|                    sampler->setFiltering(TFO_ANISOTROPIC);
 2227|      0|                    break;
 2228|      1|                default:
  ------------------
  |  Branch (2228:17): [True: 1, False: 37]
  ------------------
 2229|      1|                    compiler->addError(*prop, prop->values.front()->getValue() + " not supported as first argument (must be \"none\", \"bilinear\", \"trilinear\", or \"anisotropic\")");
 2230|     38|                }
 2231|     38|            }
 2232|    179|            else if(prop->values.size() == 3)
  ------------------
  |  Branch (2232:21): [True: 40, False: 139]
  ------------------
 2233|     40|            {
 2234|     40|                AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2235|     40|                    i1 = getNodeAt(prop->values, 1),
 2236|     40|                    i2 = getNodeAt(prop->values, 2);
 2237|     40|                FilterOptions tmin, tmax, tmip;
 2238|     40|                if (getValue(*i0, tmin) && getValue(*i1, tmax) && getValue(*i2, tmip))
  ------------------
  |  Branch (2238:21): [True: 10, False: 30]
  |  Branch (2238:44): [True: 3, False: 7]
  |  Branch (2238:67): [True: 3, False: 0]
  ------------------
 2239|      3|                {
 2240|      3|                    sampler->setFiltering(tmin, tmax, tmip);
 2241|      3|                }
 2242|     37|                else
 2243|     37|                {
 2244|     37|                    compiler->addError(*prop);
 2245|     37|                }
 2246|     40|            }
 2247|    139|            else
 2248|    139|            {
 2249|    139|                compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2250|    139|                                   "filtering must have either 1 or 3 arguments");
 2251|    139|            }
 2252|    217|            break;
 2253|    217|        case ID_CMPTEST:
  ------------------
  |  Branch (2253:9): [True: 0, False: 372]
  ------------------
 2254|      0|            if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (2254:16): [True: 0, False: 0]
  ------------------
 2255|      0|                sampler->setCompareEnabled(bval);
 2256|      0|            break;
 2257|      0|        case ID_CMPFUNC:
  ------------------
  |  Branch (2257:9): [True: 0, False: 372]
  ------------------
 2258|      0|            compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file,
 2259|      0|                prop->line,
 2260|      0|                "compare_func. Use comp_func.");
 2261|      0|            OGRE_FALLTHROUGH;
 2262|      2|        case ID_COMP_FUNC:
  ------------------
  |  Branch (2262:9): [True: 2, False: 370]
  ------------------
 2263|      2|            CompareFunction func;
 2264|      2|            if(getValue(prop, compiler, func))
  ------------------
  |  Branch (2264:16): [True: 0, False: 2]
  ------------------
 2265|      0|                sampler->setCompareFunction(func);
 2266|      2|            break;
 2267|      0|        case ID_MAX_ANISOTROPY:
  ------------------
  |  Branch (2267:9): [True: 0, False: 372]
  ------------------
 2268|      0|            if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (2268:16): [True: 0, False: 0]
  ------------------
 2269|      0|                sampler->setAnisotropy(uival);
 2270|      0|            break;
 2271|      0|        case ID_MIPMAP_BIAS:
  ------------------
  |  Branch (2271:9): [True: 0, False: 372]
  ------------------
 2272|      0|            if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (2272:16): [True: 0, False: 0]
  ------------------
 2273|      0|                sampler->setMipmapBias(fval);
 2274|      0|            break;
 2275|    372|        }
 2276|    372|    }
_ZN4Ogre17SamplerTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 2278|     11|    {
 2279|     11|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 2280|       |
 2281|     11|        if(obj->name.empty())
  ------------------
  |  Branch (2281:12): [True: 0, False: 11]
  ------------------
 2282|      0|        {
 2283|      0|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line);
 2284|      0|            return;
 2285|      0|        }
 2286|       |
 2287|     11|        SamplerPtr sampler = TextureManager::getSingleton().createSampler(obj->name);
 2288|       |
 2289|       |        // Set the properties for the material
 2290|     11|        for(auto & i : obj->children)
  ------------------
  |  Branch (2290:22): [True: 302, False: 11]
  ------------------
 2291|    302|        {
 2292|    302|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (2292:16): [True: 262, False: 40]
  ------------------
 2293|    262|            {
 2294|    262|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 2295|    262|                switch(prop->id)
 2296|    262|                {
 2297|     17|                case ID_TEX_ADDRESS_MODE:
  ------------------
  |  Branch (2297:17): [True: 17, False: 245]
  ------------------
 2298|     51|                case ID_TEX_BORDER_COLOUR:
  ------------------
  |  Branch (2298:17): [True: 34, False: 228]
  ------------------
 2299|    188|                case ID_FILTERING:
  ------------------
  |  Branch (2299:17): [True: 137, False: 125]
  ------------------
 2300|    188|                case ID_CMPTEST:
  ------------------
  |  Branch (2300:17): [True: 0, False: 262]
  ------------------
 2301|    188|                case ID_COMP_FUNC:
  ------------------
  |  Branch (2301:17): [True: 0, False: 262]
  ------------------
 2302|    188|                case ID_MAX_ANISOTROPY:
  ------------------
  |  Branch (2302:17): [True: 0, False: 262]
  ------------------
 2303|    188|                case ID_MIPMAP_BIAS:
  ------------------
  |  Branch (2303:17): [True: 0, False: 262]
  ------------------
 2304|    188|                    translateSamplerParam(compiler, sampler, prop);
 2305|    188|                    break;
 2306|     74|                default:
  ------------------
  |  Branch (2306:17): [True: 74, False: 188]
  ------------------
 2307|     74|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 2308|     74|                                       "token \"" + prop->name + "\" is not recognized");
 2309|    262|                }
 2310|    262|            }
 2311|     40|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (2311:21): [True: 5, False: 35]
  ------------------
 2312|      5|            {
 2313|      5|                processNode(compiler, i);
 2314|      5|            }
 2315|    302|        }
 2316|     11|    }
_ZN4Ogre21TextureUnitTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 2319|    534|    {
 2320|    534|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 2321|       |
 2322|    534|        Pass *pass = any_cast<Pass*>(obj->parent->context);
 2323|    534|        mUnit = pass->createTextureUnitState();
 2324|    534|        obj->context = mUnit;
 2325|       |
 2326|       |        // Get the name of the technique
 2327|    534|        if(!obj->name.empty())
  ------------------
  |  Branch (2327:12): [True: 29, False: 505]
  ------------------
 2328|     29|            mUnit->setName(obj->name);
 2329|       |
 2330|    534|        Real fval;
 2331|    534|        uint32 uival;
 2332|    534|        String sval;
 2333|       |
 2334|       |        // Set the properties for the material
 2335|    534|        for(auto & i : obj->children)
  ------------------
  |  Branch (2335:22): [True: 7.33k, False: 534]
  ------------------
 2336|  7.33k|        {
 2337|  7.33k|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (2337:16): [True: 5.89k, False: 1.43k]
  ------------------
 2338|  5.89k|            {
 2339|  5.89k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 2340|  5.89k|                switch(prop->id)
 2341|  5.89k|                {
 2342|    101|                case ID_TEX_ADDRESS_MODE:
  ------------------
  |  Branch (2342:17): [True: 101, False: 5.79k]
  ------------------
 2343|    102|                case ID_TEX_BORDER_COLOUR:
  ------------------
  |  Branch (2343:17): [True: 1, False: 5.89k]
  ------------------
 2344|    182|                case ID_FILTERING:
  ------------------
  |  Branch (2344:17): [True: 80, False: 5.81k]
  ------------------
 2345|    182|                case ID_CMPTEST:
  ------------------
  |  Branch (2345:17): [True: 0, False: 5.89k]
  ------------------
 2346|    182|                case ID_CMPFUNC:
  ------------------
  |  Branch (2346:17): [True: 0, False: 5.89k]
  ------------------
 2347|    184|                case ID_COMP_FUNC:
  ------------------
  |  Branch (2347:17): [True: 2, False: 5.89k]
  ------------------
 2348|    184|                case ID_MAX_ANISOTROPY:
  ------------------
  |  Branch (2348:17): [True: 0, False: 5.89k]
  ------------------
 2349|    184|                case ID_MIPMAP_BIAS:
  ------------------
  |  Branch (2349:17): [True: 0, False: 5.89k]
  ------------------
 2350|    184|                    SamplerTranslator::translateSamplerParam(compiler, mUnit->_getLocalSampler(), prop);
 2351|    184|                    break;
 2352|    244|                case ID_SAMPLER_REF:
  ------------------
  |  Branch (2352:17): [True: 244, False: 5.65k]
  ------------------
 2353|    244|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (2353:24): [True: 181, False: 63]
  ------------------
 2354|    181|                    {
 2355|    181|                        auto sampler = TextureManager::getSingleton().getSampler(sval);
 2356|    181|                        if(sampler)
  ------------------
  |  Branch (2356:28): [True: 7, False: 174]
  ------------------
 2357|      7|                            mUnit->setSampler(sampler);
 2358|    174|                        else
 2359|    174|                            compiler->addError(ScriptCompiler::CE_REFERENCETOANONEXISTINGOBJECT,
 2360|    174|                                               prop->file, prop->line, sval);
 2361|    181|                    }
 2362|    244|                    break;
 2363|      0|                case ID_UNORDERED_ACCESS_MIP:
  ------------------
  |  Branch (2363:17): [True: 0, False: 5.89k]
  ------------------
 2364|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (2364:24): [True: 0, False: 0]
  ------------------
 2365|      0|                        mUnit->setUnorderedAccessMipLevel(uival);
 2366|      0|                    break;
 2367|      0|                case ID_TEXTURE_ALIAS:
  ------------------
  |  Branch (2367:17): [True: 0, False: 5.89k]
  ------------------
 2368|      0|                    compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 2369|      0|                        "texture_alias. Use 'texture $variable'");
 2370|      0|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (2370:24): [True: 0, False: 0]
  ------------------
 2371|      0|                        mUnit->setName(sval);
 2372|      0|                    break;
 2373|    436|                case ID_TEXTURE:
  ------------------
  |  Branch (2373:17): [True: 436, False: 5.46k]
  ------------------
 2374|    436|                    if(prop->values.empty())
  ------------------
  |  Branch (2374:24): [True: 0, False: 436]
  ------------------
 2375|      0|                    {
 2376|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2377|      0|                    }
 2378|    436|                    else if(prop->values.size() > 5)
  ------------------
  |  Branch (2378:29): [True: 7, False: 429]
  ------------------
 2379|      7|                    {
 2380|      7|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2381|      7|                                           "texture must have at most 5 arguments");
 2382|      7|                    }
 2383|    429|                    else
 2384|    429|                    {
 2385|    429|                        AbstractNodeList::const_iterator j = prop->values.begin();
 2386|    429|                        String val;
 2387|    429|                        if(getString(*j, &val))
  ------------------
  |  Branch (2387:28): [True: 429, False: 0]
  ------------------
 2388|    429|                        {
 2389|    429|                            TextureType texType = TEX_TYPE_2D;
 2390|    429|                            bool isAlpha = false;
 2391|    429|                            bool sRGBRead = false;
 2392|    429|                            PixelFormat format = PF_UNKNOWN;
 2393|    429|                            int mipmaps = TextureManager::getSingleton().getDefaultNumMipmaps(); // MIP_DEFAULT
 2394|       |
 2395|    429|                            ++j;
 2396|    591|                            while(j != prop->values.end())
  ------------------
  |  Branch (2396:35): [True: 162, False: 429]
  ------------------
 2397|    162|                            {
 2398|    162|                                if((*j)->type == ANT_ATOM)
  ------------------
  |  Branch (2398:36): [True: 162, False: 0]
  ------------------
 2399|    162|                                {
 2400|    162|                                    AtomAbstractNode *atom = (AtomAbstractNode*)(*j).get();
 2401|    162|                                    switch(atom->id)
 2402|    162|                                    {
 2403|     84|                                    case ID_1D:
  ------------------
  |  Branch (2403:37): [True: 84, False: 78]
  ------------------
 2404|     84|                                        texType = TEX_TYPE_1D;
 2405|     84|                                        break;
 2406|      1|                                    case ID_2D:
  ------------------
  |  Branch (2406:37): [True: 1, False: 161]
  ------------------
 2407|      1|                                        texType = TEX_TYPE_2D;
 2408|      1|                                        break;
 2409|      0|                                    case ID_3D:
  ------------------
  |  Branch (2409:37): [True: 0, False: 162]
  ------------------
 2410|      0|                                        texType = TEX_TYPE_3D;
 2411|      0|                                        break;
 2412|      0|                                    case ID_CUBIC:
  ------------------
  |  Branch (2412:37): [True: 0, False: 162]
  ------------------
 2413|      0|                                        texType = TEX_TYPE_CUBE_MAP;
 2414|      0|                                        break;
 2415|      0|                                    case ID_2DARRAY:
  ------------------
  |  Branch (2415:37): [True: 0, False: 162]
  ------------------
 2416|      0|                                        texType = TEX_TYPE_2D_ARRAY;
 2417|      0|                                        break;
 2418|      0|                                    case ID_UNLIMITED:
  ------------------
  |  Branch (2418:37): [True: 0, False: 162]
  ------------------
 2419|      0|                                        mipmaps = MIP_UNLIMITED;
 2420|      0|                                        break;
 2421|      0|                                    case ID_ALPHA:
  ------------------
  |  Branch (2421:37): [True: 0, False: 162]
  ------------------
 2422|      0|                                        isAlpha = true;
 2423|      0|                                        break;
 2424|      0|                                    case ID_GAMMA:
  ------------------
  |  Branch (2424:37): [True: 0, False: 162]
  ------------------
 2425|      0|                                        sRGBRead = true;
 2426|      0|                                        break;
 2427|     77|                                    default:
  ------------------
  |  Branch (2427:37): [True: 77, False: 85]
  ------------------
 2428|     77|                                        if(!StringConverter::parse(atom->value, mipmaps))
  ------------------
  |  Branch (2428:44): [True: 55, False: 22]
  ------------------
 2429|     55|                                        {
 2430|     55|                                            format = PixelUtil::getFormatFromName(atom->value, true);
 2431|       |
 2432|     55|                                            if (format == PF_UNKNOWN)
  ------------------
  |  Branch (2432:49): [True: 45, False: 10]
  ------------------
 2433|     45|                                                compiler->addError(*prop, atom->value);
 2434|     55|                                        }
 2435|    162|                                    }
 2436|    162|                                }
 2437|      0|                                else
 2438|      0|                                {
 2439|      0|                                    compiler->addError(*prop, (*j)->getValue() + " is not a supported argument to the texture property");
 2440|      0|                                }
 2441|    162|                                ++j;
 2442|    162|                            }
 2443|       |
 2444|    429|                            String name = processResourceName(compiler, ResourceType::TEXTURE, val);
 2445|       |
 2446|    429|                            if(isAlpha)
  ------------------
  |  Branch (2446:32): [True: 0, False: 429]
  ------------------
 2447|      0|                            {
 2448|       |                                // format = PF_A8; should only be done, if src is luminance, which we dont know here
 2449|      0|                                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file,
 2450|      0|                                                   prop->line, "alpha. Use PF_A8 instead");
 2451|      0|                            }
 2452|       |
 2453|    429|                            if(const auto& tex = TextureManager::getSingleton().getByName(name, mUnit->getParent()->getResourceGroup()))
  ------------------
  |  Branch (2453:44): [True: 359, False: 70]
  ------------------
 2454|    359|                            {
 2455|       |                                // the texture is shared with another texture unit, report any discrepancies
 2456|    359|                                if (tex->getDesiredFormat() != format || tex->getNumMipmaps() != uint(mipmaps) ||
  ------------------
  |  Branch (2456:37): [True: 0, False: 359]
  |  Branch (2456:74): [True: 0, False: 359]
  ------------------
 2457|    359|                                    tex->isHardwareGammaEnabled() != sRGBRead || tex->getTextureType() != texType)
  ------------------
  |  Branch (2457:37): [True: 0, False: 359]
  |  Branch (2457:82): [True: 0, False: 359]
  ------------------
 2458|      0|                                {
 2459|      0|                                    compiler->addError(*prop, "overriding previous declarations of texture '" + name +
 2460|      0|                                                           "' with different parameters");
 2461|      0|                                }
 2462|    359|                            }
 2463|       |
 2464|    429|                            mUnit->setTextureName(name, texType);
 2465|    429|                            mUnit->setDesiredFormat(format);
 2466|    429|                            OGRE_IGNORE_DEPRECATED_BEGIN
 2467|    429|                            mUnit->setIsAlpha(isAlpha);
 2468|    429|                            OGRE_IGNORE_DEPRECATED_END
 2469|    429|                            mUnit->setNumMipmaps(mipmaps);
 2470|    429|                            mUnit->setHardwareGammaEnabled(sRGBRead);
 2471|    429|                        }
 2472|      0|                        else
 2473|      0|                            compiler->addError(*prop, (*j)->getValue() + " is not a valid texture name");
 2474|    429|                    }
 2475|    436|                    break;
 2476|    436|                case ID_ANIM_TEXTURE:
  ------------------
  |  Branch (2476:17): [True: 37, False: 5.86k]
  ------------------
 2477|     37|                    if(prop->values.size() < 3)
  ------------------
  |  Branch (2477:24): [True: 0, False: 37]
  ------------------
 2478|      0|                    {
 2479|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2480|      0|                    }
 2481|     37|                    else
 2482|     37|                    {
 2483|     37|                        AbstractNodeList::const_iterator i1 = getNodeAt(prop->values, 1);
 2484|     37|                        uint32 nframes = 0;
 2485|     37|                        if(getValue(*i1, nframes))
  ------------------
  |  Branch (2485:28): [True: 23, False: 14]
  ------------------
 2486|     23|                        {
 2487|       |                            // Short form
 2488|     23|                            AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i2 = getNodeAt(prop->values, 2);
 2489|     23|                            String val0;
 2490|     23|                            Real val2;
 2491|     23|                            if(nframes && getValue(*i0, val0) && getValue(*i2, val2))
  ------------------
  |  Branch (2491:32): [True: 23, False: 0]
  |  Branch (2491:43): [True: 23, False: 0]
  |  Branch (2491:66): [True: 23, False: 0]
  ------------------
 2492|     23|                            {
 2493|     23|                                mUnit->setAnimatedTextureName(processResourceName(compiler, ResourceType::TEXTURE, val0), nframes, val2);
 2494|     23|                            }
 2495|      0|                            else
 2496|      0|                            {
 2497|      0|                                compiler->addError(*prop, "anim_texture short form requires a texture name, a frame "
 2498|      0|                                                          "count > 0, and animation duration");
 2499|      0|                            }
 2500|     23|                        }
 2501|     14|                        else
 2502|     14|                        {
 2503|       |                            // Long form has n number of frames
 2504|     14|                            Real duration = 0;
 2505|     14|                            AbstractNodeList::const_iterator in = getNodeAt(prop->values, static_cast<int>(prop->values.size()) - 1);
 2506|     14|                            if(getReal(*in, &duration))
  ------------------
  |  Branch (2506:32): [True: 14, False: 0]
  ------------------
 2507|     14|                            {
 2508|     14|                                std::vector<String> names;
 2509|       |
 2510|     14|                                AbstractNodeList::iterator j = prop->values.begin();
 2511|  58.0k|                                while(j != in)
  ------------------
  |  Branch (2511:39): [True: 58.0k, False: 14]
  ------------------
 2512|  58.0k|                                {
 2513|  58.0k|                                    if((*j)->type == ANT_ATOM)
  ------------------
  |  Branch (2513:40): [True: 58.0k, False: 0]
  ------------------
 2514|  58.0k|                                        names.push_back(((AtomAbstractNode*)(*j).get())->value);
 2515|      0|                                    else
 2516|      0|                                        compiler->addError(*prop, (*j)->getValue() + " is not supported as a texture name");
 2517|  58.0k|                                    ++j;
 2518|  58.0k|                                }
 2519|       |
 2520|     14|                                processResourceNames(compiler, ResourceType::TEXTURE, names);
 2521|     14|                                mUnit->setAnimatedTextureName(names, duration);
 2522|     14|                            }
 2523|      0|                            else
 2524|      0|                            {
 2525|      0|                                compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2526|      0|                                                   (*in)->getValue() + " is not supported for the duration argument");
 2527|      0|                            }
 2528|     14|                        }
 2529|     37|                    }
 2530|     37|                    break;
 2531|      0|                case ID_CUBIC_TEXTURE:
  ------------------
  |  Branch (2531:17): [True: 0, False: 5.89k]
  ------------------
 2532|      0|                    if(prop->values.empty())
  ------------------
  |  Branch (2532:24): [True: 0, False: 0]
  ------------------
 2533|      0|                    {
 2534|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2535|      0|                    }
 2536|      0|                    else if(prop->values.size() == 2)
  ------------------
  |  Branch (2536:29): [True: 0, False: 0]
  ------------------
 2537|      0|                    {
 2538|      0|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2539|      0|                            i1 = getNodeAt(prop->values, 1);
 2540|      0|                        if((*i0)->type == ANT_ATOM && (*i1)->type == ANT_ATOM)
  ------------------
  |  Branch (2540:28): [True: 0, False: 0]
  |  Branch (2540:55): [True: 0, False: 0]
  ------------------
 2541|      0|                        {
 2542|      0|                            AtomAbstractNode *atom0 = (AtomAbstractNode*)(*i0).get();
 2543|       |
 2544|      0|                            mUnit->setTextureName(processResourceName(compiler, ResourceType::TEXTURE, atom0->value), TEX_TYPE_CUBE_MAP);
 2545|       |
 2546|      0|                            compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 2547|      0|                                                   "'cubic_texture ..'. Use 'texture .. cubic' instead.");
 2548|      0|                        }
 2549|      0|                        else
 2550|      0|                        {
 2551|      0|                            compiler->addError(*prop);
 2552|      0|                        }
 2553|      0|                    }
 2554|      0|                    else if(prop->values.size() == 7)
  ------------------
  |  Branch (2554:29): [True: 0, False: 0]
  ------------------
 2555|      0|                    {
 2556|      0|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2557|      0|                            i1 = getNodeAt(prop->values, 1),
 2558|      0|                            i2 = getNodeAt(prop->values, 2),
 2559|      0|                            i3 = getNodeAt(prop->values, 3),
 2560|      0|                            i4 = getNodeAt(prop->values, 4),
 2561|      0|                            i5 = getNodeAt(prop->values, 5),
 2562|      0|                            i6 = getNodeAt(prop->values, 6);
 2563|      0|                        if((*i0)->type == ANT_ATOM && (*i1)->type == ANT_ATOM && (*i2)->type == ANT_ATOM && (*i3)->type == ANT_ATOM &&
  ------------------
  |  Branch (2563:28): [True: 0, False: 0]
  |  Branch (2563:55): [True: 0, False: 0]
  |  Branch (2563:82): [True: 0, False: 0]
  |  Branch (2563:109): [True: 0, False: 0]
  ------------------
 2564|      0|                           (*i4)->type == ANT_ATOM && (*i5)->type == ANT_ATOM && (*i6)->type == ANT_ATOM)
  ------------------
  |  Branch (2564:28): [True: 0, False: 0]
  |  Branch (2564:55): [True: 0, False: 0]
  |  Branch (2564:82): [True: 0, False: 0]
  ------------------
 2565|      0|                        {
 2566|      0|                            AtomAbstractNode *atom0 = (AtomAbstractNode*)(*i0).get(), *atom1 = (AtomAbstractNode*)(*i1).get(),
 2567|      0|                                *atom2 = (AtomAbstractNode*)(*i2).get(), *atom3 = (AtomAbstractNode*)(*i3).get(),
 2568|      0|                                *atom4 = (AtomAbstractNode*)(*i4).get(), *atom5 = (AtomAbstractNode*)(*i5).get(),
 2569|      0|                                *atom6 = (AtomAbstractNode*)(*i6).get();
 2570|      0|                            std::vector<String> names(6);
 2571|       |                            // backward compatible order
 2572|      0|                            names[4] = atom0->value;
 2573|      0|                            names[5] = atom1->value;
 2574|      0|                            names[1] = atom2->value;
 2575|      0|                            names[0] = atom3->value;
 2576|      0|                            names[2] = atom4->value;
 2577|      0|                            names[3] = atom5->value;
 2578|       |
 2579|      0|                            processResourceNames(compiler, ResourceType::TEXTURE, names);
 2580|       |
 2581|      0|                            if(atom6->id != ID_COMBINED_UVW)
  ------------------
  |  Branch (2581:32): [True: 0, False: 0]
  ------------------
 2582|      0|                            {
 2583|      0|                                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 2584|      0|                                                   "separateUV is no longer supported.");
 2585|      0|                            }
 2586|      0|                            mUnit->setLayerArrayNames(TEX_TYPE_CUBE_MAP, names);
 2587|      0|                        }
 2588|       |
 2589|      0|                    }
 2590|      0|                    else
 2591|      0|                    {
 2592|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2593|      0|                                           "cubic_texture must have at most 7 arguments");
 2594|      0|                    }
 2595|      0|                    break;
 2596|     10|                case ID_TEX_COORD_SET:
  ------------------
  |  Branch (2596:17): [True: 10, False: 5.88k]
  ------------------
 2597|     10|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (2597:24): [True: 0, False: 10]
  ------------------
 2598|      0|                        mUnit->setTextureCoordSet(uival);
 2599|     10|                    break;
 2600|       |
 2601|     10|                case ID_COLOUR_OP:
  ------------------
  |  Branch (2601:17): [True: 10, False: 5.88k]
  ------------------
 2602|     10|                    LayerBlendOperation cop;
 2603|     10|                    if(getValue(prop, compiler, cop))
  ------------------
  |  Branch (2603:24): [True: 0, False: 10]
  ------------------
 2604|      0|                        mUnit->setColourOperation(cop);
 2605|     10|                    break;
 2606|      5|                case ID_COLOUR_OP_EX:
  ------------------
  |  Branch (2606:17): [True: 5, False: 5.89k]
  ------------------
 2607|      5|                    if(prop->values.size() < 3)
  ------------------
  |  Branch (2607:24): [True: 0, False: 5]
  ------------------
 2608|      0|                    {
 2609|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line,
 2610|      0|                                           "colour_op_ex must have at least 3 arguments");
 2611|      0|                    }
 2612|      5|                    else if(prop->values.size() > 10)
  ------------------
  |  Branch (2612:29): [True: 0, False: 5]
  ------------------
 2613|      0|                    {
 2614|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2615|      0|                                           "colour_op_ex must have at most 10 arguments");
 2616|      0|                    }
 2617|      5|                    else
 2618|      5|                    {
 2619|      5|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2620|      5|                            i1 = getNodeAt(prop->values, 1),
 2621|      5|                            i2 = getNodeAt(prop->values, 2);
 2622|      5|                        LayerBlendOperationEx op;
 2623|      5|                        LayerBlendSource source1, source2;
 2624|      5|                        if (getValue(*i0, op) && getValue(*i1, source1) && getValue(*i2, source2))
  ------------------
  |  Branch (2624:29): [True: 5, False: 0]
  |  Branch (2624:50): [True: 5, False: 0]
  |  Branch (2624:76): [True: 5, False: 0]
  ------------------
 2625|      5|                        {
 2626|      5|                            ColourValue arg1 = ColourValue::White, arg2 = ColourValue::White;
 2627|      5|                            Real manualBlend = 0.0f;
 2628|       |
 2629|      5|                            if(op == LBX_BLEND_MANUAL)
  ------------------
  |  Branch (2629:32): [True: 0, False: 5]
  ------------------
 2630|      0|                            {
 2631|      0|                                AbstractNodeList::const_iterator i3 = getNodeAt(prop->values, 3);
 2632|      0|                                if(i3 != prop->values.end())
  ------------------
  |  Branch (2632:36): [True: 0, False: 0]
  ------------------
 2633|      0|                                {
 2634|      0|                                    if(!getReal(*i3, &manualBlend))
  ------------------
  |  Branch (2634:40): [True: 0, False: 0]
  ------------------
 2635|      0|                                        compiler->addError(*prop, (*i3)->getValue() + " is not a valid number argument");
 2636|      0|                                }
 2637|      0|                                else
 2638|      0|                                {
 2639|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2640|      0|                                                       "fourth argument expected when blend_manual is used");
 2641|      0|                                }
 2642|      0|                            }
 2643|       |
 2644|      5|                            AbstractNodeList::const_iterator j = getNodeAt(prop->values, 3);
 2645|      5|                            if(op == LBX_BLEND_MANUAL)
  ------------------
  |  Branch (2645:32): [True: 0, False: 5]
  ------------------
 2646|      0|                                ++j;
 2647|      5|                            if(source1 == LBS_MANUAL)
  ------------------
  |  Branch (2647:32): [True: 5, False: 0]
  ------------------
 2648|      5|                            {
 2649|      5|                                if(j != prop->values.end())
  ------------------
  |  Branch (2649:36): [True: 0, False: 5]
  ------------------
 2650|      0|                                {
 2651|      0|                                    if(!getColour(j, prop->values.end(), &arg1, 3))
  ------------------
  |  Branch (2651:40): [True: 0, False: 0]
  ------------------
 2652|      0|                                        compiler->addError(*prop, "valid colour expected when src_manual is used");
 2653|      0|                                }
 2654|      5|                                else
 2655|      5|                                {
 2656|      5|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2657|      5|                                                       "valid colour expected when src_manual is used");
 2658|      5|                                }
 2659|      5|                            }
 2660|      5|                            if(source2 == LBS_MANUAL)
  ------------------
  |  Branch (2660:32): [True: 0, False: 5]
  ------------------
 2661|      0|                            {
 2662|      0|                                if(j != prop->values.end())
  ------------------
  |  Branch (2662:36): [True: 0, False: 0]
  ------------------
 2663|      0|                                {
 2664|      0|                                    if(!getColour(j, prop->values.end(), &arg2, 3))
  ------------------
  |  Branch (2664:40): [True: 0, False: 0]
  ------------------
 2665|      0|                                        compiler->addError(*prop, "valid colour expected when src_manual is used");
 2666|      0|                                }
 2667|      0|                                else
 2668|      0|                                {
 2669|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2670|      0|                                                       "valid colour expected when src_manual is used");
 2671|      0|                                }
 2672|      0|                            }
 2673|       |
 2674|      5|                            mUnit->setColourOperationEx(op, source1, source2, arg1, arg2, manualBlend);
 2675|      5|                        }
 2676|      0|                        else
 2677|      0|                        {
 2678|      0|                            compiler->addError(*prop);
 2679|      0|                        }
 2680|      5|                    }
 2681|      5|                    break;
 2682|      0|                case ID_COLOUR_OP_MULTIPASS_FALLBACK:
  ------------------
  |  Branch (2682:17): [True: 0, False: 5.89k]
  ------------------
 2683|      0|                    if(prop->values.empty())
  ------------------
  |  Branch (2683:24): [True: 0, False: 0]
  ------------------
 2684|      0|                    {
 2685|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2686|      0|                    }
 2687|      0|                    else if(prop->values.size() > 2)
  ------------------
  |  Branch (2687:29): [True: 0, False: 0]
  ------------------
 2688|      0|                    {
 2689|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2690|      0|                                           "colour_op_multiplass_fallback must have at most 2 arguments");
 2691|      0|                    }
 2692|      0|                    else if(prop->values.size() == 1)
  ------------------
  |  Branch (2692:29): [True: 0, False: 0]
  ------------------
 2693|      0|                    {
 2694|      0|                        switch(getAtomId(prop->values.front()))
 2695|      0|                        {
 2696|      0|                        case ID_ADD:
  ------------------
  |  Branch (2696:25): [True: 0, False: 0]
  ------------------
 2697|      0|                            mUnit->setColourOpMultipassFallback(SBF_ONE, SBF_ONE);
 2698|      0|                            break;
 2699|      0|                        case ID_MODULATE:
  ------------------
  |  Branch (2699:25): [True: 0, False: 0]
  ------------------
 2700|      0|                            mUnit->setColourOpMultipassFallback(SBF_DEST_COLOUR, SBF_ZERO);
 2701|      0|                            break;
 2702|      0|                        case ID_COLOUR_BLEND:
  ------------------
  |  Branch (2702:25): [True: 0, False: 0]
  ------------------
 2703|      0|                            mUnit->setColourOpMultipassFallback(SBF_SOURCE_COLOUR, SBF_ONE_MINUS_SOURCE_COLOUR);
 2704|      0|                            break;
 2705|      0|                        case ID_ALPHA_BLEND:
  ------------------
  |  Branch (2705:25): [True: 0, False: 0]
  ------------------
 2706|      0|                            mUnit->setColourOpMultipassFallback(SBF_SOURCE_ALPHA, SBF_ONE_MINUS_SOURCE_ALPHA);
 2707|      0|                            break;
 2708|      0|                        case ID_REPLACE:
  ------------------
  |  Branch (2708:25): [True: 0, False: 0]
  ------------------
 2709|      0|                            mUnit->setColourOpMultipassFallback(SBF_ONE, SBF_ZERO);
 2710|      0|                            break;
 2711|      0|                        default:
  ------------------
  |  Branch (2711:25): [True: 0, False: 0]
  ------------------
 2712|      0|                            compiler->addError(*prop, "argument must be a valid scene blend type (add, modulate, colour_blend, alpha_blend, or replace)");
 2713|      0|                        }
 2714|      0|                    }
 2715|      0|                    else
 2716|      0|                    {
 2717|      0|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 2718|      0|                        SceneBlendFactor sbf0, sbf1;
 2719|      0|                        if(getSceneBlendFactor(*i0, &sbf0) && getSceneBlendFactor(*i1, &sbf1))
  ------------------
  |  Branch (2719:28): [True: 0, False: 0]
  |  Branch (2719:63): [True: 0, False: 0]
  ------------------
 2720|      0|                            mUnit->setColourOpMultipassFallback(sbf0, sbf1);
 2721|      0|                        else
 2722|      0|                            compiler->addError(*prop, "arguments must be valid scene blend factors");
 2723|      0|                    }
 2724|      0|                    break;
 2725|     13|                case ID_ALPHA_OP_EX:
  ------------------
  |  Branch (2725:17): [True: 13, False: 5.88k]
  ------------------
 2726|     13|                    if(prop->values.size() < 3)
  ------------------
  |  Branch (2726:24): [True: 1, False: 12]
  ------------------
 2727|      1|                    {
 2728|      1|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line,
 2729|      1|                                           "alpha_op_ex must have at least 3 arguments");
 2730|      1|                    }
 2731|     12|                    else if(prop->values.size() > 6)
  ------------------
  |  Branch (2731:29): [True: 5, False: 7]
  ------------------
 2732|      5|                    {
 2733|      5|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2734|      5|                                           "alpha_op_ex must have at most 6 arguments");
 2735|      5|                    }
 2736|      7|                    else
 2737|      7|                    {
 2738|      7|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0),
 2739|      7|                            i1 = getNodeAt(prop->values, 1),
 2740|      7|                            i2 = getNodeAt(prop->values, 2);
 2741|      7|                        LayerBlendOperationEx op;
 2742|      7|                        LayerBlendSource source1, source2;
 2743|      7|                        if (getValue(*i0, op) && getValue(*i1, source1) && getValue(*i2, source2))
  ------------------
  |  Branch (2743:29): [True: 7, False: 0]
  |  Branch (2743:50): [True: 7, False: 0]
  |  Branch (2743:76): [True: 6, False: 1]
  ------------------
 2744|      6|                        {
 2745|      6|                            Real arg1 = 0.0f, arg2 = 0.0f;
 2746|      6|                            Real manualBlend = 0.0f;
 2747|       |
 2748|      6|                            if(op == LBX_BLEND_MANUAL)
  ------------------
  |  Branch (2748:32): [True: 1, False: 5]
  ------------------
 2749|      1|                            {
 2750|      1|                                AbstractNodeList::const_iterator i3 = getNodeAt(prop->values, 3);
 2751|      1|                                if(i3 != prop->values.end())
  ------------------
  |  Branch (2751:36): [True: 1, False: 0]
  ------------------
 2752|      1|                                {
 2753|      1|                                    if(!getReal(*i3, &manualBlend))
  ------------------
  |  Branch (2753:40): [True: 0, False: 1]
  ------------------
 2754|      0|                                        compiler->addError(*prop, "valid number expected when blend_manual is used");
 2755|      1|                                }
 2756|      0|                                else
 2757|      0|                                {
 2758|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2759|      0|                                                       "valid number expected when blend_manual is used");
 2760|      0|                                }
 2761|      1|                            }
 2762|       |
 2763|      6|                            AbstractNodeList::const_iterator j = getNodeAt(prop->values, 3);
 2764|      6|                            if(op == LBX_BLEND_MANUAL)
  ------------------
  |  Branch (2764:32): [True: 1, False: 5]
  ------------------
 2765|      1|                                ++j;
 2766|      6|                            if(source1 == LBS_MANUAL)
  ------------------
  |  Branch (2766:32): [True: 5, False: 1]
  ------------------
 2767|      5|                            {
 2768|      5|                                if(j != prop->values.end())
  ------------------
  |  Branch (2768:36): [True: 5, False: 0]
  ------------------
 2769|      5|                                {
 2770|      5|                                    if(!getReal(*j, &arg1))
  ------------------
  |  Branch (2770:40): [True: 0, False: 5]
  ------------------
 2771|      0|                                        compiler->addError(*prop, "valid colour expected when src_manual is used");
 2772|      5|                                    else
 2773|      5|                                        ++j;
 2774|      5|                                }
 2775|      0|                                else
 2776|      0|                                {
 2777|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2778|      0|                                                       "valid colour expected when src_manual is used");
 2779|      0|                                }
 2780|      5|                            }
 2781|      6|                            if(source2 == LBS_MANUAL)
  ------------------
  |  Branch (2781:32): [True: 2, False: 4]
  ------------------
 2782|      2|                            {
 2783|      2|                                if(j != prop->values.end())
  ------------------
  |  Branch (2783:36): [True: 2, False: 0]
  ------------------
 2784|      2|                                {
 2785|      2|                                    if(!getReal(*j, &arg2))
  ------------------
  |  Branch (2785:40): [True: 2, False: 0]
  ------------------
 2786|      2|                                        compiler->addError(*prop, "valid colour expected when src_manual is used");
 2787|      2|                                }
 2788|      0|                                else
 2789|      0|                                {
 2790|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 2791|      0|                                                       "valid colour expected when src_manual is used");
 2792|      0|                                }
 2793|      2|                            }
 2794|       |
 2795|      6|                            mUnit->setAlphaOperation(op, source1, source2, arg1, arg2, manualBlend);
 2796|      6|                        }
 2797|      1|                        else
 2798|      1|                        {
 2799|      1|                            compiler->addError(*prop);
 2800|      1|                        }
 2801|      7|                    }
 2802|     13|                    break;
 2803|    530|                case ID_ENV_MAP:
  ------------------
  |  Branch (2803:17): [True: 530, False: 5.36k]
  ------------------
 2804|    530|                    if(prop->values.empty())
  ------------------
  |  Branch (2804:24): [True: 0, False: 530]
  ------------------
 2805|      0|                    {
 2806|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 2807|      0|                    }
 2808|    530|                    else if(prop->values.size() > 1)
  ------------------
  |  Branch (2808:29): [True: 4, False: 526]
  ------------------
 2809|      4|                    {
 2810|      4|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2811|      4|                                           "env_map must have at most 1 argument");
 2812|      4|                    }
 2813|    526|                    else
 2814|    526|                    {
 2815|    526|                        switch(getAtomId(prop->values.front()))
 2816|    526|                        {
 2817|      0|                        case ScriptCompiler::ID_OFF:
  ------------------
  |  Branch (2817:25): [True: 0, False: 526]
  ------------------
 2818|      0|                            mUnit->setEnvironmentMap(false);
 2819|      0|                            break;
 2820|    485|                        case ID_SPHERICAL:
  ------------------
  |  Branch (2820:25): [True: 485, False: 41]
  ------------------
 2821|    485|                            mUnit->setEnvironmentMap(true, TextureUnitState::ENV_CURVED);
 2822|    485|                            break;
 2823|      0|                        case ID_PLANAR:
  ------------------
  |  Branch (2823:25): [True: 0, False: 526]
  ------------------
 2824|      0|                            mUnit->setEnvironmentMap(true, TextureUnitState::ENV_PLANAR);
 2825|      0|                            break;
 2826|      0|                        case ID_CUBIC_REFLECTION:
  ------------------
  |  Branch (2826:25): [True: 0, False: 526]
  ------------------
 2827|      0|                            mUnit->setEnvironmentMap(true, TextureUnitState::ENV_REFLECTION);
 2828|      0|                            break;
 2829|      0|                        case ID_CUBIC_NORMAL:
  ------------------
  |  Branch (2829:25): [True: 0, False: 526]
  ------------------
 2830|      0|                            mUnit->setEnvironmentMap(true, TextureUnitState::ENV_NORMAL);
 2831|      0|                            break;
 2832|     41|                        default:
  ------------------
  |  Branch (2832:25): [True: 41, False: 485]
  ------------------
 2833|     41|                            compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid argument (must be \"off\", \"spherical\", \"planar\", \"cubic_reflection\", or \"cubic_normal\")");
 2834|    526|                        }
 2835|    526|                    }
 2836|    530|                    break;
 2837|    530|                case ID_SCROLL:
  ------------------
  |  Branch (2837:17): [True: 0, False: 5.89k]
  ------------------
 2838|      0|                    {
 2839|      0|                        std::vector<float> v;
 2840|      0|                        if(prop->values.size() == 2 && getVector(prop->values.begin(), prop->values.end(), v, 2))
  ------------------
  |  Branch (2840:28): [True: 0, False: 0]
  |  Branch (2840:28): [True: 0, False: 0]
  |  Branch (2840:56): [True: 0, False: 0]
  ------------------
 2841|      0|                            mUnit->setTextureScroll(v[0], v[1]);
 2842|      0|                        else
 2843|      0|                            compiler->addError(*prop, "scroll requires exactly 2 numeric arguments");
 2844|      0|                    }
 2845|      0|                    break;
 2846|    972|                case ID_SCROLL_ANIM:
  ------------------
  |  Branch (2846:17): [True: 972, False: 4.92k]
  ------------------
 2847|    972|                    {
 2848|    972|                        std::vector<float> v;
 2849|    972|                        if(prop->values.size() == 2 && getVector(prop->values.begin(), prop->values.end(), v, 2))
  ------------------
  |  Branch (2849:28): [True: 589, False: 383]
  |  Branch (2849:28): [True: 589, False: 383]
  |  Branch (2849:56): [True: 589, False: 0]
  ------------------
 2850|    589|                            mUnit->setScrollAnimation(v[0], v[1]);
 2851|    383|                        else
 2852|    383|                            compiler->addError(*prop, "scroll_anim requires exactly 2 numeric arguments");
 2853|    972|                    }
 2854|    972|                    break;
 2855|      0|                case ID_ROTATE:
  ------------------
  |  Branch (2855:17): [True: 0, False: 5.89k]
  ------------------
 2856|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (2856:24): [True: 0, False: 0]
  ------------------
 2857|      0|                        mUnit->setTextureRotate(Degree(fval));
 2858|      0|                    break;
 2859|    264|                case ID_ROTATE_ANIM:
  ------------------
  |  Branch (2859:17): [True: 264, False: 5.63k]
  ------------------
 2860|    264|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (2860:24): [True: 255, False: 9]
  ------------------
 2861|    255|                        mUnit->setRotateAnimation(fval);
 2862|    264|                    break;
 2863|      1|                case ID_SCALE:
  ------------------
  |  Branch (2863:17): [True: 1, False: 5.89k]
  ------------------
 2864|      1|                    {
 2865|      1|                        std::vector<float> v;
 2866|      1|                        if(prop->values.size() == 2 && getVector(prop->values.begin(), prop->values.end(), v, 2))
  ------------------
  |  Branch (2866:28): [True: 1, False: 0]
  |  Branch (2866:28): [True: 1, False: 0]
  |  Branch (2866:56): [True: 1, False: 0]
  ------------------
 2867|      1|                            mUnit->setTextureScale(v[0], v[1]);
 2868|      0|                        else
 2869|      0|                            compiler->addError(*prop, "scale requires exactly 2 numeric arguments");
 2870|      1|                    }
 2871|      1|                    break;
 2872|     68|                case ID_WAVE_XFORM:
  ------------------
  |  Branch (2872:17): [True: 68, False: 5.83k]
  ------------------
 2873|     68|                    if(prop->values.size() != 6)
  ------------------
  |  Branch (2873:24): [True: 12, False: 56]
  ------------------
 2874|     12|                    {
 2875|     12|                        compiler->addError(*prop, "wave_xform requires exactly 6 arguments");
 2876|     12|                    }
 2877|     56|                    else
 2878|     56|                    {
 2879|     56|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1),
 2880|     56|                            i2 = getNodeAt(prop->values, 2), i3 = getNodeAt(prop->values, 3),
 2881|     56|                            i4 = getNodeAt(prop->values, 4), i5 = getNodeAt(prop->values, 5);
 2882|     56|                        if((*i0)->type == ANT_ATOM && (*i1)->type == ANT_ATOM && (*i2)->type == ANT_ATOM &&
  ------------------
  |  Branch (2882:28): [True: 56, False: 0]
  |  Branch (2882:55): [True: 56, False: 0]
  |  Branch (2882:82): [True: 56, False: 0]
  ------------------
 2883|     56|                           (*i3)->type == ANT_ATOM && (*i4)->type == ANT_ATOM && (*i5)->type == ANT_ATOM)
  ------------------
  |  Branch (2883:28): [True: 56, False: 0]
  |  Branch (2883:55): [True: 56, False: 0]
  |  Branch (2883:82): [True: 56, False: 0]
  ------------------
 2884|     56|                        {
 2885|     56|                            AtomAbstractNode *atom0 = (AtomAbstractNode*)(*i0).get(), *atom1 = (AtomAbstractNode*)(*i1).get();
 2886|     56|                            TextureUnitState::TextureTransformType type = TextureUnitState::TT_ROTATE;
 2887|     56|                            WaveformType wave = WFT_SINE;
 2888|     56|                            Real base = 0.0f, freq = 0.0f, phase = 0.0f, amp = 0.0f;
 2889|       |
 2890|     56|                            switch(atom0->id)
 2891|     56|                            {
 2892|      0|                            case ID_SCROLL_X:
  ------------------
  |  Branch (2892:29): [True: 0, False: 56]
  ------------------
 2893|      0|                                type = TextureUnitState::TT_TRANSLATE_U;
 2894|      0|                                break;
 2895|      0|                            case ID_SCROLL_Y:
  ------------------
  |  Branch (2895:29): [True: 0, False: 56]
  ------------------
 2896|      0|                                type = TextureUnitState::TT_TRANSLATE_V;
 2897|      0|                                break;
 2898|      0|                            case ID_SCALE_X:
  ------------------
  |  Branch (2898:29): [True: 0, False: 56]
  ------------------
 2899|      0|                                type = TextureUnitState::TT_SCALE_U;
 2900|      0|                                break;
 2901|      2|                            case ID_SCALE_Y:
  ------------------
  |  Branch (2901:29): [True: 2, False: 54]
  ------------------
 2902|      2|                                type = TextureUnitState::TT_SCALE_V;
 2903|      2|                                break;
 2904|      0|                            case ID_ROTATE:
  ------------------
  |  Branch (2904:29): [True: 0, False: 56]
  ------------------
 2905|      0|                                type = TextureUnitState::TT_ROTATE;
 2906|      0|                                break;
 2907|     54|                            default:
  ------------------
  |  Branch (2907:29): [True: 54, False: 2]
  ------------------
 2908|     54|                                compiler->addError(*prop, atom0->value + " is not a valid transform type (must be \"scroll_x\", \"scroll_y\", \"scale_x\", \"scale_y\", or \"rotate\")");
 2909|     56|                            }
 2910|       |
 2911|     56|                            switch(atom1->id)
 2912|     56|                            {
 2913|     35|                            case ID_SINE:
  ------------------
  |  Branch (2913:29): [True: 35, False: 21]
  ------------------
 2914|     35|                                wave = WFT_SINE;
 2915|     35|                                break;
 2916|      0|                            case ID_TRIANGLE:
  ------------------
  |  Branch (2916:29): [True: 0, False: 56]
  ------------------
 2917|      0|                                wave = WFT_TRIANGLE;
 2918|      0|                                break;
 2919|      0|                            case ID_SQUARE:
  ------------------
  |  Branch (2919:29): [True: 0, False: 56]
  ------------------
 2920|      0|                                wave = WFT_SQUARE;
 2921|      0|                                break;
 2922|      0|                            case ID_SAWTOOTH:
  ------------------
  |  Branch (2922:29): [True: 0, False: 56]
  ------------------
 2923|      0|                                wave = WFT_SAWTOOTH;
 2924|      0|                                break;
 2925|      0|                            case ID_INVERSE_SAWTOOTH:
  ------------------
  |  Branch (2925:29): [True: 0, False: 56]
  ------------------
 2926|      0|                                wave = WFT_INVERSE_SAWTOOTH;
 2927|      0|                                break;
 2928|     21|                            default:
  ------------------
  |  Branch (2928:29): [True: 21, False: 35]
  ------------------
 2929|     21|                                compiler->addError(*prop, atom1->value + " is not a valid waveform type (must be \"sine\", \"triangle\", \"square\", \"sawtooth\", or \"inverse_sawtooth\")");
 2930|     56|                            }
 2931|       |
 2932|     56|                            if(!getReal(*i2, &base) || !getReal(*i3, &freq) || !getReal(*i4, &phase) || !getReal(*i5, &amp))
  ------------------
  |  Branch (2932:32): [True: 9, False: 47]
  |  Branch (2932:56): [True: 0, False: 47]
  |  Branch (2932:80): [True: 4, False: 43]
  |  Branch (2932:105): [True: 13, False: 30]
  ------------------
 2933|     26|                                compiler->addError(*prop, "arguments 3, 4, 5, and 6 must be valid numbers; received " + (*i2)->getValue() + ", " + (*i3)->getValue() + ", " + (*i4)->getValue() + ", " + (*i5)->getValue());
 2934|       |
 2935|     56|                            mUnit->setTransformAnimation(type, wave, base, freq, phase, amp);
 2936|     56|                        }
 2937|      0|                        else
 2938|      0|                        {
 2939|      0|                            compiler->addError(*prop);
 2940|      0|                        }
 2941|     56|                    }
 2942|     68|                    break;
 2943|     68|                case ID_TRANSFORM:
  ------------------
  |  Branch (2943:17): [True: 0, False: 5.89k]
  ------------------
 2944|      0|                    {
 2945|      0|                        Matrix4 m;
 2946|      0|                        if(getMatrix4(prop->values.begin(), prop->values.end(), &m))
  ------------------
  |  Branch (2946:28): [True: 0, False: 0]
  ------------------
 2947|      0|                            mUnit->setTextureTransform(m);
 2948|      0|                        else
 2949|      0|                            compiler->addError(*prop);
 2950|      0|                    }
 2951|      0|                    break;
 2952|    283|                case ID_CONTENT_TYPE:
  ------------------
  |  Branch (2952:17): [True: 283, False: 5.61k]
  ------------------
 2953|    283|                    if(prop->values.empty())
  ------------------
  |  Branch (2953:24): [True: 0, False: 283]
  ------------------
 2954|      0|                    {
 2955|      0|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 2956|      0|                    }
 2957|    283|                    else if(prop->values.size() > 4)
  ------------------
  |  Branch (2957:29): [True: 0, False: 283]
  ------------------
 2958|      0|                    {
 2959|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line,
 2960|      0|                                           "content_type must have at most 4 arguments");
 2961|      0|                    }
 2962|    283|                    else
 2963|    283|                    {
 2964|    283|                        switch(getAtomId(prop->values.front()))
 2965|    283|                        {
 2966|      0|                        case ID_NAMED:
  ------------------
  |  Branch (2966:25): [True: 0, False: 283]
  ------------------
 2967|      0|                            mUnit->setContentType(TextureUnitState::CONTENT_NAMED);
 2968|      0|                            break;
 2969|    264|                        case ID_SHADOW:
  ------------------
  |  Branch (2969:25): [True: 264, False: 19]
  ------------------
 2970|    264|                            mUnit->setContentType(TextureUnitState::CONTENT_SHADOW);
 2971|    264|                            break;
 2972|     12|                        case ID_COMPOSITOR:
  ------------------
  |  Branch (2972:25): [True: 12, False: 271]
  ------------------
 2973|     12|                            mUnit->setContentType(TextureUnitState::CONTENT_COMPOSITOR);
 2974|     12|                            if (prop->values.size() >= 3)
  ------------------
  |  Branch (2974:33): [True: 12, False: 0]
  ------------------
 2975|     12|                            {
 2976|     12|                                String compositorName;
 2977|     12|                                getString(*getNodeAt(prop->values, 1), &compositorName);
 2978|     12|                                String textureName;
 2979|     12|                                getString(*getNodeAt(prop->values, 2), &textureName);
 2980|       |
 2981|     12|                                if (prop->values.size() == 4)
  ------------------
  |  Branch (2981:37): [True: 12, False: 0]
  ------------------
 2982|     12|                                {
 2983|     12|                                    uint32 mrtIndex;
 2984|     12|                                    getUInt(*getNodeAt(prop->values, 3), (uint32*)&mrtIndex);
 2985|     12|                                    mUnit->setCompositorReference(compositorName, textureName, mrtIndex);
 2986|     12|                                }
 2987|      0|                                else
 2988|      0|                                {
 2989|      0|                                    mUnit->setCompositorReference(compositorName, textureName);
 2990|      0|                                }
 2991|     12|                            }
 2992|      0|                            else
 2993|      0|                            {
 2994|      0|                                compiler->addError(*prop, "content_type compositor must have an additional 2 or 3 parameters");
 2995|      0|                            }
 2996|       |
 2997|     12|                            break;
 2998|      7|                        default:
  ------------------
  |  Branch (2998:25): [True: 7, False: 276]
  ------------------
 2999|      7|                            compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid content type (must be \"named\" or \"shadow\" or \"compositor\")");
 3000|    283|                        }
 3001|    283|                    }
 3002|    283|                    break;
 3003|  2.84k|                default:
  ------------------
  |  Branch (3003:17): [True: 2.84k, False: 3.05k]
  ------------------
 3004|  2.84k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 3005|  2.84k|                                       "token \"" + prop->name + "\" is not recognized");
 3006|  5.89k|                }
 3007|  5.89k|            }
 3008|  1.43k|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (3008:21): [True: 410, False: 1.02k]
  ------------------
 3009|    410|            {
 3010|    410|                processNode(compiler, i);
 3011|    410|            }
 3012|  7.33k|        }
 3013|    534|    }
_ZN4Ogre23TextureSourceTranslatorC2Ev:
 3019|      1|    {
 3020|      1|    }
_ZN4Ogre20GpuProgramTranslatorC2Ev:
 3105|      1|    {
 3106|      1|    }
_ZN4Ogre20GpuProgramTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 3109|  1.55k|    {
 3110|  1.55k|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 3111|       |
 3112|       |        // Must have a name
 3113|  1.55k|        if(obj->name.empty())
  ------------------
  |  Branch (3113:12): [True: 0, False: 1.55k]
  ------------------
 3114|      0|        {
 3115|      0|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line,
 3116|      0|                               "gpu program object must have names");
 3117|      0|            return;
 3118|      0|        }
 3119|       |
 3120|       |        // Must have a language type
 3121|  1.55k|        if(obj->values.empty())
  ------------------
  |  Branch (3121:12): [True: 679, False: 876]
  ------------------
 3122|    679|        {
 3123|    679|            compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, obj->file, obj->line,
 3124|    679|                               "gpu program object require language declarations");
 3125|    679|            return;
 3126|    679|        }
 3127|       |
 3128|       |        // Get the language
 3129|    876|        String language;
 3130|    876|        for(const auto& lnode : obj->values)
  ------------------
  |  Branch (3130:31): [True: 12.5k, False: 740]
  ------------------
 3131|  12.5k|        {
 3132|  12.5k|            if(!getString(lnode, &language))
  ------------------
  |  Branch (3132:16): [True: 0, False: 12.5k]
  ------------------
 3133|      0|            {
 3134|      0|                compiler->addError(*obj);
 3135|      0|                return;
 3136|      0|            }
 3137|       |
 3138|  12.5k|            if (language == "asm")
  ------------------
  |  Branch (3138:17): [True: 0, False: 12.5k]
  ------------------
 3139|      0|            {
 3140|      0|                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, obj->file, obj->line, "asm. Use syntax code.");
 3141|      0|                break; // always supported
 3142|      0|            }
 3143|  12.5k|            if (GpuProgramManager::getSingleton().isLanguageSupported(language))
  ------------------
  |  Branch (3143:17): [True: 136, False: 12.4k]
  ------------------
 3144|    136|                break;
 3145|  12.5k|        }
 3146|       |
 3147|    876|        translateGpuProgram(compiler, obj, language);
 3148|    876|    }
_ZN4Ogre20GpuProgramTranslator19translateGpuProgramEPNS_14ScriptCompilerEPNS_18ObjectAbstractNodeENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
 3151|    876|    {
 3152|    876|        String syntax;
 3153|    876|        std::vector<String> delegates;
 3154|    876|        std::vector<std::pair<PropertyAbstractNode*, String> > customParameters;
 3155|    876|        String source, profiles, target;
 3156|    876|        AbstractNodePtr params;
 3157|    876|        for(auto & i : obj->children)
  ------------------
  |  Branch (3157:22): [True: 5.97k, False: 609]
  ------------------
 3158|  5.97k|        {
 3159|  5.97k|            if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (3159:16): [True: 5.08k, False: 898]
  ------------------
 3160|  5.08k|            {
 3161|  5.08k|                PropertyAbstractNode *prop = (PropertyAbstractNode*)i.get();
 3162|  5.08k|                if(prop->id == ID_SOURCE)
  ------------------
  |  Branch (3162:20): [True: 675, False: 4.40k]
  ------------------
 3163|    675|                {
 3164|    675|                    if(!getValue(prop, compiler, source))
  ------------------
  |  Branch (3164:24): [True: 4, False: 671]
  ------------------
 3165|      4|                        return;
 3166|    675|                }
 3167|  4.40k|                else if(prop->name == "delegate")
  ------------------
  |  Branch (3167:25): [True: 2.34k, False: 2.05k]
  ------------------
 3168|  2.34k|                {
 3169|  2.34k|                    String value;
 3170|  2.34k|                    if(!getValue(prop, compiler, value))
  ------------------
  |  Branch (3170:24): [True: 263, False: 2.08k]
  ------------------
 3171|    263|                        return;
 3172|       |
 3173|  2.08k|                    String name = processResourceName(compiler, ResourceType::GPU_PROGRAM, value);
 3174|       |
 3175|  2.08k|                    if (name == obj->name)
  ------------------
  |  Branch (3175:25): [True: 0, False: 2.08k]
  ------------------
 3176|      0|                    {
 3177|      0|                        compiler->addError(*prop, "cannot be a delegate of itself");
 3178|      0|                        continue;
 3179|      0|                    }
 3180|       |
 3181|  2.08k|                    delegates.push_back(name);
 3182|  2.08k|                }
 3183|  2.05k|                else
 3184|  2.05k|                {
 3185|  2.05k|                    StringVector values;
 3186|  2.05k|                    _getVector(prop->values.begin(), prop->values.end(), values, prop->values.size());
 3187|       |
 3188|  2.05k|                    if(prop->name == "attach")
  ------------------
  |  Branch (3188:24): [True: 0, False: 2.05k]
  ------------------
 3189|      0|                    {
 3190|      0|                        compiler->addError(*prop, "attach. Use the #include directive instead",
 3191|      0|                                           ScriptCompiler::CE_DEPRECATEDSYMBOL);
 3192|       |
 3193|      0|                        processResourceNames(compiler, ResourceType::GPU_PROGRAM, values);
 3194|      0|                    }
 3195|       |
 3196|  2.05k|                    String value = StringConverter::toString(values);
 3197|       |
 3198|  2.05k|                    if(prop->name == "profiles")
  ------------------
  |  Branch (3198:24): [True: 118, False: 1.93k]
  ------------------
 3199|    118|                        profiles = value;
 3200|  1.93k|                    else if(prop->name == "target")
  ------------------
  |  Branch (3200:29): [True: 408, False: 1.53k]
  ------------------
 3201|    408|                        target = value;
 3202|  1.53k|                    else if(prop->id == ID_SYNTAX && language == "asm")
  ------------------
  |  Branch (3202:29): [True: 0, False: 1.53k]
  |  Branch (3202:54): [True: 0, False: 0]
  ------------------
 3203|      0|                        syntax = value;
 3204|  1.53k|                    else
 3205|  1.53k|                        customParameters.push_back(std::make_pair(prop, value));
 3206|  2.05k|                }
 3207|  5.08k|            }
 3208|    898|            else if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (3208:21): [True: 559, False: 339]
  ------------------
 3209|    559|            {
 3210|    559|                if(((ObjectAbstractNode*)i.get())->id == ID_DEFAULT_PARAMS)
  ------------------
  |  Branch (3210:20): [True: 130, False: 429]
  ------------------
 3211|    130|                    params = i;
 3212|    429|                else
 3213|    429|                    processNode(compiler, i);
 3214|    559|            }
 3215|  5.97k|        }
 3216|       |
 3217|       |        // Allocate the program
 3218|    609|        GpuProgramType gpt = getProgramType(obj->id);
 3219|    609|        GpuProgram *prog = 0;
 3220|       |
 3221|    609|        if(language == "asm")
  ------------------
  |  Branch (3221:12): [True: 0, False: 609]
  ------------------
 3222|      0|            language = syntax;
 3223|    609|        CreateGpuProgramScriptCompilerEvent evt(obj->file, obj->name, compiler->getResourceGroup(), source,
 3224|    609|                                                language, gpt);
 3225|    609|        bool processed = compiler->_fireEvent(&evt, &prog);
 3226|       |
 3227|    609|        if(!processed)
  ------------------
  |  Branch (3227:12): [True: 605, False: 4]
  ------------------
 3228|    605|        {
 3229|    605|            prog = GpuProgramManager::getSingleton().create(obj->name, compiler->getResourceGroup(), gpt, language).get();
 3230|       |
 3231|    605|            if (source.empty() && language != "unified")
  ------------------
  |  Branch (3231:17): [True: 201, False: 404]
  |  Branch (3231:35): [True: 74, False: 127]
  ------------------
 3232|     74|            {
 3233|     74|                compiler->addError(*obj, "No 'source' provided for GPU program");
 3234|     74|                return;
 3235|     74|            }
 3236|       |
 3237|    531|            if(prog && !source.empty()) // prog=0 if duplicate definition resolved by "use previous"
  ------------------
  |  Branch (3237:16): [True: 527, False: 4]
  |  Branch (3237:24): [True: 400, False: 127]
  ------------------
 3238|    400|                prog->setSourceFile(source);
 3239|    531|        }
 3240|       |
 3241|    535|        if(!prog)
  ------------------
  |  Branch (3241:12): [True: 0, False: 535]
  ------------------
 3242|      0|        {
 3243|      0|            compiler->addError(ScriptCompiler::CE_OBJECTALLOCATIONERROR, obj->file, obj->line, obj->name);
 3244|      0|            return;
 3245|      0|        }
 3246|       |
 3247|    535|        obj->context = prog;
 3248|       |
 3249|    535|        prog->setMorphAnimationIncluded(false);
 3250|    535|        prog->setPoseAnimationIncluded(0);
 3251|    535|        prog->setSkeletalAnimationIncluded(false);
 3252|    535|        prog->setVertexTextureFetchRequired(false);
 3253|    535|        prog->_notifyOrigin(obj->file);
 3254|       |
 3255|       |        // special case for Cg
 3256|    535|        if(!profiles.empty())
  ------------------
  |  Branch (3256:12): [True: 116, False: 419]
  ------------------
 3257|    116|            prog->setParameter("profiles", profiles);
 3258|       |
 3259|       |        // special case for HLSL
 3260|    535|        if(!target.empty())
  ------------------
  |  Branch (3260:12): [True: 143, False: 392]
  ------------------
 3261|    143|            prog->setParameter("target", target);
 3262|       |
 3263|       |        // special case for unified
 3264|    535|        for(const auto& d : delegates)
  ------------------
  |  Branch (3264:27): [True: 250, False: 535]
  ------------------
 3265|    250|            prog->setParameter("delegate", d);
 3266|       |
 3267|       |        // Set the custom parameters
 3268|    535|        for(const auto& p : customParameters)
  ------------------
  |  Branch (3268:27): [True: 539, False: 535]
  ------------------
 3269|    539|        {
 3270|    539|            if(prog->isSupported() && !prog->setParameter(p.first->name, p.second))
  ------------------
  |  Branch (3270:16): [True: 0, False: 539]
  |  Branch (3270:39): [True: 0, False: 0]
  ------------------
 3271|      0|            {
 3272|      0|                compiler->addError(*p.first, p.first->name);
 3273|      0|            }
 3274|    539|        }
 3275|       |
 3276|       |        // Set up default parameters
 3277|    535|        if(prog->isSupported() && params)
  ------------------
  |  Branch (3277:12): [True: 0, False: 535]
  |  Branch (3277:35): [True: 0, False: 0]
  ------------------
 3278|      0|        {
 3279|      0|            GpuProgramParametersSharedPtr ptr = prog->getDefaultParameters();
 3280|       |
 3281|      0|            if(prog->hasCompileError())
  ------------------
  |  Branch (3281:16): [True: 0, False: 0]
  ------------------
 3282|      0|                return;
 3283|       |
 3284|      0|            GpuProgramTranslator::translateProgramParameters(compiler, ptr, static_cast<ObjectAbstractNode*>(params.get()));
 3285|      0|        }
 3286|    535|    }
_ZN4Ogre22SharedParamsTranslatorC2Ev:
 3772|      1|    {
 3773|      1|    }
_ZN4Ogre22SharedParamsTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 3777|     19|    {
 3778|     19|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 3779|       |
 3780|       |        // Must have a name
 3781|     19|        if (obj->name.empty())
  ------------------
  |  Branch (3781:13): [True: 0, False: 19]
  ------------------
 3782|      0|        {
 3783|      0|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line);
 3784|      0|            return;
 3785|      0|        }
 3786|       |
 3787|     19|        GpuSharedParameters* sharedParams = 0;
 3788|     19|        CreateGpuSharedParametersScriptCompilerEvent evt(obj->file, obj->name, compiler->getResourceGroup());
 3789|     19|        bool processed = compiler->_fireEvent(&evt, (void*)&sharedParams);
 3790|       |
 3791|     19|        if (!processed)
  ------------------
  |  Branch (3791:13): [True: 19, False: 0]
  ------------------
 3792|     19|        {
 3793|     19|            sharedParams = GpuProgramManager::getSingleton().createSharedParameters(obj->name).get();
 3794|     19|        }
 3795|       |
 3796|     19|        if (!sharedParams)
  ------------------
  |  Branch (3796:13): [True: 0, False: 19]
  ------------------
 3797|      0|        {
 3798|      0|            compiler->addError(ScriptCompiler::CE_OBJECTALLOCATIONERROR, obj->file, obj->line, obj->name);
 3799|      0|            return;
 3800|      0|        }
 3801|       |
 3802|     19|        for (auto & i : obj->children)
  ------------------
  |  Branch (3802:23): [True: 1.77k, False: 19]
  ------------------
 3803|  1.77k|        {
 3804|  1.77k|            if (i->type != ANT_PROPERTY)
  ------------------
  |  Branch (3804:17): [True: 346, False: 1.42k]
  ------------------
 3805|    346|                continue;
 3806|       |
 3807|  1.42k|            PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 3808|  1.42k|            if (prop->id != ID_SHARED_PARAM_NAMED && prop->id != ID_PARAM_NAMED)
  ------------------
  |  Branch (3808:17): [True: 1.42k, False: 0]
  |  Branch (3808:54): [True: 359, False: 1.06k]
  ------------------
 3809|    359|            {
 3810|    359|                compiler->addError(*prop, prop->name);
 3811|    359|                continue;
 3812|    359|            }
 3813|       |
 3814|  1.06k|            if(prop->id == ID_SHARED_PARAM_NAMED)
  ------------------
  |  Branch (3814:16): [True: 0, False: 1.06k]
  ------------------
 3815|      0|            {
 3816|      0|                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 3817|      0|                                   "shared_param_named is deprecated. Use param_named instead");
 3818|      0|            }
 3819|       |
 3820|  1.06k|            if (prop->values.size() < 2)
  ------------------
  |  Branch (3820:17): [True: 15, False: 1.05k]
  ------------------
 3821|     15|            {
 3822|     15|                compiler->addError(*prop, prop->name + " - expected 2 or more arguments");
 3823|     15|                continue;
 3824|     15|            }
 3825|       |
 3826|  1.05k|            AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1);
 3827|       |
 3828|  1.05k|            String pName;
 3829|  1.05k|            GpuConstantType constType;
 3830|       |
 3831|  1.05k|            if (!getValue(*i0, pName) || !getConstantType(i1, &constType))
  ------------------
  |  Branch (3831:17): [True: 0, False: 1.05k]
  |  Branch (3831:42): [True: 853, False: 199]
  ------------------
 3832|    853|            {
 3833|    853|                compiler->addError(*prop, "name and parameter type expected");
 3834|    853|                continue;
 3835|    853|            }
 3836|       |
 3837|    199|            AbstractNodeList::const_iterator arrayStart = getNodeAt(prop->values, 2), arrayEnd = prop->values.end();
 3838|    199|            uint32 arraySz = 1;
 3839|       |
 3840|    199|            if (arrayStart != arrayEnd)
  ------------------
  |  Branch (3840:17): [True: 199, False: 0]
  ------------------
 3841|    199|            {
 3842|    199|                String value;
 3843|    199|                getValue(*arrayStart, value);
 3844|       |
 3845|    199|                if (value.front() == '[' && value.back() == ']')
  ------------------
  |  Branch (3845:21): [True: 193, False: 6]
  |  Branch (3845:45): [True: 153, False: 40]
  ------------------
 3846|    153|                {
 3847|    153|                    arraySz = StringConverter::parseInt(value.substr(1, value.size() - 2), 0);
 3848|    153|                    if(!arraySz)
  ------------------
  |  Branch (3848:24): [True: 1, False: 152]
  ------------------
 3849|      1|                    {
 3850|      1|                        compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line,
 3851|      1|                                           "invalid array size");
 3852|      1|                        continue;
 3853|      1|                    }
 3854|    152|                    arrayStart++;
 3855|    152|                }
 3856|    199|            }
 3857|       |
 3858|       |            // Look up the auto constant - if the next token is a known auto constant name,
 3859|       |            // the parameter is driven automatically instead of by literal values
 3860|    198|            const GpuProgramParameters::AutoConstantDefinition* autoDef = NULL;
 3861|    198|            if (arrayStart != arrayEnd && (*arrayStart)->type == ANT_ATOM)
  ------------------
  |  Branch (3861:17): [True: 198, False: 0]
  |  Branch (3861:43): [True: 198, False: 0]
  ------------------
 3862|    198|            {
 3863|    198|                String acName = static_cast<AtomAbstractNode*>(arrayStart->get())->value;
 3864|    198|                StringUtil::toLowerCase(acName);
 3865|    198|                autoDef = GpuProgramParameters::getAutoConstantDefinition(acName);
 3866|    198|            }
 3867|       |
 3868|       |            // define constant entry
 3869|    198|            try
 3870|    198|            {
 3871|    198|                sharedParams->addConstantDefinition(pName, constType, arraySz);
 3872|       |
 3873|    198|                if(autoDef)
  ------------------
  |  Branch (3873:20): [True: 0, False: 198]
  ------------------
 3874|      0|                {
 3875|      0|                    sharedParams->setAutoConstant(pName, autoDef->acType);
 3876|      0|                    arrayStart++;
 3877|      0|                }
 3878|    198|            }
 3879|    198|            catch(Exception& e)
 3880|    198|            {
 3881|    189|                compiler->addError(*prop, e.getDescription());
 3882|    189|                continue;
 3883|    189|            }
 3884|       |
 3885|      9|            if (autoDef && arrayStart != arrayEnd)
  ------------------
  |  Branch (3885:17): [True: 0, False: 9]
  |  Branch (3885:28): [True: 0, False: 0]
  ------------------
 3886|      0|            {
 3887|      0|                compiler->addError(*prop, "unexpected extra parameters after auto constant name");
 3888|      0|            }
 3889|       |
 3890|       |            // amount of individual numbers to read
 3891|      9|            arraySz *= GpuConstantDefinition::getElementSize(constType, false);
 3892|       |
 3893|      9|            switch (GpuConstantDefinition::getBaseType(constType))
 3894|      9|            {
 3895|      5|            case BCT_FLOAT:
  ------------------
  |  Branch (3895:13): [True: 5, False: 4]
  ------------------
 3896|      5|            {
 3897|      5|                std::vector<float> values;
 3898|      5|                if(_getVector(arrayStart, arrayEnd, values, arraySz))
  ------------------
  |  Branch (3898:20): [True: 4, False: 1]
  ------------------
 3899|      4|                    sharedParams->setNamedConstant(pName, &values[0], arraySz);
 3900|      1|                else
 3901|      1|                    compiler->addError(*prop);
 3902|      5|                break;
 3903|      0|            }
 3904|      4|            case BCT_INT:
  ------------------
  |  Branch (3904:13): [True: 4, False: 5]
  ------------------
 3905|      4|            {
 3906|      4|                std::vector<int> values;
 3907|      4|                if(_getVector(arrayStart, arrayEnd, values, arraySz))
  ------------------
  |  Branch (3907:20): [True: 0, False: 4]
  ------------------
 3908|      0|                    sharedParams->setNamedConstant(pName, &values[0], arraySz);
 3909|      4|                else
 3910|      4|                    compiler->addError(*prop);
 3911|      4|                break;
 3912|      0|            }
 3913|      0|            case BCT_DOUBLE:
  ------------------
  |  Branch (3913:13): [True: 0, False: 9]
  ------------------
 3914|      0|            {
 3915|      0|                std::vector<double> values;
 3916|      0|                if(_getVector(arrayStart, arrayEnd, values, arraySz))
  ------------------
  |  Branch (3916:20): [True: 0, False: 0]
  ------------------
 3917|      0|                    sharedParams->setNamedConstant(pName, &values[0], arraySz);
 3918|      0|                else
 3919|      0|                    compiler->addError(*prop);
 3920|      0|                break;
 3921|      0|            }
 3922|      0|            case BCT_UINT:
  ------------------
  |  Branch (3922:13): [True: 0, False: 9]
  ------------------
 3923|      0|            {
 3924|      0|                std::vector<uint> values;
 3925|      0|                if(_getVector(arrayStart, arrayEnd, values, arraySz))
  ------------------
  |  Branch (3925:20): [True: 0, False: 0]
  ------------------
 3926|      0|                {
 3927|      0|                    sharedParams->setNamedConstant(pName, &values[0], arraySz);
 3928|      0|                }
 3929|      0|                else
 3930|      0|                    compiler->addError(*prop);
 3931|      0|                break;
 3932|      0|            }
 3933|      0|            case BCT_BOOL:
  ------------------
  |  Branch (3933:13): [True: 0, False: 9]
  ------------------
 3934|      0|            {
 3935|      0|                compiler->addError(ScriptCompiler::CE_DEPRECATEDSYMBOL, prop->file, prop->line,
 3936|      0|                                   "bool. Use uint instead");
 3937|      0|                std::vector<bool> tmp;
 3938|      0|                if(_getVector(arrayStart, arrayEnd, tmp, arraySz))
  ------------------
  |  Branch (3938:20): [True: 0, False: 0]
  ------------------
 3939|      0|                {
 3940|      0|                    std::vector<uint> values(tmp.begin(), tmp.end());
 3941|      0|                    sharedParams->setNamedConstant(pName, &values[0], arraySz);
 3942|      0|                }
 3943|      0|                else
 3944|      0|                    compiler->addError(*prop);
 3945|      0|                break;
 3946|      0|            }
 3947|      0|            default:
  ------------------
  |  Branch (3947:13): [True: 0, False: 9]
  ------------------
 3948|      0|                compiler->addError(*prop, "invalid parameter type");
 3949|      0|                break;
 3950|      9|            }
 3951|      9|        }
 3952|     19|    }
_ZN4Ogre24ParticleSystemTranslatorC2Ev:
 3958|      1|        :mSystem(0)
 3959|      1|    {
 3960|      1|    }
_ZN4Ogre25ParticleEmitterTranslatorC2Ev:
 4035|      1|        :mEmitter(0)
 4036|      1|    {
 4037|      1|    }
_ZN4Ogre26ParticleAffectorTranslatorC2Ev:
 4083|      1|        :mAffector(0)
 4084|      1|    {
 4085|      1|    }
_ZN4Ogre20CompositorTranslatorC2Ev:
 4130|      1|        :mCompositor(0)
 4131|      1|    {
 4132|      1|    }
_ZN4Ogre20CompositorTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 4135|     95|    {
 4136|     95|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 4137|     95|        if(obj->name.empty())
  ------------------
  |  Branch (4137:12): [True: 0, False: 95]
  ------------------
 4138|      0|        {
 4139|      0|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line);
 4140|      0|            return;
 4141|      0|        }
 4142|       |
 4143|       |        // Create the compositor
 4144|     95|        CreateCompositorScriptCompilerEvent evt(obj->file, obj->name, compiler->getResourceGroup());
 4145|     95|        bool processed = compiler->_fireEvent(&evt, (void*)&mCompositor);
 4146|       |
 4147|     95|        if(!processed)
  ------------------
  |  Branch (4147:12): [True: 95, False: 0]
  ------------------
 4148|     95|        {
 4149|     95|            mCompositor = CompositorManager::getSingleton().create(obj->name, compiler->getResourceGroup()).get();
 4150|     95|        }
 4151|       |
 4152|     95|        if(!mCompositor)
  ------------------
  |  Branch (4152:12): [True: 0, False: 95]
  ------------------
 4153|      0|        {
 4154|      0|            compiler->addError(ScriptCompiler::CE_OBJECTALLOCATIONERROR, obj->file, obj->line, obj->name);
 4155|      0|            return;
 4156|      0|        }
 4157|       |
 4158|       |        // Prepare the compositor
 4159|     95|        mCompositor->removeAllTechniques();
 4160|     95|        mCompositor->_notifyOrigin(obj->file);
 4161|     95|        obj->context = mCompositor;
 4162|       |
 4163|     95|        for(auto & i : obj->children)
  ------------------
  |  Branch (4163:22): [True: 3.63k, False: 95]
  ------------------
 4164|  3.63k|        {
 4165|  3.63k|            if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (4165:16): [True: 1.72k, False: 1.91k]
  ------------------
 4166|  1.72k|            {
 4167|  1.72k|                processNode(compiler, i);
 4168|  1.72k|            }
 4169|  1.91k|            else
 4170|  1.91k|            {
 4171|  1.91k|                compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, i->file, i->line,
 4172|  1.91k|                                   "token not recognized");
 4173|  1.91k|            }
 4174|  3.63k|        }
 4175|     95|    }
_ZN4Ogre30CompositionTechniqueTranslatorC2Ev:
 4181|      1|        :mTechnique(0)
 4182|      1|    {
 4183|      1|    }
_ZN4Ogre30CompositionTechniqueTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 4186|  1.47k|    {
 4187|  1.47k|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 4188|       |
 4189|  1.47k|        Compositor *compositor = any_cast<Compositor*>(obj->parent->context);
 4190|  1.47k|        mTechnique = compositor->createTechnique();
 4191|  1.47k|        obj->context = mTechnique;
 4192|       |
 4193|  1.47k|        String sval;
 4194|  1.47k|        uint32 uival;
 4195|       |
 4196|  1.47k|        for(auto & i : obj->children)
  ------------------
  |  Branch (4196:22): [True: 7.89k, False: 921]
  ------------------
 4197|  7.89k|        {
 4198|  7.89k|            if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (4198:16): [True: 2.39k, False: 5.50k]
  ------------------
 4199|  2.39k|            {
 4200|  2.39k|                processNode(compiler, i);
 4201|  2.39k|            }
 4202|  5.50k|            else if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (4202:21): [True: 5.23k, False: 269]
  ------------------
 4203|  5.23k|            {
 4204|  5.23k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 4205|  5.23k|                switch(prop->id)
 4206|  5.23k|                {
 4207|  1.84k|                case ID_TEXTURE:
  ------------------
  |  Branch (4207:17): [True: 1.84k, False: 3.38k]
  ------------------
 4208|  1.84k|                    {
 4209|  1.84k|                        if (prop->values.size() < 4)
  ------------------
  |  Branch (4209:29): [True: 201, False: 1.64k]
  ------------------
 4210|    201|                        {
 4211|    201|                            compiler->addError(*prop, "texture must have at least 4 arguments");
 4212|    201|                            continue;
 4213|    201|                        }
 4214|       |
 4215|       |                        // Save the first atom, should be name
 4216|  1.64k|                        AbstractNodeList::const_iterator it = getNodeAt(prop->values, 0);
 4217|  1.64k|                        const String& name = (*it)->getString();
 4218|       |
 4219|  1.64k|                        if(name.empty())
  ------------------
  |  Branch (4219:28): [True: 0, False: 1.64k]
  ------------------
 4220|      0|                        {
 4221|      0|                            compiler->addError(*prop, "texture name cannot be empty");
 4222|      0|                            continue;
 4223|      0|                        }
 4224|       |
 4225|  1.64k|                        uint32 width = 0, height = 0;
 4226|  1.64k|                        uint32 depth = 1;
 4227|  1.64k|                        float widthFactor = 1.0f, heightFactor = 1.0f;
 4228|  1.64k|                        bool widthSet = false, heightSet = false, formatSet = false;
 4229|  1.64k|                        bool pooled = false;
 4230|  1.64k|                        bool hwGammaWrite = false;
 4231|  1.64k|                        uint32 fsaa = 1;
 4232|  1.64k|                        auto type = TEX_TYPE_2D;
 4233|  1.64k|                        uint16 depthBufferId = RBP_DEFAULT;
 4234|  1.64k|                        CompositionTechnique::TextureScope scope = CompositionTechnique::TS_LOCAL;
 4235|  1.64k|                        Ogre::PixelFormatList formats;
 4236|       |
 4237|  1.64k|                        size_t atomIndex = 1;
 4238|  16.8k|                        while (atomIndex < prop->values.size())
  ------------------
  |  Branch (4238:32): [True: 15.6k, False: 1.22k]
  ------------------
 4239|  15.6k|                        {
 4240|  15.6k|                            it = getNodeAt(prop->values, static_cast<int>(atomIndex++));
 4241|  15.6k|                            if((*it)->type != ANT_ATOM)
  ------------------
  |  Branch (4241:32): [True: 0, False: 15.6k]
  ------------------
 4242|      0|                            {
 4243|      0|                                compiler->addError(*prop);
 4244|      0|                                return;
 4245|      0|                            }
 4246|  15.6k|                            AtomAbstractNode *atom = (AtomAbstractNode*)(*it).get();
 4247|       |
 4248|  15.6k|                            switch(atom->id)
 4249|  15.6k|                            {
 4250|    300|                            case ID_TARGET_WIDTH:
  ------------------
  |  Branch (4250:29): [True: 300, False: 15.3k]
  ------------------
 4251|    300|                                width = 0;
 4252|    300|                                widthSet = true;
 4253|    300|                                break;
 4254|    156|                            case ID_TARGET_HEIGHT:
  ------------------
  |  Branch (4254:29): [True: 156, False: 15.4k]
  ------------------
 4255|    156|                                height = 0;
 4256|    156|                                heightSet = true;
 4257|    156|                                break;
 4258|    502|                            case ID_TARGET_WIDTH_SCALED:
  ------------------
  |  Branch (4258:29): [True: 502, False: 15.1k]
  ------------------
 4259|    626|                            case ID_TARGET_HEIGHT_SCALED:
  ------------------
  |  Branch (4259:29): [True: 124, False: 15.4k]
  ------------------
 4260|    626|                                {
 4261|    626|                                    bool *pSetFlag;
 4262|    626|                                    uint32 *pSize;
 4263|    626|                                    float *pFactor;
 4264|       |
 4265|    626|                                    if (atom->id == ID_TARGET_WIDTH_SCALED)
  ------------------
  |  Branch (4265:41): [True: 502, False: 124]
  ------------------
 4266|    502|                                    {
 4267|    502|                                        pSetFlag = &widthSet;
 4268|    502|                                        pSize = &width;
 4269|    502|                                        pFactor = &widthFactor;
 4270|    502|                                    }
 4271|    124|                                    else
 4272|    124|                                    {
 4273|    124|                                        pSetFlag = &heightSet;
 4274|    124|                                        pSize = &height;
 4275|    124|                                        pFactor = &heightFactor;
 4276|    124|                                    }
 4277|       |                                    // advance to next to get scaling
 4278|    626|                                    it = getNodeAt(prop->values, static_cast<int>(atomIndex++));
 4279|    626|                                    if(prop->values.end() == it || !getValue(*it, *pFactor))
  ------------------
  |  Branch (4279:40): [True: 124, False: 502]
  |  Branch (4279:40): [True: 240, False: 386]
  |  Branch (4279:68): [True: 116, False: 386]
  ------------------
 4280|    240|                                    {
 4281|    240|                                        compiler->addError(*prop);
 4282|    240|                                        return;
 4283|    240|                                    }
 4284|       |
 4285|    386|                                    *pSize = 0;
 4286|    386|                                    *pSetFlag = true;
 4287|    386|                                }
 4288|      0|                                break;
 4289|      0|                            case ID_POOLED:
  ------------------
  |  Branch (4289:29): [True: 0, False: 15.6k]
  ------------------
 4290|      0|                                pooled = true;
 4291|      0|                                break;
 4292|     55|                            case ID_CUBIC:
  ------------------
  |  Branch (4292:29): [True: 55, False: 15.5k]
  ------------------
 4293|     55|                                type = TEX_TYPE_CUBE_MAP;
 4294|     55|                                break;
 4295|      0|                            case ID_2DARRAY:
  ------------------
  |  Branch (4295:29): [True: 0, False: 15.6k]
  ------------------
 4296|      0|                                type = TEX_TYPE_2D_ARRAY;
 4297|      0|                                break;
 4298|      0|                            case ID_2DMS:
  ------------------
  |  Branch (4298:29): [True: 0, False: 15.6k]
  ------------------
 4299|      0|                                type = TEX_TYPE_2D_MULTISAMPLE;
 4300|      0|                                break;
 4301|      0|                            case ID_SCOPE_LOCAL:
  ------------------
  |  Branch (4301:29): [True: 0, False: 15.6k]
  ------------------
 4302|      0|                                scope = CompositionTechnique::TS_LOCAL;
 4303|      0|                                break;
 4304|      0|                            case ID_SCOPE_CHAIN:
  ------------------
  |  Branch (4304:29): [True: 0, False: 15.6k]
  ------------------
 4305|      0|                                scope = CompositionTechnique::TS_CHAIN;
 4306|      0|                                break;
 4307|      0|                            case ID_SCOPE_GLOBAL:
  ------------------
  |  Branch (4307:29): [True: 0, False: 15.6k]
  ------------------
 4308|      0|                                scope = CompositionTechnique::TS_GLOBAL;
 4309|      0|                                break;
 4310|      0|                            case ID_GAMMA:
  ------------------
  |  Branch (4310:29): [True: 0, False: 15.6k]
  ------------------
 4311|      0|                                hwGammaWrite = true;
 4312|      0|                                break;
 4313|  3.16k|                            case ID_NO_FSAA:
  ------------------
  |  Branch (4313:29): [True: 3.16k, False: 12.4k]
  ------------------
 4314|  3.16k|                                fsaa = 0;
 4315|  3.16k|                                break;
 4316|      6|                            case ID_FSAA:
  ------------------
  |  Branch (4316:29): [True: 6, False: 15.5k]
  ------------------
 4317|       |                                // advance to next to get the value
 4318|      6|                                it = getNodeAt(prop->values, atomIndex++);
 4319|      6|                                if(prop->values.end() == it || !getValue(*it, fsaa))
  ------------------
  |  Branch (4319:36): [True: 0, False: 6]
  |  Branch (4319:36): [True: 6, False: 0]
  |  Branch (4319:64): [True: 6, False: 0]
  ------------------
 4320|      6|                                {
 4321|      6|                                    compiler->addError(*prop);
 4322|      6|                                    return;
 4323|      6|                                }
 4324|      0|                                break;
 4325|  5.99k|                            case ID_DEPTH_POOL:
  ------------------
  |  Branch (4325:29): [True: 5.99k, False: 9.60k]
  ------------------
 4326|  5.99k|                                {
 4327|       |                                    // advance to next to get the ID
 4328|  5.99k|                                    it = getNodeAt(prop->values, static_cast<int>(atomIndex++));
 4329|  5.99k|                                    if(prop->values.end() == it || !getValue(*it, uival))
  ------------------
  |  Branch (4329:40): [True: 0, False: 5.99k]
  |  Branch (4329:40): [True: 0, False: 5.99k]
  |  Branch (4329:68): [True: 0, False: 5.99k]
  ------------------
 4330|      0|                                    {
 4331|      0|                                        compiler->addError(*prop);
 4332|      0|                                        return;
 4333|      0|                                    }
 4334|  5.99k|                                    depthBufferId = Math::uint16Cast(uival);
 4335|  5.99k|                                }
 4336|      0|                                break;
 4337|  5.29k|                            default:
  ------------------
  |  Branch (4337:29): [True: 5.29k, False: 10.3k]
  ------------------
 4338|  5.29k|                                if (StringConverter::parse(atom->value, uival))
  ------------------
  |  Branch (4338:37): [True: 2.23k, False: 3.06k]
  ------------------
 4339|  2.23k|                                {
 4340|  2.23k|                                    if (atomIndex == 2)
  ------------------
  |  Branch (4340:41): [True: 1.08k, False: 1.14k]
  ------------------
 4341|  1.08k|                                    {
 4342|  1.08k|                                        width = uival;
 4343|  1.08k|                                        widthSet = true;
 4344|  1.08k|                                    }
 4345|  1.14k|                                    else if (atomIndex == 3)
  ------------------
  |  Branch (4345:46): [True: 1.07k, False: 75]
  ------------------
 4346|  1.07k|                                    {
 4347|  1.07k|                                        height = uival;
 4348|  1.07k|                                        heightSet = true;
 4349|  1.07k|                                    }
 4350|     75|                                    else if (atomIndex == 4)
  ------------------
  |  Branch (4350:46): [True: 71, False: 4]
  ------------------
 4351|     71|                                    {
 4352|     71|                                        depth = uival;
 4353|     71|                                    }
 4354|      4|                                    else
 4355|      4|                                    {
 4356|      4|                                        compiler->addError(*prop);
 4357|      4|                                        return;
 4358|      4|                                    }
 4359|  2.23k|                                }
 4360|  3.06k|                                else
 4361|  3.06k|                                {
 4362|       |                                    // pixel format?
 4363|  3.06k|                                    PixelFormat format = PixelUtil::getFormatFromName(atom->value, true);
 4364|  3.06k|                                    if (format == PF_UNKNOWN)
  ------------------
  |  Branch (4364:41): [True: 171, False: 2.89k]
  ------------------
 4365|    171|                                    {
 4366|    171|                                        compiler->addError(*prop, atom->value);
 4367|    171|                                        return;
 4368|    171|                                    }
 4369|  2.89k|                                    formats.push_back(format);
 4370|  2.89k|                                    formatSet = true;
 4371|  2.89k|                                }
 4372|       |
 4373|  15.6k|                            }
 4374|  15.6k|                        }
 4375|  1.22k|                        if (!widthSet || !heightSet || !formatSet)
  ------------------
  |  Branch (4375:29): [True: 0, False: 1.22k]
  |  Branch (4375:42): [True: 60, False: 1.16k]
  |  Branch (4375:56): [True: 1, False: 1.16k]
  ------------------
 4376|     61|                        {
 4377|     61|                            compiler->addError(*prop, "texture definition must specify width, height, and format");
 4378|     61|                            return;
 4379|     61|                        }
 4380|       |
 4381|  1.16k|                        if(depth != 1 && type != TEX_TYPE_2D_ARRAY)
  ------------------
  |  Branch (4381:28): [True: 68, False: 1.09k]
  |  Branch (4381:42): [True: 68, False: 0]
  ------------------
 4382|     68|                        {
 4383|     68|                            compiler->addError(*prop, "depth only supported for 2d_array textures");
 4384|     68|                            return;
 4385|     68|                        }
 4386|       |
 4387|       |                        // No errors, create
 4388|  1.09k|                        try {
 4389|  1.09k|                            CompositionTechnique::TextureDefinition *def = mTechnique->createTextureDefinition(name);
 4390|  1.09k|                            def->width = width;
 4391|  1.09k|                            def->height = height;
 4392|  1.09k|                            def->depth = depth;
 4393|  1.09k|                            def->type = type;
 4394|  1.09k|                            def->widthFactor = widthFactor;
 4395|  1.09k|                            def->heightFactor = heightFactor;
 4396|  1.09k|                            def->formatList = formats;
 4397|  1.09k|                            def->fsaa = fsaa;
 4398|  1.09k|                            def->hwGammaWrite = hwGammaWrite;
 4399|  1.09k|                            def->depthBufferId = depthBufferId;
 4400|  1.09k|                            def->pooled = pooled;
 4401|  1.09k|                            def->scope = scope;
 4402|  1.09k|                        }
 4403|  1.09k|                        catch (Exception &e)
 4404|  1.09k|                        {
 4405|    285|                            compiler->addError(*prop, e.getDescription());
 4406|    285|                        }
 4407|  1.09k|                    }
 4408|  1.09k|                    break;
 4409|    873|                case ID_TEXTURE_REF:
  ------------------
  |  Branch (4409:17): [True: 873, False: 4.35k]
  ------------------
 4410|    873|                    if(prop->values.empty())
  ------------------
  |  Branch (4410:24): [True: 0, False: 873]
  ------------------
 4411|      0|                    {
 4412|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 4413|      0|                    }
 4414|    873|                    else if(prop->values.size() != 3)
  ------------------
  |  Branch (4414:29): [True: 46, False: 827]
  ------------------
 4415|     46|                    {
 4416|     46|                        compiler->addError(*prop, "texture_ref only supports 3 argument");
 4417|     46|                    }
 4418|    827|                    else
 4419|    827|                    {
 4420|    827|                        String texName, refCompName, refTexName;
 4421|       |
 4422|    827|                        AbstractNodeList::const_iterator it = getNodeAt(prop->values, 0);
 4423|    827|                        if(!getString(*it, &texName))
  ------------------
  |  Branch (4423:28): [True: 0, False: 827]
  ------------------
 4424|      0|                            compiler->addError(*prop, "texture_ref must have 3 string arguments");
 4425|       |
 4426|    827|                        it = getNodeAt(prop->values, 1);
 4427|    827|                        if(!getString(*it, &refCompName))
  ------------------
  |  Branch (4427:28): [True: 32, False: 795]
  ------------------
 4428|     32|                            compiler->addError(*prop, "texture_ref must have 3 string arguments");
 4429|       |
 4430|    827|                        it = getNodeAt(prop->values, 2);
 4431|    827|                        if(!getString(*it, &refTexName))
  ------------------
  |  Branch (4431:28): [True: 363, False: 464]
  ------------------
 4432|    363|                            compiler->addError(*prop, "texture_ref must have 3 string arguments");
 4433|       |
 4434|    827|                        CompositionTechnique::TextureDefinition* refTexDef =
 4435|    827|                            mTechnique->createTextureDefinition(texName);
 4436|       |
 4437|    827|                        refTexDef->refCompName = refCompName;
 4438|    827|                        refTexDef->refTexName = refTexName;
 4439|    827|                    }
 4440|    873|                    break;
 4441|      0|                case ID_SCHEME:
  ------------------
  |  Branch (4441:17): [True: 0, False: 5.23k]
  ------------------
 4442|      0|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (4442:24): [True: 0, False: 0]
  ------------------
 4443|      0|                        mTechnique->setSchemeName(sval);
 4444|      0|                    break;
 4445|    133|                case ID_COMPOSITOR_LOGIC:
  ------------------
  |  Branch (4445:17): [True: 133, False: 5.09k]
  ------------------
 4446|    133|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (4446:24): [True: 127, False: 6]
  ------------------
 4447|    127|                        mTechnique->setCompositorLogicName(sval);
 4448|    133|                    break;
 4449|  2.38k|                default:
  ------------------
  |  Branch (4449:17): [True: 2.38k, False: 2.84k]
  ------------------
 4450|  2.38k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 4451|  2.38k|                                       "token \"" + prop->name + "\" is not recognized");
 4452|  5.23k|                }
 4453|  5.23k|            }
 4454|  7.89k|        }
 4455|  1.47k|    }
_ZN4Ogre31CompositionTargetPassTranslatorC2Ev:
 4461|      1|        :mTarget(0)
 4462|      1|    {
 4463|      1|    }
_ZN4Ogre31CompositionTargetPassTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 4466|  1.56k|    {
 4467|  1.56k|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 4468|       |
 4469|  1.56k|        CompositionTechnique *technique = any_cast<CompositionTechnique*>(obj->parent->context);
 4470|  1.56k|        if(obj->id == ID_TARGET)
  ------------------
  |  Branch (4470:12): [True: 1.43k, False: 133]
  ------------------
 4471|  1.43k|        {
 4472|  1.43k|            mTarget = technique->createTargetPass();
 4473|  1.43k|            if(obj->name.empty())
  ------------------
  |  Branch (4473:16): [True: 0, False: 1.43k]
  ------------------
 4474|      0|            {
 4475|      0|                compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, obj->file, obj->line);
 4476|      0|                return;
 4477|      0|            }
 4478|  1.43k|            mTarget->setOutputName(obj->name);
 4479|       |
 4480|  1.43k|            if(!obj->values.empty())
  ------------------
  |  Branch (4480:16): [True: 1.36k, False: 64]
  ------------------
 4481|  1.36k|            {
 4482|  1.36k|                int val;
 4483|  1.36k|                if(getInt(obj->values.front(), &val))
  ------------------
  |  Branch (4483:20): [True: 1.23k, False: 137]
  ------------------
 4484|  1.23k|                    mTarget->setOutputSlice(val);
 4485|  1.36k|            }
 4486|  1.43k|        }
 4487|    133|        else if(obj->id == ID_TARGET_OUTPUT)
  ------------------
  |  Branch (4487:17): [True: 133, False: 0]
  ------------------
 4488|    133|        {
 4489|    133|            mTarget = technique->getOutputTargetPass();
 4490|    133|            if (!mTarget->getPasses().empty() || mTarget->getInputMode() != CompositionTargetPass::IM_NONE)
  ------------------
  |  Branch (4490:17): [True: 131, False: 2]
  |  Branch (4490:50): [True: 0, False: 2]
  ------------------
 4491|    131|            {
 4492|    131|                compiler->addError(*obj, "target_output can only be used once per technique");
 4493|    131|            }
 4494|    133|        }
 4495|  1.56k|        obj->context = mTarget;
 4496|       |
 4497|  1.56k|        bool bval;
 4498|  1.56k|        Real fval;
 4499|  1.56k|        uint32 uival;
 4500|  1.56k|        String sval;
 4501|       |
 4502|  1.56k|        for(auto & i : obj->children)
  ------------------
  |  Branch (4502:22): [True: 13.1k, False: 1.56k]
  ------------------
 4503|  13.1k|        {
 4504|  13.1k|            if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (4504:16): [True: 9.10k, False: 4.07k]
  ------------------
 4505|  9.10k|            {
 4506|  9.10k|                processNode(compiler, i);
 4507|  9.10k|            }
 4508|  4.07k|            else if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (4508:21): [True: 1.66k, False: 2.41k]
  ------------------
 4509|  1.66k|            {
 4510|  1.66k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 4511|  1.66k|                switch(prop->id)
 4512|  1.66k|                {
 4513|     90|                case ID_INPUT:
  ------------------
  |  Branch (4513:17): [True: 90, False: 1.57k]
  ------------------
 4514|     90|                    CompositionTargetPass::InputMode im;
 4515|     90|                    if(getValue(prop, compiler, im))
  ------------------
  |  Branch (4515:24): [True: 19, False: 71]
  ------------------
 4516|     19|                        mTarget->setInputMode(im);
 4517|     90|                    break;
 4518|      0|                case ID_ONLY_INITIAL:
  ------------------
  |  Branch (4518:17): [True: 0, False: 1.66k]
  ------------------
 4519|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (4519:24): [True: 0, False: 0]
  ------------------
 4520|      0|                        mTarget->setOnlyInitial(bval);
 4521|      0|                    break;
 4522|      0|                case ID_VISIBILITY_MASK:
  ------------------
  |  Branch (4522:17): [True: 0, False: 1.66k]
  ------------------
 4523|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4523:24): [True: 0, False: 0]
  ------------------
 4524|      0|                        mTarget->setVisibilityMask(uival);
 4525|      0|                    break;
 4526|      0|                case ID_LOD_BIAS:
  ------------------
  |  Branch (4526:17): [True: 0, False: 1.66k]
  ------------------
 4527|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (4527:24): [True: 0, False: 0]
  ------------------
 4528|      0|                        mTarget->setLodBias(fval);
 4529|      0|                    break;
 4530|     67|                case ID_MATERIAL_SCHEME:
  ------------------
  |  Branch (4530:17): [True: 67, False: 1.59k]
  ------------------
 4531|     67|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (4531:24): [True: 67, False: 0]
  ------------------
 4532|     67|                        mTarget->setMaterialScheme(sval);
 4533|     67|                    break;
 4534|      0|                case ID_SHADOWS_ENABLED:
  ------------------
  |  Branch (4534:17): [True: 0, False: 1.66k]
  ------------------
 4535|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (4535:24): [True: 0, False: 0]
  ------------------
 4536|      0|                        mTarget->setShadowsEnabled(bval);
 4537|      0|                    break;
 4538|  1.50k|                default:
  ------------------
  |  Branch (4538:17): [True: 1.50k, False: 157]
  ------------------
 4539|  1.50k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 4540|  1.50k|                                       "token \"" + prop->name + "\" is not recognized");
 4541|  1.66k|                }
 4542|  1.66k|            }
 4543|  13.1k|        }
 4544|  1.56k|    }
_ZN4Ogre25CompositionPassTranslatorC2Ev:
 4550|      1|        :mPass(0)
 4551|      1|    {
 4552|      1|    }
_ZN4Ogre25CompositionPassTranslator9translateEPNS_14ScriptCompilerERKNS_9SharedPtrINS_12AbstractNodeEEE:
 4555|  6.04k|    {
 4556|  6.04k|        ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 4557|       |
 4558|       |        // The name is the type of the pass
 4559|  6.04k|        if(obj->values.empty() || obj->values.front()->type != ANT_ATOM)
  ------------------
  |  Branch (4559:12): [True: 0, False: 6.04k]
  |  Branch (4559:35): [True: 0, False: 6.04k]
  ------------------
 4560|      0|        {
 4561|      0|            compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, obj->file, obj->line, "pass type missing");
 4562|      0|            return;
 4563|      0|        }
 4564|       |
 4565|  6.04k|        AtomAbstractNode* atom = static_cast<AtomAbstractNode*>(obj->values.front().get());
 4566|       |
 4567|  6.04k|        CompositionPass::PassType ptype;
 4568|  6.04k|        switch(atom->id)
 4569|  6.04k|        {
 4570|    459|            case ID_CLEAR:
  ------------------
  |  Branch (4570:13): [True: 459, False: 5.58k]
  ------------------
 4571|    459|                ptype = CompositionPass::PT_CLEAR;
 4572|    459|                break;
 4573|      0|            case ID_STENCIL:
  ------------------
  |  Branch (4573:13): [True: 0, False: 6.04k]
  ------------------
 4574|      0|                ptype = CompositionPass::PT_STENCIL;
 4575|      0|                break;
 4576|     12|            case ID_RENDER_QUAD:
  ------------------
  |  Branch (4576:13): [True: 12, False: 6.03k]
  ------------------
 4577|     12|                ptype = CompositionPass::PT_RENDERQUAD;
 4578|     12|                break;
 4579|  5.56k|            case ID_RENDER_SCENE:
  ------------------
  |  Branch (4579:13): [True: 5.56k, False: 478]
  ------------------
 4580|  5.56k|                ptype = CompositionPass::PT_RENDERSCENE;
 4581|  5.56k|                break;
 4582|      0|            case ID_COMPUTE:
  ------------------
  |  Branch (4582:13): [True: 0, False: 6.04k]
  ------------------
 4583|      0|                ptype = CompositionPass::PT_COMPUTE;
 4584|      0|                break;
 4585|      0|            case ID_RENDER_CUSTOM:
  ------------------
  |  Branch (4585:13): [True: 0, False: 6.04k]
  ------------------
 4586|      0|                ptype = CompositionPass::PT_RENDERCUSTOM;
 4587|      0|                break;
 4588|      7|            default:
  ------------------
  |  Branch (4588:13): [True: 7, False: 6.03k]
  ------------------
 4589|      7|                compiler->addError(*obj, atom->value);
 4590|      7|                return;
 4591|  6.04k|        }
 4592|       |
 4593|  6.03k|        CompositionTargetPass *target = any_cast<CompositionTargetPass*>(obj->parent->context);
 4594|  6.03k|        mPass = target->createPass(ptype);
 4595|  6.03k|        obj->context = mPass;
 4596|       |
 4597|  6.03k|        if(mPass->getType() == CompositionPass::PT_RENDERCUSTOM)
  ------------------
  |  Branch (4597:12): [True: 0, False: 6.03k]
  ------------------
 4598|      0|        {
 4599|      0|            String customType;
 4600|       |            //This is the ugly one liner for safe access to the second parameter.
 4601|      0|            if (obj->values.size() < 2 || !getString(*(++(obj->values.begin())), &customType))
  ------------------
  |  Branch (4601:17): [True: 0, False: 0]
  |  Branch (4601:17): [True: 0, False: 0]
  |  Branch (4601:43): [True: 0, False: 0]
  ------------------
 4602|      0|            {
 4603|      0|                compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, obj->file, obj->line);
 4604|      0|                return;
 4605|      0|            }
 4606|      0|            mPass->setCustomType(customType);
 4607|      0|        }
 4608|       |
 4609|  6.03k|        Real fval;
 4610|  6.03k|        bool bval;
 4611|  6.03k|        uint32 uival;
 4612|  6.03k|        String sval;
 4613|  6.03k|        StencilOperation sop;
 4614|       |
 4615|  6.03k|        for(auto & i : obj->children)
  ------------------
  |  Branch (4615:22): [True: 130k, False: 6.03k]
  ------------------
 4616|   130k|        {
 4617|   130k|            if(i->type == ANT_OBJECT)
  ------------------
  |  Branch (4617:16): [True: 8.73k, False: 122k]
  ------------------
 4618|  8.73k|            {
 4619|  8.73k|                processNode(compiler, i);
 4620|  8.73k|            }
 4621|   122k|            else if(i->type == ANT_PROPERTY)
  ------------------
  |  Branch (4621:21): [True: 102k, False: 19.5k]
  ------------------
 4622|   102k|            {
 4623|   102k|                PropertyAbstractNode *prop = static_cast<PropertyAbstractNode*>(i.get());
 4624|   102k|                switch(prop->id)
 4625|   102k|                {
 4626|      0|                case ID_CHECK:
  ------------------
  |  Branch (4626:17): [True: 0, False: 102k]
  ------------------
 4627|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (4627:24): [True: 0, False: 0]
  ------------------
 4628|      0|                        mPass->setStencilCheck(bval);
 4629|      0|                    break;
 4630|      0|                case ID_COMP_FUNC:
  ------------------
  |  Branch (4630:17): [True: 0, False: 102k]
  ------------------
 4631|      0|                    CompareFunction func;
 4632|      0|                    if(getValue(prop, compiler, func))
  ------------------
  |  Branch (4632:24): [True: 0, False: 0]
  ------------------
 4633|      0|                        mPass->setStencilFunc(func);
 4634|      0|                    break;
 4635|      0|                case ID_REF_VALUE:
  ------------------
  |  Branch (4635:17): [True: 0, False: 102k]
  ------------------
 4636|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4636:24): [True: 0, False: 0]
  ------------------
 4637|      0|                        mPass->setStencilRefValue(uival);
 4638|      0|                    break;
 4639|    953|                case ID_MASK:
  ------------------
  |  Branch (4639:17): [True: 953, False: 101k]
  ------------------
 4640|    953|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4640:24): [True: 0, False: 953]
  ------------------
 4641|      0|                        mPass->setStencilMask(uival);
 4642|    953|                    break;
 4643|      0|                case ID_FAIL_OP:
  ------------------
  |  Branch (4643:17): [True: 0, False: 102k]
  ------------------
 4644|      0|                    if(getValue(prop, compiler, sop))
  ------------------
  |  Branch (4644:24): [True: 0, False: 0]
  ------------------
 4645|      0|                        mPass->setStencilFailOp(sop);
 4646|      0|                    break;
 4647|      6|                case ID_DEPTH_FAIL_OP:
  ------------------
  |  Branch (4647:17): [True: 6, False: 102k]
  ------------------
 4648|      6|                    if(getValue(prop, compiler, sop))
  ------------------
  |  Branch (4648:24): [True: 0, False: 6]
  ------------------
 4649|      0|                        mPass->setStencilDepthFailOp(sop);
 4650|      6|                    break;
 4651|      0|                case ID_PASS_OP:
  ------------------
  |  Branch (4651:17): [True: 0, False: 102k]
  ------------------
 4652|      0|                    if(getValue(prop, compiler, sop))
  ------------------
  |  Branch (4652:24): [True: 0, False: 0]
  ------------------
 4653|      0|                        mPass->setStencilPassOp(sop);
 4654|      0|                    break;
 4655|      0|                case ID_TWO_SIDED:
  ------------------
  |  Branch (4655:17): [True: 0, False: 102k]
  ------------------
 4656|      0|                    if(getValue(prop, compiler, bval))
  ------------------
  |  Branch (4656:24): [True: 0, False: 0]
  ------------------
 4657|      0|                        mPass->setStencilTwoSidedOperation(bval);
 4658|      0|                    break;
 4659|    258|                case ID_BUFFERS:
  ------------------
  |  Branch (4659:17): [True: 258, False: 102k]
  ------------------
 4660|    258|                    {
 4661|    258|                        uint32 buffers = 0;
 4662|    258|                        for(const auto& v : prop->values)
  ------------------
  |  Branch (4662:43): [True: 645, False: 258]
  ------------------
 4663|    645|                        {
 4664|    645|                            switch(getAtomId(v))
 4665|    645|                            {
 4666|    129|                            case ID_COLOUR:
  ------------------
  |  Branch (4666:29): [True: 129, False: 516]
  ------------------
 4667|    129|                                buffers |= FBT_COLOUR;
 4668|    129|                                break;
 4669|      0|                            case ID_DEPTH:
  ------------------
  |  Branch (4669:29): [True: 0, False: 645]
  ------------------
 4670|      0|                                buffers |= FBT_DEPTH;
 4671|      0|                                break;
 4672|      0|                            case ID_STENCIL:
  ------------------
  |  Branch (4672:29): [True: 0, False: 645]
  ------------------
 4673|      0|                                buffers |= FBT_STENCIL;
 4674|      0|                                break;
 4675|    516|                            default:
  ------------------
  |  Branch (4675:29): [True: 516, False: 129]
  ------------------
 4676|    516|                                compiler->addError(*prop);
 4677|    645|                            }
 4678|    645|                        }
 4679|    258|                        mPass->setClearBuffers(buffers);
 4680|    258|                    }
 4681|      0|                    break;
 4682|    258|                case ID_COLOUR_VALUE:
  ------------------
  |  Branch (4682:17): [True: 258, False: 102k]
  ------------------
 4683|    258|                    {
 4684|    258|                        if(prop->values.empty())
  ------------------
  |  Branch (4684:28): [True: 0, False: 258]
  ------------------
 4685|      0|                        {
 4686|      0|                            compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 4687|      0|                            return;
 4688|      0|                        }
 4689|    258|                        ColourValue val;
 4690|    258|                        if (getAtomId(prop->values.front()) == ID_AUTO)
  ------------------
  |  Branch (4690:29): [True: 0, False: 258]
  ------------------
 4691|      0|                            mPass->setAutomaticColour(true);
 4692|    258|                        else if(getColour(prop->values.begin(), prop->values.end(), &val))
  ------------------
  |  Branch (4692:33): [True: 0, False: 258]
  ------------------
 4693|      0|                            mPass->setClearColour(val);
 4694|    258|                        else
 4695|    258|                            compiler->addError(*prop);
 4696|    258|                    }
 4697|      0|                    break;
 4698|      0|                case ID_DEPTH_VALUE:
  ------------------
  |  Branch (4698:17): [True: 0, False: 102k]
  ------------------
 4699|      0|                    if(getValue(prop, compiler, fval))
  ------------------
  |  Branch (4699:24): [True: 0, False: 0]
  ------------------
 4700|      0|                        mPass->setClearDepth(fval);
 4701|      0|                    break;
 4702|    128|                case ID_STENCIL_VALUE:
  ------------------
  |  Branch (4702:17): [True: 128, False: 102k]
  ------------------
 4703|    128|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4703:24): [True: 0, False: 128]
  ------------------
 4704|      0|                        mPass->setClearStencil(uival);
 4705|    128|                    break;
 4706|  73.4k|                case ID_MATERIAL:
  ------------------
  |  Branch (4706:17): [True: 73.4k, False: 29.0k]
  ------------------
 4707|  73.4k|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (4707:24): [True: 61.6k, False: 11.7k]
  ------------------
 4708|  61.6k|                    {
 4709|  61.6k|                        String name = processResourceName(compiler, ResourceType::MATERIAL, sval);
 4710|  61.6k|                        auto mat = MaterialManager::getSingleton().getByName(name, compiler->getResourceGroup());
 4711|  61.6k|                        if (mat)
  ------------------
  |  Branch (4711:29): [True: 59.2k, False: 2.33k]
  ------------------
 4712|  59.2k|                            mPass->setMaterial(mat);
 4713|  2.33k|                        else
 4714|  2.33k|                            compiler->addError(ScriptCompiler::CE_REFERENCETOANONEXISTINGOBJECT, prop->file,
 4715|  2.33k|                                               prop->line, name);
 4716|  61.6k|                    }
 4717|  73.4k|                    break;
 4718|    138|                case ID_INPUT:
  ------------------
  |  Branch (4718:17): [True: 138, False: 102k]
  ------------------
 4719|    138|                    if(prop->values.size() < 2)
  ------------------
  |  Branch (4719:24): [True: 2, False: 136]
  ------------------
 4720|      2|                    {
 4721|      2|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 4722|      2|                        return;
 4723|      2|                    }
 4724|    136|                    else if (prop->values.size() > 3)
  ------------------
  |  Branch (4724:30): [True: 5, False: 131]
  ------------------
 4725|      5|                    {
 4726|      5|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line);
 4727|      5|                        return;
 4728|      5|                    }
 4729|    131|                    else
 4730|    131|                    {
 4731|    131|                        AbstractNodeList::const_iterator i0 = getNodeAt(prop->values, 0), i1 = getNodeAt(prop->values, 1), i2 = getNodeAt(prop->values, 2);
 4732|    131|                        uint32 id;
 4733|    131|                        String name;
 4734|    131|                        if(getUInt(*i0, &id) && getString(*i1, &name))
  ------------------
  |  Branch (4734:28): [True: 0, False: 131]
  |  Branch (4734:49): [True: 0, False: 0]
  ------------------
 4735|      0|                        {
 4736|      0|                            uint32 index = 0;
 4737|      0|                            if(i2 != prop->values.end())
  ------------------
  |  Branch (4737:32): [True: 0, False: 0]
  ------------------
 4738|      0|                            {
 4739|      0|                                if(!getUInt(*i2, &index))
  ------------------
  |  Branch (4739:36): [True: 0, False: 0]
  ------------------
 4740|      0|                                {
 4741|      0|                                    compiler->addError(ScriptCompiler::CE_NUMBEREXPECTED, prop->file, prop->line);
 4742|      0|                                    return;
 4743|      0|                                }
 4744|      0|                            }
 4745|       |
 4746|      0|                            if(id >= OGRE_MAX_TEXTURE_LAYERS)
  ------------------
  |  Branch (4746:32): [True: 0, False: 0]
  ------------------
 4747|      0|                            {
 4748|      0|                                compiler->addError(*prop, "input id must be less than " +
 4749|      0|                                                       std::to_string(OGRE_MAX_TEXTURE_LAYERS));
 4750|      0|                                return;
 4751|      0|                            }
 4752|       |
 4753|      0|                            mPass->setInput(id, name, index);
 4754|      0|                        }
 4755|    131|                        else
 4756|    131|                        {
 4757|    131|                            compiler->addError(*prop);
 4758|    131|                        }
 4759|    131|                    }
 4760|    131|                    break;
 4761|    131|                case ID_IDENTIFIER:
  ------------------
  |  Branch (4761:17): [True: 10, False: 102k]
  ------------------
 4762|     10|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4762:24): [True: 4, False: 6]
  ------------------
 4763|      4|                        mPass->setIdentifier(uival);
 4764|     10|                    break;
 4765|      0|                case ID_FIRST_RENDER_QUEUE:
  ------------------
  |  Branch (4765:17): [True: 0, False: 102k]
  ------------------
 4766|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4766:24): [True: 0, False: 0]
  ------------------
 4767|      0|                        mPass->setFirstRenderQueue(static_cast<uint8>(uival));
 4768|      0|                    break;
 4769|      0|                case ID_LAST_RENDER_QUEUE:
  ------------------
  |  Branch (4769:17): [True: 0, False: 102k]
  ------------------
 4770|      0|                    if(getValue(prop, compiler, uival))
  ------------------
  |  Branch (4770:24): [True: 0, False: 0]
  ------------------
 4771|      0|                        mPass->setLastRenderQueue(static_cast<uint8>(uival));
 4772|      0|                    break;
 4773|    128|                case ID_MATERIAL_SCHEME:
  ------------------
  |  Branch (4773:17): [True: 128, False: 102k]
  ------------------
 4774|    128|                    if(getValue(prop, compiler, sval))
  ------------------
  |  Branch (4774:24): [True: 128, False: 0]
  ------------------
 4775|    128|                        mPass->setMaterialScheme(sval);
 4776|    128|                    break;
 4777|    129|                case ID_THREAD_GROUPS:
  ------------------
  |  Branch (4777:17): [True: 129, False: 102k]
  ------------------
 4778|    129|                {
 4779|    129|                    std::vector<int> g;
 4780|    129|                    if(_getVector(prop->values.begin(), prop->values.end(), g, 3))
  ------------------
  |  Branch (4780:24): [True: 129, False: 0]
  ------------------
 4781|    129|                        mPass->setThreadGroups({g[0], g[1], g[2]});
 4782|    129|                    break;
 4783|    138|                }
 4784|      3|                case ID_QUAD_NORMALS:
  ------------------
  |  Branch (4784:17): [True: 3, False: 102k]
  ------------------
 4785|      3|                    if(prop->values.empty())
  ------------------
  |  Branch (4785:24): [True: 0, False: 3]
  ------------------
 4786|      0|                    {
 4787|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 4788|      0|                        return;
 4789|      0|                    }
 4790|      3|                    else if (prop->values.size() > 1)
  ------------------
  |  Branch (4790:30): [True: 0, False: 3]
  ------------------
 4791|      0|                    {
 4792|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line);
 4793|      0|                        return;
 4794|      0|                    }
 4795|      3|                    else
 4796|      3|                    {
 4797|      3|                        uint32 quadNormalsId = getAtomId(prop->values.front());
 4798|      3|                        if(quadNormalsId == ID_CAMERA_FAR_CORNERS_VIEW_SPACE)
  ------------------
  |  Branch (4798:28): [True: 0, False: 3]
  ------------------
 4799|      0|                            mPass->setQuadFarCorners(true, true);
 4800|      3|                        else if(quadNormalsId == ID_CAMERA_FAR_CORNERS_WORLD_SPACE)
  ------------------
  |  Branch (4800:33): [True: 0, False: 3]
  ------------------
 4801|      0|                            mPass->setQuadFarCorners(true, false);
 4802|      3|                        else
 4803|      3|                            compiler->addError(*prop);
 4804|      3|                    }
 4805|      3|                    break;
 4806|  5.24k|                case ID_CAMERA:
  ------------------
  |  Branch (4806:17): [True: 5.24k, False: 97.2k]
  ------------------
 4807|  5.24k|                    if(prop->values.empty())
  ------------------
  |  Branch (4807:24): [True: 0, False: 5.24k]
  ------------------
 4808|      0|                    {
 4809|      0|                        compiler->addError(ScriptCompiler::CE_STRINGEXPECTED, prop->file, prop->line);
 4810|      0|                        return;
 4811|      0|                    }
 4812|  5.24k|                    else if (prop->values.size() > 2)
  ------------------
  |  Branch (4812:30): [True: 0, False: 5.24k]
  ------------------
 4813|      0|                    {
 4814|      0|                        compiler->addError(ScriptCompiler::CE_FEWERPARAMETERSEXPECTED, prop->file, prop->line);
 4815|      0|                        return;
 4816|      0|                    }
 4817|  5.24k|                    else
 4818|  5.24k|                    {
 4819|  5.24k|                        if (!getValue(prop->values.front(), sval))
  ------------------
  |  Branch (4819:29): [True: 0, False: 5.24k]
  ------------------
 4820|      0|                            return;
 4821|  5.24k|                        mPass->setCameraName(sval);
 4822|  5.24k|                        if (getAtomId(prop->values.back()) == ID_ALIGN_TO_FACE)
  ------------------
  |  Branch (4822:29): [True: 0, False: 5.24k]
  ------------------
 4823|      0|                        {
 4824|      0|                            mPass->setAlignCameraToFace(true);
 4825|      0|                        }
 4826|  5.24k|                    }
 4827|  5.24k|                    break;
 4828|  21.8k|                default:
  ------------------
  |  Branch (4828:17): [True: 21.8k, False: 80.6k]
  ------------------
 4829|  21.8k|                    compiler->addError(ScriptCompiler::CE_UNEXPECTEDTOKEN, prop->file, prop->line,
 4830|  21.8k|                                       "token \"" + prop->name + "\" is not recognized");
 4831|   102k|                }
 4832|   102k|            }
 4833|   130k|        }
 4834|  6.03k|    }
_ZN4Ogre30BuiltinScriptTranslatorManagerC2Ev:
 4840|      1|    {
 4841|      1|    }
_ZN4Ogre30BuiltinScriptTranslatorManager13getTranslatorERKNS_9SharedPtrINS_12AbstractNodeEEE:
 4844|   114k|    {
 4845|   114k|        ScriptTranslator *translator = 0;
 4846|       |
 4847|   114k|        if(node->type == ANT_OBJECT)
  ------------------
  |  Branch (4847:12): [True: 91.1k, False: 23.7k]
  ------------------
 4848|  91.1k|        {
 4849|  91.1k|            ObjectAbstractNode *obj = static_cast<ObjectAbstractNode*>(node.get());
 4850|  91.1k|            ObjectAbstractNode *parent = obj->parent && obj->parent->type == ANT_OBJECT ? static_cast<ObjectAbstractNode*>(obj->parent) : 0;
  ------------------
  |  Branch (4850:42): [True: 88.2k, False: 2.97k]
  |  Branch (4850:57): [True: 88.2k, False: 0]
  ------------------
 4851|  91.1k|            if(obj->id == ID_MATERIAL)
  ------------------
  |  Branch (4851:16): [True: 366, False: 90.8k]
  ------------------
 4852|    366|                translator = &mMaterialTranslator;
 4853|  90.8k|            else if(obj->id == ID_TECHNIQUE && parent && parent->id == ID_MATERIAL)
  ------------------
  |  Branch (4853:21): [True: 2.99k, False: 87.8k]
  |  Branch (4853:48): [True: 2.99k, False: 3]
  |  Branch (4853:58): [True: 974, False: 2.02k]
  ------------------
 4854|    974|                translator = &mTechniqueTranslator;
 4855|  89.8k|            else if(obj->id == ID_PASS && parent && parent->id == ID_TECHNIQUE)
  ------------------
  |  Branch (4855:21): [True: 51.9k, False: 37.8k]
  |  Branch (4855:43): [True: 51.9k, False: 6]
  |  Branch (4855:53): [True: 45.9k, False: 6.07k]
  ------------------
 4856|  45.9k|                translator = &mPassTranslator;
 4857|  43.9k|            else if(obj->id == ID_TEXTURE_UNIT && parent && parent->id == ID_PASS)
  ------------------
  |  Branch (4857:21): [True: 608, False: 43.3k]
  |  Branch (4857:51): [True: 605, False: 3]
  |  Branch (4857:61): [True: 534, False: 71]
  ------------------
 4858|    534|                translator = &mTextureUnitTranslator;
 4859|  43.4k|            else if(obj->id == ID_TEXTURE_SOURCE && parent && parent->id == ID_TEXTURE_UNIT)
  ------------------
  |  Branch (4859:21): [True: 22, False: 43.3k]
  |  Branch (4859:53): [True: 14, False: 8]
  |  Branch (4859:63): [True: 0, False: 14]
  ------------------
 4860|      0|                translator = &mTextureSourceTranslator;
 4861|  43.4k|            else if(obj->id == ID_FRAGMENT_PROGRAM ||
  ------------------
  |  Branch (4861:21): [True: 512, False: 42.8k]
  ------------------
 4862|  42.8k|                    obj->id == ID_VERTEX_PROGRAM ||
  ------------------
  |  Branch (4862:21): [True: 354, False: 42.5k]
  ------------------
 4863|  42.5k|                    obj->id == ID_GEOMETRY_PROGRAM ||
  ------------------
  |  Branch (4863:21): [True: 57, False: 42.4k]
  ------------------
 4864|  42.4k|                    obj->id == ID_TESSELLATION_HULL_PROGRAM ||
  ------------------
  |  Branch (4864:21): [True: 107, False: 42.3k]
  ------------------
 4865|  42.3k|                    obj->id == ID_TESSELLATION_DOMAIN_PROGRAM ||
  ------------------
  |  Branch (4865:21): [True: 525, False: 41.8k]
  ------------------
 4866|  41.8k|                    obj->id == ID_COMPUTE_PROGRAM ||
  ------------------
  |  Branch (4866:21): [True: 0, False: 41.8k]
  ------------------
 4867|  41.8k|                    obj->id == ID_MESH_PROGRAM ||
  ------------------
  |  Branch (4867:21): [True: 0, False: 41.8k]
  ------------------
 4868|  41.8k|                    obj->id == ID_TASK_PROGRAM)
  ------------------
  |  Branch (4868:21): [True: 0, False: 41.8k]
  ------------------
 4869|  1.55k|                translator = &mGpuProgramTranslator;
 4870|  41.8k|            else if(obj->id == ID_SHARED_PARAMS)
  ------------------
  |  Branch (4870:21): [True: 19, False: 41.8k]
  ------------------
 4871|     19|                translator = &mSharedParamsTranslator;
 4872|  41.8k|            else if(obj->id == ID_PARTICLE_SYSTEM)
  ------------------
  |  Branch (4872:21): [True: 0, False: 41.8k]
  ------------------
 4873|      0|                translator = &mParticleSystemTranslator;
 4874|  41.8k|            else if(obj->id == ID_EMITTER && parent && parent->id == ID_PARTICLE_SYSTEM)
  ------------------
  |  Branch (4874:21): [True: 0, False: 41.8k]
  |  Branch (4874:46): [True: 0, False: 0]
  |  Branch (4874:56): [True: 0, False: 0]
  ------------------
 4875|      0|                translator = &mParticleEmitterTranslator;
 4876|  41.8k|            else if(obj->id == ID_AFFECTOR && parent && parent->id == ID_PARTICLE_SYSTEM)
  ------------------
  |  Branch (4876:21): [True: 150, False: 41.6k]
  |  Branch (4876:47): [True: 18, False: 132]
  |  Branch (4876:57): [True: 0, False: 18]
  ------------------
 4877|      0|                translator = &mParticleAffectorTranslator;
 4878|  41.8k|            else if(obj->id == ID_COMPOSITOR)
  ------------------
  |  Branch (4878:21): [True: 95, False: 41.7k]
  ------------------
 4879|     95|                translator = &mCompositorTranslator;
 4880|  41.7k|            else if(obj->id == ID_TECHNIQUE && parent && parent->id == ID_COMPOSITOR)
  ------------------
  |  Branch (4880:21): [True: 2.02k, False: 39.7k]
  |  Branch (4880:48): [True: 2.02k, False: 3]
  |  Branch (4880:58): [True: 1.47k, False: 548]
  ------------------
 4881|  1.47k|                translator = &mCompositionTechniqueTranslator;
 4882|  40.2k|            else if((obj->id == ID_TARGET || obj->id == ID_TARGET_OUTPUT) && parent && parent->id == ID_TECHNIQUE)
  ------------------
  |  Branch (4882:22): [True: 6.65k, False: 33.6k]
  |  Branch (4882:46): [True: 133, False: 33.4k]
  |  Branch (4882:78): [True: 6.78k, False: 2]
  |  Branch (4882:88): [True: 1.56k, False: 5.22k]
  ------------------
 4883|  1.56k|                translator = &mCompositionTargetPassTranslator;
 4884|  38.7k|            else if(obj->id == ID_PASS && parent && (parent->id == ID_TARGET || parent->id == ID_TARGET_OUTPUT))
  ------------------
  |  Branch (4884:21): [True: 6.07k, False: 32.6k]
  |  Branch (4884:43): [True: 6.07k, False: 6]
  |  Branch (4884:54): [True: 5.91k, False: 159]
  |  Branch (4884:81): [True: 131, False: 28]
  ------------------
 4885|  6.04k|                translator = &mCompositionPassTranslator;
 4886|  32.6k|            else if(obj->id == ID_SAMPLER)
  ------------------
  |  Branch (4886:21): [True: 11, False: 32.6k]
  ------------------
 4887|     11|                translator = &mSamplerTranslator;
 4888|  91.1k|        }
 4889|       |
 4890|   114k|        return translator;
 4891|   114k|    }
OgreScriptTranslator.cpp:_ZN4OgreL9getAtomIdERKNS_9SharedPtrINS_12AbstractNodeEEE:
   86|  8.82k|    {
   87|  8.82k|        return node->type == ANT_ATOM ? static_cast<AtomAbstractNode*>(node.get())->id : 0;
  ------------------
  |  Branch (87:16): [True: 8.66k, False: 164]
  ------------------
   88|  8.82k|    }
OgreScriptTranslator.cpp:_ZN4OgreL19applyTextureAliasesEPNS_14ScriptCompilerEPKNS_8MaterialERKNSt3__13mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEESC_NS5_4lessISC_EENSA_INS5_4pairIKSC_SC_EEEEEE:
   63|    345|    {
   64|    345|        for (auto t : mat->getTechniques())
  ------------------
  |  Branch (64:21): [True: 968, False: 345]
  ------------------
   65|    968|        {
   66|    968|            for (auto p : t->getPasses())
  ------------------
  |  Branch (66:25): [True: 45.9k, False: 968]
  ------------------
   67|  45.9k|            {
   68|  45.9k|                for (auto tus : p->getTextureUnitStates())
  ------------------
  |  Branch (68:31): [True: 529, False: 45.9k]
  ------------------
   69|    529|                {
   70|    529|                    auto aliasIt = aliasList.find(tus->getName());
   71|    529|                    if (aliasIt == aliasList.end())
  ------------------
  |  Branch (71:25): [True: 529, False: 0]
  ------------------
   72|    529|                        continue;
   73|       |
   74|      0|                    auto name = processResourceName(compiler, ResourceType::TEXTURE, aliasIt->second);
   75|      0|                    if (tus->getNumFrames() > 1)
  ------------------
  |  Branch (75:25): [True: 0, False: 0]
  ------------------
   76|      0|                        tus->setAnimatedTextureName(name, tus->getNumFrames(),
   77|      0|                                                    tus->getAnimationDuration());
   78|      0|                    else
   79|      0|                        tus->setTextureName(name, tus->getTextureType());
   80|      0|                }
   81|  45.9k|            }
   82|    968|        }
   83|    345|    }
OgreScriptTranslator.cpp:_ZN4OgreL19processResourceNameEPNS_14ScriptCompilerENS_38ProcessResourceNameScriptCompilerEvent12ResourceTypeERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
   49|   122k|    {
   50|   122k|        ProcessResourceNameScriptCompilerEvent evt(type, name);
   51|   122k|        compiler->_fireEvent(&evt, 0);
   52|   122k|        return evt.mName;
   53|   122k|    }
OgreScriptTranslator.cpp:_ZN4OgreL14getProgramTypeEi:
  471|  1.24k|    {
  472|  1.24k|        switch(id)
  473|  1.24k|        {
  474|      0|        default:
  ------------------
  |  Branch (474:9): [True: 0, False: 1.24k]
  ------------------
  475|      0|            assert(false);
  476|      0|            OGRE_FALLTHROUGH;
  477|    365|        case ID_VERTEX_PROGRAM:
  ------------------
  |  Branch (477:9): [True: 365, False: 883]
  ------------------
  478|    374|        case ID_VERTEX_PROGRAM_REF:
  ------------------
  |  Branch (478:9): [True: 9, False: 1.23k]
  ------------------
  479|    374|            return GPT_VERTEX_PROGRAM;
  480|    250|        case ID_FRAGMENT_PROGRAM:
  ------------------
  |  Branch (480:9): [True: 250, False: 998]
  ------------------
  481|    292|        case ID_FRAGMENT_PROGRAM_REF:
  ------------------
  |  Branch (481:9): [True: 42, False: 1.20k]
  ------------------
  482|    292|            return GPT_FRAGMENT_PROGRAM;
  483|     35|        case ID_GEOMETRY_PROGRAM:
  ------------------
  |  Branch (483:9): [True: 35, False: 1.21k]
  ------------------
  484|     35|        case ID_GEOMETRY_PROGRAM_REF:
  ------------------
  |  Branch (484:9): [True: 0, False: 1.24k]
  ------------------
  485|     35|            return GPT_GEOMETRY_PROGRAM;
  486|    525|        case ID_TESSELLATION_DOMAIN_PROGRAM:
  ------------------
  |  Branch (486:9): [True: 525, False: 723]
  ------------------
  487|    525|        case ID_TESSELLATION_DOMAIN_PROGRAM_REF:
  ------------------
  |  Branch (487:9): [True: 0, False: 1.24k]
  ------------------
  488|    525|            return GPT_DOMAIN_PROGRAM;
  489|     22|        case ID_TESSELLATION_HULL_PROGRAM:
  ------------------
  |  Branch (489:9): [True: 22, False: 1.22k]
  ------------------
  490|     22|        case ID_TESSELLATION_HULL_PROGRAM_REF:
  ------------------
  |  Branch (490:9): [True: 0, False: 1.24k]
  ------------------
  491|     22|            return GPT_HULL_PROGRAM;
  492|      0|        case ID_COMPUTE_PROGRAM:
  ------------------
  |  Branch (492:9): [True: 0, False: 1.24k]
  ------------------
  493|      0|        case ID_COMPUTE_PROGRAM_REF:
  ------------------
  |  Branch (493:9): [True: 0, False: 1.24k]
  ------------------
  494|      0|            return GPT_COMPUTE_PROGRAM;
  495|      0|        case ID_MESH_PROGRAM:
  ------------------
  |  Branch (495:9): [True: 0, False: 1.24k]
  ------------------
  496|      0|        case ID_MESH_PROGRAM_REF:
  ------------------
  |  Branch (496:9): [True: 0, False: 1.24k]
  ------------------
  497|      0|            return GPT_MESH_PROGRAM;
  498|      0|        case ID_TASK_PROGRAM:
  ------------------
  |  Branch (498:9): [True: 0, False: 1.24k]
  ------------------
  499|      0|        case ID_TASK_PROGRAM_REF:
  ------------------
  |  Branch (499:9): [True: 0, False: 1.24k]
  ------------------
  500|      0|            return GPT_TASK_PROGRAM;
  501|  1.24k|        }
  502|  1.24k|    }
OgreScriptTranslator.cpp:_ZN4OgreL10getProgramEPNS_14ScriptCompilerEPNS_18ObjectAbstractNodeE:
 2045|    329|    {
 2046|    329|        if(node->name.empty())
  ------------------
  |  Branch (2046:12): [True: 0, False: 329]
  ------------------
 2047|      0|        {
 2048|      0|            compiler->addError(ScriptCompiler::CE_OBJECTNAMEEXPECTED, node->file, node->line);
 2049|      0|            return nullptr;
 2050|      0|        }
 2051|       |
 2052|    329|        String name = processResourceName(compiler, ResourceType::GPU_PROGRAM, node->name);
 2053|       |
 2054|    329|        auto& mgr = GpuProgramManager::getSingleton();
 2055|    329|        if (auto ret = mgr.getByName(name, compiler->getResourceGroup()))
  ------------------
  |  Branch (2055:18): [True: 275, False: 54]
  ------------------
 2056|    275|            return ret;
 2057|       |
 2058|       |        // recheck with auto resource group
 2059|     54|        if (auto ret = mgr.getByName(name, RGN_AUTODETECT))
  ------------------
  |  Branch (2059:18): [True: 0, False: 54]
  ------------------
 2060|      0|            return ret;
 2061|       |
 2062|     54|        compiler->addError(ScriptCompiler::CE_REFERENCETOANONEXISTINGOBJECT, node->file, node->line,
 2063|     54|                           name);
 2064|     54|        return nullptr;
 2065|     54|    }
OgreScriptTranslator.cpp:_ZN4OgreL20processResourceNamesEPNS_14ScriptCompilerENS_38ProcessResourceNameScriptCompilerEvent12ResourceTypeERNSt3__16vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEE:
   55|     14|    {
   56|     14|        if (!compiler->getListener())
  ------------------
  |  Branch (56:13): [True: 0, False: 14]
  ------------------
   57|      0|            return; // nothing would change
   58|     14|        for (String& n : names)
  ------------------
  |  Branch (58:24): [True: 58.0k, False: 14]
  ------------------
   59|  58.0k|            n = processResourceName(compiler, type, n);
   60|     14|    }
OgreScriptTranslator.cpp:_ZN4OgreL10_getVectorIiEEbNSt3__121__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEES7_RNS1_6vectorIT_NS1_9allocatorIS9_EEEEm:
  451|    133|    {
  452|    133|        vals.reserve(count);
  453|    133|        size_t n = 0;
  454|    520|        while (n < count)
  ------------------
  |  Branch (454:16): [True: 391, False: 129]
  ------------------
  455|    391|        {
  456|    391|            if (i != end)
  ------------------
  |  Branch (456:17): [True: 391, False: 0]
  ------------------
  457|    391|            {
  458|    391|                T v;
  459|    391|                if (!getValue(*i++, v))
  ------------------
  |  Branch (459:21): [True: 4, False: 387]
  ------------------
  460|      4|                    return false;
  461|    387|                vals.push_back(v);
  462|    387|            }
  463|    387|            ++n;
  464|    387|        }
  465|       |
  466|    129|        vals.resize(count);
  467|    129|        return true;
  468|    133|    }
OgreScriptTranslator.cpp:_ZN4OgreL10_getVectorIfEEbNSt3__121__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEES7_RNS1_6vectorIT_NS1_9allocatorIS9_EEEEm:
  451|    595|    {
  452|    595|        vals.reserve(count);
  453|    595|        size_t n = 0;
  454|  1.81k|        while (n < count)
  ------------------
  |  Branch (454:16): [True: 1.22k, False: 594]
  ------------------
  455|  1.22k|        {
  456|  1.22k|            if (i != end)
  ------------------
  |  Branch (456:17): [True: 1.21k, False: 12]
  ------------------
  457|  1.21k|            {
  458|  1.21k|                T v;
  459|  1.21k|                if (!getValue(*i++, v))
  ------------------
  |  Branch (459:21): [True: 1, False: 1.21k]
  ------------------
  460|      1|                    return false;
  461|  1.21k|                vals.push_back(v);
  462|  1.21k|            }
  463|  1.22k|            ++n;
  464|  1.22k|        }
  465|       |
  466|    594|        vals.resize(count);
  467|    594|        return true;
  468|    595|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|  77.5k|    {
  433|  77.5k|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 12.5k, False: 65.0k]
  ------------------
  434|  12.5k|        {
  435|  12.5k|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|  12.5k|        }
  437|  65.0k|        else
  438|  65.0k|        {
  439|  65.0k|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 65.0k, False: 9]
  ------------------
  440|  65.0k|                return true;
  441|      9|            else
  442|      9|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|  65.0k|        }
  444|       |
  445|  12.5k|        return false;
  446|  77.5k|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueIbEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|    224|    {
  433|    224|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 2, False: 222]
  ------------------
  434|      2|        {
  435|      2|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      2|        }
  437|    222|        else
  438|    222|        {
  439|    222|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 203, False: 19]
  ------------------
  440|    203|                return true;
  441|     19|            else
  442|     19|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|    222|        }
  444|       |
  445|     21|        return false;
  446|    224|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueIjEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|  1.11k|    {
  433|  1.11k|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 392, False: 725]
  ------------------
  434|    392|        {
  435|    392|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|    392|        }
  437|    725|        else
  438|    725|        {
  439|    725|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 9, False: 716]
  ------------------
  440|      9|                return true;
  441|    716|            else
  442|    716|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|    725|        }
  444|       |
  445|  1.10k|        return false;
  446|  1.11k|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_19SceneBlendOperationEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     11|    {
  433|     11|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 11, False: 0]
  ------------------
  434|     11|        {
  435|     11|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|     11|        }
  437|      0|        else
  438|      0|        {
  439|      0|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 0, False: 0]
  ------------------
  440|      0|                return true;
  441|      0|            else
  442|      0|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|      0|        }
  444|       |
  445|     11|        return false;
  446|     11|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_15CompareFunctionEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|      6|    {
  433|      6|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 4, False: 2]
  ------------------
  434|      4|        {
  435|      4|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      4|        }
  437|      2|        else
  438|      2|        {
  439|      2|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 2, False: 0]
  ------------------
  440|      2|                return true;
  441|      0|            else
  442|      0|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|      2|        }
  444|       |
  445|      4|        return false;
  446|      6|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueIfEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|    266|    {
  433|    266|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 5, False: 261]
  ------------------
  434|      5|        {
  435|      5|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      5|        }
  437|    261|        else
  438|    261|        {
  439|    261|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 255, False: 6]
  ------------------
  440|    255|                return true;
  441|      6|            else
  442|      6|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|    261|        }
  444|       |
  445|     11|        return false;
  446|    266|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_17IlluminationStageEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|      7|    {
  433|      7|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 7, False: 0]
  ------------------
  434|      7|        {
  435|      7|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      7|        }
  437|      0|        else
  438|      0|        {
  439|      0|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 0, False: 0]
  ------------------
  440|      0|                return true;
  441|      0|            else
  442|      0|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|      0|        }
  444|       |
  445|      7|        return false;
  446|      7|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_11CullingModeEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     24|    {
  433|     24|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 6, False: 18]
  ------------------
  434|      6|        {
  435|      6|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      6|        }
  437|     18|        else
  438|     18|        {
  439|     18|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 15, False: 3]
  ------------------
  440|     15|                return true;
  441|      3|            else
  442|      3|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|     18|        }
  444|       |
  445|      9|        return false;
  446|     24|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_17ManualCullingModeEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     11|    {
  433|     11|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 0, False: 11]
  ------------------
  434|      0|        {
  435|      0|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      0|        }
  437|     11|        else
  438|     11|        {
  439|     11|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 0, False: 11]
  ------------------
  440|      0|                return true;
  441|     11|            else
  442|     11|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|     11|        }
  444|       |
  445|     11|        return false;
  446|     11|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_11PolygonModeEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     17|    {
  433|     17|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 0, False: 17]
  ------------------
  434|      0|        {
  435|      0|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      0|        }
  437|     17|        else
  438|     17|        {
  439|     17|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 4, False: 13]
  ------------------
  440|      4|                return true;
  441|     13|            else
  442|     13|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|     17|        }
  444|       |
  445|     13|        return false;
  446|     17|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_19LayerBlendOperationEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     10|    {
  433|     10|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 3, False: 7]
  ------------------
  434|      3|        {
  435|      3|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      3|        }
  437|      7|        else
  438|      7|        {
  439|      7|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 0, False: 7]
  ------------------
  440|      0|                return true;
  441|      7|            else
  442|      7|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|      7|        }
  444|       |
  445|     10|        return false;
  446|     10|    }
OgreScriptTranslator.cpp:_ZN4OgreL10_getVectorINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbNS1_21__list_const_iteratorINS_9SharedPtrINS_12AbstractNodeEEEPvEESD_RNS1_6vectorIT_NS5_ISF_EEEEm:
  451|  2.05k|    {
  452|  2.05k|        vals.reserve(count);
  453|  2.05k|        size_t n = 0;
  454|   228k|        while (n < count)
  ------------------
  |  Branch (454:16): [True: 226k, False: 2.05k]
  ------------------
  455|   226k|        {
  456|   226k|            if (i != end)
  ------------------
  |  Branch (456:17): [True: 226k, False: 0]
  ------------------
  457|   226k|            {
  458|   226k|                T v;
  459|   226k|                if (!getValue(*i++, v))
  ------------------
  |  Branch (459:21): [True: 6, False: 226k]
  ------------------
  460|      6|                    return false;
  461|   226k|                vals.push_back(v);
  462|   226k|            }
  463|   226k|            ++n;
  464|   226k|        }
  465|       |
  466|  2.05k|        vals.resize(count);
  467|  2.05k|        return true;
  468|  2.05k|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_21CompositionTargetPass9InputModeEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|     90|    {
  433|     90|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 70, False: 20]
  ------------------
  434|     70|        {
  435|     70|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|     70|        }
  437|     20|        else
  438|     20|        {
  439|     20|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 19, False: 1]
  ------------------
  440|     19|                return true;
  441|      1|            else
  442|      1|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|     20|        }
  444|       |
  445|     71|        return false;
  446|     90|    }
OgreScriptTranslator.cpp:_ZN4OgreL8getValueINS_16StencilOperationEEEbPNS_20PropertyAbstractNodeEPNS_14ScriptCompilerERT_:
  432|      6|    {
  433|      6|        if (prop->values.size() != 1)
  ------------------
  |  Branch (433:13): [True: 0, False: 6]
  ------------------
  434|      0|        {
  435|      0|            compiler->addError(*prop, prop->name + " must have exactly 1 argument");
  436|      0|        }
  437|      6|        else
  438|      6|        {
  439|      6|            if (getValue(prop->values.front(), val))
  ------------------
  |  Branch (439:17): [True: 0, False: 6]
  ------------------
  440|      0|                return true;
  441|      6|            else
  442|      6|                compiler->addError(*prop, prop->values.front()->getValue() + " is not a valid value for " + prop->name);
  443|      6|        }
  444|       |
  445|      6|        return false;
  446|      6|    }

_ZN4Ogre20ShadowTextureManagerC2Ev:
   64|      1|        : mCount(0)
   65|      1|    {
   66|       |
   67|      1|    }

_ZN4Ogre15SkeletonManagerC2Ev:
   45|      1|    {
   46|      1|        mLoadOrder = 300.0f;
   47|      1|        mResourceType = "Skeleton";
   48|       |
   49|      1|        ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);
   50|      1|    }

_ZN4Ogre16StreamSerialiser14makeIdentifierERA5_Kc:
  146|      2|    {
  147|      2|        uint32 ret = 0;
  148|     10|        for (size_t i = 0; i < 4; ++i)
  ------------------
  |  Branch (148:28): [True: 8, False: 2]
  ------------------
  149|      8|        {
  150|      8|            ret += (code[i] << (i * 8));
  151|      8|        }
  152|      2|        return ret;
  153|       |
  154|      2|    }

_ZN4Ogre10StringUtil4trimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb:
   42|      2|    {
   43|       |        /*
   44|       |        size_t lspaces, rspaces, len = length(), i;
   45|       |
   46|       |        lspaces = rspaces = 0;
   47|       |
   48|       |        if( left )
   49|       |        {
   50|       |            // Find spaces / tabs on the left
   51|       |            for( i = 0;
   52|       |                i < len && ( at(i) == ' ' || at(i) == '\t' || at(i) == '\r');
   53|       |                ++lspaces, ++i );
   54|       |        }
   55|       |        
   56|       |        if( right && lspaces < len )
   57|       |        {
   58|       |            // Find spaces / tabs on the right
   59|       |            for( i = len - 1;
   60|       |                i >= 0 && ( at(i) == ' ' || at(i) == '\t' || at(i) == '\r');
   61|       |                rspaces++, i-- );
   62|       |        }
   63|       |
   64|       |        *this = substr(lspaces, len-lspaces-rspaces);
   65|       |        */
   66|      2|        static const String delims = " \t\r\n";
   67|      2|        if(right)
  ------------------
  |  Branch (67:12): [True: 2, False: 0]
  ------------------
   68|      2|            str.erase(str.find_last_not_of(delims)+1); // trim right
   69|      2|        if(left)
  ------------------
  |  Branch (69:12): [True: 2, False: 0]
  ------------------
   70|      2|            str.erase(0, str.find_first_not_of(delims)); // trim left
   71|      2|    }
_ZN4Ogre10StringUtil11toLowerCaseERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  203|    925|    {
  204|    925|        std::transform(
  205|    925|            str.begin(),
  206|    925|            str.end(),
  207|    925|            str.begin(),
  208|    925|            tolower);
  209|    925|    }
_ZN4Ogre10StringUtil11toUpperCaseERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  213|  3.12k|    {
  214|  3.12k|        std::transform(
  215|  3.12k|            str.begin(),
  216|  3.12k|            str.end(),
  217|  3.12k|            str.begin(),
  218|  3.12k|            toupper);
  219|  3.12k|    }
_ZN4Ogre10StringUtil17splitBaseFilenameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_SA_:
  380|     23|    {
  381|     23|        size_t i = fullName.find_last_of('.');
  382|     23|        if (i == Ogre::String::npos)
  ------------------
  |  Branch (382:13): [True: 0, False: 23]
  ------------------
  383|      0|        {
  384|      0|            outExtention.clear();
  385|      0|            outBasename = fullName;
  386|      0|        }
  387|     23|        else
  388|     23|        {
  389|     23|            outExtention = fullName.substr(i+1);
  390|     23|            outBasename = fullName.substr(0, i);
  391|     23|        }
  392|     23|    }
_ZN4Ogre10StringUtil5matchERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_b:
  403|  61.3k|    {
  404|  61.3k|        String tmpStr = str;
  405|  61.3k|        String tmpPattern = pattern;
  406|  61.3k|        if (!caseSensitive)
  ------------------
  |  Branch (406:13): [True: 0, False: 61.3k]
  ------------------
  407|      0|        {
  408|      0|            StringUtil::toLowerCase(tmpStr);
  409|      0|            StringUtil::toLowerCase(tmpPattern);
  410|      0|        }
  411|       |
  412|  61.3k|        String::const_iterator strIt = tmpStr.begin();
  413|  61.3k|        String::const_iterator patIt = tmpPattern.begin();
  414|  61.3k|        String::const_iterator lastWildCardIt = tmpPattern.end();
  415|  61.3k|        String::const_iterator lastWildCardStrIt = tmpStr.end();
  416|   684k|        while (strIt != tmpStr.end())
  ------------------
  |  Branch (416:16): [True: 652k, False: 32.2k]
  ------------------
  417|   652k|        {
  418|   652k|            if (patIt != tmpPattern.end() && *patIt == '*')
  ------------------
  |  Branch (418:17): [True: 61.0k, False: 590k]
  |  Branch (418:17): [True: 29.6k, False: 622k]
  |  Branch (418:46): [True: 29.6k, False: 31.3k]
  ------------------
  419|  29.6k|            {
  420|       |                // remember the wildcard, let it match nothing for now
  421|  29.6k|                lastWildCardIt = patIt;
  422|  29.6k|                lastWildCardStrIt = strIt;
  423|  29.6k|                ++patIt;
  424|  29.6k|            }
  425|   622k|            else if (patIt != tmpPattern.end() && *patIt == *strIt)
  ------------------
  |  Branch (425:22): [True: 31.3k, False: 590k]
  |  Branch (425:22): [True: 2.15k, False: 620k]
  |  Branch (425:51): [True: 2.15k, False: 29.2k]
  ------------------
  426|  2.15k|            {
  427|  2.15k|                ++patIt;
  428|  2.15k|                ++strIt;
  429|  2.15k|            }
  430|   620k|            else if (lastWildCardIt != tmpPattern.end())
  ------------------
  |  Branch (430:22): [True: 590k, False: 29.1k]
  ------------------
  431|   590k|            {
  432|       |                // let the last wildcard match one more character and retry from there
  433|   590k|                patIt = lastWildCardIt + 1;
  434|   590k|                strIt = ++lastWildCardStrIt;
  435|   590k|            }
  436|  29.1k|            else
  437|  29.1k|            {
  438|       |                // no wildcards left
  439|  29.1k|                return false;
  440|  29.1k|            }
  441|   652k|        }
  442|       |        // the string is consumed, only wildcards may remain in the pattern
  443|  33.7k|        while (patIt != tmpPattern.end() && *patIt == '*')
  ------------------
  |  Branch (443:16): [True: 2.84k, False: 30.8k]
  |  Branch (443:16): [True: 1.50k, False: 32.2k]
  |  Branch (443:45): [True: 1.50k, False: 1.34k]
  ------------------
  444|  1.50k|            ++patIt;
  445|       |
  446|  32.2k|        return patIt == tmpPattern.end();
  447|       |
  448|  61.3k|    }
_ZN4Ogre10StringUtil6formatEPKcz:
  465|  4.17k|    {
  466|       |        // try to use a stack buffer and fall back to heap for large strings
  467|  4.17k|        char sbuf[1024];
  468|  4.17k|        size_t bsize = sizeof(sbuf);
  469|  4.17k|        std::vector<char> hbuf;
  470|  4.17k|        char* pbuf = sbuf;
  471|       |
  472|  4.43k|        while (true)
  ------------------
  |  Branch (472:16): [True: 4.43k, Folded]
  ------------------
  473|  4.43k|        {
  474|  4.43k|            va_list va;
  475|  4.43k|            va_start(va, fmt);
  476|  4.43k|            int len = vsnprintf(pbuf, bsize, fmt, va);
  477|  4.43k|            va_end(va);
  478|       |
  479|  4.43k|            OgreAssert(len >= 0, "Check format string for errors");
  ------------------
  |  Branch (479:13): [True: 0, False: 4.43k]
  ------------------
  480|  4.43k|            if (size_t(len) >= bsize)
  ------------------
  |  Branch (480:17): [True: 264, False: 4.17k]
  ------------------
  481|    264|            {
  482|    264|                hbuf.resize(len + 1);
  483|    264|                pbuf = hbuf.data();
  484|    264|                bsize = hbuf.size();
  485|    264|                continue;
  486|    264|            }
  487|  4.17k|            pbuf[bsize - 1] = 0;
  488|  4.17k|            return String(pbuf, len);
  489|  4.43k|        }
  490|  4.17k|    }

_ZN4Ogre15StringConverter8toStringERKNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE:
  239|  2.05k|    {
  240|  2.05k|        StringStream stream;
  241|  2.05k|        StringVector::const_iterator i, iend, ibegin;
  242|  2.05k|        ibegin = val.begin();
  243|  2.05k|        iend = val.end();
  244|   228k|        for (i = ibegin; i != iend; ++i)
  ------------------
  |  Branch (244:26): [True: 226k, False: 2.05k]
  ------------------
  245|   226k|        {
  246|   226k|            if (i != ibegin)
  ------------------
  |  Branch (246:17): [True: 224k, False: 2.05k]
  ------------------
  247|   224k|                stream << " ";
  248|       |
  249|   226k|            stream << *i; 
  250|   226k|        }
  251|  2.05k|        return stream.str();
  252|  2.05k|    }
_ZN4Ogre15StringConverter5parseERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERf:
  263|  63.3k|    {
  264|  63.3k|        char* end;
  265|  63.3k|        auto tmp = (float)strtod_l(val.c_str(), &end, _numLocale);
  266|  63.3k|        return assignValid(val.c_str() != end, tmp, ret);
  267|  63.3k|    }
_ZN4Ogre15StringConverter5parseERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERi:
  276|  2.87k|    {
  277|  2.87k|        char* end;
  278|  2.87k|        auto tmp = (int32)strtol_l(val.c_str(), &end, 0, _numLocale);
  279|  2.87k|        return assignValid(val.c_str() != end, tmp, ret);
  280|  2.87k|    }
_ZN4Ogre15StringConverter5parseERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERj:
  303|  12.3k|    {
  304|  12.3k|        char* end;
  305|  12.3k|        auto tmp = (uint32)strtoul_l(val.c_str(), &end, 0, _numLocale);
  306|  12.3k|        return assignValid(val.c_str() != end, tmp, ret);
  307|  12.3k|    }
OgreStringConverter.cpp:_ZN4OgreL11assignValidIfEEbbRKT_RS1_:
  256|  63.3k|    {
  257|  63.3k|        if (valid)
  ------------------
  |  Branch (257:13): [True: 52.0k, False: 11.2k]
  ------------------
  258|  52.0k|            ret = val;
  259|  63.3k|        return valid;
  260|  63.3k|    }
OgreStringConverter.cpp:_ZN4OgreL11assignValidIiEEbbRKT_RS1_:
  256|  2.87k|    {
  257|  2.87k|        if (valid)
  ------------------
  |  Branch (257:13): [True: 2.50k, False: 375]
  ------------------
  258|  2.50k|            ret = val;
  259|  2.87k|        return valid;
  260|  2.87k|    }
OgreStringConverter.cpp:_ZN4OgreL11assignValidIjEEbbRKT_RS1_:
  256|  12.3k|    {
  257|  12.3k|        if (valid)
  ------------------
  |  Branch (257:13): [True: 8.27k, False: 4.06k]
  ------------------
  258|  8.27k|            ret = val;
  259|  12.3k|        return valid;
  260|  12.3k|    }

_ZN4Ogre15ParamDictionaryC2Ev:
   36|      3|    ParamDictionary::ParamDictionary() {}
_ZN4Ogre15ParamDictionaryD2Ev:
   37|      6|    ParamDictionary::~ParamDictionary() {}
_ZN4Ogre15ParamDictionary15getParamCommandERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   40|    251|    {
   41|    251|        ParamCommandMap::iterator i = mParamCommands.find(name);
   42|    251|        if (i != mParamCommands.end())
  ------------------
  |  Branch (42:13): [True: 250, False: 1]
  ------------------
   43|    250|        {
   44|    250|            return i->second;
   45|    250|        }
   46|      1|        else
   47|      1|        {
   48|      1|            return 0;
   49|      1|        }
   50|    251|    }
_ZN4Ogre15ParamDictionary12addParameterERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_12ParamCommandE:
   66|      9|    {
   67|      9|        mParamDefs.push_back(name);
   68|      9|        mParamCommands[name] = paramCmd;
   69|      9|    }
_ZN4Ogre15StringInterface21createParamDictionaryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   72|  1.32k|    {
   73|  1.32k|        OGRE_LOCK_MUTEX( msDictionaryMutex );
   74|       |
   75|  1.32k|        ParamDictionaryMap::iterator it = msDictionary.find(className);
   76|       |
   77|  1.32k|        if ( it == msDictionary.end() )
  ------------------
  |  Branch (77:14): [True: 3, False: 1.32k]
  ------------------
   78|      3|        {
   79|      3|            mParamDict = &msDictionary.insert( std::make_pair( className, ParamDictionary() ) ).first->second;
   80|      3|            mParamDictName = className;
   81|      3|            return true;
   82|      3|        }
   83|  1.32k|        else
   84|  1.32k|        {
   85|  1.32k|            mParamDict = &it->second;
   86|  1.32k|            mParamDictName = className;
   87|  1.32k|            return false;
   88|  1.32k|        }
   89|  1.32k|    }
_ZN4Ogre15StringInterface12setParameterERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  124|    509|    {
  125|       |        // Get dictionary
  126|    509|        ParamDictionary* dict = getParamDictionary();
  127|       |
  128|    509|        if (dict)
  ------------------
  |  Branch (128:13): [True: 251, False: 258]
  ------------------
  129|    251|        {
  130|       |            // Look up command object
  131|    251|            ParamCommand* cmd = dict->getParamCommand(name);
  132|    251|            if (cmd)
  ------------------
  |  Branch (132:17): [True: 250, False: 1]
  ------------------
  133|    250|            {
  134|    250|                cmd->doSet(this, value);
  135|    250|                return true;
  136|    250|            }
  137|    251|        }
  138|       |        // Fallback
  139|    259|        return false;
  140|    509|    }

_ZN4Ogre9TechniqueC2EPNS_8MaterialE:
   35|  70.6k|        : mParent(parent), mIlluminationPassesCompilationPhase(IPS_NOT_COMPILED), mIsSupported(false), mLodIndex(0), mSchemeIndex(0)
   36|  70.6k|    {
   37|       |        // See above, defaults to unsupported until examined
   38|  70.6k|    }
_ZN4Ogre9TechniqueD2Ev:
   48|  70.6k|    {
   49|  70.6k|        removeAllPasses();
   50|  70.6k|        clearIlluminationPasses();
   51|  70.6k|    }
_ZNK4Ogre9Technique11isSupportedEv:
   54|  69.6k|    {
   55|  69.6k|        return mIsSupported;
   56|  69.6k|    }
_ZN4Ogre9Technique10createPassEv:
  310|  45.9k|    {
  311|       |        Pass* newPass = OGRE_NEW Pass(this, static_cast<unsigned short>(mPasses.size()));
  312|  45.9k|        mPasses.push_back(newPass);
  313|  45.9k|        return newPass;
  314|  45.9k|    }
_ZN4Ogre9Technique15removeAllPassesEv:
  341|   140k|    {
  342|   140k|        for (auto *p : mPasses)
  ------------------
  |  Branch (342:22): [True: 115k, False: 140k]
  ------------------
  343|   115k|        {
  344|   115k|            p->queueForDeletion();
  345|   115k|        }
  346|   140k|        mPasses.clear();
  347|   140k|    }
_ZN4Ogre9TechniqueaSERKS0_:
  398|  69.6k|    {
  399|  69.6k|        if (this == &rhs)
  ------------------
  |  Branch (399:13): [True: 0, False: 69.6k]
  ------------------
  400|      0|            return *this;
  401|       |
  402|  69.6k|        mName = rhs.mName;
  403|  69.6k|        this->mIsSupported = rhs.mIsSupported;
  404|  69.6k|        this->mLodIndex = rhs.mLodIndex;
  405|  69.6k|        this->mSchemeIndex = rhs.mSchemeIndex;
  406|  69.6k|        this->mShadowCasterMaterial = rhs.mShadowCasterMaterial;
  407|  69.6k|        this->mShadowCasterMaterialName = rhs.mShadowCasterMaterialName;
  408|  69.6k|        this->mShadowReceiverMaterial = rhs.mShadowReceiverMaterial;
  409|  69.6k|        this->mShadowReceiverMaterialName = rhs.mShadowReceiverMaterialName;
  410|  69.6k|        this->mGPUVendorRules = rhs.mGPUVendorRules;
  411|  69.6k|        this->mGPUDeviceNameRules = rhs.mGPUDeviceNameRules;
  412|       |
  413|       |        // copy passes
  414|  69.6k|        removeAllPasses();
  415|  69.6k|        for (auto *rp : rhs.mPasses)
  ------------------
  |  Branch (415:23): [True: 69.6k, False: 69.6k]
  ------------------
  416|  69.6k|        {
  417|  69.6k|            Pass* p = OGRE_NEW Pass(this, rp->getIndex(), *(rp));
  418|  69.6k|            mPasses.push_back(p);
  419|  69.6k|        }
  420|       |        // Compile for categorised illumination on demand
  421|  69.6k|        clearIlluminationPasses();
  422|  69.6k|        mIlluminationPassesCompilationPhase = IPS_NOT_COMPILED;
  423|  69.6k|        return *this;
  424|  69.6k|    }
_ZNK4Ogre9Technique8isLoadedEv:
  576|  36.8k|    {
  577|       |        // Only supported technique will be loaded
  578|  36.8k|        return mParent->isLoaded() && mIsSupported;
  ------------------
  |  Branch (578:16): [True: 0, False: 36.8k]
  |  Branch (578:39): [True: 0, False: 0]
  ------------------
  579|  36.8k|    }
_ZN4Ogre9Technique18setLightingEnabledEb:
  631|      1|    void Technique::setLightingEnabled(bool enabled) { ALL_PASSES(setLightingEnabled(enabled)); }
  ------------------
  |  |  581|      1|    #define ALL_PASSES(fncall) for(auto p : mPasses) p->fncall
  |  |  ------------------
  |  |  |  Branch (581:43): [True: 1, False: 1]
  |  |  ------------------
  ------------------
_ZN4Ogre9Technique7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  673|    563|    {
  674|    563|        mName = name;
  675|    563|    }
_ZN4Ogre9Technique21_notifyNeedsRecompileEv:
  680|  1.51k|    {
  681|       |        // Disable require to recompile when splitting illumination passes
  682|  1.51k|        if (mIlluminationPassesCompilationPhase != IPS_COMPILE_DISABLED)
  ------------------
  |  Branch (682:13): [True: 1.51k, False: 0]
  ------------------
  683|  1.51k|        {
  684|  1.51k|            mParent->_notifyNeedsRecompile();
  685|  1.51k|        }
  686|  1.51k|    }
_ZN4Ogre9Technique13setSchemeNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  695|    111|    {
  696|    111|        mSchemeIndex = MaterialManager::getSingleton()._getSchemeIndex(schemeName);
  697|    111|        _notifyNeedsRecompile();
  698|    111|    }
_ZN4Ogre9Technique23clearIlluminationPassesEv:
  958|   140k|    {
  959|   140k|        if(MaterialManager::getSingletonPtr())
  ------------------
  |  Branch (959:12): [True: 140k, False: 0]
  ------------------
  960|   140k|            MaterialManager::getSingleton()._notifyBeforeIlluminationPassesCleared(this);
  961|       |
  962|   140k|        for (auto *i : mIlluminationPasses)
  ------------------
  |  Branch (962:22): [True: 0, False: 140k]
  ------------------
  963|      0|        {
  964|      0|            if (i->destroyOnShutdown)
  ------------------
  |  Branch (964:17): [True: 0, False: 0]
  ------------------
  965|      0|            {
  966|      0|                i->pass->queueForDeletion();
  967|      0|            }
  968|       |            OGRE_DELETE i;
  969|      0|        }
  970|   140k|        mIlluminationPasses.clear();
  971|   140k|    }
_ZNK4Ogre9Technique16getResourceGroupEv:
  995|  59.8k|    {
  996|  59.8k|        return mParent->getGroup();
  997|  59.8k|    }
_ZNK4Ogre9Technique23getShadowCasterMaterialEv:
 1000|    269|    {
 1001|    269|        return mShadowCasterMaterial;
 1002|    269|    }
_ZN4Ogre9Technique23setShadowCasterMaterialENS_9SharedPtrINS_8MaterialEEE:
 1005|    269|    {
 1006|    269|        if (!val)
  ------------------
  |  Branch (1006:13): [True: 0, False: 269]
  ------------------
 1007|      0|        {
 1008|      0|            mShadowCasterMaterial.reset();
 1009|      0|            mShadowCasterMaterialName.clear();
 1010|      0|        }
 1011|    269|        else
 1012|    269|        {
 1013|    269|            if(val.get() == mParent)
  ------------------
  |  Branch (1013:16): [True: 0, False: 269]
  ------------------
 1014|    269|                OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Using parent material is not allowed");
 1015|       |
 1016|       |            // shadow caster material should never receive shadows
 1017|    269|            val->setReceiveShadows(false); // should we warn if this is not set?
 1018|    269|            mShadowCasterMaterial = val;
 1019|    269|            mShadowCasterMaterialName = val->getName();
 1020|    269|        }
 1021|    269|    }
_ZN4Ogre9Technique25setShadowReceiverMaterialENS_9SharedPtrINS_8MaterialEEE:
 1036|      1|    {
 1037|      1|        if (!val)
  ------------------
  |  Branch (1037:13): [True: 1, False: 0]
  ------------------
 1038|      1|        {
 1039|      1|            mShadowReceiverMaterial.reset();
 1040|      1|            mShadowReceiverMaterialName.clear();
 1041|      1|        }
 1042|      0|        else
 1043|      0|        {
 1044|      0|            if(val.get() == mParent)
  ------------------
  |  Branch (1044:16): [True: 0, False: 0]
  ------------------
 1045|      0|                OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Using parent material is not allowed");
 1046|       |
 1047|      0|            mShadowReceiverMaterial = val;
 1048|      0|            mShadowReceiverMaterialName = val->getName();
 1049|      0|        }
 1050|      1|    }
_ZN4Ogre9Technique25setShadowReceiverMaterialERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1053|      1|    {
 1054|      1|        setShadowReceiverMaterial(MaterialManager::getSingleton().getByName(name));
 1055|      1|        mShadowReceiverMaterialName = name;
 1056|      1|    }
_ZN4Ogre9Technique16addGPUVendorRuleERKNS0_13GPUVendorRuleE:
 1064|    450|    {
 1065|       |        // remove duplicates
 1066|    450|        removeGPUVendorRule(rule.vendor);
 1067|    450|        mGPUVendorRules.push_back(rule);
 1068|    450|    }
_ZN4Ogre9Technique19removeGPUVendorRuleENS_9GPUVendorE:
 1071|    450|    {
 1072|    880|        for (GPUVendorRuleList::iterator i = mGPUVendorRules.begin(); i != mGPUVendorRules.end(); )
  ------------------
  |  Branch (1072:71): [True: 430, False: 450]
  ------------------
 1073|    430|        {
 1074|    430|            if (i->vendor == vendor)
  ------------------
  |  Branch (1074:17): [True: 180, False: 250]
  ------------------
 1075|    180|                i = mGPUVendorRules.erase(i);
 1076|    250|            else
 1077|    250|                ++i;
 1078|    430|        }
 1079|    450|    }
_ZN4Ogre9Technique20addGPUDeviceNameRuleERKNS0_17GPUDeviceNameRuleE:
 1093|    148|    {
 1094|       |        // remove duplicates
 1095|    148|        removeGPUDeviceNameRule(rule.devicePattern);
 1096|    148|        mGPUDeviceNameRules.push_back(rule);
 1097|    148|    }
_ZN4Ogre9Technique23removeGPUDeviceNameRuleERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1100|    148|    {
 1101|    550|        for (GPUDeviceNameRuleList::iterator i = mGPUDeviceNameRules.begin(); i != mGPUDeviceNameRules.end(); )
  ------------------
  |  Branch (1101:79): [True: 402, False: 148]
  ------------------
 1102|    402|        {
 1103|    402|            if (i->devicePattern == devicePattern)
  ------------------
  |  Branch (1103:17): [True: 132, False: 270]
  ------------------
 1104|    132|                i = mGPUDeviceNameRules.erase(i);
 1105|    270|            else
 1106|    270|                ++i;
 1107|    402|        }
 1108|    148|    }

_ZN4Ogre7TextureC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   40|    569|        : Resource(creator, name, handle, group, isManual, loader),
   41|       |            // init defaults; can be overridden before load()
   42|    569|            mHeight(512),
   43|    569|            mWidth(512),
   44|    569|            mDepth(1),
   45|    569|            mNumRequestedMipmaps(0),
   46|    569|            mNumMipmaps(0),
   47|    569|            mGamma(1.0f),
   48|    569|            mFSAA(0),
   49|    569|            mFormat(PF_UNKNOWN),
   50|    569|            mUsage(TU_DEFAULT),
   51|    569|            mSrcFormat(PF_UNKNOWN),
   52|    569|            mSrcWidth(0),
   53|    569|            mSrcHeight(0), 
   54|    569|            mSrcDepth(0),
   55|    569|            mTreatLuminanceAsAlpha(false),
   56|    569|            mInternalResourcesCreated(false),
   57|    569|            mMipmapsHardwareGenerated(false),
   58|    569|            mHwGamma(false),
   59|    569|            mTextureType(TEX_TYPE_2D),
   60|    569|            mDesiredIntegerBitDepth(0),
   61|    569|            mDesiredFloatBitDepth(0),
   62|    569|            mDesiredFormat(PF_UNKNOWN)
   63|    569|    {
   64|    569|        if (createParamDictionary("Texture"))
  ------------------
  |  Branch (64:13): [True: 1, False: 568]
  ------------------
   65|      1|        {
   66|       |            // Define the parameters that have to be present to load
   67|       |            // from a generic source; actually there are none, since when
   68|       |            // predeclaring, you use a texture file which includes all the
   69|       |            // information required.
   70|      1|        }
   71|       |
   72|       |        // Set some defaults for default load path
   73|    569|        if (TextureManager::getSingletonPtr())
  ------------------
  |  Branch (73:13): [True: 569, False: 0]
  ------------------
   74|    569|        {
   75|    569|            TextureManager& tmgr = TextureManager::getSingleton();
   76|    569|            setNumMipmaps(tmgr.getDefaultNumMipmaps());
   77|    569|            setDesiredBitDepths(tmgr.getPreferredIntegerBitDepth(), tmgr.getPreferredFloatBitDepth());
   78|    569|        }
   79|       |
   80|       |        
   81|    569|    }
_ZN4Ogre7Texture9setFormatENS_11PixelFormatE:
  118|    429|    {
  119|    429|        mFormat = pf;
  120|    429|        mDesiredFormat = pf;
  121|    429|    }
_ZN4Ogre7Texture19setDesiredBitDepthsEtt:
  149|    569|    {
  150|    569|        mDesiredIntegerBitDepth = integerBits;
  151|    569|        mDesiredFloatBitDepth = floatBits;
  152|    569|    }
_ZN4Ogre7Texture24setTreatLuminanceAsAlphaEb:
  155|    429|    {
  156|    429|        mTreatLuminanceAsAlpha = asAlpha;
  157|    429|    }

_ZN4Ogre14TextureManager15getSingletonPtrEv:
   35|  1.10k|    {
   36|  1.10k|        return msSingleton;
   37|  1.10k|    }
_ZN4Ogre14TextureManager12getSingletonEv:
   39|  61.2k|    {  
   40|       |        assert( msSingleton );  return ( *msSingleton );  
   41|  61.2k|    }
_ZN4Ogre14TextureManagerC2Ev:
   44|      1|         : mPreferredIntegerBitDepth(0)
   45|      1|         , mPreferredFloatBitDepth(0)
   46|      1|         , mDefaultNumMipmaps(MIP_UNLIMITED)
   47|      1|    {
   48|      1|        mResourceType = "Texture";
   49|      1|        mLoadOrder = 75.0f;
   50|       |
   51|       |        // Subclasses should register (when this is fully constructed)
   52|      1|    }
_ZN4Ogre14TextureManager13createSamplerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   60|     92|    {
   61|     92|        SamplerPtr ret = _createSamplerImpl();
   62|     92|        if(!name.empty())
  ------------------
  |  Branch (62:12): [True: 11, False: 81]
  ------------------
   63|     11|        {
   64|     11|            if (mNamedSamplers.find(name) != mNamedSamplers.end())
  ------------------
  |  Branch (64:17): [True: 2, False: 9]
  ------------------
   65|     11|                OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Sampler '" + name + "' already exists");
   66|      9|            mNamedSamplers[name] = ret;
   67|      9|        }
   68|     90|        return ret;
   69|     92|    }
_ZNK4Ogre14TextureManager10getSamplerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   73|    181|    {
   74|    181|        static SamplerPtr nullPtr;
   75|    181|        auto it = mNamedSamplers.find(name);
   76|    181|        if(it == mNamedSamplers.end())
  ------------------
  |  Branch (76:12): [True: 174, False: 7]
  ------------------
   77|    174|            return nullPtr;
   78|      7|        return it->second;
   79|    181|    }
_ZNK4Ogre14TextureManager9getByNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
   82|    429|    {
   83|    429|        return static_pointer_cast<Texture>(getResourceByName(name, groupName));
   84|    429|    }
_ZNK4Ogre14TextureManager27getPreferredIntegerBitDepthEv:
  245|    569|    {
  246|    569|        return mPreferredIntegerBitDepth;
  247|    569|    }
_ZNK4Ogre14TextureManager25getPreferredFloatBitDepthEv:
  275|    569|    {
  276|    569|        return mPreferredFloatBitDepth;
  277|    569|    }
_ZN4Ogre14TextureManager17getDefaultSamplerEv:
  361|    718|    {
  362|    718|        if(!mDefaultSampler)
  ------------------
  |  Branch (362:12): [True: 1, False: 717]
  ------------------
  363|      1|            mDefaultSampler = createSampler();
  364|       |
  365|    718|        return mDefaultSampler;
  366|    718|    }

_ZN4Ogre7SamplerC2Ev:
   39|     94|        : mBorderColour(ColourValue::Black)
   40|     94|        , mMaxAniso(1)
   41|     94|        , mMipmapBias(0)
   42|     94|        , mMinFilter(FO_LINEAR)
   43|     94|        , mMagFilter(FO_LINEAR)
   44|     94|        , mMipFilter(FO_POINT)
   45|     94|        , mCompareFunc(CMPF_GREATER_EQUAL)
   46|     94|        , mCompareEnabled(false)
   47|     94|        , mDirty(true)
   48|     94|    {
   49|     94|        setAddressingMode(TAM_WRAP);
   50|     94|    }
_ZN4Ogre7SamplerD2Ev:
   51|     82|    Sampler::~Sampler() {}
_ZN4Ogre7Sampler17setAddressingModeERKNS0_17UVWAddressingModeE:
   54|    113|    {
   55|    113|        mAddressMode = uvw;
   56|    113|        mDirty = true;
   57|    113|    }
_ZN4Ogre7Sampler12setFilteringENS_20TextureFilterOptionsE:
   61|     37|    {
   62|     37|        switch (filterType)
  ------------------
  |  Branch (62:17): [True: 37, False: 0]
  ------------------
   63|     37|        {
   64|     37|        case TFO_NONE:
  ------------------
  |  Branch (64:9): [True: 37, False: 0]
  ------------------
   65|     37|            setFiltering(FO_POINT, FO_POINT, FO_NONE);
   66|     37|            break;
   67|      0|        case TFO_BILINEAR:
  ------------------
  |  Branch (67:9): [True: 0, False: 37]
  ------------------
   68|      0|            setFiltering(FO_LINEAR, FO_LINEAR, FO_POINT);
   69|      0|            break;
   70|      0|        case TFO_TRILINEAR:
  ------------------
  |  Branch (70:9): [True: 0, False: 37]
  ------------------
   71|      0|            setFiltering(FO_LINEAR, FO_LINEAR, FO_LINEAR);
   72|      0|            break;
   73|      0|        case TFO_ANISOTROPIC:
  ------------------
  |  Branch (73:9): [True: 0, False: 37]
  ------------------
   74|      0|            setFiltering(FO_ANISOTROPIC, FO_ANISOTROPIC, FO_LINEAR);
   75|      0|            break;
   76|     37|        }
   77|     37|    }
_ZN4Ogre7Sampler12setFilteringENS_13FilterOptionsES1_S1_:
   97|     40|    {
   98|     40|        mMinFilter = minFilter;
   99|     40|        mMagFilter = magFilter;
  100|     40|        mMipFilter = mipFilter;
  101|     40|        mDirty = true;
  102|     40|    }
_ZN4Ogre16TextureUnitStateC2EPNS_4PassE:
  120|    534|        : mCurrentFrame(0)
  121|    534|        , mAnimDuration(0)
  122|    534|        , mUnorderedAccessMipLevel(-1)
  123|    534|        , mGamma(1)
  124|    534|        , mUMod(0)
  125|    534|        , mVMod(0)
  126|    534|        , mUScale(1)
  127|    534|        , mVScale(1)
  128|    534|        , mRotate(0)
  129|    534|        , mTexModMatrix(Matrix4::IDENTITY)
  130|    534|        , mContentType(CONTENT_NAMED)
  131|    534|        , mTextureLoadFailed(false)
  132|    534|        , mRecalcTexMatrix(false)
  133|    534|        , mTextureCoordSetIndex(0)
  134|    534|        , mFramePtrs(1)
  135|    534|        , mSampler(TextureManager::getSingletonPtr() ? TextureManager::getSingleton().getDefaultSampler() : DUMMY_SAMPLER)
  ------------------
  |  Branch (135:20): [True: 534, False: 0]
  ------------------
  136|    534|        , mParent(parent)
  137|    534|        , mAnimController(0)
  138|    534|    {
  139|    534|        mColourBlendMode.blendType = LBT_COLOUR;
  140|    534|        mAlphaBlendMode.operation = LBX_MODULATE;
  141|    534|        mAlphaBlendMode.blendType = LBT_ALPHA;
  142|    534|        mAlphaBlendMode.source1 = LBS_TEXTURE;
  143|    534|        mAlphaBlendMode.source2 = LBS_CURRENT;
  144|    534|        setColourOperation(LBO_MODULATE);
  145|       |
  146|    534|        if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_TEXTURE_CHANGE ) )
  ------------------
  |  Branch (146:13): [True: 0, False: 534]
  ------------------
  147|      0|        {
  148|      0|            mParent->_dirtyHash();
  149|      0|        }
  150|       |
  151|    534|    }
_ZN4Ogre16TextureUnitStateC2EPNS_4PassERKS0_:
  155|  34.4k|    {
  156|  34.4k|        mParent = parent;
  157|  34.4k|        mAnimController = 0;
  158|  34.4k|        *this = oth;
  159|  34.4k|    }
_ZN4Ogre16TextureUnitStateD2Ev:
  170|  34.9k|    {
  171|       |        // Unload ensure all controllers destroyed
  172|  34.9k|        _unload();
  173|  34.9k|    }
_ZN4Ogre16TextureUnitStateaSERKS0_:
  177|  34.4k|    {
  178|  34.4k|        if (this == &oth)
  ------------------
  |  Branch (178:13): [True: 0, False: 34.4k]
  ------------------
  179|      0|            return *this;
  180|       |
  181|  34.4k|        assert(mAnimController == 0);
  182|  34.4k|        removeAllEffects();
  183|       |
  184|       |        // copy basic members (int's, real's)
  185|  34.4k|        memcpy( (uchar*)this, &oth, (const uchar *)(&oth.mFramePtrs) - (const uchar *)(&oth) );
  186|       |        // copy complex members
  187|  34.4k|        mFramePtrs = oth.mFramePtrs;
  188|  34.4k|        mSampler = oth.mSampler;
  189|  34.4k|        mName    = oth.mName;
  190|  34.4k|        mEffects = oth.mEffects;
  191|       |
  192|  34.4k|        mCompositorRefName = oth.mCompositorRefName;
  193|  34.4k|        mCompositorRefTexName = oth.mCompositorRefTexName;
  194|       |        // Can't sharing controllers with other TUS, reset to null to avoid potential bug.
  195|  34.4k|        for (auto & e : mEffects)
  ------------------
  |  Branch (195:23): [True: 103k, False: 34.4k]
  ------------------
  196|   103k|        {
  197|   103k|            e.second.controller = 0;
  198|   103k|        }
  199|       |
  200|       |        // Load immediately if Material loaded
  201|  34.4k|        if (isLoaded())
  ------------------
  |  Branch (201:13): [True: 0, False: 34.4k]
  ------------------
  202|      0|        {
  203|      0|            _load();
  204|      0|        }
  205|       |
  206|       |        // Tell parent to recalculate hash
  207|  34.4k|        if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_TEXTURE_CHANGE ) )
  ------------------
  |  Branch (207:13): [True: 0, False: 34.4k]
  ------------------
  208|      0|        {
  209|      0|            mParent->_dirtyHash();
  210|      0|        }
  211|       |
  212|  34.4k|        return *this;
  213|  34.4k|    }
_ZN4Ogre16TextureUnitState14setTextureNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_11TextureTypeE:
  231|    429|    {
  232|    429|        TexturePtr tex = retrieveTexture(name);
  233|       |
  234|    429|        if(!tex)
  ------------------
  |  Branch (234:12): [True: 0, False: 429]
  ------------------
  235|      0|            return;
  236|       |
  237|    429|        tex->setTextureType(texType);
  238|    429|        setTexture(tex);
  239|    429|    }
_ZN4Ogre16TextureUnitState10setTextureERKNS_9SharedPtrINS_7TextureEEE:
  242|    429|    {
  243|    429|        if (!texPtr)
  ------------------
  |  Branch (243:13): [True: 0, False: 429]
  ------------------
  244|      0|        {
  245|      0|            OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND,
  246|      0|                "Texture Pointer is empty.",
  247|      0|                "TextureUnitState::setTexture");
  248|      0|        }
  249|       |
  250|    429|        setContentType(CONTENT_NAMED);
  251|    429|        mTextureLoadFailed = false;
  252|       |        
  253|    429|        if (texPtr->getTextureType() == TEX_TYPE_EXTERNAL_OES)
  ------------------
  |  Branch (253:13): [True: 0, False: 429]
  ------------------
  254|      0|        {
  255|      0|            setTextureAddressingMode( TAM_CLAMP );
  256|      0|            setTextureFiltering(FT_MIP, FO_NONE);
  257|      0|        }
  258|       |
  259|    429|        mFramePtrs.resize(1);
  260|    429|        mFramePtrs[0] = texPtr;
  261|       |
  262|    429|        mCurrentFrame = 0;
  263|       |
  264|       |        // Load immediately ?
  265|    429|        if (isLoaded())
  ------------------
  |  Branch (265:13): [True: 0, False: 429]
  ------------------
  266|      0|        {
  267|      0|            _load(); // reload
  268|      0|        }
  269|       |        // Tell parent to recalculate hash
  270|    429|        if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_TEXTURE_CHANGE ) )
  ------------------
  |  Branch (270:13): [True: 0, False: 429]
  ------------------
  271|      0|        {
  272|      0|            mParent->_dirtyHash();
  273|      0|        }
  274|    429|    }
_ZN4Ogre16TextureUnitState14setContentTypeENS0_11ContentTypeE:
  277|    742|    {
  278|    742|        mContentType = ct;
  279|    742|    }
_ZN4Ogre16TextureUnitState22setAnimatedTextureNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmf:
  355|     23|    {
  356|     23|        String baseName, ext;
  357|     23|        StringUtil::splitBaseFilename(name, baseName, ext);
  358|       |
  359|     23|        std::vector<String> names(numFrames);
  360|    327|        for (uint32 i = 0; i < names.size(); ++i)
  ------------------
  |  Branch (360:28): [True: 304, False: 23]
  ------------------
  361|    304|        {
  362|    304|            names[i] = StringUtil::format("%s_%u.%s", baseName.c_str(), i, ext.c_str());
  363|    304|        }
  364|       |
  365|     23|        setAnimatedTextureName(names, duration);
  366|     23|    }
_ZN4Ogre16TextureUnitState22setAnimatedTextureNameEPKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmf:
  369|     37|    {
  370|     37|        OgreAssert(numFrames > 0, "numFrames must be greater than 0");
  ------------------
  |  Branch (370:9): [True: 0, False: 37]
  ------------------
  371|     37|        setContentType(CONTENT_NAMED);
  372|     37|        mTextureLoadFailed = false;
  373|       |
  374|       |        // resize pointers, but don't populate until needed
  375|     37|        mFramePtrs.resize(numFrames);
  376|     37|        mAnimDuration = duration;
  377|     37|        mCurrentFrame = 0;
  378|       |
  379|  58.3k|        for (unsigned int i = 0; i < mFramePtrs.size(); ++i)
  ------------------
  |  Branch (379:34): [True: 58.3k, False: 37]
  ------------------
  380|  58.3k|        {
  381|  58.3k|            mFramePtrs[i] = retrieveTexture(names[i]);
  382|  58.3k|        }
  383|       |
  384|       |        // Load immediately if Material loaded
  385|     37|        if (isLoaded())
  ------------------
  |  Branch (385:13): [True: 0, False: 37]
  ------------------
  386|      0|        {
  387|      0|            _load();
  388|      0|        }
  389|       |        // Tell parent to recalculate hash
  390|     37|        if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_TEXTURE_CHANGE ) )
  ------------------
  |  Branch (390:13): [True: 0, False: 37]
  ------------------
  391|      0|        {
  392|      0|            mParent->_dirtyHash();
  393|      0|        }
  394|     37|    }
_ZN4Ogre16TextureUnitState16setDesiredFormatENS_11PixelFormatE:
  468|    429|    {
  469|    429|        OgreAssert(mFramePtrs[0], "frame must not be blank");
  ------------------
  |  Branch (469:9): [True: 0, False: 429]
  ------------------
  470|    429|        for(auto& frame : mFramePtrs)
  ------------------
  |  Branch (470:25): [True: 429, False: 429]
  ------------------
  471|    429|            frame->setFormat(desiredFormat);
  472|    429|    }
_ZN4Ogre16TextureUnitState13setNumMipmapsEi:
  480|    429|    {
  481|    429|        OgreAssert(mFramePtrs[0], "frame must not be blank");
  ------------------
  |  Branch (481:9): [True: 0, False: 429]
  ------------------
  482|    429|        for (auto& frame : mFramePtrs)
  ------------------
  |  Branch (482:26): [True: 429, False: 429]
  ------------------
  483|    429|            frame->setNumMipmaps(numMipmaps == MIP_DEFAULT
  ------------------
  |  Branch (483:34): [True: 0, False: 429]
  ------------------
  484|    429|                                     ? TextureManager::getSingleton().getDefaultNumMipmaps()
  485|    429|                                     : numMipmaps);
  486|    429|    }
_ZN4Ogre16TextureUnitState10setIsAlphaEb:
  494|    429|    {
  495|    429|        OgreAssert(mFramePtrs[0], "frame must not be blank");
  ------------------
  |  Branch (495:9): [True: 0, False: 429]
  ------------------
  496|    429|        OGRE_IGNORE_DEPRECATED_BEGIN
  497|    429|        for(auto& frame : mFramePtrs)
  ------------------
  |  Branch (497:25): [True: 429, False: 429]
  ------------------
  498|    429|            frame->setTreatLuminanceAsAlpha(isAlpha);
  499|    429|        OGRE_IGNORE_DEPRECATED_END
  500|    429|    }
_ZN4Ogre16TextureUnitState23setHardwareGammaEnabledEb:
  513|    429|    {
  514|    429|        OgreAssert(mFramePtrs[0], "frame must not be blank");
  ------------------
  |  Branch (514:9): [True: 0, False: 429]
  ------------------
  515|    429|        for(auto& frame : mFramePtrs)
  ------------------
  |  Branch (515:25): [True: 429, False: 429]
  ------------------
  516|    429|            frame->setHardwareGammaEnabled(g);
  517|    429|    }
_ZN4Ogre16TextureUnitState20setColourOperationExENS_21LayerBlendOperationExENS_16LayerBlendSourceES2_RKNS_11ColourValueES5_f:
  540|    539|    {
  541|    539|        mColourBlendMode.operation = op;
  542|    539|        mColourBlendMode.source1 = source1;
  543|    539|        mColourBlendMode.source2 = source2;
  544|    539|        mColourBlendMode.colourArg1 = arg1;
  545|    539|        mColourBlendMode.colourArg2 = arg2;
  546|    539|        mColourBlendMode.factor = manualBlend;
  547|    539|    }
_ZN4Ogre16TextureUnitState18setColourOperationENS_19LayerBlendOperationE:
  550|    534|    {
  551|       |        // Set up the multitexture and multipass blending operations
  552|    534|        switch (op)
  ------------------
  |  Branch (552:17): [True: 534, False: 0]
  ------------------
  553|    534|        {
  554|      0|        case LBO_REPLACE:
  ------------------
  |  Branch (554:9): [True: 0, False: 534]
  ------------------
  555|      0|            setColourOperationEx(LBX_SOURCE1, LBS_TEXTURE, LBS_CURRENT);
  556|      0|            setColourOpMultipassFallback(SBF_ONE, SBF_ZERO);
  557|      0|            break;
  558|      0|        case LBO_ADD:
  ------------------
  |  Branch (558:9): [True: 0, False: 534]
  ------------------
  559|      0|            setColourOperationEx(LBX_ADD, LBS_TEXTURE, LBS_CURRENT);
  560|      0|            setColourOpMultipassFallback(SBF_ONE, SBF_ONE);
  561|      0|            break;
  562|    534|        case LBO_MODULATE:
  ------------------
  |  Branch (562:9): [True: 534, False: 0]
  ------------------
  563|    534|            setColourOperationEx(LBX_MODULATE, LBS_TEXTURE, LBS_CURRENT);
  564|    534|            setColourOpMultipassFallback(SBF_DEST_COLOUR, SBF_ZERO);
  565|    534|            break;
  566|      0|        case LBO_ALPHA_BLEND:
  ------------------
  |  Branch (566:9): [True: 0, False: 534]
  ------------------
  567|      0|            setColourOperationEx(LBX_BLEND_TEXTURE_ALPHA, LBS_TEXTURE, LBS_CURRENT);
  568|      0|            setColourOpMultipassFallback(SBF_SOURCE_ALPHA, SBF_ONE_MINUS_SOURCE_ALPHA);
  569|      0|            break;
  570|    534|        }
  571|       |
  572|       |
  573|    534|    }
_ZN4Ogre16TextureUnitState28setColourOpMultipassFallbackENS_16SceneBlendFactorES1_:
  576|    534|    {
  577|    534|        mColourBlendFallbackSrc = sourceFactor;
  578|    534|        mColourBlendFallbackDest = destFactor;
  579|    534|    }
_ZN4Ogre16TextureUnitState17setAlphaOperationENS_21LayerBlendOperationExENS_16LayerBlendSourceES2_fff:
  587|      6|    {
  588|      6|        mAlphaBlendMode.operation = op;
  589|      6|        mAlphaBlendMode.source1 = source1;
  590|      6|        mAlphaBlendMode.source2 = source2;
  591|      6|        mAlphaBlendMode.alphaArg1 = arg1;
  592|      6|        mAlphaBlendMode.alphaArg2 = arg2;
  593|      6|        mAlphaBlendMode.factor = manualBlend;
  594|      6|    }
_ZN4Ogre16TextureUnitState9addEffectENS0_13TextureEffectE:
  597|  1.89k|    {
  598|       |        // Ensure controller pointer is null
  599|  1.89k|        effect.controller = 0;
  600|       |
  601|  1.89k|        if (effect.type != ET_TRANSFORM)
  ------------------
  |  Branch (601:13): [True: 1.84k, False: 47]
  ------------------
  602|  1.84k|        {
  603|       |            // Replace - must be unique
  604|       |            // Search for existing effect of this type
  605|  1.84k|            EffectMap::iterator i = mEffects.find(effect.type);
  606|  1.84k|            if (i != mEffects.end())
  ------------------
  |  Branch (606:17): [True: 212, False: 1.63k]
  ------------------
  607|    212|            {
  608|       |                // Destroy old effect controller if exist
  609|    212|                if (i->second.controller)
  ------------------
  |  Branch (609:21): [True: 0, False: 212]
  ------------------
  610|      0|                {
  611|      0|                    ControllerManager::getSingleton().destroyController(i->second.controller);
  612|      0|                }
  613|       |
  614|    212|                mEffects.erase(i);
  615|    212|            }
  616|  1.84k|        }
  617|       |
  618|  1.89k|        if (isLoaded())
  ------------------
  |  Branch (618:13): [True: 0, False: 1.89k]
  ------------------
  619|      0|        {
  620|       |            // Create controller
  621|      0|            createEffectController(effect);
  622|      0|        }
  623|       |
  624|       |        // Record new effect
  625|  1.89k|        mEffects.emplace(effect.type, effect);
  626|       |
  627|  1.89k|    }
_ZN4Ogre16TextureUnitState16removeAllEffectsEv:
  630|  34.4k|    {
  631|       |        // Iterate over effects to remove controllers
  632|  34.4k|        EffectMap::iterator i, iend;
  633|  34.4k|        iend = mEffects.end();
  634|  34.4k|        for (i = mEffects.begin(); i != iend; ++i)
  ------------------
  |  Branch (634:36): [True: 0, False: 34.4k]
  ------------------
  635|      0|        {
  636|      0|            if (i->second.controller)
  ------------------
  |  Branch (636:17): [True: 0, False: 0]
  ------------------
  637|      0|            {
  638|      0|                ControllerManager::getSingleton().destroyController(i->second.controller);
  639|      0|            }
  640|      0|        }
  641|       |
  642|  34.4k|        mEffects.clear();
  643|  34.4k|    }
_ZN4Ogre16TextureUnitState17setEnvironmentMapEbi:
  673|    485|    {
  674|    485|        if (enable)
  ------------------
  |  Branch (674:13): [True: 485, False: 0]
  ------------------
  675|    485|        {
  676|    485|            TextureEffect eff = {ET_ENVIRONMENT_MAP};
  677|    485|            eff.subtype = envMapType;
  678|    485|            addEffect(eff);
  679|    485|        }
  680|      0|        else
  681|      0|        {
  682|      0|            removeEffect(ET_ENVIRONMENT_MAP);
  683|      0|        }
  684|    485|    }
_ZN4Ogre16TextureUnitState12removeEffectENS0_17TextureEffectTypeE:
  687|  2.02k|    {
  688|       |        // Get range of items matching this effect
  689|  2.02k|        std::pair< EffectMap::iterator, EffectMap::iterator > remPair = 
  690|  2.02k|            mEffects.equal_range( type );
  691|       |        // Remove controllers
  692|  2.78k|        for (EffectMap::iterator i = remPair.first; i != remPair.second; ++i)
  ------------------
  |  Branch (692:53): [True: 766, False: 2.02k]
  ------------------
  693|    766|        {
  694|    766|            if (i->second.controller)
  ------------------
  |  Branch (694:17): [True: 0, False: 766]
  ------------------
  695|      0|            {
  696|      0|                ControllerManager::getSingleton().destroyController(i->second.controller);
  697|      0|            }
  698|    766|        }
  699|       |        // Erase         
  700|  2.02k|        mEffects.erase( remPair.first, remPair.second );
  701|  2.02k|    }
_ZN4Ogre16TextureUnitState15setTextureScaleEff:
  723|      1|    {
  724|      1|        mUScale = uScale;
  725|      1|        mVScale = vScale;
  726|      1|        mRecalcTexMatrix = true;
  727|      1|    }
_ZN4Ogre16TextureUnitState18setScrollAnimationEff:
  813|    589|    {
  814|       |        // Remove existing effects
  815|    589|        removeEffect(ET_UVSCROLL);
  816|    589|        removeEffect(ET_USCROLL);
  817|    589|        removeEffect(ET_VSCROLL);
  818|       |
  819|       |        // don't create an effect if the speeds are both 0
  820|    589|        if (uSpeed == 0.0f && vSpeed == 0.0f)
  ------------------
  |  Branch (820:13): [True: 38, False: 551]
  |  Branch (820:31): [True: 37, False: 1]
  ------------------
  821|     37|        {
  822|     37|            return;
  823|     37|        }
  824|       |
  825|       |        // Create new effect
  826|    552|        if (uSpeed == vSpeed)
  ------------------
  |  Branch (826:13): [True: 0, False: 552]
  ------------------
  827|      0|        {
  828|      0|            addEffect({ET_UVSCROLL, uSpeed});
  829|      0|        }
  830|    552|        else
  831|    552|        {
  832|    552|            if (uSpeed)
  ------------------
  |  Branch (832:17): [True: 551, False: 1]
  ------------------
  833|    551|            {
  834|    551|                addEffect({ET_USCROLL, uSpeed});
  835|    551|            }
  836|    552|            if (vSpeed)
  ------------------
  |  Branch (836:17): [True: 552, False: 0]
  ------------------
  837|    552|            {
  838|    552|                addEffect({ET_VSCROLL, vSpeed});
  839|    552|            }
  840|    552|        }
  841|    552|    }
_ZN4Ogre16TextureUnitState18setRotateAnimationEf:
  844|    255|    {
  845|       |        // Remove existing effect
  846|    255|        removeEffect(ET_ROTATE);
  847|       |        // don't create an effect if the speed is 0
  848|    255|        if(speed == 0.0f) 
  ------------------
  |  Branch (848:12): [True: 0, False: 255]
  ------------------
  849|      0|        {
  850|      0|          return;
  851|      0|        }
  852|       |        // Create new effect
  853|    255|        addEffect({ET_ROTATE, speed});
  854|    255|    }
_ZN4Ogre16TextureUnitState21setTransformAnimationENS0_20TextureTransformTypeENS_12WaveformTypeEffff:
  858|     56|    {
  859|       |        // Remove existing effect
  860|       |        // note, only remove for subtype, not entire ET_TRANSFORM
  861|       |        // otherwise we won't be able to combine subtypes
  862|       |        // Get range of items matching this effect
  863|    114|        for (EffectMap::iterator i = mEffects.begin(); i != mEffects.end(); ++i)
  ------------------
  |  Branch (863:56): [True: 76, False: 38]
  ------------------
  864|     76|        {
  865|     76|            if (i->second.type == ET_TRANSFORM && i->second.subtype == ttype)
  ------------------
  |  Branch (865:17): [True: 18, False: 58]
  |  Branch (865:51): [True: 18, False: 0]
  ------------------
  866|     18|            {
  867|     18|                if (i->second.controller)
  ------------------
  |  Branch (867:21): [True: 0, False: 18]
  ------------------
  868|      0|                {
  869|      0|                    ControllerManager::getSingleton().destroyController(i->second.controller);
  870|      0|                }
  871|     18|                mEffects.erase(i);
  872|       |
  873|       |                // should only be one, so jump out
  874|     18|                break;
  875|     18|            }
  876|     76|        }
  877|       |
  878|       |        // don't create an effect if the given values are all 0
  879|     56|        if(base == 0.0f && phase == 0.0f && frequency == 0.0f && amplitude == 0.0f)
  ------------------
  |  Branch (879:12): [True: 17, False: 39]
  |  Branch (879:28): [True: 13, False: 4]
  |  Branch (879:45): [True: 9, False: 4]
  |  Branch (879:66): [True: 9, False: 0]
  ------------------
  880|      9|        {
  881|      9|            return;
  882|      9|        }
  883|       |        // Create new effect
  884|     47|        TextureEffect eff = {ET_TRANSFORM};
  885|     47|        eff.subtype = ttype;
  886|     47|        eff.waveType = waveType;
  887|     47|        eff.base = base;
  888|     47|        eff.frequency = frequency;
  889|     47|        eff.phase = phase;
  890|     47|        eff.amplitude = amplitude;
  891|     47|        addEffect(eff);
  892|     47|    }
_ZN4Ogre16TextureUnitState15retrieveTextureERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  960|  58.7k|    TexturePtr TextureUnitState::retrieveTexture(const String& name) {
  961|  58.7k|        TextureManager::ResourceCreateOrRetrieveResult res;
  962|  58.7k|        res = TextureManager::getSingleton().createOrRetrieve(name, mParent->getResourceGroup());
  963|  58.7k|        return static_pointer_cast<Texture>(res.first);
  964|  58.7k|    }
_ZN4Ogre16TextureUnitState7_unloadEv:
 1124|  34.9k|    {
 1125|       |        // Destroy animation controller
 1126|  34.9k|        if (mAnimController)
  ------------------
  |  Branch (1126:13): [True: 0, False: 34.9k]
  ------------------
 1127|      0|        {
 1128|      0|            ControllerManager::getSingleton().destroyController(mAnimController);
 1129|      0|            mAnimController = 0;
 1130|      0|        }
 1131|       |
 1132|       |        // Destroy effect controllers
 1133|  34.9k|        for (auto & e : mEffects)
  ------------------
  |  Branch (1133:23): [True: 104k, False: 34.9k]
  ------------------
 1134|   104k|        {
 1135|   104k|            if (e.second.controller)
  ------------------
  |  Branch (1135:17): [True: 0, False: 104k]
  ------------------
 1136|      0|            {
 1137|      0|                ControllerManager::getSingleton().destroyController(e.second.controller);
 1138|      0|                e.second.controller = 0;
 1139|      0|            }
 1140|   104k|        }
 1141|       |
 1142|       |        // don't unload named textures. may be used elsewhere
 1143|       |        // drop references on managed textures, however
 1144|  34.9k|        if(mContentType != CONTENT_NAMED)
  ------------------
  |  Branch (1144:12): [True: 18, False: 34.9k]
  ------------------
 1145|     18|            mFramePtrs[0].reset();
 1146|  34.9k|    }
_ZNK4Ogre16TextureUnitState8isLoadedEv:
 1149|  36.8k|    {
 1150|  36.8k|        return mParent->isLoaded();
 1151|  36.8k|    }
_ZN4Ogre16TextureUnitState7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1185|    563|    {
 1186|    563|        mName = name;
 1187|    563|    }
_ZN4Ogre16TextureUnitState13_notifyParentEPNS_4PassE:
 1190|    534|    {
 1191|    534|        mParent = parent;
 1192|    534|    }
_ZN4Ogre16TextureUnitState22setCompositorReferenceERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_j:
 1195|     12|    {  
 1196|     12|        mCompositorRefName = compositorName; 
 1197|     12|        mCompositorRefTexName = textureName; 
 1198|     12|        mCompositorRefMrtIndex = mrtIndex; 
 1199|     12|    }
_ZNK4Ogre16TextureUnitState18isDefaultFilteringEv:
 1209|    184|    bool TextureUnitState::isDefaultFiltering() const {
 1210|    184|        return mSampler == TextureManager::getSingleton().getDefaultSampler();
 1211|    184|    }
_ZN4Ogre16TextureUnitState16_getLocalSamplerEv:
 1214|    184|    {
 1215|    184|        if(isDefaultFiltering())
  ------------------
  |  Branch (1215:12): [True: 80, False: 104]
  ------------------
 1216|     80|            mSampler = TextureManager::getSingleton().createSampler();
 1217|       |
 1218|    184|        return mSampler;
 1219|    184|    }

_ZN4Ogre5TimerC2Ev:
   36|      1|{
   37|      1|    reset();
   38|      1|}
_ZN4Ogre5Timer5resetEv:
   42|      1|{
   43|      1|    zeroClock = clock();
   44|      1|    start = steady_clock::now();
   45|      1|}

_ZN4Ogre26UnifiedHighLevelGpuProgramC2EPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
   50|    128|        :GpuProgram(creator, name, handle, group, isManual, loader)
   51|    128|    {
   52|    128|        if (createParamDictionary("UnifiedHighLevelGpuProgram"))
  ------------------
  |  Branch (52:13): [True: 1, False: 127]
  ------------------
   53|      1|        {
   54|      1|            setupBaseParamDictionary();
   55|       |
   56|      1|            ParamDictionary* dict = getParamDictionary();
   57|       |
   58|      1|            dict->addParameter(ParameterDef("delegate",
   59|      1|                "Additional delegate programs containing implementations.",
   60|      1|                PT_STRING),&msCmdDelegate);
   61|      1|        }
   62|       |
   63|    128|    }
_ZN4Ogre26UnifiedHighLevelGpuProgramD2Ev:
   66|    128|    {
   67|       |
   68|    128|    }
_ZNK4Ogre26UnifiedHighLevelGpuProgram14chooseDelegateEv:
   71|    337|    {
   72|    337|        OGRE_LOCK_AUTO_MUTEX;
   73|       |
   74|    337|        mChosenDelegate.reset();
   75|       |
   76|    337|        for (const String& dn : mDelegateNames)
  ------------------
  |  Branch (76:31): [True: 628, False: 337]
  ------------------
   77|    628|        {
   78|    628|            GpuProgramPtr deleg = GpuProgramManager::getSingleton().getByName(dn, mGroup);
   79|       |
   80|       |            //recheck with auto resource group
   81|    628|            if (!deleg)
  ------------------
  |  Branch (81:17): [True: 269, False: 359]
  ------------------
   82|    269|                deleg = GpuProgramManager::getSingleton().getByName(dn, RGN_AUTODETECT);
   83|       |
   84|       |            // Silently ignore missing links
   85|    628|            if(!deleg)
  ------------------
  |  Branch (85:16): [True: 269, False: 359]
  ------------------
   86|    269|                continue;
   87|       |
   88|    359|            if (deleg->getLanguage() == sLanguage)
  ------------------
  |  Branch (88:17): [True: 0, False: 359]
  ------------------
   89|      0|            {
   90|      0|                LogManager::getSingleton().logError("unified program '" + getName() +
   91|      0|                                                    "' cannot delegate to another unified program '" + dn + "'");
   92|      0|                continue;
   93|      0|            }
   94|       |
   95|    359|            if (deleg->getType() != getType())
  ------------------
  |  Branch (95:17): [True: 0, False: 359]
  ------------------
   96|      0|            {
   97|      0|                LogManager::getSingleton().logError("unified program '" + getName() +
   98|      0|                                                    "' cannot delegate to program with different type '" + dn + "'");
   99|      0|                continue;
  100|      0|            }
  101|       |
  102|    359|            if(!deleg->isSupported() && !deleg->hasCompileError())
  ------------------
  |  Branch (102:16): [True: 359, False: 0]
  |  Branch (102:41): [True: 359, False: 0]
  ------------------
  103|    359|                continue;
  104|       |
  105|      0|            mChosenDelegate = deleg;
  106|      0|            break;
  107|    359|        }
  108|    337|    }
_ZNK4Ogre26UnifiedHighLevelGpuProgram12_getDelegateEv:
  111|    337|    {
  112|    337|        if (!mChosenDelegate)
  ------------------
  |  Branch (112:13): [True: 337, False: 0]
  ------------------
  113|    337|        {
  114|    337|            chooseDelegate();
  115|    337|        }
  116|    337|        return mChosenDelegate;
  117|    337|    }
_ZN4Ogre26UnifiedHighLevelGpuProgram18addDelegateProgramERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  120|    250|    {
  121|    250|            OGRE_LOCK_AUTO_MUTEX;
  122|       |
  123|    250|        mDelegateNames.push_back(name);
  124|       |
  125|       |        // reset chosen delegate
  126|    250|        mChosenDelegate.reset();
  127|       |
  128|    250|    }
_ZN4Ogre26UnifiedHighLevelGpuProgram16createParametersEv:
  158|      7|    {
  159|      7|        if (isSupported())
  ------------------
  |  Branch (159:13): [True: 0, False: 7]
  ------------------
  160|      0|        {
  161|      0|            return _getDelegate()->createParameters();
  162|      0|        }
  163|      7|        else
  164|      7|        {
  165|       |            // return a default set
  166|      7|            GpuProgramParametersSharedPtr params = GpuProgramManager::getSingleton().createParameters();
  167|       |            // avoid any errors on parameter names that don't exist
  168|      7|            params->setIgnoreMissingParams(true);
  169|      7|            return params;
  170|      7|        }
  171|      7|    }
_ZNK4Ogre26UnifiedHighLevelGpuProgram11isSupportedEv:
  182|    196|    {
  183|       |        // Supported if one of the delegates is
  184|    196|        return _getDelegate() && _getDelegate()->isSupported();
  ------------------
  |  Branch (184:16): [True: 0, False: 196]
  |  Branch (184:34): [True: 0, False: 0]
  ------------------
  185|    196|    }
_ZN4Ogre26UnifiedHighLevelGpuProgram6unloadEv:
  308|    127|    {
  309|    127|        if (_getDelegate())
  ------------------
  |  Branch (309:13): [True: 0, False: 127]
  ------------------
  310|      0|            _getDelegate()->unload();
  311|    127|    }
_ZN4Ogre26UnifiedHighLevelGpuProgram11addListenerEPNS_8Resource8ListenerE:
  372|      7|    {
  373|      7|        if (_getDelegate())
  ------------------
  |  Branch (373:13): [True: 0, False: 7]
  ------------------
  374|      0|            _getDelegate()->addListener(lis);
  375|      7|    }
_ZN4Ogre26UnifiedHighLevelGpuProgram14removeListenerEPNS_8Resource8ListenerE:
  378|      7|    {
  379|      7|        if (_getDelegate())
  ------------------
  |  Branch (379:13): [True: 0, False: 7]
  ------------------
  380|      0|            _getDelegate()->removeListener(lis);
  381|      7|    }
_ZN4Ogre11CmdDelegate5doSetEPvRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  412|    250|    {
  413|    250|        static_cast<UnifiedHighLevelGpuProgram*>(target)->addDelegateProgram(val);
  414|    250|    }
_ZN4Ogre33UnifiedHighLevelGpuProgramFactoryC2Ev:
  418|      1|    {
  419|      1|    }
_ZNK4Ogre33UnifiedHighLevelGpuProgramFactory11getLanguageEv:
  426|      1|    {
  427|      1|        return sLanguage;
  428|      1|    }
_ZN4Ogre33UnifiedHighLevelGpuProgramFactory6createEPNS_15ResourceManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEmSB_bPNS_20ManualResourceLoaderE:
  433|    128|    {
  434|       |        return OGRE_NEW UnifiedHighLevelGpuProgram(creator, name, handle, group, isManual, loader);
  435|    128|    }

_ZN4Ogre20DefaultWorkQueueBaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   65|      1|        : mName(name)
   66|      1|        , mWorkerThreadCount(1)
   67|      1|        , mWorkerRenderSystemAccess(false)
   68|      1|        , mIsRunning(false)
   69|      1|        , mResposeTimeLimitMS(10)
   70|      1|        , mPaused(false)
   71|      1|        , mAcceptRequests(true)
   72|      1|        , mShuttingDown(false)
   73|      1|    {
   74|      1|    }
_ZN4Ogre20DefaultWorkQueueBase31setWorkersCanAccessRenderSystemEb:
   87|      1|    {
   88|      1|        mWorkerRenderSystemAccess = access;
   89|      1|    }

_ZNK4Ogre17ZipArchiveFactory7getTypeEv:
  359|      2|    {
  360|      2|        static String name = "Zip";
  361|      2|        return name;
  362|      2|    }
_ZN4Ogre25EmbeddedZipArchiveFactoryC2Ev:
  386|      1|    EmbeddedZipArchiveFactory::EmbeddedZipArchiveFactory() {}
_ZNK4Ogre25EmbeddedZipArchiveFactory7getTypeEv:
  406|      2|    {
  407|      2|        static String name = "EmbeddedZip";
  408|      2|        return name;
  409|      2|    }

LLVMFuzzerTestOneInput:
   98|    334|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   99|    334|  if (size == 0 || size > FUZZ_MAX_INPUT)
  ------------------
  |  Branch (99:7): [True: 0, False: 334]
  |  Branch (99:20): [True: 7, False: 327]
  ------------------
  100|      7|    return 0;
  101|       |
  102|    327|  global_init();
  103|       |
  104|    327|  Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream("fuzz.os", const_cast<uint8_t*>(data), size, false, true));
  105|       |
  106|    327|  try
  107|    327|  {
  108|    327|    Ogre::ScriptCompilerManager::getSingleton().parseScript(stream, FUZZ_GROUP);
  109|    327|  }
  110|    327|  catch (std::exception&)
  111|    327|  {
  112|     19|  }
  113|       |
  114|    327|  purge_state();
  115|    327|  return 0;
  116|    327|}
script_fuzz.cpp:_ZL11global_initv:
   63|    327|static void global_init() {
   64|    327|  if (g_initialized)
  ------------------
  |  Branch (64:7): [True: 326, False: 1]
  ------------------
   65|    326|    return;
   66|       |
   67|      1|  auto *logMgr = new Ogre::LogManager();
   68|      1|  logMgr->createLog("fuzz.log", true, false);
   69|      1|  logMgr->setMinLogLevel(Ogre::LML_CRITICAL);
   70|       |
   71|      1|  new Ogre::Root("", "", "");
   72|       |
   73|       |  /* Root::initialise() would do this, but that needs a RenderSystem. */
   74|      1|  Ogre::MaterialManager::getSingleton().initialise();
   75|      1|  new Ogre::DefaultTextureManager();
   76|       |
   77|      1|  static FuzzScriptListener listener;
   78|      1|  Ogre::ScriptCompilerManager::getSingleton().setListener(&listener);
   79|       |
   80|      1|  Ogre::ResourceGroupManager::getSingleton().createResourceGroup(FUZZ_GROUP, false);
   81|      1|  g_initialized = true;
   82|      1|}
_ZN18FuzzScriptListener10importFileEPN4Ogre14ScriptCompilerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   56|     75|    {
   57|     75|        return std::make_shared<Ogre::ConcreteNodeList>();
   58|     75|    }
_ZN18FuzzScriptListener11handleErrorEPN4Ogre14ScriptCompilerEjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEiSB_:
   53|  1.24M|    void handleError(Ogre::ScriptCompiler*, Ogre::uint32, const Ogre::String&, int, const Ogre::String&) override {}
script_fuzz.cpp:_ZL11purge_statev:
   85|    327|static void purge_state() {
   86|    327|  auto &rgm = Ogre::ResourceGroupManager::getSingleton();
   87|    327|  rgm.destroyResourceGroup(FUZZ_GROUP);
   88|    327|  rgm.createResourceGroup(FUZZ_GROUP, false);
   89|       |
   90|       |  /* Particle system templates are not Resources - they live in a private map
   91|       |   * in ParticleSystemManager and would grow without bound otherwise. */
   92|    327|  Ogre::ParticleSystemManager::getSingleton().removeAllTemplates();
   93|       |
   94|       |  // clean the pass graveyard
   95|    327|  Ogre::Pass::processPendingPassUpdates();
   96|    327|}

