_ZNK8AddrInfo14GetTriedBucketERK7uint256RK15NetGroupManager:
   49|  19.7M|{
   50|  19.7M|    uint64_t hash1 = (HashWriter{} << nKey << GetKey()).GetCheapHash();
   51|  19.7M|    uint64_t hash2 = (HashWriter{} << nKey << netgroupman.GetGroup(*this) << (hash1 % ADDRMAN_TRIED_BUCKETS_PER_GROUP)).GetCheapHash();
   52|  19.7M|    return hash2 % ADDRMAN_TRIED_BUCKET_COUNT;
   53|  19.7M|}
_ZNK8AddrInfo12GetNewBucketERK7uint256RK8CNetAddrRK15NetGroupManager:
   56|  19.3M|{
   57|  19.3M|    std::vector<unsigned char> vchSourceGroupKey = netgroupman.GetGroup(src);
   58|  19.3M|    uint64_t hash1 = (HashWriter{} << nKey << netgroupman.GetGroup(*this) << vchSourceGroupKey).GetCheapHash();
   59|  19.3M|    uint64_t hash2 = (HashWriter{} << nKey << vchSourceGroupKey << (hash1 % ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP)).GetCheapHash();
   60|  19.3M|    return hash2 % ADDRMAN_NEW_BUCKET_COUNT;
   61|  19.3M|}
_ZNK8AddrInfo17GetBucketPositionERK7uint256bi:
   64|  54.4M|{
   65|  54.4M|    uint64_t hash1 = (HashWriter{} << nKey << (fNew ? uint8_t{'N'} : uint8_t{'K'}) << bucket << GetKey()).GetCheapHash();
  ------------------
  |  Branch (65:48): [True: 34.6M, False: 19.7M]
  ------------------
   66|  54.4M|    return hash1 % ADDRMAN_BUCKET_SIZE;
   67|  54.4M|}
_ZNK8AddrInfo10IsTerribleENSt3__16chrono10time_pointI9NodeClockNS1_8durationIxNS0_5ratioILl1ELl1EEEEEEE:
   70|  2.86M|{
   71|  2.86M|    if (now - m_last_try <= 1min) { // never remove things tried in the last minute
  ------------------
  |  Branch (71:9): [True: 962k, False: 1.89M]
  ------------------
   72|   962k|        return false;
   73|   962k|    }
   74|       |
   75|  1.89M|    if (nTime > now + 10min) { // came in a flying DeLorean
  ------------------
  |  Branch (75:9): [True: 0, False: 1.89M]
  ------------------
   76|      0|        return true;
   77|      0|    }
   78|       |
   79|  1.89M|    if (now - nTime > ADDRMAN_HORIZON) { // not seen in recent history
  ------------------
  |  Branch (79:9): [True: 1.89M, False: 0]
  ------------------
   80|  1.89M|        return true;
   81|  1.89M|    }
   82|       |
   83|      0|    if (TicksSinceEpoch<std::chrono::seconds>(m_last_success) == 0 && nAttempts >= ADDRMAN_RETRIES) { // tried N times and never a success
  ------------------
  |  Branch (83:9): [True: 0, False: 0]
  |  Branch (83:71): [True: 0, False: 0]
  ------------------
   84|      0|        return true;
   85|      0|    }
   86|       |
   87|      0|    if (now - m_last_success > ADDRMAN_MIN_FAIL && nAttempts >= ADDRMAN_MAX_FAILURES) { // N successive failures in the last week
  ------------------
  |  Branch (87:9): [True: 0, False: 0]
  |  Branch (87:9): [True: 0, False: 0]
  |  Branch (87:52): [True: 0, False: 0]
  ------------------
   88|      0|        return true;
   89|      0|    }
   90|       |
   91|      0|    return false;
   92|      0|}
_ZN11AddrManImplC2ERK15NetGroupManagerbi:
  110|  4.99k|    : insecure_rand{deterministic}
  111|  4.99k|    , nKey{deterministic ? uint256{1} : insecure_rand.rand256()}
  ------------------
  |  Branch (111:12): [True: 4.99k, False: 0]
  ------------------
  112|  4.99k|    , m_consistency_check_ratio{consistency_check_ratio}
  113|  4.99k|    , m_netgroupman{netgroupman}
  114|  4.99k|{
  115|  5.11M|    for (auto& bucket : vvNew) {
  ------------------
  |  Branch (115:23): [True: 5.11M, False: 4.99k]
  ------------------
  116|   327M|        for (auto& entry : bucket) {
  ------------------
  |  Branch (116:26): [True: 327M, False: 5.11M]
  ------------------
  117|   327M|            entry = -1;
  118|   327M|        }
  119|  5.11M|    }
  120|  1.27M|    for (auto& bucket : vvTried) {
  ------------------
  |  Branch (120:23): [True: 1.27M, False: 4.99k]
  ------------------
  121|  81.8M|        for (auto& entry : bucket) {
  ------------------
  |  Branch (121:26): [True: 81.8M, False: 1.27M]
  ------------------
  122|  81.8M|            entry = -1;
  123|  81.8M|        }
  124|  1.27M|    }
  125|  4.99k|}
_ZN11AddrManImplD2Ev:
  128|  4.99k|{
  129|  4.99k|    nKey.SetNull();
  130|  4.99k|}
_ZN11AddrManImpl4FindERK8CServicePl:
  402|  22.9M|{
  403|  22.9M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  22.9M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  404|       |
  405|  22.9M|    const auto it = mapAddr.find(addr);
  406|  22.9M|    if (it == mapAddr.end())
  ------------------
  |  Branch (406:9): [True: 15.0M, False: 7.90M]
  ------------------
  407|  15.0M|        return nullptr;
  408|  7.90M|    if (pnId)
  ------------------
  |  Branch (408:9): [True: 7.90M, False: 0]
  ------------------
  409|  7.90M|        *pnId = (*it).second;
  410|  7.90M|    const auto it2 = mapInfo.find((*it).second);
  411|  7.90M|    if (it2 != mapInfo.end())
  ------------------
  |  Branch (411:9): [True: 7.90M, False: 0]
  ------------------
  412|  7.90M|        return &(*it2).second;
  413|      0|    return nullptr;
  414|  7.90M|}
_ZN11AddrManImpl6CreateERK8CAddressRK8CNetAddrPl:
  417|  14.2M|{
  418|  14.2M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  14.2M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  419|       |
  420|  14.2M|    nid_type nId = nIdCount++;
  421|  14.2M|    mapInfo[nId] = AddrInfo(addr, addrSource);
  422|  14.2M|    mapAddr[addr] = nId;
  423|  14.2M|    mapInfo[nId].nRandomPos = vRandom.size();
  424|  14.2M|    vRandom.push_back(nId);
  425|  14.2M|    nNew++;
  426|  14.2M|    m_network_counts[addr.GetNetwork()].n_new++;
  427|  14.2M|    if (pnId)
  ------------------
  |  Branch (427:9): [True: 14.2M, False: 0]
  ------------------
  428|  14.2M|        *pnId = nId;
  429|  14.2M|    return &mapInfo[nId];
  430|  14.2M|}
_ZNK11AddrManImpl10SwapRandomEjj:
  433|  2.73M|{
  434|  2.73M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  2.73M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  435|       |
  436|  2.73M|    if (nRndPos1 == nRndPos2)
  ------------------
  |  Branch (436:9): [True: 931k, False: 1.80M]
  ------------------
  437|   931k|        return;
  438|       |
  439|  1.80M|    assert(nRndPos1 < vRandom.size() && nRndPos2 < vRandom.size());
  440|       |
  441|  1.80M|    nid_type nId1 = vRandom[nRndPos1];
  442|  1.80M|    nid_type nId2 = vRandom[nRndPos2];
  443|       |
  444|  1.80M|    const auto it_1{mapInfo.find(nId1)};
  445|  1.80M|    const auto it_2{mapInfo.find(nId2)};
  446|  1.80M|    assert(it_1 != mapInfo.end());
  447|  1.80M|    assert(it_2 != mapInfo.end());
  448|       |
  449|  1.80M|    it_1->second.nRandomPos = nRndPos2;
  450|  1.80M|    it_2->second.nRandomPos = nRndPos1;
  451|       |
  452|  1.80M|    vRandom[nRndPos1] = nId2;
  453|  1.80M|    vRandom[nRndPos2] = nId1;
  454|  1.80M|}
_ZN11AddrManImpl6DeleteEl:
  457|  2.73M|{
  458|  2.73M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  2.73M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  459|       |
  460|  2.73M|    assert(mapInfo.count(nId) != 0);
  461|  2.73M|    AddrInfo& info = mapInfo[nId];
  462|  2.73M|    assert(!info.fInTried);
  463|  2.73M|    assert(info.nRefCount == 0);
  464|       |
  465|  2.73M|    SwapRandom(info.nRandomPos, vRandom.size() - 1);
  466|  2.73M|    m_network_counts[info.GetNetwork()].n_new--;
  467|  2.73M|    vRandom.pop_back();
  468|  2.73M|    mapAddr.erase(info);
  469|  2.73M|    mapInfo.erase(nId);
  470|  2.73M|    nNew--;
  471|  2.73M|}
_ZN11AddrManImpl8ClearNewEii:
  474|  13.7M|{
  475|  13.7M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  13.7M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  476|       |
  477|       |    // if there is an entry in the specified bucket, delete it.
  478|  13.7M|    if (vvNew[nUBucket][nUBucketPos] != -1) {
  ------------------
  |  Branch (478:9): [True: 1.91M, False: 11.8M]
  ------------------
  479|  1.91M|        nid_type nIdDelete = vvNew[nUBucket][nUBucketPos];
  480|  1.91M|        AddrInfo& infoDelete = mapInfo[nIdDelete];
  481|  1.91M|        assert(infoDelete.nRefCount > 0);
  482|  1.91M|        infoDelete.nRefCount--;
  483|  1.91M|        vvNew[nUBucket][nUBucketPos] = -1;
  484|  1.91M|        LogDebug(BCLog::ADDRMAN, "Removed %s from new[%i][%i]\n", infoDelete.ToStringAddrPort(), nUBucket, nUBucketPos);
  ------------------
  |  |  280|  1.91M|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  1.91M|    do {                                                  \
  |  |  |  |  274|  1.91M|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 1.91M]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  1.91M|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  485|  1.91M|        if (infoDelete.nRefCount == 0) {
  ------------------
  |  Branch (485:13): [True: 1.80M, False: 111k]
  ------------------
  486|  1.80M|            Delete(nIdDelete);
  487|  1.80M|        }
  488|  1.91M|    }
  489|  13.7M|}
_ZN11AddrManImpl9MakeTriedER8AddrInfol:
  492|  4.57M|{
  493|  4.57M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  4.57M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  494|       |
  495|       |    // remove the entry from all new buckets
  496|  4.57M|    const int start_bucket{info.GetNewBucket(nKey, m_netgroupman)};
  497|  5.35M|    for (int n = 0; n < ADDRMAN_NEW_BUCKET_COUNT; ++n) {
  ------------------
  |  Branch (497:21): [True: 5.35M, False: 0]
  ------------------
  498|  5.35M|        const int bucket{(start_bucket + n) % ADDRMAN_NEW_BUCKET_COUNT};
  499|  5.35M|        const int pos{info.GetBucketPosition(nKey, true, bucket)};
  500|  5.35M|        if (vvNew[bucket][pos] == nId) {
  ------------------
  |  Branch (500:13): [True: 4.58M, False: 774k]
  ------------------
  501|  4.58M|            vvNew[bucket][pos] = -1;
  502|  4.58M|            info.nRefCount--;
  503|  4.58M|            if (info.nRefCount == 0) break;
  ------------------
  |  Branch (503:17): [True: 4.57M, False: 1.62k]
  ------------------
  504|  4.58M|        }
  505|  5.35M|    }
  506|  4.57M|    nNew--;
  507|  4.57M|    m_network_counts[info.GetNetwork()].n_new--;
  508|       |
  509|  4.57M|    assert(info.nRefCount == 0);
  510|       |
  511|       |    // which tried bucket to move the entry to
  512|  4.57M|    int nKBucket = info.GetTriedBucket(nKey, m_netgroupman);
  513|  4.57M|    int nKBucketPos = info.GetBucketPosition(nKey, false, nKBucket);
  514|       |
  515|       |    // first make space to add it (the existing tried entry there is moved to new, deleting whatever is there).
  516|  4.57M|    if (vvTried[nKBucket][nKBucketPos] != -1) {
  ------------------
  |  Branch (516:9): [True: 0, False: 4.57M]
  ------------------
  517|       |        // find an item to evict
  518|      0|        nid_type nIdEvict = vvTried[nKBucket][nKBucketPos];
  519|      0|        assert(mapInfo.count(nIdEvict) == 1);
  520|      0|        AddrInfo& infoOld = mapInfo[nIdEvict];
  521|       |
  522|       |        // Remove the to-be-evicted item from the tried set.
  523|      0|        infoOld.fInTried = false;
  524|      0|        vvTried[nKBucket][nKBucketPos] = -1;
  525|      0|        nTried--;
  526|      0|        m_network_counts[infoOld.GetNetwork()].n_tried--;
  527|       |
  528|       |        // find which new bucket it belongs to
  529|      0|        int nUBucket = infoOld.GetNewBucket(nKey, m_netgroupman);
  530|      0|        int nUBucketPos = infoOld.GetBucketPosition(nKey, true, nUBucket);
  531|      0|        ClearNew(nUBucket, nUBucketPos);
  532|      0|        assert(vvNew[nUBucket][nUBucketPos] == -1);
  533|       |
  534|       |        // Enter it into the new set again.
  535|      0|        infoOld.nRefCount = 1;
  536|      0|        vvNew[nUBucket][nUBucketPos] = nIdEvict;
  537|      0|        nNew++;
  538|      0|        m_network_counts[infoOld.GetNetwork()].n_new++;
  539|      0|        LogDebug(BCLog::ADDRMAN, "Moved %s from tried[%i][%i] to new[%i][%i] to make space\n",
  ------------------
  |  |  280|      0|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|      0|    do {                                                  \
  |  |  |  |  274|      0|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  540|      0|                 infoOld.ToStringAddrPort(), nKBucket, nKBucketPos, nUBucket, nUBucketPos);
  541|      0|    }
  542|  4.57M|    assert(vvTried[nKBucket][nKBucketPos] == -1);
  543|       |
  544|  4.57M|    vvTried[nKBucket][nKBucketPos] = nId;
  545|  4.57M|    nTried++;
  546|  4.57M|    info.fInTried = true;
  547|  4.57M|    m_network_counts[info.GetNetwork()].n_tried++;
  548|  4.57M|}
_ZN11AddrManImpl9AddSingleERK8CAddressRK8CNetAddrNSt3__16chrono8durationIxNS6_5ratioILl1ELl1EEEEE:
  551|  16.0M|{
  552|  16.0M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  16.0M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  553|       |
  554|  16.0M|    if (!addr.IsRoutable())
  ------------------
  |  Branch (554:9): [True: 70.5k, False: 15.9M]
  ------------------
  555|  70.5k|        return false;
  556|       |
  557|  15.9M|    nid_type nId;
  558|  15.9M|    AddrInfo* pinfo = Find(addr, &nId);
  559|       |
  560|       |    // Do not set a penalty for a source's self-announcement
  561|  15.9M|    if (addr == source) {
  ------------------
  |  Branch (561:9): [True: 125k, False: 15.8M]
  ------------------
  562|   125k|        time_penalty = 0s;
  563|   125k|    }
  564|       |
  565|  15.9M|    if (pinfo) {
  ------------------
  |  Branch (565:9): [True: 1.69M, False: 14.2M]
  ------------------
  566|       |        // periodically update nTime
  567|  1.69M|        const bool currently_online{NodeClock::now() - addr.nTime < 24h};
  568|  1.69M|        const auto update_interval{currently_online ? 1h : 24h};
  ------------------
  |  Branch (568:36): [True: 0, False: 1.69M]
  ------------------
  569|  1.69M|        if (pinfo->nTime < addr.nTime - update_interval - time_penalty) {
  ------------------
  |  Branch (569:13): [True: 48.2k, False: 1.64M]
  ------------------
  570|  48.2k|            pinfo->nTime = std::max(NodeSeconds{0s}, addr.nTime - time_penalty);
  571|  48.2k|        }
  572|       |
  573|       |        // add services
  574|  1.69M|        pinfo->nServices = ServiceFlags(pinfo->nServices | addr.nServices);
  575|       |
  576|       |        // do not update if no new information is present
  577|  1.69M|        if (addr.nTime <= pinfo->nTime) {
  ------------------
  |  Branch (577:13): [True: 112k, False: 1.58M]
  ------------------
  578|   112k|            return false;
  579|   112k|        }
  580|       |
  581|       |        // do not update if the entry was already in the "tried" table
  582|  1.58M|        if (pinfo->fInTried)
  ------------------
  |  Branch (582:13): [True: 595k, False: 985k]
  ------------------
  583|   595k|            return false;
  584|       |
  585|       |        // do not update if the max reference count is reached
  586|   985k|        if (pinfo->nRefCount == ADDRMAN_NEW_BUCKETS_PER_ADDRESS)
  ------------------
  |  Branch (586:13): [True: 742, False: 984k]
  ------------------
  587|    742|            return false;
  588|       |
  589|       |        // stochastic test: previous nRefCount == N: 2^N times harder to increase it
  590|   984k|        if (pinfo->nRefCount > 0) {
  ------------------
  |  Branch (590:13): [True: 984k, False: 0]
  ------------------
  591|   984k|            const int nFactor{1 << pinfo->nRefCount};
  592|   984k|            if (insecure_rand.randrange(nFactor) != 0) return false;
  ------------------
  |  Branch (592:17): [True: 510k, False: 474k]
  ------------------
  593|   984k|        }
  594|  14.2M|    } else {
  595|  14.2M|        pinfo = Create(addr, source, &nId);
  596|  14.2M|        pinfo->nTime = std::max(NodeSeconds{0s}, pinfo->nTime - time_penalty);
  597|  14.2M|    }
  598|       |
  599|  14.7M|    int nUBucket = pinfo->GetNewBucket(nKey, source, m_netgroupman);
  600|  14.7M|    int nUBucketPos = pinfo->GetBucketPosition(nKey, true, nUBucket);
  601|  14.7M|    bool fInsert = vvNew[nUBucket][nUBucketPos] == -1;
  602|  14.7M|    if (vvNew[nUBucket][nUBucketPos] != nId) {
  ------------------
  |  Branch (602:9): [True: 14.7M, False: 63.6k]
  ------------------
  603|  14.7M|        if (!fInsert) {
  ------------------
  |  Branch (603:13): [True: 2.86M, False: 11.8M]
  ------------------
  604|  2.86M|            AddrInfo& infoExisting = mapInfo[vvNew[nUBucket][nUBucketPos]];
  605|  2.86M|            if (infoExisting.IsTerrible() || (infoExisting.nRefCount > 1 && pinfo->nRefCount == 0)) {
  ------------------
  |  Branch (605:17): [True: 1.89M, False: 962k]
  |  Branch (605:47): [True: 15.0k, False: 947k]
  |  Branch (605:77): [True: 14.3k, False: 772]
  ------------------
  606|       |                // Overwrite the existing new table entry.
  607|  1.91M|                fInsert = true;
  608|  1.91M|            }
  609|  2.86M|        }
  610|  14.7M|        if (fInsert) {
  ------------------
  |  Branch (610:13): [True: 13.7M, False: 947k]
  ------------------
  611|  13.7M|            ClearNew(nUBucket, nUBucketPos);
  612|  13.7M|            pinfo->nRefCount++;
  613|  13.7M|            vvNew[nUBucket][nUBucketPos] = nId;
  614|  13.7M|            const auto mapped_as{m_netgroupman.GetMappedAS(addr)};
  615|  13.7M|            LogDebug(BCLog::ADDRMAN, "Added %s%s to new[%i][%i]\n",
  ------------------
  |  |  280|  13.7M|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  13.7M|    do {                                                  \
  |  |  |  |  274|  13.7M|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 13.7M]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (255:116): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  13.7M|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  616|  13.7M|                     addr.ToStringAddrPort(), (mapped_as ? strprintf(" mapped to AS%i", mapped_as) : ""), nUBucket, nUBucketPos);
  617|  13.7M|        } else {
  618|   947k|            if (pinfo->nRefCount == 0) {
  ------------------
  |  Branch (618:17): [True: 931k, False: 16.6k]
  ------------------
  619|   931k|                Delete(nId);
  620|   931k|            }
  621|   947k|        }
  622|  14.7M|    }
  623|  14.7M|    return fInsert;
  624|  15.9M|}
_ZN11AddrManImpl5Good_ERK8CServicebNSt3__16chrono10time_pointI9NodeClockNS4_8durationIxNS3_5ratioILl1ELl1EEEEEEE:
  627|  6.93M|{
  628|  6.93M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  6.93M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
  629|       |
  630|  6.93M|    nid_type nId;
  631|       |
  632|  6.93M|    m_last_good = time;
  633|       |
  634|  6.93M|    AddrInfo* pinfo = Find(addr, &nId);
  635|       |
  636|       |    // if not found, bail out
  637|  6.93M|    if (!pinfo) return false;
  ------------------
  |  Branch (637:9): [True: 725k, False: 6.21M]
  ------------------
  638|       |
  639|  6.21M|    AddrInfo& info = *pinfo;
  640|       |
  641|       |    // update info
  642|  6.21M|    info.m_last_success = time;
  643|  6.21M|    info.m_last_try = time;
  644|  6.21M|    info.nAttempts = 0;
  645|       |    // nTime is not updated here, to avoid leaking information about
  646|       |    // currently-connected peers.
  647|       |
  648|       |    // if it is already in the tried set, don't do anything else
  649|  6.21M|    if (info.fInTried) return false;
  ------------------
  |  Branch (649:9): [True: 157k, False: 6.05M]
  ------------------
  650|       |
  651|       |    // if it is not in new, something bad happened
  652|  6.05M|    if (!Assume(info.nRefCount > 0)) return false;
  ------------------
  |  |   97|  6.05M|#define Assume(val) inline_assertion_check<false>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
  |  Branch (652:9): [True: 0, False: 6.05M]
  ------------------
  653|       |
  654|       |
  655|       |    // which tried bucket to move the entry to
  656|  6.05M|    int tried_bucket = info.GetTriedBucket(nKey, m_netgroupman);
  657|  6.05M|    int tried_bucket_pos = info.GetBucketPosition(nKey, false, tried_bucket);
  658|       |
  659|       |    // Will moving this address into tried evict another entry?
  660|  6.05M|    if (test_before_evict && (vvTried[tried_bucket][tried_bucket_pos] != -1)) {
  ------------------
  |  Branch (660:9): [True: 6.05M, False: 0]
  |  Branch (660:30): [True: 1.47M, False: 4.57M]
  ------------------
  661|  1.47M|        if (m_tried_collisions.size() < ADDRMAN_SET_TRIED_COLLISION_SIZE) {
  ------------------
  |  Branch (661:13): [True: 13.3k, False: 1.46M]
  ------------------
  662|  13.3k|            m_tried_collisions.insert(nId);
  663|  13.3k|        }
  664|       |        // Output the entry we'd be colliding with, for debugging purposes
  665|  1.47M|        auto colliding_entry = mapInfo.find(vvTried[tried_bucket][tried_bucket_pos]);
  666|  1.47M|        LogDebug(BCLog::ADDRMAN, "Collision with %s while attempting to move %s to tried table. Collisions=%d\n",
  ------------------
  |  |  280|  1.47M|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  1.47M|    do {                                                  \
  |  |  |  |  274|  1.47M|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 1.47M]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (255:116): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  1.47M|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  667|  1.47M|                 colliding_entry != mapInfo.end() ? colliding_entry->second.ToStringAddrPort() : "",
  668|  1.47M|                 addr.ToStringAddrPort(),
  669|  1.47M|                 m_tried_collisions.size());
  670|  1.47M|        return false;
  671|  4.57M|    } else {
  672|       |        // move nId to the tried tables
  673|  4.57M|        MakeTried(info, nId);
  674|  4.57M|        const auto mapped_as{m_netgroupman.GetMappedAS(addr)};
  675|  4.57M|        LogDebug(BCLog::ADDRMAN, "Moved %s%s to tried[%i][%i]\n",
  ------------------
  |  |  280|  4.57M|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  4.57M|    do {                                                  \
  |  |  |  |  274|  4.57M|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 4.57M]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (255:116): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  4.57M|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  676|  4.57M|                 addr.ToStringAddrPort(), (mapped_as ? strprintf(" mapped to AS%i", mapped_as) : ""), tried_bucket, tried_bucket_pos);
  677|  4.57M|        return true;
  678|  4.57M|    }
  679|  6.05M|}
_ZN11AddrManImpl4Add_ERKNSt3__16vectorI8CAddressNS0_9allocatorIS2_EEEERK8CNetAddrNS0_6chrono8durationIxNS0_5ratioILl1ELl1EEEEE:
  682|  16.0M|{
  683|  16.0M|    int added{0};
  684|  32.1M|    for (std::vector<CAddress>::const_iterator it = vAddr.begin(); it != vAddr.end(); it++) {
  ------------------
  |  Branch (684:68): [True: 16.0M, False: 16.0M]
  ------------------
  685|  16.0M|        added += AddSingle(*it, source, time_penalty) ? 1 : 0;
  ------------------
  |  Branch (685:18): [True: 13.7M, False: 2.30M]
  ------------------
  686|  16.0M|    }
  687|  16.0M|    if (added > 0) {
  ------------------
  |  Branch (687:9): [True: 13.7M, False: 2.30M]
  ------------------
  688|  13.7M|        LogDebug(BCLog::ADDRMAN, "Added %i addresses (of %i) from %s: %i tried, %i new\n", added, vAddr.size(), source.ToStringAddr(), nTried, nNew);
  ------------------
  |  |  280|  13.7M|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  13.7M|    do {                                                  \
  |  |  |  |  274|  13.7M|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 13.7M]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  13.7M|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  689|  13.7M|    }
  690|  16.0M|    return added > 0;
  691|  16.0M|}
_ZNK11AddrManImpl5Size_ENSt3__18optionalI7NetworkEENS1_IbEE:
 1027|  10.8M|{
 1028|  10.8M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  10.8M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
 1029|       |
 1030|  10.8M|    if (!net.has_value()) {
  ------------------
  |  Branch (1030:9): [True: 10.8M, False: 0]
  ------------------
 1031|  10.8M|        if (in_new.has_value()) {
  ------------------
  |  Branch (1031:13): [True: 0, False: 10.8M]
  ------------------
 1032|      0|            return *in_new ? nNew : nTried;
  ------------------
  |  Branch (1032:20): [True: 0, False: 0]
  ------------------
 1033|  10.8M|        } else {
 1034|  10.8M|            return vRandom.size();
 1035|  10.8M|        }
 1036|  10.8M|    }
 1037|      0|    if (auto it = m_network_counts.find(*net); it != m_network_counts.end()) {
  ------------------
  |  Branch (1037:48): [True: 0, False: 0]
  ------------------
 1038|      0|        auto net_count = it->second;
 1039|      0|        if (in_new.has_value()) {
  ------------------
  |  Branch (1039:13): [True: 0, False: 0]
  ------------------
 1040|      0|            return *in_new ? net_count.n_new : net_count.n_tried;
  ------------------
  |  Branch (1040:20): [True: 0, False: 0]
  ------------------
 1041|      0|        } else {
 1042|      0|            return net_count.n_new + net_count.n_tried;
 1043|      0|        }
 1044|      0|    }
 1045|      0|    return 0;
 1046|      0|}
_ZNK11AddrManImpl5CheckEv:
 1049|  67.6M|{
 1050|  67.6M|    AssertLockHeld(cs);
  ------------------
  |  |  142|  67.6M|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
 1051|       |
 1052|       |    // Run consistency checks 1 in m_consistency_check_ratio times if enabled
 1053|  67.6M|    if (m_consistency_check_ratio == 0) return;
  ------------------
  |  Branch (1053:9): [True: 67.6M, False: 0]
  ------------------
 1054|      0|    if (insecure_rand.randrange(m_consistency_check_ratio) >= 1) return;
  ------------------
  |  Branch (1054:9): [True: 0, False: 0]
  ------------------
 1055|       |
 1056|      0|    const int err{CheckAddrman()};
 1057|      0|    if (err) {
  ------------------
  |  Branch (1057:9): [True: 0, False: 0]
  ------------------
 1058|      0|        LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
  ------------------
  |  |  266|      0|#define LogPrintf(...) LogInfo(__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  261|      0|#define LogInfo(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Info, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1059|      0|        assert(false);
 1060|      0|    }
 1061|      0|}
_ZNK11AddrManImpl12CheckAddrmanEv:
 1064|  2.49k|{
 1065|  2.49k|    AssertLockHeld(cs);
  ------------------
  |  |  142|  2.49k|#define AssertLockHeld(cs) AssertLockHeldInternal(#cs, __FILE__, __LINE__, &cs)
  ------------------
 1066|       |
 1067|  2.49k|    LOG_TIME_MILLIS_WITH_CATEGORY_MSG_ONCE(
  ------------------
  |  |  106|  2.49k|    BCLog::Timer<std::chrono::milliseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category, /* msg_on_completion=*/false)
  |  |  ------------------
  |  |  |  |   11|  2.49k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  2.49k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  2.49k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1068|  2.49k|        strprintf("new %i, tried %i, total %u", nNew, nTried, vRandom.size()), BCLog::ADDRMAN);
 1069|       |
 1070|  2.49k|    std::unordered_set<nid_type> setTried;
 1071|  2.49k|    std::unordered_map<nid_type, int> mapNew;
 1072|  2.49k|    std::unordered_map<Network, NewTriedCount> local_counts;
 1073|       |
 1074|  2.49k|    if (vRandom.size() != (size_t)(nTried + nNew))
  ------------------
  |  Branch (1074:9): [True: 0, False: 2.49k]
  ------------------
 1075|      0|        return -7;
 1076|       |
 1077|  11.5M|    for (const auto& entry : mapInfo) {
  ------------------
  |  Branch (1077:28): [True: 11.5M, False: 2.49k]
  ------------------
 1078|  11.5M|        nid_type n = entry.first;
 1079|  11.5M|        const AddrInfo& info = entry.second;
 1080|  11.5M|        if (info.fInTried) {
  ------------------
  |  Branch (1080:13): [True: 4.57M, False: 6.98M]
  ------------------
 1081|  4.57M|            if (!TicksSinceEpoch<std::chrono::seconds>(info.m_last_success)) {
  ------------------
  |  Branch (1081:17): [True: 0, False: 4.57M]
  ------------------
 1082|      0|                return -1;
 1083|      0|            }
 1084|  4.57M|            if (info.nRefCount)
  ------------------
  |  Branch (1084:17): [True: 0, False: 4.57M]
  ------------------
 1085|      0|                return -2;
 1086|  4.57M|            setTried.insert(n);
 1087|  4.57M|            local_counts[info.GetNetwork()].n_tried++;
 1088|  6.98M|        } else {
 1089|  6.98M|            if (info.nRefCount < 0 || info.nRefCount > ADDRMAN_NEW_BUCKETS_PER_ADDRESS)
  ------------------
  |  Branch (1089:17): [True: 0, False: 6.98M]
  |  Branch (1089:39): [True: 0, False: 6.98M]
  ------------------
 1090|      0|                return -3;
 1091|  6.98M|            if (!info.nRefCount)
  ------------------
  |  Branch (1091:17): [True: 0, False: 6.98M]
  ------------------
 1092|      0|                return -4;
 1093|  6.98M|            mapNew[n] = info.nRefCount;
 1094|  6.98M|            local_counts[info.GetNetwork()].n_new++;
 1095|  6.98M|        }
 1096|  11.5M|        const auto it{mapAddr.find(info)};
 1097|  11.5M|        if (it == mapAddr.end() || it->second != n) {
  ------------------
  |  Branch (1097:13): [True: 0, False: 11.5M]
  |  Branch (1097:13): [True: 0, False: 11.5M]
  |  Branch (1097:36): [True: 0, False: 11.5M]
  ------------------
 1098|      0|            return -5;
 1099|      0|        }
 1100|  11.5M|        if (info.nRandomPos < 0 || (size_t)info.nRandomPos >= vRandom.size() || vRandom[info.nRandomPos] != n)
  ------------------
  |  Branch (1100:13): [True: 0, False: 11.5M]
  |  Branch (1100:36): [True: 0, False: 11.5M]
  |  Branch (1100:81): [True: 0, False: 11.5M]
  ------------------
 1101|      0|            return -14;
 1102|  11.5M|        if (info.m_last_try < NodeSeconds{0s}) {
  ------------------
  |  Branch (1102:13): [True: 0, False: 11.5M]
  ------------------
 1103|      0|            return -6;
 1104|      0|        }
 1105|  11.5M|        if (info.m_last_success < NodeSeconds{0s}) {
  ------------------
  |  Branch (1105:13): [True: 0, False: 11.5M]
  ------------------
 1106|      0|            return -8;
 1107|      0|        }
 1108|  11.5M|    }
 1109|       |
 1110|  2.49k|    if (setTried.size() != (size_t)nTried)
  ------------------
  |  Branch (1110:9): [True: 0, False: 2.49k]
  ------------------
 1111|      0|        return -9;
 1112|  2.49k|    if (mapNew.size() != (size_t)nNew)
  ------------------
  |  Branch (1112:9): [True: 0, False: 2.49k]
  ------------------
 1113|      0|        return -10;
 1114|       |
 1115|   642k|    for (int n = 0; n < ADDRMAN_TRIED_BUCKET_COUNT; n++) {
  ------------------
  |  Branch (1115:21): [True: 639k, False: 2.49k]
  ------------------
 1116|  41.5M|        for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
  ------------------
  |  Branch (1116:25): [True: 40.9M, False: 639k]
  ------------------
 1117|  40.9M|            if (vvTried[n][i] != -1) {
  ------------------
  |  Branch (1117:17): [True: 4.57M, False: 36.3M]
  ------------------
 1118|  4.57M|                if (!setTried.count(vvTried[n][i]))
  ------------------
  |  Branch (1118:21): [True: 0, False: 4.57M]
  ------------------
 1119|      0|                    return -11;
 1120|  4.57M|                const auto it{mapInfo.find(vvTried[n][i])};
 1121|  4.57M|                if (it == mapInfo.end() || it->second.GetTriedBucket(nKey, m_netgroupman) != n) {
  ------------------
  |  Branch (1121:21): [True: 0, False: 4.57M]
  |  Branch (1121:21): [True: 0, False: 4.57M]
  |  Branch (1121:44): [True: 0, False: 4.57M]
  ------------------
 1122|      0|                    return -17;
 1123|      0|                }
 1124|  4.57M|                if (it->second.GetBucketPosition(nKey, false, n) != i) {
  ------------------
  |  Branch (1124:21): [True: 0, False: 4.57M]
  ------------------
 1125|      0|                    return -18;
 1126|      0|                }
 1127|  4.57M|                setTried.erase(vvTried[n][i]);
 1128|  4.57M|            }
 1129|  40.9M|        }
 1130|   639k|    }
 1131|       |
 1132|  2.56M|    for (int n = 0; n < ADDRMAN_NEW_BUCKET_COUNT; n++) {
  ------------------
  |  Branch (1132:21): [True: 2.55M, False: 2.49k]
  ------------------
 1133|   166M|        for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
  ------------------
  |  Branch (1133:25): [True: 163M, False: 2.55M]
  ------------------
 1134|   163M|            if (vvNew[n][i] != -1) {
  ------------------
  |  Branch (1134:17): [True: 7.26M, False: 156M]
  ------------------
 1135|  7.26M|                if (!mapNew.count(vvNew[n][i]))
  ------------------
  |  Branch (1135:21): [True: 0, False: 7.26M]
  ------------------
 1136|      0|                    return -12;
 1137|  7.26M|                const auto it{mapInfo.find(vvNew[n][i])};
 1138|  7.26M|                if (it == mapInfo.end() || it->second.GetBucketPosition(nKey, true, n) != i) {
  ------------------
  |  Branch (1138:21): [True: 0, False: 7.26M]
  |  Branch (1138:21): [True: 0, False: 7.26M]
  |  Branch (1138:44): [True: 0, False: 7.26M]
  ------------------
 1139|      0|                    return -19;
 1140|      0|                }
 1141|  7.26M|                if (--mapNew[vvNew[n][i]] == 0)
  ------------------
  |  Branch (1141:21): [True: 6.98M, False: 280k]
  ------------------
 1142|  6.98M|                    mapNew.erase(vvNew[n][i]);
 1143|  7.26M|            }
 1144|   163M|        }
 1145|  2.55M|    }
 1146|       |
 1147|  2.49k|    if (setTried.size())
  ------------------
  |  Branch (1147:9): [True: 0, False: 2.49k]
  ------------------
 1148|      0|        return -13;
 1149|  2.49k|    if (mapNew.size())
  ------------------
  |  Branch (1149:9): [True: 0, False: 2.49k]
  ------------------
 1150|      0|        return -15;
 1151|  2.49k|    if (nKey.IsNull())
  ------------------
  |  Branch (1151:9): [True: 0, False: 2.49k]
  ------------------
 1152|      0|        return -16;
 1153|       |
 1154|       |    // It's possible that m_network_counts may have all-zero entries that local_counts
 1155|       |    // doesn't have if addrs from a network were being added and then removed again in the past.
 1156|  2.49k|    if (m_network_counts.size() < local_counts.size()) {
  ------------------
  |  Branch (1156:9): [True: 0, False: 2.49k]
  ------------------
 1157|      0|        return -20;
 1158|      0|    }
 1159|  12.3k|    for (const auto& [net, count] : m_network_counts) {
  ------------------
  |  Branch (1159:35): [True: 12.3k, False: 2.49k]
  ------------------
 1160|  12.3k|        if (local_counts[net].n_new != count.n_new || local_counts[net].n_tried != count.n_tried) {
  ------------------
  |  Branch (1160:13): [True: 0, False: 12.3k]
  |  Branch (1160:55): [True: 0, False: 12.3k]
  ------------------
 1161|      0|            return -21;
 1162|      0|        }
 1163|  12.3k|    }
 1164|       |
 1165|  2.49k|    return 0;
 1166|  2.49k|}
_ZNK11AddrManImpl4SizeENSt3__18optionalI7NetworkEENS1_IbEE:
 1169|  10.8M|{
 1170|  10.8M|    LOCK(cs);
  ------------------
  |  |  257|  10.8M|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  10.8M|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  10.8M|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  10.8M|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1171|  10.8M|    Check();
 1172|  10.8M|    auto ret = Size_(net, in_new);
 1173|  10.8M|    Check();
 1174|  10.8M|    return ret;
 1175|  10.8M|}
_ZN11AddrManImpl3AddERKNSt3__16vectorI8CAddressNS0_9allocatorIS2_EEEERK8CNetAddrNS0_6chrono8durationIxNS0_5ratioILl1ELl1EEEEE:
 1178|  16.0M|{
 1179|  16.0M|    LOCK(cs);
  ------------------
  |  |  257|  16.0M|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  16.0M|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  16.0M|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  16.0M|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1180|  16.0M|    Check();
 1181|  16.0M|    auto ret = Add_(vAddr, source, time_penalty);
 1182|  16.0M|    Check();
 1183|  16.0M|    return ret;
 1184|  16.0M|}
_ZN11AddrManImpl4GoodERK8CServiceNSt3__16chrono10time_pointI9NodeClockNS4_8durationIxNS3_5ratioILl1ELl1EEEEEEE:
 1187|  6.93M|{
 1188|  6.93M|    LOCK(cs);
  ------------------
  |  |  257|  6.93M|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  6.93M|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  6.93M|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  6.93M|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1189|  6.93M|    Check();
 1190|  6.93M|    auto ret = Good_(addr, /*test_before_evict=*/true, time);
 1191|  6.93M|    Check();
 1192|  6.93M|    return ret;
 1193|  6.93M|}
_ZN7AddrManC2ERK15NetGroupManagerbi:
 1273|  4.99k|    : m_impl(std::make_unique<AddrManImpl>(netgroupman, deterministic, consistency_check_ratio)) {}
_ZN7AddrManD2Ev:
 1275|  4.99k|AddrMan::~AddrMan() = default;
_ZNK7AddrMan9SerializeI10DataStreamEEvRT_:
 1279|  2.49k|{
 1280|  2.49k|    m_impl->Serialize<Stream>(s_);
 1281|  2.49k|}
_ZN7AddrMan11UnserializeI10DataStreamEEvRT_:
 1285|  2.49k|{
 1286|  2.49k|    m_impl->Unserialize<Stream>(s_);
 1287|  2.49k|}
_ZNK7AddrMan4SizeENSt3__18optionalI7NetworkEENS1_IbEE:
 1298|  10.8M|{
 1299|  10.8M|    return m_impl->Size(net, in_new);
 1300|  10.8M|}
_ZN7AddrMan3AddERKNSt3__16vectorI8CAddressNS0_9allocatorIS2_EEEERK8CNetAddrNS0_6chrono8durationIxNS0_5ratioILl1ELl1EEEEE:
 1303|  16.0M|{
 1304|  16.0M|    return m_impl->Add(vAddr, source, time_penalty);
 1305|  16.0M|}
_ZN7AddrMan4GoodERK8CServiceNSt3__16chrono10time_pointI9NodeClockNS4_8durationIxNS3_5ratioILl1ELl1EEEEEEE:
 1308|  6.93M|{
 1309|  6.93M|    return m_impl->Good(addr, time);
 1310|  6.93M|}
_ZNK11AddrManImpl9SerializeI10DataStreamEEvRT_:
  134|  2.49k|{
  135|  2.49k|    LOCK(cs);
  ------------------
  |  |  257|  2.49k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  2.49k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  2.49k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  2.49k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|       |
  137|       |    /**
  138|       |     * Serialized format.
  139|       |     * * format version byte (@see `Format`)
  140|       |     * * lowest compatible format version byte. This is used to help old software decide
  141|       |     *   whether to parse the file. For example:
  142|       |     *   * Bitcoin Core version N knows how to parse up to format=3. If a new format=4 is
  143|       |     *     introduced in version N+1 that is compatible with format=3 and it is known that
  144|       |     *     version N will be able to parse it, then version N+1 will write
  145|       |     *     (format=4, lowest_compatible=3) in the first two bytes of the file, and so
  146|       |     *     version N will still try to parse it.
  147|       |     *   * Bitcoin Core version N+2 introduces a new incompatible format=5. It will write
  148|       |     *     (format=5, lowest_compatible=5) and so any versions that do not know how to parse
  149|       |     *     format=5 will not try to read the file.
  150|       |     * * nKey
  151|       |     * * nNew
  152|       |     * * nTried
  153|       |     * * number of "new" buckets XOR 2**30
  154|       |     * * all new addresses (total count: nNew)
  155|       |     * * all tried addresses (total count: nTried)
  156|       |     * * for each new bucket:
  157|       |     *   * number of elements
  158|       |     *   * for each element: index in the serialized "all new addresses"
  159|       |     * * asmap checksum
  160|       |     *
  161|       |     * 2**30 is xorred with the number of buckets to make addrman deserializer v0 detect it
  162|       |     * as incompatible. This is necessary because it did not check the version number on
  163|       |     * deserialization.
  164|       |     *
  165|       |     * vvNew, vvTried, mapInfo, mapAddr and vRandom are never encoded explicitly;
  166|       |     * they are instead reconstructed from the other information.
  167|       |     *
  168|       |     * This format is more complex, but significantly smaller (at most 1.5 MiB), and supports
  169|       |     * changes to the ADDRMAN_ parameters without breaking the on-disk structure.
  170|       |     *
  171|       |     * We don't use SERIALIZE_METHODS since the serialization and deserialization code has
  172|       |     * very little in common.
  173|       |     */
  174|       |
  175|       |    // Always serialize in the latest version (FILE_FORMAT).
  176|  2.49k|    ParamsStream s{s_, CAddress::V2_DISK};
  177|       |
  178|  2.49k|    s << static_cast<uint8_t>(FILE_FORMAT);
  179|       |
  180|       |    // Increment `lowest_compatible` iff a newly introduced format is incompatible with
  181|       |    // the previous one.
  182|  2.49k|    static constexpr uint8_t lowest_compatible = Format::V4_MULTIPORT;
  183|  2.49k|    s << static_cast<uint8_t>(INCOMPATIBILITY_BASE + lowest_compatible);
  184|       |
  185|  2.49k|    s << nKey;
  186|  2.49k|    s << nNew;
  187|  2.49k|    s << nTried;
  188|       |
  189|  2.49k|    int nUBuckets = ADDRMAN_NEW_BUCKET_COUNT ^ (1 << 30);
  190|  2.49k|    s << nUBuckets;
  191|  2.49k|    std::unordered_map<nid_type, int> mapUnkIds;
  192|  2.49k|    int nIds = 0;
  193|  11.5M|    for (const auto& entry : mapInfo) {
  ------------------
  |  Branch (193:28): [True: 11.5M, False: 2.49k]
  ------------------
  194|  11.5M|        mapUnkIds[entry.first] = nIds;
  195|  11.5M|        const AddrInfo& info = entry.second;
  196|  11.5M|        if (info.nRefCount) {
  ------------------
  |  Branch (196:13): [True: 6.98M, False: 4.57M]
  ------------------
  197|  6.98M|            assert(nIds != nNew); // this means nNew was wrong, oh ow
  198|  6.98M|            s << info;
  199|  6.98M|            nIds++;
  200|  6.98M|        }
  201|  11.5M|    }
  202|  2.49k|    nIds = 0;
  203|  11.5M|    for (const auto& entry : mapInfo) {
  ------------------
  |  Branch (203:28): [True: 11.5M, False: 2.49k]
  ------------------
  204|  11.5M|        const AddrInfo& info = entry.second;
  205|  11.5M|        if (info.fInTried) {
  ------------------
  |  Branch (205:13): [True: 4.57M, False: 6.98M]
  ------------------
  206|  4.57M|            assert(nIds != nTried); // this means nTried was wrong, oh ow
  207|  4.57M|            s << info;
  208|  4.57M|            nIds++;
  209|  4.57M|        }
  210|  11.5M|    }
  211|  2.56M|    for (int bucket = 0; bucket < ADDRMAN_NEW_BUCKET_COUNT; bucket++) {
  ------------------
  |  Branch (211:26): [True: 2.55M, False: 2.49k]
  ------------------
  212|  2.55M|        int nSize = 0;
  213|   166M|        for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
  ------------------
  |  Branch (213:25): [True: 163M, False: 2.55M]
  ------------------
  214|   163M|            if (vvNew[bucket][i] != -1)
  ------------------
  |  Branch (214:17): [True: 7.26M, False: 156M]
  ------------------
  215|  7.26M|                nSize++;
  216|   163M|        }
  217|  2.55M|        s << nSize;
  218|   166M|        for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
  ------------------
  |  Branch (218:25): [True: 163M, False: 2.55M]
  ------------------
  219|   163M|            if (vvNew[bucket][i] != -1) {
  ------------------
  |  Branch (219:17): [True: 7.26M, False: 156M]
  ------------------
  220|  7.26M|                int nIndex = mapUnkIds[vvNew[bucket][i]];
  221|  7.26M|                s << nIndex;
  222|  7.26M|            }
  223|   163M|        }
  224|  2.55M|    }
  225|       |    // Store asmap checksum after bucket entries so that it
  226|       |    // can be ignored by older clients for backward compatibility.
  227|  2.49k|    s << m_netgroupman.GetAsmapChecksum();
  228|  2.49k|}
_ZN11AddrManImpl11UnserializeI10DataStreamEEvRT_:
  232|  2.49k|{
  233|  2.49k|    LOCK(cs);
  ------------------
  |  |  257|  2.49k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  2.49k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  2.49k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  2.49k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  234|       |
  235|  2.49k|    assert(vRandom.empty());
  236|       |
  237|  2.49k|    Format format;
  238|  2.49k|    s_ >> Using<CustomUintFormatter<1>>(format);
  239|       |
  240|  2.49k|    const auto ser_params = (format >= Format::V3_BIP155 ? CAddress::V2_DISK : CAddress::V1_DISK);
  ------------------
  |  Branch (240:30): [True: 2.49k, False: 0]
  ------------------
  241|  2.49k|    ParamsStream s{s_, ser_params};
  242|       |
  243|  2.49k|    uint8_t compat;
  244|  2.49k|    s >> compat;
  245|  2.49k|    if (compat < INCOMPATIBILITY_BASE) {
  ------------------
  |  Branch (245:9): [True: 0, False: 2.49k]
  ------------------
  246|      0|        throw std::ios_base::failure(strprintf(
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  247|      0|            "Corrupted addrman database: The compat value (%u) "
  248|      0|            "is lower than the expected minimum value %u.",
  249|      0|            compat, INCOMPATIBILITY_BASE));
  250|      0|    }
  251|  2.49k|    const uint8_t lowest_compatible = compat - INCOMPATIBILITY_BASE;
  252|  2.49k|    if (lowest_compatible > FILE_FORMAT) {
  ------------------
  |  Branch (252:9): [True: 0, False: 2.49k]
  ------------------
  253|      0|        throw InvalidAddrManVersionError(strprintf(
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  254|      0|            "Unsupported format of addrman database: %u. It is compatible with formats >=%u, "
  255|      0|            "but the maximum supported by this version of %s is %u.",
  256|      0|            uint8_t{format}, lowest_compatible, CLIENT_NAME, uint8_t{FILE_FORMAT}));
  ------------------
  |  |  127|      0|#define CLIENT_NAME "Bitcoin Core"
  ------------------
  257|      0|    }
  258|       |
  259|  2.49k|    s >> nKey;
  260|  2.49k|    s >> nNew;
  261|  2.49k|    s >> nTried;
  262|  2.49k|    int nUBuckets = 0;
  263|  2.49k|    s >> nUBuckets;
  264|  2.49k|    if (format >= Format::V1_DETERMINISTIC) {
  ------------------
  |  Branch (264:9): [True: 2.49k, False: 0]
  ------------------
  265|  2.49k|        nUBuckets ^= (1 << 30);
  266|  2.49k|    }
  267|       |
  268|  2.49k|    if (nNew > ADDRMAN_NEW_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE || nNew < 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 2.49k]
  |  Branch (268:66): [True: 0, False: 2.49k]
  ------------------
  269|      0|        throw std::ios_base::failure(
  270|      0|                strprintf("Corrupt AddrMan serialization: nNew=%d, should be in [0, %d]",
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  271|      0|                    nNew,
  272|      0|                    ADDRMAN_NEW_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE));
  273|      0|    }
  274|       |
  275|  2.49k|    if (nTried > ADDRMAN_TRIED_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE || nTried < 0) {
  ------------------
  |  Branch (275:9): [True: 0, False: 2.49k]
  |  Branch (275:70): [True: 0, False: 2.49k]
  ------------------
  276|      0|        throw std::ios_base::failure(
  277|      0|                strprintf("Corrupt AddrMan serialization: nTried=%d, should be in [0, %d]",
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  278|      0|                    nTried,
  279|      0|                    ADDRMAN_TRIED_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE));
  280|      0|    }
  281|       |
  282|       |    // Deserialize entries from the new table.
  283|  6.98M|    for (int n = 0; n < nNew; n++) {
  ------------------
  |  Branch (283:21): [True: 6.98M, False: 2.49k]
  ------------------
  284|  6.98M|        AddrInfo& info = mapInfo[n];
  285|  6.98M|        s >> info;
  286|  6.98M|        mapAddr[info] = n;
  287|  6.98M|        info.nRandomPos = vRandom.size();
  288|  6.98M|        vRandom.push_back(n);
  289|  6.98M|        m_network_counts[info.GetNetwork()].n_new++;
  290|  6.98M|    }
  291|  2.49k|    nIdCount = nNew;
  292|       |
  293|       |    // Deserialize entries from the tried table.
  294|  2.49k|    int nLost = 0;
  295|  4.58M|    for (int n = 0; n < nTried; n++) {
  ------------------
  |  Branch (295:21): [True: 4.57M, False: 2.49k]
  ------------------
  296|  4.57M|        AddrInfo info;
  297|  4.57M|        s >> info;
  298|  4.57M|        int nKBucket = info.GetTriedBucket(nKey, m_netgroupman);
  299|  4.57M|        int nKBucketPos = info.GetBucketPosition(nKey, false, nKBucket);
  300|  4.57M|        if (info.IsValid()
  ------------------
  |  Branch (300:13): [True: 4.57M, False: 0]
  ------------------
  301|  4.57M|                && vvTried[nKBucket][nKBucketPos] == -1) {
  ------------------
  |  Branch (301:20): [True: 4.57M, False: 0]
  ------------------
  302|  4.57M|            info.nRandomPos = vRandom.size();
  303|  4.57M|            info.fInTried = true;
  304|  4.57M|            vRandom.push_back(nIdCount);
  305|  4.57M|            mapInfo[nIdCount] = info;
  306|  4.57M|            mapAddr[info] = nIdCount;
  307|  4.57M|            vvTried[nKBucket][nKBucketPos] = nIdCount;
  308|  4.57M|            nIdCount++;
  309|  4.57M|            m_network_counts[info.GetNetwork()].n_tried++;
  310|  4.57M|        } else {
  311|      0|            nLost++;
  312|      0|        }
  313|  4.57M|    }
  314|  2.49k|    nTried -= nLost;
  315|       |
  316|       |    // Store positions in the new table buckets to apply later (if possible).
  317|       |    // An entry may appear in up to ADDRMAN_NEW_BUCKETS_PER_ADDRESS buckets,
  318|       |    // so we store all bucket-entry_index pairs to iterate through later.
  319|  2.49k|    std::vector<std::pair<int, int>> bucket_entries;
  320|       |
  321|  2.56M|    for (int bucket = 0; bucket < nUBuckets; ++bucket) {
  ------------------
  |  Branch (321:26): [True: 2.55M, False: 2.49k]
  ------------------
  322|  2.55M|        int num_entries{0};
  323|  2.55M|        s >> num_entries;
  324|  9.82M|        for (int n = 0; n < num_entries; ++n) {
  ------------------
  |  Branch (324:25): [True: 7.26M, False: 2.55M]
  ------------------
  325|  7.26M|            int entry_index{0};
  326|  7.26M|            s >> entry_index;
  327|  7.26M|            if (entry_index >= 0 && entry_index < nNew) {
  ------------------
  |  Branch (327:17): [True: 7.26M, False: 0]
  |  Branch (327:37): [True: 7.26M, False: 0]
  ------------------
  328|  7.26M|                bucket_entries.emplace_back(bucket, entry_index);
  329|  7.26M|            }
  330|  7.26M|        }
  331|  2.55M|    }
  332|       |
  333|       |    // If the bucket count and asmap checksum haven't changed, then attempt
  334|       |    // to restore the entries to the buckets/positions they were in before
  335|       |    // serialization.
  336|  2.49k|    uint256 supplied_asmap_checksum{m_netgroupman.GetAsmapChecksum()};
  337|  2.49k|    uint256 serialized_asmap_checksum;
  338|  2.49k|    if (format >= Format::V2_ASMAP) {
  ------------------
  |  Branch (338:9): [True: 2.49k, False: 0]
  ------------------
  339|  2.49k|        s >> serialized_asmap_checksum;
  340|  2.49k|    }
  341|  2.49k|    const bool restore_bucketing{nUBuckets == ADDRMAN_NEW_BUCKET_COUNT &&
  ------------------
  |  Branch (341:34): [True: 2.49k, False: 0]
  ------------------
  342|  2.49k|        serialized_asmap_checksum == supplied_asmap_checksum};
  ------------------
  |  Branch (342:9): [True: 2.49k, False: 0]
  ------------------
  343|       |
  344|  2.49k|    if (!restore_bucketing) {
  ------------------
  |  Branch (344:9): [True: 0, False: 2.49k]
  ------------------
  345|      0|        LogDebug(BCLog::ADDRMAN, "Bucketing method was updated, re-bucketing addrman entries from disk\n");
  ------------------
  |  |  280|      0|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|      0|    do {                                                  \
  |  |  |  |  274|      0|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  346|      0|    }
  347|       |
  348|  7.26M|    for (auto bucket_entry : bucket_entries) {
  ------------------
  |  Branch (348:28): [True: 7.26M, False: 2.49k]
  ------------------
  349|  7.26M|        int bucket{bucket_entry.first};
  350|  7.26M|        const int entry_index{bucket_entry.second};
  351|  7.26M|        AddrInfo& info = mapInfo[entry_index];
  352|       |
  353|       |        // Don't store the entry in the new bucket if it's not a valid address for our addrman
  354|  7.26M|        if (!info.IsValid()) continue;
  ------------------
  |  Branch (354:13): [True: 0, False: 7.26M]
  ------------------
  355|       |
  356|       |        // The entry shouldn't appear in more than
  357|       |        // ADDRMAN_NEW_BUCKETS_PER_ADDRESS. If it has already, just skip
  358|       |        // this bucket_entry.
  359|  7.26M|        if (info.nRefCount >= ADDRMAN_NEW_BUCKETS_PER_ADDRESS) continue;
  ------------------
  |  Branch (359:13): [True: 0, False: 7.26M]
  ------------------
  360|       |
  361|  7.26M|        int bucket_position = info.GetBucketPosition(nKey, true, bucket);
  362|  7.26M|        if (restore_bucketing && vvNew[bucket][bucket_position] == -1) {
  ------------------
  |  Branch (362:13): [True: 7.26M, False: 0]
  |  Branch (362:34): [True: 7.26M, False: 0]
  ------------------
  363|       |            // Bucketing has not changed, using existing bucket positions for the new table
  364|  7.26M|            vvNew[bucket][bucket_position] = entry_index;
  365|  7.26M|            ++info.nRefCount;
  366|  7.26M|        } else {
  367|       |            // In case the new table data cannot be used (bucket count wrong or new asmap),
  368|       |            // try to give them a reference based on their primary source address.
  369|      0|            bucket = info.GetNewBucket(nKey, m_netgroupman);
  370|      0|            bucket_position = info.GetBucketPosition(nKey, true, bucket);
  371|      0|            if (vvNew[bucket][bucket_position] == -1) {
  ------------------
  |  Branch (371:17): [True: 0, False: 0]
  ------------------
  372|      0|                vvNew[bucket][bucket_position] = entry_index;
  373|      0|                ++info.nRefCount;
  374|      0|            }
  375|      0|        }
  376|  7.26M|    }
  377|       |
  378|       |    // Prune new entries with refcount 0 (as a result of collisions or invalid address).
  379|  2.49k|    int nLostUnk = 0;
  380|  11.5M|    for (auto it = mapInfo.cbegin(); it != mapInfo.cend(); ) {
  ------------------
  |  Branch (380:38): [True: 11.5M, False: 2.49k]
  ------------------
  381|  11.5M|        if (it->second.fInTried == false && it->second.nRefCount == 0) {
  ------------------
  |  Branch (381:13): [True: 6.98M, False: 4.57M]
  |  Branch (381:45): [True: 0, False: 6.98M]
  ------------------
  382|      0|            const auto itCopy = it++;
  383|      0|            Delete(itCopy->first);
  384|      0|            ++nLostUnk;
  385|  11.5M|        } else {
  386|  11.5M|            ++it;
  387|  11.5M|        }
  388|  11.5M|    }
  389|  2.49k|    if (nLost + nLostUnk > 0) {
  ------------------
  |  Branch (389:9): [True: 0, False: 2.49k]
  ------------------
  390|      0|        LogDebug(BCLog::ADDRMAN, "addrman lost %i new and %i tried addresses due to collisions or invalid addresses\n", nLostUnk, nLost);
  ------------------
  |  |  280|      0|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|      0|    do {                                                  \
  |  |  |  |  274|      0|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  391|      0|    }
  392|       |
  393|  2.49k|    const int check_code{CheckAddrman()};
  394|  2.49k|    if (check_code != 0) {
  ------------------
  |  Branch (394:9): [True: 0, False: 2.49k]
  ------------------
  395|      0|        throw std::ios_base::failure(strprintf(
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  396|      0|            "Corrupt data. Consistency check failed with code %s",
  397|      0|            check_code));
  398|      0|    }
  399|  2.49k|}

_ZN8AddrInfoC2ERK8CAddressRK8CNetAddr:
   77|  14.2M|    AddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn), source(addrSource)
   78|  14.2M|    {
   79|  14.2M|    }
_ZN8AddrInfoC2Ev:
   81|  30.4M|    AddrInfo() : CAddress(), source()
   82|  30.4M|    {
   83|  30.4M|    }
_ZNK8AddrInfo12GetNewBucketERK7uint256RK15NetGroupManager:
   93|  4.57M|    {
   94|  4.57M|        return GetNewBucket(nKey, source, netgroupman);
   95|  4.57M|    }
_ZN8AddrInfo16SerializationOpsI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEES_17ActionUnserializeEEvRT0_RT_T1_:
   73|  11.5M|    {
   74|  11.5M|        READWRITE(AsBase<CAddress>(obj), obj.source, Using<ChronoFormatter<int64_t>>(obj.m_last_success), obj.nAttempts);
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
   75|  11.5M|    }
_ZN8AddrInfo16SerializationOpsI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEKS_15ActionSerializeEEvRT0_RT_T1_:
   73|  11.5M|    {
   74|  11.5M|        READWRITE(AsBase<CAddress>(obj), obj.source, Using<ChronoFormatter<int64_t>>(obj.m_last_success), obj.nAttempts);
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
   75|  11.5M|    }

_ZN11ArgsManagerD2Ev:
  134|      2|ArgsManager::~ArgsManager() = default;
_ZNK11ArgsManager9GetIntArgERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEl:
  483|  4.99k|{
  484|  4.99k|    return GetIntArg(strArg).value_or(nDefault);
  485|  4.99k|}
_ZNK11ArgsManager9GetIntArgERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  488|  4.99k|{
  489|  4.99k|    const common::SettingsValue value = GetSetting(strArg);
  490|  4.99k|    return SettingToInt(value);
  491|  4.99k|}
_Z12SettingToIntRK8UniValue:
  494|  4.99k|{
  495|  4.99k|    if (value.isNull()) return std::nullopt;
  ------------------
  |  Branch (495:9): [True: 4.99k, False: 0]
  ------------------
  496|      0|    if (value.isFalse()) return 0;
  ------------------
  |  Branch (496:9): [True: 0, False: 0]
  ------------------
  497|      0|    if (value.isTrue()) return 1;
  ------------------
  |  Branch (497:9): [True: 0, False: 0]
  ------------------
  498|      0|    if (value.isNum()) return value.getInt<int64_t>();
  ------------------
  |  Branch (498:9): [True: 0, False: 0]
  ------------------
  499|      0|    return LocaleIndependentAtoi<int64_t>(value.get_str());
  500|      0|}
_ZNK11ArgsManager17UseDefaultSectionERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  821|  4.99k|{
  822|  4.99k|    return m_network == ChainTypeToString(ChainType::MAIN) || m_network_only_args.count(arg) == 0;
  ------------------
  |  Branch (822:12): [True: 0, False: 4.99k]
  |  Branch (822:63): [True: 4.99k, False: 0]
  ------------------
  823|  4.99k|}
_ZNK11ArgsManager10GetSettingERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  826|  4.99k|{
  827|  4.99k|    LOCK(cs_args);
  ------------------
  |  |  257|  4.99k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  4.99k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  4.99k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  4.99k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  828|  4.99k|    return common::GetSetting(
  829|  4.99k|        m_settings, m_network, SettingName(arg), !UseDefaultSection(arg),
  830|  4.99k|        /*ignore_nonpersistent=*/false, /*get_chain_type=*/false);
  831|  4.99k|}
args.cpp:_ZL11SettingNameRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
   67|  4.99k|{
   68|  4.99k|    return arg.size() > 0 && arg[0] == '-' ? arg.substr(1) : arg;
  ------------------
  |  Branch (68:12): [True: 4.99k, False: 0]
  |  Branch (68:30): [True: 4.99k, False: 0]
  ------------------
   69|  4.99k|}

_ZN11ArgsManager9ClearArgsEv:
  362|      2|    void ClearArgs() {
  363|      2|        LOCK(cs_args);
  ------------------
  |  |  257|      2|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|      2|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|      2|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|      2|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  364|      2|        m_available_args.clear();
  365|      2|        m_network_only_args.clear();
  366|      2|    }

_ZN6common10GetSettingERKNS_8SettingsERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_bbb:
  152|  4.99k|{
  153|  4.99k|    SettingsValue result;
  154|  4.99k|    bool done = false; // Done merging any more settings sources.
  155|  4.99k|    MergeSettings(settings, section, name, [&](SettingsSpan span, Source source) {
  156|       |        // Weird behavior preserved for backwards compatibility: Apply negated
  157|       |        // setting even if non-negated setting would be ignored. A negated
  158|       |        // value in the default section is applied to network specific options,
  159|       |        // even though normal non-negated values there would be ignored.
  160|  4.99k|        const bool never_ignore_negated_setting = span.last_negated();
  161|       |
  162|       |        // Weird behavior preserved for backwards compatibility: Take first
  163|       |        // assigned value instead of last. In general, later settings take
  164|       |        // precedence over early settings, but for backwards compatibility in
  165|       |        // the config file the precedence is reversed for all settings except
  166|       |        // chain type settings.
  167|  4.99k|        const bool reverse_precedence =
  168|  4.99k|            (source == Source::CONFIG_FILE_NETWORK_SECTION || source == Source::CONFIG_FILE_DEFAULT_SECTION) &&
  169|  4.99k|            !get_chain_type;
  170|       |
  171|       |        // Weird behavior preserved for backwards compatibility: Negated
  172|       |        // -regtest and -testnet arguments which you would expect to override
  173|       |        // values set in the configuration file are currently accepted but
  174|       |        // silently ignored. It would be better to apply these just like other
  175|       |        // negated values, or at least warn they are ignored.
  176|  4.99k|        const bool skip_negated_command_line = get_chain_type;
  177|       |
  178|  4.99k|        if (done) return;
  179|       |
  180|       |        // Ignore settings in default config section if requested.
  181|  4.99k|        if (ignore_default_section_config && source == Source::CONFIG_FILE_DEFAULT_SECTION &&
  182|  4.99k|            !never_ignore_negated_setting) {
  183|  4.99k|            return;
  184|  4.99k|        }
  185|       |
  186|       |        // Ignore nonpersistent settings if requested.
  187|  4.99k|        if (ignore_nonpersistent && (source == Source::COMMAND_LINE || source == Source::FORCED)) return;
  188|       |
  189|       |        // Skip negated command line settings.
  190|  4.99k|        if (skip_negated_command_line && span.last_negated()) return;
  191|       |
  192|  4.99k|        if (!span.empty()) {
  193|  4.99k|            result = reverse_precedence ? span.begin()[0] : span.end()[-1];
  194|  4.99k|            done = true;
  195|  4.99k|        } else if (span.last_negated()) {
  196|  4.99k|            result = false;
  197|  4.99k|            done = true;
  198|  4.99k|        }
  199|  4.99k|    });
  200|  4.99k|    return result;
  201|  4.99k|}
settings.cpp:_ZN6common12_GLOBAL__N_113MergeSettingsIZNS_10GetSettingERKNS_8SettingsERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEESD_bbbE3$_0EEvS4_SD_SD_OT_:
   42|  4.99k|{
   43|       |    // Merge in the forced settings
   44|  4.99k|    if (auto* value = FindKey(settings.forced_settings, name)) {
  ------------------
  |  Branch (44:15): [True: 0, False: 4.99k]
  ------------------
   45|      0|        fn(SettingsSpan(*value), Source::FORCED);
   46|      0|    }
   47|       |    // Merge in the command-line options
   48|  4.99k|    if (auto* values = FindKey(settings.command_line_options, name)) {
  ------------------
  |  Branch (48:15): [True: 0, False: 4.99k]
  ------------------
   49|      0|        fn(SettingsSpan(*values), Source::COMMAND_LINE);
   50|      0|    }
   51|       |    // Merge in the read-write settings
   52|  4.99k|    if (const SettingsValue* value = FindKey(settings.rw_settings, name)) {
  ------------------
  |  Branch (52:30): [True: 0, False: 4.99k]
  ------------------
   53|      0|        fn(SettingsSpan(*value), Source::RW_SETTINGS);
   54|      0|    }
   55|       |    // Merge in the network-specific section of the config file
   56|  4.99k|    if (!section.empty()) {
  ------------------
  |  Branch (56:9): [True: 4.99k, False: 0]
  ------------------
   57|  4.99k|        if (auto* map = FindKey(settings.ro_config, section)) {
  ------------------
  |  Branch (57:19): [True: 0, False: 4.99k]
  ------------------
   58|      0|            if (auto* values = FindKey(*map, name)) {
  ------------------
  |  Branch (58:23): [True: 0, False: 0]
  ------------------
   59|      0|                fn(SettingsSpan(*values), Source::CONFIG_FILE_NETWORK_SECTION);
   60|      0|            }
   61|      0|        }
   62|  4.99k|    }
   63|       |    // Merge in the default section of the config file
   64|  4.99k|    if (auto* map = FindKey(settings.ro_config, "")) {
  ------------------
  |  Branch (64:15): [True: 0, False: 4.99k]
  ------------------
   65|      0|        if (auto* values = FindKey(*map, name)) {
  ------------------
  |  Branch (65:19): [True: 0, False: 0]
  ------------------
   66|      0|            fn(SettingsSpan(*values), Source::CONFIG_FILE_DEFAULT_SECTION);
   67|      0|        }
   68|      0|    }
   69|  4.99k|}

_ZN6common7FindKeyIRKNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE8UniValueNS1_4lessIS8_EENS6_INS1_4pairIKS8_S9_EEEEEERSD_EEDTadcldtfp_2atfp0_EEOT_OT0_:
  108|  9.99k|{
  109|  9.99k|    auto it = map.find(key);
  110|  9.99k|    return it == map.end() ? nullptr : &it->second;
  ------------------
  |  Branch (110:12): [True: 9.99k, False: 0]
  ------------------
  111|  9.99k|}
_ZN6common7FindKeyIRKNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_6vectorI8UniValueNS6_ISA_EEEENS1_4lessIS8_EENS6_INS1_4pairIKS8_SC_EEEEEERSG_EEDTadcldtfp_2atfp0_EEOT_OT0_:
  108|  4.99k|{
  109|  4.99k|    auto it = map.find(key);
  110|  4.99k|    return it == map.end() ? nullptr : &it->second;
  ------------------
  |  Branch (110:12): [True: 4.99k, False: 0]
  ------------------
  111|  4.99k|}
_ZN6common7FindKeyIRKNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS2_IS8_NS1_6vectorI8UniValueNS6_ISA_EEEENS1_4lessIS8_EENS6_INS1_4pairIKS8_SC_EEEEEESE_NS6_INSF_ISG_SJ_EEEEEERSG_EEDTadcldtfp_2atfp0_EEOT_OT0_:
  108|  4.99k|{
  109|  4.99k|    auto it = map.find(key);
  110|  4.99k|    return it == map.end() ? nullptr : &it->second;
  ------------------
  |  Branch (110:12): [True: 4.99k, False: 0]
  ------------------
  111|  4.99k|}
_ZN6common7FindKeyIRKNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS2_IS8_NS1_6vectorI8UniValueNS6_ISA_EEEENS1_4lessIS8_EENS6_INS1_4pairIKS8_SC_EEEEEESE_NS6_INSF_ISG_SJ_EEEEEERA1_KcEEDTadcldtfp_2atfp0_EEOT_OT0_:
  108|  4.99k|{
  109|  4.99k|    auto it = map.find(key);
  110|  4.99k|    return it == map.end() ? nullptr : &it->second;
  ------------------
  |  Branch (110:12): [True: 4.99k, False: 0]
  ------------------
  111|  4.99k|}

_Z17internal_bswap_32j:
   54|  2.26G|{
   55|  2.26G|#ifdef bitcoin_builtin_bswap32
   56|  2.26G|    return bitcoin_builtin_bswap32(x);
  ------------------
  |  |   24|  2.26G|#      define bitcoin_builtin_bswap32(x) __builtin_bswap32(x)
  ------------------
   57|       |#else
   58|       |    return (((x & 0xff000000U) >> 24) | ((x & 0x00ff0000U) >>  8) |
   59|       |            ((x & 0x0000ff00U) <<  8) | ((x & 0x000000ffU) << 24));
   60|       |#endif
   61|  2.26G|}
_Z17internal_bswap_64m:
   64|   291M|{
   65|   291M|#ifdef bitcoin_builtin_bswap64
   66|   291M|    return bitcoin_builtin_bswap64(x);
  ------------------
  |  |   27|   291M|#      define bitcoin_builtin_bswap64(x) __builtin_bswap64(x)
  ------------------
   67|       |#else
   68|       |     return (((x & 0xff00000000000000ull) >> 56)
   69|       |          | ((x & 0x00ff000000000000ull) >> 40)
   70|       |          | ((x & 0x0000ff0000000000ull) >> 24)
   71|       |          | ((x & 0x000000ff00000000ull) >> 8)
   72|       |          | ((x & 0x00000000ff000000ull) << 8)
   73|       |          | ((x & 0x0000000000ff0000ull) << 24)
   74|       |          | ((x & 0x000000000000ff00ull) << 40)
   75|       |          | ((x & 0x00000000000000ffull) << 56));
   76|       |#endif
   77|   291M|}

_Z16htole16_internalt:
   19|     54|{
   20|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_16(host_16bits);
   21|     54|        else return host_16bits;
   22|     54|}
_Z16htobe32_internalj:
   34|  2.14G|{
   35|  2.14G|    if constexpr (std::endian::native == std::endian::little) return internal_bswap_32(host_32bits);
   36|       |        else return host_32bits;
   37|  2.14G|}
_Z16htole32_internalj:
   39|   212M|{
   40|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_32(host_32bits);
   41|   212M|        else return host_32bits;
   42|   212M|}
_Z16be32toh_internalj:
   44|   120M|{
   45|   120M|    if constexpr (std::endian::native == std::endian::little) return internal_bswap_32(big_endian_32bits);
   46|       |        else return big_endian_32bits;
   47|   120M|}
_Z16le32toh_internalj:
   49|  44.7M|{
   50|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_32(little_endian_32bits);
   51|  44.7M|        else return little_endian_32bits;
   52|  44.7M|}
_Z16htobe64_internalm:
   54|   279M|{
   55|   279M|    if constexpr (std::endian::native == std::endian::little) return internal_bswap_64(host_64bits);
   56|       |        else return host_64bits;
   57|   279M|}
_Z16htole64_internalm:
   59|  50.7M|{
   60|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_64(host_64bits);
   61|  50.7M|        else return host_64bits;
   62|  50.7M|}
_Z16be64toh_internalm:
   64|  11.7M|{
   65|  11.7M|    if constexpr (std::endian::native == std::endian::little) return internal_bswap_64(big_endian_64bits);
   66|       |        else return big_endian_64bits;
   67|  11.7M|}
_Z16le64toh_internalm:
   69|   155M|{
   70|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_64(little_endian_64bits);
   71|   155M|        else return little_endian_64bits;
   72|   155M|}

_ZN15ChaCha20Aligned6SetKeyE4SpanIKSt4byteE:
   26|  34.9k|{
   27|  34.9k|    assert(key.size() == KEYLEN);
   28|  34.9k|    input[0] = ReadLE32(key.data() + 0);
   29|  34.9k|    input[1] = ReadLE32(key.data() + 4);
   30|  34.9k|    input[2] = ReadLE32(key.data() + 8);
   31|  34.9k|    input[3] = ReadLE32(key.data() + 12);
   32|  34.9k|    input[4] = ReadLE32(key.data() + 16);
   33|  34.9k|    input[5] = ReadLE32(key.data() + 20);
   34|  34.9k|    input[6] = ReadLE32(key.data() + 24);
   35|  34.9k|    input[7] = ReadLE32(key.data() + 28);
   36|  34.9k|    input[8] = 0;
   37|  34.9k|    input[9] = 0;
   38|  34.9k|    input[10] = 0;
   39|  34.9k|    input[11] = 0;
   40|  34.9k|}
_ZN15ChaCha20AlignedD2Ev:
   43|  24.9k|{
   44|  24.9k|    memory_cleanse(input, sizeof(input));
   45|  24.9k|}
_ZN15ChaCha20AlignedC2E4SpanIKSt4byteE:
   48|  24.9k|{
   49|  24.9k|    SetKey(key);
   50|  24.9k|}
_ZN8ChaCha209KeystreamE4SpanISt4byteE:
  283|  27.4M|{
  284|  27.4M|    if (out.empty()) return;
  ------------------
  |  Branch (284:9): [True: 0, False: 27.4M]
  ------------------
  285|  27.4M|    if (m_bufleft) {
  ------------------
  |  Branch (285:9): [True: 25.7M, False: 1.74M]
  ------------------
  286|  25.7M|        unsigned reuse = std::min<size_t>(m_bufleft, out.size());
  287|  25.7M|        std::copy(m_buffer.end() - m_bufleft, m_buffer.end() - m_bufleft + reuse, out.begin());
  288|  25.7M|        m_bufleft -= reuse;
  289|  25.7M|        out = out.subspan(reuse);
  290|  25.7M|    }
  291|  27.4M|    if (out.size() >= m_aligned.BLOCKLEN) {
  ------------------
  |  Branch (291:9): [True: 0, False: 27.4M]
  ------------------
  292|      0|        size_t blocks = out.size() / m_aligned.BLOCKLEN;
  293|      0|        m_aligned.Keystream(out.first(blocks * m_aligned.BLOCKLEN));
  294|      0|        out = out.subspan(blocks * m_aligned.BLOCKLEN);
  295|      0|    }
  296|  27.4M|    if (!out.empty()) {
  ------------------
  |  Branch (296:9): [True: 7.07M, False: 20.3M]
  ------------------
  297|  7.07M|        m_aligned.Keystream(m_buffer);
  298|  7.07M|        std::copy(m_buffer.begin(), m_buffer.begin() + out.size(), out.begin());
  299|  7.07M|        m_bufleft = m_aligned.BLOCKLEN - out.size();
  300|  7.07M|    }
  301|  27.4M|}
_ZN8ChaCha20D2Ev:
  333|  24.9k|{
  334|  24.9k|    memory_cleanse(m_buffer.data(), m_buffer.size());
  335|  24.9k|}
_ZN8ChaCha206SetKeyE4SpanIKSt4byteE:
  338|  9.99k|{
  339|  9.99k|    m_aligned.SetKey(key);
  340|  9.99k|    m_bufleft = 0;
  341|  9.99k|    memory_cleanse(m_buffer.data(), m_buffer.size());
  342|  9.99k|}
_ZN15ChaCha20Aligned9KeystreamE4SpanISt4byteE:
   61|  7.07M|{
   62|  7.07M|    std::byte* c = output.data();
   63|  7.07M|    size_t blocks = output.size() / BLOCKLEN;
   64|  7.07M|    assert(blocks * BLOCKLEN == output.size());
   65|       |
   66|  7.07M|    uint32_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15;
   67|  7.07M|    uint32_t j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15;
   68|       |
   69|  7.07M|    if (!blocks) return;
  ------------------
  |  Branch (69:9): [True: 0, False: 7.07M]
  ------------------
   70|       |
   71|  7.07M|    j4 = input[0];
   72|  7.07M|    j5 = input[1];
   73|  7.07M|    j6 = input[2];
   74|  7.07M|    j7 = input[3];
   75|  7.07M|    j8 = input[4];
   76|  7.07M|    j9 = input[5];
   77|  7.07M|    j10 = input[6];
   78|  7.07M|    j11 = input[7];
   79|  7.07M|    j12 = input[8];
   80|  7.07M|    j13 = input[9];
   81|  7.07M|    j14 = input[10];
   82|  7.07M|    j15 = input[11];
   83|       |
   84|  7.07M|    for (;;) {
   85|  7.07M|        x0 = 0x61707865;
   86|  7.07M|        x1 = 0x3320646e;
   87|  7.07M|        x2 = 0x79622d32;
   88|  7.07M|        x3 = 0x6b206574;
   89|  7.07M|        x4 = j4;
   90|  7.07M|        x5 = j5;
   91|  7.07M|        x6 = j6;
   92|  7.07M|        x7 = j7;
   93|  7.07M|        x8 = j8;
   94|  7.07M|        x9 = j9;
   95|  7.07M|        x10 = j10;
   96|  7.07M|        x11 = j11;
   97|  7.07M|        x12 = j12;
   98|  7.07M|        x13 = j13;
   99|  7.07M|        x14 = j14;
  100|  7.07M|        x15 = j15;
  101|       |
  102|       |        // The 20 inner ChaCha20 rounds are unrolled here for performance.
  103|  7.07M|        REPEAT10(
  ------------------
  |  |   23|  7.07M|#define REPEAT10(a) do { {a}; {a}; {a}; {a}; {a}; {a}; {a}; {a}; {a}; {a}; } while(0)
  |  |  ------------------
  |  |  |  Branch (23:84): [Folded - Ignored]
  |  |  ------------------
  ------------------
  104|  7.07M|            QUARTERROUND( x0, x4, x8,x12);
  105|  7.07M|            QUARTERROUND( x1, x5, x9,x13);
  106|  7.07M|            QUARTERROUND( x2, x6,x10,x14);
  107|  7.07M|            QUARTERROUND( x3, x7,x11,x15);
  108|  7.07M|            QUARTERROUND( x0, x5,x10,x15);
  109|  7.07M|            QUARTERROUND( x1, x6,x11,x12);
  110|  7.07M|            QUARTERROUND( x2, x7, x8,x13);
  111|  7.07M|            QUARTERROUND( x3, x4, x9,x14);
  112|  7.07M|        );
  113|       |
  114|  7.07M|        x0 += 0x61707865;
  115|  7.07M|        x1 += 0x3320646e;
  116|  7.07M|        x2 += 0x79622d32;
  117|  7.07M|        x3 += 0x6b206574;
  118|  7.07M|        x4 += j4;
  119|  7.07M|        x5 += j5;
  120|  7.07M|        x6 += j6;
  121|  7.07M|        x7 += j7;
  122|  7.07M|        x8 += j8;
  123|  7.07M|        x9 += j9;
  124|  7.07M|        x10 += j10;
  125|  7.07M|        x11 += j11;
  126|  7.07M|        x12 += j12;
  127|  7.07M|        x13 += j13;
  128|  7.07M|        x14 += j14;
  129|  7.07M|        x15 += j15;
  130|       |
  131|  7.07M|        ++j12;
  132|  7.07M|        if (!j12) ++j13;
  ------------------
  |  Branch (132:13): [True: 0, False: 7.07M]
  ------------------
  133|       |
  134|  7.07M|        WriteLE32(c + 0, x0);
  135|  7.07M|        WriteLE32(c + 4, x1);
  136|  7.07M|        WriteLE32(c + 8, x2);
  137|  7.07M|        WriteLE32(c + 12, x3);
  138|  7.07M|        WriteLE32(c + 16, x4);
  139|  7.07M|        WriteLE32(c + 20, x5);
  140|  7.07M|        WriteLE32(c + 24, x6);
  141|  7.07M|        WriteLE32(c + 28, x7);
  142|  7.07M|        WriteLE32(c + 32, x8);
  143|  7.07M|        WriteLE32(c + 36, x9);
  144|  7.07M|        WriteLE32(c + 40, x10);
  145|  7.07M|        WriteLE32(c + 44, x11);
  146|  7.07M|        WriteLE32(c + 48, x12);
  147|  7.07M|        WriteLE32(c + 52, x13);
  148|  7.07M|        WriteLE32(c + 56, x14);
  149|  7.07M|        WriteLE32(c + 60, x15);
  150|       |
  151|  7.07M|        if (blocks == 1) {
  ------------------
  |  Branch (151:13): [True: 7.07M, False: 0]
  ------------------
  152|  7.07M|            input[8] = j12;
  153|  7.07M|            input[9] = j13;
  154|  7.07M|            return;
  155|  7.07M|        }
  156|      0|        blocks -= 1;
  157|      0|        c += BLOCKLEN;
  158|      0|    }
  159|  7.07M|}

_ZN8ChaCha20C2E4SpanIKSt4byteE:
   92|  24.9k|    ChaCha20(Span<const std::byte> key) noexcept : m_aligned(key) {}

_Z8ReadLE64ITk8ByteTypehEmPKT_:
   36|   132M|{
   37|   132M|    uint64_t x;
   38|   132M|    memcpy(&x, ptr, 8);
   39|   132M|    return le64toh_internal(x);
   40|   132M|}
_Z8ReadLE64ITk8ByteTypeSt4byteEmPKT_:
   36|  10.8M|{
   37|  10.8M|    uint64_t x;
   38|  10.8M|    memcpy(&x, ptr, 8);
   39|  10.8M|    return le64toh_internal(x);
   40|  10.8M|}
_Z9WriteLE32ITk8ByteTypeSt4byteEvPT_j:
   51|   113M|{
   52|   113M|    uint32_t v = htole32_internal(x);
   53|   113M|    memcpy(ptr, &v, 4);
   54|   113M|}
_Z9WriteBE32ITk8ByteTypehEvPT_j:
   96|  2.14G|{
   97|  2.14G|    uint32_t v = htobe32_internal(x);
   98|  2.14G|    memcpy(ptr, &v, 4);
   99|  2.14G|}
_Z8ReadBE32ITk8ByteTypehEjPKT_:
   73|   120M|{
   74|   120M|    uint32_t x;
   75|   120M|    memcpy(&x, ptr, 4);
   76|   120M|    return be32toh_internal(x);
   77|   120M|}
_Z9WriteBE64ITk8ByteTypehEvPT_m:
  103|   268M|{
  104|   268M|    uint64_t v = htobe64_internal(x);
  105|   268M|    memcpy(ptr, &v, 8);
  106|   268M|}
_Z8ReadBE64ITk8ByteTypehEmPKT_:
   81|   159k|{
   82|   159k|    uint64_t x;
   83|   159k|    memcpy(&x, ptr, 8);
   84|   159k|    return be64toh_internal(x);
   85|   159k|}
_Z8ReadLE32ITk8ByteTypeSt4byteEjPKT_:
   28|   279k|{
   29|   279k|    uint32_t x;
   30|   279k|    memcpy(&x, ptr, 4);
   31|   279k|    return le32toh_internal(x);
   32|   279k|}

_Z6HexStr4SpanIKhE:
   30|  2.49k|{
   31|  2.49k|    std::string rv(s.size() * 2, '\0');
   32|  2.49k|    static constexpr auto byte_to_hex = CreateByteToHexMap();
   33|  2.49k|    static_assert(sizeof(byte_to_hex) == 512);
   34|       |
   35|  2.49k|    char* it = rv.data();
   36|  79.9k|    for (uint8_t v : s) {
  ------------------
  |  Branch (36:20): [True: 79.9k, False: 2.49k]
  ------------------
   37|  79.9k|        std::memcpy(it, byte_to_hex[v].data(), 2);
   38|  79.9k|        it += 2;
   39|  79.9k|    }
   40|       |
   41|  2.49k|    assert(it == rv.data() + rv.size());
   42|  2.49k|    return rv;
   43|  2.49k|}

_ZN7CSHA256C2Ev:
  697|   135M|{
  698|   135M|    sha256::Initialize(s);
  699|   135M|}
_ZN7CSHA2565WriteEPKhm:
  702|  1.25G|{
  703|  1.25G|    const unsigned char* end = data + len;
  704|  1.25G|    size_t bufsize = bytes % 64;
  705|  1.25G|    if (bufsize && bufsize + len >= 64) {
  ------------------
  |  Branch (705:9): [True: 988M, False: 268M]
  |  Branch (705:20): [True: 330M, False: 657M]
  ------------------
  706|       |        // Fill the buffer, and process it.
  707|   330M|        memcpy(buf + bufsize, data, 64 - bufsize);
  708|   330M|        bytes += 64 - bufsize;
  709|   330M|        data += 64 - bufsize;
  710|   330M|        Transform(s, buf, 1);
  711|   330M|        bufsize = 0;
  712|   330M|    }
  713|  1.25G|    if (end - data >= 64) {
  ------------------
  |  Branch (713:9): [True: 0, False: 1.25G]
  ------------------
  714|      0|        size_t blocks = (end - data) / 64;
  715|      0|        Transform(s, data, blocks);
  716|      0|        data += 64 * blocks;
  717|      0|        bytes += 64 * blocks;
  718|      0|    }
  719|  1.25G|    if (end > data) {
  ------------------
  |  Branch (719:9): [True: 988M, False: 268M]
  ------------------
  720|       |        // Fill the buffer with what remains.
  721|   988M|        memcpy(buf + bufsize, data, end - data);
  722|   988M|        bytes += end - data;
  723|   988M|    }
  724|  1.25G|    return *this;
  725|  1.25G|}
_ZN7CSHA2568FinalizeEPh:
  728|   268M|{
  729|   268M|    static const unsigned char pad[64] = {0x80};
  730|   268M|    unsigned char sizedesc[8];
  731|   268M|    WriteBE64(sizedesc, bytes << 3);
  732|   268M|    Write(pad, 1 + ((119 - (bytes % 64)) % 64));
  733|   268M|    Write(sizedesc, 8);
  734|   268M|    WriteBE32(hash, s[0]);
  735|   268M|    WriteBE32(hash + 4, s[1]);
  736|   268M|    WriteBE32(hash + 8, s[2]);
  737|   268M|    WriteBE32(hash + 12, s[3]);
  738|   268M|    WriteBE32(hash + 16, s[4]);
  739|   268M|    WriteBE32(hash + 20, s[5]);
  740|   268M|    WriteBE32(hash + 24, s[6]);
  741|   268M|    WriteBE32(hash + 28, s[7]);
  742|   268M|}
_ZN7CSHA2565ResetEv:
  745|   132M|{
  746|   132M|    bytes = 0;
  747|   132M|    sha256::Initialize(s);
  748|   132M|    return *this;
  749|   132M|}
sha256.cpp:_ZN12_GLOBAL__N_16sha25610InitializeEPj:
   89|   268M|{
   90|   268M|    s[0] = 0x6a09e667ul;
   91|   268M|    s[1] = 0xbb67ae85ul;
   92|   268M|    s[2] = 0x3c6ef372ul;
   93|   268M|    s[3] = 0xa54ff53aul;
   94|   268M|    s[4] = 0x510e527ful;
   95|   268M|    s[5] = 0x9b05688cul;
   96|   268M|    s[6] = 0x1f83d9abul;
   97|   268M|    s[7] = 0x5be0cd19ul;
   98|   268M|}

_ZN11sha256_sse49TransformEPjPKhm:
   23|   330M|{
   24|   330M|    static const uint32_t K256 alignas(16) [] = {
   25|   330M|        0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
   26|   330M|        0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
   27|   330M|        0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
   28|   330M|        0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
   29|   330M|        0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
   30|   330M|        0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
   31|   330M|        0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
   32|   330M|        0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
   33|   330M|        0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
   34|   330M|        0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
   35|   330M|        0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
   36|   330M|        0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
   37|   330M|        0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
   38|   330M|        0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
   39|   330M|        0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
   40|   330M|        0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2,
   41|   330M|    };
   42|   330M|    static const uint32_t FLIP_MASK alignas(16) [] = {0x00010203, 0x04050607, 0x08090a0b, 0x0c0d0e0f};
   43|   330M|    static const uint32_t SHUF_00BA alignas(16) [] = {0x03020100, 0x0b0a0908, 0xffffffff, 0xffffffff};
   44|   330M|    static const uint32_t SHUF_DC00 alignas(16) [] = {0xffffffff, 0xffffffff, 0x03020100, 0x0b0a0908};
   45|   330M|    uint32_t a, b, c, d, f, g, h, y0, y1, y2;
   46|   330M|    uint64_t tbl;
   47|   330M|    uint64_t inp_end, inp;
   48|   330M|    uint32_t xfer alignas(16) [4];
   49|       |
   50|   330M|    __asm__ __volatile__(
   51|   330M|        "shl    $0x6,%2;"
   52|   330M|        "je     Ldone_hash_%=;"
   53|   330M|        "add    %1,%2;"
   54|   330M|        "mov    %2,%14;"
   55|   330M|        "mov    (%0),%3;"
   56|   330M|        "mov    0x4(%0),%4;"
   57|   330M|        "mov    0x8(%0),%5;"
   58|   330M|        "mov    0xc(%0),%6;"
   59|   330M|        "mov    0x10(%0),%k2;"
   60|   330M|        "mov    0x14(%0),%7;"
   61|   330M|        "mov    0x18(%0),%8;"
   62|   330M|        "mov    0x1c(%0),%9;"
   63|   330M|        "movdqa %18,%%xmm12;"
   64|   330M|        "movdqa %19,%%xmm10;"
   65|   330M|        "movdqa %20,%%xmm11;"
   66|       |
   67|   330M|        "Lloop0_%=:"
   68|   330M|        "lea    %17,%13;"
   69|   330M|        "movdqu (%1),%%xmm4;"
   70|   330M|        "pshufb %%xmm12,%%xmm4;"
   71|   330M|        "movdqu 0x10(%1),%%xmm5;"
   72|   330M|        "pshufb %%xmm12,%%xmm5;"
   73|   330M|        "movdqu 0x20(%1),%%xmm6;"
   74|   330M|        "pshufb %%xmm12,%%xmm6;"
   75|   330M|        "movdqu 0x30(%1),%%xmm7;"
   76|   330M|        "pshufb %%xmm12,%%xmm7;"
   77|   330M|        "mov    %1,%15;"
   78|   330M|        "mov    $3,%1;"
   79|       |
   80|   330M|        "Lloop1_%=:"
   81|   330M|        "movdqa 0x0(%13),%%xmm9;"
   82|   330M|        "paddd  %%xmm4,%%xmm9;"
   83|   330M|        "movdqa %%xmm9,%16;"
   84|   330M|        "movdqa %%xmm7,%%xmm0;"
   85|   330M|        "mov    %k2,%10;"
   86|   330M|        "ror    $0xe,%10;"
   87|   330M|        "mov    %3,%11;"
   88|   330M|        "palignr $0x4,%%xmm6,%%xmm0;"
   89|   330M|        "ror    $0x9,%11;"
   90|   330M|        "xor    %k2,%10;"
   91|   330M|        "mov    %7,%12;"
   92|   330M|        "ror    $0x5,%10;"
   93|   330M|        "movdqa %%xmm5,%%xmm1;"
   94|   330M|        "xor    %3,%11;"
   95|   330M|        "xor    %8,%12;"
   96|   330M|        "paddd  %%xmm4,%%xmm0;"
   97|   330M|        "xor    %k2,%10;"
   98|   330M|        "and    %k2,%12;"
   99|   330M|        "ror    $0xb,%11;"
  100|   330M|        "palignr $0x4,%%xmm4,%%xmm1;"
  101|   330M|        "xor    %3,%11;"
  102|   330M|        "ror    $0x6,%10;"
  103|   330M|        "xor    %8,%12;"
  104|   330M|        "movdqa %%xmm1,%%xmm2;"
  105|   330M|        "ror    $0x2,%11;"
  106|   330M|        "add    %10,%12;"
  107|   330M|        "add    %16,%12;"
  108|   330M|        "movdqa %%xmm1,%%xmm3;"
  109|   330M|        "mov    %3,%10;"
  110|   330M|        "add    %12,%9;"
  111|   330M|        "mov    %3,%12;"
  112|   330M|        "pslld  $0x19,%%xmm1;"
  113|   330M|        "or     %5,%10;"
  114|   330M|        "add    %9,%6;"
  115|   330M|        "and    %5,%12;"
  116|   330M|        "psrld  $0x7,%%xmm2;"
  117|   330M|        "and    %4,%10;"
  118|   330M|        "add    %11,%9;"
  119|   330M|        "por    %%xmm2,%%xmm1;"
  120|   330M|        "or     %12,%10;"
  121|   330M|        "add    %10,%9;"
  122|   330M|        "movdqa %%xmm3,%%xmm2;"
  123|   330M|        "mov    %6,%10;"
  124|   330M|        "mov    %9,%11;"
  125|   330M|        "movdqa %%xmm3,%%xmm8;"
  126|   330M|        "ror    $0xe,%10;"
  127|   330M|        "xor    %6,%10;"
  128|   330M|        "mov    %k2,%12;"
  129|   330M|        "ror    $0x9,%11;"
  130|   330M|        "pslld  $0xe,%%xmm3;"
  131|   330M|        "xor    %9,%11;"
  132|   330M|        "ror    $0x5,%10;"
  133|   330M|        "xor    %7,%12;"
  134|   330M|        "psrld  $0x12,%%xmm2;"
  135|   330M|        "ror    $0xb,%11;"
  136|   330M|        "xor    %6,%10;"
  137|   330M|        "and    %6,%12;"
  138|   330M|        "ror    $0x6,%10;"
  139|   330M|        "pxor   %%xmm3,%%xmm1;"
  140|   330M|        "xor    %9,%11;"
  141|   330M|        "xor    %7,%12;"
  142|   330M|        "psrld  $0x3,%%xmm8;"
  143|   330M|        "add    %10,%12;"
  144|   330M|        "add    4+%16,%12;"
  145|   330M|        "ror    $0x2,%11;"
  146|   330M|        "pxor   %%xmm2,%%xmm1;"
  147|   330M|        "mov    %9,%10;"
  148|   330M|        "add    %12,%8;"
  149|   330M|        "mov    %9,%12;"
  150|   330M|        "pxor   %%xmm8,%%xmm1;"
  151|   330M|        "or     %4,%10;"
  152|   330M|        "add    %8,%5;"
  153|   330M|        "and    %4,%12;"
  154|   330M|        "pshufd $0xfa,%%xmm7,%%xmm2;"
  155|   330M|        "and    %3,%10;"
  156|   330M|        "add    %11,%8;"
  157|   330M|        "paddd  %%xmm1,%%xmm0;"
  158|   330M|        "or     %12,%10;"
  159|   330M|        "add    %10,%8;"
  160|   330M|        "movdqa %%xmm2,%%xmm3;"
  161|   330M|        "mov    %5,%10;"
  162|   330M|        "mov    %8,%11;"
  163|   330M|        "ror    $0xe,%10;"
  164|   330M|        "movdqa %%xmm2,%%xmm8;"
  165|   330M|        "xor    %5,%10;"
  166|   330M|        "ror    $0x9,%11;"
  167|   330M|        "mov    %6,%12;"
  168|   330M|        "xor    %8,%11;"
  169|   330M|        "ror    $0x5,%10;"
  170|   330M|        "psrlq  $0x11,%%xmm2;"
  171|   330M|        "xor    %k2,%12;"
  172|   330M|        "psrlq  $0x13,%%xmm3;"
  173|   330M|        "xor    %5,%10;"
  174|   330M|        "and    %5,%12;"
  175|   330M|        "psrld  $0xa,%%xmm8;"
  176|   330M|        "ror    $0xb,%11;"
  177|   330M|        "xor    %8,%11;"
  178|   330M|        "xor    %k2,%12;"
  179|   330M|        "ror    $0x6,%10;"
  180|   330M|        "pxor   %%xmm3,%%xmm2;"
  181|   330M|        "add    %10,%12;"
  182|   330M|        "ror    $0x2,%11;"
  183|   330M|        "add    8+%16,%12;"
  184|   330M|        "pxor   %%xmm2,%%xmm8;"
  185|   330M|        "mov    %8,%10;"
  186|   330M|        "add    %12,%7;"
  187|   330M|        "mov    %8,%12;"
  188|   330M|        "pshufb %%xmm10,%%xmm8;"
  189|   330M|        "or     %3,%10;"
  190|   330M|        "add    %7,%4;"
  191|   330M|        "and    %3,%12;"
  192|   330M|        "paddd  %%xmm8,%%xmm0;"
  193|   330M|        "and    %9,%10;"
  194|   330M|        "add    %11,%7;"
  195|   330M|        "pshufd $0x50,%%xmm0,%%xmm2;"
  196|   330M|        "or     %12,%10;"
  197|   330M|        "add    %10,%7;"
  198|   330M|        "movdqa %%xmm2,%%xmm3;"
  199|   330M|        "mov    %4,%10;"
  200|   330M|        "ror    $0xe,%10;"
  201|   330M|        "mov    %7,%11;"
  202|   330M|        "movdqa %%xmm2,%%xmm4;"
  203|   330M|        "ror    $0x9,%11;"
  204|   330M|        "xor    %4,%10;"
  205|   330M|        "mov    %5,%12;"
  206|   330M|        "ror    $0x5,%10;"
  207|   330M|        "psrlq  $0x11,%%xmm2;"
  208|   330M|        "xor    %7,%11;"
  209|   330M|        "xor    %6,%12;"
  210|   330M|        "psrlq  $0x13,%%xmm3;"
  211|   330M|        "xor    %4,%10;"
  212|   330M|        "and    %4,%12;"
  213|   330M|        "ror    $0xb,%11;"
  214|   330M|        "psrld  $0xa,%%xmm4;"
  215|   330M|        "xor    %7,%11;"
  216|   330M|        "ror    $0x6,%10;"
  217|   330M|        "xor    %6,%12;"
  218|   330M|        "pxor   %%xmm3,%%xmm2;"
  219|   330M|        "ror    $0x2,%11;"
  220|   330M|        "add    %10,%12;"
  221|   330M|        "add    12+%16,%12;"
  222|   330M|        "pxor   %%xmm2,%%xmm4;"
  223|   330M|        "mov    %7,%10;"
  224|   330M|        "add    %12,%k2;"
  225|   330M|        "mov    %7,%12;"
  226|   330M|        "pshufb %%xmm11,%%xmm4;"
  227|   330M|        "or     %9,%10;"
  228|   330M|        "add    %k2,%3;"
  229|   330M|        "and    %9,%12;"
  230|   330M|        "paddd  %%xmm0,%%xmm4;"
  231|   330M|        "and    %8,%10;"
  232|   330M|        "add    %11,%k2;"
  233|   330M|        "or     %12,%10;"
  234|   330M|        "add    %10,%k2;"
  235|   330M|        "movdqa 0x10(%13),%%xmm9;"
  236|   330M|        "paddd  %%xmm5,%%xmm9;"
  237|   330M|        "movdqa %%xmm9,%16;"
  238|   330M|        "movdqa %%xmm4,%%xmm0;"
  239|   330M|        "mov    %3,%10;"
  240|   330M|        "ror    $0xe,%10;"
  241|   330M|        "mov    %k2,%11;"
  242|   330M|        "palignr $0x4,%%xmm7,%%xmm0;"
  243|   330M|        "ror    $0x9,%11;"
  244|   330M|        "xor    %3,%10;"
  245|   330M|        "mov    %4,%12;"
  246|   330M|        "ror    $0x5,%10;"
  247|   330M|        "movdqa %%xmm6,%%xmm1;"
  248|   330M|        "xor    %k2,%11;"
  249|   330M|        "xor    %5,%12;"
  250|   330M|        "paddd  %%xmm5,%%xmm0;"
  251|   330M|        "xor    %3,%10;"
  252|   330M|        "and    %3,%12;"
  253|   330M|        "ror    $0xb,%11;"
  254|   330M|        "palignr $0x4,%%xmm5,%%xmm1;"
  255|   330M|        "xor    %k2,%11;"
  256|   330M|        "ror    $0x6,%10;"
  257|   330M|        "xor    %5,%12;"
  258|   330M|        "movdqa %%xmm1,%%xmm2;"
  259|   330M|        "ror    $0x2,%11;"
  260|   330M|        "add    %10,%12;"
  261|   330M|        "add    %16,%12;"
  262|   330M|        "movdqa %%xmm1,%%xmm3;"
  263|   330M|        "mov    %k2,%10;"
  264|   330M|        "add    %12,%6;"
  265|   330M|        "mov    %k2,%12;"
  266|   330M|        "pslld  $0x19,%%xmm1;"
  267|   330M|        "or     %8,%10;"
  268|   330M|        "add    %6,%9;"
  269|   330M|        "and    %8,%12;"
  270|   330M|        "psrld  $0x7,%%xmm2;"
  271|   330M|        "and    %7,%10;"
  272|   330M|        "add    %11,%6;"
  273|   330M|        "por    %%xmm2,%%xmm1;"
  274|   330M|        "or     %12,%10;"
  275|   330M|        "add    %10,%6;"
  276|   330M|        "movdqa %%xmm3,%%xmm2;"
  277|   330M|        "mov    %9,%10;"
  278|   330M|        "mov    %6,%11;"
  279|   330M|        "movdqa %%xmm3,%%xmm8;"
  280|   330M|        "ror    $0xe,%10;"
  281|   330M|        "xor    %9,%10;"
  282|   330M|        "mov    %3,%12;"
  283|   330M|        "ror    $0x9,%11;"
  284|   330M|        "pslld  $0xe,%%xmm3;"
  285|   330M|        "xor    %6,%11;"
  286|   330M|        "ror    $0x5,%10;"
  287|   330M|        "xor    %4,%12;"
  288|   330M|        "psrld  $0x12,%%xmm2;"
  289|   330M|        "ror    $0xb,%11;"
  290|   330M|        "xor    %9,%10;"
  291|   330M|        "and    %9,%12;"
  292|   330M|        "ror    $0x6,%10;"
  293|   330M|        "pxor   %%xmm3,%%xmm1;"
  294|   330M|        "xor    %6,%11;"
  295|   330M|        "xor    %4,%12;"
  296|   330M|        "psrld  $0x3,%%xmm8;"
  297|   330M|        "add    %10,%12;"
  298|   330M|        "add    4+%16,%12;"
  299|   330M|        "ror    $0x2,%11;"
  300|   330M|        "pxor   %%xmm2,%%xmm1;"
  301|   330M|        "mov    %6,%10;"
  302|   330M|        "add    %12,%5;"
  303|   330M|        "mov    %6,%12;"
  304|   330M|        "pxor   %%xmm8,%%xmm1;"
  305|   330M|        "or     %7,%10;"
  306|   330M|        "add    %5,%8;"
  307|   330M|        "and    %7,%12;"
  308|   330M|        "pshufd $0xfa,%%xmm4,%%xmm2;"
  309|   330M|        "and    %k2,%10;"
  310|   330M|        "add    %11,%5;"
  311|   330M|        "paddd  %%xmm1,%%xmm0;"
  312|   330M|        "or     %12,%10;"
  313|   330M|        "add    %10,%5;"
  314|   330M|        "movdqa %%xmm2,%%xmm3;"
  315|   330M|        "mov    %8,%10;"
  316|   330M|        "mov    %5,%11;"
  317|   330M|        "ror    $0xe,%10;"
  318|   330M|        "movdqa %%xmm2,%%xmm8;"
  319|   330M|        "xor    %8,%10;"
  320|   330M|        "ror    $0x9,%11;"
  321|   330M|        "mov    %9,%12;"
  322|   330M|        "xor    %5,%11;"
  323|   330M|        "ror    $0x5,%10;"
  324|   330M|        "psrlq  $0x11,%%xmm2;"
  325|   330M|        "xor    %3,%12;"
  326|   330M|        "psrlq  $0x13,%%xmm3;"
  327|   330M|        "xor    %8,%10;"
  328|   330M|        "and    %8,%12;"
  329|   330M|        "psrld  $0xa,%%xmm8;"
  330|   330M|        "ror    $0xb,%11;"
  331|   330M|        "xor    %5,%11;"
  332|   330M|        "xor    %3,%12;"
  333|   330M|        "ror    $0x6,%10;"
  334|   330M|        "pxor   %%xmm3,%%xmm2;"
  335|   330M|        "add    %10,%12;"
  336|   330M|        "ror    $0x2,%11;"
  337|   330M|        "add    8+%16,%12;"
  338|   330M|        "pxor   %%xmm2,%%xmm8;"
  339|   330M|        "mov    %5,%10;"
  340|   330M|        "add    %12,%4;"
  341|   330M|        "mov    %5,%12;"
  342|   330M|        "pshufb %%xmm10,%%xmm8;"
  343|   330M|        "or     %k2,%10;"
  344|   330M|        "add    %4,%7;"
  345|   330M|        "and    %k2,%12;"
  346|   330M|        "paddd  %%xmm8,%%xmm0;"
  347|   330M|        "and    %6,%10;"
  348|   330M|        "add    %11,%4;"
  349|   330M|        "pshufd $0x50,%%xmm0,%%xmm2;"
  350|   330M|        "or     %12,%10;"
  351|   330M|        "add    %10,%4;"
  352|   330M|        "movdqa %%xmm2,%%xmm3;"
  353|   330M|        "mov    %7,%10;"
  354|   330M|        "ror    $0xe,%10;"
  355|   330M|        "mov    %4,%11;"
  356|   330M|        "movdqa %%xmm2,%%xmm5;"
  357|   330M|        "ror    $0x9,%11;"
  358|   330M|        "xor    %7,%10;"
  359|   330M|        "mov    %8,%12;"
  360|   330M|        "ror    $0x5,%10;"
  361|   330M|        "psrlq  $0x11,%%xmm2;"
  362|   330M|        "xor    %4,%11;"
  363|   330M|        "xor    %9,%12;"
  364|   330M|        "psrlq  $0x13,%%xmm3;"
  365|   330M|        "xor    %7,%10;"
  366|   330M|        "and    %7,%12;"
  367|   330M|        "ror    $0xb,%11;"
  368|   330M|        "psrld  $0xa,%%xmm5;"
  369|   330M|        "xor    %4,%11;"
  370|   330M|        "ror    $0x6,%10;"
  371|   330M|        "xor    %9,%12;"
  372|   330M|        "pxor   %%xmm3,%%xmm2;"
  373|   330M|        "ror    $0x2,%11;"
  374|   330M|        "add    %10,%12;"
  375|   330M|        "add    12+%16,%12;"
  376|   330M|        "pxor   %%xmm2,%%xmm5;"
  377|   330M|        "mov    %4,%10;"
  378|   330M|        "add    %12,%3;"
  379|   330M|        "mov    %4,%12;"
  380|   330M|        "pshufb %%xmm11,%%xmm5;"
  381|   330M|        "or     %6,%10;"
  382|   330M|        "add    %3,%k2;"
  383|   330M|        "and    %6,%12;"
  384|   330M|        "paddd  %%xmm0,%%xmm5;"
  385|   330M|        "and    %5,%10;"
  386|   330M|        "add    %11,%3;"
  387|   330M|        "or     %12,%10;"
  388|   330M|        "add    %10,%3;"
  389|   330M|        "movdqa 0x20(%13),%%xmm9;"
  390|   330M|        "paddd  %%xmm6,%%xmm9;"
  391|   330M|        "movdqa %%xmm9,%16;"
  392|   330M|        "movdqa %%xmm5,%%xmm0;"
  393|   330M|        "mov    %k2,%10;"
  394|   330M|        "ror    $0xe,%10;"
  395|   330M|        "mov    %3,%11;"
  396|   330M|        "palignr $0x4,%%xmm4,%%xmm0;"
  397|   330M|        "ror    $0x9,%11;"
  398|   330M|        "xor    %k2,%10;"
  399|   330M|        "mov    %7,%12;"
  400|   330M|        "ror    $0x5,%10;"
  401|   330M|        "movdqa %%xmm7,%%xmm1;"
  402|   330M|        "xor    %3,%11;"
  403|   330M|        "xor    %8,%12;"
  404|   330M|        "paddd  %%xmm6,%%xmm0;"
  405|   330M|        "xor    %k2,%10;"
  406|   330M|        "and    %k2,%12;"
  407|   330M|        "ror    $0xb,%11;"
  408|   330M|        "palignr $0x4,%%xmm6,%%xmm1;"
  409|   330M|        "xor    %3,%11;"
  410|   330M|        "ror    $0x6,%10;"
  411|   330M|        "xor    %8,%12;"
  412|   330M|        "movdqa %%xmm1,%%xmm2;"
  413|   330M|        "ror    $0x2,%11;"
  414|   330M|        "add    %10,%12;"
  415|   330M|        "add    %16,%12;"
  416|   330M|        "movdqa %%xmm1,%%xmm3;"
  417|   330M|        "mov    %3,%10;"
  418|   330M|        "add    %12,%9;"
  419|   330M|        "mov    %3,%12;"
  420|   330M|        "pslld  $0x19,%%xmm1;"
  421|   330M|        "or     %5,%10;"
  422|   330M|        "add    %9,%6;"
  423|   330M|        "and    %5,%12;"
  424|   330M|        "psrld  $0x7,%%xmm2;"
  425|   330M|        "and    %4,%10;"
  426|   330M|        "add    %11,%9;"
  427|   330M|        "por    %%xmm2,%%xmm1;"
  428|   330M|        "or     %12,%10;"
  429|   330M|        "add    %10,%9;"
  430|   330M|        "movdqa %%xmm3,%%xmm2;"
  431|   330M|        "mov    %6,%10;"
  432|   330M|        "mov    %9,%11;"
  433|   330M|        "movdqa %%xmm3,%%xmm8;"
  434|   330M|        "ror    $0xe,%10;"
  435|   330M|        "xor    %6,%10;"
  436|   330M|        "mov    %k2,%12;"
  437|   330M|        "ror    $0x9,%11;"
  438|   330M|        "pslld  $0xe,%%xmm3;"
  439|   330M|        "xor    %9,%11;"
  440|   330M|        "ror    $0x5,%10;"
  441|   330M|        "xor    %7,%12;"
  442|   330M|        "psrld  $0x12,%%xmm2;"
  443|   330M|        "ror    $0xb,%11;"
  444|   330M|        "xor    %6,%10;"
  445|   330M|        "and    %6,%12;"
  446|   330M|        "ror    $0x6,%10;"
  447|   330M|        "pxor   %%xmm3,%%xmm1;"
  448|   330M|        "xor    %9,%11;"
  449|   330M|        "xor    %7,%12;"
  450|   330M|        "psrld  $0x3,%%xmm8;"
  451|   330M|        "add    %10,%12;"
  452|   330M|        "add    4+%16,%12;"
  453|   330M|        "ror    $0x2,%11;"
  454|   330M|        "pxor   %%xmm2,%%xmm1;"
  455|   330M|        "mov    %9,%10;"
  456|   330M|        "add    %12,%8;"
  457|   330M|        "mov    %9,%12;"
  458|   330M|        "pxor   %%xmm8,%%xmm1;"
  459|   330M|        "or     %4,%10;"
  460|   330M|        "add    %8,%5;"
  461|   330M|        "and    %4,%12;"
  462|   330M|        "pshufd $0xfa,%%xmm5,%%xmm2;"
  463|   330M|        "and    %3,%10;"
  464|   330M|        "add    %11,%8;"
  465|   330M|        "paddd  %%xmm1,%%xmm0;"
  466|   330M|        "or     %12,%10;"
  467|   330M|        "add    %10,%8;"
  468|   330M|        "movdqa %%xmm2,%%xmm3;"
  469|   330M|        "mov    %5,%10;"
  470|   330M|        "mov    %8,%11;"
  471|   330M|        "ror    $0xe,%10;"
  472|   330M|        "movdqa %%xmm2,%%xmm8;"
  473|   330M|        "xor    %5,%10;"
  474|   330M|        "ror    $0x9,%11;"
  475|   330M|        "mov    %6,%12;"
  476|   330M|        "xor    %8,%11;"
  477|   330M|        "ror    $0x5,%10;"
  478|   330M|        "psrlq  $0x11,%%xmm2;"
  479|   330M|        "xor    %k2,%12;"
  480|   330M|        "psrlq  $0x13,%%xmm3;"
  481|   330M|        "xor    %5,%10;"
  482|   330M|        "and    %5,%12;"
  483|   330M|        "psrld  $0xa,%%xmm8;"
  484|   330M|        "ror    $0xb,%11;"
  485|   330M|        "xor    %8,%11;"
  486|   330M|        "xor    %k2,%12;"
  487|   330M|        "ror    $0x6,%10;"
  488|   330M|        "pxor   %%xmm3,%%xmm2;"
  489|   330M|        "add    %10,%12;"
  490|   330M|        "ror    $0x2,%11;"
  491|   330M|        "add    8+%16,%12;"
  492|   330M|        "pxor   %%xmm2,%%xmm8;"
  493|   330M|        "mov    %8,%10;"
  494|   330M|        "add    %12,%7;"
  495|   330M|        "mov    %8,%12;"
  496|   330M|        "pshufb %%xmm10,%%xmm8;"
  497|   330M|        "or     %3,%10;"
  498|   330M|        "add    %7,%4;"
  499|   330M|        "and    %3,%12;"
  500|   330M|        "paddd  %%xmm8,%%xmm0;"
  501|   330M|        "and    %9,%10;"
  502|   330M|        "add    %11,%7;"
  503|   330M|        "pshufd $0x50,%%xmm0,%%xmm2;"
  504|   330M|        "or     %12,%10;"
  505|   330M|        "add    %10,%7;"
  506|   330M|        "movdqa %%xmm2,%%xmm3;"
  507|   330M|        "mov    %4,%10;"
  508|   330M|        "ror    $0xe,%10;"
  509|   330M|        "mov    %7,%11;"
  510|   330M|        "movdqa %%xmm2,%%xmm6;"
  511|   330M|        "ror    $0x9,%11;"
  512|   330M|        "xor    %4,%10;"
  513|   330M|        "mov    %5,%12;"
  514|   330M|        "ror    $0x5,%10;"
  515|   330M|        "psrlq  $0x11,%%xmm2;"
  516|   330M|        "xor    %7,%11;"
  517|   330M|        "xor    %6,%12;"
  518|   330M|        "psrlq  $0x13,%%xmm3;"
  519|   330M|        "xor    %4,%10;"
  520|   330M|        "and    %4,%12;"
  521|   330M|        "ror    $0xb,%11;"
  522|   330M|        "psrld  $0xa,%%xmm6;"
  523|   330M|        "xor    %7,%11;"
  524|   330M|        "ror    $0x6,%10;"
  525|   330M|        "xor    %6,%12;"
  526|   330M|        "pxor   %%xmm3,%%xmm2;"
  527|   330M|        "ror    $0x2,%11;"
  528|   330M|        "add    %10,%12;"
  529|   330M|        "add    12+%16,%12;"
  530|   330M|        "pxor   %%xmm2,%%xmm6;"
  531|   330M|        "mov    %7,%10;"
  532|   330M|        "add    %12,%k2;"
  533|   330M|        "mov    %7,%12;"
  534|   330M|        "pshufb %%xmm11,%%xmm6;"
  535|   330M|        "or     %9,%10;"
  536|   330M|        "add    %k2,%3;"
  537|   330M|        "and    %9,%12;"
  538|   330M|        "paddd  %%xmm0,%%xmm6;"
  539|   330M|        "and    %8,%10;"
  540|   330M|        "add    %11,%k2;"
  541|   330M|        "or     %12,%10;"
  542|   330M|        "add    %10,%k2;"
  543|   330M|        "movdqa 0x30(%13),%%xmm9;"
  544|   330M|        "paddd  %%xmm7,%%xmm9;"
  545|   330M|        "movdqa %%xmm9,%16;"
  546|   330M|        "add    $0x40,%13;"
  547|   330M|        "movdqa %%xmm6,%%xmm0;"
  548|   330M|        "mov    %3,%10;"
  549|   330M|        "ror    $0xe,%10;"
  550|   330M|        "mov    %k2,%11;"
  551|   330M|        "palignr $0x4,%%xmm5,%%xmm0;"
  552|   330M|        "ror    $0x9,%11;"
  553|   330M|        "xor    %3,%10;"
  554|   330M|        "mov    %4,%12;"
  555|   330M|        "ror    $0x5,%10;"
  556|   330M|        "movdqa %%xmm4,%%xmm1;"
  557|   330M|        "xor    %k2,%11;"
  558|   330M|        "xor    %5,%12;"
  559|   330M|        "paddd  %%xmm7,%%xmm0;"
  560|   330M|        "xor    %3,%10;"
  561|   330M|        "and    %3,%12;"
  562|   330M|        "ror    $0xb,%11;"
  563|   330M|        "palignr $0x4,%%xmm7,%%xmm1;"
  564|   330M|        "xor    %k2,%11;"
  565|   330M|        "ror    $0x6,%10;"
  566|   330M|        "xor    %5,%12;"
  567|   330M|        "movdqa %%xmm1,%%xmm2;"
  568|   330M|        "ror    $0x2,%11;"
  569|   330M|        "add    %10,%12;"
  570|   330M|        "add    %16,%12;"
  571|   330M|        "movdqa %%xmm1,%%xmm3;"
  572|   330M|        "mov    %k2,%10;"
  573|   330M|        "add    %12,%6;"
  574|   330M|        "mov    %k2,%12;"
  575|   330M|        "pslld  $0x19,%%xmm1;"
  576|   330M|        "or     %8,%10;"
  577|   330M|        "add    %6,%9;"
  578|   330M|        "and    %8,%12;"
  579|   330M|        "psrld  $0x7,%%xmm2;"
  580|   330M|        "and    %7,%10;"
  581|   330M|        "add    %11,%6;"
  582|   330M|        "por    %%xmm2,%%xmm1;"
  583|   330M|        "or     %12,%10;"
  584|   330M|        "add    %10,%6;"
  585|   330M|        "movdqa %%xmm3,%%xmm2;"
  586|   330M|        "mov    %9,%10;"
  587|   330M|        "mov    %6,%11;"
  588|   330M|        "movdqa %%xmm3,%%xmm8;"
  589|   330M|        "ror    $0xe,%10;"
  590|   330M|        "xor    %9,%10;"
  591|   330M|        "mov    %3,%12;"
  592|   330M|        "ror    $0x9,%11;"
  593|   330M|        "pslld  $0xe,%%xmm3;"
  594|   330M|        "xor    %6,%11;"
  595|   330M|        "ror    $0x5,%10;"
  596|   330M|        "xor    %4,%12;"
  597|   330M|        "psrld  $0x12,%%xmm2;"
  598|   330M|        "ror    $0xb,%11;"
  599|   330M|        "xor    %9,%10;"
  600|   330M|        "and    %9,%12;"
  601|   330M|        "ror    $0x6,%10;"
  602|   330M|        "pxor   %%xmm3,%%xmm1;"
  603|   330M|        "xor    %6,%11;"
  604|   330M|        "xor    %4,%12;"
  605|   330M|        "psrld  $0x3,%%xmm8;"
  606|   330M|        "add    %10,%12;"
  607|   330M|        "add    4+%16,%12;"
  608|   330M|        "ror    $0x2,%11;"
  609|   330M|        "pxor   %%xmm2,%%xmm1;"
  610|   330M|        "mov    %6,%10;"
  611|   330M|        "add    %12,%5;"
  612|   330M|        "mov    %6,%12;"
  613|   330M|        "pxor   %%xmm8,%%xmm1;"
  614|   330M|        "or     %7,%10;"
  615|   330M|        "add    %5,%8;"
  616|   330M|        "and    %7,%12;"
  617|   330M|        "pshufd $0xfa,%%xmm6,%%xmm2;"
  618|   330M|        "and    %k2,%10;"
  619|   330M|        "add    %11,%5;"
  620|   330M|        "paddd  %%xmm1,%%xmm0;"
  621|   330M|        "or     %12,%10;"
  622|   330M|        "add    %10,%5;"
  623|   330M|        "movdqa %%xmm2,%%xmm3;"
  624|   330M|        "mov    %8,%10;"
  625|   330M|        "mov    %5,%11;"
  626|   330M|        "ror    $0xe,%10;"
  627|   330M|        "movdqa %%xmm2,%%xmm8;"
  628|   330M|        "xor    %8,%10;"
  629|   330M|        "ror    $0x9,%11;"
  630|   330M|        "mov    %9,%12;"
  631|   330M|        "xor    %5,%11;"
  632|   330M|        "ror    $0x5,%10;"
  633|   330M|        "psrlq  $0x11,%%xmm2;"
  634|   330M|        "xor    %3,%12;"
  635|   330M|        "psrlq  $0x13,%%xmm3;"
  636|   330M|        "xor    %8,%10;"
  637|   330M|        "and    %8,%12;"
  638|   330M|        "psrld  $0xa,%%xmm8;"
  639|   330M|        "ror    $0xb,%11;"
  640|   330M|        "xor    %5,%11;"
  641|   330M|        "xor    %3,%12;"
  642|   330M|        "ror    $0x6,%10;"
  643|   330M|        "pxor   %%xmm3,%%xmm2;"
  644|   330M|        "add    %10,%12;"
  645|   330M|        "ror    $0x2,%11;"
  646|   330M|        "add    8+%16,%12;"
  647|   330M|        "pxor   %%xmm2,%%xmm8;"
  648|   330M|        "mov    %5,%10;"
  649|   330M|        "add    %12,%4;"
  650|   330M|        "mov    %5,%12;"
  651|   330M|        "pshufb %%xmm10,%%xmm8;"
  652|   330M|        "or     %k2,%10;"
  653|   330M|        "add    %4,%7;"
  654|   330M|        "and    %k2,%12;"
  655|   330M|        "paddd  %%xmm8,%%xmm0;"
  656|   330M|        "and    %6,%10;"
  657|   330M|        "add    %11,%4;"
  658|   330M|        "pshufd $0x50,%%xmm0,%%xmm2;"
  659|   330M|        "or     %12,%10;"
  660|   330M|        "add    %10,%4;"
  661|   330M|        "movdqa %%xmm2,%%xmm3;"
  662|   330M|        "mov    %7,%10;"
  663|   330M|        "ror    $0xe,%10;"
  664|   330M|        "mov    %4,%11;"
  665|   330M|        "movdqa %%xmm2,%%xmm7;"
  666|   330M|        "ror    $0x9,%11;"
  667|   330M|        "xor    %7,%10;"
  668|   330M|        "mov    %8,%12;"
  669|   330M|        "ror    $0x5,%10;"
  670|   330M|        "psrlq  $0x11,%%xmm2;"
  671|   330M|        "xor    %4,%11;"
  672|   330M|        "xor    %9,%12;"
  673|   330M|        "psrlq  $0x13,%%xmm3;"
  674|   330M|        "xor    %7,%10;"
  675|   330M|        "and    %7,%12;"
  676|   330M|        "ror    $0xb,%11;"
  677|   330M|        "psrld  $0xa,%%xmm7;"
  678|   330M|        "xor    %4,%11;"
  679|   330M|        "ror    $0x6,%10;"
  680|   330M|        "xor    %9,%12;"
  681|   330M|        "pxor   %%xmm3,%%xmm2;"
  682|   330M|        "ror    $0x2,%11;"
  683|   330M|        "add    %10,%12;"
  684|   330M|        "add    12+%16,%12;"
  685|   330M|        "pxor   %%xmm2,%%xmm7;"
  686|   330M|        "mov    %4,%10;"
  687|   330M|        "add    %12,%3;"
  688|   330M|        "mov    %4,%12;"
  689|   330M|        "pshufb %%xmm11,%%xmm7;"
  690|   330M|        "or     %6,%10;"
  691|   330M|        "add    %3,%k2;"
  692|   330M|        "and    %6,%12;"
  693|   330M|        "paddd  %%xmm0,%%xmm7;"
  694|   330M|        "and    %5,%10;"
  695|   330M|        "add    %11,%3;"
  696|   330M|        "or     %12,%10;"
  697|   330M|        "add    %10,%3;"
  698|   330M|        "sub    $0x1,%1;"
  699|   330M|        "jne    Lloop1_%=;"
  700|   330M|        "mov    $0x2,%1;"
  701|       |
  702|   330M|        "Lloop2_%=:"
  703|   330M|        "paddd  0x0(%13),%%xmm4;"
  704|   330M|        "movdqa %%xmm4,%16;"
  705|   330M|        "mov    %k2,%10;"
  706|   330M|        "ror    $0xe,%10;"
  707|   330M|        "mov    %3,%11;"
  708|   330M|        "xor    %k2,%10;"
  709|   330M|        "ror    $0x9,%11;"
  710|   330M|        "mov    %7,%12;"
  711|   330M|        "xor    %3,%11;"
  712|   330M|        "ror    $0x5,%10;"
  713|   330M|        "xor    %8,%12;"
  714|   330M|        "xor    %k2,%10;"
  715|   330M|        "ror    $0xb,%11;"
  716|   330M|        "and    %k2,%12;"
  717|   330M|        "xor    %3,%11;"
  718|   330M|        "ror    $0x6,%10;"
  719|   330M|        "xor    %8,%12;"
  720|   330M|        "add    %10,%12;"
  721|   330M|        "ror    $0x2,%11;"
  722|   330M|        "add    %16,%12;"
  723|   330M|        "mov    %3,%10;"
  724|   330M|        "add    %12,%9;"
  725|   330M|        "mov    %3,%12;"
  726|   330M|        "or     %5,%10;"
  727|   330M|        "add    %9,%6;"
  728|   330M|        "and    %5,%12;"
  729|   330M|        "and    %4,%10;"
  730|   330M|        "add    %11,%9;"
  731|   330M|        "or     %12,%10;"
  732|   330M|        "add    %10,%9;"
  733|   330M|        "mov    %6,%10;"
  734|   330M|        "ror    $0xe,%10;"
  735|   330M|        "mov    %9,%11;"
  736|   330M|        "xor    %6,%10;"
  737|   330M|        "ror    $0x9,%11;"
  738|   330M|        "mov    %k2,%12;"
  739|   330M|        "xor    %9,%11;"
  740|   330M|        "ror    $0x5,%10;"
  741|   330M|        "xor    %7,%12;"
  742|   330M|        "xor    %6,%10;"
  743|   330M|        "ror    $0xb,%11;"
  744|   330M|        "and    %6,%12;"
  745|   330M|        "xor    %9,%11;"
  746|   330M|        "ror    $0x6,%10;"
  747|   330M|        "xor    %7,%12;"
  748|   330M|        "add    %10,%12;"
  749|   330M|        "ror    $0x2,%11;"
  750|   330M|        "add    4+%16,%12;"
  751|   330M|        "mov    %9,%10;"
  752|   330M|        "add    %12,%8;"
  753|   330M|        "mov    %9,%12;"
  754|   330M|        "or     %4,%10;"
  755|   330M|        "add    %8,%5;"
  756|   330M|        "and    %4,%12;"
  757|   330M|        "and    %3,%10;"
  758|   330M|        "add    %11,%8;"
  759|   330M|        "or     %12,%10;"
  760|   330M|        "add    %10,%8;"
  761|   330M|        "mov    %5,%10;"
  762|   330M|        "ror    $0xe,%10;"
  763|   330M|        "mov    %8,%11;"
  764|   330M|        "xor    %5,%10;"
  765|   330M|        "ror    $0x9,%11;"
  766|   330M|        "mov    %6,%12;"
  767|   330M|        "xor    %8,%11;"
  768|   330M|        "ror    $0x5,%10;"
  769|   330M|        "xor    %k2,%12;"
  770|   330M|        "xor    %5,%10;"
  771|   330M|        "ror    $0xb,%11;"
  772|   330M|        "and    %5,%12;"
  773|   330M|        "xor    %8,%11;"
  774|   330M|        "ror    $0x6,%10;"
  775|   330M|        "xor    %k2,%12;"
  776|   330M|        "add    %10,%12;"
  777|   330M|        "ror    $0x2,%11;"
  778|   330M|        "add    8+%16,%12;"
  779|   330M|        "mov    %8,%10;"
  780|   330M|        "add    %12,%7;"
  781|   330M|        "mov    %8,%12;"
  782|   330M|        "or     %3,%10;"
  783|   330M|        "add    %7,%4;"
  784|   330M|        "and    %3,%12;"
  785|   330M|        "and    %9,%10;"
  786|   330M|        "add    %11,%7;"
  787|   330M|        "or     %12,%10;"
  788|   330M|        "add    %10,%7;"
  789|   330M|        "mov    %4,%10;"
  790|   330M|        "ror    $0xe,%10;"
  791|   330M|        "mov    %7,%11;"
  792|   330M|        "xor    %4,%10;"
  793|   330M|        "ror    $0x9,%11;"
  794|   330M|        "mov    %5,%12;"
  795|   330M|        "xor    %7,%11;"
  796|   330M|        "ror    $0x5,%10;"
  797|   330M|        "xor    %6,%12;"
  798|   330M|        "xor    %4,%10;"
  799|   330M|        "ror    $0xb,%11;"
  800|   330M|        "and    %4,%12;"
  801|   330M|        "xor    %7,%11;"
  802|   330M|        "ror    $0x6,%10;"
  803|   330M|        "xor    %6,%12;"
  804|   330M|        "add    %10,%12;"
  805|   330M|        "ror    $0x2,%11;"
  806|   330M|        "add    12+%16,%12;"
  807|   330M|        "mov    %7,%10;"
  808|   330M|        "add    %12,%k2;"
  809|   330M|        "mov    %7,%12;"
  810|   330M|        "or     %9,%10;"
  811|   330M|        "add    %k2,%3;"
  812|   330M|        "and    %9,%12;"
  813|   330M|        "and    %8,%10;"
  814|   330M|        "add    %11,%k2;"
  815|   330M|        "or     %12,%10;"
  816|   330M|        "add    %10,%k2;"
  817|   330M|        "paddd  0x10(%13),%%xmm5;"
  818|   330M|        "movdqa %%xmm5,%16;"
  819|   330M|        "add    $0x20,%13;"
  820|   330M|        "mov    %3,%10;"
  821|   330M|        "ror    $0xe,%10;"
  822|   330M|        "mov    %k2,%11;"
  823|   330M|        "xor    %3,%10;"
  824|   330M|        "ror    $0x9,%11;"
  825|   330M|        "mov    %4,%12;"
  826|   330M|        "xor    %k2,%11;"
  827|   330M|        "ror    $0x5,%10;"
  828|   330M|        "xor    %5,%12;"
  829|   330M|        "xor    %3,%10;"
  830|   330M|        "ror    $0xb,%11;"
  831|   330M|        "and    %3,%12;"
  832|   330M|        "xor    %k2,%11;"
  833|   330M|        "ror    $0x6,%10;"
  834|   330M|        "xor    %5,%12;"
  835|   330M|        "add    %10,%12;"
  836|   330M|        "ror    $0x2,%11;"
  837|   330M|        "add    %16,%12;"
  838|   330M|        "mov    %k2,%10;"
  839|   330M|        "add    %12,%6;"
  840|   330M|        "mov    %k2,%12;"
  841|   330M|        "or     %8,%10;"
  842|   330M|        "add    %6,%9;"
  843|   330M|        "and    %8,%12;"
  844|   330M|        "and    %7,%10;"
  845|   330M|        "add    %11,%6;"
  846|   330M|        "or     %12,%10;"
  847|   330M|        "add    %10,%6;"
  848|   330M|        "mov    %9,%10;"
  849|   330M|        "ror    $0xe,%10;"
  850|   330M|        "mov    %6,%11;"
  851|   330M|        "xor    %9,%10;"
  852|   330M|        "ror    $0x9,%11;"
  853|   330M|        "mov    %3,%12;"
  854|   330M|        "xor    %6,%11;"
  855|   330M|        "ror    $0x5,%10;"
  856|   330M|        "xor    %4,%12;"
  857|   330M|        "xor    %9,%10;"
  858|   330M|        "ror    $0xb,%11;"
  859|   330M|        "and    %9,%12;"
  860|   330M|        "xor    %6,%11;"
  861|   330M|        "ror    $0x6,%10;"
  862|   330M|        "xor    %4,%12;"
  863|   330M|        "add    %10,%12;"
  864|   330M|        "ror    $0x2,%11;"
  865|   330M|        "add    4+%16,%12;"
  866|   330M|        "mov    %6,%10;"
  867|   330M|        "add    %12,%5;"
  868|   330M|        "mov    %6,%12;"
  869|   330M|        "or     %7,%10;"
  870|   330M|        "add    %5,%8;"
  871|   330M|        "and    %7,%12;"
  872|   330M|        "and    %k2,%10;"
  873|   330M|        "add    %11,%5;"
  874|   330M|        "or     %12,%10;"
  875|   330M|        "add    %10,%5;"
  876|   330M|        "mov    %8,%10;"
  877|   330M|        "ror    $0xe,%10;"
  878|   330M|        "mov    %5,%11;"
  879|   330M|        "xor    %8,%10;"
  880|   330M|        "ror    $0x9,%11;"
  881|   330M|        "mov    %9,%12;"
  882|   330M|        "xor    %5,%11;"
  883|   330M|        "ror    $0x5,%10;"
  884|   330M|        "xor    %3,%12;"
  885|   330M|        "xor    %8,%10;"
  886|   330M|        "ror    $0xb,%11;"
  887|   330M|        "and    %8,%12;"
  888|   330M|        "xor    %5,%11;"
  889|   330M|        "ror    $0x6,%10;"
  890|   330M|        "xor    %3,%12;"
  891|   330M|        "add    %10,%12;"
  892|   330M|        "ror    $0x2,%11;"
  893|   330M|        "add    8+%16,%12;"
  894|   330M|        "mov    %5,%10;"
  895|   330M|        "add    %12,%4;"
  896|   330M|        "mov    %5,%12;"
  897|   330M|        "or     %k2,%10;"
  898|   330M|        "add    %4,%7;"
  899|   330M|        "and    %k2,%12;"
  900|   330M|        "and    %6,%10;"
  901|   330M|        "add    %11,%4;"
  902|   330M|        "or     %12,%10;"
  903|   330M|        "add    %10,%4;"
  904|   330M|        "mov    %7,%10;"
  905|   330M|        "ror    $0xe,%10;"
  906|   330M|        "mov    %4,%11;"
  907|   330M|        "xor    %7,%10;"
  908|   330M|        "ror    $0x9,%11;"
  909|   330M|        "mov    %8,%12;"
  910|   330M|        "xor    %4,%11;"
  911|   330M|        "ror    $0x5,%10;"
  912|   330M|        "xor    %9,%12;"
  913|   330M|        "xor    %7,%10;"
  914|   330M|        "ror    $0xb,%11;"
  915|   330M|        "and    %7,%12;"
  916|   330M|        "xor    %4,%11;"
  917|   330M|        "ror    $0x6,%10;"
  918|   330M|        "xor    %9,%12;"
  919|   330M|        "add    %10,%12;"
  920|   330M|        "ror    $0x2,%11;"
  921|   330M|        "add    12+%16,%12;"
  922|   330M|        "mov    %4,%10;"
  923|   330M|        "add    %12,%3;"
  924|   330M|        "mov    %4,%12;"
  925|   330M|        "or     %6,%10;"
  926|   330M|        "add    %3,%k2;"
  927|   330M|        "and    %6,%12;"
  928|   330M|        "and    %5,%10;"
  929|   330M|        "add    %11,%3;"
  930|   330M|        "or     %12,%10;"
  931|   330M|        "add    %10,%3;"
  932|   330M|        "movdqa %%xmm6,%%xmm4;"
  933|   330M|        "movdqa %%xmm7,%%xmm5;"
  934|   330M|        "sub    $0x1,%1;"
  935|   330M|        "jne    Lloop2_%=;"
  936|   330M|        "add    (%0),%3;"
  937|   330M|        "mov    %3,(%0);"
  938|   330M|        "add    0x4(%0),%4;"
  939|   330M|        "mov    %4,0x4(%0);"
  940|   330M|        "add    0x8(%0),%5;"
  941|   330M|        "mov    %5,0x8(%0);"
  942|   330M|        "add    0xc(%0),%6;"
  943|   330M|        "mov    %6,0xc(%0);"
  944|   330M|        "add    0x10(%0),%k2;"
  945|   330M|        "mov    %k2,0x10(%0);"
  946|   330M|        "add    0x14(%0),%7;"
  947|   330M|        "mov    %7,0x14(%0);"
  948|   330M|        "add    0x18(%0),%8;"
  949|   330M|        "mov    %8,0x18(%0);"
  950|   330M|        "add    0x1c(%0),%9;"
  951|   330M|        "mov    %9,0x1c(%0);"
  952|   330M|        "mov    %15,%1;"
  953|   330M|        "add    $0x40,%1;"
  954|   330M|        "cmp    %14,%1;"
  955|   330M|        "jne    Lloop0_%=;"
  956|       |
  957|   330M|        "Ldone_hash_%=:"
  958|       |
  959|   330M|        : "+r"(s), "+r"(chunk), "+r"(blocks), "=r"(a), "=r"(b), "=r"(c), "=r"(d), /* e = chunk */ "=r"(f), "=r"(g), "=r"(h), "=r"(y0), "=r"(y1), "=r"(y2), "=r"(tbl), "+m"(inp_end), "+m"(inp), "+m"(xfer)
  960|   330M|        : "m"(K256), "m"(FLIP_MASK), "m"(SHUF_00BA), "m"(SHUF_DC00)
  961|   330M|        : "cc", "memory", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "xmm8", "xmm9", "xmm10", "xmm11", "xmm12"
  962|   330M|   );
  963|   330M|}

_ZN7CSHA512C2Ev:
  155|  9.99k|{
  156|  9.99k|    sha512::Initialize(s);
  157|  9.99k|}
_ZN7CSHA5125WriteEPKhm:
  160|  69.9k|{
  161|  69.9k|    const unsigned char* end = data + len;
  162|  69.9k|    size_t bufsize = bytes % 128;
  163|  69.9k|    if (bufsize && bufsize + len >= 128) {
  ------------------
  |  Branch (163:9): [True: 59.9k, False: 9.99k]
  |  Branch (163:20): [True: 9.99k, False: 49.9k]
  ------------------
  164|       |        // Fill the buffer, and process it.
  165|  9.99k|        memcpy(buf + bufsize, data, 128 - bufsize);
  166|  9.99k|        bytes += 128 - bufsize;
  167|  9.99k|        data += 128 - bufsize;
  168|  9.99k|        sha512::Transform(s, buf);
  169|  9.99k|        bufsize = 0;
  170|  9.99k|    }
  171|  69.9k|    while (end - data >= 128) {
  ------------------
  |  Branch (171:12): [True: 0, False: 69.9k]
  ------------------
  172|       |        // Process full chunks directly from the source.
  173|      0|        sha512::Transform(s, data);
  174|      0|        data += 128;
  175|      0|        bytes += 128;
  176|      0|    }
  177|  69.9k|    if (end > data) {
  ------------------
  |  Branch (177:9): [True: 59.9k, False: 9.99k]
  ------------------
  178|       |        // Fill the buffer with what remains.
  179|  59.9k|        memcpy(buf + bufsize, data, end - data);
  180|  59.9k|        bytes += end - data;
  181|  59.9k|    }
  182|  69.9k|    return *this;
  183|  69.9k|}
_ZN7CSHA5128FinalizeEPh:
  186|  9.99k|{
  187|  9.99k|    static const unsigned char pad[128] = {0x80};
  188|  9.99k|    unsigned char sizedesc[16] = {0x00};
  189|  9.99k|    WriteBE64(sizedesc + 8, bytes << 3);
  190|  9.99k|    Write(pad, 1 + ((239 - (bytes % 128)) % 128));
  191|  9.99k|    Write(sizedesc, 16);
  192|  9.99k|    WriteBE64(hash, s[0]);
  193|  9.99k|    WriteBE64(hash + 8, s[1]);
  194|  9.99k|    WriteBE64(hash + 16, s[2]);
  195|  9.99k|    WriteBE64(hash + 24, s[3]);
  196|  9.99k|    WriteBE64(hash + 32, s[4]);
  197|  9.99k|    WriteBE64(hash + 40, s[5]);
  198|  9.99k|    WriteBE64(hash + 48, s[6]);
  199|  9.99k|    WriteBE64(hash + 56, s[7]);
  200|  9.99k|}
_ZN7CSHA5125ResetEv:
  203|  9.99k|{
  204|  9.99k|    bytes = 0;
  205|  9.99k|    sha512::Initialize(s);
  206|  9.99k|    return *this;
  207|  9.99k|}
sha512.cpp:_ZN12_GLOBAL__N_16sha51210InitializeEPm:
   35|  19.9k|{
   36|  19.9k|    s[0] = 0x6a09e667f3bcc908ull;
   37|  19.9k|    s[1] = 0xbb67ae8584caa73bull;
   38|  19.9k|    s[2] = 0x3c6ef372fe94f82bull;
   39|  19.9k|    s[3] = 0xa54ff53a5f1d36f1ull;
   40|  19.9k|    s[4] = 0x510e527fade682d1ull;
   41|  19.9k|    s[5] = 0x9b05688c2b3e6c1full;
   42|  19.9k|    s[6] = 0x1f83d9abfb41bd6bull;
   43|  19.9k|    s[7] = 0x5be0cd19137e2179ull;
   44|  19.9k|}
sha512.cpp:_ZN12_GLOBAL__N_16sha5129TransformEPmPKh:
   48|  9.99k|{
   49|  9.99k|    uint64_t a = s[0], b = s[1], c = s[2], d = s[3], e = s[4], f = s[5], g = s[6], h = s[7];
   50|  9.99k|    uint64_t w0, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11, w12, w13, w14, w15;
   51|       |
   52|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x428a2f98d728ae22ull, w0 = ReadBE64(chunk + 0));
   53|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x7137449123ef65cdull, w1 = ReadBE64(chunk + 8));
   54|  9.99k|    Round(g, h, a, b, c, d, e, f, 0xb5c0fbcfec4d3b2full, w2 = ReadBE64(chunk + 16));
   55|  9.99k|    Round(f, g, h, a, b, c, d, e, 0xe9b5dba58189dbbcull, w3 = ReadBE64(chunk + 24));
   56|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x3956c25bf348b538ull, w4 = ReadBE64(chunk + 32));
   57|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x59f111f1b605d019ull, w5 = ReadBE64(chunk + 40));
   58|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x923f82a4af194f9bull, w6 = ReadBE64(chunk + 48));
   59|  9.99k|    Round(b, c, d, e, f, g, h, a, 0xab1c5ed5da6d8118ull, w7 = ReadBE64(chunk + 56));
   60|  9.99k|    Round(a, b, c, d, e, f, g, h, 0xd807aa98a3030242ull, w8 = ReadBE64(chunk + 64));
   61|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x12835b0145706fbeull, w9 = ReadBE64(chunk + 72));
   62|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x243185be4ee4b28cull, w10 = ReadBE64(chunk + 80));
   63|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x550c7dc3d5ffb4e2ull, w11 = ReadBE64(chunk + 88));
   64|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x72be5d74f27b896full, w12 = ReadBE64(chunk + 96));
   65|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x80deb1fe3b1696b1ull, w13 = ReadBE64(chunk + 104));
   66|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x9bdc06a725c71235ull, w14 = ReadBE64(chunk + 112));
   67|  9.99k|    Round(b, c, d, e, f, g, h, a, 0xc19bf174cf692694ull, w15 = ReadBE64(chunk + 120));
   68|       |
   69|  9.99k|    Round(a, b, c, d, e, f, g, h, 0xe49b69c19ef14ad2ull, w0 += sigma1(w14) + w9 + sigma0(w1));
   70|  9.99k|    Round(h, a, b, c, d, e, f, g, 0xefbe4786384f25e3ull, w1 += sigma1(w15) + w10 + sigma0(w2));
   71|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x0fc19dc68b8cd5b5ull, w2 += sigma1(w0) + w11 + sigma0(w3));
   72|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x240ca1cc77ac9c65ull, w3 += sigma1(w1) + w12 + sigma0(w4));
   73|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x2de92c6f592b0275ull, w4 += sigma1(w2) + w13 + sigma0(w5));
   74|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x4a7484aa6ea6e483ull, w5 += sigma1(w3) + w14 + sigma0(w6));
   75|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x5cb0a9dcbd41fbd4ull, w6 += sigma1(w4) + w15 + sigma0(w7));
   76|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x76f988da831153b5ull, w7 += sigma1(w5) + w0 + sigma0(w8));
   77|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x983e5152ee66dfabull, w8 += sigma1(w6) + w1 + sigma0(w9));
   78|  9.99k|    Round(h, a, b, c, d, e, f, g, 0xa831c66d2db43210ull, w9 += sigma1(w7) + w2 + sigma0(w10));
   79|  9.99k|    Round(g, h, a, b, c, d, e, f, 0xb00327c898fb213full, w10 += sigma1(w8) + w3 + sigma0(w11));
   80|  9.99k|    Round(f, g, h, a, b, c, d, e, 0xbf597fc7beef0ee4ull, w11 += sigma1(w9) + w4 + sigma0(w12));
   81|  9.99k|    Round(e, f, g, h, a, b, c, d, 0xc6e00bf33da88fc2ull, w12 += sigma1(w10) + w5 + sigma0(w13));
   82|  9.99k|    Round(d, e, f, g, h, a, b, c, 0xd5a79147930aa725ull, w13 += sigma1(w11) + w6 + sigma0(w14));
   83|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x06ca6351e003826full, w14 += sigma1(w12) + w7 + sigma0(w15));
   84|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x142929670a0e6e70ull, w15 += sigma1(w13) + w8 + sigma0(w0));
   85|       |
   86|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x27b70a8546d22ffcull, w0 += sigma1(w14) + w9 + sigma0(w1));
   87|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x2e1b21385c26c926ull, w1 += sigma1(w15) + w10 + sigma0(w2));
   88|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x4d2c6dfc5ac42aedull, w2 += sigma1(w0) + w11 + sigma0(w3));
   89|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x53380d139d95b3dfull, w3 += sigma1(w1) + w12 + sigma0(w4));
   90|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x650a73548baf63deull, w4 += sigma1(w2) + w13 + sigma0(w5));
   91|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x766a0abb3c77b2a8ull, w5 += sigma1(w3) + w14 + sigma0(w6));
   92|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x81c2c92e47edaee6ull, w6 += sigma1(w4) + w15 + sigma0(w7));
   93|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x92722c851482353bull, w7 += sigma1(w5) + w0 + sigma0(w8));
   94|  9.99k|    Round(a, b, c, d, e, f, g, h, 0xa2bfe8a14cf10364ull, w8 += sigma1(w6) + w1 + sigma0(w9));
   95|  9.99k|    Round(h, a, b, c, d, e, f, g, 0xa81a664bbc423001ull, w9 += sigma1(w7) + w2 + sigma0(w10));
   96|  9.99k|    Round(g, h, a, b, c, d, e, f, 0xc24b8b70d0f89791ull, w10 += sigma1(w8) + w3 + sigma0(w11));
   97|  9.99k|    Round(f, g, h, a, b, c, d, e, 0xc76c51a30654be30ull, w11 += sigma1(w9) + w4 + sigma0(w12));
   98|  9.99k|    Round(e, f, g, h, a, b, c, d, 0xd192e819d6ef5218ull, w12 += sigma1(w10) + w5 + sigma0(w13));
   99|  9.99k|    Round(d, e, f, g, h, a, b, c, 0xd69906245565a910ull, w13 += sigma1(w11) + w6 + sigma0(w14));
  100|  9.99k|    Round(c, d, e, f, g, h, a, b, 0xf40e35855771202aull, w14 += sigma1(w12) + w7 + sigma0(w15));
  101|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x106aa07032bbd1b8ull, w15 += sigma1(w13) + w8 + sigma0(w0));
  102|       |
  103|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x19a4c116b8d2d0c8ull, w0 += sigma1(w14) + w9 + sigma0(w1));
  104|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x1e376c085141ab53ull, w1 += sigma1(w15) + w10 + sigma0(w2));
  105|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x2748774cdf8eeb99ull, w2 += sigma1(w0) + w11 + sigma0(w3));
  106|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x34b0bcb5e19b48a8ull, w3 += sigma1(w1) + w12 + sigma0(w4));
  107|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x391c0cb3c5c95a63ull, w4 += sigma1(w2) + w13 + sigma0(w5));
  108|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x4ed8aa4ae3418acbull, w5 += sigma1(w3) + w14 + sigma0(w6));
  109|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x5b9cca4f7763e373ull, w6 += sigma1(w4) + w15 + sigma0(w7));
  110|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x682e6ff3d6b2b8a3ull, w7 += sigma1(w5) + w0 + sigma0(w8));
  111|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x748f82ee5defb2fcull, w8 += sigma1(w6) + w1 + sigma0(w9));
  112|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x78a5636f43172f60ull, w9 += sigma1(w7) + w2 + sigma0(w10));
  113|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x84c87814a1f0ab72ull, w10 += sigma1(w8) + w3 + sigma0(w11));
  114|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x8cc702081a6439ecull, w11 += sigma1(w9) + w4 + sigma0(w12));
  115|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x90befffa23631e28ull, w12 += sigma1(w10) + w5 + sigma0(w13));
  116|  9.99k|    Round(d, e, f, g, h, a, b, c, 0xa4506cebde82bde9ull, w13 += sigma1(w11) + w6 + sigma0(w14));
  117|  9.99k|    Round(c, d, e, f, g, h, a, b, 0xbef9a3f7b2c67915ull, w14 += sigma1(w12) + w7 + sigma0(w15));
  118|  9.99k|    Round(b, c, d, e, f, g, h, a, 0xc67178f2e372532bull, w15 += sigma1(w13) + w8 + sigma0(w0));
  119|       |
  120|  9.99k|    Round(a, b, c, d, e, f, g, h, 0xca273eceea26619cull, w0 += sigma1(w14) + w9 + sigma0(w1));
  121|  9.99k|    Round(h, a, b, c, d, e, f, g, 0xd186b8c721c0c207ull, w1 += sigma1(w15) + w10 + sigma0(w2));
  122|  9.99k|    Round(g, h, a, b, c, d, e, f, 0xeada7dd6cde0eb1eull, w2 += sigma1(w0) + w11 + sigma0(w3));
  123|  9.99k|    Round(f, g, h, a, b, c, d, e, 0xf57d4f7fee6ed178ull, w3 += sigma1(w1) + w12 + sigma0(w4));
  124|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x06f067aa72176fbaull, w4 += sigma1(w2) + w13 + sigma0(w5));
  125|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x0a637dc5a2c898a6ull, w5 += sigma1(w3) + w14 + sigma0(w6));
  126|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x113f9804bef90daeull, w6 += sigma1(w4) + w15 + sigma0(w7));
  127|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x1b710b35131c471bull, w7 += sigma1(w5) + w0 + sigma0(w8));
  128|  9.99k|    Round(a, b, c, d, e, f, g, h, 0x28db77f523047d84ull, w8 += sigma1(w6) + w1 + sigma0(w9));
  129|  9.99k|    Round(h, a, b, c, d, e, f, g, 0x32caab7b40c72493ull, w9 += sigma1(w7) + w2 + sigma0(w10));
  130|  9.99k|    Round(g, h, a, b, c, d, e, f, 0x3c9ebe0a15c9bebcull, w10 += sigma1(w8) + w3 + sigma0(w11));
  131|  9.99k|    Round(f, g, h, a, b, c, d, e, 0x431d67c49c100d4cull, w11 += sigma1(w9) + w4 + sigma0(w12));
  132|  9.99k|    Round(e, f, g, h, a, b, c, d, 0x4cc5d4becb3e42b6ull, w12 += sigma1(w10) + w5 + sigma0(w13));
  133|  9.99k|    Round(d, e, f, g, h, a, b, c, 0x597f299cfc657e2aull, w13 += sigma1(w11) + w6 + sigma0(w14));
  134|  9.99k|    Round(c, d, e, f, g, h, a, b, 0x5fcb6fab3ad6faecull, w14 + sigma1(w12) + w7 + sigma0(w15));
  135|  9.99k|    Round(b, c, d, e, f, g, h, a, 0x6c44198c4a475817ull, w15 + sigma1(w13) + w8 + sigma0(w0));
  136|       |
  137|  9.99k|    s[0] += a;
  138|  9.99k|    s[1] += b;
  139|  9.99k|    s[2] += c;
  140|  9.99k|    s[3] += d;
  141|  9.99k|    s[4] += e;
  142|  9.99k|    s[5] += f;
  143|  9.99k|    s[6] += g;
  144|  9.99k|    s[7] += h;
  145|  9.99k|}
sha512.cpp:_ZN12_GLOBAL__N_16sha5125RoundEmmmRmmmmS1_mm:
   26|   799k|{
   27|   799k|    uint64_t t1 = h + Sigma1(e) + Ch(e, f, g) + k + w;
   28|   799k|    uint64_t t2 = Sigma0(a) + Maj(a, b, c);
   29|   799k|    d += t1;
   30|   799k|    h = t1 + t2;
   31|   799k|}
sha512.cpp:_ZN12_GLOBAL__N_16sha5126Sigma1Em:
   20|   799k|uint64_t inline Sigma1(uint64_t x) { return (x >> 14 | x << 50) ^ (x >> 18 | x << 46) ^ (x >> 41 | x << 23); }
sha512.cpp:_ZN12_GLOBAL__N_16sha5122ChEmmm:
   17|   799k|uint64_t inline Ch(uint64_t x, uint64_t y, uint64_t z) { return z ^ (x & (y ^ z)); }
sha512.cpp:_ZN12_GLOBAL__N_16sha5126Sigma0Em:
   19|   799k|uint64_t inline Sigma0(uint64_t x) { return (x >> 28 | x << 36) ^ (x >> 34 | x << 30) ^ (x >> 39 | x << 25); }
sha512.cpp:_ZN12_GLOBAL__N_16sha5123MajEmmm:
   18|   799k|uint64_t inline Maj(uint64_t x, uint64_t y, uint64_t z) { return (x & y) | (z & (x | y)); }
sha512.cpp:_ZN12_GLOBAL__N_16sha5126sigma1Em:
   22|   639k|uint64_t inline sigma1(uint64_t x) { return (x >> 19 | x << 45) ^ (x >> 61 | x << 3) ^ (x >> 6); }
sha512.cpp:_ZN12_GLOBAL__N_16sha5126sigma0Em:
   21|   639k|uint64_t inline sigma0(uint64_t x) { return (x >> 1 | x << 63) ^ (x >> 8 | x << 56) ^ (x >> 7); }

_ZN10CSipHasherC2Emm:
   19|  97.7M|{
   20|  97.7M|    v[0] = 0x736f6d6570736575ULL ^ k0;
   21|  97.7M|    v[1] = 0x646f72616e646f6dULL ^ k1;
   22|  97.7M|    v[2] = 0x6c7967656e657261ULL ^ k0;
   23|  97.7M|    v[3] = 0x7465646279746573ULL ^ k1;
   24|  97.7M|    count = 0;
   25|  97.7M|    tmp = 0;
   26|  97.7M|}
_ZN10CSipHasher5WriteEm:
   29|   403M|{
   30|   403M|    uint64_t v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];
   31|       |
   32|   403M|    assert(count % 8 == 0);
   33|       |
   34|   403M|    v3 ^= data;
   35|   403M|    SIPROUND;
  ------------------
  |  |    9|   403M|#define SIPROUND do { \
  |  |   10|   403M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|   403M|    v0 = std::rotl(v0, 32); \
  |  |   12|   403M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|   403M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|   403M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|   403M|    v2 = std::rotl(v2, 32); \
  |  |   16|   403M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   36|   403M|    SIPROUND;
  ------------------
  |  |    9|   403M|#define SIPROUND do { \
  |  |   10|   403M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|   403M|    v0 = std::rotl(v0, 32); \
  |  |   12|   403M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|   403M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|   403M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|   403M|    v2 = std::rotl(v2, 32); \
  |  |   16|   403M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   37|   403M|    v0 ^= data;
   38|       |
   39|   403M|    v[0] = v0;
   40|   403M|    v[1] = v1;
   41|   403M|    v[2] = v2;
   42|   403M|    v[3] = v3;
   43|       |
   44|   403M|    count += 8;
   45|   403M|    return *this;
   46|   403M|}
_ZN10CSipHasher5WriteE4SpanIKhE:
   49|   132M|{
   50|   132M|    uint64_t v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];
   51|   132M|    uint64_t t = tmp;
   52|   132M|    uint8_t c = count;
   53|       |
   54|  3.01G|    while (data.size() > 0) {
  ------------------
  |  Branch (54:12): [True: 2.87G, False: 132M]
  ------------------
   55|  2.87G|        t |= uint64_t{data.front()} << (8 * (c % 8));
   56|  2.87G|        c++;
   57|  2.87G|        if ((c & 7) == 0) {
  ------------------
  |  Branch (57:13): [True: 345M, False: 2.53G]
  ------------------
   58|   345M|            v3 ^= t;
   59|   345M|            SIPROUND;
  ------------------
  |  |    9|   345M|#define SIPROUND do { \
  |  |   10|   345M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|   345M|    v0 = std::rotl(v0, 32); \
  |  |   12|   345M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|   345M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|   345M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|   345M|    v2 = std::rotl(v2, 32); \
  |  |   16|   345M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   60|   345M|            SIPROUND;
  ------------------
  |  |    9|   345M|#define SIPROUND do { \
  |  |   10|   345M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|   345M|    v0 = std::rotl(v0, 32); \
  |  |   12|   345M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|   345M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|   345M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|   345M|    v2 = std::rotl(v2, 32); \
  |  |   16|   345M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   61|   345M|            v0 ^= t;
   62|   345M|            t = 0;
   63|   345M|        }
   64|  2.87G|        data = data.subspan(1);
   65|  2.87G|    }
   66|       |
   67|   132M|    v[0] = v0;
   68|   132M|    v[1] = v1;
   69|   132M|    v[2] = v2;
   70|   132M|    v[3] = v3;
   71|   132M|    count = c;
   72|   132M|    tmp = t;
   73|       |
   74|   132M|    return *this;
   75|   132M|}
_ZNK10CSipHasher8FinalizeEv:
   78|  97.7M|{
   79|  97.7M|    uint64_t v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];
   80|       |
   81|  97.7M|    uint64_t t = tmp | (((uint64_t)count) << 56);
   82|       |
   83|  97.7M|    v3 ^= t;
   84|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   85|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   86|  97.7M|    v0 ^= t;
   87|  97.7M|    v2 ^= 0xFF;
   88|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   89|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   90|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   91|  97.7M|    SIPROUND;
  ------------------
  |  |    9|  97.7M|#define SIPROUND do { \
  |  |   10|  97.7M|    v0 += v1; v1 = std::rotl(v1, 13); v1 ^= v0; \
  |  |   11|  97.7M|    v0 = std::rotl(v0, 32); \
  |  |   12|  97.7M|    v2 += v3; v3 = std::rotl(v3, 16); v3 ^= v2; \
  |  |   13|  97.7M|    v0 += v3; v3 = std::rotl(v3, 21); v3 ^= v0; \
  |  |   14|  97.7M|    v2 += v1; v1 = std::rotl(v1, 17); v1 ^= v2; \
  |  |   15|  97.7M|    v2 = std::rotl(v2, 32); \
  |  |   16|  97.7M|} while (0)
  |  |  ------------------
  |  |  |  Branch (16:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
   92|  97.7M|    return v0 ^ v1 ^ v2 ^ v3;
   93|  97.7M|}

_ZN10HashWriter5writeE4SpanIKSt4byteE:
  107|   585M|    {
  108|   585M|        ctx.Write(UCharCast(src.data()), src.size());
  109|   585M|    }
_ZN10HashWriter7GetHashEv:
  115|   132M|    uint256 GetHash() {
  116|   132M|        uint256 result;
  117|   132M|        ctx.Finalize(result.begin());
  118|   132M|        ctx.Reset().Write(result.begin(), CSHA256::OUTPUT_SIZE).Finalize(result.begin());
  119|   132M|        return result;
  120|   132M|    }
_ZN10HashWriter12GetCheapHashEv:
  135|   132M|    inline uint64_t GetCheapHash() {
  136|   132M|        uint256 result = GetHash();
  137|   132M|        return ReadLE64(result.begin());
  138|   132M|    }
_ZN10HashWriterlsINSt3__16vectorIhNS1_9allocatorIhEEEEEERS_RKT_:
  142|   152M|    {
  143|   152M|        ::Serialize(*this, obj);
  144|   152M|        return *this;
  145|   152M|    }
_ZN10HashWriterlsI7uint256EERS_RKT_:
  142|   132M|    {
  143|   132M|        ::Serialize(*this, obj);
  144|   132M|        return *this;
  145|   132M|    }
_ZN10HashWriterlsI4SpanIKhEEERS_RKT_:
  142|   132M|    {
  143|   132M|        ::Serialize(*this, obj);
  144|   132M|        return *this;
  145|   132M|    }
_ZN10HashWriterlsImEERS_RKT_:
  142|  39.1M|    {
  143|  39.1M|        ::Serialize(*this, obj);
  144|  39.1M|        return *this;
  145|  39.1M|    }
_ZN10HashWriterlsIhEERS_RKT_:
  142|  54.4M|    {
  143|  54.4M|        ::Serialize(*this, obj);
  144|  54.4M|        return *this;
  145|  54.4M|    }
_ZN10HashWriterlsIiEERS_RKT_:
  142|  54.4M|    {
  143|  54.4M|        ::Serialize(*this, obj);
  144|  54.4M|        return *this;
  145|  54.4M|    }
_ZN10HashWriterlsINSt3__16vectorIbNS1_9allocatorIbEEEEEERS_RKT_:
  142|  1.79k|    {
  143|  1.79k|        ::Serialize(*this, obj);
  144|  1.79k|        return *this;
  145|  1.79k|    }

_ZN10interfaces5ChainD2Ev:
  131|      2|    virtual ~Chain() = default;

_ZN11ECC_ContextD2Ev:
  482|      2|{
  483|      2|    ECC_Stop();
  484|      2|}
key.cpp:_ZL8ECC_Stopv:
  467|      2|static void ECC_Stop() {
  468|      2|    secp256k1_context *ctx = secp256k1_context_sign;
  469|      2|    secp256k1_context_sign = nullptr;
  470|       |
  471|      2|    if (ctx) {
  ------------------
  |  Branch (471:9): [True: 2, False: 0]
  ------------------
  472|      2|        secp256k1_context_destroy(ctx);
  473|      2|    }
  474|      2|}

_Z11LogInstancev:
   25|  35.4M|{
   26|       |/**
   27|       | * NOTE: the logger instances is leaked on exit. This is ugly, but will be
   28|       | * cleaned up by the OS/libc. Defining a logger as a global object doesn't work
   29|       | * since the order of destruction of static/global objects is undefined.
   30|       | * Consider if the logger gets destroyed, and then some later destructor calls
   31|       | * LogPrintf, maybe indirectly, and you get a core dump at shutdown trying to
   32|       | * access the logger. When the shutdown sequence is fully audited and tested,
   33|       | * explicit destruction of these objects can be implemented by changing this
   34|       | * from a raw pointer to a std::unique_ptr.
   35|       | * Since the ~Logger() destructor is never called, the Logger class and all
   36|       | * its subclasses must have implicitly-defined destructors.
   37|       | *
   38|       | * This method of initialization was originally introduced in
   39|       | * ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.
   40|       | */
   41|  35.4M|    static BCLog::Logger* g_logger{new BCLog::Logger()};
   42|  35.4M|    return *g_logger;
   43|  35.4M|}
_ZN5BCLog6Logger20DisconnectTestLoggerEv:
   97|      2|{
   98|      2|    StdLockGuard scoped_lock(m_cs);
   99|      2|    m_buffering = true;
  100|      2|    if (m_fileout != nullptr) fclose(m_fileout);
  ------------------
  |  Branch (100:9): [True: 0, False: 2]
  ------------------
  101|      2|    m_fileout = nullptr;
  102|      2|    m_print_callbacks.clear();
  103|      2|    m_max_buffer_memusage = DEFAULT_MAX_LOG_BUFFER;
  104|      2|    m_cur_buffer_memusage = 0;
  105|      2|    m_buffer_lines_discarded = 0;
  106|      2|    m_msgs_before_open.clear();
  107|      2|}
_ZNK5BCLog6Logger15WillLogCategoryENS_8LogFlagsE:
  148|  35.4M|{
  149|  35.4M|    return (m_categories.load(std::memory_order_relaxed) & category) != 0;
  150|  35.4M|}
_ZNK5BCLog6Logger20WillLogCategoryLevelENS_8LogFlagsENS_5LevelE:
  153|  35.4M|{
  154|       |    // Log messages at Info, Warning and Error level unconditionally, so that
  155|       |    // important troubleshooting information doesn't get lost.
  156|  35.4M|    if (level >= BCLog::Level::Info) return true;
  ------------------
  |  Branch (156:9): [True: 0, False: 35.4M]
  ------------------
  157|       |
  158|  35.4M|    if (!WillLogCategory(category)) return false;
  ------------------
  |  Branch (158:9): [True: 35.4M, False: 0]
  ------------------
  159|       |
  160|      0|    StdLockGuard scoped_lock(m_cs);
  161|      0|    const auto it{m_category_log_levels.find(category)};
  162|      0|    return level >= (it == m_category_log_levels.end() ? LogLevel() : it->second);
  ------------------
  |  Branch (162:22): [True: 0, False: 0]
  ------------------
  163|  35.4M|}

_ZNK5BCLog6Logger7EnabledEv:
  150|  2.49k|        {
  151|  2.49k|            StdLockGuard scoped_lock(m_cs);
  152|  2.49k|            return m_buffering || m_print_to_console || m_print_to_file || !m_print_callbacks.empty();
  ------------------
  |  Branch (152:20): [True: 0, False: 2.49k]
  |  Branch (152:35): [True: 0, False: 2.49k]
  |  Branch (152:57): [True: 0, False: 2.49k]
  |  Branch (152:76): [True: 0, False: 2.49k]
  ------------------
  153|  2.49k|        }
addrman.cpp:_ZL17LogAcceptCategoryN5BCLog8LogFlagsENS_5LevelE:
  234|  35.4M|{
  235|  35.4M|    return LogInstance().WillLogCategoryLevel(category, level);
  236|  35.4M|}
_Z22LogPrintFormatInternalIJPKcNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEvNS2_17basic_string_viewIcS5_EESA_iN5BCLog8LogFlagsENSB_5LevelEN4util21ConstevalFormatStringIXsZT_EEEDpRKT_:
  243|  2.49k|{
  244|  2.49k|    if (LogInstance().Enabled()) {
  ------------------
  |  Branch (244:9): [True: 0, False: 2.49k]
  ------------------
  245|      0|        std::string log_msg;
  246|      0|        try {
  247|      0|            log_msg = tfm::format(fmt, args...);
  248|      0|        } catch (tinyformat::format_error& fmterr) {
  249|      0|            log_msg = "Error \"" + std::string{fmterr.what()} + "\" while formatting log message: " + fmt.fmt;
  250|      0|        }
  251|      0|        LogInstance().LogPrintStr(log_msg, logging_function, source_file, source_line, flag, level);
  252|      0|    }
  253|  2.49k|}

_ZN5BCLog5TimerINSt3__16chrono8durationIxNS1_5ratioILl1ELl1000EEEEEEC2ENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEESD_NS_8LogFlagsEb:
   33|  2.49k|        : m_prefix(std::move(prefix)),
   34|  2.49k|          m_title(std::move(end_msg)),
   35|  2.49k|          m_log_category(log_category),
   36|  2.49k|          m_message_on_completion(msg_on_completion)
   37|  2.49k|    {
   38|  2.49k|        this->Log(strprintf("%s started", m_title));
  ------------------
  |  | 1172|  2.49k|#define strprintf tfm::format
  ------------------
   39|  2.49k|        m_start_t = std::chrono::steady_clock::now();
   40|  2.49k|    }
_ZN5BCLog5TimerINSt3__16chrono8durationIxNS1_5ratioILl1ELl1000EEEEEE3LogERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   52|  4.99k|    {
   53|  4.99k|        const std::string full_msg = this->LogMsg(msg);
   54|       |
   55|  4.99k|        if (m_log_category == BCLog::LogFlags::ALL) {
  ------------------
  |  Branch (55:13): [True: 0, False: 4.99k]
  ------------------
   56|      0|            LogPrintf("%s\n", full_msg);
  ------------------
  |  |  266|      0|#define LogPrintf(...) LogInfo(__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  261|      0|#define LogInfo(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Info, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   57|  4.99k|        } else {
   58|  4.99k|            LogDebug(m_log_category, "%s\n", full_msg);
  ------------------
  |  |  280|  4.99k|#define LogDebug(category, ...) LogPrintLevel(category, BCLog::Level::Debug, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  273|  4.99k|    do {                                                  \
  |  |  |  |  274|  4.99k|        if (LogAcceptCategory((category), (level))) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:13): [True: 0, False: 4.99k]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|            LogPrintLevel_(category, level, __VA_ARGS__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  255|      0|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  276|      0|        }                                                 \
  |  |  |  |  277|  4.99k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (277:14): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|  4.99k|        }
   60|  4.99k|    }
_ZN5BCLog5TimerINSt3__16chrono8durationIxNS1_5ratioILl1ELl1000EEEEEE6LogMsgERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   63|  4.99k|    {
   64|  4.99k|        const auto end_time{std::chrono::steady_clock::now()};
   65|  4.99k|        if (!m_start_t) {
  ------------------
  |  Branch (65:13): [True: 2.49k, False: 2.49k]
  ------------------
   66|  2.49k|            return strprintf("%s: %s", m_prefix, msg);
  ------------------
  |  | 1172|  2.49k|#define strprintf tfm::format
  ------------------
   67|  2.49k|        }
   68|  2.49k|        const auto duration{end_time - *m_start_t};
   69|       |
   70|       |        if constexpr (std::is_same<TimeType, std::chrono::microseconds>::value) {
   71|       |            return strprintf("%s: %s (%iμs)", m_prefix, msg, Ticks<std::chrono::microseconds>(duration));
   72|  2.49k|        } else if constexpr (std::is_same<TimeType, std::chrono::milliseconds>::value) {
   73|  2.49k|            return strprintf("%s: %s (%.2fms)", m_prefix, msg, Ticks<MillisecondsDouble>(duration));
  ------------------
  |  | 1172|  2.49k|#define strprintf tfm::format
  ------------------
   74|       |        } else if constexpr (std::is_same<TimeType, std::chrono::seconds>::value) {
   75|       |            return strprintf("%s: %s (%.2fs)", m_prefix, msg, Ticks<SecondsDouble>(duration));
   76|       |        } else {
   77|       |            static_assert(ALWAYS_FALSE<TimeType>, "Error: unexpected time type");
   78|       |        }
   79|  2.49k|    }
_ZN5BCLog5TimerINSt3__16chrono8durationIxNS1_5ratioILl1ELl1000EEEEEED2Ev:
   43|  2.49k|    {
   44|  2.49k|        if (m_message_on_completion) {
  ------------------
  |  Branch (44:13): [True: 0, False: 2.49k]
  ------------------
   45|      0|            this->Log(strprintf("%s completed", m_title));
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   46|  2.49k|        } else {
   47|  2.49k|            this->Log("completed");
   48|  2.49k|        }
   49|  2.49k|    }

_Z11BytesToBitsRKNSt3__16vectorIhNS_9allocatorIhEEEE:
   22|  2.49k|{
   23|  2.49k|    std::vector<bool> ret(bytes.size() * 8);
   24|   202M|    for (unsigned int p = 0; p < ret.size(); p++) {
  ------------------
  |  Branch (24:30): [True: 202M, False: 2.49k]
  ------------------
   25|   202M|        ret[p] = (bytes[p / 8] & (1 << (p % 8))) != 0;
   26|   202M|    }
   27|  2.49k|    return ret;
   28|  2.49k|}

_ZNK8CNetAddr16GetBIP155NetworkEv:
   27|  23.1M|{
   28|  23.1M|    switch (m_net) {
  ------------------
  |  Branch (28:13): [True: 0, False: 23.1M]
  ------------------
   29|  4.91M|    case NET_IPV4:
  ------------------
  |  Branch (29:5): [True: 4.91M, False: 18.2M]
  ------------------
   30|  4.91M|        return BIP155Network::IPV4;
   31|  4.47M|    case NET_IPV6:
  ------------------
  |  Branch (31:5): [True: 4.47M, False: 18.6M]
  ------------------
   32|  4.47M|        return BIP155Network::IPV6;
   33|  4.39M|    case NET_ONION:
  ------------------
  |  Branch (33:5): [True: 4.39M, False: 18.7M]
  ------------------
   34|  4.39M|        return BIP155Network::TORV3;
   35|  4.64M|    case NET_I2P:
  ------------------
  |  Branch (35:5): [True: 4.64M, False: 18.4M]
  ------------------
   36|  4.64M|        return BIP155Network::I2P;
   37|  4.69M|    case NET_CJDNS:
  ------------------
  |  Branch (37:5): [True: 4.69M, False: 18.4M]
  ------------------
   38|  4.69M|        return BIP155Network::CJDNS;
   39|      0|    case NET_INTERNAL:   // should have been handled before calling this function
  ------------------
  |  Branch (39:5): [True: 0, False: 23.1M]
  ------------------
   40|      0|    case NET_UNROUTABLE: // m_net is never and should not be set to NET_UNROUTABLE
  ------------------
  |  Branch (40:5): [True: 0, False: 23.1M]
  ------------------
   41|      0|    case NET_MAX:        // m_net is never and should not be set to NET_MAX
  ------------------
  |  Branch (41:5): [True: 0, False: 23.1M]
  ------------------
   42|      0|        assert(false);
   43|  23.1M|    } // no default case, so the compiler can warn about missing cases
   44|       |
   45|      0|    assert(false);
   46|      0|}
_ZN8CNetAddr23SetNetFromBIP155NetworkEhm:
   49|  37.8M|{
   50|  37.8M|    switch (possible_bip155_net) {
  ------------------
  |  Branch (50:13): [True: 0, False: 37.8M]
  ------------------
   51|  7.73M|    case BIP155Network::IPV4:
  ------------------
  |  Branch (51:5): [True: 7.73M, False: 30.1M]
  ------------------
   52|  7.73M|        if (address_size == ADDR_IPV4_SIZE) {
  ------------------
  |  Branch (52:13): [True: 7.73M, False: 0]
  ------------------
   53|  7.73M|            m_net = NET_IPV4;
   54|  7.73M|            return true;
   55|  7.73M|        }
   56|      0|        throw std::ios_base::failure(
   57|      0|            strprintf("BIP155 IPv4 address with length %u (should be %u)", address_size,
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   58|      0|                      ADDR_IPV4_SIZE));
   59|  7.95M|    case BIP155Network::IPV6:
  ------------------
  |  Branch (59:5): [True: 7.95M, False: 29.9M]
  ------------------
   60|  7.95M|        if (address_size == ADDR_IPV6_SIZE) {
  ------------------
  |  Branch (60:13): [True: 7.95M, False: 0]
  ------------------
   61|  7.95M|            m_net = NET_IPV6;
   62|  7.95M|            return true;
   63|  7.95M|        }
   64|      0|        throw std::ios_base::failure(
   65|      0|            strprintf("BIP155 IPv6 address with length %u (should be %u)", address_size,
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   66|      0|                      ADDR_IPV6_SIZE));
   67|  7.17M|    case BIP155Network::TORV3:
  ------------------
  |  Branch (67:5): [True: 7.17M, False: 30.6M]
  ------------------
   68|  7.17M|        if (address_size == ADDR_TORV3_SIZE) {
  ------------------
  |  Branch (68:13): [True: 7.17M, False: 0]
  ------------------
   69|  7.17M|            m_net = NET_ONION;
   70|  7.17M|            return true;
   71|  7.17M|        }
   72|      0|        throw std::ios_base::failure(
   73|      0|            strprintf("BIP155 TORv3 address with length %u (should be %u)", address_size,
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   74|      0|                      ADDR_TORV3_SIZE));
   75|  7.50M|    case BIP155Network::I2P:
  ------------------
  |  Branch (75:5): [True: 7.50M, False: 30.3M]
  ------------------
   76|  7.50M|        if (address_size == ADDR_I2P_SIZE) {
  ------------------
  |  Branch (76:13): [True: 7.50M, False: 0]
  ------------------
   77|  7.50M|            m_net = NET_I2P;
   78|  7.50M|            return true;
   79|  7.50M|        }
   80|      0|        throw std::ios_base::failure(
   81|      0|            strprintf("BIP155 I2P address with length %u (should be %u)", address_size,
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   82|      0|                      ADDR_I2P_SIZE));
   83|  7.50M|    case BIP155Network::CJDNS:
  ------------------
  |  Branch (83:5): [True: 7.50M, False: 30.3M]
  ------------------
   84|  7.50M|        if (address_size == ADDR_CJDNS_SIZE) {
  ------------------
  |  Branch (84:13): [True: 7.50M, False: 0]
  ------------------
   85|  7.50M|            m_net = NET_CJDNS;
   86|  7.50M|            return true;
   87|  7.50M|        }
   88|      0|        throw std::ios_base::failure(
   89|      0|            strprintf("BIP155 CJDNS address with length %u (should be %u)", address_size,
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
   90|      0|                      ADDR_CJDNS_SIZE));
   91|  37.8M|    }
   92|       |
   93|       |    // Don't throw on addresses with unknown network ids (maybe from the future).
   94|       |    // Instead silently drop them and have the unserialization code consume
   95|       |    // subsequent ones which may be known to us.
   96|      0|    return false;
   97|  37.8M|}
_ZN8CNetAddrC2Ev:
  104|  93.0M|CNetAddr::CNetAddr() = default;
_ZN8CNetAddr11SetInternalERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  173|  2.79M|{
  174|  2.79M|    if (name.empty()) {
  ------------------
  |  Branch (174:9): [True: 12, False: 2.79M]
  ------------------
  175|     12|        return false;
  176|     12|    }
  177|  2.79M|    m_net = NET_INTERNAL;
  178|  2.79M|    unsigned char hash[32] = {};
  179|  2.79M|    CSHA256().Write((const unsigned char*)name.data(), name.size()).Finalize(hash);
  180|  2.79M|    m_addr.assign(hash, hash + ADDR_INTERNAL_SIZE);
  181|  2.79M|    return true;
  182|  2.79M|}
_ZN8CNetAddrC2ERK7in_addr:
  295|  5.71k|{
  296|  5.71k|    m_net = NET_IPV4;
  297|  5.71k|    const uint8_t* ptr = reinterpret_cast<const uint8_t*>(&ipv4Addr);
  298|  5.71k|    m_addr.assign(ptr, ptr + ADDR_IPV4_SIZE);
  299|  5.71k|}
_ZNK8CNetAddr9IsRFC1918Ev:
  316|   506M|{
  317|   506M|    return IsIPv4() && (
  ------------------
  |  Branch (317:12): [True: 98.9M, False: 407M]
  ------------------
  318|  98.9M|        m_addr[0] == 10 ||
  ------------------
  |  Branch (318:9): [True: 58.3k, False: 98.8M]
  ------------------
  319|  98.9M|        (m_addr[0] == 192 && m_addr[1] == 168) ||
  ------------------
  |  Branch (319:10): [True: 481k, False: 98.4M]
  |  Branch (319:30): [True: 11.5k, False: 470k]
  ------------------
  320|  98.9M|        (m_addr[0] == 172 && m_addr[1] >= 16 && m_addr[1] <= 31));
  ------------------
  |  Branch (320:10): [True: 321k, False: 98.5M]
  |  Branch (320:30): [True: 285k, False: 35.9k]
  |  Branch (320:49): [True: 8.47k, False: 277k]
  ------------------
  321|   506M|}
_ZNK8CNetAddr9IsRFC2544Ev:
  324|   506M|{
  325|   506M|    return IsIPv4() && m_addr[0] == 198 && (m_addr[1] == 18 || m_addr[1] == 19);
  ------------------
  |  Branch (325:12): [True: 98.8M, False: 407M]
  |  Branch (325:24): [True: 322k, False: 98.5M]
  |  Branch (325:45): [True: 16.1k, False: 306k]
  |  Branch (325:64): [True: 4.89k, False: 301k]
  ------------------
  326|   506M|}
_ZNK8CNetAddr9IsRFC3927Ev:
  329|   506M|{
  330|   506M|    return IsIPv4() && HasPrefix(m_addr, std::array<uint8_t, 2>{169, 254});
  ------------------
  |  Branch (330:12): [True: 98.8M, False: 407M]
  |  Branch (330:24): [True: 7.75k, False: 98.8M]
  ------------------
  331|   506M|}
_ZNK8CNetAddr9IsRFC6598Ev:
  334|   506M|{
  335|   506M|    return IsIPv4() && m_addr[0] == 100 && m_addr[1] >= 64 && m_addr[1] <= 127;
  ------------------
  |  Branch (335:12): [True: 98.8M, False: 407M]
  |  Branch (335:24): [True: 250k, False: 98.5M]
  |  Branch (335:44): [True: 163k, False: 86.9k]
  |  Branch (335:63): [True: 19.9k, False: 143k]
  ------------------
  336|   506M|}
_ZNK8CNetAddr9IsRFC5737Ev:
  339|   506M|{
  340|   506M|    return IsIPv4() && (HasPrefix(m_addr, std::array<uint8_t, 3>{192, 0, 2}) ||
  ------------------
  |  Branch (340:12): [True: 98.8M, False: 407M]
  |  Branch (340:25): [True: 12.6k, False: 98.8M]
  ------------------
  341|  98.8M|                        HasPrefix(m_addr, std::array<uint8_t, 3>{198, 51, 100}) ||
  ------------------
  |  Branch (341:25): [True: 7.46k, False: 98.7M]
  ------------------
  342|  98.8M|                        HasPrefix(m_addr, std::array<uint8_t, 3>{203, 0, 113}));
  ------------------
  |  Branch (342:25): [True: 1, False: 98.7M]
  ------------------
  343|   506M|}
_ZNK8CNetAddr9IsRFC3849Ev:
  346|   551M|{
  347|   551M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 4>{0x20, 0x01, 0x0D, 0xB8});
  ------------------
  |  Branch (347:12): [True: 109M, False: 442M]
  |  Branch (347:24): [True: 256, False: 109M]
  ------------------
  348|   551M|}
_ZNK8CNetAddr9IsRFC3964Ev:
  351|   152M|{
  352|   152M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 2>{0x20, 0x02});
  ------------------
  |  Branch (352:12): [True: 38.9M, False: 113M]
  |  Branch (352:24): [True: 18.4k, False: 38.8M]
  ------------------
  353|   152M|}
_ZNK8CNetAddr9IsRFC6052Ev:
  356|   152M|{
  357|   152M|    return IsIPv6() &&
  ------------------
  |  Branch (357:12): [True: 38.9M, False: 113M]
  ------------------
  358|   152M|           HasPrefix(m_addr, std::array<uint8_t, 12>{0x00, 0x64, 0xFF, 0x9B, 0x00, 0x00,
  ------------------
  |  Branch (358:12): [True: 18.0k, False: 38.9M]
  ------------------
  359|  38.9M|                                                     0x00, 0x00, 0x00, 0x00, 0x00, 0x00});
  360|   152M|}
_ZNK8CNetAddr9IsRFC4380Ev:
  363|   152M|{
  364|   152M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 4>{0x20, 0x01, 0x00, 0x00});
  ------------------
  |  Branch (364:12): [True: 38.8M, False: 113M]
  |  Branch (364:24): [True: 13.1k, False: 38.8M]
  ------------------
  365|   152M|}
_ZNK8CNetAddr9IsRFC4862Ev:
  368|   506M|{
  369|   506M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 8>{0xFE, 0x80, 0x00, 0x00,
  ------------------
  |  Branch (369:12): [True: 99.8M, False: 406M]
  |  Branch (369:24): [True: 14.4k, False: 99.8M]
  ------------------
  370|  99.8M|                                                                0x00, 0x00, 0x00, 0x00});
  371|   506M|}
_ZNK8CNetAddr9IsRFC4193Ev:
  374|   505M|{
  375|   505M|    return IsIPv6() && (m_addr[0] & 0xFE) == 0xFC;
  ------------------
  |  Branch (375:12): [True: 99.8M, False: 406M]
  |  Branch (375:24): [True: 174k, False: 99.6M]
  ------------------
  376|   505M|}
_ZNK8CNetAddr9IsRFC6145Ev:
  379|   152M|{
  380|   152M|    return IsIPv6() &&
  ------------------
  |  Branch (380:12): [True: 38.9M, False: 113M]
  ------------------
  381|   152M|           HasPrefix(m_addr, std::array<uint8_t, 12>{0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  ------------------
  |  Branch (381:12): [True: 17.7k, False: 38.9M]
  ------------------
  382|  38.9M|                                                     0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00});
  383|   152M|}
_ZNK8CNetAddr9IsRFC4843Ev:
  386|   505M|{
  387|   505M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
  ------------------
  |  Branch (387:12): [True: 99.6M, False: 406M]
  |  Branch (387:24): [True: 57.0k, False: 99.6M]
  ------------------
  388|   505M|           (m_addr[3] & 0xF0) == 0x10;
  ------------------
  |  Branch (388:12): [True: 12.7k, False: 44.2k]
  ------------------
  389|   505M|}
_ZNK8CNetAddr9IsRFC7343Ev:
  392|   505M|{
  393|   505M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
  ------------------
  |  Branch (393:12): [True: 99.6M, False: 406M]
  |  Branch (393:24): [True: 44.2k, False: 99.6M]
  ------------------
  394|   505M|           (m_addr[3] & 0xF0) == 0x20;
  ------------------
  |  Branch (394:12): [True: 6.34k, False: 37.8k]
  ------------------
  395|   505M|}
_ZNK8CNetAddr7IsHeNetEv:
  398|  8.72M|{
  399|  8.72M|    return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 4>{0x20, 0x01, 0x04, 0x70});
  ------------------
  |  Branch (399:12): [True: 8.72M, False: 0]
  |  Branch (399:24): [True: 4.30k, False: 8.72M]
  ------------------
  400|  8.72M|}
_ZNK8CNetAddr7IsLocalEv:
  403|   557M|{
  404|       |    // IPv4 loopback (127.0.0.0/8 or 0.0.0.0/8)
  405|   557M|    if (IsIPv4() && (m_addr[0] == 127 || m_addr[0] == 0)) {
  ------------------
  |  Branch (405:9): [True: 107M, False: 449M]
  |  Branch (405:22): [True: 65.1k, False: 107M]
  |  Branch (405:42): [True: 127k, False: 107M]
  ------------------
  406|   192k|        return true;
  407|   192k|    }
  408|       |
  409|       |    // IPv6 loopback (::1/128)
  410|   557M|    static const unsigned char pchLocal[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
  411|   557M|    if (IsIPv6() && memcmp(m_addr.data(), pchLocal, sizeof(pchLocal)) == 0) {
  ------------------
  |  Branch (411:9): [True: 108M, False: 449M]
  |  Branch (411:21): [True: 14.6k, False: 108M]
  ------------------
  412|  14.6k|        return true;
  413|  14.6k|    }
  414|       |
  415|   557M|    return false;
  416|   557M|}
_ZNK8CNetAddr7IsValidEv:
  429|   581M|{
  430|       |    // unspecified IPv6 address (::/128)
  431|   581M|    unsigned char ipNone6[16] = {};
  432|   581M|    if (IsIPv6() && memcmp(m_addr.data(), ipNone6, sizeof(ipNone6)) == 0) {
  ------------------
  |  Branch (432:9): [True: 138M, False: 442M]
  |  Branch (432:21): [True: 29.4M, False: 109M]
  ------------------
  433|  29.4M|        return false;
  434|  29.4M|    }
  435|       |
  436|   551M|    if (IsCJDNS() && !HasCJDNSPrefix()) {
  ------------------
  |  Branch (436:9): [True: 112M, False: 439M]
  |  Branch (436:22): [True: 0, False: 112M]
  ------------------
  437|      0|        return false;
  438|      0|    }
  439|       |
  440|       |    // documentation IPv6 address
  441|   551M|    if (IsRFC3849())
  ------------------
  |  Branch (441:9): [True: 256, False: 551M]
  ------------------
  442|    256|        return false;
  443|       |
  444|   551M|    if (IsInternal())
  ------------------
  |  Branch (444:9): [True: 2.79M, False: 548M]
  ------------------
  445|  2.79M|        return false;
  446|       |
  447|   548M|    if (IsIPv4()) {
  ------------------
  |  Branch (447:9): [True: 106M, False: 441M]
  ------------------
  448|   106M|        const uint32_t addr = ReadBE32(m_addr.data());
  449|   106M|        if (addr == INADDR_ANY || addr == INADDR_NONE) {
  ------------------
  |  Branch (449:13): [True: 4.40k, False: 106M]
  |  Branch (449:35): [True: 1.86k, False: 106M]
  ------------------
  450|  6.26k|            return false;
  451|  6.26k|        }
  452|   106M|    }
  453|       |
  454|   548M|    return true;
  455|   548M|}
_ZNK8CNetAddr10IsRoutableEv:
  467|   506M|{
  468|   506M|    return IsValid() && !(IsRFC1918() || IsRFC2544() || IsRFC3927() || IsRFC4862() || IsRFC6598() || IsRFC5737() || IsRFC4193() || IsRFC4843() || IsRFC7343() || IsLocal() || IsInternal());
  ------------------
  |  Branch (468:12): [True: 506M, False: 0]
  |  Branch (468:27): [True: 78.3k, False: 506M]
  |  Branch (468:42): [True: 21.0k, False: 506M]
  |  Branch (468:57): [True: 7.75k, False: 506M]
  |  Branch (468:72): [True: 14.4k, False: 506M]
  |  Branch (468:87): [True: 19.9k, False: 506M]
  |  Branch (468:102): [True: 20.1k, False: 505M]
  |  Branch (468:117): [True: 174k, False: 505M]
  |  Branch (468:132): [True: 12.7k, False: 505M]
  |  Branch (468:147): [True: 6.34k, False: 505M]
  |  Branch (468:162): [True: 170k, False: 505M]
  |  Branch (468:175): [True: 0, False: 505M]
  ------------------
  469|   506M|}
_ZNK8CNetAddr10IsInternalEv:
  477|  1.37G|{
  478|  1.37G|   return m_net == NET_INTERNAL;
  479|  1.37G|}
_ZNK8CNetAddr18IsAddrV1CompatibleEv:
  482|   191M|{
  483|   191M|    switch (m_net) {
  ------------------
  |  Branch (483:13): [True: 0, False: 191M]
  ------------------
  484|  27.8M|    case NET_IPV4:
  ------------------
  |  Branch (484:5): [True: 27.8M, False: 164M]
  ------------------
  485|  70.8M|    case NET_IPV6:
  ------------------
  |  Branch (485:5): [True: 43.0M, False: 148M]
  ------------------
  486|  70.8M|    case NET_INTERNAL:
  ------------------
  |  Branch (486:5): [True: 0, False: 191M]
  ------------------
  487|  70.8M|        return true;
  488|  39.2M|    case NET_ONION:
  ------------------
  |  Branch (488:5): [True: 39.2M, False: 152M]
  ------------------
  489|  80.1M|    case NET_I2P:
  ------------------
  |  Branch (489:5): [True: 40.8M, False: 151M]
  ------------------
  490|   121M|    case NET_CJDNS:
  ------------------
  |  Branch (490:5): [True: 40.9M, False: 151M]
  ------------------
  491|   121M|        return false;
  492|      0|    case NET_UNROUTABLE: // m_net is never and should not be set to NET_UNROUTABLE
  ------------------
  |  Branch (492:5): [True: 0, False: 191M]
  ------------------
  493|      0|    case NET_MAX:        // m_net is never and should not be set to NET_MAX
  ------------------
  |  Branch (493:5): [True: 0, False: 191M]
  ------------------
  494|      0|        assert(false);
  495|   191M|    } // no default case, so the compiler can warn about missing cases
  496|       |
  497|      0|    assert(false);
  498|      0|}
_ZNK8CNetAddr10GetNetworkEv:
  501|   118M|{
  502|   118M|    if (IsInternal())
  ------------------
  |  Branch (502:9): [True: 0, False: 118M]
  ------------------
  503|      0|        return NET_INTERNAL;
  504|       |
  505|   118M|    if (!IsRoutable())
  ------------------
  |  Branch (505:9): [True: 187k, False: 118M]
  ------------------
  506|   187k|        return NET_UNROUTABLE;
  507|       |
  508|   118M|    return m_net;
  509|   118M|}
_ZeqRK8CNetAddrS1_:
  608|  84.7M|{
  609|  84.7M|    return a.m_net == b.m_net && a.m_addr == b.m_addr;
  ------------------
  |  Branch (609:12): [True: 72.4M, False: 12.2M]
  |  Branch (609:34): [True: 68.8M, False: 3.61M]
  ------------------
  610|  84.7M|}
_ZNK8CNetAddr13HasLinkedIPv4Ev:
  657|   190M|{
  658|   190M|    return IsRoutable() && (IsIPv4() || IsRFC6145() || IsRFC6052() || IsRFC3964() || IsRFC4380());
  ------------------
  |  Branch (658:12): [True: 190M, False: 0]
  |  Branch (658:29): [True: 38.3M, False: 152M]
  |  Branch (658:41): [True: 12.3k, False: 152M]
  |  Branch (658:56): [True: 13.5k, False: 152M]
  |  Branch (658:71): [True: 13.0k, False: 152M]
  |  Branch (658:86): [True: 9.19k, False: 152M]
  ------------------
  659|   190M|}
_ZNK8CNetAddr13GetLinkedIPv4Ev:
  662|  13.9M|{
  663|  13.9M|    if (IsIPv4()) {
  ------------------
  |  Branch (663:9): [True: 13.9M, False: 19.2k]
  ------------------
  664|  13.9M|        return ReadBE32(m_addr.data());
  665|  13.9M|    } else if (IsRFC6052() || IsRFC6145()) {
  ------------------
  |  Branch (665:16): [True: 4.51k, False: 14.7k]
  |  Branch (665:31): [True: 5.35k, False: 9.36k]
  ------------------
  666|       |        // mapped IPv4, SIIT translated IPv4: the IPv4 address is the last 4 bytes of the address
  667|  9.87k|        return ReadBE32(Span{m_addr}.last(ADDR_IPV4_SIZE).data());
  668|  9.87k|    } else if (IsRFC3964()) {
  ------------------
  |  Branch (668:16): [True: 5.41k, False: 3.95k]
  ------------------
  669|       |        // 6to4 tunneled IPv4: the IPv4 address is in bytes 2-6
  670|  5.41k|        return ReadBE32(Span{m_addr}.subspan(2, ADDR_IPV4_SIZE).data());
  671|  5.41k|    } else if (IsRFC4380()) {
  ------------------
  |  Branch (671:16): [True: 3.95k, False: 0]
  ------------------
  672|       |        // Teredo tunneled IPv4: the IPv4 address is in the last 4 bytes of the address, but bitflipped
  673|  3.95k|        return ~ReadBE32(Span{m_addr}.last(ADDR_IPV4_SIZE).data());
  674|  3.95k|    }
  675|      0|    assert(false);
  676|      0|}
_ZNK8CNetAddr11GetNetClassEv:
  679|   128M|{
  680|       |    // Make sure that if we return NET_IPV6, then IsIPv6() is true. The callers expect that.
  681|       |
  682|       |    // Check for "internal" first because such addresses are also !IsRoutable()
  683|       |    // and we don't want to return NET_UNROUTABLE in that case.
  684|   128M|    if (IsInternal()) {
  ------------------
  |  Branch (684:9): [True: 0, False: 128M]
  ------------------
  685|      0|        return NET_INTERNAL;
  686|      0|    }
  687|   128M|    if (!IsRoutable()) {
  ------------------
  |  Branch (687:9): [True: 203k, False: 128M]
  ------------------
  688|   203k|        return NET_UNROUTABLE;
  689|   203k|    }
  690|   128M|    if (HasLinkedIPv4()) {
  ------------------
  |  Branch (690:9): [True: 24.4M, False: 104M]
  ------------------
  691|  24.4M|        return NET_IPV4;
  692|  24.4M|    }
  693|   104M|    return m_net;
  694|   128M|}
_ZNK8CNetAddr12GetAddrBytesEv:
  697|   191M|{
  698|   191M|    if (IsAddrV1Compatible()) {
  ------------------
  |  Branch (698:9): [True: 70.8M, False: 121M]
  ------------------
  699|  70.8M|        uint8_t serialized[V1_SERIALIZATION_SIZE];
  700|  70.8M|        SerializeV1Array(serialized);
  701|  70.8M|        return {std::begin(serialized), std::end(serialized)};
  702|  70.8M|    }
  703|   121M|    return std::vector<unsigned char>(m_addr.begin(), m_addr.end());
  704|   191M|}
_ZN8CServiceC2Ev:
  784|  30.4M|CService::CService() : port(0)
  785|  30.4M|{
  786|  30.4M|}
_ZN8CServiceC2ERK8CNetAddrt:
  788|  14.6M|CService::CService(const CNetAddr& cip, uint16_t portIn) : CNetAddr(cip), port(portIn)
  789|  14.6M|{
  790|  14.6M|}
_ZeqRK8CServiceS1_:
  845|  57.1M|{
  846|  57.1M|    return static_cast<CNetAddr>(a) == static_cast<CNetAddr>(b) && a.port == b.port;
  ------------------
  |  Branch (846:12): [True: 57.1M, False: 0]
  |  Branch (846:68): [True: 57.1M, False: 0]
  ------------------
  847|  57.1M|}
_ZNK8CService6GetKeyEv:
  900|   108M|{
  901|   108M|    auto key = GetAddrBytes();
  902|   108M|    key.push_back(port / 0x100); // most significant byte of our port
  903|   108M|    key.push_back(port & 0x0FF); // least significant byte of our port
  904|   108M|    return key;
  905|   108M|}

_ZNK8CNetAddr6IsIPv4Ev:
  157|  3.84G|    [[nodiscard]] bool IsIPv4() const { return m_net == NET_IPV4; } // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0)
_ZNK8CNetAddr6IsIPv6Ev:
  158|  4.33G|    [[nodiscard]] bool IsIPv6() const { return m_net == NET_IPV6; } // IPv6 address (not mapped IPv4, not Tor)
_ZNK8CNetAddr5IsTorEv:
  174|  42.7M|    [[nodiscard]] bool IsTor() const { return m_net == NET_ONION; }
_ZNK8CNetAddr5IsI2PEv:
  175|  31.7M|    [[nodiscard]] bool IsI2P() const { return m_net == NET_I2P; }
_ZNK8CNetAddr7IsCJDNSEv:
  176|   571M|    [[nodiscard]] bool IsCJDNS() const { return m_net == NET_CJDNS; }
_ZNK8CNetAddr14HasCJDNSPrefixEv:
  177|   112M|    [[nodiscard]] bool HasCJDNSPrefix() const { return m_addr[0] == CJDNS_PREFIX; }
_ZNK8CNetAddr16SerializeV1ArrayERA16_h:
  325|  70.8M|    {
  326|  70.8M|        size_t prefix_size;
  327|       |
  328|  70.8M|        switch (m_net) {
  ------------------
  |  Branch (328:17): [True: 0, False: 70.8M]
  ------------------
  329|  43.0M|        case NET_IPV6:
  ------------------
  |  Branch (329:9): [True: 43.0M, False: 27.8M]
  ------------------
  330|  43.0M|            assert(m_addr.size() == sizeof(arr));
  331|  43.0M|            memcpy(arr, m_addr.data(), m_addr.size());
  332|  43.0M|            return;
  333|  27.8M|        case NET_IPV4:
  ------------------
  |  Branch (333:9): [True: 27.8M, False: 43.0M]
  ------------------
  334|  27.8M|            prefix_size = sizeof(IPV4_IN_IPV6_PREFIX);
  335|  27.8M|            assert(prefix_size + m_addr.size() == sizeof(arr));
  336|  27.8M|            memcpy(arr, IPV4_IN_IPV6_PREFIX.data(), prefix_size);
  337|  27.8M|            memcpy(arr + prefix_size, m_addr.data(), m_addr.size());
  338|  27.8M|            return;
  339|      0|        case NET_INTERNAL:
  ------------------
  |  Branch (339:9): [True: 0, False: 70.8M]
  ------------------
  340|      0|            prefix_size = sizeof(INTERNAL_IN_IPV6_PREFIX);
  341|      0|            assert(prefix_size + m_addr.size() == sizeof(arr));
  342|      0|            memcpy(arr, INTERNAL_IN_IPV6_PREFIX.data(), prefix_size);
  343|      0|            memcpy(arr + prefix_size, m_addr.data(), m_addr.size());
  344|      0|            return;
  345|      0|        case NET_ONION:
  ------------------
  |  Branch (345:9): [True: 0, False: 70.8M]
  ------------------
  346|      0|        case NET_I2P:
  ------------------
  |  Branch (346:9): [True: 0, False: 70.8M]
  ------------------
  347|      0|        case NET_CJDNS:
  ------------------
  |  Branch (347:9): [True: 0, False: 70.8M]
  ------------------
  348|      0|            break;
  349|      0|        case NET_UNROUTABLE:
  ------------------
  |  Branch (349:9): [True: 0, False: 70.8M]
  ------------------
  350|      0|        case NET_MAX:
  ------------------
  |  Branch (350:9): [True: 0, False: 70.8M]
  ------------------
  351|      0|            assert(false);
  352|  70.8M|        } // no default case, so the compiler can warn about missing cases
  353|       |
  354|       |        // Serialize ONION, I2P and CJDNS as all-zeros.
  355|      0|        memset(arr, 0x0, V1_SERIALIZATION_SIZE);
  356|      0|    }
_ZN12CServiceHashC2Ev:
  577|  4.99k|        : m_salt_k0{FastRandomContext().rand64()},
  578|  4.99k|          m_salt_k1{FastRandomContext().rand64()}
  579|  4.99k|    {
  580|  4.99k|    }
_ZNK12CServiceHashclERK8CService:
  585|  63.0M|    {
  586|  63.0M|        CSipHasher hasher(m_salt_k0, m_salt_k1);
  587|  63.0M|        hasher.Write(a.m_net);
  588|  63.0M|        hasher.Write(a.port);
  589|  63.0M|        hasher.Write(a.m_addr);
  590|  63.0M|        return static_cast<size_t>(hasher.Finalize());
  591|  63.0M|    }
_ZN8CService16SerializationOpsI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEES_17ActionUnserializeEEvRT0_RT_T1_:
  565|  11.5M|    {
  566|  11.5M|        READWRITE(AsBase<CNetAddr>(obj), Using<BigEndianFormatter<2>>(obj.port));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  567|  11.5M|    }
_ZN8CNetAddr11UnserializeI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEENS_9SerParamsEEEEvRT_:
  252|  11.5M|    {
  253|  11.5M|        if (s.template GetParams<SerParams>().enc == Encoding::V2) {
  ------------------
  |  Branch (253:13): [True: 11.5M, False: 0]
  ------------------
  254|  11.5M|            UnserializeV2Stream(s);
  255|  11.5M|        } else {
  256|      0|            UnserializeV1Stream(s);
  257|      0|        }
  258|  11.5M|    }
_ZN8CNetAddr19UnserializeV2StreamI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEENS_9SerParamsEEEEvRT_:
  424|  11.5M|    {
  425|  11.5M|        uint8_t bip155_net;
  426|  11.5M|        s >> bip155_net;
  427|       |
  428|  11.5M|        size_t address_size;
  429|  11.5M|        s >> COMPACTSIZE(address_size);
  ------------------
  |  |  501|  11.5M|#define COMPACTSIZE(obj) Using<CompactSizeFormatter<true>>(obj)
  ------------------
  430|       |
  431|  11.5M|        if (address_size > MAX_ADDRV2_SIZE) {
  ------------------
  |  Branch (431:13): [True: 0, False: 11.5M]
  ------------------
  432|      0|            throw std::ios_base::failure(strprintf(
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  433|      0|                "Address too long: %u > %u", address_size, MAX_ADDRV2_SIZE));
  434|      0|        }
  435|       |
  436|  11.5M|        m_scope_id = 0;
  437|       |
  438|  11.5M|        if (SetNetFromBIP155Network(bip155_net, address_size)) {
  ------------------
  |  Branch (438:13): [True: 11.5M, False: 0]
  ------------------
  439|  11.5M|            m_addr.resize(address_size);
  440|  11.5M|            s >> Span{m_addr};
  441|       |
  442|  11.5M|            if (m_net != NET_IPV6) {
  ------------------
  |  Branch (442:17): [True: 9.35M, False: 2.20M]
  ------------------
  443|  9.35M|                return;
  444|  9.35M|            }
  445|       |
  446|       |            // Do some special checks on IPv6 addresses.
  447|       |
  448|       |            // Recognize NET_INTERNAL embedded in IPv6, such addresses are not
  449|       |            // gossiped but could be coming from addrman, when unserializing from
  450|       |            // disk.
  451|  2.20M|            if (util::HasPrefix(m_addr, INTERNAL_IN_IPV6_PREFIX)) {
  ------------------
  |  Branch (451:17): [True: 0, False: 2.20M]
  ------------------
  452|      0|                m_net = NET_INTERNAL;
  453|      0|                memmove(m_addr.data(), m_addr.data() + INTERNAL_IN_IPV6_PREFIX.size(),
  454|      0|                        ADDR_INTERNAL_SIZE);
  455|      0|                m_addr.resize(ADDR_INTERNAL_SIZE);
  456|      0|                return;
  457|      0|            }
  458|       |
  459|  2.20M|            if (!util::HasPrefix(m_addr, IPV4_IN_IPV6_PREFIX) &&
  ------------------
  |  Branch (459:17): [True: 2.20M, False: 0]
  ------------------
  460|  2.20M|                !util::HasPrefix(m_addr, TORV2_IN_IPV6_PREFIX)) {
  ------------------
  |  Branch (460:17): [True: 2.20M, False: 0]
  ------------------
  461|  2.20M|                return;
  462|  2.20M|            }
  463|       |
  464|       |            // IPv4 and TORv2 are not supposed to be embedded in IPv6 (like in V1
  465|       |            // encoding). Unserialize as !IsValid(), thus ignoring them.
  466|  2.20M|        } else {
  467|       |            // If we receive an unknown BIP155 network id (from the future?) then
  468|       |            // ignore the address - unserialize as !IsValid().
  469|      0|            s.ignore(address_size);
  470|      0|        }
  471|       |
  472|       |        // Mimic a default-constructed CNetAddr object which is !IsValid() and thus
  473|       |        // will not be gossiped, but continue reading next addresses from the stream.
  474|      0|        m_net = NET_IPV6;
  475|      0|        m_addr.assign(ADDR_IPV6_SIZE, 0x0);
  476|      0|    }
_ZN8CNetAddr11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  252|  26.3M|    {
  253|  26.3M|        if (s.template GetParams<SerParams>().enc == Encoding::V2) {
  ------------------
  |  Branch (253:13): [True: 26.3M, False: 0]
  ------------------
  254|  26.3M|            UnserializeV2Stream(s);
  255|  26.3M|        } else {
  256|      0|            UnserializeV1Stream(s);
  257|      0|        }
  258|  26.3M|    }
_ZN8CNetAddr19UnserializeV2StreamI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  424|  26.3M|    {
  425|  26.3M|        uint8_t bip155_net;
  426|  26.3M|        s >> bip155_net;
  427|       |
  428|  26.3M|        size_t address_size;
  429|  26.3M|        s >> COMPACTSIZE(address_size);
  ------------------
  |  |  501|  26.3M|#define COMPACTSIZE(obj) Using<CompactSizeFormatter<true>>(obj)
  ------------------
  430|       |
  431|  26.3M|        if (address_size > MAX_ADDRV2_SIZE) {
  ------------------
  |  Branch (431:13): [True: 0, False: 26.3M]
  ------------------
  432|      0|            throw std::ios_base::failure(strprintf(
  ------------------
  |  | 1172|      0|#define strprintf tfm::format
  ------------------
  433|      0|                "Address too long: %u > %u", address_size, MAX_ADDRV2_SIZE));
  434|      0|        }
  435|       |
  436|  26.3M|        m_scope_id = 0;
  437|       |
  438|  26.3M|        if (SetNetFromBIP155Network(bip155_net, address_size)) {
  ------------------
  |  Branch (438:13): [True: 26.3M, False: 0]
  ------------------
  439|  26.3M|            m_addr.resize(address_size);
  440|  26.3M|            s >> Span{m_addr};
  441|       |
  442|  26.3M|            if (m_net != NET_IPV6) {
  ------------------
  |  Branch (442:17): [True: 20.5M, False: 5.75M]
  ------------------
  443|  20.5M|                return;
  444|  20.5M|            }
  445|       |
  446|       |            // Do some special checks on IPv6 addresses.
  447|       |
  448|       |            // Recognize NET_INTERNAL embedded in IPv6, such addresses are not
  449|       |            // gossiped but could be coming from addrman, when unserializing from
  450|       |            // disk.
  451|  5.75M|            if (util::HasPrefix(m_addr, INTERNAL_IN_IPV6_PREFIX)) {
  ------------------
  |  Branch (451:17): [True: 510, False: 5.74M]
  ------------------
  452|    510|                m_net = NET_INTERNAL;
  453|    510|                memmove(m_addr.data(), m_addr.data() + INTERNAL_IN_IPV6_PREFIX.size(),
  454|    510|                        ADDR_INTERNAL_SIZE);
  455|    510|                m_addr.resize(ADDR_INTERNAL_SIZE);
  456|    510|                return;
  457|    510|            }
  458|       |
  459|  5.74M|            if (!util::HasPrefix(m_addr, IPV4_IN_IPV6_PREFIX) &&
  ------------------
  |  Branch (459:17): [True: 5.74M, False: 1.36k]
  ------------------
  460|  5.74M|                !util::HasPrefix(m_addr, TORV2_IN_IPV6_PREFIX)) {
  ------------------
  |  Branch (460:17): [True: 5.74M, False: 197]
  ------------------
  461|  5.74M|                return;
  462|  5.74M|            }
  463|       |
  464|       |            // IPv4 and TORv2 are not supposed to be embedded in IPv6 (like in V1
  465|       |            // encoding). Unserialize as !IsValid(), thus ignoring them.
  466|  5.74M|        } else {
  467|       |            // If we receive an unknown BIP155 network id (from the future?) then
  468|       |            // ignore the address - unserialize as !IsValid().
  469|      0|            s.ignore(address_size);
  470|      0|        }
  471|       |
  472|       |        // Mimic a default-constructed CNetAddr object which is !IsValid() and thus
  473|       |        // will not be gossiped, but continue reading next addresses from the stream.
  474|  1.56k|        m_net = NET_IPV6;
  475|  1.56k|        m_addr.assign(ADDR_IPV6_SIZE, 0x0);
  476|  1.56k|    }
_ZN8CService16SerializationOpsI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEKS_15ActionSerializeEEvRT0_RT_T1_:
  565|  11.5M|    {
  566|  11.5M|        READWRITE(AsBase<CNetAddr>(obj), Using<BigEndianFormatter<2>>(obj.port));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  567|  11.5M|    }
_ZNK8CNetAddr9SerializeI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEENS_9SerParamsEEEEvRT_:
  239|  11.5M|    {
  240|  11.5M|        if (s.template GetParams<SerParams>().enc == Encoding::V2) {
  ------------------
  |  Branch (240:13): [True: 11.5M, False: 0]
  ------------------
  241|  11.5M|            SerializeV2Stream(s);
  242|  11.5M|        } else {
  243|      0|            SerializeV1Stream(s);
  244|      0|        }
  245|  11.5M|    }
_ZNK8CNetAddr17SerializeV2StreamI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEENS_9SerParamsEEEEvRT_:
  376|  11.5M|    {
  377|  11.5M|        if (IsInternal()) {
  ------------------
  |  Branch (377:13): [True: 0, False: 11.5M]
  ------------------
  378|       |            // Serialize NET_INTERNAL as embedded in IPv6. We need to
  379|       |            // serialize such addresses from addrman.
  380|      0|            s << static_cast<uint8_t>(BIP155Network::IPV6);
  381|      0|            s << COMPACTSIZE(ADDR_IPV6_SIZE);
  ------------------
  |  |  501|      0|#define COMPACTSIZE(obj) Using<CompactSizeFormatter<true>>(obj)
  ------------------
  382|      0|            SerializeV1Stream(s);
  383|      0|            return;
  384|      0|        }
  385|       |
  386|  11.5M|        s << static_cast<uint8_t>(GetBIP155Network());
  387|  11.5M|        s << m_addr;
  388|  11.5M|    }
_ZNK8CNetAddr9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  239|  11.5M|    {
  240|  11.5M|        if (s.template GetParams<SerParams>().enc == Encoding::V2) {
  ------------------
  |  Branch (240:13): [True: 11.5M, False: 0]
  ------------------
  241|  11.5M|            SerializeV2Stream(s);
  242|  11.5M|        } else {
  243|      0|            SerializeV1Stream(s);
  244|      0|        }
  245|  11.5M|    }
_ZNK8CNetAddr17SerializeV2StreamI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  376|  11.5M|    {
  377|  11.5M|        if (IsInternal()) {
  ------------------
  |  Branch (377:13): [True: 0, False: 11.5M]
  ------------------
  378|       |            // Serialize NET_INTERNAL as embedded in IPv6. We need to
  379|       |            // serialize such addresses from addrman.
  380|      0|            s << static_cast<uint8_t>(BIP155Network::IPV6);
  381|      0|            s << COMPACTSIZE(ADDR_IPV6_SIZE);
  ------------------
  |  |  501|      0|#define COMPACTSIZE(obj) Using<CompactSizeFormatter<true>>(obj)
  ------------------
  382|      0|            SerializeV1Stream(s);
  383|      0|            return;
  384|      0|        }
  385|       |
  386|  11.5M|        s << static_cast<uint8_t>(GetBIP155Network());
  387|  11.5M|        s << m_addr;
  388|  11.5M|    }

_ZNK15NetGroupManager16GetAsmapChecksumEv:
   12|  4.99k|{
   13|  4.99k|    if (!m_asmap.size()) return {};
  ------------------
  |  Branch (13:9): [True: 3.20k, False: 1.79k]
  ------------------
   14|       |
   15|  1.79k|    return (HashWriter{} << m_asmap).GetHash();
   16|  4.99k|}
_ZNK15NetGroupManager8GetGroupERK8CNetAddr:
   19|  58.4M|{
   20|  58.4M|    std::vector<unsigned char> vchRet;
   21|       |    // If non-empty asmap is supplied and the address is IPv4/IPv6,
   22|       |    // return ASN to be used for bucketing.
   23|  58.4M|    uint32_t asn = GetMappedAS(address);
   24|  58.4M|    if (asn != 0) { // Either asmap was empty, or address has non-asmappable net class (e.g. TOR).
  ------------------
  |  Branch (24:9): [True: 6.56M, False: 51.9M]
  ------------------
   25|  6.56M|        vchRet.push_back(NET_IPV6); // IPv4 and IPv6 with same ASN should be in the same bucket
   26|  32.8M|        for (int i = 0; i < 4; i++) {
  ------------------
  |  Branch (26:25): [True: 26.2M, False: 6.56M]
  ------------------
   27|  26.2M|            vchRet.push_back((asn >> (8 * i)) & 0xFF);
   28|  26.2M|        }
   29|  6.56M|        return vchRet;
   30|  6.56M|    }
   31|       |
   32|  51.9M|    vchRet.push_back(address.GetNetClass());
   33|  51.9M|    int nStartByte{0};
   34|  51.9M|    int nBits{0};
   35|       |
   36|  51.9M|    if (address.IsLocal()) {
  ------------------
  |  Branch (36:9): [True: 35.9k, False: 51.8M]
  ------------------
   37|       |        // all local addresses belong to the same group
   38|  51.8M|    } else if (address.IsInternal()) {
  ------------------
  |  Branch (38:16): [True: 0, False: 51.8M]
  ------------------
   39|       |        // All internal-usage addresses get their own group.
   40|       |        // Skip over the INTERNAL_IN_IPV6_PREFIX returned by CAddress::GetAddrBytes().
   41|      0|        nStartByte = INTERNAL_IN_IPV6_PREFIX.size();
   42|      0|        nBits = ADDR_INTERNAL_SIZE * 8;
   43|  51.8M|    } else if (!address.IsRoutable()) {
  ------------------
  |  Branch (43:16): [True: 65.5k, False: 51.8M]
  ------------------
   44|       |        // all other unroutable addresses belong to the same group
   45|  51.8M|    } else if (address.HasLinkedIPv4()) {
  ------------------
  |  Branch (45:16): [True: 9.04M, False: 42.7M]
  ------------------
   46|       |        // IPv4 addresses (and mapped IPv4 addresses) use /16 groups
   47|  9.04M|        uint32_t ipv4 = address.GetLinkedIPv4();
   48|  9.04M|        vchRet.push_back((ipv4 >> 24) & 0xFF);
   49|  9.04M|        vchRet.push_back((ipv4 >> 16) & 0xFF);
   50|  9.04M|        return vchRet;
   51|  42.7M|    } else if (address.IsTor() || address.IsI2P()) {
  ------------------
  |  Branch (51:16): [True: 11.0M, False: 31.7M]
  |  Branch (51:35): [True: 11.4M, False: 20.2M]
  ------------------
   52|  22.4M|        nBits = 4;
   53|  22.4M|    } else if (address.IsCJDNS()) {
  ------------------
  |  Branch (53:16): [True: 11.5M, False: 8.72M]
  ------------------
   54|       |        // Treat in the same way as Tor and I2P because the address in all of
   55|       |        // them is "random" bytes (derived from a public key). However in CJDNS
   56|       |        // the first byte is a constant (see CJDNS_PREFIX), so the random bytes
   57|       |        // come after it. Thus skip the constant 8 bits at the start.
   58|  11.5M|        nBits = 12;
   59|  11.5M|    } else if (address.IsHeNet()) {
  ------------------
  |  Branch (59:16): [True: 4.30k, False: 8.72M]
  ------------------
   60|       |        // for he.net, use /36 groups
   61|  4.30k|        nBits = 36;
   62|  8.72M|    } else {
   63|       |        // for the rest of the IPv6 network, use /32 groups
   64|  8.72M|        nBits = 32;
   65|  8.72M|    }
   66|       |
   67|       |    // Push our address onto vchRet.
   68|  42.8M|    auto addr_bytes = address.GetAddrBytes();
   69|  42.8M|    const size_t num_bytes = nBits / 8;
   70|  42.8M|    vchRet.insert(vchRet.end(), addr_bytes.begin() + nStartByte, addr_bytes.begin() + nStartByte + num_bytes);
   71|  42.8M|    nBits %= 8;
   72|       |    // ...for the last byte, push nBits and for the rest of the byte push 1's
   73|  42.8M|    if (nBits > 0) {
  ------------------
  |  Branch (73:9): [True: 34.0M, False: 8.82M]
  ------------------
   74|  34.0M|        assert(num_bytes < addr_bytes.size());
   75|  34.0M|        vchRet.push_back(addr_bytes[num_bytes + nStartByte] | ((1 << (8 - nBits)) - 1));
   76|  34.0M|    }
   77|       |
   78|  42.8M|    return vchRet;
   79|  42.8M|}
_ZNK15NetGroupManager11GetMappedASERK8CNetAddr:
   82|  76.8M|{
   83|  76.8M|    uint32_t net_class = address.GetNetClass();
   84|  76.8M|    if (m_asmap.size() == 0 || (net_class != NET_IPV4 && net_class != NET_IPV6)) {
  ------------------
  |  Branch (84:9): [True: 48.9M, False: 27.9M]
  |  Branch (84:33): [True: 23.0M, False: 4.90M]
  |  Branch (84:58): [True: 17.4M, False: 5.52M]
  ------------------
   85|  66.3M|        return 0; // Indicates not found, safe because AS0 is reserved per RFC7607.
   86|  66.3M|    }
   87|  10.4M|    std::vector<bool> ip_bits(128);
   88|  10.4M|    if (address.HasLinkedIPv4()) {
  ------------------
  |  Branch (88:9): [True: 4.90M, False: 5.52M]
  ------------------
   89|       |        // For lookup, treat as if it was just an IPv4 address (IPV4_IN_IPV6_PREFIX + IPv4 bits)
   90|  63.7M|        for (int8_t byte_i = 0; byte_i < 12; ++byte_i) {
  ------------------
  |  Branch (90:33): [True: 58.8M, False: 4.90M]
  ------------------
   91|   529M|            for (uint8_t bit_i = 0; bit_i < 8; ++bit_i) {
  ------------------
  |  Branch (91:37): [True: 470M, False: 58.8M]
  ------------------
   92|   470M|                ip_bits[byte_i * 8 + bit_i] = (IPV4_IN_IPV6_PREFIX[byte_i] >> (7 - bit_i)) & 1;
   93|   470M|            }
   94|  58.8M|        }
   95|  4.90M|        uint32_t ipv4 = address.GetLinkedIPv4();
   96|   161M|        for (int i = 0; i < 32; ++i) {
  ------------------
  |  Branch (96:25): [True: 156M, False: 4.90M]
  ------------------
   97|   156M|            ip_bits[96 + i] = (ipv4 >> (31 - i)) & 1;
   98|   156M|        }
   99|  5.52M|    } else {
  100|       |        // Use all 128 bits of the IPv6 address otherwise
  101|  5.52M|        assert(address.IsIPv6());
  102|  5.52M|        auto addr_bytes = address.GetAddrBytes();
  103|  93.8M|        for (int8_t byte_i = 0; byte_i < 16; ++byte_i) {
  ------------------
  |  Branch (103:33): [True: 88.3M, False: 5.52M]
  ------------------
  104|  88.3M|            uint8_t cur_byte = addr_bytes[byte_i];
  105|   795M|            for (uint8_t bit_i = 0; bit_i < 8; ++bit_i) {
  ------------------
  |  Branch (105:37): [True: 706M, False: 88.3M]
  ------------------
  106|   706M|                ip_bits[byte_i * 8 + bit_i] = (cur_byte >> (7 - bit_i)) & 1;
  107|   706M|            }
  108|  88.3M|        }
  109|  5.52M|    }
  110|  10.4M|    uint32_t mapped_as = Interpret(m_asmap, ip_bits);
  111|  10.4M|    return mapped_as;
  112|  10.4M|}

_ZN15NetGroupManagerC2ENSt3__16vectorIbNS0_9allocatorIbEEEE:
   19|  2.49k|        : m_asmap{std::move(asmap)}
   20|  2.49k|    {}

_ZN4node11NodeContextD2Ev:
   26|      2|NodeContext::~NodeContext() = default;

_ZN9prevectorILj16EhjiEaSEOS0_:
  284|  46.1M|    prevector& operator=(prevector<N, T, Size, Diff>&& other) noexcept {
  285|  46.1M|        if (!is_direct()) {
  ------------------
  |  Branch (285:13): [True: 0, False: 46.1M]
  ------------------
  286|      0|            free(_union.indirect_contents.indirect);
  287|      0|        }
  288|  46.1M|        _union = std::move(other._union);
  289|  46.1M|        _size = other._size;
  290|  46.1M|        other._size = 0;
  291|  46.1M|        return *this;
  292|  46.1M|    }
_ZNK9prevectorILj16EhjiE9is_directEv:
  173|  7.21G|    bool is_direct() const { return _size <= N; }
_ZN9prevectorILj16EhjiED2Ev:
  474|   369M|    ~prevector() {
  475|   369M|        if (!is_direct()) {
  ------------------
  |  Branch (475:13): [True: 127M, False: 241M]
  ------------------
  476|   127M|            free(_union.indirect_contents.indirect);
  477|   127M|            _union.indirect_contents.indirect = nullptr;
  478|   127M|        }
  479|   369M|    }
_ZN9prevectorILj16EhjiEC2ERKS0_:
  263|   276M|    prevector(const prevector<N, T, Size, Diff>& other) {
  264|   276M|        size_type n = other.size();
  265|   276M|        change_capacity(n);
  266|   276M|        _size += n;
  267|   276M|        fill(item_ptr(0), other.begin(),  other.end());
  268|   276M|    }
_ZNK9prevectorILj16EhjiE4sizeEv:
  294|  2.42G|    size_type size() const {
  295|  2.42G|        return is_direct() ? _size : _size - N - 1;
  ------------------
  |  Branch (295:16): [True: 1.96G, False: 461M]
  ------------------
  296|  2.42G|    }
_ZN9prevectorILj16EhjiE15change_capacityEj:
  175|   387M|    void change_capacity(size_type new_capacity) {
  176|   387M|        if (new_capacity <= N) {
  ------------------
  |  Branch (176:13): [True: 259M, False: 127M]
  ------------------
  177|   259M|            if (!is_direct()) {
  ------------------
  |  Branch (177:17): [True: 0, False: 259M]
  ------------------
  178|      0|                T* indirect = indirect_ptr(0);
  179|      0|                T* src = indirect;
  180|      0|                T* dst = direct_ptr(0);
  181|      0|                memcpy(dst, src, size() * sizeof(T));
  182|      0|                free(indirect);
  183|      0|                _size -= N + 1;
  184|      0|            }
  185|   259M|        } else {
  186|   127M|            if (!is_direct()) {
  ------------------
  |  Branch (186:17): [True: 0, False: 127M]
  ------------------
  187|       |                /* FIXME: Because malloc/realloc here won't call new_handler if allocation fails, assert
  188|       |                    success. These should instead use an allocator or new/delete so that handlers
  189|       |                    are called as necessary, but performance would be slightly degraded by doing so. */
  190|      0|                _union.indirect_contents.indirect = static_cast<char*>(realloc(_union.indirect_contents.indirect, ((size_t)sizeof(T)) * new_capacity));
  191|      0|                assert(_union.indirect_contents.indirect);
  192|      0|                _union.indirect_contents.capacity = new_capacity;
  193|   127M|            } else {
  194|   127M|                char* new_indirect = static_cast<char*>(malloc(((size_t)sizeof(T)) * new_capacity));
  195|   127M|                assert(new_indirect);
  196|   127M|                T* src = direct_ptr(0);
  197|   127M|                T* dst = reinterpret_cast<T*>(new_indirect);
  198|   127M|                memcpy(dst, src, size() * sizeof(T));
  199|   127M|                _union.indirect_contents.indirect = new_indirect;
  200|   127M|                _union.indirect_contents.capacity = new_capacity;
  201|   127M|                _size += N + 1;
  202|   127M|            }
  203|   127M|        }
  204|   387M|    }
_ZN9prevectorILj16EhjiE12indirect_ptrEi:
  171|   142M|    T* indirect_ptr(difference_type pos) { return reinterpret_cast<T*>(_union.indirect_contents.indirect) + pos; }
_ZN9prevectorILj16EhjiE10direct_ptrEi:
  169|   478M|    T* direct_ptr(difference_type pos) { return reinterpret_cast<T*>(_union.direct) + pos; }
_ZN9prevectorILj16EhjiE4fillITkNSt3__114input_iteratorENS0_14const_iteratorEEEvPhT_S5_:
  214|   285M|    void fill(T* dst, InputIterator first, InputIterator last) {
  215|  6.00G|        while (first != last) {
  ------------------
  |  Branch (215:16): [True: 5.71G, False: 285M]
  ------------------
  216|  5.71G|            new(static_cast<void*>(dst)) T(*first);
  217|  5.71G|            ++dst;
  218|  5.71G|            ++first;
  219|  5.71G|        }
  220|   285M|    }
_ZNK9prevectorILj16EhjiE14const_iteratorneES1_:
  125|  7.46G|        bool operator!=(const_iterator x) const { return ptr != x.ptr; }
_ZNK9prevectorILj16EhjiE14const_iteratordeEv:
  111|  8.76G|        const T& operator*() const { return *ptr; }
_ZN9prevectorILj16EhjiE14const_iteratorppEv:
  114|  8.49G|        const_iterator& operator++() { ptr++; return *this; }
_ZN9prevectorILj16EhjiE8item_ptrEi:
  206|   493M|    T* item_ptr(difference_type pos) { return is_direct() ? direct_ptr(pos) : indirect_ptr(pos); }
  ------------------
  |  Branch (206:47): [True: 350M, False: 142M]
  ------------------
_ZNK9prevectorILj16EhjiE5beginEv:
  303|  1.54G|    const_iterator begin() const { return const_iterator(item_ptr(0)); }
_ZNK9prevectorILj16EhjiE8item_ptrEi:
  207|  3.47G|    const T* item_ptr(difference_type pos) const { return is_direct() ? direct_ptr(pos) : indirect_ptr(pos); }
  ------------------
  |  Branch (207:59): [True: 2.95G, False: 518M]
  ------------------
_ZNK9prevectorILj16EhjiE10direct_ptrEi:
  170|  2.95G|    const T* direct_ptr(difference_type pos) const { return reinterpret_cast<const T*>(_union.direct) + pos; }
_ZNK9prevectorILj16EhjiE12indirect_ptrEi:
  172|   518M|    const T* indirect_ptr(difference_type pos) const { return reinterpret_cast<const T*>(_union.indirect_contents.indirect) + pos; }
_ZN9prevectorILj16EhjiE14const_iteratorC2EPKh:
  109|  2.02G|        const_iterator(const T* ptr_) : ptr(ptr_) {}
_ZNK9prevectorILj16EhjiE3endEv:
  305|   479M|    const_iterator end() const { return const_iterator(item_ptr(size())); }
_ZN9prevectorILj16EhjiEaSERKS0_:
  276|  9.21M|    prevector& operator=(const prevector<N, T, Size, Diff>& other) {
  277|  9.21M|        if (&other == this) {
  ------------------
  |  Branch (277:13): [True: 0, False: 9.21M]
  ------------------
  278|      0|            return *this;
  279|      0|        }
  280|  9.21M|        assign(other.begin(), other.end());
  281|  9.21M|        return *this;
  282|  9.21M|    }
_ZN9prevectorILj16EhjiE6assignITkNSt3__114input_iteratorENS0_14const_iteratorEEEvT_S4_:
  233|  9.21M|    void assign(InputIterator first, InputIterator last) {
  234|  9.21M|        size_type n = last - first;
  235|  9.21M|        clear();
  236|  9.21M|        if (capacity() < n) {
  ------------------
  |  Branch (236:13): [True: 3.48M, False: 5.73M]
  ------------------
  237|  3.48M|            change_capacity(n);
  238|  3.48M|        }
  239|  9.21M|        _size += n;
  240|  9.21M|        fill(item_ptr(0), first, last);
  241|  9.21M|    }
_ZmiN9prevectorILj16EhjiE14const_iteratorES1_:
  118|   130M|        difference_type friend operator-(const_iterator a, const_iterator b) { return (&(*a) - &(*b)); }
_ZN9prevectorILj16EhjiE5clearEv:
  355|  12.0M|    void clear() {
  356|  12.0M|        resize(0);
  357|  12.0M|    }
_ZN9prevectorILj16EhjiE6resizeEj:
  328|  49.8M|    void resize(size_type new_size) {
  329|  49.8M|        size_type cur_size = size();
  330|  49.8M|        if (cur_size == new_size) {
  ------------------
  |  Branch (330:13): [True: 15.4M, False: 34.4M]
  ------------------
  331|  15.4M|            return;
  332|  15.4M|        }
  333|  34.4M|        if (cur_size > new_size) {
  ------------------
  |  Branch (333:13): [True: 19.7M, False: 14.6M]
  ------------------
  334|  19.7M|            erase(item_ptr(new_size), end());
  335|  19.7M|            return;
  336|  19.7M|        }
  337|  14.6M|        if (new_size > capacity()) {
  ------------------
  |  Branch (337:13): [True: 14.6M, False: 0]
  ------------------
  338|  14.6M|            change_capacity(new_size);
  339|  14.6M|        }
  340|  14.6M|        ptrdiff_t increase = new_size - cur_size;
  341|  14.6M|        fill(item_ptr(cur_size), increase);
  342|  14.6M|        _size += increase;
  343|  14.6M|    }
_ZN9prevectorILj16EhjiE5eraseENS0_8iteratorES1_:
  420|  19.7M|    iterator erase(iterator first, iterator last) {
  421|       |        // Erase is not allowed to the change the object's capacity. That means
  422|       |        // that when starting with an indirectly allocated prevector with
  423|       |        // size and capacity > N, the result may be a still indirectly allocated
  424|       |        // prevector with size <= N and capacity > N. A shrink_to_fit() call is
  425|       |        // necessary to switch to the (more efficient) directly allocated
  426|       |        // representation (with capacity N and size <= N).
  427|  19.7M|        iterator p = first;
  428|  19.7M|        char* endp = (char*)&(*end());
  429|  19.7M|        _size -= last - p;
  430|  19.7M|        memmove(&(*first), &(*last), endp - ((char*)(&(*last))));
  431|  19.7M|        return first;
  432|  19.7M|    }
_ZNK9prevectorILj16EhjiE8iteratordeEv:
   59|   118M|        T& operator*() const { return *ptr; }
_ZmiN9prevectorILj16EhjiE8iteratorES1_:
   66|  19.7M|        difference_type friend operator-(iterator a, iterator b) { return (&(*a) - &(*b)); }
_ZN9prevectorILj16EhjiE8iteratorC2EPh:
   58|  59.2M|        iterator(T* ptr_) : ptr(ptr_) {}
_ZN9prevectorILj16EhjiE3endEv:
  304|  39.5M|    iterator end() { return iterator(item_ptr(size())); }
_ZN9prevectorILj16EhjiE4fillEPhlRKh:
  209|   107M|    void fill(T* dst, ptrdiff_t count, const T& value = T{}) {
  210|   107M|        std::fill_n(dst, count, value);
  211|   107M|    }
_ZNK9prevectorILj16EhjiE8capacityEv:
  312|  26.7M|    size_t capacity() const {
  313|  26.7M|        if (is_direct()) {
  ------------------
  |  Branch (313:13): [True: 26.6M, False: 49.0k]
  ------------------
  314|  26.6M|            return N;
  315|  26.6M|        } else {
  316|  49.0k|            return _union.indirect_contents.capacity;
  317|  49.0k|        }
  318|  26.7M|    }
_ZNK9prevectorILj16EhjiEixEj:
  324|   924M|    const T& operator[](size_type pos) const {
  325|   924M|        return *item_ptr(pos);
  326|   924M|    }
_ZNK9prevectorILj16EhjiE4dataEv:
  537|   525M|    const value_type* data() const {
  538|   525M|        return item_ptr(0);
  539|   525M|    }
_ZN9prevectorILj16EhjiE4dataEv:
  533|  37.8M|    value_type* data() {
  534|  37.8M|        return item_ptr(0);
  535|  37.8M|    }
_ZNK9prevectorILj16EhjiE14const_iteratorptEv:
  112|  1.23G|        const T* operator->() const { return ptr; }
_ZN9prevectorILj16EhjiE6assignEjRKh:
  223|  1.56k|    void assign(size_type n, const T& val) {
  224|  1.56k|        clear();
  225|  1.56k|        if (capacity() < n) {
  ------------------
  |  Branch (225:13): [True: 0, False: 1.56k]
  ------------------
  226|      0|            change_capacity(n);
  227|      0|        }
  228|  1.56k|        _size += n;
  229|  1.56k|        fill(item_ptr(0), n, val);
  230|  1.56k|    }
_ZNK9prevectorILj16EhjiE5emptyEv:
  298|  23.1M|    bool empty() const {
  299|  23.1M|        return size() == 0;
  300|  23.1M|    }
_ZN9prevectorILj16EhjiEC2EjRKh:
  249|  93.1M|    explicit prevector(size_type n, const T& val) {
  250|  93.1M|        change_capacity(n);
  251|  93.1M|        _size += n;
  252|  93.1M|        fill(item_ptr(0), n, val);
  253|  93.1M|    }
_ZN9prevectorILj16EhjiE6assignITkNSt3__114input_iteratorEPKhEEvT_S5_:
  233|  5.71k|    void assign(InputIterator first, InputIterator last) {
  234|  5.71k|        size_type n = last - first;
  235|  5.71k|        clear();
  236|  5.71k|        if (capacity() < n) {
  ------------------
  |  Branch (236:13): [True: 0, False: 5.71k]
  ------------------
  237|      0|            change_capacity(n);
  238|      0|        }
  239|  5.71k|        _size += n;
  240|  5.71k|        fill(item_ptr(0), first, last);
  241|  5.71k|    }
_ZN9prevectorILj16EhjiE4fillITkNSt3__114input_iteratorEPKhEEvPhT_S6_:
  214|  5.71k|    void fill(T* dst, InputIterator first, InputIterator last) {
  215|  28.5k|        while (first != last) {
  ------------------
  |  Branch (215:16): [True: 22.8k, False: 5.71k]
  ------------------
  216|  22.8k|            new(static_cast<void*>(dst)) T(*first);
  217|  22.8k|            ++dst;
  218|  22.8k|            ++first;
  219|  22.8k|        }
  220|  5.71k|    }
_ZN9prevectorILj16EhjiE6assignITkNSt3__114input_iteratorEPhEEvT_S4_:
  233|  2.79M|    void assign(InputIterator first, InputIterator last) {
  234|  2.79M|        size_type n = last - first;
  235|  2.79M|        clear();
  236|  2.79M|        if (capacity() < n) {
  ------------------
  |  Branch (236:13): [True: 0, False: 2.79M]
  ------------------
  237|      0|            change_capacity(n);
  238|      0|        }
  239|  2.79M|        _size += n;
  240|  2.79M|        fill(item_ptr(0), first, last);
  241|  2.79M|    }
_ZN9prevectorILj16EhjiE4fillITkNSt3__114input_iteratorEPhEEvS3_T_S4_:
  214|  2.79M|    void fill(T* dst, InputIterator first, InputIterator last) {
  215|  30.7M|        while (first != last) {
  ------------------
  |  Branch (215:16): [True: 27.9M, False: 2.79M]
  ------------------
  216|  27.9M|            new(static_cast<void*>(dst)) T(*first);
  217|  27.9M|            ++dst;
  218|  27.9M|            ++first;
  219|  27.9M|        }
  220|  2.79M|    }
_ZNK9prevectorILj16EhjiEeqERKS0_:
  481|  72.4M|    bool operator==(const prevector<N, T, Size, Diff>& other) const {
  482|  72.4M|        if (other.size() != size()) {
  ------------------
  |  Branch (482:13): [True: 0, False: 72.4M]
  ------------------
  483|      0|            return false;
  484|      0|        }
  485|  72.4M|        const_iterator b1 = begin();
  486|  72.4M|        const_iterator b2 = other.begin();
  487|  72.4M|        const_iterator e1 = end();
  488|  1.46G|        while (b1 != e1) {
  ------------------
  |  Branch (488:16): [True: 1.39G, False: 68.8M]
  ------------------
  489|  1.39G|            if ((*b1) != (*b2)) {
  ------------------
  |  Branch (489:17): [True: 3.61M, False: 1.38G]
  ------------------
  490|  3.61M|                return false;
  491|  3.61M|            }
  492|  1.38G|            ++b1;
  493|  1.38G|            ++b2;
  494|  1.38G|        }
  495|  68.8M|        return true;
  496|  72.4M|    }

_ZN8CAddressC2E8CService12ServiceFlags:
  397|  14.6M|    CAddress(CService ipIn, ServiceFlags nServicesIn) : CService{ipIn}, nServices{nServicesIn} {};
_ZeqRK8CAddressS1_:
  462|  23.4M|    {
  463|  23.4M|        return a.nTime == b.nTime &&
  ------------------
  |  Branch (463:16): [True: 23.4M, False: 0]
  ------------------
  464|  23.4M|               a.nServices == b.nServices &&
  ------------------
  |  Branch (464:16): [True: 23.4M, False: 0]
  ------------------
  465|  23.4M|               static_cast<const CService&>(a) == static_cast<const CService&>(b);
  ------------------
  |  Branch (465:16): [True: 23.4M, False: 0]
  ------------------
  466|  23.4M|    }
_ZN8CAddressC2Ev:
  396|  30.4M|    CAddress() : CService{} {};
_ZN8CAddress16SerializationOpsI12ParamsStreamIR10DataStreamNS_9SerParamsEES_17ActionUnserializeEEvRT0_RT_T1_:
  414|  11.5M|    {
  415|  11.5M|        bool use_v2;
  416|  11.5M|        auto& params = SER_PARAMS(SerParams);
  ------------------
  |  |  217|  11.5M|#define SER_PARAMS(type) (s.template GetParams<type>())
  ------------------
  417|  11.5M|        if (params.fmt == Format::Disk) {
  ------------------
  |  Branch (417:13): [True: 11.5M, False: 0]
  ------------------
  418|       |            // In the disk serialization format, the encoding (v1 or v2) is determined by a flag version
  419|       |            // that's part of the serialization itself. ADDRV2_FORMAT in the stream version only determines
  420|       |            // whether V2 is chosen/permitted at all.
  421|  11.5M|            uint32_t stored_format_version = DISK_VERSION_INIT;
  422|  11.5M|            if (params.enc == Encoding::V2) stored_format_version |= DISK_VERSION_ADDRV2;
  ------------------
  |  Branch (422:17): [True: 11.5M, False: 0]
  ------------------
  423|  11.5M|            READWRITE(stored_format_version);
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  424|  11.5M|            stored_format_version &= ~DISK_VERSION_IGNORE_MASK; // ignore low bits
  425|  11.5M|            if (stored_format_version == 0) {
  ------------------
  |  Branch (425:17): [True: 0, False: 11.5M]
  ------------------
  426|      0|                use_v2 = false;
  427|  11.5M|            } else if (stored_format_version == DISK_VERSION_ADDRV2 && params.enc == Encoding::V2) {
  ------------------
  |  Branch (427:24): [True: 11.5M, False: 0]
  |  Branch (427:72): [True: 11.5M, False: 0]
  ------------------
  428|       |                // Only support v2 deserialization if V2 is set.
  429|  11.5M|                use_v2 = true;
  430|  11.5M|            } else {
  431|      0|                throw std::ios_base::failure("Unsupported CAddress disk format version");
  432|      0|            }
  433|  11.5M|        } else {
  434|      0|            assert(params.fmt == Format::Network);
  435|       |            // In the network serialization format, the encoding (v1 or v2) is determined directly by
  436|       |            // the value of enc in the stream params, as no explicitly encoded version
  437|       |            // exists in the stream.
  438|      0|            use_v2 = params.enc == Encoding::V2;
  439|      0|        }
  440|       |
  441|  11.5M|        READWRITE(Using<LossyChronoFormatter<uint32_t>>(obj.nTime));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  442|       |        // nServices is serialized as CompactSize in V2; as uint64_t in V1.
  443|  11.5M|        if (use_v2) {
  ------------------
  |  Branch (443:13): [True: 11.5M, False: 0]
  ------------------
  444|  11.5M|            uint64_t services_tmp;
  445|  11.5M|            SER_WRITE(obj, services_tmp = obj.nServices);
  ------------------
  |  |  158|  11.5M|#define SER_WRITE(obj, code) ser_action.SerWrite(s, obj, [&](Stream& s, const Type& obj) { code; })
  ------------------
  446|  11.5M|            READWRITE(Using<CompactSizeFormatter<false>>(services_tmp));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  447|  11.5M|            SER_READ(obj, obj.nServices = static_cast<ServiceFlags>(services_tmp));
  ------------------
  |  |  157|  11.5M|#define SER_READ(obj, code) ser_action.SerRead(s, obj, [&](Stream& s, typename std::remove_const<Type>::type& obj) { code; })
  ------------------
  448|  11.5M|        } else {
  449|      0|            READWRITE(Using<CustomUintFormatter<8>>(obj.nServices));
  ------------------
  |  |  156|      0|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  450|      0|        }
  451|       |        // Invoke V1/V2 serializer for CService parent object.
  452|  11.5M|        const auto ser_params{use_v2 ? CNetAddr::V2 : CNetAddr::V1};
  ------------------
  |  Branch (452:31): [True: 11.5M, False: 0]
  ------------------
  453|  11.5M|        READWRITE(ser_params(AsBase<CService>(obj)));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  454|  11.5M|    }
_ZN8CAddress16SerializationOpsI12ParamsStreamIR10DataStreamNS_9SerParamsEEKS_15ActionSerializeEEvRT0_RT_T1_:
  414|  11.5M|    {
  415|  11.5M|        bool use_v2;
  416|  11.5M|        auto& params = SER_PARAMS(SerParams);
  ------------------
  |  |  217|  11.5M|#define SER_PARAMS(type) (s.template GetParams<type>())
  ------------------
  417|  11.5M|        if (params.fmt == Format::Disk) {
  ------------------
  |  Branch (417:13): [True: 11.5M, False: 0]
  ------------------
  418|       |            // In the disk serialization format, the encoding (v1 or v2) is determined by a flag version
  419|       |            // that's part of the serialization itself. ADDRV2_FORMAT in the stream version only determines
  420|       |            // whether V2 is chosen/permitted at all.
  421|  11.5M|            uint32_t stored_format_version = DISK_VERSION_INIT;
  422|  11.5M|            if (params.enc == Encoding::V2) stored_format_version |= DISK_VERSION_ADDRV2;
  ------------------
  |  Branch (422:17): [True: 11.5M, False: 0]
  ------------------
  423|  11.5M|            READWRITE(stored_format_version);
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  424|  11.5M|            stored_format_version &= ~DISK_VERSION_IGNORE_MASK; // ignore low bits
  425|  11.5M|            if (stored_format_version == 0) {
  ------------------
  |  Branch (425:17): [True: 0, False: 11.5M]
  ------------------
  426|      0|                use_v2 = false;
  427|  11.5M|            } else if (stored_format_version == DISK_VERSION_ADDRV2 && params.enc == Encoding::V2) {
  ------------------
  |  Branch (427:24): [True: 11.5M, False: 0]
  |  Branch (427:72): [True: 11.5M, False: 0]
  ------------------
  428|       |                // Only support v2 deserialization if V2 is set.
  429|  11.5M|                use_v2 = true;
  430|  11.5M|            } else {
  431|      0|                throw std::ios_base::failure("Unsupported CAddress disk format version");
  432|      0|            }
  433|  11.5M|        } else {
  434|      0|            assert(params.fmt == Format::Network);
  435|       |            // In the network serialization format, the encoding (v1 or v2) is determined directly by
  436|       |            // the value of enc in the stream params, as no explicitly encoded version
  437|       |            // exists in the stream.
  438|      0|            use_v2 = params.enc == Encoding::V2;
  439|      0|        }
  440|       |
  441|  11.5M|        READWRITE(Using<LossyChronoFormatter<uint32_t>>(obj.nTime));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  442|       |        // nServices is serialized as CompactSize in V2; as uint64_t in V1.
  443|  11.5M|        if (use_v2) {
  ------------------
  |  Branch (443:13): [True: 11.5M, False: 0]
  ------------------
  444|  11.5M|            uint64_t services_tmp;
  445|  11.5M|            SER_WRITE(obj, services_tmp = obj.nServices);
  ------------------
  |  |  158|  11.5M|#define SER_WRITE(obj, code) ser_action.SerWrite(s, obj, [&](Stream& s, const Type& obj) { code; })
  ------------------
  446|  11.5M|            READWRITE(Using<CompactSizeFormatter<false>>(services_tmp));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  447|  11.5M|            SER_READ(obj, obj.nServices = static_cast<ServiceFlags>(services_tmp));
  ------------------
  |  |  157|  11.5M|#define SER_READ(obj, code) ser_action.SerRead(s, obj, [&](Stream& s, typename std::remove_const<Type>::type& obj) { code; })
  ------------------
  448|  11.5M|        } else {
  449|      0|            READWRITE(Using<CustomUintFormatter<8>>(obj.nServices));
  ------------------
  |  |  156|      0|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  450|      0|        }
  451|       |        // Invoke V1/V2 serializer for CService parent object.
  452|  11.5M|        const auto ser_params{use_v2 ? CNetAddr::V2 : CNetAddr::V1};
  ------------------
  |  Branch (452:31): [True: 11.5M, False: 0]
  ------------------
  453|  11.5M|        READWRITE(ser_params(AsBase<CService>(obj)));
  ------------------
  |  |  156|  11.5M|#define READWRITE(...) (ser_action.SerReadWriteMany(s, __VA_ARGS__))
  ------------------
  454|  11.5M|    }

_Z30MakeRandDeterministicDANGEROUSRK7uint256:
  671|  2.49k|{
  672|  2.49k|    GetRNGState().MakeDeterministic(seed);
  673|  2.49k|}
_Z12GetRandBytes4SpanIhE:
  677|  9.99k|{
  678|  9.99k|    g_used_g_prng = true;
  679|  9.99k|    ProcRand(bytes.data(), bytes.size(), RNGLevel::FAST, /*always_use_real_rng=*/false);
  680|  9.99k|}
_ZN17FastRandomContext10RandomSeedEv:
  695|  9.99k|{
  696|  9.99k|    uint256 seed = GetRandHash();
  697|  9.99k|    rng.SetKey(MakeByteSpan(seed));
  698|  9.99k|    requires_seed = false;
  699|  9.99k|}
_ZN17FastRandomContext8fillrandE4SpanISt4byteE:
  702|  16.6M|{
  703|  16.6M|    if (requires_seed) RandomSeed();
  ------------------
  |  Branch (703:9): [True: 0, False: 16.6M]
  ------------------
  704|  16.6M|    rng.Keystream(output);
  705|  16.6M|}
_ZN17FastRandomContextC2ERK7uint256:
  707|  2.49k|FastRandomContext::FastRandomContext(const uint256& seed) noexcept : requires_seed(false), rng(MakeByteSpan(seed)) {}
_ZN17FastRandomContext6ReseedERK7uint256:
  710|  4.99k|{
  711|  4.99k|    FlushCache();
  712|  4.99k|    requires_seed = false;
  713|  4.99k|    rng = {MakeByteSpan(seed)};
  714|  4.99k|}
_ZN17FastRandomContextC2Eb:
  764|  14.9k|FastRandomContext::FastRandomContext(bool fDeterministic) noexcept : requires_seed(!fDeterministic), rng(ZERO_KEY)
  765|  14.9k|{
  766|       |    // Note that despite always initializing with ZERO_KEY, requires_seed is set to true if not
  767|       |    // fDeterministic. That means the rng will be reinitialized with a secure random key upon first
  768|       |    // use.
  769|  14.9k|}
random.cpp:_ZN12_GLOBAL__N_111GetRNGStateEv:
  526|  12.4k|{
  527|       |    // This idiom relies on the guarantee that static variable are initialized
  528|       |    // on first call, even when multiple parallel calls are permitted.
  529|  12.4k|    static std::vector<RNGState, secure_allocator<RNGState>> g_rng(1);
  530|  12.4k|    return g_rng[0];
  531|  12.4k|}
random.cpp:_ZN12_GLOBAL__N_18RNGState17MakeDeterministicERK7uint256:
  475|  2.49k|    {
  476|  2.49k|        LOCK(m_mutex);
  ------------------
  |  |  257|  2.49k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  2.49k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  2.49k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  2.49k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|  2.49k|        m_deterministic_prng.emplace(MakeByteSpan(seed));
  478|  2.49k|    }
random.cpp:_ZN12_GLOBAL__N_18ProcRandEPhiNS_8RNGLevelEb:
  638|  9.99k|{
  639|       |    // Make sure the RNG is initialized first (as all Seed* function possibly need hwrand to be available).
  640|  9.99k|    RNGState& rng = GetRNGState();
  641|       |
  642|  9.99k|    assert(num <= 32);
  643|       |
  644|  9.99k|    CSHA512 hasher;
  645|  9.99k|    switch (level) {
  ------------------
  |  Branch (645:13): [True: 0, False: 9.99k]
  ------------------
  646|  9.99k|    case RNGLevel::FAST:
  ------------------
  |  Branch (646:5): [True: 9.99k, False: 0]
  ------------------
  647|  9.99k|        SeedFast(hasher);
  648|  9.99k|        break;
  649|      0|    case RNGLevel::SLOW:
  ------------------
  |  Branch (649:5): [True: 0, False: 9.99k]
  ------------------
  650|      0|        SeedSlow(hasher, rng);
  651|      0|        break;
  652|      0|    case RNGLevel::PERIODIC:
  ------------------
  |  Branch (652:5): [True: 0, False: 9.99k]
  ------------------
  653|      0|        SeedPeriodic(hasher, rng);
  654|      0|        break;
  655|  9.99k|    }
  656|       |
  657|       |    // Combine with and update state
  658|  9.99k|    if (!rng.MixExtract(out, num, std::move(hasher), false, always_use_real_rng)) {
  ------------------
  |  Branch (658:9): [True: 0, False: 9.99k]
  ------------------
  659|       |        // On the first invocation, also seed with SeedStartup().
  660|      0|        CSHA512 startup_hasher;
  661|      0|        SeedStartup(startup_hasher, rng);
  662|      0|        rng.MixExtract(out, num, std::move(startup_hasher), true, always_use_real_rng);
  663|      0|    }
  664|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_18SeedFastER7CSHA512:
  545|  9.99k|{
  546|  9.99k|    unsigned char buffer[32];
  547|       |
  548|       |    // Stack pointer to indirectly commit to thread/callstack
  549|  9.99k|    const unsigned char* ptr = buffer;
  550|  9.99k|    hasher.Write((const unsigned char*)&ptr, sizeof(ptr));
  551|       |
  552|       |    // Hardware randomness is very fast when available; use it always.
  553|  9.99k|    SeedHardwareFast(hasher);
  554|       |
  555|       |    // High-precision timestamp
  556|  9.99k|    SeedTimestamp(hasher);
  557|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_116SeedHardwareFastER7CSHA512:
  259|  9.99k|void SeedHardwareFast(CSHA512& hasher) noexcept {
  260|  9.99k|#if defined(__x86_64__) || defined(__amd64__) || defined(__i386__)
  261|  9.99k|    if (g_rdrand_supported) {
  ------------------
  |  Branch (261:9): [True: 9.99k, False: 0]
  ------------------
  262|  9.99k|        uint64_t out = GetRdRand();
  263|  9.99k|        hasher.Write((const unsigned char*)&out, sizeof(out));
  264|  9.99k|        return;
  265|  9.99k|    }
  266|       |#elif defined(__aarch64__) && defined(HWCAP2_RNG)
  267|       |    if (g_rndr_supported) {
  268|       |        uint64_t out = GetRNDR();
  269|       |        hasher.Write((const unsigned char*)&out, sizeof(out));
  270|       |        return;
  271|       |    }
  272|       |#endif
  273|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_19GetRdRandEv:
  126|  9.99k|{
  127|       |    // RdRand may very rarely fail. Invoke it up to 10 times in a loop to reduce this risk.
  128|       |#ifdef __i386__
  129|       |    uint8_t ok = 0;
  130|       |    // Initialize to 0 to silence a compiler warning that r1 or r2 may be used
  131|       |    // uninitialized. Even if rdrand fails (!ok) it will set the output to 0,
  132|       |    // but there is no way that the compiler could know that.
  133|       |    uint32_t r1 = 0, r2 = 0;
  134|       |    for (int i = 0; i < 10; ++i) {
  135|       |        __asm__ volatile (".byte 0x0f, 0xc7, 0xf0; setc %1" : "=a"(r1), "=q"(ok) :: "cc"); // rdrand %eax
  136|       |        if (ok) break;
  137|       |    }
  138|       |    for (int i = 0; i < 10; ++i) {
  139|       |        __asm__ volatile (".byte 0x0f, 0xc7, 0xf0; setc %1" : "=a"(r2), "=q"(ok) :: "cc"); // rdrand %eax
  140|       |        if (ok) break;
  141|       |    }
  142|       |    return (((uint64_t)r2) << 32) | r1;
  143|       |#elif defined(__x86_64__) || defined(__amd64__)
  144|       |    uint8_t ok = 0;
  145|  9.99k|    uint64_t r1 = 0; // See above why we initialize to 0.
  146|  9.99k|    for (int i = 0; i < 10; ++i) {
  ------------------
  |  Branch (146:21): [True: 9.99k, False: 0]
  ------------------
  147|  9.99k|        __asm__ volatile (".byte 0x48, 0x0f, 0xc7, 0xf0; setc %1" : "=a"(r1), "=q"(ok) :: "cc"); // rdrand %rax
  148|  9.99k|        if (ok) break;
  ------------------
  |  Branch (148:13): [True: 9.99k, False: 0]
  ------------------
  149|  9.99k|    }
  150|  9.99k|    return r1;
  151|       |#else
  152|       |#error "RdRand is only supported on x86 and x86_64"
  153|       |#endif
  154|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_113SeedTimestampER7CSHA512:
  539|  9.99k|{
  540|  9.99k|    int64_t perfcounter = GetPerformanceCounter();
  541|  9.99k|    hasher.Write((const unsigned char*)&perfcounter, sizeof(perfcounter));
  542|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_121GetPerformanceCounterEv:
   65|  9.99k|{
   66|       |    // Read the hardware time stamp counter when available.
   67|       |    // See https://en.wikipedia.org/wiki/Time_Stamp_Counter for more information.
   68|       |#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
   69|       |    return __rdtsc();
   70|       |#elif !defined(_MSC_VER) && defined(__i386__)
   71|       |    uint64_t r = 0;
   72|       |    __asm__ volatile ("rdtsc" : "=A"(r)); // Constrain the r variable to the eax:edx pair.
   73|       |    return r;
   74|       |#elif !defined(_MSC_VER) && (defined(__x86_64__) || defined(__amd64__))
   75|       |    uint64_t r1 = 0, r2 = 0;
   76|  9.99k|    __asm__ volatile ("rdtsc" : "=a"(r1), "=d"(r2)); // Constrain r1 to rax and r2 to rdx.
   77|  9.99k|    return (r2 << 32) | r1;
   78|       |#else
   79|       |    // Fall back to using standard library clock (usually microsecond or nanosecond precision)
   80|       |    return std::chrono::high_resolution_clock::now().time_since_epoch().count();
   81|       |#endif
   82|  9.99k|}
random.cpp:_ZN12_GLOBAL__N_18RNGState10MixExtractEPhmO7CSHA512bb:
  488|  9.99k|    {
  489|  9.99k|        assert(num <= 32);
  490|  9.99k|        unsigned char buf[64];
  491|  9.99k|        static_assert(sizeof(buf) == CSHA512::OUTPUT_SIZE, "Buffer needs to have hasher's output size");
  492|  9.99k|        bool ret;
  493|  9.99k|        {
  494|  9.99k|            LOCK(m_mutex);
  ------------------
  |  |  257|  9.99k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  9.99k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  9.99k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  9.99k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|  9.99k|            ret = (m_strongly_seeded |= strong_seed);
  496|       |            // Write the current state of the RNG into the hasher
  497|  9.99k|            hasher.Write(m_state, 32);
  498|       |            // Write a new counter number into the state
  499|  9.99k|            hasher.Write((const unsigned char*)&m_counter, sizeof(m_counter));
  500|  9.99k|            ++m_counter;
  501|       |            // Finalize the hasher
  502|  9.99k|            hasher.Finalize(buf);
  503|       |            // Store the last 32 bytes of the hash output as new RNG state.
  504|  9.99k|            memcpy(m_state, buf + 32, 32);
  505|       |            // Handle requests for deterministic randomness.
  506|  9.99k|            if (!always_use_real_rng && m_deterministic_prng.has_value()) [[unlikely]] {
  ------------------
  |  Branch (506:17): [True: 9.99k, False: 0]
  |  Branch (506:41): [True: 9.99k, False: 0]
  ------------------
  507|       |                // Overwrite the beginning of buf, which will be used for output.
  508|  9.99k|                m_deterministic_prng->Keystream(AsWritableBytes(Span{buf, num}));
  509|       |                // Do not require strong seeding for deterministic output.
  510|  9.99k|                ret = true;
  511|  9.99k|            }
  512|  9.99k|        }
  513|       |        // If desired, copy (up to) the first 32 bytes of the hash output as output.
  514|  9.99k|        if (num) {
  ------------------
  |  Branch (514:13): [True: 9.99k, False: 0]
  ------------------
  515|  9.99k|            assert(out != nullptr);
  516|  9.99k|            memcpy(out, buf, num);
  517|  9.99k|        }
  518|       |        // Best effort cleanup of internal state
  519|  9.99k|        hasher.Reset();
  520|  9.99k|        memory_cleanse(buf, 64);
  521|  9.99k|        return ret;
  522|  9.99k|    }

_ZN11RandomMixinI17FastRandomContextE9randrangeITkNSt3__18integralEiEET_S4_:
  255|  30.2M|    {
  256|  30.2M|        static_assert(std::numeric_limits<I>::max() <= std::numeric_limits<uint64_t>::max());
  257|  30.2M|        Assume(range > 0);
  ------------------
  |  |   97|  30.2M|#define Assume(val) inline_assertion_check<false>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
  258|  30.2M|        uint64_t maxval = range - 1U;
  259|  30.2M|        int bits = std::bit_width(maxval);
  260|  44.1M|        while (true) {
  ------------------
  |  Branch (260:16): [Folded - Ignored]
  ------------------
  261|  44.1M|            uint64_t ret = Impl().randbits(bits);
  262|  44.1M|            if (ret <= maxval) return ret;
  ------------------
  |  Branch (262:17): [True: 30.2M, False: 13.8M]
  ------------------
  263|  44.1M|        }
  264|  30.2M|    }
_ZN11RandomMixinI17FastRandomContextE4ImplEv:
  185|  93.6M|    RandomNumberGenerator auto& Impl() noexcept { return static_cast<T&>(*this); }
_ZN11RandomMixinI17FastRandomContextE8randbitsEi:
  205|  66.2M|    {
  206|  66.2M|        Assume(bits <= 64);
  ------------------
  |  |   97|  66.2M|#define Assume(val) inline_assertion_check<false>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
  207|       |        // Requests for the full 64 bits are passed through.
  208|  66.2M|        if (bits == 64) return Impl().rand64();
  ------------------
  |  Branch (208:13): [True: 0, False: 66.2M]
  ------------------
  209|  66.2M|        uint64_t ret;
  210|  66.2M|        if (bits <= bitbuf_size) {
  ------------------
  |  Branch (210:13): [True: 55.4M, False: 10.8M]
  ------------------
  211|       |            // If there is enough entropy left in bitbuf, return its bottom bits bits.
  212|  55.4M|            ret = bitbuf;
  213|  55.4M|            bitbuf >>= bits;
  214|  55.4M|            bitbuf_size -= bits;
  215|  55.4M|        } else {
  216|       |            // If not, return all of bitbuf, supplemented with the (bits - bitbuf_size) bottom
  217|       |            // bits of a newly generated 64-bit number on top. The remainder of that generated
  218|       |            // number becomes the new bitbuf.
  219|  10.8M|            uint64_t gen = Impl().rand64();
  220|  10.8M|            ret = (gen << bitbuf_size) | bitbuf;
  221|  10.8M|            bitbuf = gen >> (bits - bitbuf_size);
  222|  10.8M|            bitbuf_size = 64 + bitbuf_size - bits;
  223|  10.8M|        }
  224|       |        // Return the bottom bits bits of ret.
  225|  66.2M|        return ret & ((uint64_t{1} << bits) - 1);
  226|  66.2M|    }
_ZN17FastRandomContext6rand64Ev:
  396|  10.8M|    {
  397|  10.8M|        if (requires_seed) RandomSeed();
  ------------------
  |  Branch (397:13): [True: 9.99k, False: 10.8M]
  ------------------
  398|  10.8M|        std::array<std::byte, 8> buf;
  399|  10.8M|        rng.Keystream(buf);
  400|  10.8M|        return ReadLE64(buf.data());
  401|  10.8M|    }
_Z11GetRandHashv:
  455|  9.99k|{
  456|  9.99k|    uint256 hash;
  457|  9.99k|    GetRandBytes(hash);
  458|  9.99k|    return hash;
  459|  9.99k|}
_ZN11RandomMixinI17FastRandomContextE9randrangeITkNSt3__18integralEmEET_S4_:
  255|  16.6M|    {
  256|  16.6M|        static_assert(std::numeric_limits<I>::max() <= std::numeric_limits<uint64_t>::max());
  257|  16.6M|        Assume(range > 0);
  ------------------
  |  |   97|  16.6M|#define Assume(val) inline_assertion_check<false>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
  258|  16.6M|        uint64_t maxval = range - 1U;
  259|  16.6M|        int bits = std::bit_width(maxval);
  260|  22.1M|        while (true) {
  ------------------
  |  Branch (260:16): [Folded - Ignored]
  ------------------
  261|  22.1M|            uint64_t ret = Impl().randbits(bits);
  262|  22.1M|            if (ret <= maxval) return ret;
  ------------------
  |  Branch (262:17): [True: 16.6M, False: 5.52M]
  ------------------
  263|  22.1M|        }
  264|  16.6M|    }
_ZN11RandomMixinI17FastRandomContextE9randbytesITk9BasicBytehEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEm:
  298|  16.6M|    {
  299|  16.6M|        std::vector<B> ret(len);
  300|  16.6M|        Impl().fillrand(MakeWritableByteSpan(ret));
  301|  16.6M|        return ret;
  302|  16.6M|    }
_ZN11RandomMixinI17FastRandomContextEC2Ev:
  195|  17.4k|    constexpr RandomMixin() noexcept = default;
_ZN11RandomMixinI17FastRandomContextE10FlushCacheEv:
  189|  4.99k|    {
  190|  4.99k|        bitbuf = 0;
  191|  4.99k|        bitbuf_size = 0;
  192|  4.99k|    }

secp256k1.c:secp256k1_ecmult_gen_context_clear:
   26|      2|static void secp256k1_ecmult_gen_context_clear(secp256k1_ecmult_gen_context *ctx) {
   27|      2|    ctx->built = 0;
   28|      2|    secp256k1_scalar_clear(&ctx->scalar_offset);
   29|      2|    secp256k1_ge_clear(&ctx->ge_offset);
   30|      2|    secp256k1_fe_clear(&ctx->proj_blind);
   31|      2|}
secp256k1.c:secp256k1_ecmult_gen_context_is_built:
   22|      4|static int secp256k1_ecmult_gen_context_is_built(const secp256k1_ecmult_gen_context* ctx) {
   23|      4|    return ctx->built;
   24|      4|}

secp256k1.c:secp256k1_fe_clear:
   21|      2|SECP256K1_INLINE static void secp256k1_fe_clear(secp256k1_fe *a) {
   22|      2|    secp256k1_memclear(a, sizeof(secp256k1_fe));
   23|      2|}

secp256k1.c:secp256k1_ge_clear:
  305|      2|static void secp256k1_ge_clear(secp256k1_ge *r) {
  306|      2|    secp256k1_memclear(r, sizeof(secp256k1_ge));
  307|      2|}

secp256k1.c:secp256k1_scalar_clear:
   30|      2|SECP256K1_INLINE static void secp256k1_scalar_clear(secp256k1_scalar *r) {
   31|      2|    secp256k1_memclear(r, sizeof(secp256k1_scalar));
   32|      2|}

secp256k1_context_preallocated_destroy:
  176|      2|void secp256k1_context_preallocated_destroy(secp256k1_context* ctx) {
  177|      2|    ARG_CHECK_VOID(ctx == NULL || secp256k1_context_is_proper(ctx));
  ------------------
  |  |   52|      2|#define ARG_CHECK_VOID(cond) do { \
  |  |   53|      2|    if (EXPECT(!(cond), 0)) { \
  |  |  ------------------
  |  |  |  |  136|      4|#define EXPECT(x,c) __builtin_expect((x),(c))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (136:21): [True: 0, False: 2]
  |  |  |  |  |  Branch (136:39): [True: 0, False: 2]
  |  |  |  |  |  Branch (136:39): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   54|      0|        secp256k1_callback_call(&ctx->illegal_callback, #cond); \
  |  |   55|      0|        return; \
  |  |   56|      0|    } \
  |  |   57|      2|} while(0)
  |  |  ------------------
  |  |  |  Branch (57:9): [Folded - Ignored]
  |  |  ------------------
  ------------------
  178|       |
  179|       |    /* Defined as noop */
  180|      2|    if (ctx == NULL) {
  ------------------
  |  Branch (180:9): [True: 0, False: 2]
  ------------------
  181|      0|        return;
  182|      0|    }
  183|       |
  184|      2|    secp256k1_ecmult_gen_context_clear(&ctx->ecmult_gen_ctx);
  185|      2|}
secp256k1_context_destroy:
  187|      2|void secp256k1_context_destroy(secp256k1_context* ctx) {
  188|      2|    ARG_CHECK_VOID(ctx == NULL || secp256k1_context_is_proper(ctx));
  ------------------
  |  |   52|      2|#define ARG_CHECK_VOID(cond) do { \
  |  |   53|      2|    if (EXPECT(!(cond), 0)) { \
  |  |  ------------------
  |  |  |  |  136|      4|#define EXPECT(x,c) __builtin_expect((x),(c))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (136:21): [True: 0, False: 2]
  |  |  |  |  |  Branch (136:39): [True: 0, False: 2]
  |  |  |  |  |  Branch (136:39): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   54|      0|        secp256k1_callback_call(&ctx->illegal_callback, #cond); \
  |  |   55|      0|        return; \
  |  |   56|      0|    } \
  |  |   57|      2|} while(0)
  |  |  ------------------
  |  |  |  Branch (57:9): [Folded - Ignored]
  |  |  ------------------
  ------------------
  189|       |
  190|       |    /* Defined as noop */
  191|      2|    if (ctx == NULL) {
  ------------------
  |  Branch (191:9): [True: 0, False: 2]
  ------------------
  192|      0|        return;
  193|      0|    }
  194|       |
  195|      2|    secp256k1_context_preallocated_destroy(ctx);
  196|      2|    free(ctx);
  197|      2|}
secp256k1.c:secp256k1_context_is_proper:
   82|      4|static int secp256k1_context_is_proper(const secp256k1_context* ctx) {
   83|      4|    return secp256k1_ecmult_gen_context_is_built(&ctx->ecmult_gen_ctx);
   84|      4|}

secp256k1.c:secp256k1_memclear:
  223|      6|static SECP256K1_INLINE void secp256k1_memclear(void *ptr, size_t len) {
  224|       |#if defined(_MSC_VER)
  225|       |    /* SecureZeroMemory is guaranteed not to be optimized out by MSVC. */
  226|       |    SecureZeroMemory(ptr, len);
  227|       |#elif defined(__GNUC__)
  228|       |    /* We use a memory barrier that scares the compiler away from optimizing out the memset.
  229|       |     *
  230|       |     * Quoting Adam Langley <agl@google.com> in commit ad1907fe73334d6c696c8539646c21b11178f20f
  231|       |     * in BoringSSL (ISC License):
  232|       |     *    As best as we can tell, this is sufficient to break any optimisations that
  233|       |     *    might try to eliminate "superfluous" memsets.
  234|       |     * This method is used in memzero_explicit() the Linux kernel, too. Its advantage is that it
  235|       |     * is pretty efficient, because the compiler can still implement the memset() efficently,
  236|       |     * just not remove it entirely. See "Dead Store Elimination (Still) Considered Harmful" by
  237|       |     * Yang et al. (USENIX Security 2017) for more background.
  238|       |     */
  239|      6|    memset(ptr, 0, len);
  240|      6|    __asm__ __volatile__("" : : "r"(ptr) : "memory");
  241|       |#else
  242|       |    void *(*volatile const volatile_memset)(void *, int, size_t) = memset;
  243|       |    volatile_memset(ptr, 0, len);
  244|       |#endif
  245|       |#ifdef VERIFY
  246|       |    SECP256K1_CHECKMEM_UNDEFINE(ptr, len);
  247|       |#endif
  248|      6|}

_Z11UnserializeI10DataStreamR20AddrManDeterministicQ14UnserializableIT0_T_EEvRS4_OS3_:
  762|  2.49k|{
  763|  2.49k|    a.Unserialize(is);
  764|  2.49k|}
_Z9SerializeI10DataStream20AddrManDeterministicQ12SerializableIT0_T_EEvRS3_RKS2_:
  753|  2.49k|{
  754|  2.49k|    a.Serialize(os);
  755|  2.49k|}
_Z9SerializeI10DataStreamEvRT_h:
  258|  14.7M|template<typename Stream> inline void Serialize(Stream& s, uint8_t a ) { ser_writedata8(s, a); }
_Z14ser_writedata8I10DataStreamEvRT_h:
   55|  29.4M|{
   56|  29.4M|    s.write(AsBytes(Span{&obj, 1}));
   57|  29.4M|}
_Z9SerializeI10DataStreamhNSt3__19allocatorIhEEEvRT_RKNS1_6vectorIT0_T1_EE:
  846|  14.7M|{
  847|  14.7M|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  848|  14.7M|        WriteCompactSize(os, v.size());
  849|  14.7M|        if (!v.empty()) os.write(MakeByteSpan(v));
  ------------------
  |  Branch (849:13): [True: 14.7M, False: 0]
  ------------------
  850|       |    } else if constexpr (std::is_same_v<T, bool>) {
  851|       |        // A special case for std::vector<bool>, as dereferencing
  852|       |        // std::vector<bool>::const_iterator does not result in a const bool&
  853|       |        // due to std::vector's special casing for bool arguments.
  854|       |        WriteCompactSize(os, v.size());
  855|       |        for (bool elem : v) {
  856|       |            ::Serialize(os, elem);
  857|       |        }
  858|       |    } else {
  859|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  860|       |    }
  861|  14.7M|}
_Z16WriteCompactSizeI10DataStreamEvRT_m:
  309|  14.7M|{
  310|  14.7M|    if (nSize < 253)
  ------------------
  |  Branch (310:9): [True: 14.7M, False: 0]
  ------------------
  311|  14.7M|    {
  312|  14.7M|        ser_writedata8(os, nSize);
  313|  14.7M|    }
  314|      0|    else if (nSize <= std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (314:14): [True: 0, False: 0]
  ------------------
  315|      0|    {
  316|      0|        ser_writedata8(os, 253);
  317|      0|        ser_writedata16(os, nSize);
  318|      0|    }
  319|      0|    else if (nSize <= std::numeric_limits<unsigned int>::max())
  ------------------
  |  Branch (319:14): [True: 0, False: 0]
  ------------------
  320|      0|    {
  321|      0|        ser_writedata8(os, 254);
  322|      0|        ser_writedata32(os, nSize);
  323|      0|    }
  324|      0|    else
  325|      0|    {
  326|      0|        ser_writedata8(os, 255);
  327|      0|        ser_writedata64(os, nSize);
  328|      0|    }
  329|  14.7M|    return;
  330|  14.7M|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEC2ES1_RKS3_:
 1127|  14.7M|    ParamsStream(SubStream&& substream, const Params& params LIFETIMEBOUND) : m_params{params}, m_substream{std::forward<SubStream>(substream)} {}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER8AddrInfoQ14UnserializableIT0_T_EEvRS9_OS8_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN8AddrInfo11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  228|  11.5M|    {                                                                                               \
  229|  11.5M|        static_assert(std::is_same<cls&, decltype(*this)>::value, "Unserialize type mismatch");     \
  230|  11.5M|        Unser(s, *this);                                                                            \
  231|  11.5M|    }
_ZN8AddrInfo5UnserI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_RS_:
  180|  11.5M|    static void Unser(Stream& s, cls& obj) { SerializationOps(obj, s, ActionUnserialize{}); } \
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJRS4_R8CNetAddr7WrapperI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNSE_8durationIxNSD_5ratioILl1ELl1EEEEEEEERiEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJRS3_R8CNetAddrR7WrapperI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNSD_8durationIxNSC_5ratioILl1ELl1EEEEEEEERiEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEERS3_Q14UnserializableIT0_T_EEvRS8_OS7_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN8CAddress11UnserializeI12ParamsStreamIR10DataStreamNS_9SerParamsEEEEvRT_:
  228|  11.5M|    {                                                                                               \
  229|  11.5M|        static_assert(std::is_same<cls&, decltype(*this)>::value, "Unserialize type mismatch");     \
  230|  11.5M|        Unser(s, *this);                                                                            \
  231|  11.5M|    }
_ZN8CAddress5UnserI12ParamsStreamIR10DataStreamNS_9SerParamsEEEEvRT_RS_:
  180|  11.5M|    static void Unser(Stream& s, cls& obj) { SerializationOps(obj, s, ActionUnserialize{}); } \
_ZNK12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE9GetParamsIS3_EERKDav:
 1144|  23.1M|    {
 1145|  23.1M|        if constexpr (std::is_convertible_v<Params, P>) {
 1146|  23.1M|            return m_params;
 1147|       |        } else {
 1148|       |            return m_substream.template GetParams<P>();
 1149|       |        }
 1150|  23.1M|    }
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJRjEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJRjEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_Rj:
  277|  23.1M|template<typename Stream> inline void Unserialize(Stream& s, uint32_t& a) { a = ser_readdata32(s); }
_Z14ser_readdata32I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEjRT_:
  102|  44.5M|{
  103|  44.5M|    uint32_t obj;
  104|  44.5M|    s.read(AsWritableBytes(Span{&obj, 1}));
  105|  44.5M|    return le32toh_internal(obj);
  106|  44.5M|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE4readE4SpanISt4byteE:
 1136|   146M|    void read(Span<std::byte> dst) { GetStream().read(dst); }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE9GetStreamEv:
 1154|   341M|    {
 1155|       |        if constexpr (ContainsStream<SubStream>) {
 1156|       |            return m_substream.GetStream();
 1157|   341M|        } else {
 1158|   341M|            return m_substream;
 1159|   341M|        }
 1160|   341M|    }
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNSB_8durationIxNSA_5ratioILl1ELl1EEEEEEEEEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJR7WrapperI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER7WrapperI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEQ14UnserializableIT0_T_EEvRSM_OSL_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN7WrapperI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  483|  11.5M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN15ChronoFormatterIjLb1EE5UnserI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEENSt3__16chrono10time_pointI9NodeClockNS9_8durationIxNS8_5ratioILl1ELl1EEEEEEEEEvRT_RT0_:
  591|  11.5M|    {
  592|  11.5M|        U u;
  593|  11.5M|        s >> u;
  594|       |        // Lossy deserialization does not make sense, so force Wnarrowing
  595|  11.5M|        tp = Tp{typename Tp::duration{typename Tp::duration::rep{u}}};
  596|  11.5M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIRjEERS4_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
deserialize.cpp:_ZL5UsingI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE7WrapperIT_RT0_EOSE_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI15ChronoFormatterIjLb1EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEEC2ESB_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZN17ActionUnserialize8SerWriteI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEERS4_ZNS4_16SerializationOpsIS6_S4_S_EEvRT0_RT_T1_EUlRS6_RKS4_E_EEvSC_OS9_OSD_:
 1045|  11.5M|    {
 1046|  11.5M|    }
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI20CompactSizeFormatterILb0EERmEEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJR7WrapperI20CompactSizeFormatterILb0EERmEEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER7WrapperI20CompactSizeFormatterILb0EERmEQ14UnserializableIT0_T_EEvRSD_OSC_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN7WrapperI20CompactSizeFormatterILb0EERmE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  483|  11.5M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN20CompactSizeFormatterILb0EE5UnserI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEmEEvRT_RT0_:
  569|  11.5M|    {
  570|  11.5M|        uint64_t n = ReadCompactSize<Stream>(s, RangeCheck);
  571|  11.5M|        if (n < std::numeric_limits<I>::min() || n > std::numeric_limits<I>::max()) {
  ------------------
  |  Branch (571:13): [True: 0, False: 11.5M]
  |  Branch (571:50): [True: 0, False: 11.5M]
  ------------------
  572|      0|            throw std::ios_base::failure("CompactSize exceeds limit of type");
  573|      0|        }
  574|  11.5M|        v = n;
  575|  11.5M|    }
_Z15ReadCompactSizeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEmRT_b:
  340|  37.8M|{
  341|  37.8M|    uint8_t chSize = ser_readdata8(is);
  342|  37.8M|    uint64_t nSizeRet = 0;
  343|  37.8M|    if (chSize < 253)
  ------------------
  |  Branch (343:9): [True: 37.8M, False: 0]
  ------------------
  344|  37.8M|    {
  345|  37.8M|        nSizeRet = chSize;
  346|  37.8M|    }
  347|      0|    else if (chSize == 253)
  ------------------
  |  Branch (347:14): [True: 0, False: 0]
  ------------------
  348|      0|    {
  349|      0|        nSizeRet = ser_readdata16(is);
  350|      0|        if (nSizeRet < 253)
  ------------------
  |  Branch (350:13): [True: 0, False: 0]
  ------------------
  351|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  352|      0|    }
  353|      0|    else if (chSize == 254)
  ------------------
  |  Branch (353:14): [True: 0, False: 0]
  ------------------
  354|      0|    {
  355|      0|        nSizeRet = ser_readdata32(is);
  356|      0|        if (nSizeRet < 0x10000u)
  ------------------
  |  Branch (356:13): [True: 0, False: 0]
  ------------------
  357|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  358|      0|    }
  359|      0|    else
  360|      0|    {
  361|      0|        nSizeRet = ser_readdata64(is);
  362|      0|        if (nSizeRet < 0x100000000ULL)
  ------------------
  |  Branch (362:13): [True: 0, False: 0]
  ------------------
  363|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  364|      0|    }
  365|  37.8M|    if (range_check && nSizeRet > MAX_SIZE) {
  ------------------
  |  Branch (365:9): [True: 26.3M, False: 11.5M]
  |  Branch (365:24): [True: 0, False: 26.3M]
  ------------------
  366|      0|        throw std::ios_base::failure("ReadCompactSize(): size too large");
  367|      0|    }
  368|  37.8M|    return nSizeRet;
  369|  37.8M|}
_Z13ser_readdata8I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEhRT_:
   84|  64.1M|{
   85|  64.1M|    uint8_t obj;
   86|  64.1M|    s.read(AsWritableBytes(Span{&obj, 1}));
   87|  64.1M|    return obj;
   88|  64.1M|}
_Z14ser_readdata64I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEmRT_:
  114|  11.5M|{
  115|  11.5M|    uint64_t obj;
  116|  11.5M|    s.read(AsWritableBytes(Span{&obj, 1}));
  117|  11.5M|    return le64toh_internal(obj);
  118|  11.5M|}
deserialize.cpp:_ZL5UsingI20CompactSizeFormatterILb0EERmE7WrapperIT_RT0_EOS5_:
  497|  23.1M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI20CompactSizeFormatterILb0EERmEC2ES2_:
  481|  23.1M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZN17ActionUnserialize7SerReadI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEERS4_ZNS4_16SerializationOpsIS6_S4_S_EEvRT0_RT_T1_EUlRS6_S7_E_EEvSC_OS9_OSD_:
 1039|  11.5M|    {
 1040|  11.5M|        fn(s, std::forward<Type>(obj));
 1041|  11.5M|    }
_ZZN8CAddress16SerializationOpsI12ParamsStreamIR10DataStreamNS_9SerParamsEES_17ActionUnserializeEEvRT0_RT_T1_ENKUlRS5_RS_E_clESC_SD_:
  157|  11.5M|#define SER_READ(obj, code) ser_action.SerRead(s, obj, [&](Stream& s, typename std::remove_const<Type>::type& obj) { code; })
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceEEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJR13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceEEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceEQ14UnserializableIT0_T_EEvRSD_OSC_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
 1205|  11.5M|    {
 1206|  11.5M|        ParamsStream ss{s, m_params};
 1207|  11.5M|        ::Unserialize(ss, m_object);
 1208|  11.5M|    }
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEC2ES5_RKS7_:
 1127|  23.1M|    ParamsStream(SubStream&& substream, const Params& params LIFETIMEBOUND) : m_params{params}, m_substream{std::forward<SubStream>(substream)} {}
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEER8CServiceQ14UnserializableIT0_T_EEvRSD_OSC_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN8CService11UnserializeI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_:
  228|  11.5M|    {                                                                                               \
  229|  11.5M|        static_assert(std::is_same<cls&, decltype(*this)>::value, "Unserialize type mismatch");     \
  230|  11.5M|        Unser(s, *this);                                                                            \
  231|  11.5M|    }
_ZN8CService5UnserI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_RS_:
  180|  11.5M|    static void Unser(Stream& s, cls& obj) { SerializationOps(obj, s, ActionUnserialize{}); } \
_ZN17ActionUnserialize16SerReadWriteManyI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEJRS8_7WrapperI19CustomUintFormatterILi2ELb1EERtEEEEvRT_DpOT0_:
 1033|  11.5M|    {
 1034|  11.5M|        ::UnserializeMany(s, args...);
 1035|  11.5M|    }
_Z15UnserializeManyI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEJRS7_R7WrapperI19CustomUintFormatterILi2ELb1EERtEEEvRT_DpOT0_:
 1001|  11.5M|{
 1002|  11.5M|    (::Unserialize(s, args), ...);
 1003|  11.5M|}
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEERS7_Q14UnserializableIT0_T_EEvRSC_OSB_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZNK12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE9GetParamsIS7_EERKDav:
 1144|  23.1M|    {
 1145|  23.1M|        if constexpr (std::is_convertible_v<Params, P>) {
 1146|  23.1M|            return m_params;
 1147|       |        } else {
 1148|       |            return m_substream.template GetParams<P>();
 1149|       |        }
 1150|  23.1M|    }
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEErsIRhEERS8_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEvRT_Rh:
  273|  11.5M|template<typename Stream> inline void Unserialize(Stream& s, uint8_t& a ) { a = ser_readdata8(s); }
_Z13ser_readdata8I12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEhRT_:
   84|  23.1M|{
   85|  23.1M|    uint8_t obj;
   86|  23.1M|    s.read(AsWritableBytes(Span{&obj, 1}));
   87|  23.1M|    return obj;
   88|  23.1M|}
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE4readE4SpanISt4byteE:
 1136|  46.2M|    void read(Span<std::byte> dst) { GetStream().read(dst); }
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE9GetStreamEv:
 1154|  92.4M|    {
 1155|  92.4M|        if constexpr (ContainsStream<SubStream>) {
 1156|  92.4M|            return m_substream.GetStream();
 1157|       |        } else {
 1158|       |            return m_substream;
 1159|       |        }
 1160|  92.4M|    }
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEErsI7WrapperI20CompactSizeFormatterILb1EERmEEERS8_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEER7WrapperI20CompactSizeFormatterILb1EERmEQ14UnserializableIT0_T_EEvRSH_OSG_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN7WrapperI20CompactSizeFormatterILb1EERmE11UnserializeI12ParamsStreamIRS5_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_:
  483|  11.5M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN20CompactSizeFormatterILb1EE5UnserI12ParamsStreamIRS2_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEmEEvRT_RT0_:
  569|  11.5M|    {
  570|  11.5M|        uint64_t n = ReadCompactSize<Stream>(s, RangeCheck);
  571|  11.5M|        if (n < std::numeric_limits<I>::min() || n > std::numeric_limits<I>::max()) {
  ------------------
  |  Branch (571:13): [True: 0, False: 11.5M]
  |  Branch (571:50): [True: 0, False: 11.5M]
  ------------------
  572|      0|            throw std::ios_base::failure("CompactSize exceeds limit of type");
  573|      0|        }
  574|  11.5M|        v = n;
  575|  11.5M|    }
_Z15ReadCompactSizeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEmRT_b:
  340|  11.5M|{
  341|  11.5M|    uint8_t chSize = ser_readdata8(is);
  342|  11.5M|    uint64_t nSizeRet = 0;
  343|  11.5M|    if (chSize < 253)
  ------------------
  |  Branch (343:9): [True: 11.5M, False: 0]
  ------------------
  344|  11.5M|    {
  345|  11.5M|        nSizeRet = chSize;
  346|  11.5M|    }
  347|      0|    else if (chSize == 253)
  ------------------
  |  Branch (347:14): [True: 0, False: 0]
  ------------------
  348|      0|    {
  349|      0|        nSizeRet = ser_readdata16(is);
  350|      0|        if (nSizeRet < 253)
  ------------------
  |  Branch (350:13): [True: 0, False: 0]
  ------------------
  351|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  352|      0|    }
  353|      0|    else if (chSize == 254)
  ------------------
  |  Branch (353:14): [True: 0, False: 0]
  ------------------
  354|      0|    {
  355|      0|        nSizeRet = ser_readdata32(is);
  356|      0|        if (nSizeRet < 0x10000u)
  ------------------
  |  Branch (356:13): [True: 0, False: 0]
  ------------------
  357|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  358|      0|    }
  359|      0|    else
  360|      0|    {
  361|      0|        nSizeRet = ser_readdata64(is);
  362|      0|        if (nSizeRet < 0x100000000ULL)
  ------------------
  |  Branch (362:13): [True: 0, False: 0]
  ------------------
  363|      0|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  364|      0|    }
  365|  11.5M|    if (range_check && nSizeRet > MAX_SIZE) {
  ------------------
  |  Branch (365:9): [True: 11.5M, False: 0]
  |  Branch (365:24): [True: 0, False: 11.5M]
  ------------------
  366|      0|        throw std::ios_base::failure("ReadCompactSize(): size too large");
  367|      0|    }
  368|  11.5M|    return nSizeRet;
  369|  11.5M|}
deserialize.cpp:_ZL5UsingI20CompactSizeFormatterILb1EERmE7WrapperIT_RT0_EOS5_:
  497|  37.8M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI20CompactSizeFormatterILb1EERmEC2ES2_:
  481|  37.8M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEErsI4SpanIhEEERS8_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEETk9BasicBytehEvRT_4SpanIT0_E:
  283|  11.5M|template <typename Stream, BasicByte B> void Unserialize(Stream& s, Span<B> span) { s.read(AsWritableBytes(span)); }
_Z11UnserializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEER7WrapperI19CustomUintFormatterILi2ELb1EERtEQ14UnserializableIT0_T_EEvRSH_OSG_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN7WrapperI19CustomUintFormatterILi2ELb1EERtE11UnserializeI12ParamsStreamIRS5_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_:
  483|  11.5M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN19CustomUintFormatterILi2ELb1EE5UnserI12ParamsStreamIRS2_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEtEEvRT_RT0_:
  547|  11.5M|    {
  548|  11.5M|        using U = typename std::conditional<std::is_enum<I>::value, std::underlying_type<I>, std::common_type<I>>::type::type;
  549|  11.5M|        static_assert(std::numeric_limits<U>::max() >= MAX && std::numeric_limits<U>::min() <= 0, "Assigned type too small");
  550|  11.5M|        uint64_t raw = 0;
  551|  11.5M|        if (BigEndian) {
  ------------------
  |  Branch (551:13): [Folded - Ignored]
  ------------------
  552|  11.5M|            s.read(AsWritableBytes(Span{&raw, 1}).last(Bytes));
  553|  11.5M|            v = static_cast<I>(be64toh_internal(raw));
  554|  11.5M|        } else {
  555|      0|            s.read(AsWritableBytes(Span{&raw, 1}).first(Bytes));
  556|      0|            v = static_cast<I>(le64toh_internal(raw));
  557|      0|        }
  558|  11.5M|    }
_Z6AsBaseI8CNetAddr8CServiceERT_RT0_:
  145|  11.5M|{
  146|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  147|  11.5M|    return x;
  148|  11.5M|}
deserialize.cpp:_ZL5UsingI19CustomUintFormatterILi2ELb1EERtE7WrapperIT_RT0_EOS5_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI19CustomUintFormatterILi2ELb1EERtEC2ES2_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZNK8CNetAddr9SerParamsclIR8CServiceEEDaOT_:
 1228|  11.5M|    {                                                                                    \
 1229|  11.5M|        return ParamsWrapper{*this, t};                                                  \
 1230|  11.5M|    }
_ZN13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceEC2ERKS1_RS2_:
 1195|  11.5M|    explicit ParamsWrapper(const Params& params, T& obj) : m_params{params}, m_object{obj} {}
_Z6AsBaseI8CService8CAddressERT_RT0_:
  145|  11.5M|{
  146|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  147|  11.5M|    return x;
  148|  11.5M|}
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER8CNetAddrQ14UnserializableIT0_T_EEvRS9_OS8_:
  762|  26.3M|{
  763|  26.3M|    a.Unserialize(is);
  764|  26.3M|}
_ZNK12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE9GetParamsIN8CNetAddr9SerParamsEEERKDav:
 1144|  37.8M|    {
 1145|  37.8M|        if constexpr (std::is_convertible_v<Params, P>) {
 1146|  37.8M|            return m_params;
 1147|       |        } else {
 1148|       |            return m_substream.template GetParams<P>();
 1149|       |        }
 1150|  37.8M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIRhEERS4_OT_:
 1134|  26.3M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_Rh:
  273|  26.3M|template<typename Stream> inline void Unserialize(Stream& s, uint8_t& a ) { a = ser_readdata8(s); }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsI7WrapperI20CompactSizeFormatterILb1EERmEEERS4_OT_:
 1134|  26.3M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER7WrapperI20CompactSizeFormatterILb1EERmEQ14UnserializableIT0_T_EEvRSD_OSC_:
  762|  26.3M|{
  763|  26.3M|    a.Unserialize(is);
  764|  26.3M|}
_ZN7WrapperI20CompactSizeFormatterILb1EERmE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  483|  26.3M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN20CompactSizeFormatterILb1EE5UnserI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEmEEvRT_RT0_:
  569|  26.3M|    {
  570|  26.3M|        uint64_t n = ReadCompactSize<Stream>(s, RangeCheck);
  571|  26.3M|        if (n < std::numeric_limits<I>::min() || n > std::numeric_limits<I>::max()) {
  ------------------
  |  Branch (571:13): [True: 0, False: 26.3M]
  |  Branch (571:50): [True: 0, False: 26.3M]
  ------------------
  572|      0|            throw std::ios_base::failure("CompactSize exceeds limit of type");
  573|      0|        }
  574|  26.3M|        v = n;
  575|  26.3M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsI4SpanIhEEERS4_OT_:
 1134|  26.3M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEETk9BasicBytehEvRT_4SpanIT0_E:
  283|  26.3M|template <typename Stream, BasicByte B> void Unserialize(Stream& s, Span<B> span) { s.read(AsWritableBytes(span)); }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER7WrapperI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEQ14UnserializableIT0_T_EEvRSM_OSL_:
  762|  11.5M|{
  763|  11.5M|    a.Unserialize(is);
  764|  11.5M|}
_ZN7WrapperI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  483|  11.5M|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN15ChronoFormatterIlLb0EE5UnserI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEENSt3__16chrono10time_pointI9NodeClockNS9_8durationIxNS8_5ratioILl1ELl1EEEEEEEEEvRT_RT0_:
  591|  11.5M|    {
  592|  11.5M|        U u;
  593|  11.5M|        s >> u;
  594|       |        // Lossy deserialization does not make sense, so force Wnarrowing
  595|  11.5M|        tp = Tp{typename Tp::duration{typename Tp::duration::rep{u}}};
  596|  11.5M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIRlEERS4_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_Rl:
  278|  11.5M|template<typename Stream> inline void Unserialize(Stream& s, int64_t& a ) { a = ser_readdata64(s); }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_Ri:
  276|  21.3M|template<typename Stream> inline void Unserialize(Stream& s, int32_t& a ) { a = ser_readdata32(s); }
_Z6AsBaseI8CAddress8AddrInfoERT_RT0_:
  145|  11.5M|{
  146|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  147|  11.5M|    return x;
  148|  11.5M|}
_ZN7WrapperI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEEC2ESB_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_Z6AsBaseI8CNetAddr8CServiceERKT_RKT0_:
  151|  11.5M|{
  152|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  153|  11.5M|    return x;
  154|  11.5M|}
deserialize.cpp:_ZL5UsingI19CustomUintFormatterILi2ELb1EERKtE7WrapperIT_RT0_EOS6_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI19CustomUintFormatterILi2ELb1EERKtEC2ES3_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZNK8CNetAddr9SerParamsclIRK8CServiceEEDaOT_:
 1228|  11.5M|    {                                                                                    \
 1229|  11.5M|        return ParamsWrapper{*this, t};                                                  \
 1230|  11.5M|    }
_ZN13ParamsWrapperIN8CNetAddr9SerParamsEK8CServiceEC2ERKS1_RS3_:
 1195|  11.5M|    explicit ParamsWrapper(const Params& params, T& obj) : m_params{params}, m_object{obj} {}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEES3_Q12SerializableIT0_T_EEvRS7_RKS6_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK8CAddress9SerializeI12ParamsStreamIR10DataStreamNS_9SerParamsEEEEvRT_:
  222|  11.5M|    {                                                                                               \
  223|  11.5M|        static_assert(std::is_same<const cls&, decltype(*this)>::value, "Serialize type mismatch"); \
  224|  11.5M|        Ser(s, *this);                                                                              \
  225|  11.5M|    }                                                                                               \
_ZN8CAddress3SerI12ParamsStreamIR10DataStreamNS_9SerParamsEEEEvRT_RKS_:
  178|  11.5M|    static void Ser(Stream& s, const cls& obj) { SerializationOps(obj, s, ActionSerialize{}); } \
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJjEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJjEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_j:
  262|  23.1M|template<typename Stream> inline void Serialize(Stream& s, uint32_t a) { ser_writedata32(s, a); }
_Z15ser_writedata32I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_j:
   69|  44.5M|{
   70|  44.5M|    obj = htole32_internal(obj);
   71|  44.5M|    s.write(AsBytes(Span{&obj, 1}));
   72|  44.5M|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE5writeE4SpanIKSt4byteE:
 1135|   102M|    void write(Span<const std::byte> src) { GetStream().write(src); }
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNSB_8durationIxNSA_5ratioILl1ELl1EEEEEEEEEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE7WrapperI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEQ12SerializableIT0_T_EEvRSM_RKSL_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK7WrapperI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  482|  11.5M|    template<typename Stream> void Serialize(Stream &s) const { Formatter().Ser(s, m_object); }
_ZN15ChronoFormatterIjLb1EE3SerI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEENSt3__16chrono10time_pointI9NodeClockNS9_8durationIxNS8_5ratioILl1ELl1EEEEEEEEEvRT_T0_:
  599|  11.5M|    {
  600|  11.5M|        if constexpr (LOSSY) {
  601|  11.5M|            s << U(tp.time_since_epoch().count());
  602|       |        } else {
  603|       |            s << U{tp.time_since_epoch().count()};
  604|       |        }
  605|  11.5M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsIjEERS4_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
deserialize.cpp:_ZL5UsingI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE7WrapperIT_RT0_EOSF_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI15ChronoFormatterIjLb1EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEEC2ESC_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZN15ActionSerialize8SerWriteI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEERKS4_ZNS4_16SerializationOpsIS6_S7_S_EEvRT0_RT_T1_EUlRS6_S8_E_EEvSD_OSA_OSE_:
 1024|  11.5M|    {
 1025|  11.5M|        fn(s, std::forward<Type>(obj));
 1026|  11.5M|    }
_ZZN8CAddress16SerializationOpsI12ParamsStreamIR10DataStreamNS_9SerParamsEEKS_15ActionSerializeEEvRT0_RT_T1_ENKUlRS5_RS6_E_clESD_SE_:
  158|  11.5M|#define SER_WRITE(obj, code) ser_action.SerWrite(s, obj, [&](Stream& s, const Type& obj) { code; })
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI20CompactSizeFormatterILb0EERmEEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ7WrapperI20CompactSizeFormatterILb0EERmEEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE7WrapperI20CompactSizeFormatterILb0EERmEQ12SerializableIT0_T_EEvRSC_RKSB_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK7WrapperI20CompactSizeFormatterILb0EERmE9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  482|  11.5M|    template<typename Stream> void Serialize(Stream &s) const { Formatter().Ser(s, m_object); }
_ZN20CompactSizeFormatterILb0EE3SerI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEmEEvRT_T0_:
  579|  11.5M|    {
  580|  11.5M|        static_assert(std::is_unsigned<I>::value, "CompactSize only supported for unsigned integers");
  581|  11.5M|        static_assert(std::numeric_limits<I>::max() <= std::numeric_limits<uint64_t>::max(), "CompactSize only supports 64-bit integers and below");
  582|       |
  583|  11.5M|        WriteCompactSize<Stream>(s, v);
  584|  11.5M|    }
_Z16WriteCompactSizeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_m:
  309|  23.1M|{
  310|  23.1M|    if (nSize < 253)
  ------------------
  |  Branch (310:9): [True: 23.1M, False: 0]
  ------------------
  311|  23.1M|    {
  312|  23.1M|        ser_writedata8(os, nSize);
  313|  23.1M|    }
  314|      0|    else if (nSize <= std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (314:14): [True: 0, False: 0]
  ------------------
  315|      0|    {
  316|      0|        ser_writedata8(os, 253);
  317|      0|        ser_writedata16(os, nSize);
  318|      0|    }
  319|      0|    else if (nSize <= std::numeric_limits<unsigned int>::max())
  ------------------
  |  Branch (319:14): [True: 0, False: 0]
  ------------------
  320|      0|    {
  321|      0|        ser_writedata8(os, 254);
  322|      0|        ser_writedata32(os, nSize);
  323|      0|    }
  324|      0|    else
  325|      0|    {
  326|      0|        ser_writedata8(os, 255);
  327|      0|        ser_writedata64(os, nSize);
  328|      0|    }
  329|  23.1M|    return;
  330|  23.1M|}
_Z14ser_writedata8I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_h:
   55|  34.6M|{
   56|  34.6M|    s.write(AsBytes(Span{&obj, 1}));
   57|  34.6M|}
_Z15ser_writedata64I12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_m:
   79|  11.5M|{
   80|  11.5M|    obj = htole64_internal(obj);
   81|  11.5M|    s.write(AsBytes(Span{&obj, 1}));
   82|  11.5M|}
_ZN15ActionSerialize7SerReadI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEERKS4_ZNS4_16SerializationOpsIS6_S7_S_EEvRT0_RT_T1_EUlRS6_RS4_E_EEvSD_OSA_OSE_:
 1019|  11.5M|    {
 1020|  11.5M|    }
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ13ParamsWrapperIN8CNetAddr9SerParamsEK8CServiceEEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJ13ParamsWrapperIN8CNetAddr9SerParamsEK8CServiceEEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE13ParamsWrapperIN8CNetAddr9SerParamsEK8CServiceEQ12SerializableIT0_T_EEvRSD_RKSC_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK13ParamsWrapperIN8CNetAddr9SerParamsEK8CServiceE9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
 1199|  11.5M|    {
 1200|  11.5M|        ParamsStream ss{s, m_params};
 1201|  11.5M|        ::Serialize(ss, m_object);
 1202|  11.5M|    }
_Z9SerializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE8CServiceQ12SerializableIT0_T_EEvRSC_RKSB_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK8CService9SerializeI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_:
  222|  11.5M|    {                                                                                               \
  223|  11.5M|        static_assert(std::is_same<const cls&, decltype(*this)>::value, "Serialize type mismatch"); \
  224|  11.5M|        Ser(s, *this);                                                                              \
  225|  11.5M|    }                                                                                               \
_ZN8CService3SerI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_RKS_:
  178|  11.5M|    static void Ser(Stream& s, const cls& obj) { SerializationOps(obj, s, ActionSerialize{}); } \
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIRS1_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEJS8_7WrapperI19CustomUintFormatterILi2ELb1EERKtEEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEJS7_7WrapperI19CustomUintFormatterILi2ELb1EERKtEEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEES7_Q12SerializableIT0_T_EEvRSB_RKSA_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEElsIhEERS8_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEvRT_h:
  258|  11.5M|template<typename Stream> inline void Serialize(Stream& s, uint8_t a ) { ser_writedata8(s, a); }
_Z14ser_writedata8I12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEvRT_h:
   55|  23.1M|{
   56|  23.1M|    s.write(AsBytes(Span{&obj, 1}));
   57|  23.1M|}
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE5writeE4SpanIKSt4byteE:
 1135|  46.2M|    void write(Span<const std::byte> src) { GetStream().write(src); }
_Z16WriteCompactSizeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEvRT_m:
  309|  11.5M|{
  310|  11.5M|    if (nSize < 253)
  ------------------
  |  Branch (310:9): [True: 11.5M, False: 0]
  ------------------
  311|  11.5M|    {
  312|  11.5M|        ser_writedata8(os, nSize);
  313|  11.5M|    }
  314|      0|    else if (nSize <= std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (314:14): [True: 0, False: 0]
  ------------------
  315|      0|    {
  316|      0|        ser_writedata8(os, 253);
  317|      0|        ser_writedata16(os, nSize);
  318|      0|    }
  319|      0|    else if (nSize <= std::numeric_limits<unsigned int>::max())
  ------------------
  |  Branch (319:14): [True: 0, False: 0]
  ------------------
  320|      0|    {
  321|      0|        ser_writedata8(os, 254);
  322|      0|        ser_writedata32(os, nSize);
  323|      0|    }
  324|      0|    else
  325|      0|    {
  326|      0|        ser_writedata8(os, 255);
  327|      0|        ser_writedata64(os, nSize);
  328|      0|    }
  329|  11.5M|    return;
  330|  11.5M|}
_ZN12ParamsStreamIRS_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEElsI9prevectorILj16EhjiEEERS8_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEELj16EhEvRT_RK9prevectorIXT0_ET1_jiE:
  811|  11.5M|{
  812|  11.5M|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  813|  11.5M|        WriteCompactSize(os, v.size());
  814|  11.5M|        if (!v.empty()) os.write(MakeByteSpan(v));
  ------------------
  |  Branch (814:13): [True: 11.5M, False: 0]
  ------------------
  815|       |    } else {
  816|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  817|       |    }
  818|  11.5M|}
_Z9SerializeI12ParamsStreamIRS0_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEE7WrapperI19CustomUintFormatterILi2ELb1EERKtEQ12SerializableIT0_T_EEvRSH_RKSG_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK7WrapperI19CustomUintFormatterILi2ELb1EERKtE9SerializeI12ParamsStreamIRS6_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEEEvRT_:
  482|  11.5M|    template<typename Stream> void Serialize(Stream &s) const { Formatter().Ser(s, m_object); }
_ZN19CustomUintFormatterILi2ELb1EE3SerI12ParamsStreamIRS2_IR10DataStreamN8CAddress9SerParamsEEN8CNetAddr9SerParamsEEtEEvRT_T0_:
  535|  11.5M|    {
  536|  11.5M|        if (v < 0 || v > MAX) throw std::ios_base::failure("CustomUintFormatter value out of range");
  ------------------
  |  Branch (536:13): [True: 0, False: 11.5M]
  |  Branch (536:22): [True: 0, False: 11.5M]
  ------------------
  537|  11.5M|        if (BigEndian) {
  ------------------
  |  Branch (537:13): [Folded - Ignored]
  ------------------
  538|  11.5M|            uint64_t raw = htobe64_internal(v);
  539|  11.5M|            s.write(AsBytes(Span{&raw, 1}).last(Bytes));
  540|  11.5M|        } else {
  541|      0|            uint64_t raw = htole64_internal(v);
  542|      0|            s.write(AsBytes(Span{&raw, 1}).first(Bytes));
  543|      0|        }
  544|  11.5M|    }
_Z6AsBaseI8CService8CAddressERKT_RKT0_:
  151|  11.5M|{
  152|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  153|  11.5M|    return x;
  154|  11.5M|}
_Z15ser_writedata32I10HashWriterEvRT_j:
   69|  54.4M|{
   70|  54.4M|    obj = htole32_internal(obj);
   71|  54.4M|    s.write(AsBytes(Span{&obj, 1}));
   72|  54.4M|}
_ZNK8CAddress9SerParamsclIR8CNetAddrEEDaOT_:
 1228|  14.7M|    {                                                                                    \
 1229|  14.7M|        return ParamsWrapper{*this, t};                                                  \
 1230|  14.7M|    }
_ZN13ParamsWrapperIN8CAddress9SerParamsE8CNetAddrEC2ERKS1_RS2_:
 1195|  14.7M|    explicit ParamsWrapper(const Params& params, T& obj) : m_params{params}, m_object{obj} {}
_Z11UnserializeI10DataStreamR13ParamsWrapperIN8CAddress9SerParamsE8CNetAddrEQ14UnserializableIT0_T_EEvRS8_OS7_:
  762|  14.7M|{
  763|  14.7M|    a.Unserialize(is);
  764|  14.7M|}
_ZN13ParamsWrapperIN8CAddress9SerParamsE8CNetAddrE11UnserializeI10DataStreamEEvRT_:
 1205|  14.7M|    {
 1206|  14.7M|        ParamsStream ss{s, m_params};
 1207|  14.7M|        ::Unserialize(ss, m_object);
 1208|  14.7M|    }
_Z16WriteCompactSizeI10HashWriterEvRT_m:
  309|   152M|{
  310|   152M|    if (nSize < 253)
  ------------------
  |  Branch (310:9): [True: 152M, False: 54]
  ------------------
  311|   152M|    {
  312|   152M|        ser_writedata8(os, nSize);
  313|   152M|    }
  314|     54|    else if (nSize <= std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (314:14): [True: 54, False: 0]
  ------------------
  315|     54|    {
  316|     54|        ser_writedata8(os, 253);
  317|     54|        ser_writedata16(os, nSize);
  318|     54|    }
  319|      0|    else if (nSize <= std::numeric_limits<unsigned int>::max())
  ------------------
  |  Branch (319:14): [True: 0, False: 0]
  ------------------
  320|      0|    {
  321|      0|        ser_writedata8(os, 254);
  322|      0|        ser_writedata32(os, nSize);
  323|      0|    }
  324|      0|    else
  325|      0|    {
  326|      0|        ser_writedata8(os, 255);
  327|      0|        ser_writedata64(os, nSize);
  328|      0|    }
  329|   152M|    return;
  330|   152M|}
_Z14ser_writedata8I10HashWriterEvRT_h:
   55|   206M|{
   56|   206M|    s.write(AsBytes(Span{&obj, 1}));
   57|   206M|}
_Z15ser_writedata16I10HashWriterEvRT_t:
   59|     54|{
   60|     54|    obj = htole16_internal(obj);
   61|     54|    s.write(AsBytes(Span{&obj, 1}));
   62|     54|}
_Z15ser_writedata64I10HashWriterEvRT_m:
   79|  39.1M|{
   80|  39.1M|    obj = htole64_internal(obj);
   81|  39.1M|    s.write(AsBytes(Span{&obj, 1}));
   82|  39.1M|}
_Z9SerializeI10HashWriterhNSt3__19allocatorIhEEEvRT_RKNS1_6vectorIT0_T1_EE:
  846|   152M|{
  847|   152M|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  848|   152M|        WriteCompactSize(os, v.size());
  849|   152M|        if (!v.empty()) os.write(MakeByteSpan(v));
  ------------------
  |  Branch (849:13): [True: 152M, False: 0]
  ------------------
  850|       |    } else if constexpr (std::is_same_v<T, bool>) {
  851|       |        // A special case for std::vector<bool>, as dereferencing
  852|       |        // std::vector<bool>::const_iterator does not result in a const bool&
  853|       |        // due to std::vector's special casing for bool arguments.
  854|       |        WriteCompactSize(os, v.size());
  855|       |        for (bool elem : v) {
  856|       |            ::Serialize(os, elem);
  857|       |        }
  858|       |    } else {
  859|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  860|       |    }
  861|   152M|}
_Z9SerializeI10HashWriter7uint256Q12SerializableIT0_T_EEvRS3_RKS2_:
  753|   132M|{
  754|   132M|    a.Serialize(os);
  755|   132M|}
_Z9SerializeI10HashWriterTk9BasicByteKhEvRT_4SpanIT0_E:
  268|   132M|template <typename Stream, BasicByte B> void Serialize(Stream& s, Span<B> span) { s.write(AsBytes(span)); }
_Z9SerializeI10HashWriterEvRT_m:
  264|  39.1M|template<typename Stream> inline void Serialize(Stream& s, uint64_t a) { ser_writedata64(s, a); }
_Z9SerializeI10HashWriterEvRT_h:
  258|  54.4M|template<typename Stream> inline void Serialize(Stream& s, uint8_t a ) { ser_writedata8(s, a); }
_Z9SerializeI10HashWriterEvRT_i:
  261|  54.4M|template<typename Stream> inline void Serialize(Stream& s, int32_t a ) { ser_writedata32(s, a); }
_Z6AsBaseI8CAddress8AddrInfoERKT_RKT0_:
  151|  11.5M|{
  152|  11.5M|    static_assert(std::is_base_of_v<Out, In>);
  153|  11.5M|    return x;
  154|  11.5M|}
addrman.cpp:_ZL5UsingI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE7WrapperIT_RT0_EOSF_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEEC2ESC_:
  481|  11.5M|    explicit Wrapper(T obj) : m_object(obj) {}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsIhEERS4_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_h:
  258|  11.5M|template<typename Stream> inline void Serialize(Stream& s, uint8_t a ) { ser_writedata8(s, a); }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsI7uint256EERS4_RKT_:
 1133|  4.99k|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE7uint256Q12SerializableIT0_T_EEvRS8_RKS7_:
  753|  4.99k|{
  754|  4.99k|    a.Serialize(os);
  755|  4.99k|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsI4SpanIKhEEERS4_RKT_:
 1133|  4.99k|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEETk9BasicByteKhEvRT_4SpanIT0_E:
  268|  4.99k|template <typename Stream, BasicByte B> void Serialize(Stream& s, Span<B> span) { s.write(AsBytes(span)); }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsIiEERS4_RKT_:
 1133|  9.82M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_i:
  261|  21.3M|template<typename Stream> inline void Serialize(Stream& s, int32_t a ) { ser_writedata32(s, a); }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsI8AddrInfoEERS4_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE8AddrInfoQ12SerializableIT0_T_EEvRS8_RKS7_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK8AddrInfo9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  222|  11.5M|    {                                                                                               \
  223|  11.5M|        static_assert(std::is_same<const cls&, decltype(*this)>::value, "Serialize type mismatch"); \
  224|  11.5M|        Ser(s, *this);                                                                              \
  225|  11.5M|    }                                                                                               \
_ZN8AddrInfo3SerI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_RKS_:
  178|  11.5M|    static void Ser(Stream& s, const cls& obj) { SerializationOps(obj, s, ActionSerialize{}); } \
_ZN15ActionSerialize16SerReadWriteManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJS4_8CNetAddr7WrapperI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNSC_8durationIxNSB_5ratioILl1ELl1EEEEEEEEiEEEvRT_DpRKT0_:
 1013|  11.5M|    {
 1014|  11.5M|        ::SerializeMany(s, args...);
 1015|  11.5M|    }
_Z13SerializeManyI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEJS3_8CNetAddr7WrapperI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNSB_8durationIxNSA_5ratioILl1ELl1EEEEEEEEiEEvRT_DpRKT0_:
  995|  11.5M|{
  996|  11.5M|    (::Serialize(s, args), ...);
  997|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE8CNetAddrQ12SerializableIT0_T_EEvRS8_RKS7_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsI9prevectorILj16EhjiEEERS4_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEELj16EhEvRT_RK9prevectorIXT0_ET1_jiE:
  811|  11.5M|{
  812|  11.5M|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  813|  11.5M|        WriteCompactSize(os, v.size());
  814|  11.5M|        if (!v.empty()) os.write(MakeByteSpan(v));
  ------------------
  |  Branch (814:13): [True: 11.5M, False: 0]
  ------------------
  815|       |    } else {
  816|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  817|       |    }
  818|  11.5M|}
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEE7WrapperI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNSA_8durationIxNS9_5ratioILl1ELl1EEEEEEEEQ12SerializableIT0_T_EEvRSM_RKSL_:
  753|  11.5M|{
  754|  11.5M|    a.Serialize(os);
  755|  11.5M|}
_ZNK7WrapperI15ChronoFormatterIlLb0EERKNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  482|  11.5M|    template<typename Stream> void Serialize(Stream &s) const { Formatter().Ser(s, m_object); }
_ZN15ChronoFormatterIlLb0EE3SerI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEENSt3__16chrono10time_pointI9NodeClockNS9_8durationIxNS8_5ratioILl1ELl1EEEEEEEEEvRT_T0_:
  599|  11.5M|    {
  600|       |        if constexpr (LOSSY) {
  601|       |            s << U(tp.time_since_epoch().count());
  602|  11.5M|        } else {
  603|  11.5M|            s << U{tp.time_since_epoch().count()};
  604|  11.5M|        }
  605|  11.5M|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEElsIlEERS4_RKT_:
 1133|  11.5M|    template <typename U> ParamsStream& operator<<(const U& obj) { ::Serialize(*this, obj); return *this; }
_Z9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEvRT_l:
  263|  11.5M|template<typename Stream> inline void Serialize(Stream& s, int64_t a ) { ser_writedata64(s, a); }
addrman.cpp:_ZL5UsingI19CustomUintFormatterILi1ELb0EERN11AddrManImpl6FormatEE7WrapperIT_RT0_EOS7_:
  497|  2.49k|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_ZN7WrapperI19CustomUintFormatterILi1ELb0EERN11AddrManImpl6FormatEEC2ES4_:
  481|  2.49k|    explicit Wrapper(T obj) : m_object(obj) {}
addrman.cpp:_ZL5UsingI15ChronoFormatterIlLb0EERNSt3__16chrono10time_pointI9NodeClockNS3_8durationIxNS2_5ratioILl1ELl1EEEEEEEE7WrapperIT_RT0_EOSE_:
  497|  11.5M|static inline Wrapper<Formatter, T&> Using(T&& t) { return Wrapper<Formatter, T&>(t); }
_Z11UnserializeI10DataStreamR7WrapperI19CustomUintFormatterILi1ELb0EERN11AddrManImpl6FormatEEQ14UnserializableIT0_T_EEvRSA_OS9_:
  762|  2.49k|{
  763|  2.49k|    a.Unserialize(is);
  764|  2.49k|}
_ZN7WrapperI19CustomUintFormatterILi1ELb0EERN11AddrManImpl6FormatEE11UnserializeI10DataStreamEEvRT_:
  483|  2.49k|    template<typename Stream> void Unserialize(Stream &s) { Formatter().Unser(s, m_object); }
_ZN19CustomUintFormatterILi1ELb0EE5UnserI10DataStreamN11AddrManImpl6FormatEEEvRT_RT0_:
  547|  2.49k|    {
  548|  2.49k|        using U = typename std::conditional<std::is_enum<I>::value, std::underlying_type<I>, std::common_type<I>>::type::type;
  549|  2.49k|        static_assert(std::numeric_limits<U>::max() >= MAX && std::numeric_limits<U>::min() <= 0, "Assigned type too small");
  550|  2.49k|        uint64_t raw = 0;
  551|  2.49k|        if (BigEndian) {
  ------------------
  |  Branch (551:13): [Folded - Ignored]
  ------------------
  552|      0|            s.read(AsWritableBytes(Span{&raw, 1}).last(Bytes));
  553|      0|            v = static_cast<I>(be64toh_internal(raw));
  554|  2.49k|        } else {
  555|  2.49k|            s.read(AsWritableBytes(Span{&raw, 1}).first(Bytes));
  556|  2.49k|            v = static_cast<I>(le64toh_internal(raw));
  557|  2.49k|        }
  558|  2.49k|    }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIR7uint256EERS4_OT_:
 1134|  4.99k|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEER7uint256Q14UnserializableIT0_T_EEvRS9_OS8_:
  762|  4.99k|{
  763|  4.99k|    a.Unserialize(is);
  764|  4.99k|}
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIRiEERS4_OT_:
 1134|  9.82M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_ZN12ParamsStreamIR10DataStreamN8CAddress9SerParamsEErsIR8AddrInfoEERS4_OT_:
 1134|  11.5M|    template <typename U> ParamsStream& operator>>(U&& obj) { ::Unserialize(*this, obj); return *this; }
_Z9SerializeI10HashWriterbNSt3__19allocatorIbEEEvRT_RKNS1_6vectorIT0_T1_EE:
  846|  1.79k|{
  847|       |    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  848|       |        WriteCompactSize(os, v.size());
  849|       |        if (!v.empty()) os.write(MakeByteSpan(v));
  850|  1.79k|    } else if constexpr (std::is_same_v<T, bool>) {
  851|       |        // A special case for std::vector<bool>, as dereferencing
  852|       |        // std::vector<bool>::const_iterator does not result in a const bool&
  853|       |        // due to std::vector's special casing for bool arguments.
  854|  1.79k|        WriteCompactSize(os, v.size());
  855|   185k|        for (bool elem : v) {
  ------------------
  |  Branch (855:24): [True: 185k, False: 1.79k]
  ------------------
  856|   185k|            ::Serialize(os, elem);
  857|   185k|        }
  858|       |    } else {
  859|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  860|       |    }
  861|  1.79k|}
_Z9SerializeI10HashWriterEvRT_b:
  285|   185k|template <typename Stream> inline void Serialize(Stream& s, bool a) { uint8_t f = a; ser_writedata8(s, f); }

_Z9UCharCastPKSt4byte:
  287|   585M|inline const unsigned char* UCharCast(const std::byte* c) { return reinterpret_cast<const unsigned char*>(c); }
_ZNK4SpanIKSt4byteE4lastEm:
  211|  11.5M|    {
  212|  11.5M|         ASSERT_IF_DEBUG(size() >= count);
  213|  11.5M|         return Span<C>(m_data + m_size - count, count);
  214|  11.5M|    }
_ZNK4SpanISt4byteE4lastEm:
  211|  11.5M|    {
  212|  11.5M|         ASSERT_IF_DEBUG(size() >= count);
  213|  11.5M|         return Span<C>(m_data + m_size - count, count);
  214|  11.5M|    }
_ZNK4SpanISt4byteE5firstEm:
  206|  2.49k|    {
  207|  2.49k|        ASSERT_IF_DEBUG(size() >= count);
  208|  2.49k|        return Span<C>(m_data, count);
  209|  2.49k|    }
_ZNK4SpanIKSt4byteE4sizeEv:
  187|   585M|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanIKSt4byteE4dataEv:
  174|   585M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKhE4sizeEv:
  187|  3.01G|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanIKhE5beginEv:
  175|  7.64k|    constexpr C* begin() const noexcept { return m_data; }
_ZNK4SpanIKhE3endEv:
  176|  7.64k|    constexpr C* end() const noexcept { return m_data + m_size; }
_ZNK4SpanIhE4sizeEv:
  187|  9.99k|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanIhE4dataEv:
  174|   435M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKhE4dataEv:
  174|   322M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKhE7subspanEmm:
  201|  5.41k|    {
  202|  5.41k|        ASSERT_IF_DEBUG(size() >= offset + count);
  203|  5.41k|        return Span<C>(m_data + offset, count);
  204|  5.41k|    }
_ZNK4SpanISt4byteE4sizeEv:
  187|   714M|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanISt4byteE4dataEv:
  174|   199M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKhE7subspanEm:
  196|  2.87G|    {
  197|  2.87G|        ASSERT_IF_DEBUG(size() >= offset);
  198|  2.87G|        return Span<C>(m_data + offset, m_size - offset);
  199|  2.87G|    }
_ZNK4SpanIKSt4byteE5beginEv:
  175|   192M|    constexpr C* begin() const noexcept { return m_data; }
_ZNK4SpanIKSt4byteE3endEv:
  176|   192M|    constexpr C* end() const noexcept { return m_data + m_size; }
_ZNK4SpanISt4byteE7subspanEm:
  196|  25.7M|    {
  197|  25.7M|        ASSERT_IF_DEBUG(size() >= offset);
  198|  25.7M|        return Span<C>(m_data + offset, m_size - offset);
  199|  25.7M|    }
_ZNK4SpanIKhE10size_bytesEv:
  188|   322M|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIKhE4SpanIKSt4byteES1_IT_E:
  259|   322M|{
  260|   322M|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|   322M|}
_Z12MakeByteSpanIRKNSt3__16vectorIhNS0_9allocatorIhEEEEE4SpanIKSt4byteEOT_:
  270|   166M|{
  271|   166M|    return AsBytes(Span{std::forward<V>(v)});
  272|   166M|}
_ZN4SpanIKhEC2INSt3__16vectorIhNS3_9allocatorIhEEEEEERKT_NS3_9enable_ifIXaaaantsr7is_SpanIS8_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalISA_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalISA_EE4sizeEEmEE5valueEDnE4typeE:
  172|   166M|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKSt4byteEC2IS1_TnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_S1_EE5valueEiE4typeELi0EEEPS6_m:
  119|   789M|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_ZN4SpanIKhEC2INSt3__16vectorIhNS3_9allocatorIhEEEEEERT_NS3_9enable_ifIXaaaantsr7is_SpanIS8_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalIS9_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS9_EE4sizeEEmEE5valueEDnE4typeE:
  165|  69.3M|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanISt4byteEC2INSt3__15arrayIS0_Lm8EEEEERT_NS3_9enable_ifIXaaaantsr7is_SpanIS6_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalIS7_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS7_EE4sizeEEmEE5valueEDnE4typeE:
  165|  10.8M|        : m_data(other.data()), m_size(other.size()){}
_ZNK4SpanIjE4dataEv:
  174|   143M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIjE10size_bytesEv:
  188|   143M|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIjE4SpanIKSt4byteES0_IT_E:
  259|  98.9M|{
  260|  98.9M|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  98.9M|}
_ZNK4SpanIhE10size_bytesEv:
  188|   435M|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIhE4SpanIKSt4byteES0_IT_E:
  259|   294M|{
  260|   294M|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|   294M|}
_ZNK4SpanItE4dataEv:
  174|     54|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanItE10size_bytesEv:
  188|     54|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesItE4SpanIKSt4byteES0_IT_E:
  259|     54|{
  260|     54|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|     54|}
_ZNK4SpanImE4dataEv:
  174|  85.3M|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanImE10size_bytesEv:
  188|  85.3M|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesImE4SpanIKSt4byteES0_IT_E:
  259|  62.2M|{
  260|  62.2M|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  62.2M|}
_ZN4SpanIKhEC2IS0_TnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_S0_EE5valueEiE4typeELi0EEEPS5_m:
  119|  2.87G|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_ZN4SpanISt4byteEC2IS0_TnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_S0_EE5valueEiE4typeELi0EEEPS5_m:
  119|   246M|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesIhE4SpanISt4byteES0_IT_E:
  264|   141M|{
  265|   141M|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|   141M|}
_ZN4SpanIhEC2IhTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_hEE5valueEiE4typeELi0EEEPS4_m:
  119|   381M|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_ZN4SpanItEC2ItTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_tEE5valueEiE4typeELi0EEEPS4_m:
  119|     54|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesIjE4SpanISt4byteES0_IT_E:
  264|  44.5M|{
  265|  44.5M|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  44.5M|}
_ZN4SpanIjEC2IjTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_jEE5valueEiE4typeELi0EEEPS4_m:
  119|   143M|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesImE4SpanISt4byteES0_IT_E:
  264|  23.1M|{
  265|  23.1M|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  23.1M|}
_ZN4SpanImEC2ImTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_mEE5valueEiE4typeELi0EEEPS4_m:
  119|  85.3M|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_ZN4SpanIKSt4byteEC2INSt3__15arrayIS0_Lm32EEEEERKT_NS4_9enable_ifIXaaaantsr7is_SpanIS7_EE5valuesr3std14is_convertibleIPA_NS4_14remove_pointerIDTcldtclsr3stdE7declvalIS9_EE4dataEEE4typeEPA_S1_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS9_EE4sizeEEmEE5valueEDnE4typeE:
  172|  14.9k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKhEC2INSt3__15arrayIhLm32EEEEERKT_NS3_9enable_ifIXaaaantsr7is_SpanIS6_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalIS8_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS8_EE4sizeEEmEE5valueEDnE4typeE:
  172|   132M|        : m_data(other.data()), m_size(other.size()){}
_Z20MakeWritableByteSpanIRNSt3__15arrayIhLm32EEEE4SpanISt4byteEOT_:
  275|  4.99k|{
  276|  4.99k|    return AsWritableBytes(Span{std::forward<V>(v)});
  277|  4.99k|}
_ZN4SpanIhEC2INSt3__15arrayIhLm32EEEEERT_NS2_9enable_ifIXaaaantsr7is_SpanIS5_EE5valuesr3std14is_convertibleIPA_NS2_14remove_pointerIDTcldtclsr3stdE7declvalIS6_EE4dataEEE4typeEPA_hEE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS6_EE4sizeEEmEE5valueEDnE4typeE:
  165|  4.99k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKhEC2I7uint256EERKT_NSt3__19enable_ifIXaaaantsr7is_SpanIS4_EE5valuesr3std14is_convertibleIPA_NS7_14remove_pointerIDTcldtclsr3stdE7declvalIS6_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS6_EE4sizeEEmEE5valueEDnE4typeE:
  172|  9.99k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIhEC2I7uint256EERT_NSt3__19enable_ifIXaaaantsr7is_SpanIS3_EE5valuesr3std14is_convertibleIPA_NS5_14remove_pointerIDTcldtclsr3stdE7declvalIS4_EE4dataEEE4typeEPA_hEE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS4_EE4sizeEEmEE5valueEDnE4typeE:
  165|  19.9k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIhEC2INSt3__16vectorIhNS2_9allocatorIhEEEEEERT_NS2_9enable_ifIXaaaantsr7is_SpanIS7_EE5valuesr3std14is_convertibleIPA_NS2_14remove_pointerIDTcldtclsr3stdE7declvalIS8_EE4dataEEE4typeEPA_hEE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS8_EE4sizeEEmEE5valueEDnE4typeE:
  165|  16.6M|        : m_data(other.data()), m_size(other.size()){}
_Z20MakeWritableByteSpanIRNSt3__16vectorIhNS0_9allocatorIhEEEEE4SpanISt4byteEOT_:
  275|  16.6M|{
  276|  16.6M|    return AsWritableBytes(Span{std::forward<V>(v)});
  277|  16.6M|}
_ZN4SpanIhEC2I9prevectorILj16EhjiEEERT_NSt3__19enable_ifIXaaaantsr7is_SpanIS4_EE5valuesr3std14is_convertibleIPA_NS6_14remove_pointerIDTcldtclsr3stdE7declvalIS5_EE4dataEEE4typeEPA_hEE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS5_EE4sizeEEmEE5valueEDnE4typeE:
  165|  37.8M|        : m_data(other.data()), m_size(other.size()){}
_Z12MakeByteSpanIRK9prevectorILj16EhjiEE4SpanIKSt4byteEOT_:
  270|  23.1M|{
  271|  23.1M|    return AsBytes(Span{std::forward<V>(v)});
  272|  23.1M|}
_ZN4SpanIKhEC2I9prevectorILj16EhjiEEERKT_NSt3__19enable_ifIXaaaantsr7is_SpanIS5_EE5valuesr3std14is_convertibleIPA_NS8_14remove_pointerIDTcldtclsr3stdE7declvalIS7_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS7_EE4sizeEEmEE5valueEDnE4typeE:
  172|  86.2M|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKhEC2ILi32EEERAT__S0_:
  151|  2.49k|    constexpr Span(C (&a)[N]) noexcept : m_data(a), m_size(N) {}
_ZNK4SpanISt4byteE5beginEv:
  175|  32.7M|    constexpr C* begin() const noexcept { return m_data; }
_ZNK4SpanIKhE4lastEm:
  211|  13.8k|    {
  212|  13.8k|         ASSERT_IF_DEBUG(size() >= count);
  213|  13.8k|         return Span<C>(m_data + m_size - count, count);
  214|  13.8k|    }
_Z12MakeByteSpanIRK7uint256E4SpanIKSt4byteEOT_:
  270|  9.99k|{
  271|  9.99k|    return AsBytes(Span{std::forward<V>(v)});
  272|  9.99k|}
_Z12MakeByteSpanIR7uint256E4SpanIKSt4byteEOT_:
  270|  9.99k|{
  271|  9.99k|    return AsBytes(Span{std::forward<V>(v)});
  272|  9.99k|}
_ZNK4SpanISt4byteE5emptyEv:
  189|  54.8M|    constexpr bool empty() const noexcept { return size() == 0; }
_ZN4SpanISt4byteEC2INSt3__15arrayIS0_Lm64EEEEERT_NS3_9enable_ifIXaaaantsr7is_SpanIS6_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalIS7_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS7_EE4sizeEEmEE5valueEDnE4typeE:
  165|  7.07M|        : m_data(other.data()), m_size(other.size()){}
_ZNK4SpanIKhE5frontEv:
  178|  2.87G|    {
  179|  2.87G|        ASSERT_IF_DEBUG(size() > 0);
  180|  2.87G|        return m_data[0];
  181|  2.87G|    }

_ZN10DataStream4readE4SpanISt4byteE:
  219|   192M|    {
  220|   192M|        if (dst.size() == 0) return;
  ------------------
  |  Branch (220:13): [True: 0, False: 192M]
  ------------------
  221|       |
  222|       |        // Read from the beginning of the buffer
  223|   192M|        auto next_read_pos{CheckedAdd(m_read_pos, dst.size())};
  224|   192M|        if (!next_read_pos.has_value() || next_read_pos.value() > vch.size()) {
  ------------------
  |  Branch (224:13): [True: 0, False: 192M]
  |  Branch (224:43): [True: 0, False: 192M]
  ------------------
  225|      0|            throw std::ios_base::failure("DataStream::read(): end of data");
  226|      0|        }
  227|   192M|        memcpy(dst.data(), &vch[m_read_pos], dst.size());
  228|   192M|        if (next_read_pos.value() == vch.size()) {
  ------------------
  |  Branch (228:13): [True: 14.7M, False: 178M]
  ------------------
  229|  14.7M|            m_read_pos = 0;
  230|  14.7M|            vch.clear();
  231|  14.7M|            return;
  232|  14.7M|        }
  233|   178M|        m_read_pos = next_read_pos.value();
  234|   178M|    }
_ZN10DataStream5writeE4SpanIKSt4byteE:
  252|   192M|    {
  253|       |        // Write to the end of the buffer
  254|   192M|        vch.insert(vch.end(), src.begin(), src.end());
  255|   192M|    }
_ZN10DataStreamC2Ev:
  164|  14.7M|    explicit DataStream() = default;
_ZN10DataStreamrsIR20AddrManDeterministicEERS_OT_:
  266|  2.49k|    {
  267|  2.49k|        ::Unserialize(*this, obj);
  268|  2.49k|        return (*this);
  269|  2.49k|    }
_ZN10DataStreamlsI20AddrManDeterministicEERS_RKT_:
  259|  2.49k|    {
  260|  2.49k|        ::Serialize(*this, obj);
  261|  2.49k|        return (*this);
  262|  2.49k|    }
_ZN10DataStreamlsIhEERS_RKT_:
  259|  14.7M|    {
  260|  14.7M|        ::Serialize(*this, obj);
  261|  14.7M|        return (*this);
  262|  14.7M|    }
_ZN10DataStreamlsINSt3__16vectorIhNS1_9allocatorIhEEEEEERS_RKT_:
  259|  14.7M|    {
  260|  14.7M|        ::Serialize(*this, obj);
  261|  14.7M|        return (*this);
  262|  14.7M|    }
_ZN10DataStreamrsI13ParamsWrapperIN8CAddress9SerParamsE8CNetAddrEEERS_OT_:
  266|  14.7M|    {
  267|  14.7M|        ::Unserialize(*this, obj);
  268|  14.7M|        return (*this);
  269|  14.7M|    }
_ZN10DataStreamrsI7WrapperI19CustomUintFormatterILi1ELb0EERN11AddrManImpl6FormatEEEERS_OT_:
  266|  2.49k|    {
  267|  2.49k|        ::Unserialize(*this, obj);
  268|  2.49k|        return (*this);
  269|  2.49k|    }

_ZN25zero_after_free_allocatorISt4byteE10deallocateEPS0_m:
   30|  44.2M|    {
   31|  44.2M|        if (p != nullptr)
  ------------------
  |  Branch (31:13): [True: 44.2M, False: 0]
  ------------------
   32|  44.2M|            memory_cleanse(p, sizeof(T) * n);
   33|  44.2M|        std::allocator<T>{}.deallocate(p, n);
   34|  44.2M|    }
_ZN25zero_after_free_allocatorISt4byteE8allocateEm:
   25|  44.2M|    {
   26|  44.2M|        return std::allocator<T>{}.allocate(n);
   27|  44.2M|    }

_Z14memory_cleansePvm:
   15|  44.3M|{
   16|       |#if defined(WIN32)
   17|       |    /* SecureZeroMemory is guaranteed not to be optimized out. */
   18|       |    SecureZeroMemory(ptr, len);
   19|       |#else
   20|  44.3M|    std::memset(ptr, 0, len);
   21|       |
   22|       |    /* Memory barrier that scares the compiler away from optimizing out the memset.
   23|       |     *
   24|       |     * Quoting Adam Langley <agl@google.com> in commit ad1907fe73334d6c696c8539646c21b11178f20f
   25|       |     * in BoringSSL (ISC License):
   26|       |     *    As best as we can tell, this is sufficient to break any optimisations that
   27|       |     *    might try to eliminate "superfluous" memsets.
   28|       |     * This method is used in memzero_explicit() the Linux kernel, too. Its advantage is that it
   29|       |     * is pretty efficient because the compiler can still implement the memset() efficiently,
   30|       |     * just not remove it entirely. See "Dead Store Elimination (Still) Considered Harmful" by
   31|       |     * Yang et al. (USENIX Security 2017) for more background.
   32|       |     */
   33|  44.3M|    __asm__ __volatile__("" : : "r"(ptr) : "memory");
   34|  44.3M|#endif
   35|  44.3M|}

_Z17MaybeCheckNotHeldR14AnnotatedMixinINSt3__15mutexEE:
  247|  33.8M|inline Mutex& MaybeCheckNotHeld(Mutex& cs) EXCLUSIVE_LOCKS_REQUIRED(!cs) LOCK_RETURNED(cs) { return cs; }
_ZZN20AddrManDeterministicC1ERK15NetGroupManagerR18FuzzedDataProvideriENKUlvE_clEv:
  301|  4.99k|#define WITH_LOCK(cs, code) (MaybeCheckNotHeld(cs), [&]() -> decltype(auto) { LOCK(cs); code; }())
  ------------------
  |  |  257|  4.99k|#define LOCK(cs) UniqueLock UNIQUE_NAME(criticalblock)(MaybeCheckNotHeld(cs), #cs, __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  |   11|  4.99k|#define UNIQUE_NAME(name) PASTE2(name, __COUNTER__)
  |  |  |  |  ------------------
  |  |  |  |  |  |    9|  4.99k|#define PASTE2(x, y) PASTE(x, y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |    8|  4.99k|#define PASTE(x, y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
_ZN10UniqueLockI14AnnotatedMixinINSt3__15mutexEEEC2ERS3_PKcS7_ib:
  177|  33.8M|    UniqueLock(MutexType& mutexIn, const char* pszName, const char* pszFile, int nLine, bool fTry = false) EXCLUSIVE_LOCK_FUNCTION(mutexIn) : Base(mutexIn, std::defer_lock)
  178|  33.8M|    {
  179|  33.8M|        if (fTry)
  ------------------
  |  Branch (179:13): [True: 0, False: 33.8M]
  ------------------
  180|      0|            TryEnter(pszName, pszFile, nLine);
  181|  33.8M|        else
  182|  33.8M|            Enter(pszName, pszFile, nLine);
  183|  33.8M|    }
_Z13EnterCriticalINSt3__15mutexEEvPKcS3_iPT_b:
   75|  33.8M|inline void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false) {}
_Z13LeaveCriticalv:
   76|  33.8M|inline void LeaveCritical() {}
_ZN10UniqueLockI14AnnotatedMixinINSt3__15mutexEEE5EnterEPKcS6_i:
  157|  33.8M|    {
  158|  33.8M|        EnterCritical(pszName, pszFile, nLine, Base::mutex());
  159|       |#ifdef DEBUG_LOCKCONTENTION
  160|       |        if (Base::try_lock()) return;
  161|       |        LOG_TIME_MICROS_WITH_CATEGORY(strprintf("lock contention %s, %s:%d", pszName, pszFile, nLine), BCLog::LOCK);
  162|       |#endif
  163|  33.8M|        Base::lock();
  164|  33.8M|    }
_ZN10UniqueLockI14AnnotatedMixinINSt3__15mutexEEED2Ev:
  197|  33.8M|    {
  198|  33.8M|        if (Base::owns_lock())
  ------------------
  |  Branch (198:13): [True: 33.8M, False: 0]
  ------------------
  199|  33.8M|            LeaveCritical();
  200|  33.8M|    }
_Z10DeleteLockPv:
   82|  5.00k|inline void DeleteLock(void* cs) {}
_Z17MaybeCheckNotHeldI14AnnotatedMixinINSt3__115recursive_mutexEEERT_S5_:
  253|  5.00k|inline MutexType& MaybeCheckNotHeld(MutexType& m) LOCKS_EXCLUDED(m) LOCK_RETURNED(m) { return m; }
_Z13EnterCriticalINSt3__115recursive_mutexEEvPKcS3_iPT_b:
   75|  5.00k|inline void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false) {}
_ZN10UniqueLockI14AnnotatedMixinINSt3__115recursive_mutexEEE5EnterEPKcS6_i:
  157|  5.00k|    {
  158|  5.00k|        EnterCritical(pszName, pszFile, nLine, Base::mutex());
  159|       |#ifdef DEBUG_LOCKCONTENTION
  160|       |        if (Base::try_lock()) return;
  161|       |        LOG_TIME_MICROS_WITH_CATEGORY(strprintf("lock contention %s, %s:%d", pszName, pszFile, nLine), BCLog::LOCK);
  162|       |#endif
  163|  5.00k|        Base::lock();
  164|  5.00k|    }
_Z22AssertLockHeldInternalI14AnnotatedMixinINSt3__15mutexEEEvPKcS5_iPT_:
   79|   162M|inline void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) EXCLUSIVE_LOCKS_REQUIRED(cs) {}
_ZN10UniqueLockI14AnnotatedMixinINSt3__115recursive_mutexEEEC2ERS3_PKcS7_ib:
  177|  5.00k|    UniqueLock(MutexType& mutexIn, const char* pszName, const char* pszFile, int nLine, bool fTry = false) EXCLUSIVE_LOCK_FUNCTION(mutexIn) : Base(mutexIn, std::defer_lock)
  178|  5.00k|    {
  179|  5.00k|        if (fTry)
  ------------------
  |  Branch (179:13): [True: 0, False: 5.00k]
  ------------------
  180|      0|            TryEnter(pszName, pszFile, nLine);
  181|  5.00k|        else
  182|  5.00k|            Enter(pszName, pszFile, nLine);
  183|  5.00k|    }
_ZN10UniqueLockI14AnnotatedMixinINSt3__115recursive_mutexEEED2Ev:
  197|  5.00k|    {
  198|  5.00k|        if (Base::owns_lock())
  ------------------
  |  Branch (198:13): [True: 5.00k, False: 0]
  ------------------
  199|  5.00k|            LeaveCritical();
  200|  5.00k|    }
_ZN14AnnotatedMixinINSt3__15mutexEED2Ev:
   94|  5.00k|    ~AnnotatedMixin() {
   95|  5.00k|        DeleteLock((void*)this);
   96|  5.00k|    }
_ZN14AnnotatedMixinINSt3__115recursive_mutexEED2Ev:
   94|      2|    ~AnnotatedMixin() {
   95|      2|        DeleteLock((void*)this);
   96|      2|    }

_ZN18FuzzedDataProviderC2EPKhm:
   37|  2.49k|      : data_ptr_(data), remaining_bytes_(size) {}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIlEET_S1_S1_:
  205|  2.49k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  2.49k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  2.49k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  2.49k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 2.49k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  2.49k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  2.49k|  uint64_t result = 0;
  215|  2.49k|  size_t offset = 0;
  216|       |
  217|  12.4k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 12.4k, False: 0]
  |  Branch (217:43): [True: 9.95k, False: 2.45k]
  ------------------
  218|  12.4k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 9.91k, False: 40]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  9.91k|    --remaining_bytes_;
  226|  9.91k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  9.91k|    offset += CHAR_BIT;
  228|  9.91k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  2.49k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 2.49k, False: 0]
  ------------------
  232|  2.49k|    result = result % (range + 1);
  233|       |
  234|  2.49k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  2.49k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeImEET_S1_S1_:
  205|   939k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|   939k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|   939k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|   939k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 939k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|   939k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|   939k|  uint64_t result = 0;
  215|   939k|  size_t offset = 0;
  216|       |
  217|  1.87M|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 1.87M, False: 0]
  |  Branch (217:43): [True: 939k, False: 938k]
  ------------------
  218|  1.87M|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 938k, False: 1.21k]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|   938k|    --remaining_bytes_;
  226|   938k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|   938k|    offset += CHAR_BIT;
  228|   938k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|   939k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 939k, False: 0]
  ------------------
  232|   939k|    result = result % (range + 1);
  233|       |
  234|   939k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|   939k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIhEET_v:
  195|  1.49M|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  1.49M|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  1.49M|                                std::numeric_limits<T>::max());
  198|  1.49M|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIhEET_S1_S1_:
  205|  1.49M|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  1.49M|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  1.49M|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  1.49M|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 1.49M]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  1.49M|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  1.49M|  uint64_t result = 0;
  215|  1.49M|  size_t offset = 0;
  216|       |
  217|  2.98M|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 1.49M, False: 1.49M]
  |  Branch (217:43): [True: 1.49M, False: 0]
  ------------------
  218|  2.98M|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 1.49M, False: 0]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  1.49M|    --remaining_bytes_;
  226|  1.49M|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  1.49M|    offset += CHAR_BIT;
  228|  1.49M|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  1.49M|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 1.49M, False: 0]
  ------------------
  232|  1.49M|    result = result % (range + 1);
  233|       |
  234|  1.49M|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  1.49M|}
_ZN18FuzzedDataProvider15remaining_bytesEv:
   85|  17.5M|  size_t remaining_bytes() { return remaining_bytes_; }
_ZN18FuzzedDataProvider20ConsumeBytesAsStringEm:
  137|  39.1k|inline std::string FuzzedDataProvider::ConsumeBytesAsString(size_t num_bytes) {
  138|  39.1k|  static_assert(sizeof(std::string::value_type) == sizeof(uint8_t),
  139|  39.1k|                "ConsumeBytesAsString cannot convert the data to a string.");
  140|       |
  141|  39.1k|  num_bytes = std::min(num_bytes, remaining_bytes_);
  142|  39.1k|  std::string result(
  143|  39.1k|      reinterpret_cast<const std::string::value_type *>(data_ptr_), num_bytes);
  144|  39.1k|  Advance(num_bytes);
  145|  39.1k|  return result;
  146|  39.1k|}
_ZN18FuzzedDataProvider25ConsumeRandomLengthStringEm:
  153|  2.49k|FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
  154|       |  // Reads bytes from the start of |data_ptr_|. Maps "\\" to "\", and maps "\"
  155|       |  // followed by anything else to the end of the string. As a result of this
  156|       |  // logic, a fuzzer can insert characters into the string, and the string
  157|       |  // will be lengthened to include those new characters, resulting in a more
  158|       |  // stable fuzzer than picking the length of a string independently from
  159|       |  // picking its contents.
  160|  2.49k|  std::string result;
  161|       |
  162|       |  // Reserve the anticipated capacity to prevent several reallocations.
  163|  2.49k|  result.reserve(std::min(max_length, remaining_bytes_));
  164|  25.3M|  for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
  ------------------
  |  Branch (164:22): [True: 25.3M, False: 509]
  |  Branch (164:40): [True: 25.3M, False: 15]
  ------------------
  165|  25.3M|    char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  166|  25.3M|    Advance(1);
  167|  25.3M|    if (next == '\\' && remaining_bytes_ != 0) {
  ------------------
  |  Branch (167:9): [True: 2.64k, False: 25.3M]
  |  Branch (167:25): [True: 2.64k, False: 6]
  ------------------
  168|  2.64k|      next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  169|  2.64k|      Advance(1);
  170|  2.64k|      if (next != '\\')
  ------------------
  |  Branch (170:11): [True: 1.97k, False: 665]
  ------------------
  171|  1.97k|        break;
  172|  2.64k|    }
  173|  25.3M|    result += next;
  174|  25.3M|  }
  175|       |
  176|  2.49k|  result.shrink_to_fit();
  177|  2.49k|  return result;
  178|  2.49k|}
_ZN18FuzzedDataProvider25ConsumeRandomLengthStringEv:
  181|  2.49k|inline std::string FuzzedDataProvider::ConsumeRandomLengthString() {
  182|  2.49k|  return ConsumeRandomLengthString(remaining_bytes_);
  183|  2.49k|}
_ZN18FuzzedDataProvider11ConsumeBoolEv:
  289|  1.49M|inline bool FuzzedDataProvider::ConsumeBool() {
  290|  1.49M|  return 1 & ConsumeIntegral<uint8_t>();
  291|  1.49M|}
_ZN18FuzzedDataProvider14CopyAndAdvanceEPvm:
  339|   900k|                                               size_t num_bytes) {
  340|   900k|  std::memcpy(destination, data_ptr_, num_bytes);
  341|   900k|  Advance(num_bytes);
  342|   900k|}
_ZN18FuzzedDataProvider7AdvanceEm:
  344|  26.3M|inline void FuzzedDataProvider::Advance(size_t num_bytes) {
  345|  26.3M|  if (num_bytes > remaining_bytes_)
  ------------------
  |  Branch (345:7): [True: 0, False: 26.3M]
  ------------------
  346|      0|    abort();
  347|       |
  348|  26.3M|  data_ptr_ += num_bytes;
  349|  26.3M|  remaining_bytes_ -= num_bytes;
  350|  26.3M|}
_ZN18FuzzedDataProvider23ConvertUnsignedToSignedIchEET_T0_:
  379|  25.3M|TS FuzzedDataProvider::ConvertUnsignedToSigned(TU value) {
  380|  25.3M|  static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types.");
  381|  25.3M|  static_assert(!std::numeric_limits<TU>::is_signed,
  382|  25.3M|                "Source type must be unsigned.");
  383|       |
  384|       |  // TODO(Dor1s): change to `if constexpr` once C++17 becomes mainstream.
  385|  25.3M|  if (std::numeric_limits<TS>::is_modulo)
  ------------------
  |  Branch (385:7): [Folded - Ignored]
  ------------------
  386|      0|    return static_cast<TS>(value);
  387|       |
  388|       |  // Avoid using implementation-defined unsigned to signed conversions.
  389|       |  // To learn more, see https://stackoverflow.com/questions/13150449.
  390|  25.3M|  if (value <= std::numeric_limits<TS>::max()) {
  ------------------
  |  Branch (390:7): [True: 23.0M, False: 2.30M]
  ------------------
  391|  23.0M|    return static_cast<TS>(value);
  392|  23.0M|  } else {
  393|  2.30M|    constexpr auto TS_min = std::numeric_limits<TS>::min();
  394|  2.30M|    return TS_min + static_cast<TS>(value - TS_min);
  395|  2.30M|  }
  396|  25.3M|}
_ZN18FuzzedDataProvider12ConsumeBytesIhEENSt3__16vectorIT_NS1_9allocatorIS3_EEEEm:
  109|   903k|std::vector<T> FuzzedDataProvider::ConsumeBytes(size_t num_bytes) {
  110|   903k|  num_bytes = std::min(num_bytes, remaining_bytes_);
  111|   903k|  return ConsumeBytes<T>(num_bytes, num_bytes);
  112|   903k|}
_ZN18FuzzedDataProvider12ConsumeBytesIhEENSt3__16vectorIT_NS1_9allocatorIS3_EEEEmm:
  353|   903k|std::vector<T> FuzzedDataProvider::ConsumeBytes(size_t size, size_t num_bytes) {
  354|   903k|  static_assert(sizeof(T) == sizeof(uint8_t), "Incompatible data type.");
  355|       |
  356|       |  // The point of using the size-based constructor below is to increase the
  357|       |  // odds of having a vector object with capacity being equal to the length.
  358|       |  // That part is always implementation specific, but at least both libc++ and
  359|       |  // libstdc++ allocate the requested number of bytes in that constructor,
  360|       |  // which seems to be a natural choice for other implementations as well.
  361|       |  // To increase the odds even more, we also call |shrink_to_fit| below.
  362|   903k|  std::vector<T> result(size);
  363|   903k|  if (size == 0) {
  ------------------
  |  Branch (363:7): [True: 2.11k, False: 900k]
  ------------------
  364|  2.11k|    if (num_bytes != 0)
  ------------------
  |  Branch (364:9): [True: 0, False: 2.11k]
  ------------------
  365|      0|      abort();
  366|  2.11k|    return result;
  367|  2.11k|  }
  368|       |
  369|   900k|  CopyAndAdvance(result.data(), num_bytes);
  370|       |
  371|       |  // Even though |shrink_to_fit| is also implementation specific, we expect it
  372|       |  // to provide an additional assurance in case vector's constructor allocated
  373|       |  // a buffer which is larger than the actual amount of data we put inside it.
  374|   900k|  result.shrink_to_fit();
  375|   900k|  return result;
  376|   903k|}

_Z8RandAddrR18FuzzedDataProviderR17FastRandomContext:
   59|  14.6M|{
   60|  14.6M|    CNetAddr addr;
   61|  14.6M|    assert(!addr.IsValid());
   62|  32.2M|    for (size_t i = 0; i < 8 && !addr.IsValid(); ++i) {
  ------------------
  |  Branch (62:24): [True: 32.2M, False: 6.32k]
  |  Branch (62:33): [True: 17.5M, False: 14.6M]
  ------------------
   63|  17.5M|        if (fuzzed_data_provider.remaining_bytes() > 1 && fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (63:13): [True: 1.49M, False: 16.0M]
  |  Branch (63:59): [True: 934k, False: 557k]
  ------------------
   64|   934k|            addr = ConsumeNetAddr(fuzzed_data_provider);
   65|  16.6M|        } else {
   66|  16.6M|            addr = ConsumeNetAddr(fuzzed_data_provider, &fast_random_context);
   67|  16.6M|        }
   68|  17.5M|    }
   69|       |
   70|       |    // Return a dummy IPv4 5.5.5.5 if we generated an invalid address.
   71|  14.6M|    if (!addr.IsValid()) {
  ------------------
  |  Branch (71:9): [True: 5.71k, False: 14.6M]
  ------------------
   72|  5.71k|        in_addr v4_addr = {};
   73|  5.71k|        v4_addr.s_addr = 0x05050505;
   74|  5.71k|        addr = CNetAddr{v4_addr};
   75|  5.71k|    }
   76|       |
   77|  14.6M|    return addr;
   78|  14.6M|}
_Z11FillAddrmanR7AddrManR18FuzzedDataProvider:
   82|  2.49k|{
   83|       |    // Add a fraction of the addresses to the "tried" table.
   84|       |    // 0, 1, 2, 3 corresponding to 0%, 100%, 50%, 33%
   85|  2.49k|    const size_t n = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 3);
   86|       |
   87|  2.49k|    const size_t num_sources = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(1, 50);
   88|  2.49k|    CNetAddr prev_source;
   89|       |    // Generate a FastRandomContext seed to use inside the loops instead of
   90|       |    // fuzzed_data_provider. When fuzzed_data_provider is exhausted it
   91|       |    // just returns 0.
   92|  2.49k|    FastRandomContext fast_random_context{ConsumeUInt256(fuzzed_data_provider)};
   93|  61.4k|    for (size_t i = 0; i < num_sources; ++i) {
  ------------------
  |  Branch (93:24): [True: 58.9k, False: 2.49k]
  ------------------
   94|  58.9k|        const auto source = RandAddr(fuzzed_data_provider, fast_random_context);
   95|  58.9k|        const size_t num_addresses = fast_random_context.randrange(500) + 1; // [1..500]
   96|       |
   97|  14.6M|        for (size_t j = 0; j < num_addresses; ++j) {
  ------------------
  |  Branch (97:28): [True: 14.6M, False: 58.9k]
  ------------------
   98|  14.6M|            const auto addr = CAddress{CService{RandAddr(fuzzed_data_provider, fast_random_context), 8333}, NODE_NETWORK};
   99|  14.6M|            const std::chrono::seconds time_penalty{fast_random_context.randrange(100000001)};
  100|  14.6M|            addrman.Add({addr}, source, time_penalty);
  101|       |
  102|  14.6M|            if (n > 0 && addrman.Size() % n == 0) {
  ------------------
  |  Branch (102:17): [True: 10.8M, False: 3.77M]
  |  Branch (102:26): [True: 6.93M, False: 3.91M]
  ------------------
  103|  6.93M|                addrman.Good(addr, Now<NodeSeconds>());
  104|  6.93M|            }
  105|       |
  106|       |            // Add 10% of the addresses from more than one source.
  107|  14.6M|            if (fast_random_context.randrange(10) == 0 && prev_source.IsValid()) {
  ------------------
  |  Branch (107:17): [True: 1.47M, False: 13.1M]
  |  Branch (107:59): [True: 1.43M, False: 42.7k]
  ------------------
  108|  1.43M|                addrman.Add({addr}, prev_source, time_penalty);
  109|  1.43M|            }
  110|  14.6M|        }
  111|  58.9k|        prev_source = source;
  112|  58.9k|    }
  113|  2.49k|}
_Z28addrman_serdeser_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEE:
  201|  2.49k|{
  202|  2.49k|    SeedRandomStateForTest(SeedRand::ZEROS);
  203|  2.49k|    FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
  204|  2.49k|    SetMockTime(ConsumeTime(fuzzed_data_provider));
  205|       |
  206|  2.49k|    NetGroupManager netgroupman{ConsumeNetGroupManager(fuzzed_data_provider)};
  207|  2.49k|    AddrManDeterministic addr_man1{netgroupman, fuzzed_data_provider, GetCheckRatio()};
  208|  2.49k|    AddrManDeterministic addr_man2{netgroupman, fuzzed_data_provider, GetCheckRatio()};
  209|       |
  210|  2.49k|    DataStream data_stream{};
  211|       |
  212|  2.49k|    FillAddrman(addr_man1, fuzzed_data_provider);
  213|  2.49k|    data_stream << addr_man1;
  214|  2.49k|    data_stream >> addr_man2;
  215|  2.49k|    assert(addr_man1 == addr_man2);
  216|  2.49k|}
addrman.cpp:_ZN12_GLOBAL__N_113GetCheckRatioEv:
   31|  4.99k|{
   32|  4.99k|    return std::clamp<int32_t>(g_setup->m_node.args->GetIntArg("-checkaddrman", 0), 0, 1000000);
   33|  4.99k|}

LLVMFuzzerTestOneInput:
  222|  2.49k|{
  223|  2.49k|    test_one_input({data, size});
  224|  2.49k|    return 0;
  225|  2.49k|}
fuzz.cpp:_ZL14test_one_inputNSt3__14spanIKhLm18446744073709551615EEE:
   83|  2.49k|{
   84|  2.49k|    CheckGlobals check{};
   85|  2.49k|    (*Assert(g_test_one_input))(buffer);
  ------------------
  |  |   85|  2.49k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   86|  2.49k|}

_Z11ConsumeTimeR18FuzzedDataProviderRKNSt3__18optionalIlEES5_:
   35|  2.49k|{
   36|       |    // Avoid t=0 (1970-01-01T00:00:00Z) since SetMockTime(0) disables mocktime.
   37|  2.49k|    static const int64_t time_min{ParseISO8601DateTime("2000-01-01T00:00:01Z").value()};
   38|  2.49k|    static const int64_t time_max{ParseISO8601DateTime("2100-12-31T23:59:59Z").value()};
   39|  2.49k|    return fuzzed_data_provider.ConsumeIntegralInRange<int64_t>(min.value_or(time_min), max.value_or(time_max));
   40|  2.49k|}

_Z28ConsumeRandomLengthBitVectorR18FuzzedDataProviderRKNSt3__18optionalImEE:
   69|  2.49k|{
   70|  2.49k|    return BytesToBits(ConsumeRandomLengthByteVector(fuzzed_data_provider, max_length));
   71|  2.49k|}
_Z14ConsumeUInt256R18FuzzedDataProvider:
  172|  7.49k|{
  173|  7.49k|    const std::vector<uint8_t> v256 = fuzzed_data_provider.ConsumeBytes<uint8_t>(256 / 8);
  174|  7.49k|    if (v256.size() != 256 / 8) {
  ------------------
  |  Branch (174:9): [True: 2.35k, False: 5.14k]
  ------------------
  175|  2.35k|        return {};
  176|  2.35k|    }
  177|  5.14k|    return uint256{v256};
  178|  7.49k|}
_Z29ConsumeRandomLengthByteVectorIhENSt3__16vectorIT_NS0_9allocatorIS2_EEEER18FuzzedDataProviderRKNS0_8optionalImEE:
   58|  2.49k|{
   59|  2.49k|    static_assert(sizeof(B) == 1);
   60|  2.49k|    const std::string s = max_length ?
  ------------------
  |  Branch (60:27): [True: 0, False: 2.49k]
  ------------------
   61|      0|                              fuzzed_data_provider.ConsumeRandomLengthString(*max_length) :
   62|  2.49k|                              fuzzed_data_provider.ConsumeRandomLengthString();
   63|  2.49k|    std::vector<B> ret(s.size());
   64|  2.49k|    std::copy(s.begin(), s.end(), reinterpret_cast<char*>(ret.data()));
   65|  2.49k|    return ret;
   66|  2.49k|}

_ZN12CheckGlobalsC2Ev:
   56|  2.49k|CheckGlobals::CheckGlobals() : m_impl(std::make_unique<CheckGlobalsImpl>()) {}
_ZN12CheckGlobalsD2Ev:
   57|  2.49k|CheckGlobals::~CheckGlobals() = default;
_ZN16CheckGlobalsImplC2Ev:
   17|  2.49k|    {
   18|  2.49k|        g_used_g_prng = false;
   19|  2.49k|        g_seeded_g_prng_zero = false;
   20|  2.49k|        g_used_system_time = false;
   21|  2.49k|        SetMockTime(0s);
   22|  2.49k|    }
_ZN16CheckGlobalsImplD2Ev:
   24|  2.49k|    {
   25|  2.49k|        if (g_used_g_prng && !g_seeded_g_prng_zero) {
  ------------------
  |  Branch (25:13): [True: 2.49k, False: 0]
  |  Branch (25:30): [True: 0, False: 2.49k]
  ------------------
   26|      0|            std::cerr << "\n\n"
   27|      0|                         "The current fuzz target used the global random state.\n\n"
   28|       |
   29|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   30|      0|                         "SeedRandomStateForTest(SeedRand::ZEROS) in the first line \n"
   31|      0|                         "of the FUZZ_TARGET function.\n\n"
   32|       |
   33|      0|                         "An alternative solution would be to avoid any use of globals.\n\n"
   34|       |
   35|      0|                         "Without a solution, fuzz instability and non-determinism can lead \n"
   36|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   37|      0|                      << std::endl;
   38|      0|            std::abort(); // Abort, because AFL may try to recover from a std::exit
   39|      0|        }
   40|       |
   41|  2.49k|        if (g_used_system_time) {
  ------------------
  |  Branch (41:13): [True: 0, False: 2.49k]
  ------------------
   42|      0|            std::cerr << "\n\n"
   43|      0|                         "The current fuzz target accessed system time.\n\n"
   44|       |
   45|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   46|      0|                         "SetMockTime() at the beginning of processing the fuzz input.\n\n"
   47|       |
   48|      0|                         "Without setting mock time, time-dependent behavior can lead \n"
   49|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   50|      0|                      << std::endl;
   51|      0|            std::abort();
   52|      0|        }
   53|  2.49k|    }

_Z14ConsumeNetAddrR18FuzzedDataProviderP17FastRandomContext:
   29|  17.5M|{
   30|  17.5M|    struct NetAux {
   31|  17.5M|        Network net;
   32|  17.5M|        CNetAddr::BIP155Network bip155;
   33|  17.5M|        size_t len;
   34|  17.5M|    };
   35|       |
   36|  17.5M|    static constexpr std::array<NetAux, 6> nets{
   37|  17.5M|        NetAux{.net = Network::NET_IPV4, .bip155 = CNetAddr::BIP155Network::IPV4, .len = ADDR_IPV4_SIZE},
   38|  17.5M|        NetAux{.net = Network::NET_IPV6, .bip155 = CNetAddr::BIP155Network::IPV6, .len = ADDR_IPV6_SIZE},
   39|  17.5M|        NetAux{.net = Network::NET_ONION, .bip155 = CNetAddr::BIP155Network::TORV3, .len = ADDR_TORV3_SIZE},
   40|  17.5M|        NetAux{.net = Network::NET_I2P, .bip155 = CNetAddr::BIP155Network::I2P, .len = ADDR_I2P_SIZE},
   41|  17.5M|        NetAux{.net = Network::NET_CJDNS, .bip155 = CNetAddr::BIP155Network::CJDNS, .len = ADDR_CJDNS_SIZE},
   42|  17.5M|        NetAux{.net = Network::NET_INTERNAL, .bip155 = CNetAddr::BIP155Network{0}, .len = 0},
   43|  17.5M|    };
   44|       |
   45|  17.5M|    const size_t nets_index{rand == nullptr
  ------------------
  |  Branch (45:29): [True: 934k, False: 16.6M]
  ------------------
   46|  17.5M|        ? fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, nets.size() - 1)
   47|  17.5M|        : static_cast<size_t>(rand->randrange(nets.size()))};
   48|       |
   49|  17.5M|    const auto& aux = nets[nets_index];
   50|       |
   51|  17.5M|    CNetAddr addr;
   52|       |
   53|  17.5M|    if (aux.net == Network::NET_INTERNAL) {
  ------------------
  |  Branch (53:9): [True: 2.79M, False: 14.7M]
  ------------------
   54|  2.79M|        if (rand == nullptr) {
  ------------------
  |  Branch (54:13): [True: 39.1k, False: 2.75M]
  ------------------
   55|  39.1k|            addr.SetInternal(fuzzed_data_provider.ConsumeBytesAsString(32));
   56|  2.75M|        } else {
   57|  2.75M|            const auto v = rand->randbytes(32);
   58|  2.75M|            addr.SetInternal(std::string{v.begin(), v.end()});
   59|  2.75M|        }
   60|  2.79M|        return addr;
   61|  2.79M|    }
   62|       |
   63|  14.7M|    DataStream s;
   64|       |
   65|  14.7M|    s << static_cast<uint8_t>(aux.bip155);
   66|       |
   67|  14.7M|    std::vector<uint8_t> addr_bytes;
   68|  14.7M|    if (rand == nullptr) {
  ------------------
  |  Branch (68:9): [True: 895k, False: 13.8M]
  ------------------
   69|   895k|        addr_bytes = fuzzed_data_provider.ConsumeBytes<uint8_t>(aux.len);
   70|   895k|        addr_bytes.resize(aux.len);
   71|  13.8M|    } else {
   72|  13.8M|        addr_bytes = rand->randbytes(aux.len);
   73|  13.8M|    }
   74|  14.7M|    if (aux.net == NET_IPV6 && addr_bytes[0] == CJDNS_PREFIX) { // Avoid generating IPv6 addresses that look like CJDNS.
  ------------------
  |  Branch (74:9): [True: 3.48M, False: 11.2M]
  |  Branch (74:32): [True: 14.5k, False: 3.46M]
  ------------------
   75|  14.5k|        addr_bytes[0] = 0x55; // Just an arbitrary number, anything != CJDNS_PREFIX would do.
   76|  14.5k|    }
   77|  14.7M|    if (aux.net == NET_CJDNS) { // Avoid generating CJDNS addresses that don't start with CJDNS_PREFIX because those are !IsValid().
  ------------------
  |  Branch (77:9): [True: 2.80M, False: 11.9M]
  ------------------
   78|  2.80M|        addr_bytes[0] = CJDNS_PREFIX;
   79|  2.80M|    }
   80|  14.7M|    s << addr_bytes;
   81|       |
   82|  14.7M|    s >> CAddress::V2_NETWORK(addr);
   83|       |
   84|  14.7M|    return addr;
   85|  17.5M|}

_Z22ConsumeNetGroupManagerR18FuzzedDataProvider:
  202|  2.49k|{
  203|  2.49k|    std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider);
  204|  2.49k|    if (!SanityCheckASMap(asmap, 128)) asmap.clear();
  ------------------
  |  Branch (204:9): [True: 1.60k, False: 895]
  ------------------
  205|  2.49k|    return NetGroupManager(asmap);
  206|  2.49k|}
_ZN20AddrManDeterministicC2ERK15NetGroupManagerR18FuzzedDataProvideri:
   44|  4.99k|        : AddrMan(netgroupman, /*deterministic=*/true, check_ratio)
   45|  4.99k|    {
   46|  4.99k|        WITH_LOCK(m_impl->cs, m_impl->insecure_rand.Reseed(ConsumeUInt256(fuzzed_data_provider)));
  ------------------
  |  |  301|  4.99k|#define WITH_LOCK(cs, code) (MaybeCheckNotHeld(cs), [&]() -> decltype(auto) { LOCK(cs); code; }())
  ------------------
   47|  4.99k|    }
_ZNK20AddrManDeterministiceqERKS_:
   57|  2.49k|    {
   58|  2.49k|        LOCK2(m_impl->cs, other.m_impl->cs);
  ------------------
  |  |  259|  2.49k|    UniqueLock criticalblock1(MaybeCheckNotHeld(cs1), #cs1, __FILE__, __LINE__); \
  |  |  260|  2.49k|    UniqueLock criticalblock2(MaybeCheckNotHeld(cs2), #cs2, __FILE__, __LINE__)
  ------------------
   59|       |
   60|  2.49k|        if (m_impl->mapInfo.size() != other.m_impl->mapInfo.size() || m_impl->nNew != other.m_impl->nNew ||
  ------------------
  |  Branch (60:13): [True: 0, False: 2.49k]
  |  Branch (60:71): [True: 0, False: 2.49k]
  ------------------
   61|  2.49k|            m_impl->nTried != other.m_impl->nTried) {
  ------------------
  |  Branch (61:13): [True: 0, False: 2.49k]
  ------------------
   62|      0|            return false;
   63|      0|        }
   64|       |
   65|       |        // Check that all values in `mapInfo` are equal to all values in `other.mapInfo`.
   66|       |        // Keys may be different.
   67|       |
   68|  2.49k|        auto addrinfo_hasher = [](const AddrInfo& a) {
   69|  2.49k|            CSipHasher hasher(0, 0);
   70|  2.49k|            auto addr_key = a.GetKey();
   71|  2.49k|            auto source_key = a.source.GetAddrBytes();
   72|  2.49k|            hasher.Write(TicksSinceEpoch<std::chrono::seconds>(a.m_last_success));
   73|  2.49k|            hasher.Write(a.nAttempts);
   74|  2.49k|            hasher.Write(a.nRefCount);
   75|  2.49k|            hasher.Write(a.fInTried);
   76|  2.49k|            hasher.Write(a.GetNetwork());
   77|  2.49k|            hasher.Write(a.source.GetNetwork());
   78|  2.49k|            hasher.Write(addr_key.size());
   79|  2.49k|            hasher.Write(source_key.size());
   80|  2.49k|            hasher.Write(addr_key);
   81|  2.49k|            hasher.Write(source_key);
   82|  2.49k|            return (size_t)hasher.Finalize();
   83|  2.49k|        };
   84|       |
   85|  2.49k|        auto addrinfo_eq = [](const AddrInfo& lhs, const AddrInfo& rhs) {
   86|  2.49k|            return std::tie(static_cast<const CService&>(lhs), lhs.source, lhs.m_last_success, lhs.nAttempts, lhs.nRefCount, lhs.fInTried) ==
   87|  2.49k|                   std::tie(static_cast<const CService&>(rhs), rhs.source, rhs.m_last_success, rhs.nAttempts, rhs.nRefCount, rhs.fInTried);
   88|  2.49k|        };
   89|       |
   90|  2.49k|        using Addresses = std::unordered_set<AddrInfo, decltype(addrinfo_hasher), decltype(addrinfo_eq)>;
   91|       |
   92|  2.49k|        const size_t num_addresses{m_impl->mapInfo.size()};
   93|       |
   94|  2.49k|        Addresses addresses{num_addresses, addrinfo_hasher, addrinfo_eq};
   95|  11.5M|        for (const auto& [id, addr] : m_impl->mapInfo) {
  ------------------
  |  Branch (95:37): [True: 11.5M, False: 2.49k]
  ------------------
   96|  11.5M|            addresses.insert(addr);
   97|  11.5M|        }
   98|       |
   99|  2.49k|        Addresses other_addresses{num_addresses, addrinfo_hasher, addrinfo_eq};
  100|  11.5M|        for (const auto& [id, addr] : other.m_impl->mapInfo) {
  ------------------
  |  Branch (100:37): [True: 11.5M, False: 2.49k]
  ------------------
  101|  11.5M|            other_addresses.insert(addr);
  102|  11.5M|        }
  103|       |
  104|  2.49k|        if (addresses != other_addresses) {
  ------------------
  |  Branch (104:13): [True: 0, False: 2.49k]
  ------------------
  105|      0|            return false;
  106|      0|        }
  107|       |
  108|  2.49k|        auto IdsReferToSameAddress = [&](nid_type id, nid_type other_id) EXCLUSIVE_LOCKS_REQUIRED(m_impl->cs, other.m_impl->cs) {
  109|  2.49k|            if (id == -1 && other_id == -1) {
  110|  2.49k|                return true;
  111|  2.49k|            }
  112|  2.49k|            if ((id == -1 && other_id != -1) || (id != -1 && other_id == -1)) {
  113|  2.49k|                return false;
  114|  2.49k|            }
  115|  2.49k|            return m_impl->mapInfo.at(id) == other.m_impl->mapInfo.at(other_id);
  116|  2.49k|        };
  117|       |
  118|       |        // Check that `vvNew` contains the same addresses as `other.vvNew`. Notice - `vvNew[i][j]`
  119|       |        // contains just an id and the address is to be found in `mapInfo.at(id)`. The ids
  120|       |        // themselves may differ between `vvNew` and `other.vvNew`.
  121|  2.56M|        for (size_t i = 0; i < ADDRMAN_NEW_BUCKET_COUNT; ++i) {
  ------------------
  |  Branch (121:28): [True: 2.55M, False: 2.49k]
  ------------------
  122|   166M|            for (size_t j = 0; j < ADDRMAN_BUCKET_SIZE; ++j) {
  ------------------
  |  Branch (122:32): [True: 163M, False: 2.55M]
  ------------------
  123|   163M|                if (!IdsReferToSameAddress(m_impl->vvNew[i][j], other.m_impl->vvNew[i][j])) {
  ------------------
  |  Branch (123:21): [True: 0, False: 163M]
  ------------------
  124|      0|                    return false;
  125|      0|                }
  126|   163M|            }
  127|  2.55M|        }
  128|       |
  129|       |        // Same for `vvTried`.
  130|   642k|        for (size_t i = 0; i < ADDRMAN_TRIED_BUCKET_COUNT; ++i) {
  ------------------
  |  Branch (130:28): [True: 639k, False: 2.49k]
  ------------------
  131|  41.5M|            for (size_t j = 0; j < ADDRMAN_BUCKET_SIZE; ++j) {
  ------------------
  |  Branch (131:32): [True: 40.9M, False: 639k]
  ------------------
  132|  40.9M|                if (!IdsReferToSameAddress(m_impl->vvTried[i][j], other.m_impl->vvTried[i][j])) {
  ------------------
  |  Branch (132:21): [True: 0, False: 40.9M]
  ------------------
  133|      0|                    return false;
  134|      0|                }
  135|  40.9M|            }
  136|   639k|        }
  137|       |
  138|  2.49k|        return true;
  139|  2.49k|    }
_ZZNK20AddrManDeterministiceqERKS_ENKUlRK8AddrInfoE_clES4_:
   68|  34.6M|        auto addrinfo_hasher = [](const AddrInfo& a) {
   69|  34.6M|            CSipHasher hasher(0, 0);
   70|  34.6M|            auto addr_key = a.GetKey();
   71|  34.6M|            auto source_key = a.source.GetAddrBytes();
   72|  34.6M|            hasher.Write(TicksSinceEpoch<std::chrono::seconds>(a.m_last_success));
   73|  34.6M|            hasher.Write(a.nAttempts);
   74|  34.6M|            hasher.Write(a.nRefCount);
   75|  34.6M|            hasher.Write(a.fInTried);
   76|  34.6M|            hasher.Write(a.GetNetwork());
   77|  34.6M|            hasher.Write(a.source.GetNetwork());
   78|  34.6M|            hasher.Write(addr_key.size());
   79|  34.6M|            hasher.Write(source_key.size());
   80|  34.6M|            hasher.Write(addr_key);
   81|  34.6M|            hasher.Write(source_key);
   82|  34.6M|            return (size_t)hasher.Finalize();
   83|  34.6M|        };
_ZZNK20AddrManDeterministiceqERKS_ENKUlRK8AddrInfoS4_E_clES4_S4_:
   85|  11.5M|        auto addrinfo_eq = [](const AddrInfo& lhs, const AddrInfo& rhs) {
   86|  11.5M|            return std::tie(static_cast<const CService&>(lhs), lhs.source, lhs.m_last_success, lhs.nAttempts, lhs.nRefCount, lhs.fInTried) ==
   87|  11.5M|                   std::tie(static_cast<const CService&>(rhs), rhs.source, rhs.m_last_success, rhs.nAttempts, rhs.nRefCount, rhs.fInTried);
   88|  11.5M|        };
_ZZNK20AddrManDeterministiceqERKS_ENKUlllE_clEll:
  108|   204M|        auto IdsReferToSameAddress = [&](nid_type id, nid_type other_id) EXCLUSIVE_LOCKS_REQUIRED(m_impl->cs, other.m_impl->cs) {
  109|   204M|            if (id == -1 && other_id == -1) {
  ------------------
  |  Branch (109:17): [True: 192M, False: 11.8M]
  |  Branch (109:29): [True: 192M, False: 0]
  ------------------
  110|   192M|                return true;
  111|   192M|            }
  112|  11.8M|            if ((id == -1 && other_id != -1) || (id != -1 && other_id == -1)) {
  ------------------
  |  Branch (112:18): [True: 0, False: 11.8M]
  |  Branch (112:30): [True: 0, False: 0]
  |  Branch (112:50): [True: 11.8M, False: 0]
  |  Branch (112:62): [True: 0, False: 11.8M]
  ------------------
  113|      0|                return false;
  114|      0|            }
  115|  11.8M|            return m_impl->mapInfo.at(id) == other.m_impl->mapInfo.at(other_id);
  116|  11.8M|        };

_Z22SeedRandomStateForTest8SeedRand:
   20|  2.49k|{
   21|  2.49k|    constexpr auto RANDOM_CTX_SEED{"RANDOM_CTX_SEED"};
   22|       |
   23|       |    // Do this once, on the first call, regardless of seedtype, because once
   24|       |    // MakeRandDeterministicDANGEROUS is called, the output of GetRandHash is
   25|       |    // no longer truly random. It should be enough to get the seed once for the
   26|       |    // process.
   27|  2.49k|    static const auto g_ctx_seed = []() -> std::optional<uint256> {
   28|  2.49k|        if constexpr (G_FUZZING) return {};
   29|       |        // If RANDOM_CTX_SEED is set, use that as seed.
   30|  2.49k|        if (const char* num{std::getenv(RANDOM_CTX_SEED)}) {
   31|  2.49k|            if (auto num_parsed{uint256::FromUserHex(num)}) {
   32|  2.49k|                return *num_parsed;
   33|  2.49k|            } else {
   34|  2.49k|                std::cerr << RANDOM_CTX_SEED << " must consist of up to " << uint256::size() * 2 << " hex digits (\"0x\" prefix allowed), it was set to: '" << num << "'.\n";
   35|  2.49k|                std::abort();
   36|  2.49k|            }
   37|  2.49k|        }
   38|       |        // Otherwise use a (truly) random value.
   39|  2.49k|        return GetRandHash();
   40|  2.49k|    }();
   41|       |
   42|  2.49k|    g_seeded_g_prng_zero = seedtype == SeedRand::ZEROS;
   43|  2.49k|    if constexpr (G_FUZZING) {
   44|  2.49k|        Assert(g_seeded_g_prng_zero); // Only SeedRandomStateForTest(SeedRand::ZEROS) is allowed in fuzz tests
  ------------------
  |  |   85|  2.49k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   45|  2.49k|        Assert(!g_used_g_prng);       // The global PRNG must not have been used before SeedRandomStateForTest(SeedRand::ZEROS)
  ------------------
  |  |   85|  2.49k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   46|  2.49k|    }
   47|  2.49k|    const uint256& seed{seedtype == SeedRand::FIXED_SEED ? g_ctx_seed.value() : uint256::ZERO};
  ------------------
  |  Branch (47:25): [True: 0, False: 2.49k]
  ------------------
   48|  2.49k|    LogInfo("Setting random seed for current tests to %s=%s\n", RANDOM_CTX_SEED, seed.GetHex());
  ------------------
  |  |  261|  2.49k|#define LogInfo(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Info, __VA_ARGS__)
  |  |  ------------------
  |  |  |  |  255|  2.49k|#define LogPrintLevel_(category, level, ...) LogPrintFormatInternal(__func__, __FILE__, __LINE__, category, level, __VA_ARGS__)
  |  |  ------------------
  ------------------
   49|  2.49k|    MakeRandDeterministicDANGEROUS(seed);
   50|  2.49k|}

_ZN17BasicTestingSetupD2Ev:
  199|      2|{
  200|      2|    m_node.ecc_context.reset();
  201|      2|    m_node.kernel.reset();
  202|       |    if constexpr (!G_FUZZING) {
  203|       |        SetMockTime(0s); // Reset mocktime for following tests
  204|       |    }
  205|      2|    LogInstance().DisconnectTestLogger();
  206|      2|    if (m_has_custom_datadir) {
  ------------------
  |  Branch (206:9): [True: 0, False: 2]
  ------------------
  207|       |        // Only remove the lock file, preserve the data directory.
  208|      0|        UnlockDirectory(m_path_lock, ".lock");
  209|      0|        fs::remove(m_path_lock / ".lock");
  210|      2|    } else {
  211|      2|        fs::remove_all(m_path_root);
  212|      2|    }
  213|      2|    gArgs.ClearArgs();
  214|      2|}

_ZN12StdLockGuardC2ER8StdMutex:
   73|  2.50k|    explicit StdLockGuard(StdMutex& cs) EXCLUSIVE_LOCK_FUNCTION(cs) : std::lock_guard<StdMutex>(cs) {}

_ZNK10tinyformat6detail9FormatArg6formatERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEEPKcS9_i:
  541|  22.4k|        {
  542|  22.4k|            TINYFORMAT_ASSERT(m_value);
  ------------------
  |  |  153|  22.4k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  543|  22.4k|            TINYFORMAT_ASSERT(m_formatImpl);
  ------------------
  |  |  153|  22.4k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  544|  22.4k|            m_formatImpl(out, fmtBegin, fmtEnd, ntrunc, m_value);
  545|  22.4k|        }
_ZN10tinyformat10FormatListC2EPNS_6detail9FormatArgEi:
  966|  9.99k|            : m_args(args), m_N(N) { }
_ZN10tinyformat6detail18parseIntAndAdvanceERPKc:
  578|  2.49k|{
  579|  2.49k|    int i = 0;
  580|  4.99k|    for (;*c >= '0' && *c <= '9'; ++c)
  ------------------
  |  Branch (580:11): [True: 4.99k, False: 0]
  |  Branch (580:24): [True: 2.49k, False: 2.49k]
  ------------------
  581|  2.49k|        i = 10*i + (*c - '0');
  582|  2.49k|    return i;
  583|  2.49k|}
_ZN10tinyformat6detail21parseWidthOrPrecisionERiRPKcbPKNS0_9FormatArgES1_i:
  593|  24.9k|{
  594|  24.9k|    if (*c >= '0' && *c <= '9') {
  ------------------
  |  Branch (594:9): [True: 22.4k, False: 2.49k]
  |  Branch (594:22): [True: 2.49k, False: 19.9k]
  ------------------
  595|  2.49k|        n = parseIntAndAdvance(c);
  596|  2.49k|    }
  597|  22.4k|    else if (*c == '*') {
  ------------------
  |  Branch (597:14): [True: 0, False: 22.4k]
  ------------------
  598|      0|        ++c;
  599|      0|        n = 0;
  600|      0|        if (positionalMode) {
  ------------------
  |  Branch (600:13): [True: 0, False: 0]
  ------------------
  601|      0|            int pos = parseIntAndAdvance(c) - 1;
  602|      0|            if (*c != '$')
  ------------------
  |  Branch (602:17): [True: 0, False: 0]
  ------------------
  603|      0|                TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  604|      0|            if (pos >= 0 && pos < numArgs)
  ------------------
  |  Branch (604:17): [True: 0, False: 0]
  |  Branch (604:29): [True: 0, False: 0]
  ------------------
  605|      0|                n = args[pos].toInt();
  606|      0|            else
  607|      0|                TINYFORMAT_ERROR("tinyformat: Positional argument out of range");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  608|      0|            ++c;
  609|      0|        }
  610|      0|        else {
  611|      0|            if (argIndex < numArgs)
  ------------------
  |  Branch (611:17): [True: 0, False: 0]
  ------------------
  612|      0|                n = args[argIndex++].toInt();
  613|      0|            else
  614|      0|                TINYFORMAT_ERROR("tinyformat: Not enough arguments to read variable width or precision");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  615|      0|        }
  616|      0|    }
  617|  22.4k|    else {
  618|  22.4k|        return false;
  619|  22.4k|    }
  620|  2.49k|    return true;
  621|  24.9k|}
_ZN10tinyformat6detail24printFormatStringLiteralERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKc:
  629|  32.4k|{
  630|  32.4k|    const char* c = fmt;
  631|   124k|    for (;; ++c) {
  632|   124k|        if (*c == '\0') {
  ------------------
  |  Branch (632:13): [True: 9.99k, False: 114k]
  ------------------
  633|  9.99k|            out.write(fmt, c - fmt);
  634|  9.99k|            return c;
  635|  9.99k|        }
  636|   114k|        else if (*c == '%') {
  ------------------
  |  Branch (636:18): [True: 22.4k, False: 92.4k]
  ------------------
  637|  22.4k|            out.write(fmt, c - fmt);
  638|  22.4k|            if (*(c+1) != '%')
  ------------------
  |  Branch (638:17): [True: 22.4k, False: 0]
  ------------------
  639|  22.4k|                return c;
  640|       |            // for "%%", tack trailing % onto next literal section.
  641|      0|            fmt = ++c;
  642|      0|        }
  643|   124k|    }
  644|  32.4k|}
_ZN10tinyformat6detail21streamStateFromFormatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERbS7_RiPKcPKNS0_9FormatArgES8_i:
  685|  22.4k|{
  686|  22.4k|    TINYFORMAT_ASSERT(*fmtStart == '%');
  ------------------
  |  |  153|  22.4k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  687|       |    // Reset stream state to defaults.
  688|  22.4k|    out.width(0);
  689|  22.4k|    out.precision(6);
  690|  22.4k|    out.fill(' ');
  691|       |    // Reset most flags; ignore irrelevant unitbuf & skipws.
  692|  22.4k|    out.unsetf(std::ios::adjustfield | std::ios::basefield |
  693|  22.4k|               std::ios::floatfield | std::ios::showbase | std::ios::boolalpha |
  694|  22.4k|               std::ios::showpoint | std::ios::showpos | std::ios::uppercase);
  695|  22.4k|    bool precisionSet = false;
  696|  22.4k|    bool widthSet = false;
  697|  22.4k|    int widthExtra = 0;
  698|  22.4k|    const char* c = fmtStart + 1;
  699|       |
  700|       |    // 1) Parse an argument index (if followed by '$') or a width possibly
  701|       |    // preceded with '0' flag.
  702|  22.4k|    if (*c >= '0' && *c <= '9') {
  ------------------
  |  Branch (702:9): [True: 19.9k, False: 2.49k]
  |  Branch (702:22): [True: 0, False: 19.9k]
  ------------------
  703|      0|        const char tmpc = *c;
  704|      0|        int value = parseIntAndAdvance(c);
  705|      0|        if (*c == '$') {
  ------------------
  |  Branch (705:13): [True: 0, False: 0]
  ------------------
  706|       |            // value is an argument index
  707|      0|            if (value > 0 && value <= numArgs)
  ------------------
  |  Branch (707:17): [True: 0, False: 0]
  |  Branch (707:30): [True: 0, False: 0]
  ------------------
  708|      0|                argIndex = value - 1;
  709|      0|            else
  710|      0|                TINYFORMAT_ERROR("tinyformat: Positional argument out of range");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  711|      0|            ++c;
  712|      0|            positionalMode = true;
  713|      0|        }
  714|      0|        else if (positionalMode) {
  ------------------
  |  Branch (714:18): [True: 0, False: 0]
  ------------------
  715|      0|            TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  716|      0|        }
  717|      0|        else {
  718|      0|            if (tmpc == '0') {
  ------------------
  |  Branch (718:17): [True: 0, False: 0]
  ------------------
  719|       |                // Use internal padding so that numeric values are
  720|       |                // formatted correctly, eg -00010 rather than 000-10
  721|      0|                out.fill('0');
  722|      0|                out.setf(std::ios::internal, std::ios::adjustfield);
  723|      0|            }
  724|      0|            if (value != 0) {
  ------------------
  |  Branch (724:17): [True: 0, False: 0]
  ------------------
  725|       |                // Nonzero value means that we parsed width.
  726|      0|                widthSet = true;
  727|      0|                out.width(value);
  728|      0|            }
  729|      0|        }
  730|      0|    }
  731|  22.4k|    else if (positionalMode) {
  ------------------
  |  Branch (731:14): [True: 0, False: 22.4k]
  ------------------
  732|      0|        TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  733|      0|    }
  734|       |    // 2) Parse flags and width if we did not do it in previous step.
  735|  22.4k|    if (!widthSet) {
  ------------------
  |  Branch (735:9): [True: 22.4k, False: 0]
  ------------------
  736|       |        // Parse flags
  737|  22.4k|        for (;; ++c) {
  738|  22.4k|            switch (*c) {
  739|      0|                case '#':
  ------------------
  |  Branch (739:17): [True: 0, False: 22.4k]
  ------------------
  740|      0|                    out.setf(std::ios::showpoint | std::ios::showbase);
  741|      0|                    continue;
  742|      0|                case '0':
  ------------------
  |  Branch (742:17): [True: 0, False: 22.4k]
  ------------------
  743|       |                    // overridden by left alignment ('-' flag)
  744|      0|                    if (!(out.flags() & std::ios::left)) {
  ------------------
  |  Branch (744:25): [True: 0, False: 0]
  ------------------
  745|       |                        // Use internal padding so that numeric values are
  746|       |                        // formatted correctly, eg -00010 rather than 000-10
  747|      0|                        out.fill('0');
  748|      0|                        out.setf(std::ios::internal, std::ios::adjustfield);
  749|      0|                    }
  750|      0|                    continue;
  751|      0|                case '-':
  ------------------
  |  Branch (751:17): [True: 0, False: 22.4k]
  ------------------
  752|      0|                    out.fill(' ');
  753|      0|                    out.setf(std::ios::left, std::ios::adjustfield);
  754|      0|                    continue;
  755|      0|                case ' ':
  ------------------
  |  Branch (755:17): [True: 0, False: 22.4k]
  ------------------
  756|       |                    // overridden by show positive sign, '+' flag.
  757|      0|                    if (!(out.flags() & std::ios::showpos))
  ------------------
  |  Branch (757:25): [True: 0, False: 0]
  ------------------
  758|      0|                        spacePadPositive = true;
  759|      0|                    continue;
  760|      0|                case '+':
  ------------------
  |  Branch (760:17): [True: 0, False: 22.4k]
  ------------------
  761|      0|                    out.setf(std::ios::showpos);
  762|      0|                    spacePadPositive = false;
  763|      0|                    widthExtra = 1;
  764|      0|                    continue;
  765|  22.4k|                default:
  ------------------
  |  Branch (765:17): [True: 22.4k, False: 0]
  ------------------
  766|  22.4k|                    break;
  767|  22.4k|            }
  768|  22.4k|            break;
  769|  22.4k|        }
  770|       |        // Parse width
  771|  22.4k|        int width = 0;
  772|  22.4k|        widthSet = parseWidthOrPrecision(width, c, positionalMode,
  773|  22.4k|                                         args, argIndex, numArgs);
  774|  22.4k|        if (widthSet) {
  ------------------
  |  Branch (774:13): [True: 0, False: 22.4k]
  ------------------
  775|      0|            if (width < 0) {
  ------------------
  |  Branch (775:17): [True: 0, False: 0]
  ------------------
  776|       |                // negative widths correspond to '-' flag set
  777|      0|                out.fill(' ');
  778|      0|                out.setf(std::ios::left, std::ios::adjustfield);
  779|      0|                width = -width;
  780|      0|            }
  781|      0|            out.width(width);
  782|      0|        }
  783|  22.4k|    }
  784|       |    // 3) Parse precision
  785|  22.4k|    if (*c == '.') {
  ------------------
  |  Branch (785:9): [True: 2.49k, False: 19.9k]
  ------------------
  786|  2.49k|        ++c;
  787|  2.49k|        int precision = 0;
  788|  2.49k|        parseWidthOrPrecision(precision, c, positionalMode,
  789|  2.49k|                              args, argIndex, numArgs);
  790|       |        // Presence of `.` indicates precision set, unless the inferred value
  791|       |        // was negative in which case the default is used.
  792|  2.49k|        precisionSet = precision >= 0;
  793|  2.49k|        if (precisionSet)
  ------------------
  |  Branch (793:13): [True: 2.49k, False: 0]
  ------------------
  794|  2.49k|            out.precision(precision);
  795|  2.49k|    }
  796|       |    // 4) Ignore any C99 length modifier
  797|  22.4k|    while (*c == 'l' || *c == 'h' || *c == 'L' ||
  ------------------
  |  Branch (797:12): [True: 0, False: 22.4k]
  |  Branch (797:25): [True: 0, False: 22.4k]
  |  Branch (797:38): [True: 0, False: 22.4k]
  ------------------
  798|  22.4k|           *c == 'j' || *c == 'z' || *c == 't') {
  ------------------
  |  Branch (798:12): [True: 0, False: 22.4k]
  |  Branch (798:25): [True: 0, False: 22.4k]
  |  Branch (798:38): [True: 0, False: 22.4k]
  ------------------
  799|      0|        ++c;
  800|      0|    }
  801|       |    // 5) We're up to the conversion specifier character.
  802|       |    // Set stream flags based on conversion specifier (thanks to the
  803|       |    // boost::format class for forging the way here).
  804|  22.4k|    bool intConversion = false;
  805|  22.4k|    switch (*c) {
  806|  7.49k|        case 'u': case 'd': case 'i':
  ------------------
  |  Branch (806:9): [True: 2.49k, False: 19.9k]
  |  Branch (806:19): [True: 0, False: 22.4k]
  |  Branch (806:29): [True: 4.99k, False: 17.4k]
  ------------------
  807|  7.49k|            out.setf(std::ios::dec, std::ios::basefield);
  808|  7.49k|            intConversion = true;
  809|  7.49k|            break;
  810|      0|        case 'o':
  ------------------
  |  Branch (810:9): [True: 0, False: 22.4k]
  ------------------
  811|      0|            out.setf(std::ios::oct, std::ios::basefield);
  812|      0|            intConversion = true;
  813|      0|            break;
  814|      0|        case 'X':
  ------------------
  |  Branch (814:9): [True: 0, False: 22.4k]
  ------------------
  815|      0|            out.setf(std::ios::uppercase);
  816|      0|            [[fallthrough]];
  817|      0|        case 'x': case 'p':
  ------------------
  |  Branch (817:9): [True: 0, False: 22.4k]
  |  Branch (817:19): [True: 0, False: 22.4k]
  ------------------
  818|      0|            out.setf(std::ios::hex, std::ios::basefield);
  819|      0|            intConversion = true;
  820|      0|            break;
  821|      0|        case 'E':
  ------------------
  |  Branch (821:9): [True: 0, False: 22.4k]
  ------------------
  822|      0|            out.setf(std::ios::uppercase);
  823|      0|            [[fallthrough]];
  824|      0|        case 'e':
  ------------------
  |  Branch (824:9): [True: 0, False: 22.4k]
  ------------------
  825|      0|            out.setf(std::ios::scientific, std::ios::floatfield);
  826|      0|            out.setf(std::ios::dec, std::ios::basefield);
  827|      0|            break;
  828|      0|        case 'F':
  ------------------
  |  Branch (828:9): [True: 0, False: 22.4k]
  ------------------
  829|      0|            out.setf(std::ios::uppercase);
  830|      0|            [[fallthrough]];
  831|  2.49k|        case 'f':
  ------------------
  |  Branch (831:9): [True: 2.49k, False: 19.9k]
  ------------------
  832|  2.49k|            out.setf(std::ios::fixed, std::ios::floatfield);
  833|  2.49k|            break;
  834|      0|        case 'A':
  ------------------
  |  Branch (834:9): [True: 0, False: 22.4k]
  ------------------
  835|      0|            out.setf(std::ios::uppercase);
  836|      0|            [[fallthrough]];
  837|      0|        case 'a':
  ------------------
  |  Branch (837:9): [True: 0, False: 22.4k]
  ------------------
  838|       |#           ifdef _MSC_VER
  839|       |            // Workaround https://developercommunity.visualstudio.com/content/problem/520472/hexfloat-stream-output-does-not-ignore-precision-a.html
  840|       |            // by always setting maximum precision on MSVC to avoid precision
  841|       |            // loss for doubles.
  842|       |            out.precision(13);
  843|       |#           endif
  844|      0|            out.setf(std::ios::fixed | std::ios::scientific, std::ios::floatfield);
  845|      0|            break;
  846|      0|        case 'G':
  ------------------
  |  Branch (846:9): [True: 0, False: 22.4k]
  ------------------
  847|      0|            out.setf(std::ios::uppercase);
  848|      0|            [[fallthrough]];
  849|      0|        case 'g':
  ------------------
  |  Branch (849:9): [True: 0, False: 22.4k]
  ------------------
  850|      0|            out.setf(std::ios::dec, std::ios::basefield);
  851|       |            // As in boost::format, let stream decide float format.
  852|      0|            out.flags(out.flags() & ~std::ios::floatfield);
  853|      0|            break;
  854|      0|        case 'c':
  ------------------
  |  Branch (854:9): [True: 0, False: 22.4k]
  ------------------
  855|       |            // Handled as special case inside formatValue()
  856|      0|            break;
  857|  12.4k|        case 's':
  ------------------
  |  Branch (857:9): [True: 12.4k, False: 9.99k]
  ------------------
  858|  12.4k|            if (precisionSet)
  ------------------
  |  Branch (858:17): [True: 0, False: 12.4k]
  ------------------
  859|      0|                ntrunc = static_cast<int>(out.precision());
  860|       |            // Make %s print Booleans as "true" and "false"
  861|  12.4k|            out.setf(std::ios::boolalpha);
  862|  12.4k|            break;
  863|      0|        case 'n':
  ------------------
  |  Branch (863:9): [True: 0, False: 22.4k]
  ------------------
  864|       |            // Not supported - will cause problems!
  865|      0|            TINYFORMAT_ERROR("tinyformat: %n conversion spec not supported");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  866|      0|            break;
  867|      0|        case '\0':
  ------------------
  |  Branch (867:9): [True: 0, False: 22.4k]
  ------------------
  868|      0|            TINYFORMAT_ERROR("tinyformat: Conversion spec incorrectly "
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  869|      0|                             "terminated by end of string");
  870|      0|            return c;
  871|      0|        default:
  ------------------
  |  Branch (871:9): [True: 0, False: 22.4k]
  ------------------
  872|      0|            break;
  873|  22.4k|    }
  874|  22.4k|    if (intConversion && precisionSet && !widthSet) {
  ------------------
  |  Branch (874:9): [True: 7.49k, False: 14.9k]
  |  Branch (874:26): [True: 0, False: 7.49k]
  |  Branch (874:42): [True: 0, False: 0]
  ------------------
  875|       |        // "precision" for integers gives the minimum number of digits (to be
  876|       |        // padded with zeros on the left).  This isn't really supported by the
  877|       |        // iostreams, but we can approximately simulate it with the width if
  878|       |        // the width isn't otherwise used.
  879|      0|        out.width(out.precision() + widthExtra);
  880|      0|        out.setf(std::ios::internal, std::ios::adjustfield);
  881|      0|        out.fill('0');
  882|      0|    }
  883|  22.4k|    return c+1;
  884|  22.4k|}
_ZN10tinyformat6detail10formatImplERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcPKNS0_9FormatArgEi:
  891|  9.99k|{
  892|       |    // Saved stream state
  893|  9.99k|    std::streamsize origWidth = out.width();
  894|  9.99k|    std::streamsize origPrecision = out.precision();
  895|  9.99k|    std::ios::fmtflags origFlags = out.flags();
  896|  9.99k|    char origFill = out.fill();
  897|       |
  898|       |    // "Positional mode" means all format specs should be of the form "%n$..."
  899|       |    // with `n` an integer. We detect this in `streamStateFromFormat`.
  900|  9.99k|    bool positionalMode = false;
  901|  9.99k|    int argIndex = 0;
  902|  32.4k|    while (true) {
  ------------------
  |  Branch (902:12): [Folded - Ignored]
  ------------------
  903|  32.4k|        fmt = printFormatStringLiteral(out, fmt);
  904|  32.4k|        if (*fmt == '\0') {
  ------------------
  |  Branch (904:13): [True: 9.99k, False: 22.4k]
  ------------------
  905|  9.99k|            if (!positionalMode && argIndex < numArgs) {
  ------------------
  |  Branch (905:17): [True: 9.99k, False: 0]
  |  Branch (905:36): [True: 0, False: 9.99k]
  ------------------
  906|      0|                TINYFORMAT_ERROR("tinyformat: Not enough conversion specifiers in format string");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  907|      0|            }
  908|  9.99k|            break;
  909|  9.99k|        }
  910|  22.4k|        bool spacePadPositive = false;
  911|  22.4k|        int ntrunc = -1;
  912|  22.4k|        const char* fmtEnd = streamStateFromFormat(out, positionalMode, spacePadPositive, ntrunc, fmt,
  913|  22.4k|                                                   args, argIndex, numArgs);
  914|       |        // NB: argIndex may be incremented by reading variable width/precision
  915|       |        // in `streamStateFromFormat`, so do the bounds check here.
  916|  22.4k|        if (argIndex >= numArgs) {
  ------------------
  |  Branch (916:13): [True: 0, False: 22.4k]
  ------------------
  917|      0|            TINYFORMAT_ERROR("tinyformat: Too many conversion specifiers in format string");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  918|      0|            return;
  919|      0|        }
  920|  22.4k|        const FormatArg& arg = args[argIndex];
  921|       |        // Format the arg into the stream.
  922|  22.4k|        if (!spacePadPositive) {
  ------------------
  |  Branch (922:13): [True: 22.4k, False: 0]
  ------------------
  923|  22.4k|            arg.format(out, fmt, fmtEnd, ntrunc);
  924|  22.4k|        }
  925|      0|        else {
  926|       |            // The following is a special case with no direct correspondence
  927|       |            // between stream formatting and the printf() behaviour.  Simulate
  928|       |            // it crudely by formatting into a temporary string stream and
  929|       |            // munging the resulting string.
  930|      0|            std::ostringstream tmpStream;
  931|      0|            tmpStream.copyfmt(out);
  932|      0|            tmpStream.setf(std::ios::showpos);
  933|      0|            arg.format(tmpStream, fmt, fmtEnd, ntrunc);
  934|      0|            std::string result = tmpStream.str(); // allocates... yuck.
  935|      0|            for (size_t i = 0, iend = result.size(); i < iend; ++i) {
  ------------------
  |  Branch (935:54): [True: 0, False: 0]
  ------------------
  936|      0|                if (result[i] == '+')
  ------------------
  |  Branch (936:21): [True: 0, False: 0]
  ------------------
  937|      0|                    result[i] = ' ';
  938|      0|            }
  939|      0|            out << result;
  940|      0|        }
  941|  22.4k|        if (!positionalMode)
  ------------------
  |  Branch (941:13): [True: 22.4k, False: 0]
  ------------------
  942|  22.4k|            ++argIndex;
  943|  22.4k|        fmt = fmtEnd;
  944|  22.4k|    }
  945|       |
  946|       |    // Restore stream state
  947|  9.99k|    out.width(origWidth);
  948|  9.99k|    out.precision(origPrecision);
  949|  9.99k|    out.flags(origFlags);
  950|  9.99k|    out.fill(origFill);
  951|  9.99k|}
_ZN10tinyformat7vformatERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEPKcRKNS_10FormatListE:
 1070|  9.99k|{
 1071|  9.99k|    detail::formatImpl(out, fmt, list.m_args, list.m_N);
 1072|  9.99k|}
_ZN10tinyformat17FormatStringCheckILj1EEcvPKcEv:
  197|  2.49k|    operator const char*() { return fmt; }
_ZN10tinyformat6detail9FormatArgC2IiEERKT_:
  534|  4.99k|            : m_value(static_cast<const void*>(&value)),
  535|  4.99k|            m_formatImpl(&formatImpl<T>),
  536|  4.99k|            m_toIntImpl(&toIntImpl<T>)
  537|  4.99k|        { }
_ZN10tinyformat6detail9FormatArg10formatImplIiEEvRNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEPKcSA_iPKv:
  558|  4.99k|        {
  559|  4.99k|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|  4.99k|        }
_ZN10tinyformat11formatValueIiEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcS8_iRKT_:
  351|  4.99k|{
  352|  4.99k|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|  4.99k|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|  4.99k|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|  4.99k|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|  4.99k|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|  4.99k|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|  4.99k|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 4.99k]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|  4.99k|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|  4.99k|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 4.99k]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|  4.99k|    else
  378|  4.99k|        out << value;
  379|  4.99k|}
_ZN10tinyformat17FormatStringCheckILj2EEcvPKcEv:
  197|  2.49k|    operator const char*() { return fmt; }
_ZN10tinyformat6detail9FormatArgC2ImEERKT_:
  534|  2.49k|            : m_value(static_cast<const void*>(&value)),
  535|  2.49k|            m_formatImpl(&formatImpl<T>),
  536|  2.49k|            m_toIntImpl(&toIntImpl<T>)
  537|  2.49k|        { }
_ZN10tinyformat6detail9FormatArg10formatImplImEEvRNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEPKcSA_iPKv:
  558|  2.49k|        {
  559|  2.49k|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|  2.49k|        }
_ZN10tinyformat11formatValueImEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcS8_iRKT_:
  351|  2.49k|{
  352|  2.49k|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|  2.49k|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|  2.49k|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|  2.49k|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|  2.49k|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|  2.49k|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|  2.49k|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 2.49k]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|  2.49k|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|  2.49k|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 2.49k]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|  2.49k|    else
  378|  2.49k|        out << value;
  379|  2.49k|}
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEES7_NS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|  2.49k|{
 1089|  2.49k|    std::ostringstream oss;
 1090|  2.49k|    format(oss, fmt, args...);
 1091|  2.49k|    return oss.str();
 1092|  2.49k|}
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEEvRNS1_13basic_ostreamIcS4_EENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|  2.49k|{
 1081|  2.49k|    vformat(out, fmt, makeFormatList(args...));
 1082|  2.49k|}
_ZN10tinyformat14makeFormatListIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|  2.49k|{
 1045|  2.49k|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|  2.49k|}
_ZN10tinyformat6detail11FormatListNILi2EEC2IJNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEESA_EEEDpRKT_:
  990|  2.49k|            : FormatList(&m_formatterStore[0], N),
  991|  2.49k|            m_formatterStore { FormatArg(args)... }
  992|  2.49k|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }
_ZN10tinyformat6detail9FormatArgC2INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERKT_:
  534|  12.4k|            : m_value(static_cast<const void*>(&value)),
  535|  12.4k|            m_formatImpl(&formatImpl<T>),
  536|  12.4k|            m_toIntImpl(&toIntImpl<T>)
  537|  12.4k|        { }
_ZN10tinyformat6detail9FormatArg10formatImplINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEvRNS3_13basic_ostreamIcS6_EEPKcSE_iPKv:
  558|  12.4k|        {
  559|  12.4k|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|  12.4k|        }
_ZN10tinyformat11formatValueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRNS1_13basic_ostreamIcS4_EEPKcSC_iRKT_:
  351|  12.4k|{
  352|  12.4k|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|  12.4k|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|  12.4k|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|  12.4k|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|  12.4k|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|  12.4k|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|  12.4k|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 0]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|  12.4k|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|  12.4k|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 12.4k]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|  12.4k|    else
  378|  12.4k|        out << value;
  379|  12.4k|}
_ZN10tinyformat6detail9FormatArgC2IdEERKT_:
  534|  2.49k|            : m_value(static_cast<const void*>(&value)),
  535|  2.49k|            m_formatImpl(&formatImpl<T>),
  536|  2.49k|            m_toIntImpl(&toIntImpl<T>)
  537|  2.49k|        { }
_ZN10tinyformat6detail9FormatArg10formatImplIdEEvRNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEPKcSA_iPKv:
  558|  2.49k|        {
  559|  2.49k|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|  2.49k|        }
_ZN10tinyformat11formatValueIdEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcS8_iRKT_:
  351|  2.49k|{
  352|  2.49k|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|  2.49k|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|  2.49k|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|  2.49k|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|  2.49k|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|  2.49k|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|  2.49k|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 2.49k]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|  2.49k|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|  2.49k|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 2.49k]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|  2.49k|    else
  378|  2.49k|        out << value;
  379|  2.49k|}
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|  2.49k|{
 1089|  2.49k|    std::ostringstream oss;
 1090|  2.49k|    format(oss, fmt, args...);
 1091|  2.49k|    return oss.str();
 1092|  2.49k|}
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEEvRNS1_13basic_ostreamIcS4_EENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|  2.49k|{
 1081|  2.49k|    vformat(out, fmt, makeFormatList(args...));
 1082|  2.49k|}
_ZN10tinyformat14makeFormatListIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|  2.49k|{
 1045|  2.49k|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|  2.49k|}
_ZN10tinyformat6detail11FormatListNILi1EEC2IJNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEDpRKT_:
  990|  2.49k|            : FormatList(&m_formatterStore[0], N),
  991|  2.49k|            m_formatterStore { FormatArg(args)... }
  992|  2.49k|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }
_ZN10tinyformat17FormatStringCheckILj3EEcvPKcEv:
  197|  4.99k|    operator const char*() { return fmt; }
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_dEEES7_NS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|  2.49k|{
 1089|  2.49k|    std::ostringstream oss;
 1090|  2.49k|    format(oss, fmt, args...);
 1091|  2.49k|    return oss.str();
 1092|  2.49k|}
_ZN10tinyformat6formatIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_dEEEvRNS1_13basic_ostreamIcS4_EENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|  2.49k|{
 1081|  2.49k|    vformat(out, fmt, makeFormatList(args...));
 1082|  2.49k|}
_ZN10tinyformat14makeFormatListIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_dEEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|  2.49k|{
 1045|  2.49k|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|  2.49k|}
_ZN10tinyformat6detail11FormatListNILi3EEC2IJNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEESA_dEEEDpRKT_:
  990|  2.49k|            : FormatList(&m_formatterStore[0], N),
  991|  2.49k|            m_formatterStore { FormatArg(args)... }
  992|  2.49k|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }
_ZN10tinyformat6formatIJiimEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|  2.49k|{
 1089|  2.49k|    std::ostringstream oss;
 1090|  2.49k|    format(oss, fmt, args...);
 1091|  2.49k|    return oss.str();
 1092|  2.49k|}
_ZN10tinyformat6formatIJiimEEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|  2.49k|{
 1081|  2.49k|    vformat(out, fmt, makeFormatList(args...));
 1082|  2.49k|}
_ZN10tinyformat14makeFormatListIJiimEEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|  2.49k|{
 1045|  2.49k|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|  2.49k|}
_ZN10tinyformat6detail11FormatListNILi3EEC2IJiimEEEDpRKT_:
  990|  2.49k|            : FormatList(&m_formatterStore[0], N),
  991|  2.49k|            m_formatterStore { FormatArg(args)... }
  992|  2.49k|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }

_ZNK9base_blobILj256EE6GetHexEv:
   12|  2.49k|{
   13|  2.49k|    uint8_t m_data_rev[WIDTH];
   14|  82.4k|    for (int i = 0; i < WIDTH; ++i) {
  ------------------
  |  Branch (14:21): [True: 79.9k, False: 2.49k]
  ------------------
   15|  79.9k|        m_data_rev[i] = m_data[WIDTH - 1 - i];
   16|  79.9k|    }
   17|  2.49k|    return HexStr(m_data_rev);
   18|  2.49k|}

_ZN7uint256C2Eh:
  207|  4.99k|    constexpr explicit uint256(uint8_t v) : base_blob<256>(v) {}
_ZN7uint256C2E4SpanIKhE:
  208|  5.14k|    constexpr explicit uint256(Span<const unsigned char> vch) : base_blob<256>(vch) {}
_ZN9base_blobILj256EE5beginEv:
  115|   530M|    constexpr unsigned char* begin() { return m_data.data(); }
_ZNK9base_blobILj256EE6IsNullEv:
   49|  2.49k|    {
   50|  2.49k|        return std::all_of(m_data.begin(), m_data.end(), [](uint8_t val) {
   51|  2.49k|            return val == 0;
   52|  2.49k|        });
   53|  2.49k|    }
_ZN9base_blobILj256EE4sizeEv:
  121|  29.9k|    static constexpr unsigned int size() { return WIDTH; }
_ZNK9base_blobILj256EE7CompareERKS0_:
   64|  2.49k|    constexpr int Compare(const base_blob& other) const { return std::memcmp(m_data.data(), other.m_data.data(), WIDTH); }
_ZeqRK9base_blobILj256EES2_:
   66|  2.49k|    friend constexpr bool operator==(const base_blob& a, const base_blob& b) { return a.Compare(b) == 0; }
_ZN9base_blobILj256EE7SetNullEv:
   56|  4.99k|    {
   57|  4.99k|        std::fill(m_data.begin(), m_data.end(), 0);
   58|  4.99k|    }
_ZNK9base_blobILj256EE4dataEv:
  112|  9.99k|    constexpr const unsigned char* data() const { return m_data.data(); }
_ZN9base_blobILj256EE4dataEv:
  113|  19.9k|    constexpr unsigned char* data() { return m_data.data(); }
_ZN7uint256C2Ev:
  205|   132M|    constexpr uint256() = default;
_ZN9base_blobILj256EEC2Ev:
   35|   132M|    constexpr base_blob() : m_data() {}
_ZN9base_blobILj256EEC2E4SpanIKhE:
   41|  5.14k|    {
   42|  5.14k|        assert(vch.size() == WIDTH);
   43|  5.14k|        std::copy(vch.begin(), vch.end(), m_data.begin());
   44|  5.14k|    }
_ZZNK9base_blobILj256EE6IsNullEvENKUlhE_clEh:
   50|  2.49k|        return std::all_of(m_data.begin(), m_data.end(), [](uint8_t val) {
   51|  2.49k|            return val == 0;
   52|  2.49k|        });
_ZN9base_blobILj256EEC2Eh:
   38|  4.99k|    constexpr explicit base_blob(uint8_t v) : m_data{v} {}
_ZNK9base_blobILj256EE9SerializeI10HashWriterEEvRT_:
  127|   132M|    {
  128|   132M|        s << Span(m_data);
  129|   132M|    }
_ZNK9base_blobILj256EE9SerializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  127|  4.99k|    {
  128|  4.99k|        s << Span(m_data);
  129|  4.99k|    }
_ZN9base_blobILj256EE11UnserializeI12ParamsStreamIR10DataStreamN8CAddress9SerParamsEEEEvRT_:
  133|  4.99k|    {
  134|  4.99k|        s.read(MakeWritableByteSpan(m_data));
  135|  4.99k|    }

_ZN8UniValueC2Ev:
   31|  4.99k|    UniValue() { typ = VNULL; }
_ZNK8UniValue6isNullEv:
   79|  4.99k|    bool isNull() const { return (typ == VNULL); }

_Z9InterpretRKNSt3__16vectorIbNS_9allocatorIbEEEES5_:
   89|  10.4M|{
   90|  10.4M|    std::vector<bool>::const_iterator pos = asmap.begin();
   91|  10.4M|    const std::vector<bool>::const_iterator endpos = asmap.end();
   92|  10.4M|    uint8_t bits = ip.size();
   93|  10.4M|    uint32_t default_asn = 0;
   94|  10.4M|    uint32_t jump, match, matchlen;
   95|  10.4M|    Instruction opcode;
   96|  19.7M|    while (pos != endpos) {
  ------------------
  |  Branch (96:12): [True: 19.7M, False: 0]
  ------------------
   97|  19.7M|        opcode = DecodeType(pos, endpos);
   98|  19.7M|        if (opcode == Instruction::RETURN) {
  ------------------
  |  Branch (98:13): [True: 7.35M, False: 12.3M]
  ------------------
   99|  7.35M|            default_asn = DecodeASN(pos, endpos);
  100|  7.35M|            if (default_asn == INVALID) break; // ASN straddles EOF
  ------------------
  |  Branch (100:17): [True: 0, False: 7.35M]
  ------------------
  101|  7.35M|            return default_asn;
  102|  12.3M|        } else if (opcode == Instruction::JUMP) {
  ------------------
  |  Branch (102:20): [True: 3.93M, False: 8.46M]
  ------------------
  103|  3.93M|            jump = DecodeJump(pos, endpos);
  104|  3.93M|            if (jump == INVALID) break; // Jump offset straddles EOF
  ------------------
  |  Branch (104:17): [True: 0, False: 3.93M]
  ------------------
  105|  3.93M|            if (bits == 0) break; // No input bits left
  ------------------
  |  Branch (105:17): [True: 0, False: 3.93M]
  ------------------
  106|  3.93M|            if (int64_t{jump} >= int64_t{endpos - pos}) break; // Jumping past EOF
  ------------------
  |  Branch (106:17): [True: 0, False: 3.93M]
  ------------------
  107|  3.93M|            if (ip[ip.size() - bits]) {
  ------------------
  |  Branch (107:17): [True: 1.22M, False: 2.70M]
  ------------------
  108|  1.22M|                pos += jump;
  109|  1.22M|            }
  110|  3.93M|            bits--;
  111|  8.46M|        } else if (opcode == Instruction::MATCH) {
  ------------------
  |  Branch (111:20): [True: 5.41M, False: 3.04M]
  ------------------
  112|  5.41M|            match = DecodeMatch(pos, endpos);
  113|  5.41M|            if (match == INVALID) break; // Match bits straddle EOF
  ------------------
  |  Branch (113:17): [True: 0, False: 5.41M]
  ------------------
  114|  5.41M|            matchlen = std::bit_width(match) - 1;
  115|  5.41M|            if (bits < matchlen) break; // Not enough input bits
  ------------------
  |  Branch (115:17): [True: 0, False: 5.41M]
  ------------------
  116|  10.8M|            for (uint32_t bit = 0; bit < matchlen; bit++) {
  ------------------
  |  Branch (116:36): [True: 8.46M, False: 2.34M]
  ------------------
  117|  8.46M|                if ((ip[ip.size() - bits]) != ((match >> (matchlen - 1 - bit)) & 1)) {
  ------------------
  |  Branch (117:21): [True: 3.07M, False: 5.38M]
  ------------------
  118|  3.07M|                    return default_asn;
  119|  3.07M|                }
  120|  5.38M|                bits--;
  121|  5.38M|            }
  122|  5.41M|        } else if (opcode == Instruction::DEFAULT) {
  ------------------
  |  Branch (122:20): [True: 3.04M, False: 0]
  ------------------
  123|  3.04M|            default_asn = DecodeASN(pos, endpos);
  124|  3.04M|            if (default_asn == INVALID) break; // ASN straddles EOF
  ------------------
  |  Branch (124:17): [True: 0, False: 3.04M]
  ------------------
  125|  3.04M|        } else {
  126|      0|            break; // Instruction straddles EOF
  127|      0|        }
  128|  19.7M|    }
  129|      0|    assert(false); // Reached EOF without RETURN, or aborted (see any of the breaks above) - should have been caught by SanityCheckASMap below
  130|      0|    return 0; // 0 is not a valid ASN
  131|      0|}
_Z16SanityCheckASMapRKNSt3__16vectorIbNS_9allocatorIbEEEEi:
  134|  2.49k|{
  135|  2.49k|    const std::vector<bool>::const_iterator begin = asmap.begin(), endpos = asmap.end();
  136|  2.49k|    std::vector<bool>::const_iterator pos = begin;
  137|  2.49k|    std::vector<std::pair<uint32_t, int>> jumps; // All future positions we may jump to (bit offset in asmap -> bits to consume left)
  138|  2.49k|    jumps.reserve(bits);
  139|  2.49k|    Instruction prevopcode = Instruction::JUMP;
  140|  2.49k|    bool had_incomplete_match = false;
  141|  15.1k|    while (pos != endpos) {
  ------------------
  |  Branch (141:12): [True: 14.4k, False: 724]
  ------------------
  142|  14.4k|        uint32_t offset = pos - begin;
  143|  14.4k|        if (!jumps.empty() && offset >= jumps.back().first) return false; // There was a jump into the middle of the previous instruction
  ------------------
  |  Branch (143:13): [True: 4.34k, False: 10.1k]
  |  Branch (143:31): [True: 6, False: 4.33k]
  ------------------
  144|  14.4k|        Instruction opcode = DecodeType(pos, endpos);
  145|  14.4k|        if (opcode == Instruction::RETURN) {
  ------------------
  |  Branch (145:13): [True: 4.39k, False: 10.0k]
  ------------------
  146|  4.39k|            if (prevopcode == Instruction::DEFAULT) return false; // There should not be any RETURN immediately after a DEFAULT (could be combined into just RETURN)
  ------------------
  |  Branch (146:17): [True: 87, False: 4.31k]
  ------------------
  147|  4.31k|            uint32_t asn = DecodeASN(pos, endpos);
  148|  4.31k|            if (asn == INVALID) return false; // ASN straddles EOF
  ------------------
  |  Branch (148:17): [True: 46, False: 4.26k]
  ------------------
  149|  4.26k|            if (jumps.empty()) {
  ------------------
  |  Branch (149:17): [True: 1.21k, False: 3.05k]
  ------------------
  150|       |                // Nothing to execute anymore
  151|  1.21k|                if (endpos - pos > 7) return false; // Excessive padding
  ------------------
  |  Branch (151:21): [True: 306, False: 909]
  ------------------
  152|  2.73k|                while (pos != endpos) {
  ------------------
  |  Branch (152:24): [True: 1.84k, False: 895]
  ------------------
  153|  1.84k|                    if (*pos) return false; // Nonzero padding bit
  ------------------
  |  Branch (153:25): [True: 14, False: 1.83k]
  ------------------
  154|  1.83k|                    ++pos;
  155|  1.83k|                }
  156|    895|                return true; // Sanely reached EOF
  157|  3.05k|            } else {
  158|       |                // Continue by pretending we jumped to the next instruction
  159|  3.05k|                offset = pos - begin;
  160|  3.05k|                if (offset != jumps.back().first) return false; // Unreachable code
  ------------------
  |  Branch (160:21): [True: 86, False: 2.96k]
  ------------------
  161|  2.96k|                bits = jumps.back().second; // Restore the number of bits we would have had left after this jump
  162|  2.96k|                jumps.pop_back();
  163|  2.96k|                prevopcode = Instruction::JUMP;
  164|  2.96k|            }
  165|  10.0k|        } else if (opcode == Instruction::JUMP) {
  ------------------
  |  Branch (165:20): [True: 3.30k, False: 6.75k]
  ------------------
  166|  3.30k|            uint32_t jump = DecodeJump(pos, endpos);
  167|  3.30k|            if (jump == INVALID) return false; // Jump offset straddles EOF
  ------------------
  |  Branch (167:17): [True: 27, False: 3.28k]
  ------------------
  168|  3.28k|            if (int64_t{jump} > int64_t{endpos - pos}) return false; // Jump out of range
  ------------------
  |  Branch (168:17): [True: 93, False: 3.18k]
  ------------------
  169|  3.18k|            if (bits == 0) return false; // Consuming bits past the end of the input
  ------------------
  |  Branch (169:17): [True: 1, False: 3.18k]
  ------------------
  170|  3.18k|            --bits;
  171|  3.18k|            uint32_t jump_offset = pos - begin + jump;
  172|  3.18k|            if (!jumps.empty() && jump_offset >= jumps.back().first) return false; // Intersecting jumps
  ------------------
  |  Branch (172:17): [True: 398, False: 2.78k]
  |  Branch (172:35): [True: 29, False: 369]
  ------------------
  173|  3.15k|            jumps.emplace_back(jump_offset, bits);
  174|  3.15k|            prevopcode = Instruction::JUMP;
  175|  6.75k|        } else if (opcode == Instruction::MATCH) {
  ------------------
  |  Branch (175:20): [True: 3.48k, False: 3.26k]
  ------------------
  176|  3.48k|            uint32_t match = DecodeMatch(pos, endpos);
  177|  3.48k|            if (match == INVALID) return false; // Match bits straddle EOF
  ------------------
  |  Branch (177:17): [True: 50, False: 3.43k]
  ------------------
  178|  3.43k|            int matchlen = std::bit_width(match) - 1;
  179|  3.43k|            if (prevopcode != Instruction::MATCH) had_incomplete_match = false;
  ------------------
  |  Branch (179:17): [True: 3.24k, False: 188]
  ------------------
  180|  3.43k|            if (matchlen < 8 && had_incomplete_match) return false; // Within a sequence of matches only at most one should be incomplete
  ------------------
  |  Branch (180:17): [True: 3.27k, False: 158]
  |  Branch (180:33): [True: 44, False: 3.23k]
  ------------------
  181|  3.39k|            had_incomplete_match = (matchlen < 8);
  182|  3.39k|            if (bits < matchlen) return false; // Consuming bits past the end of the input
  ------------------
  |  Branch (182:17): [True: 3, False: 3.38k]
  ------------------
  183|  3.38k|            bits -= matchlen;
  184|  3.38k|            prevopcode = Instruction::MATCH;
  185|  3.38k|        } else if (opcode == Instruction::DEFAULT) {
  ------------------
  |  Branch (185:20): [True: 3.25k, False: 7]
  ------------------
  186|  3.25k|            if (prevopcode == Instruction::DEFAULT) return false; // There should not be two successive DEFAULTs (they could be combined into one)
  ------------------
  |  Branch (186:17): [True: 32, False: 3.22k]
  ------------------
  187|  3.22k|            uint32_t asn = DecodeASN(pos, endpos);
  188|  3.22k|            if (asn == INVALID) return false; // ASN straddles EOF
  ------------------
  |  Branch (188:17): [True: 49, False: 3.17k]
  ------------------
  189|  3.17k|            prevopcode = Instruction::DEFAULT;
  190|  3.17k|        } else {
  191|      7|            return false; // Instruction straddles EOF
  192|      7|        }
  193|  14.4k|    }
  194|    724|    return false; // Reached EOF without RETURN instruction
  195|  2.49k|}
asmap.cpp:_ZN12_GLOBAL__N_110DecodeTypeERNSt3__114__bit_iteratorINS0_6vectorIbNS0_9allocatorIbEEEELb1ELm0EEERKS6_:
   62|  19.7M|{
   63|  19.7M|    return Instruction(DecodeBits(bitpos, endpos, 0, TYPE_BIT_SIZES));
   64|  19.7M|}
asmap.cpp:_ZN12_GLOBAL__N_110DecodeBitsERNSt3__114__bit_iteratorINS0_6vectorIbNS0_9allocatorIbEEEELb1ELm0EEERKS6_hRKNS2_IhNS3_IhEEEE:
   25|  39.5M|{
   26|  39.5M|    uint32_t val = minval;
   27|  39.5M|    bool bit;
   28|  39.5M|    for (std::vector<uint8_t>::const_iterator bit_sizes_it = bit_sizes.begin();
   29|  91.2M|        bit_sizes_it != bit_sizes.end(); ++bit_sizes_it) {
  ------------------
  |  Branch (29:9): [True: 91.2M, False: 0]
  ------------------
   30|  91.2M|        if (bit_sizes_it + 1 != bit_sizes.end()) {
  ------------------
  |  Branch (30:13): [True: 82.1M, False: 9.11M]
  ------------------
   31|  82.1M|            if (bitpos == endpos) break;
  ------------------
  |  Branch (31:17): [True: 34, False: 82.1M]
  ------------------
   32|  82.1M|            bit = *bitpos;
   33|  82.1M|            bitpos++;
   34|  82.1M|        } else {
   35|  9.11M|            bit = 0;
   36|  9.11M|        }
   37|  91.2M|        if (bit) {
  ------------------
  |  Branch (37:13): [True: 51.7M, False: 39.5M]
  ------------------
   38|  51.7M|            val += (1 << *bit_sizes_it);
   39|  51.7M|        } else {
   40|   260M|            for (int b = 0; b < *bit_sizes_it; b++) {
  ------------------
  |  Branch (40:29): [True: 220M, False: 39.5M]
  ------------------
   41|   220M|                if (bitpos == endpos) return INVALID; // Reached EOF in mantissa
  ------------------
  |  Branch (41:21): [True: 145, False: 220M]
  ------------------
   42|   220M|                bit = *bitpos;
   43|   220M|                bitpos++;
   44|   220M|                val += bit << (*bit_sizes_it - 1 - b);
   45|   220M|            }
   46|  39.5M|            return val;
   47|  39.5M|        }
   48|  91.2M|    }
   49|     34|    return INVALID; // Reached EOF in exponent
   50|  39.5M|}
asmap.cpp:_ZN12_GLOBAL__N_19DecodeASNERNSt3__114__bit_iteratorINS0_6vectorIbNS0_9allocatorIbEEEELb1ELm0EEERKS6_:
   68|  10.4M|{
   69|  10.4M|    return DecodeBits(bitpos, endpos, 1, ASN_BIT_SIZES);
   70|  10.4M|}
asmap.cpp:_ZN12_GLOBAL__N_110DecodeJumpERNSt3__114__bit_iteratorINS0_6vectorIbNS0_9allocatorIbEEEELb1ELm0EEERKS6_:
   82|  3.93M|{
   83|  3.93M|    return DecodeBits(bitpos, endpos, 17, JUMP_BIT_SIZES);
   84|  3.93M|}
asmap.cpp:_ZN12_GLOBAL__N_111DecodeMatchERNSt3__114__bit_iteratorINS0_6vectorIbNS0_9allocatorIbEEEELb1ELm0EEERKS6_:
   75|  5.42M|{
   76|  5.42M|    return DecodeBits(bitpos, endpos, 2, MATCH_BIT_SIZES);
   77|  5.42M|}

_Z17ChainTypeToString9ChainType:
   12|  4.99k|{
   13|  4.99k|    switch (chain) {
  ------------------
  |  Branch (13:13): [True: 0, False: 4.99k]
  ------------------
   14|  4.99k|    case ChainType::MAIN:
  ------------------
  |  Branch (14:5): [True: 4.99k, False: 0]
  ------------------
   15|  4.99k|        return "main";
   16|      0|    case ChainType::TESTNET:
  ------------------
  |  Branch (16:5): [True: 0, False: 4.99k]
  ------------------
   17|      0|        return "test";
   18|      0|    case ChainType::TESTNET4:
  ------------------
  |  Branch (18:5): [True: 0, False: 4.99k]
  ------------------
   19|      0|        return "testnet4";
   20|      0|    case ChainType::SIGNET:
  ------------------
  |  Branch (20:5): [True: 0, False: 4.99k]
  ------------------
   21|      0|        return "signet";
   22|      0|    case ChainType::REGTEST:
  ------------------
  |  Branch (22:5): [True: 0, False: 4.99k]
  ------------------
   23|      0|        return "regtest";
   24|  4.99k|    }
   25|      0|    assert(false);
   26|      0|}

_Z22inline_assertion_checkILb0EbEOT0_S1_PKciS3_S3_:
   52|   119M|{
   53|   119M|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|   119M|    ) {
   58|   119M|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 119M]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|   119M|    }
   62|   119M|    return std::forward<T>(val);
   63|   119M|}
_Z22inline_assertion_checkILb1EbEOT0_S1_PKciS3_S3_:
   52|  7.49k|{
   53|  7.49k|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|  7.49k|    ) {
   58|  7.49k|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 7.49k]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|  7.49k|    }
   62|  7.49k|    return std::forward<T>(val);
   63|  7.49k|}
_Z22inline_assertion_checkILb1ERPKNSt3__18functionIFvNS0_4spanIKhLm18446744073709551615EEEEEEEOT0_SB_PKciSD_SD_:
   52|  2.49k|{
   53|  2.49k|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|  2.49k|    ) {
   58|  2.49k|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 2.49k]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|  2.49k|    }
   62|  2.49k|    return std::forward<T>(val);
   63|  2.49k|}
_Z22inline_assertion_checkILb1ERNSt3__16atomicIbEEEOT0_S5_PKciS7_S7_:
   52|  2.49k|{
   53|  2.49k|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|  2.49k|    ) {
   58|  2.49k|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 2.49k]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|  2.49k|    }
   62|  2.49k|    return std::forward<T>(val);
   63|  2.49k|}

_Z16AdditionOverflowImEbT_S0_:
   16|   192M|{
   17|   192M|    static_assert(std::is_integral<T>::value, "Integral required.");
   18|       |    if constexpr (std::numeric_limits<T>::is_signed) {
   19|       |        return (i > 0 && j > std::numeric_limits<T>::max() - i) ||
   20|       |               (i < 0 && j < std::numeric_limits<T>::min() - i);
   21|       |    }
   22|   192M|    return std::numeric_limits<T>::max() - i < j;
   23|   192M|}
_Z10CheckedAddImENSt3__18optionalIT_EES2_S2_:
   27|   192M|{
   28|   192M|    if (AdditionOverflow(i, j)) {
  ------------------
  |  Branch (28:9): [True: 0, False: 192M]
  ------------------
   29|      0|        return std::nullopt;
   30|      0|    }
   31|   192M|    return i + j;
   32|   192M|}

_Z10ToIntegralIhENSt3__18optionalIT_EENS0_17basic_string_viewIcNS0_11char_traitsIcEEEE:
  180|     10|{
  181|     10|    static_assert(std::is_integral<T>::value);
  182|     10|    T result;
  183|     10|    const auto [first_nonmatching, error_condition] = std::from_chars(str.data(), str.data() + str.size(), result);
  184|     10|    if (first_nonmatching != str.data() + str.size() || error_condition != std::errc{}) {
  ------------------
  |  Branch (184:9): [True: 0, False: 10]
  |  Branch (184:57): [True: 0, False: 10]
  ------------------
  185|      0|        return std::nullopt;
  186|      0|    }
  187|     10|    return result;
  188|     10|}
_Z10ToIntegralItENSt3__18optionalIT_EENS0_17basic_string_viewIcNS0_11char_traitsIcEEEE:
  180|      2|{
  181|      2|    static_assert(std::is_integral<T>::value);
  182|      2|    T result;
  183|      2|    const auto [first_nonmatching, error_condition] = std::from_chars(str.data(), str.data() + str.size(), result);
  184|      2|    if (first_nonmatching != str.data() + str.size() || error_condition != std::errc{}) {
  ------------------
  |  Branch (184:9): [True: 0, False: 2]
  |  Branch (184:57): [True: 0, False: 2]
  ------------------
  185|      0|        return std::nullopt;
  186|      0|    }
  187|      2|    return result;
  188|      2|}

_ZN4util9HasPrefixI9prevectorILj16EhjiELm6EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|  15.9M|{
  248|  15.9M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 15.9M, False: 0]
  ------------------
  249|  15.9M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 707, False: 15.9M]
  ------------------
  250|  15.9M|}
_ZN4util9HasPrefixI9prevectorILj16EhjiELm12EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|  85.8M|{
  248|  85.8M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 85.8M, False: 0]
  ------------------
  249|  85.8M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 37.1k, False: 85.7M]
  ------------------
  250|  85.8M|}
_ZN4util9HasPrefixI9prevectorILj16EhjiELm2EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|   137M|{
  248|   137M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 137M, False: 0]
  ------------------
  249|   137M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 26.2k, False: 137M]
  ------------------
  250|   137M|}
_ZN4util9HasPrefixI9prevectorILj16EhjiELm3EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|   495M|{
  248|   495M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 495M, False: 0]
  ------------------
  249|   495M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 121k, False: 495M]
  ------------------
  250|   495M|}
_ZN4util9HasPrefixI9prevectorILj16EhjiELm4EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|   156M|{
  248|   156M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 156M, False: 0]
  ------------------
  249|   156M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 17.7k, False: 156M]
  ------------------
  250|   156M|}
_ZN4util9HasPrefixI9prevectorILj16EhjiELm8EEEbRKT_RKNSt3__15arrayIhXT0_EEE:
  247|  99.8M|{
  248|  99.8M|    return obj.size() >= PREFIX_LEN &&
  ------------------
  |  Branch (248:12): [True: 99.8M, False: 0]
  ------------------
  249|  99.8M|           std::equal(std::begin(prefix), std::end(prefix), std::begin(obj));
  ------------------
  |  Branch (249:12): [True: 14.4k, False: 99.8M]
  ------------------
  250|  99.8M|}

_ZN9NodeClock3nowEv:
   27|  11.4M|{
   28|  11.4M|    const auto mocktime{g_mock_time.load(std::memory_order_relaxed)};
   29|  11.4M|    if (!mocktime.count()) {
  ------------------
  |  Branch (29:9): [True: 0, False: 11.4M]
  ------------------
   30|      0|        g_used_system_time = true;
   31|      0|    }
   32|  11.4M|    const auto ret{
   33|  11.4M|        mocktime.count() ?
  ------------------
  |  Branch (33:9): [True: 11.4M, False: 0]
  ------------------
   34|  11.4M|            mocktime :
   35|  11.4M|            std::chrono::system_clock::now().time_since_epoch()};
   36|  11.4M|    assert(ret > 0s);
   37|  11.4M|    return time_point{ret};
   38|  11.4M|};
_Z11SetMockTimel:
   40|  2.49k|void SetMockTime(int64_t nMockTimeIn) { SetMockTime(std::chrono::seconds{nMockTimeIn}); }
_Z11SetMockTimeNSt3__16chrono8durationIxNS_5ratioILl1ELl1EEEEE:
   42|  4.99k|{
   43|  4.99k|    Assert(mock_time_in >= 0s);
  ------------------
  |  |   85|  4.99k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   44|  4.99k|    g_mock_time.store(mock_time_in, std::memory_order_relaxed);
   45|  4.99k|}
_Z20ParseISO8601DateTimeNSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
   96|      2|{
   97|      2|    constexpr auto FMT_SIZE{std::string_view{"2000-01-01T01:01:01Z"}.size()};
   98|      2|    if (str.size() != FMT_SIZE || str[4] != '-' || str[7] != '-' || str[10] != 'T' || str[13] != ':' || str[16] != ':' || str[19] != 'Z') {
  ------------------
  |  Branch (98:9): [True: 0, False: 2]
  |  Branch (98:35): [True: 0, False: 2]
  |  Branch (98:52): [True: 0, False: 2]
  |  Branch (98:69): [True: 0, False: 2]
  |  Branch (98:87): [True: 0, False: 2]
  |  Branch (98:105): [True: 0, False: 2]
  |  Branch (98:123): [True: 0, False: 2]
  ------------------
   99|      0|        return {};
  100|      0|    }
  101|      2|    const auto year{ToIntegral<uint16_t>(str.substr(0, 4))};
  102|      2|    const auto month{ToIntegral<uint8_t>(str.substr(5, 2))};
  103|      2|    const auto day{ToIntegral<uint8_t>(str.substr(8, 2))};
  104|      2|    const auto hour{ToIntegral<uint8_t>(str.substr(11, 2))};
  105|      2|    const auto min{ToIntegral<uint8_t>(str.substr(14, 2))};
  106|      2|    const auto sec{ToIntegral<uint8_t>(str.substr(17, 2))};
  107|      2|    if (!year || !month || !day || !hour || !min || !sec) {
  ------------------
  |  Branch (107:9): [True: 0, False: 2]
  |  Branch (107:18): [True: 0, False: 2]
  |  Branch (107:28): [True: 0, False: 2]
  |  Branch (107:36): [True: 0, False: 2]
  |  Branch (107:45): [True: 0, False: 2]
  |  Branch (107:53): [True: 0, False: 2]
  ------------------
  108|      0|        return {};
  109|      0|    }
  110|      2|    const std::chrono::year_month_day ymd{std::chrono::year{*year}, std::chrono::month{*month}, std::chrono::day{*day}};
  111|      2|    if (!ymd.ok()) {
  ------------------
  |  Branch (111:9): [True: 0, False: 2]
  ------------------
  112|      0|        return {};
  113|      0|    }
  114|      2|    const auto time{std::chrono::hours{*hour} + std::chrono::minutes{*min} + std::chrono::seconds{*sec}};
  115|      2|    const auto tp{std::chrono::sys_days{ymd} + time};
  116|      2|    return int64_t{TicksSinceEpoch<std::chrono::seconds>(tp)};
  117|      2|}

_Z15TicksSinceEpochINSt3__16chrono8durationIxNS0_5ratioILl1ELl1EEEEENS1_10time_pointI9NodeClockS5_EEEDaT0_:
   78|  39.2M|{
   79|  39.2M|    return Ticks<Duration>(t.time_since_epoch());
   80|  39.2M|}
_Z5TicksINSt3__16chrono8durationIxNS0_5ratioILl1ELl1EEEEES5_EDaT0_:
   73|  39.2M|{
   74|  39.2M|    return std::chrono::duration_cast<Dur1>(d).count();
   75|  39.2M|}
_Z3NowINSt3__16chrono10time_pointI9NodeClockNS1_8durationIxNS0_5ratioILl1ELl1EEEEEEEET_v:
  119|  9.80M|{
  120|  9.80M|    return std::chrono::time_point_cast<typename T::duration>(T::clock::now());
  121|  9.80M|}
_Z5TicksINSt3__16chrono8durationIdNS0_5ratioILl1ELl1000EEEEENS2_IxNS3_ILl1ELl1000000000EEEEEEDaT0_:
   73|  2.49k|{
   74|  2.49k|    return std::chrono::duration_cast<Dur1>(d).count();
   75|  2.49k|}
_Z15TicksSinceEpochINSt3__16chrono8durationIxNS0_5ratioILl1ELl1EEEEENS1_10time_pointINS1_12system_clockES5_EEEDaT0_:
   78|      2|{
   79|      2|    return Ticks<Duration>(t.time_since_epoch());
   80|      2|}

_ZN12TokenPipeEndD2Ev:
   34|      4|{
   35|      4|    Close();
   36|      4|}
_ZN12TokenPipeEnd5CloseEv:
   77|      4|{
   78|      4|    if (m_fd != -1) close(m_fd);
  ------------------
  |  Branch (78:9): [True: 4, False: 0]
  ------------------
   79|      4|    m_fd = -1;
   80|      4|}

