LLVMFuzzerTestOneInput:
    9|  3.49k|{
   10|  3.49k|    std::string s(reinterpret_cast<const char*>(data), size);
   11|  3.49k|    std::istringstream is(s);
   12|       |
   13|  3.49k|    std::string s2;
   14|  3.49k|    csv_string_encoder visitor(s2);
   15|  3.49k|    csv_stream_reader reader(is, visitor);
   16|  3.49k|    std::error_code ec;
   17|  3.49k|    reader.read(ec);
   18|       |
   19|  3.49k|    return 0;
   20|  3.49k|}

_ZN8jsoncons28string_view_constant_of_typeIcEENSt3__117basic_string_viewIT_NS1_11char_traitsIS3_EEEEPKcPKw:
  252|  13.9k|    {
  253|  13.9k|        return jsoncons::string_view(c);
  254|  13.9k|    }

_ZN8jsoncons15make_error_codeENS_9json_errcE:
  147|     13|    {
  148|     13|        return std::error_code(static_cast<int>(result),json_error_category());
  149|     13|    }
_ZN8jsoncons19json_error_categoryEv:
  141|     13|    {
  142|     13|      static json_error_category_impl instance;
  143|     13|      return instance;
  144|     13|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  10.4k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  30.6k|        {
  415|  30.6k|            visit_uint64(value, tag, context, ec);
  416|  30.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  30.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  30.6k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   153k|        {
  352|   153k|            visit_end_array(context, ec);
  353|   153k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   153k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   153k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  10.2k|        {
  424|  10.2k|            visit_int64(value, tag, context, ec);
  425|  10.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  10.2k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  89.1k|        {
  442|  89.1k|            visit_double(value, tag, context, ec);
  443|  89.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  89.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  89.1k|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  10.4k|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  3.49k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  2.46k|        {
  366|  2.46k|            visit_null(tag, context, ec);
  367|  2.46k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.46k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  2.46k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  12.3M|        {
  384|  12.3M|            visit_string(value, tag, context, ec);
  385|  12.3M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  12.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  12.3M|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  7.24k|        {
  375|  7.24k|            visit_bool(value, tag, context, ec);
  376|  7.24k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.24k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  7.24k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  3.44k|        {
  109|  3.44k|            visit_flush();
  110|  3.44k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|   154k|        {
  340|   154k|            visit_begin_array(tag, context, ec);
  341|   154k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   154k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|   154k|        }

_ZN8jsoncons6nonstd4spanIKcLm18446744073709551615EEC2Ev:
   99|  20.1k|    {
  100|  20.1k|    }
_ZN8jsoncons6nonstd4spanIKcLm18446744073709551615EEC2EPS2_m:
  102|  12.9k|        : data_(data), size_(size)
  103|  12.9k|    {
  104|  12.9k|    }
_ZNK8jsoncons6nonstd4spanIKcLm18446744073709551615EE4sizeEv:
  159|  39.5k|    {
  160|  39.5k|        return size_;
  161|  39.5k|    }
_ZNK8jsoncons6nonstd4spanIKcLm18446744073709551615EE4dataEv:
  154|  12.9k|    {
  155|  12.9k|        return data_;
  156|  12.9k|    }

_ZN8jsoncons11ser_contextD2Ev:
   21|  3.49k|    virtual ~ser_context() = default;

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  3.49k|            : buf_ptr(std::addressof(buf))
  257|  3.49k|        {
  258|  3.49k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2EOS8_:
  251|  3.49k|        {
  252|  3.49k|            std::swap(buf_ptr,other.buf_ptr);
  253|  3.49k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  12.3M|        {
  288|  12.3M|            buf_ptr->push_back(ch);
  289|  12.3M|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE6appendEPKcm:
  277|  12.6M|        {
  278|  12.6M|            buf_ptr->append(s, length);
  279|  12.6M|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5flushEv:
  273|  6.93k|        {
  274|  6.93k|        }

_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEED2Ev:
  193|  3.49k|    {
  194|  3.49k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 3.49k, False: 0]
  ------------------
  195|  3.49k|        {
  196|  3.49k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  3.49k|        }
  198|  3.49k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  3.49k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  3.49k|          chunk_size_(default_max_chunk_size)
  178|  3.49k|    {
  179|  3.49k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  3.49k|        data_end_ = chunk_;
  181|  3.49k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  3.49k|      : std::basic_istream<CharT>(&nb_)
   58|  3.49k|    {
   59|  3.49k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  3.49k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE8is_errorEv:
  276|  3.49k|    {
  277|  3.49k|        return stream_ptr_->bad();  
  278|  3.49k|    }
_ZNK8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE3eofEv:
  271|  26.5k|    {
  272|  26.5k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 26.5k, False: 0]
  |  Branch (272:35): [True: 20.0k, False: 6.49k]
  ------------------
  273|  26.5k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE10read_chunkEv:
  330|  6.49k|    {
  331|  6.49k|        if (remaining_ == 0)
  ------------------
  |  Branch (331:13): [True: 6.49k, False: 0]
  ------------------
  332|  6.49k|        {
  333|  6.49k|            data_end_ = chunk_;
  334|  6.49k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  335|  6.49k|        }
  336|  6.49k|        const value_type* data = data_end_;
  337|  6.49k|        std::size_t length = remaining_;
  338|  6.49k|        data_end_ += remaining_;
  339|  6.49k|        position_ += remaining_;
  340|  6.49k|        remaining_ = 0;
  341|       |
  342|  6.49k|        return span<const value_type>(data, length);
  343|  6.49k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE11fill_bufferEPcm:
  442|  6.49k|    {
  443|  6.49k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 0, False: 6.49k]
  ------------------
  444|      0|        {
  445|      0|            return 0;
  446|      0|        }
  447|       |
  448|  6.49k|        JSONCONS_TRY
  ------------------
  |  |   37|  6.49k|    #define JSONCONS_TRY try
  ------------------
  449|  6.49k|        {
  450|  6.49k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  6.49k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  6.49k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 3.49k, False: 3.00k]
  ------------------
  454|  3.49k|            {
  455|  3.49k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  3.49k|            }
  457|  6.49k|            return length;
  458|  6.49k|        }
  459|  6.49k|        JSONCONS_CATCH(const std::exception&)     
  460|  6.49k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  6.49k|    }

_ZN8jsoncons19text_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEEC2IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_:
   38|  3.49k|            : source_(std::forward<Sourceable>(source)), bof_(true)
   39|  3.49k|        {
   40|  3.49k|        }
_ZNK8jsoncons19text_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEE8is_errorEv:
   48|  3.49k|        {
   49|  3.49k|            return source_.is_error();  
   50|  3.49k|        }
_ZN8jsoncons19text_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEE10read_chunkERNS2_10error_codeE:
   53|  26.5k|        {
   54|  26.5k|            if (source_.eof())
  ------------------
  |  Branch (54:17): [True: 20.0k, False: 6.49k]
  ------------------
   55|  20.0k|            {
   56|  20.0k|                return span<const value_type>();
   57|  20.0k|            }
   58|       |
   59|  6.49k|            auto s = source_.read_chunk();
   60|  6.49k|            const value_type* data = s.data();
   61|  6.49k|            std::size_t length = s.size();
   62|       |
   63|  6.49k|            if (bof_ && length > 0)
  ------------------
  |  Branch (63:17): [True: 3.49k, False: 2.99k]
  |  Branch (63:25): [True: 3.49k, False: 0]
  ------------------
   64|  3.49k|            {
   65|  3.49k|                auto r = unicode_traits::detect_encoding_from_bom(data, length);
   66|  3.49k|                if (!(r.encoding == unicode_traits::encoding_kind::utf8 || r.encoding == unicode_traits::encoding_kind::undetected))
  ------------------
  |  Branch (66:23): [True: 1, False: 3.49k]
  |  Branch (66:76): [True: 3.47k, False: 13]
  ------------------
   67|     13|                {
   68|     13|                    ec = json_errc::illegal_unicode_character;
   69|     13|                    return span<const value_type>();
   70|     13|                }
   71|  3.47k|                length -= (r.ptr - data);
   72|  3.47k|                data = r.ptr;
   73|  3.47k|                bof_ = false;
   74|  3.47k|            }
   75|  6.47k|            return span<const value_type>(data, length);           
   76|  6.49k|        }

_ZN8jsoncons6detail6grisu3EdPcPiS2_:
  293|  80.2k|{
  294|  80.2k|    diy_fp_t w_m, w_p;
  295|  80.2k|    int q = 64, alpha = -59, gamma = -56;
  296|  80.2k|    normalized_boundaries(v, &w_m, &w_p);
  297|  80.2k|    diy_fp_t w = normalize_diy_fp(double2diy_fp(v));
  298|  80.2k|    int mk = k_comp(w_p.e + q, alpha, gamma);
  299|  80.2k|    diy_fp_t c_mk = cached_power(mk);
  300|  80.2k|    diy_fp_t W  = multiply(w,   c_mk);
  301|  80.2k|    diy_fp_t Wp = multiply(w_p, c_mk);
  302|  80.2k|    diy_fp_t Wm = multiply(w_m, c_mk);
  303|  80.2k|    *K = -mk;
  304|  80.2k|    bool result = digit_gen(Wm, W, Wp, buffer, length, K);
  305|  80.2k|    buffer[*length] = 0;
  306|  80.2k|    return result;
  307|  80.2k|}
_ZN8jsoncons6detail21normalized_boundariesEdPNS0_8diy_fp_tES2_:
  188|  80.2k|{
  189|  80.2k|    diy_fp_t v = double2diy_fp(d);
  190|  80.2k|    diy_fp_t pl, mi;
  191|  80.2k|    bool significand_is_zero = v.f == dp_hidden_bit;
  192|  80.2k|    pl.f  = (v.f << 1) + 1; pl.e  = v.e - 1;
  193|  80.2k|    pl = normalize_boundary(pl);
  194|  80.2k|    if (significand_is_zero)
  ------------------
  |  Branch (194:9): [True: 1.31k, False: 78.9k]
  ------------------
  195|  1.31k|    {
  196|  1.31k|        mi.f = (v.f << 2) - 1;
  197|  1.31k|        mi.e = v.e - 2;
  198|  1.31k|    } else
  199|  78.9k|    {
  200|  78.9k|        mi.f = (v.f << 1) - 1;
  201|  78.9k|        mi.e = v.e - 1;
  202|  78.9k|    }
  203|  80.2k|    int x = mi.e - pl.e;
  204|  80.2k|    mi.f <<= x;
  205|  80.2k|    mi.e = pl.e;
  206|  80.2k|    *out_m_plus = pl;
  207|  80.2k|    *out_m_minus = mi;
  208|  80.2k|}
_ZN8jsoncons6detail18normalize_boundaryENS0_8diy_fp_tE:
  171|  80.2k|{
  172|  80.2k|    diy_fp_t res = in;
  173|       |    /* Normalize now */
  174|       |    /* the original number could have been a denormal. */
  175|   182k|    while (!(res.f & (dp_hidden_bit << 1)))
  ------------------
  |  Branch (175:12): [True: 102k, False: 80.2k]
  ------------------
  176|   102k|    {
  177|   102k|        res.f <<= 1;
  178|   102k|        res.e--;
  179|   102k|    }
  180|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  181|  80.2k|    res.f <<= (diy_significand_size - dp_significand_size - 2);
  182|  80.2k|    res.e = res.e - (diy_significand_size - dp_significand_size - 2);
  183|  80.2k|    return res;
  184|  80.2k|}
_ZN8jsoncons6detail16normalize_diy_fpENS0_8diy_fp_tE:
  134|  80.2k|{
  135|  80.2k|    diy_fp_t res = in;
  136|       |    /* Normalize now */
  137|       |    /* the original number could have been a denormal. */
  138|   182k|    while (!(res.f & dp_hidden_bit))
  ------------------
  |  Branch (138:12): [True: 102k, False: 80.2k]
  ------------------
  139|   102k|    {
  140|   102k|        res.f <<= 1;
  141|   102k|        res.e--;
  142|   102k|    }
  143|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  144|  80.2k|    res.f <<= (diy_significand_size - dp_significand_size - 1);
  145|  80.2k|    res.e = res.e - (diy_significand_size - dp_significand_size - 1);
  146|  80.2k|    return res;
  147|  80.2k|}
_ZN8jsoncons6detail13double2diy_fpEd:
  151|   160k|{
  152|   160k|    uint64_t d64 = double_to_uint64(d);
  153|   160k|    int biased_e = (d64 & dp_exponent_mask) >> dp_significand_size;
  154|   160k|    uint64_t significand = (d64 & dp_significand_mask);
  155|   160k|    diy_fp_t res;
  156|   160k|    if (biased_e != 0)
  ------------------
  |  Branch (156:9): [True: 155k, False: 4.85k]
  ------------------
  157|   155k|    {
  158|   155k|        res.f = significand + dp_hidden_bit;
  159|   155k|        res.e = biased_e - dp_exponent_bias;
  160|   155k|    } 
  161|  4.85k|    else
  162|  4.85k|    {
  163|  4.85k|        res.f = significand;
  164|  4.85k|        res.e = dp_min_exponent + 1;
  165|  4.85k|    }
  166|   160k|    return res;
  167|   160k|}
_ZN8jsoncons6detail16double_to_uint64Ed:
  120|   160k|uint64_t double_to_uint64(double d) {uint64_t d64; std::memcpy(&d64,&d,sizeof(double)); return d64; }
_ZN8jsoncons6detail6k_compEiii:
   82|  80.2k|{
   83|  80.2k|    constexpr double d_1_log2_10 = 0.30102999566398114; //  1 / lg(10)
   84|  80.2k|    int x = alpha - e + 63;
   85|  80.2k|    return static_cast<int>(std::ceil(x * d_1_log2_10));
   86|  80.2k|}
_ZN8jsoncons6detail12cached_powerEi:
   97|  80.2k|{
   98|  80.2k|    diy_fp_t res;
   99|  80.2k|    int index = 343 + k;
  100|  80.2k|    res.f = powers_ten[index];
  101|  80.2k|    res.e = powers_ten_e[index];
  102|  80.2k|    return res;
  103|  80.2k|}
_ZN8jsoncons6detail8multiplyENS0_8diy_fp_tES1_:
   65|   240k|{
   66|   240k|    uint64_t a, b, c, d, ac, bc, ad, bd, tmp;
   67|   240k|    diy_fp_t r; uint64_t M32 = 0xFFFFFFFF;
   68|   240k|    a = x.f >> 32; b = x.f & M32;
   69|   240k|    c = y.f >> 32; d = y.f & M32;
   70|   240k|    ac = a * c; bc = b * c; ad = a * d; bd = b * d;
   71|   240k|    tmp = (bd >> 32) + (ad & M32) + (bc & M32);
   72|   240k|    tmp += 1U << 31; /// mult_round
   73|   240k|    r.f = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   74|   240k|    r.e = x.e + y.e + 64;
   75|   240k|    return r;
   76|   240k|}
_ZN8jsoncons6detail9digit_genENS0_8diy_fp_tES1_S1_PcPiS3_:
  250|  80.2k|{
  251|  80.2k|    static constexpr uint32_t TEN2 = 100;
  252|       |
  253|  80.2k|    uint32_t div, p1; uint64_t p2, tmp, unit = 1;
  254|  80.2k|    int d, kappa;
  255|  80.2k|    diy_fp_t one, wp_W, Delta;
  256|  80.2k|    Delta = minus(Wp, Wm); Delta.f += 2 * unit;
  257|  80.2k|    wp_W = minus(Wp, W); wp_W.f += unit;
  258|  80.2k|    one.f = ((uint64_t)1) << -Wp.e; one.e = Wp.e;
  259|  80.2k|    p1 = static_cast<uint32_t>((Wp.f + 1) >> -one.e);
  260|  80.2k|    p2 = (Wp.f + 1) & (one.f - 1);
  261|  80.2k|    *len = 0; kappa = 3; div = TEN2;
  262|   197k|    while (kappa > 0)
  ------------------
  |  Branch (262:12): [True: 178k, False: 18.5k]
  ------------------
  263|   178k|    {
  264|   178k|        d = p1 / div;
  265|   178k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (265:13): [True: 98.2k, False: 80.5k]
  |  Branch (265:18): [True: 3.36k, False: 77.1k]
  ------------------
  266|   178k|        p1 %= div; kappa--;
  267|   178k|        tmp = (((uint64_t)p1) << -one.e) + p2;
  268|   178k|        if (tmp < Delta.f)
  ------------------
  |  Branch (268:13): [True: 61.7k, False: 117k]
  ------------------
  269|  61.7k|        {
  270|  61.7k|            *K += kappa;
  271|  61.7k|            return round_weed(buffer, *len, wp_W.f, Delta.f, tmp,
  272|  61.7k|                              ((uint64_t)div) << -one.e, unit);
  273|  61.7k|        }
  274|   117k|        div /= 10;
  275|   117k|    }
  276|   170k|    while (1)
  ------------------
  |  Branch (276:12): [True: 170k, Folded]
  ------------------
  277|   170k|    {
  278|   170k|        p2 *= 10; Delta.f *= 10; unit *= 10;
  279|   170k|        d = static_cast<int>(p2 >> -one.e);
  280|   170k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (280:13): [True: 153k, False: 16.7k]
  |  Branch (280:18): [True: 16.7k, False: 0]
  ------------------
  281|   170k|        p2 &= one.f - 1; kappa--;
  282|   170k|        if (p2 < Delta.f)
  ------------------
  |  Branch (282:13): [True: 18.5k, False: 151k]
  ------------------
  283|  18.5k|        {
  284|  18.5k|            *K += kappa;
  285|  18.5k|            return round_weed(buffer, *len, wp_W.f * unit, Delta.f, p2,
  286|  18.5k|                              one.f, unit);
  287|  18.5k|        }
  288|   170k|    }
  289|  18.5k|}
_ZN8jsoncons6detail5minusENS0_8diy_fp_tES1_:
   56|   160k|{
   57|   160k|    assert(x.e == y.e);
  ------------------
  |  Branch (57:5): [True: 160k, False: 0]
  ------------------
   58|   160k|    assert(x.f >= y.f);
  ------------------
  |  Branch (58:5): [True: 160k, False: 0]
  ------------------
   59|   160k|    diy_fp_t r = { x.f = x.f - y.f, x.e };
   60|   160k|    return r;
   61|   160k|}
_ZN8jsoncons6detail10round_weedEPcimmmmm:
  230|  80.2k|{
  231|  80.2k|    uint64_t wp_Wup = wp_W - ulp;
  232|  80.2k|    uint64_t wp_Wdown = wp_W + ulp;
  233|  90.2k|    while (rest < wp_Wup &&  /// round1
  ------------------
  |  Branch (233:12): [True: 30.0k, False: 60.1k]
  ------------------
  234|  30.0k|           Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (234:12): [True: 15.7k, False: 14.2k]
  ------------------
  235|  15.7k|           (rest + ten_kappa < wp_Wup || /// closer
  ------------------
  |  Branch (235:13): [True: 6.94k, False: 8.85k]
  ------------------
  236|  8.85k|            wp_Wup - rest >= rest + ten_kappa - wp_Wup))
  ------------------
  |  Branch (236:13): [True: 3.04k, False: 5.80k]
  ------------------
  237|  9.99k|    {
  238|  9.99k|        buffer[len - 1]--; rest += ten_kappa;
  239|  9.99k|    }
  240|  80.2k|    if (rest < wp_Wdown && /// round2
  ------------------
  |  Branch (240:9): [True: 66.4k, False: 13.7k]
  ------------------
  241|  66.4k|        Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (241:9): [True: 6.24k, False: 60.2k]
  ------------------
  242|  6.24k|        (rest + ten_kappa < wp_Wdown ||
  ------------------
  |  Branch (242:10): [True: 0, False: 6.24k]
  ------------------
  243|  6.24k|         wp_Wdown - rest > rest + ten_kappa - wp_Wdown)) return 0;
  ------------------
  |  Branch (243:10): [True: 1.05k, False: 5.18k]
  ------------------
  244|  79.2k|    return 2 * ulp <= rest && rest <= Delta - 4 * ulp; /// weed
  ------------------
  |  Branch (244:12): [True: 70.7k, False: 8.47k]
  |  Branch (244:31): [True: 69.7k, False: 995]
  ------------------
  245|  80.2k|}

_ZN8jsoncons10ext_traits14integer_limitsIlvE6lowestEv:
  106|  11.5k|        {
  107|  11.5k|            return std::numeric_limits<T>::lowest();
  108|  11.5k|        }

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|  99.6k|{
  890|  99.6k|    const char* cur = s+length;
  891|  99.6k|    char *end = nullptr;
  892|  99.6k|    val = strtod(s, &end);
  893|  99.6k|    const char* str_end = end;
  894|  99.6k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|  99.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 99.6k]
  |  |  ------------------
  ------------------
  895|      6|    {
  896|      6|        if (*end == '.')
  ------------------
  |  Branch (896:13): [True: 0, False: 6]
  ------------------
  897|      0|        {
  898|      0|            std::string buf{s, length};
  899|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  900|      0|            *dot_ptr = ',';
  901|      0|            end = nullptr;
  902|      0|            val = strtod(buf.c_str(), &end);
  903|      0|            str_end = s + (end - &buf[0]);
  904|      0|        }
  905|      6|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   79|      6|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 0]
  |  |  ------------------
  ------------------
  906|      6|        {
  907|      6|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  908|      6|        }
  909|      6|    }
  910|  99.6k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|   193k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6.94k, False: 92.7k]
  |  |  |  Branch (79:50): [True: 5.35k, False: 94.2k]
  |  |  |  Branch (79:50): [True: 1.58k, False: 92.7k]
  |  |  ------------------
  ------------------
  911|  6.94k|    {
  912|  6.94k|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|  6.94k|    }
  914|  92.7k|    return to_number_result<char>{str_end};
  915|  99.6k|}
_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  164|  82.5k|        : ptr(ptr_), ec(ec_)
  165|  82.5k|    {
  166|  82.5k|    }
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|  92.7k|        : ptr(ptr_), ec(std::errc{})
  161|  92.7k|    {
  162|  92.7k|    }
_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  350|  20.2k|{
  351|  20.2k|    if (length == 0)
  ------------------
  |  Branch (351:9): [True: 0, False: 20.2k]
  ------------------
  352|      0|    {
  353|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  354|      0|    }
  355|       |
  356|  20.2k|    bool sign = *s == '-';
  357|  20.2k|    s += sign;
  358|  20.2k|    length -= sign;
  359|       |
  360|  20.2k|    using U = typename ext_traits::make_unsigned<T>::type;
  361|       |
  362|  20.2k|    U num;
  363|  20.2k|    auto ru = dec_to_integer(s, length, num);
  364|  20.2k|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (364:9): [True: 8.77k, False: 11.5k]
  ------------------
  365|  8.77k|    {
  366|  8.77k|        return to_number_result<CharT>(ru.ptr, ru.ec);
  367|  8.77k|    }
  368|  11.5k|    if (sign)
  ------------------
  |  Branch (368:9): [True: 11.5k, False: 0]
  ------------------
  369|  11.5k|    {
  370|  11.5k|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (370:13): [True: 1.30k, False: 10.2k]
  ------------------
  371|  1.30k|        {
  372|  1.30k|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  373|  1.30k|        }
  374|  10.2k|        else
  375|  10.2k|        {
  376|  10.2k|            value = static_cast<T>(U(0) - num);
  377|  10.2k|            return to_number_result<CharT>(ru.ptr, std::errc{});
  378|  10.2k|        }
  379|  11.5k|    }
  380|      0|    else
  381|      0|    {
  382|      0|        if (num > static_cast<U>((ext_traits::integer_limits<T>::max)()))
  ------------------
  |  Branch (382:13): [True: 0, False: 0]
  ------------------
  383|      0|        {
  384|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  385|      0|        }
  386|      0|        else
  387|      0|        {
  388|      0|            value = static_cast<T>(num);
  389|      0|            return to_number_result<CharT>(ru.ptr, std::errc{});
  390|      0|        }
  391|      0|    }
  392|  11.5k|}
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  288|  55.2k|{
  289|  55.2k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  55.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 55.2k]
  |  |  ------------------
  ------------------
  290|      0|    {
  291|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  292|      0|    }
  293|       |
  294|  55.2k|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  295|  55.2k|    static constexpr T max_value_div_10 = max_value / 10;
  296|       |
  297|  55.2k|    T num = 0;
  298|  55.2k|    const CharT* cur = s;
  299|  55.2k|    const CharT* last = s + length;
  300|  55.2k|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  301|  55.2k|    const std::size_t n = (std::min)(digits10, length);
  302|  55.2k|    const CharT* stop = s + n;
  303|       |     
  304|   435k|    while (cur < stop)
  ------------------
  |  Branch (304:12): [True: 379k, False: 55.2k]
  ------------------
  305|   379k|    {
  306|   379k|        uint8_t d;
  307|   379k|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   78|   379k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 379k, False: 0]
  |  |  ------------------
  ------------------
  308|   379k|        {
  309|   379k|            num = static_cast<T>(d) + num*10;
  310|   379k|        }
  311|      0|        else
  312|      0|        {
  313|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  314|      0|        }
  315|   379k|        ++cur;
  316|   379k|    }
  317|  55.2k|    if (cur == last)
  ------------------
  |  Branch (317:9): [True: 41.4k, False: 13.8k]
  ------------------
  318|  41.4k|    {
  319|  41.4k|        value = num;
  320|  41.4k|        return to_number_result<CharT>(cur, std::errc{});
  321|  41.4k|    }
  322|  13.8k|    if (cur+1 != last)
  ------------------
  |  Branch (322:9): [True: 3.98k, False: 9.86k]
  ------------------
  323|  3.98k|    {
  324|  3.98k|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  325|  3.98k|    }
  326|  9.86k|    if (is_char_digit(*cur))
  ------------------
  |  Branch (326:9): [True: 9.86k, False: 0]
  ------------------
  327|  9.86k|    {
  328|  9.86k|        if (num > max_value_div_10)
  ------------------
  |  Branch (328:13): [True: 1.98k, False: 7.87k]
  ------------------
  329|  1.98k|        {
  330|  1.98k|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  331|  1.98k|        }
  332|  7.87k|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  333|  7.87k|        num = num*10;
  334|  7.87k|        if (num > max_value - d)
  ------------------
  |  Branch (334:13): [True: 7.09k, False: 781]
  ------------------
  335|  7.09k|        {
  336|  7.09k|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  337|  7.09k|        }
  338|    781|        num += d;
  339|    781|        ++cur;
  340|    781|        value = num;
  341|    781|        return to_number_result<CharT>(cur, std::errc{});
  342|  7.87k|    }
  343|       |    
  344|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  345|  9.86k|}
_ZN8jsoncons13is_char_digitEc:
   83|  9.86k|constexpr bool is_char_digit(char d) {
   84|  9.86k|    return is_type(static_cast<uint8_t>(d), (uint8_t)(digit_type_zero | digit_type_nonzero));
   85|  9.86k|}
_ZN8jsoncons7is_typeEhh:
   68|  9.86k|constexpr bool is_type(uint8_t d, uint8_t type) {
   69|  9.86k|    return (digi_table[d] & type) != 0;
   70|  9.86k|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  173|  55.2k|    {
  174|  55.2k|        return ec == std::errc{};
  175|  55.2k|    }

_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  3.49k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  3.49k|    {
  489|  3.49k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  3.49k|        struct lconv *lc = localeconv();
  491|  3.49k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 3.49k, False: 0]
  |  Branch (491:30): [True: 3.49k, False: 0]
  ------------------
  492|  3.49k|        {
  493|  3.49k|            decimal_point_ = lc->decimal_point[0];
  494|  3.49k|        }
  495|  3.49k|#endif
  496|  3.49k|    }
_ZN8jsoncons16append_to_stringImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  30.6k|{
   43|  30.6k|    using char_type = typename Result::value_type;
   44|       |
   45|  30.6k|    char_type buf[255];
   46|  30.6k|    char_type *p = buf;
   47|  30.6k|    const char_type* last = buf+255;
   48|       |
   49|  30.6k|    bool is_negative = value < 0;
   50|       |
   51|  30.6k|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 30.6k]
  ------------------
   52|      0|    {
   53|      0|        do
   54|      0|        {
   55|      0|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|      0|        }
   57|      0|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 0, False: 0]
  |  Branch (57:33): [True: 0, False: 0]
  ------------------
   58|      0|    }
   59|  30.6k|    else
   60|  30.6k|    {
   61|       |
   62|  30.6k|        do
   63|  79.9k|        {
   64|  79.9k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  79.9k|        }
   66|  79.9k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 49.3k, False: 30.6k]
  |  Branch (66:33): [True: 49.3k, False: 0]
  ------------------
   67|  30.6k|    }
   68|  30.6k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|  30.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 30.6k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  30.6k|    std::size_t count = (p - buf);
   71|  30.6k|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 30.6k]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|   110k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 79.9k, False: 30.6k]
  ------------------
   77|  79.9k|    {
   78|  79.9k|        result.push_back(*p);
   79|  79.9k|    }
   80|       |
   81|  30.6k|    return count;
   82|  30.6k|}
_ZN8jsoncons16append_to_stringIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  10.2k|{
   43|  10.2k|    using char_type = typename Result::value_type;
   44|       |
   45|  10.2k|    char_type buf[255];
   46|  10.2k|    char_type *p = buf;
   47|  10.2k|    const char_type* last = buf+255;
   48|       |
   49|  10.2k|    bool is_negative = value < 0;
   50|       |
   51|  10.2k|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 9.53k, False: 679]
  ------------------
   52|  9.53k|    {
   53|  9.53k|        do
   54|  26.7k|        {
   55|  26.7k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  26.7k|        }
   57|  26.7k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 17.1k, False: 9.53k]
  |  Branch (57:33): [True: 17.1k, False: 0]
  ------------------
   58|  9.53k|    }
   59|    679|    else
   60|    679|    {
   61|       |
   62|    679|        do
   63|    679|        {
   64|    679|            *p++ = static_cast<char_type>(48 + value % 10);
   65|    679|        }
   66|    679|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 0, False: 679]
  |  Branch (66:33): [True: 0, False: 0]
  ------------------
   67|    679|    }
   68|  10.2k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|  10.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 10.2k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  10.2k|    std::size_t count = (p - buf);
   71|  10.2k|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 9.53k, False: 679]
  ------------------
   72|  9.53k|    {
   73|  9.53k|        result.push_back('-');
   74|  9.53k|        ++count;
   75|  9.53k|    }
   76|  37.5k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 27.3k, False: 10.2k]
  ------------------
   77|  27.3k|    {
   78|  27.3k|        result.push_back(*p);
   79|  27.3k|    }
   80|       |
   81|  10.2k|    return count;
   82|  10.2k|}
_ZN8jsoncons12write_doubleclINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEmdRT_:
  503|  82.1k|    {
  504|  82.1k|        std::size_t count = 0;
  505|       |
  506|  82.1k|        char number_buffer[200];
  507|  82.1k|        int length = 0;
  508|       |
  509|  82.1k|        switch (float_format_)
  510|  82.1k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 82.1k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 82.1k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  82.1k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 82.1k, False: 0]
  ------------------
  552|  82.1k|            {
  553|  82.1k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 82.1k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  82.1k|                else
  563|  82.1k|                {
  564|  82.1k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 82.1k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  82.1k|                }             
  569|  82.1k|                break;
  570|  82.1k|            }
  571|  82.1k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 82.1k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  82.1k|        }
  575|  82.1k|        return count;
  576|  82.1k|    }
_ZN8jsoncons11dump_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmcRT_:
  243|  10.5k|{
  244|  10.5k|    const char *sbeg = buffer;
  245|  10.5k|    const char *send = sbeg + length;
  246|       |
  247|  10.5k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 10.5k, False: 0]
  ------------------
  248|  10.5k|    {
  249|  10.5k|        bool needs_dot = true;
  250|  92.1k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 81.6k, False: 10.5k]
  ------------------
  251|  81.6k|        {
  252|  81.6k|            switch (*q)
  253|  81.6k|            {
  254|  1.02k|            case '-':
  ------------------
  |  Branch (254:13): [True: 1.02k, False: 80.6k]
  ------------------
  255|  3.18k|            case '0':
  ------------------
  |  Branch (255:13): [True: 2.16k, False: 79.4k]
  ------------------
  256|  10.2k|            case '1':
  ------------------
  |  Branch (256:13): [True: 7.04k, False: 74.6k]
  ------------------
  257|  26.1k|            case '2':
  ------------------
  |  Branch (257:13): [True: 15.8k, False: 65.7k]
  ------------------
  258|  37.1k|            case '3':
  ------------------
  |  Branch (258:13): [True: 11.0k, False: 70.5k]
  ------------------
  259|  40.0k|            case '4':
  ------------------
  |  Branch (259:13): [True: 2.83k, False: 78.8k]
  ------------------
  260|  41.5k|            case '5':
  ------------------
  |  Branch (260:13): [True: 1.49k, False: 80.1k]
  ------------------
  261|  43.5k|            case '6':
  ------------------
  |  Branch (261:13): [True: 1.97k, False: 79.6k]
  ------------------
  262|  52.7k|            case '7':
  ------------------
  |  Branch (262:13): [True: 9.24k, False: 72.4k]
  ------------------
  263|  57.3k|            case '8':
  ------------------
  |  Branch (263:13): [True: 4.64k, False: 77.0k]
  ------------------
  264|  61.0k|            case '9':
  ------------------
  |  Branch (264:13): [True: 3.69k, False: 77.9k]
  ------------------
  265|  69.5k|            case '+':
  ------------------
  |  Branch (265:13): [True: 8.49k, False: 73.1k]
  ------------------
  266|  69.5k|                result.push_back(*q);
  267|  69.5k|                break;
  268|  8.73k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 8.73k, False: 72.9k]
  ------------------
  269|  8.73k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 81.6k]
  ------------------
  270|  8.73k|                result.push_back('e');
  271|  8.73k|                needs_dot = false;
  272|  8.73k|                break;
  273|  3.33k|            default:
  ------------------
  |  Branch (273:13): [True: 3.33k, False: 78.3k]
  ------------------
  274|  3.33k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.33k, False: 0]
  ------------------
  275|  3.33k|                {
  276|  3.33k|                    needs_dot = false;
  277|  3.33k|                    result.push_back('.');
  278|  3.33k|                }
  279|  3.33k|                break;
  280|  81.6k|            }
  281|  81.6k|        }
  282|  10.5k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 637, False: 9.88k]
  ------------------
  283|    637|        {
  284|    637|            result.push_back('.');
  285|    637|            result.push_back('0');
  286|    637|        }
  287|  10.5k|    }
  288|  10.5k|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKciiiiRT_:
  171|  69.7k|{
  172|  69.7k|    int nb_digits = length;
  173|  69.7k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  69.7k|    int kk = nb_digits + k;
  179|       |
  180|  69.7k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 51.3k, False: 18.3k]
  |  Branch (180:28): [True: 46.0k, False: 5.30k]
  ------------------
  181|  46.0k|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|   103k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 57.7k, False: 46.0k]
  ------------------
  186|  57.7k|        {
  187|  57.7k|            result.push_back(buffer[i]);
  188|  57.7k|        }
  189|   644k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 598k, False: 46.0k]
  ------------------
  190|   598k|        {
  191|   598k|            result.push_back('0');
  192|   598k|        }
  193|  46.0k|        result.push_back('.');
  194|  46.0k|        result.push_back('0');
  195|  46.0k|    } 
  196|  23.6k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 13.1k, False: 10.5k]
  |  Branch (196:24): [True: 7.81k, False: 5.30k]
  ------------------
  197|  7.81k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  48.2k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 40.4k, False: 7.81k]
  ------------------
  200|  40.4k|        {
  201|  40.4k|            result.push_back(buffer[i]);
  202|  40.4k|        }
  203|  7.81k|        result.push_back('.');
  204|  54.6k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 46.8k, False: 7.81k]
  ------------------
  205|  46.8k|        {
  206|  46.8k|            result.push_back(buffer[i]);
  207|  46.8k|        }
  208|  7.81k|    } 
  209|  15.8k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 7.33k, False: 8.52k]
  |  Branch (209:30): [True: 2.03k, False: 5.30k]
  ------------------
  210|  2.03k|    {
  211|  2.03k|        offset = 2 - kk;
  212|       |
  213|  2.03k|        result.push_back('0');
  214|  2.03k|        result.push_back('.');
  215|  3.61k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 1.58k, False: 2.03k]
  ------------------
  216|  1.58k|            result.push_back('0');
  217|  7.41k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 5.38k, False: 2.03k]
  ------------------
  218|  5.38k|        {
  219|  5.38k|            result.push_back(buffer[i]);
  220|  5.38k|        }
  221|  2.03k|    } 
  222|  13.8k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 5.79k, False: 8.03k]
  ------------------
  223|  5.79k|    {
  224|  5.79k|        result.push_back(buffer[0]);
  225|  5.79k|        result.push_back('e');
  226|  5.79k|        fill_exponent(kk - 1, result);
  227|  5.79k|    } 
  228|  8.03k|    else
  229|  8.03k|    {
  230|  8.03k|        result.push_back(buffer[0]);
  231|  8.03k|        result.push_back('.');
  232|  76.0k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 67.9k, False: 8.03k]
  ------------------
  233|  67.9k|        {
  234|  67.9k|            result.push_back(buffer[i]);
  235|  67.9k|        }
  236|  8.03k|        result.push_back('e');
  237|  8.03k|        fill_exponent(kk - 1, result);
  238|  8.03k|    }
  239|  69.7k|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|  13.8k|{
  137|  13.8k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 8.52k, False: 5.30k]
  ------------------
  138|  8.52k|    {
  139|  8.52k|        result.push_back('-');
  140|  8.52k|        K = -K;
  141|  8.52k|    }
  142|  5.30k|    else
  143|  5.30k|    {
  144|  5.30k|        result.push_back('+'); // compatibility with sprintf
  145|  5.30k|    }
  146|       |
  147|  13.8k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 6.10k, False: 7.72k]
  ------------------
  148|  6.10k|    {
  149|  6.10k|        result.push_back('0'); // compatibility with sprintf
  150|  6.10k|        result.push_back((char)('0' + K));
  151|  6.10k|    }
  152|  7.72k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 4.83k, False: 2.89k]
  ------------------
  153|  4.83k|    {
  154|  4.83k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  4.83k|        result.push_back((char)('0' + K));
  156|  4.83k|    }
  157|  2.89k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 2.89k, False: 0]
  ------------------
  158|  2.89k|    {
  159|  2.89k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  2.89k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  2.89k|        result.push_back((char)('0' + K));
  162|  2.89k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::append_to_string(K, result);
  166|      0|    }
  167|  13.8k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_:
  475|  82.1k|{
  476|  82.1k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  82.1k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb1EEE:
  366|  82.1k|{
  367|  82.1k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 1.90k, False: 80.2k]
  ------------------
  368|  1.90k|    {
  369|  1.90k|        result.push_back('0');
  370|  1.90k|        result.push_back('.');
  371|  1.90k|        result.push_back('0');
  372|  1.90k|        return true;
  373|  1.90k|    }
  374|       |
  375|  80.2k|    int length = 0;
  376|  80.2k|    int k;
  377|       |
  378|  80.2k|    char buffer[100];
  379|       |
  380|  80.2k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 2.75k, False: 77.5k]
  ------------------
  381|  80.2k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 69.7k, False: 10.5k]
  ------------------
  382|  69.7k|    {
  383|  69.7k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 1.97k, False: 67.7k]
  ------------------
  384|  1.97k|        {
  385|  1.97k|            result.push_back('-');
  386|  1.97k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  69.7k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  69.7k|        return true;
  391|  69.7k|    }
  392|  10.5k|    else
  393|  10.5k|    {
  394|  10.5k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  10.5k|    }
  396|  80.2k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb0EEE:
  329|  10.5k|{
  330|  10.5k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 10.5k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  10.5k|    char buffer[100];
  339|  10.5k|    int precision = std::numeric_limits<double>::digits10;
  340|  10.5k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  10.5k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 10.5k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  10.5k|    double x{0};
  346|  10.5k|    auto res = decstr_to_double(buffer, length, x);
  347|  10.5k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 10.5k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  10.5k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 1.74k, False: 8.77k]
  ------------------
  352|  1.74k|    {
  353|  1.74k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  1.74k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  1.74k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 1.74k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  1.74k|    }
  360|  10.5k|    dump_buffer(buffer, length, decimal_point, result);
  361|  10.5k|    return true;
  362|  10.5k|}

_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   66|  3.49k|    {
   67|  3.49k|        static constexpr uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   68|  3.49k|        static constexpr uint8_t bom_utf16le[] = {0xff,0xfe}; 
   69|  3.49k|        static constexpr uint8_t bom_utf16be[] = {0xfe,0xff}; 
   70|  3.49k|        static constexpr uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   71|  3.49k|        static constexpr uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   72|       |
   73|  3.49k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (73:13): [True: 3.22k, False: 272]
  |  Branch (73:28): [True: 1, False: 3.21k]
  ------------------
   74|      1|        {
   75|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   76|      1|        }
   77|  3.49k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (77:18): [True: 3.21k, False: 272]
  |  Branch (77:33): [True: 1, False: 3.21k]
  ------------------
   78|      1|        {
   79|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   80|      1|        }
   81|  3.49k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (81:18): [True: 3.44k, False: 42]
  |  Branch (81:33): [True: 10, False: 3.43k]
  ------------------
   82|     10|        {
   83|     10|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   84|     10|        }
   85|  3.48k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (85:18): [True: 3.43k, False: 42]
  |  Branch (85:33): [True: 1, False: 3.43k]
  ------------------
   86|      1|        {
   87|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   88|      1|        }
   89|  3.47k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (89:18): [True: 3.35k, False: 122]
  |  Branch (89:33): [True: 1, False: 3.35k]
  ------------------
   90|      1|        {
   91|      1|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   92|      1|        }
   93|  3.47k|        else
   94|  3.47k|        {
   95|  3.47k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   96|  3.47k|        }
   97|  3.49k|    }

_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_EC2EOSA_RKS8_:
  147|  3.49k|       : basic_csv_encoder(std::forward<Sink>(sink), basic_csv_encode_options<CharT>(), alloc)
  148|  3.49k|    {
  149|  3.49k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_EC2EOSA_RKNS0_24basic_csv_encode_optionsIcEERKS8_:
  154|  3.49k|      : sink_(std::forward<Sink>(sink)),
  155|  3.49k|        flat_(options.flat()),
  156|  3.49k|        max_nesting_depth_(options.max_nesting_depth()),
  157|  3.49k|        has_column_mapping_(!options.column_mapping().empty()),
  158|  3.49k|        has_column_names_(!options.column_names().empty()),
  159|  3.49k|        field_delimiter_(options.field_delimiter()),
  160|  3.49k|        subfield_delimiter_(options.subfield_delimiter()),
  161|  3.49k|        line_delimiter_(options.line_delimiter()),
  162|  3.49k|        quote_style_(options.quote_style()),
  163|  3.49k|        quote_char_(options.quote_char()),
  164|  3.49k|        quote_escape_char_(options.quote_escape_char()),
  165|  3.49k|        enable_nan_to_num_(options.enable_nan_to_num()),
  166|  3.49k|        nan_to_num_(options.nan_to_num()),
  167|  3.49k|        enable_nan_to_str_(options.enable_nan_to_str()),
  168|  3.49k|        nan_to_str_(options.nan_to_str()),
  169|  3.49k|        enable_inf_to_num_(options.enable_inf_to_num()),
  170|  3.49k|        inf_to_num_(options.inf_to_num()),
  171|  3.49k|        enable_inf_to_str_(options.enable_inf_to_str()),
  172|  3.49k|        inf_to_str_(options.inf_to_str()),
  173|  3.49k|        enable_neginf_to_num_(options.enable_neginf_to_num()),
  174|  3.49k|        neginf_to_num_(options.neginf_to_num()),
  175|  3.49k|        enable_neginf_to_str_(options.enable_neginf_to_str()),
  176|  3.49k|        neginf_to_str_(options.neginf_to_str()),
  177|  3.49k|        alloc_(alloc),
  178|  3.49k|        stack_(alloc),
  179|  3.49k|        fp_(options.float_format(), options.precision()),
  180|  3.49k|        column_names_(alloc),
  181|  3.49k|        column_paths_(alloc),
  182|  3.49k|        column_path_name_map_(alloc),
  183|  3.49k|        column_path_value_map_(alloc),
  184|  3.49k|        column_path_column_map_(alloc),
  185|  3.49k|        value_buffer_(alloc),
  186|  3.49k|        column_it_(column_path_column_map_.end())
  187|  3.49k|    {
  188|  3.49k|        if (has_column_mapping_)
  ------------------
  |  Branch (188:13): [True: 0, False: 3.49k]
  ------------------
  189|      0|        {
  190|      0|            for (const auto& item : options.column_mapping())
  ------------------
  |  Branch (190:35): [True: 0, False: 0]
  ------------------
  191|      0|            {
  192|      0|                column_paths_.emplace_back(item.first);
  193|      0|                column_path_name_map_.emplace(item.first, item.second);
  194|      0|                column_path_value_map_.emplace(item.first, string_type{alloc_});
  195|      0|            }
  196|      0|        }
  197|  3.49k|        if (has_column_names_)
  ------------------
  |  Branch (197:13): [True: 0, False: 3.49k]
  ------------------
  198|      0|        {
  199|      0|            jsoncons::csv::detail::parse_column_names(options.column_names(), column_names_);
  200|      0|        }
  201|  3.49k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  622|   153k|    {
  623|   153k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|   153k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 153k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  624|       |        
  625|   153k|        switch (stack_.back().item_kind_)
  626|   153k|        {
  627|      0|            case stack_item_kind::row_mapping:
  ------------------
  |  Branch (627:13): [True: 0, False: 153k]
  ------------------
  628|  3.37k|            case stack_item_kind::flat_row_mapping:
  ------------------
  |  Branch (628:13): [True: 3.37k, False: 150k]
  ------------------
  629|  3.37k|                break;
  630|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (630:13): [True: 0, False: 153k]
  ------------------
  631|      0|                if (parent(stack_).item_kind_ == stack_item_kind::flat_row_mapping)
  ------------------
  |  Branch (631:21): [True: 0, False: 0]
  ------------------
  632|      0|                {
  633|      0|                    if (stack_[0].count_ == 0 && !column_path_name_map_.empty())
  ------------------
  |  Branch (633:25): [True: 0, False: 0]
  |  Branch (633:50): [True: 0, False: 0]
  ------------------
  634|      0|                    {
  635|      0|                        std::size_t col = 0;
  636|      0|                        for (std::size_t i = 0; i < column_paths_.size(); ++i)
  ------------------
  |  Branch (636:49): [True: 0, False: 0]
  ------------------
  637|      0|                        {
  638|      0|                            auto it = column_path_name_map_.find(column_paths_[i]);
  639|      0|                            if (it != column_path_name_map_.end())
  ------------------
  |  Branch (639:33): [True: 0, False: 0]
  ------------------
  640|      0|                            {
  641|      0|                                if (col > 0)
  ------------------
  |  Branch (641:37): [True: 0, False: 0]
  ------------------
  642|      0|                                {
  643|      0|                                    sink_.push_back(field_delimiter_);
  644|      0|                                }
  645|      0|                                write_column_name(it->second);
  646|      0|                                ++col;
  647|      0|                            }
  648|      0|                        }
  649|      0|                        sink_.append(line_delimiter_.data(), line_delimiter_.length());
  650|      0|                    }
  651|       |
  652|      0|                    for (std::size_t i = 0; i < column_paths_.size(); ++i)
  ------------------
  |  Branch (652:45): [True: 0, False: 0]
  ------------------
  653|      0|                    {
  654|      0|                        if (i > 0)
  ------------------
  |  Branch (654:29): [True: 0, False: 0]
  ------------------
  655|      0|                        {
  656|      0|                            sink_.push_back(field_delimiter_);
  657|      0|                        }
  658|      0|                        auto it = column_path_value_map_.find(column_paths_[i]);
  659|      0|                        if (it != column_path_value_map_.end())
  ------------------
  |  Branch (659:29): [True: 0, False: 0]
  ------------------
  660|      0|                        {
  661|      0|                            sink_.append(it->second.data(), it->second.length());
  662|      0|                            it->second.clear();
  663|      0|                        }
  664|      0|                    }
  665|      0|                    sink_.append(line_delimiter_.data(), line_delimiter_.length());
  666|      0|                }
  667|      0|                break;
  668|   150k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (668:13): [True: 150k, False: 3.37k]
  ------------------
  669|   150k|                if (parent(stack_).item_kind_ == stack_item_kind::flat_row_mapping)
  ------------------
  |  Branch (669:21): [True: 150k, False: 0]
  ------------------
  670|   150k|                {
  671|   150k|                    sink_.append(line_delimiter_.data(), line_delimiter_.length());
  672|   150k|                }
  673|   150k|                break;
  674|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (674:13): [True: 0, False: 153k]
  ------------------
  675|      0|            {
  676|      0|                auto it = column_path_value_map_.find(parent(stack_).column_path_);
  677|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (677:21): [True: 0, False: 0]
  ------------------
  678|      0|                {
  679|      0|                    it->second = value_buffer_;
  680|      0|                }
  681|      0|                break;
  682|      0|            }
  683|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (683:13): [True: 0, False: 153k]
  ------------------
  684|      0|            {
  685|      0|                if (parent(stack_).count_ > 0)
  ------------------
  |  Branch (685:21): [True: 0, False: 0]
  ------------------
  686|      0|                {
  687|      0|                    sink_.push_back(field_delimiter_);
  688|      0|                }
  689|      0|                sink_.append(value_buffer_.data(), value_buffer_.size());
  690|      0|                break;
  691|      0|            }
  692|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (692:13): [True: 0, False: 153k]
  ------------------
  693|      0|                if (parent(stack_).item_kind_ == stack_item_kind::row_mapping)
  ------------------
  |  Branch (693:21): [True: 0, False: 0]
  ------------------
  694|      0|                {
  695|      0|                    if (stack_[0].count_ == 0)
  ------------------
  |  Branch (695:25): [True: 0, False: 0]
  ------------------
  696|      0|                    {
  697|      0|                        std::size_t col = 0;
  698|      0|                        for (std::size_t i = 0; i < column_paths_.size(); ++i)
  ------------------
  |  Branch (698:49): [True: 0, False: 0]
  ------------------
  699|      0|                        {
  700|      0|                            auto it = column_path_name_map_.find(column_paths_[i]);
  701|      0|                            if (it != column_path_name_map_.end())
  ------------------
  |  Branch (701:33): [True: 0, False: 0]
  ------------------
  702|      0|                            {
  703|      0|                                if (col > 0)
  ------------------
  |  Branch (703:37): [True: 0, False: 0]
  ------------------
  704|      0|                                {
  705|      0|                                    sink_.push_back(field_delimiter_);
  706|      0|                                }
  707|      0|                                write_column_name(it->second);
  708|      0|                                ++col;
  709|      0|                            }
  710|      0|                        }
  711|      0|                        sink_.append(line_delimiter_.data(), 
  712|      0|                            line_delimiter_.length());
  713|      0|                    }
  714|       |                    
  715|      0|                    for (std::size_t i = 0; i < column_paths_.size(); ++i)
  ------------------
  |  Branch (715:45): [True: 0, False: 0]
  ------------------
  716|      0|                    {
  717|      0|                        if (i > 0)
  ------------------
  |  Branch (717:29): [True: 0, False: 0]
  ------------------
  718|      0|                        {
  719|      0|                            sink_.push_back(field_delimiter_);
  720|      0|                        }
  721|      0|                        auto it = column_path_value_map_.find(column_paths_[i]);
  722|      0|                        if (it != column_path_value_map_.end())
  ------------------
  |  Branch (722:29): [True: 0, False: 0]
  ------------------
  723|      0|                        {
  724|      0|                            sink_.append(it->second.data(), it->second.length());
  725|      0|                            it->second.clear();
  726|      0|                        }
  727|      0|                    }
  728|      0|                    sink_.append(line_delimiter_.data(), line_delimiter_.length());
  729|      0|                }
  730|      0|                break;
  731|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (731:13): [True: 0, False: 153k]
  ------------------
  732|      0|                ++column_index_;
  733|      0|                break;
  734|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (734:13): [True: 0, False: 153k]
  ------------------
  735|      0|                column_it_->second.emplace_back(value_buffer_.data(),value_buffer_.length());
  736|      0|                break;
  737|      0|            case stack_item_kind::unmapped:
  ------------------
  |  Branch (737:13): [True: 0, False: 153k]
  ------------------
  738|      0|                break;
  739|      0|            default:
  ------------------
  |  Branch (739:13): [True: 0, False: 153k]
  ------------------
  740|       |                //std::cout << "visit_end_array " << (int)stack_.back().item_kind_ << "\n"; 
  741|      0|                ec = csv_errc::source_error;
  742|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  743|   153k|        }
  744|   153k|        stack_.pop_back();
  745|       |
  746|   153k|        if (!stack_.empty())
  ------------------
  |  Branch (746:13): [True: 150k, False: 3.37k]
  ------------------
  747|   150k|        {
  748|   150k|            ++stack_.back().count_;
  749|   150k|        }
  750|   153k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   153k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  751|   153k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E6parentERKNS3_6vectorINSB_10stack_itemENS7_ISD_EEEE:
   99|   150k|    {
  100|   150k|        JSONCONS_ASSERT(stack.size() >= 2);
  ------------------
  |  |   67|   150k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 150k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  101|   150k|        return stack[stack.size() - 2];
  102|   150k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E13escape_stringEPKcmccRS9_:
  237|  12.3M|    {
  238|  12.3M|        const CharT* begin = s;
  239|  12.3M|        const CharT* end = s + length;
  240|  38.6M|        for (const CharT* it = begin; it != end; ++it)
  ------------------
  |  Branch (240:39): [True: 26.2M, False: 12.3M]
  ------------------
  241|  26.2M|        {
  242|  26.2M|            CharT c = *it;
  243|  26.2M|            if (c == quote_char)
  ------------------
  |  Branch (243:17): [True: 1.11k, False: 26.2M]
  ------------------
  244|  1.11k|            {
  245|  1.11k|                sink.push_back(quote_escape_char); 
  246|  1.11k|                sink.push_back(quote_char);
  247|  1.11k|            }
  248|  26.2M|            else
  249|  26.2M|            {
  250|  26.2M|                sink.push_back(c);
  251|  26.2M|            }
  252|  26.2M|        }
  253|  12.3M|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1171|  30.6k|    {
 1172|  30.6k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  30.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 30.6k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1173|  30.6k|        switch (stack_.back().item_kind_)
 1174|  30.6k|        {
 1175|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (1175:13): [True: 0, False: 30.6k]
  ------------------
 1176|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (1176:13): [True: 0, False: 30.6k]
  ------------------
 1177|      0|            {
 1178|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (1178:21): [True: 0, False: 0]
  ------------------
 1179|      0|                {
 1180|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (1180:25): [True: 0, False: 0]
  ------------------
 1181|      0|                    {
 1182|      0|                        string_type str = stack_.back().column_path_;
 1183|      0|                        column_paths_.emplace_back(str);
 1184|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
 1185|      0|                    }
 1186|      0|                }
 1187|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1188|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1188:21): [True: 0, False: 0]
  ------------------
 1189|      0|                {
 1190|      0|                    write_uint64_value(val, it->second);
 1191|      0|                }
 1192|      0|                break;
 1193|      0|            }
 1194|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (1194:13): [True: 0, False: 30.6k]
  ------------------
 1195|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (1195:13): [True: 0, False: 30.6k]
  ------------------
 1196|      0|            {
 1197|      0|                append_array_path_component();
 1198|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1199|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1199:21): [True: 0, False: 0]
  ------------------
 1200|      0|                {
 1201|      0|                    write_uint64_value(val, it->second);
 1202|      0|                }
 1203|      0|                break;
 1204|      0|            }
 1205|  30.6k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (1205:13): [True: 30.6k, False: 0]
  ------------------
 1206|  30.6k|            {
 1207|  30.6k|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (1207:21): [True: 16.3k, False: 14.3k]
  ------------------
 1208|  16.3k|                {
 1209|  16.3k|                    sink_.push_back(field_delimiter_);
 1210|  16.3k|                }
 1211|  30.6k|                value_buffer_.clear();
 1212|  30.6k|                write_uint64_value(val, value_buffer_);
 1213|  30.6k|                sink_.append(value_buffer_.data(), value_buffer_.size());
 1214|  30.6k|                break;
 1215|      0|            }
 1216|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (1216:13): [True: 0, False: 30.6k]
  ------------------
 1217|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (1217:13): [True: 0, False: 30.6k]
  ------------------
 1218|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (1218:13): [True: 0, False: 30.6k]
  ------------------
 1219|      0|            {
 1220|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (1220:21): [True: 0, False: 0]
  ------------------
 1221|      0|                {
 1222|      0|                    value_buffer_.push_back(subfield_delimiter_);
 1223|      0|                }
 1224|      0|                write_uint64_value(val, value_buffer_);
 1225|      0|                break;
 1226|      0|            }
 1227|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (1227:13): [True: 0, False: 30.6k]
  ------------------
 1228|      0|            {
 1229|      0|                (*column_it_).second.emplace_back();
 1230|      0|                write_uint64_value(val, (*column_it_).second.back());
 1231|      0|                break;
 1232|      0|            }
 1233|      0|            default:
  ------------------
  |  Branch (1233:13): [True: 0, False: 30.6k]
  ------------------
 1234|      0|                break;
 1235|  30.6k|        }
 1236|  30.6k|        ++stack_.back().count_;
 1237|  30.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  30.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1238|  30.6k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E18write_uint64_valueEmRS9_:
 1411|  30.6k|    {
 1412|  30.6k|        jsoncons::append_to_string(val,str);
 1413|  30.6k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1098|  10.2k|    {
 1099|  10.2k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  10.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 10.2k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1100|  10.2k|        switch (stack_.back().item_kind_)
 1101|  10.2k|        {
 1102|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (1102:13): [True: 0, False: 10.2k]
  ------------------
 1103|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (1103:13): [True: 0, False: 10.2k]
  ------------------
 1104|      0|            {
 1105|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (1105:21): [True: 0, False: 0]
  ------------------
 1106|      0|                {
 1107|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (1107:25): [True: 0, False: 0]
  ------------------
 1108|      0|                    {
 1109|      0|                        string_type str = stack_.back().column_path_;
 1110|      0|                        column_paths_.emplace_back(str);
 1111|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
 1112|      0|                    }
 1113|      0|                }
 1114|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1115|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1115:21): [True: 0, False: 0]
  ------------------
 1116|      0|                {
 1117|      0|                    write_int64_value(val, it->second);
 1118|      0|                }
 1119|      0|                break;
 1120|      0|            }
 1121|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (1121:13): [True: 0, False: 10.2k]
  ------------------
 1122|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (1122:13): [True: 0, False: 10.2k]
  ------------------
 1123|      0|            {
 1124|      0|                append_array_path_component();
 1125|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1126|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1126:21): [True: 0, False: 0]
  ------------------
 1127|      0|                {
 1128|      0|                    write_int64_value(val, it->second);
 1129|      0|                }
 1130|      0|                break;
 1131|      0|            }
 1132|  10.2k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (1132:13): [True: 10.2k, False: 0]
  ------------------
 1133|  10.2k|            {
 1134|  10.2k|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (1134:21): [True: 7.51k, False: 2.69k]
  ------------------
 1135|  7.51k|                {
 1136|  7.51k|                    sink_.push_back(field_delimiter_);
 1137|  7.51k|                }
 1138|  10.2k|                value_buffer_.clear();
 1139|  10.2k|                write_int64_value(val, value_buffer_);
 1140|  10.2k|                sink_.append(value_buffer_.data(), value_buffer_.size());
 1141|  10.2k|                break;
 1142|      0|            }
 1143|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (1143:13): [True: 0, False: 10.2k]
  ------------------
 1144|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (1144:13): [True: 0, False: 10.2k]
  ------------------
 1145|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (1145:13): [True: 0, False: 10.2k]
  ------------------
 1146|      0|            {
 1147|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (1147:21): [True: 0, False: 0]
  ------------------
 1148|      0|                {
 1149|      0|                    value_buffer_.push_back(subfield_delimiter_);
 1150|      0|                }
 1151|      0|                write_int64_value(val, value_buffer_);
 1152|      0|                break;
 1153|      0|            }
 1154|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (1154:13): [True: 0, False: 10.2k]
  ------------------
 1155|      0|            {
 1156|      0|                (*column_it_).second.emplace_back();
 1157|      0|                write_int64_value(val, (*column_it_).second.back());
 1158|      0|                break;
 1159|      0|            }
 1160|      0|            default:
  ------------------
  |  Branch (1160:13): [True: 0, False: 10.2k]
  ------------------
 1161|      0|                break;
 1162|  10.2k|        }
 1163|  10.2k|        ++stack_.back().count_;
 1164|  10.2k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1165|  10.2k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E17write_int64_valueElRS9_:
 1406|  10.2k|    {
 1407|  10.2k|        jsoncons::append_to_string(val,str);
 1408|  10.2k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1021|  89.1k|    {
 1022|  89.1k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  89.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 89.1k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1023|  89.1k|        switch (stack_.back().item_kind_)
 1024|  89.1k|        {
 1025|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (1025:13): [True: 0, False: 89.1k]
  ------------------
 1026|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (1026:13): [True: 0, False: 89.1k]
  ------------------
 1027|      0|            {
 1028|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (1028:21): [True: 0, False: 0]
  ------------------
 1029|      0|                {
 1030|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (1030:25): [True: 0, False: 0]
  ------------------
 1031|      0|                    {
 1032|      0|                        string_type str = stack_.back().column_path_;
 1033|      0|                        column_paths_.emplace_back(str);
 1034|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
 1035|      0|                    }
 1036|      0|                }
 1037|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1038|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1038:21): [True: 0, False: 0]
  ------------------
 1039|      0|                {
 1040|      0|                    write_double_value(val, context, it->second, ec);
 1041|      0|                }
 1042|      0|                break;
 1043|      0|            }
 1044|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (1044:13): [True: 0, False: 89.1k]
  ------------------
 1045|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (1045:13): [True: 0, False: 89.1k]
  ------------------
 1046|      0|            {
 1047|      0|                append_array_path_component();
 1048|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1049|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1049:21): [True: 0, False: 0]
  ------------------
 1050|      0|                {
 1051|      0|                    write_double_value(val, context, it->second, ec);
 1052|      0|                }
 1053|      0|                break;
 1054|      0|            }
 1055|  89.1k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (1055:13): [True: 89.1k, False: 0]
  ------------------
 1056|  89.1k|            {
 1057|  89.1k|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (1057:21): [True: 31.6k, False: 57.4k]
  ------------------
 1058|  31.6k|                {
 1059|  31.6k|                    sink_.push_back(field_delimiter_);
 1060|  31.6k|                }
 1061|  89.1k|                value_buffer_.clear();
 1062|  89.1k|                write_double_value(val, context, value_buffer_, ec);
 1063|  89.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  89.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 89.1k]
  |  |  ------------------
  ------------------
 1064|      0|                {
 1065|      0|                    JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|      0|                }
 1067|  89.1k|                sink_.append(value_buffer_.data(), value_buffer_.size());
 1068|  89.1k|                break;
 1069|  89.1k|            }
 1070|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (1070:13): [True: 0, False: 89.1k]
  ------------------
 1071|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (1071:13): [True: 0, False: 89.1k]
  ------------------
 1072|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (1072:13): [True: 0, False: 89.1k]
  ------------------
 1073|      0|            {
 1074|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (1074:21): [True: 0, False: 0]
  ------------------
 1075|      0|                {
 1076|      0|                    value_buffer_.push_back(subfield_delimiter_);
 1077|      0|                }
 1078|      0|                write_double_value(val, context, value_buffer_, ec);
 1079|      0|                break;
 1080|      0|            }
 1081|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (1081:13): [True: 0, False: 89.1k]
  ------------------
 1082|      0|            {
 1083|      0|                (*column_it_).second.emplace_back();
 1084|      0|                write_double_value(val, context, (*column_it_).second.back(), ec);
 1085|      0|                break;
 1086|      0|            }
 1087|      0|            default:
  ------------------
  |  Branch (1087:13): [True: 0, False: 89.1k]
  ------------------
 1088|      0|                break;
 1089|  89.1k|        }
 1090|  89.1k|        ++stack_.back().count_;
 1091|  89.1k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  89.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1092|  89.1k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E18write_double_valueEdRKNS_11ser_contextERS9_RNS3_10error_codeE:
 1350|  89.1k|    {
 1351|  89.1k|        if (!std::isfinite(val))
  ------------------
  |  Branch (1351:13): [True: 6.94k, False: 82.1k]
  ------------------
 1352|  6.94k|        {
 1353|  6.94k|            if ((std::isnan)(val))
  ------------------
  |  Branch (1353:17): [True: 0, False: 6.94k]
  ------------------
 1354|      0|            {
 1355|      0|                if (enable_nan_to_num_)
  ------------------
  |  Branch (1355:21): [True: 0, False: 0]
  ------------------
 1356|      0|                {
 1357|      0|                    str.append(nan_to_num_.data(), nan_to_num_.length());
 1358|      0|                }
 1359|      0|                else if (enable_nan_to_str_)
  ------------------
  |  Branch (1359:26): [True: 0, False: 0]
  ------------------
 1360|      0|                {
 1361|      0|                    visit_string(nan_to_str_, semantic_tag::none, context, ec);
 1362|      0|                }
 1363|      0|                else
 1364|      0|                {
 1365|      0|                    str.append(null_literal().data(), null_literal().size());
 1366|      0|                }
 1367|      0|            }
 1368|  6.94k|            else if (val == std::numeric_limits<double>::infinity())
  ------------------
  |  Branch (1368:22): [True: 1.58k, False: 5.35k]
  ------------------
 1369|  1.58k|            {
 1370|  1.58k|                if (enable_inf_to_num_)
  ------------------
  |  Branch (1370:21): [True: 0, False: 1.58k]
  ------------------
 1371|      0|                {
 1372|      0|                    str.append(inf_to_num_.data(), inf_to_num_.length());
 1373|      0|                }
 1374|  1.58k|                else if (enable_inf_to_str_)
  ------------------
  |  Branch (1374:26): [True: 0, False: 1.58k]
  ------------------
 1375|      0|                {
 1376|      0|                    visit_string(inf_to_str_, semantic_tag::none, context, ec);
 1377|      0|                }
 1378|  1.58k|                else
 1379|  1.58k|                {
 1380|  1.58k|                    str.append(null_literal().data(), null_literal().size());
 1381|  1.58k|                }
 1382|  1.58k|            }
 1383|  5.35k|            else
 1384|  5.35k|            {
 1385|  5.35k|                if (enable_neginf_to_num_)
  ------------------
  |  Branch (1385:21): [True: 0, False: 5.35k]
  ------------------
 1386|      0|                {
 1387|      0|                    str.append(neginf_to_num_.data(), neginf_to_num_.length());
 1388|      0|                }
 1389|  5.35k|                else if (enable_neginf_to_str_)
  ------------------
  |  Branch (1389:26): [True: 0, False: 5.35k]
  ------------------
 1390|      0|                {
 1391|      0|                    visit_string(neginf_to_str_, semantic_tag::none, context, ec);
 1392|      0|                }
 1393|  5.35k|                else
 1394|  5.35k|                {
 1395|  5.35k|                    str.append(null_literal().data(), null_literal().size());
 1396|  5.35k|                }
 1397|  5.35k|            }
 1398|  6.94k|        }
 1399|  82.1k|        else
 1400|  82.1k|        {
 1401|  82.1k|            fp_(val, str);
 1402|  82.1k|        }
 1403|  89.1k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E12null_literalEv:
   47|  18.8k|    {
   48|  18.8k|        static jsoncons::basic_string_view<CharT> k = JSONCONS_STRING_VIEW_CONSTANT(CharT,"null");
  ------------------
  |  |  325|  18.8k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  18.8k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  18.8k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|  18.8k|        return k;
   50|  18.8k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E11visit_flushEv:
  256|  3.44k|    {
  257|  3.44k|        sink_.flush();
  258|  3.44k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E10stack_itemC2ENSB_15stack_item_kindE:
   86|   154k|           : item_kind_(item_kind)
   87|   154k|        {
   88|   154k|        }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  491|   154k|    {
  492|   154k|        if (stack_.empty())
  ------------------
  |  Branch (492:13): [True: 3.47k, False: 150k]
  ------------------
  493|  3.47k|        {
  494|  3.47k|            if (flat_)
  ------------------
  |  Branch (494:17): [True: 3.47k, False: 0]
  ------------------
  495|  3.47k|            {
  496|  3.47k|                stack_.emplace_back(stack_item_kind::flat_row_mapping);
  497|  3.47k|            }
  498|      0|            else
  499|      0|            {
  500|      0|                stack_.emplace_back(stack_item_kind::row_mapping);
  501|      0|            }
  502|  3.47k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.47k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  503|  3.47k|        }
  504|   150k|        if (JSONCONS_UNLIKELY(stack_.size() >= max_nesting_depth_))
  ------------------
  |  |   79|   150k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 150k]
  |  |  ------------------
  ------------------
  505|      0|        {
  506|      0|            ec = csv_errc::max_nesting_depth_exceeded;
  507|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  508|      0|        }
  509|       |        // legacy        
  510|   150k|        if (has_column_names_ && stack_.back().count_ == 0)
  ------------------
  |  Branch (510:13): [True: 0, False: 150k]
  |  Branch (510:34): [True: 0, False: 0]
  ------------------
  511|      0|        {
  512|      0|            if (stack_.back().item_kind_ == stack_item_kind::flat_row_mapping || stack_.back().item_kind_ == stack_item_kind::row_mapping)
  ------------------
  |  Branch (512:17): [True: 0, False: 0]
  |  Branch (512:82): [True: 0, False: 0]
  ------------------
  513|      0|            {
  514|      0|                std::size_t index = 0;
  515|      0|                for (const auto& item : column_names_)
  ------------------
  |  Branch (515:39): [True: 0, False: 0]
  ------------------
  516|      0|                {
  517|      0|                    string_type str{alloc_};
  518|      0|                    str.push_back('/');
  519|      0|                    jsoncons::append_to_string(index, str);
  520|      0|                    column_paths_.emplace_back(str);
  521|      0|                    column_path_value_map_.emplace(str, string_type{alloc_});
  522|      0|                    column_path_name_map_.emplace(std::move(str), item);
  523|      0|                    ++index;
  524|      0|                }
  525|      0|                has_column_mapping_ = true;
  526|      0|            }
  527|      0|        }
  528|       |        
  529|   150k|        switch (stack_.back().item_kind_)
  530|   150k|        {
  531|   150k|            case stack_item_kind::flat_row_mapping:
  ------------------
  |  Branch (531:13): [True: 150k, False: 0]
  ------------------
  532|   150k|                if (has_column_mapping_)
  ------------------
  |  Branch (532:21): [True: 0, False: 150k]
  ------------------
  533|      0|                {
  534|      0|                    stack_.emplace_back(stack_item_kind::flat_row);
  535|      0|                }
  536|   150k|                else
  537|   150k|                {
  538|   150k|                    stack_.emplace_back(stack_item_kind::stream_flat_row);
  539|   150k|                }
  540|   150k|                break;
  541|      0|            case stack_item_kind::row_mapping:
  ------------------
  |  Branch (541:13): [True: 0, False: 150k]
  ------------------
  542|      0|                stack_.emplace_back(stack_item_kind::row);
  543|      0|                break;
  544|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (544:13): [True: 0, False: 150k]
  ------------------
  545|      0|                stack_.emplace_back(stack_item_kind::object);
  546|      0|                break;
  547|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (547:13): [True: 0, False: 150k]
  ------------------
  548|      0|                stack_.emplace_back(stack_item_kind::row);
  549|      0|                break;
  550|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (550:13): [True: 0, False: 150k]
  ------------------
  551|      0|                if (subfield_delimiter_ == char_type())
  ------------------
  |  Branch (551:21): [True: 0, False: 0]
  ------------------
  552|      0|                {
  553|      0|                    stack_.emplace_back(stack_item_kind::unmapped);
  554|      0|                }
  555|      0|                else
  556|      0|                {
  557|      0|                    append_array_path_component();
  558|      0|                    value_buffer_.clear();
  559|      0|                    stack_.emplace_back(stack_item_kind::multivalued_field);
  560|      0|                }
  561|      0|                break;
  562|      0|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (562:13): [True: 0, False: 150k]
  ------------------
  563|      0|                if (subfield_delimiter_ == char_type())
  ------------------
  |  Branch (563:21): [True: 0, False: 0]
  ------------------
  564|      0|                {
  565|      0|                    stack_.emplace_back(stack_item_kind::unmapped);
  566|      0|                }
  567|      0|                else
  568|      0|                {
  569|      0|                    value_buffer_.clear();
  570|      0|                    stack_.emplace_back(stack_item_kind::stream_multivalued_field);
  571|      0|                }
  572|      0|                break;
  573|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (573:13): [True: 0, False: 150k]
  ------------------
  574|      0|                if (subfield_delimiter_ == char_type())
  ------------------
  |  Branch (574:21): [True: 0, False: 0]
  ------------------
  575|      0|                {
  576|      0|                    stack_.emplace_back(stack_item_kind::unmapped);
  577|      0|                }
  578|      0|                else
  579|      0|                {
  580|      0|                    if (stack_[0].count_ == 0)
  ------------------
  |  Branch (580:25): [True: 0, False: 0]
  ------------------
  581|      0|                    {
  582|      0|                        if (!has_column_mapping_)
  ------------------
  |  Branch (582:29): [True: 0, False: 0]
  ------------------
  583|      0|                        {
  584|      0|                            string_type str = stack_.back().column_path_;
  585|      0|                            column_paths_.emplace_back(str);
  586|      0|                            column_path_value_map_.emplace(std::move(str), string_type{alloc_});
  587|      0|                        }
  588|      0|                    }
  589|       |                    
  590|      0|                    value_buffer_.clear();
  591|      0|                    stack_.emplace_back(stack_item_kind::multivalued_field);
  592|      0|                }
  593|      0|                break;
  594|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (594:13): [True: 0, False: 150k]
  ------------------
  595|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (595:13): [True: 0, False: 150k]
  ------------------
  596|      0|                stack_.emplace_back(stack_item_kind::unmapped);
  597|      0|                break;
  598|      0|            case stack_item_kind::column_mapping:
  ------------------
  |  Branch (598:13): [True: 0, False: 150k]
  ------------------
  599|      0|                stack_.emplace_back(stack_item_kind::column);
  600|      0|                break;
  601|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (601:13): [True: 0, False: 150k]
  ------------------
  602|      0|            {
  603|      0|                value_buffer_.clear();
  604|      0|                stack_.emplace_back(stack_item_kind::column_multivalued_field);
  605|      0|                break;
  606|      0|            }
  607|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (607:13): [True: 0, False: 150k]
  ------------------
  608|      0|                stack_.emplace_back(stack_item_kind::unmapped);
  609|      0|                break;
  610|      0|            case stack_item_kind::unmapped:
  ------------------
  |  Branch (610:13): [True: 0, False: 150k]
  ------------------
  611|      0|                stack_.emplace_back(stack_item_kind::unmapped);
  612|      0|                break;
  613|      0|            default: // error
  ------------------
  |  Branch (613:13): [True: 0, False: 150k]
  ------------------
  614|       |                //std::cout << "visit_begin_array " << (int)stack_.back().item_kind_ << "\n"; 
  615|      0|                ec = csv_errc::source_error;
  616|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  617|   150k|        }
  618|   150k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   150k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  619|   150k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  822|  2.46k|    {
  823|  2.46k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  2.46k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 2.46k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  824|  2.46k|        switch (stack_.back().item_kind_)
  825|  2.46k|        {
  826|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (826:13): [True: 0, False: 2.46k]
  ------------------
  827|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (827:13): [True: 0, False: 2.46k]
  ------------------
  828|      0|            {
  829|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (829:21): [True: 0, False: 0]
  ------------------
  830|      0|                {
  831|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (831:25): [True: 0, False: 0]
  ------------------
  832|      0|                    {
  833|      0|                        string_type str = stack_.back().column_path_;
  834|      0|                        column_paths_.emplace_back(str);
  835|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
  836|      0|                    }
  837|      0|                }
  838|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
  839|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (839:21): [True: 0, False: 0]
  ------------------
  840|      0|                {
  841|      0|                    write_null_value(it->second);
  842|      0|                }
  843|      0|                break;
  844|      0|            }
  845|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (845:13): [True: 0, False: 2.46k]
  ------------------
  846|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (846:13): [True: 0, False: 2.46k]
  ------------------
  847|      0|            {
  848|      0|                append_array_path_component();
  849|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
  850|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (850:21): [True: 0, False: 0]
  ------------------
  851|      0|                {
  852|      0|                    write_null_value(it->second);
  853|      0|                }
  854|      0|                break;
  855|      0|            }
  856|  2.46k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (856:13): [True: 2.46k, False: 0]
  ------------------
  857|  2.46k|            {
  858|  2.46k|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (858:21): [True: 1.95k, False: 515]
  ------------------
  859|  1.95k|                {
  860|  1.95k|                    sink_.push_back(field_delimiter_);
  861|  1.95k|                }
  862|  2.46k|                value_buffer_.clear();
  863|  2.46k|                write_null_value(value_buffer_);
  864|  2.46k|                sink_.append(value_buffer_.data(), value_buffer_.size());
  865|  2.46k|                break;
  866|      0|            }
  867|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (867:13): [True: 0, False: 2.46k]
  ------------------
  868|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (868:13): [True: 0, False: 2.46k]
  ------------------
  869|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (869:13): [True: 0, False: 2.46k]
  ------------------
  870|      0|            {
  871|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (871:21): [True: 0, False: 0]
  ------------------
  872|      0|                {
  873|      0|                    value_buffer_.push_back(subfield_delimiter_);
  874|      0|                }
  875|      0|                write_null_value(value_buffer_);
  876|      0|                break;
  877|      0|            }
  878|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (878:13): [True: 0, False: 2.46k]
  ------------------
  879|      0|            {
  880|      0|                (*column_it_).second.emplace_back();
  881|      0|                write_null_value((*column_it_).second.back());
  882|      0|                break;
  883|      0|            }
  884|      0|            default:
  ------------------
  |  Branch (884:13): [True: 0, False: 2.46k]
  ------------------
  885|      0|                break;
  886|  2.46k|        }
  887|  2.46k|        ++stack_.back().count_;
  888|  2.46k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.46k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  889|  2.46k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E16write_null_valueERS9_:
 1428|  2.46k|    {
 1429|  2.46k|        str.append(null_literal().data(), null_literal().size());
 1430|  2.46k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1241|  7.24k|    {
 1242|  7.24k|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  7.24k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 7.24k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1243|  7.24k|        switch (stack_.back().item_kind_)
 1244|  7.24k|        {
 1245|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (1245:13): [True: 0, False: 7.24k]
  ------------------
 1246|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (1246:13): [True: 0, False: 7.24k]
  ------------------
 1247|      0|            {
 1248|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (1248:21): [True: 0, False: 0]
  ------------------
 1249|      0|                {
 1250|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (1250:25): [True: 0, False: 0]
  ------------------
 1251|      0|                    {
 1252|      0|                        string_type str = stack_.back().column_path_;
 1253|      0|                        column_paths_.emplace_back(str);
 1254|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
 1255|      0|                    }
 1256|      0|                }
 1257|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1258|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1258:21): [True: 0, False: 0]
  ------------------
 1259|      0|                {
 1260|      0|                    write_bool_value(val, it->second);
 1261|      0|                }
 1262|      0|                break;
 1263|      0|            }
 1264|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (1264:13): [True: 0, False: 7.24k]
  ------------------
 1265|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (1265:13): [True: 0, False: 7.24k]
  ------------------
 1266|      0|            {
 1267|      0|                append_array_path_component();
 1268|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
 1269|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (1269:21): [True: 0, False: 0]
  ------------------
 1270|      0|                {
 1271|      0|                    write_bool_value(val, it->second);
 1272|      0|                }
 1273|      0|                break;
 1274|      0|            }
 1275|  7.24k|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (1275:13): [True: 7.24k, False: 0]
  ------------------
 1276|  7.24k|            {
 1277|  7.24k|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (1277:21): [True: 6.41k, False: 831]
  ------------------
 1278|  6.41k|                {
 1279|  6.41k|                    sink_.push_back(field_delimiter_);
 1280|  6.41k|                }
 1281|  7.24k|                value_buffer_.clear();
 1282|  7.24k|                write_bool_value(val, value_buffer_);
 1283|  7.24k|                sink_.append(value_buffer_.data(), value_buffer_.size());
 1284|  7.24k|                break;
 1285|      0|            }
 1286|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (1286:13): [True: 0, False: 7.24k]
  ------------------
 1287|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (1287:13): [True: 0, False: 7.24k]
  ------------------
 1288|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (1288:13): [True: 0, False: 7.24k]
  ------------------
 1289|      0|            {
 1290|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (1290:21): [True: 0, False: 0]
  ------------------
 1291|      0|                {
 1292|      0|                    value_buffer_.push_back(subfield_delimiter_);
 1293|      0|                }
 1294|      0|                write_bool_value(val, value_buffer_);
 1295|      0|                break;
 1296|      0|            }
 1297|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (1297:13): [True: 0, False: 7.24k]
  ------------------
 1298|      0|            {
 1299|      0|                (*column_it_).second.emplace_back();
 1300|      0|                write_bool_value(val, (*column_it_).second.back());
 1301|      0|                break;
 1302|      0|            }
 1303|      0|            default:
  ------------------
  |  Branch (1303:13): [True: 0, False: 7.24k]
  ------------------
 1304|      0|                break;
 1305|  7.24k|        }
 1306|  7.24k|        ++stack_.back().count_;
 1307|  7.24k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.24k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1308|  7.24k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E16write_bool_valueEbRS9_:
 1416|  7.24k|    {
 1417|  7.24k|        if (val)
  ------------------
  |  Branch (1417:13): [True: 3.96k, False: 3.28k]
  ------------------
 1418|  3.96k|        {
 1419|  3.96k|            str.append(true_literal().data(), true_literal().size());
 1420|  3.96k|        }
 1421|  3.28k|        else
 1422|  3.28k|        {
 1423|  3.28k|            str.append(false_literal().data(), false_literal().size());
 1424|  3.28k|        }
 1425|  7.24k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E12true_literalEv:
   52|  7.92k|    {
   53|  7.92k|        static jsoncons::basic_string_view<CharT> k = JSONCONS_STRING_VIEW_CONSTANT(CharT,"true");
  ------------------
  |  |  325|  7.92k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  7.92k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  7.92k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   54|  7.92k|        return k;
   55|  7.92k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E13false_literalEv:
   57|  6.56k|    {
   58|  6.56k|        static jsoncons::basic_string_view<CharT> k = JSONCONS_STRING_VIEW_CONSTANT(CharT,"false");
  ------------------
  |  |  325|  6.56k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  6.56k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  6.56k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|  6.56k|        return k;
   60|  6.56k|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E12visit_stringERKNS3_17basic_string_viewIcS6_EENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  892|  12.3M|    {
  893|  12.3M|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   67|  12.3M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 12.3M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  894|  12.3M|        switch (stack_.back().item_kind_)
  895|  12.3M|        {
  896|      0|            case stack_item_kind::flat_object:
  ------------------
  |  Branch (896:13): [True: 0, False: 12.3M]
  ------------------
  897|      0|            case stack_item_kind::object:
  ------------------
  |  Branch (897:13): [True: 0, False: 12.3M]
  ------------------
  898|      0|            {
  899|      0|                if (stack_[0].count_ == 0)
  ------------------
  |  Branch (899:21): [True: 0, False: 0]
  ------------------
  900|      0|                {
  901|      0|                    if (!has_column_mapping_)
  ------------------
  |  Branch (901:25): [True: 0, False: 0]
  ------------------
  902|      0|                    {
  903|      0|                        string_type str = stack_.back().column_path_;
  904|      0|                        column_paths_.emplace_back(str);
  905|      0|                        column_path_value_map_.emplace(std::move(str), string_type{alloc_});
  906|      0|                    }
  907|      0|                }
  908|       |
  909|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
  910|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (910:21): [True: 0, False: 0]
  ------------------
  911|      0|                {
  912|      0|                    write_string_value(sv, it->second);
  913|      0|                }
  914|      0|                break;
  915|      0|            }
  916|      0|            case stack_item_kind::flat_row:
  ------------------
  |  Branch (916:13): [True: 0, False: 12.3M]
  ------------------
  917|      0|            case stack_item_kind::row:
  ------------------
  |  Branch (917:13): [True: 0, False: 12.3M]
  ------------------
  918|      0|            {
  919|      0|                append_array_path_component();
  920|      0|                auto it = column_path_value_map_.find(stack_.back().column_path_);
  921|      0|                if (it != column_path_value_map_.end())
  ------------------
  |  Branch (921:21): [True: 0, False: 0]
  ------------------
  922|      0|                {
  923|      0|                    write_string_value(sv, it->second);
  924|      0|                }
  925|      0|                break;
  926|      0|            }
  927|  12.3M|            case stack_item_kind::stream_flat_row:
  ------------------
  |  Branch (927:13): [True: 12.3M, False: 0]
  ------------------
  928|  12.3M|            {
  929|  12.3M|                if (stack_.back().count_ > 0)
  ------------------
  |  Branch (929:21): [True: 12.2M, False: 74.5k]
  ------------------
  930|  12.2M|                {
  931|  12.2M|                    sink_.push_back(field_delimiter_);
  932|  12.2M|                }
  933|  12.3M|                value_buffer_.clear();
  934|  12.3M|                write_string_value(sv, value_buffer_);
  935|  12.3M|                sink_.append(value_buffer_.data(), value_buffer_.size());
  936|  12.3M|                break;
  937|      0|            }
  938|      0|            case stack_item_kind::column_multivalued_field:
  ------------------
  |  Branch (938:13): [True: 0, False: 12.3M]
  ------------------
  939|      0|            case stack_item_kind::multivalued_field:
  ------------------
  |  Branch (939:13): [True: 0, False: 12.3M]
  ------------------
  940|      0|            case stack_item_kind::stream_multivalued_field:
  ------------------
  |  Branch (940:13): [True: 0, False: 12.3M]
  ------------------
  941|      0|            {
  942|      0|                if (!value_buffer_.empty())
  ------------------
  |  Branch (942:21): [True: 0, False: 0]
  ------------------
  943|      0|                {
  944|      0|                    value_buffer_.push_back(subfield_delimiter_);
  945|      0|                }
  946|      0|                write_string_value(sv, value_buffer_);
  947|      0|                break;
  948|      0|            }
  949|      0|            case stack_item_kind::column:
  ------------------
  |  Branch (949:13): [True: 0, False: 12.3M]
  ------------------
  950|      0|            {
  951|      0|                (*column_it_).second.emplace_back();
  952|      0|                write_string_value(sv, (*column_it_).second.back());
  953|      0|                break;
  954|      0|            }
  955|      0|            default:
  ------------------
  |  Branch (955:13): [True: 0, False: 12.3M]
  ------------------
  956|      0|                break;
  957|  12.3M|        }
  958|  12.3M|        ++stack_.back().count_;
  959|  12.3M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  12.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  960|  12.3M|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_E18write_string_valueERKNS3_17basic_string_viewIcS6_EERS9_:
 1329|  12.3M|    {
 1330|  12.3M|        const char* s = value.data();
 1331|  12.3M|        const std::size_t length = value.length();
 1332|       |        
 1333|  12.3M|        bool quote = false;
 1334|  12.3M|        if (quote_style_ == quote_style_kind::all || quote_style_ == quote_style_kind::nonnumeric ||
  ------------------
  |  Branch (1334:13): [True: 0, False: 12.3M]
  |  Branch (1334:13): [True: 1.65k, False: 12.3M]
  |  Branch (1334:54): [True: 0, False: 12.3M]
  ------------------
 1335|  12.3M|            (quote_style_ == quote_style_kind::minimal &&
  ------------------
  |  Branch (1335:14): [True: 12.3M, False: 0]
  ------------------
 1336|  12.3M|            (std::char_traits<CharT>::find(s, length, field_delimiter_) != nullptr || std::char_traits<CharT>::find(s, length, quote_char_) != nullptr ||
  ------------------
  |  Branch (1336:14): [True: 252, False: 12.3M]
  |  Branch (1336:87): [True: 486, False: 12.3M]
  ------------------
 1337|  12.3M|             std::char_traits<CharT>::find(s, length, '\n') != nullptr || std::char_traits<CharT>::find(s, length, '\r') != nullptr)))
  ------------------
  |  Branch (1337:14): [True: 383, False: 12.3M]
  |  Branch (1337:75): [True: 537, False: 12.3M]
  ------------------
 1338|  1.65k|        {
 1339|  1.65k|            quote = true;
 1340|  1.65k|            str.push_back(quote_char_);
 1341|  1.65k|        }
 1342|  12.3M|        escape_string(s, length, quote_char_, quote_escape_char_, str);
 1343|  12.3M|        if (quote)
  ------------------
  |  Branch (1343:13): [True: 1.65k, False: 12.3M]
  ------------------
 1344|  1.65k|        {
 1345|  1.65k|            str.push_back(quote_char_);
 1346|  1.65k|        }
 1347|  12.3M|    }
_ZN8jsoncons3csv17basic_csv_encoderIcNS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEES8_ED2Ev:
  204|  3.49k|    {
  205|  3.49k|        JSONCONS_TRY
  ------------------
  |  |   37|  3.49k|    #define JSONCONS_TRY try
  ------------------
  206|  3.49k|        {
  207|  3.49k|            sink_.flush();
  208|  3.49k|        }
  209|  3.49k|        JSONCONS_CATCH(...)
  210|  3.49k|        {
  211|      0|        }
  212|  3.49k|    }

_ZN8jsoncons3csv15make_error_codeENS0_8csv_errcE:
   82|     37|{
   83|     37|    return std::error_code(static_cast<int>(result),csv_error_category());
   84|     37|}
_ZN8jsoncons3csv18csv_error_categoryEv:
   75|     37|{
   76|     37|  static csv_error_category_impl instance;
   77|     37|  return instance;
   78|     37|}

_ZN8jsoncons3csv24basic_csv_options_commonIcED2Ev:
  320|  6.98k|    virtual ~basic_csv_options_common() = default;
_ZN8jsoncons3csv24basic_csv_encode_optionsIcEC1Ev:
  640|  3.49k|    {
  641|  3.49k|        line_delimiter_.push_back('\n');
  642|  3.49k|    }
_ZN8jsoncons3csv24basic_csv_options_commonIcEC2Ev:
  303|  6.98k|      : flat_{true},                  
  304|  6.98k|        enable_nan_to_num_{false},    
  305|  6.98k|        enable_inf_to_num_{false},    
  306|  6.98k|        enable_neginf_to_num_{false}, 
  307|  6.98k|        enable_nan_to_str_{false},    
  308|  6.98k|        enable_inf_to_str_{false},    
  309|  6.98k|        enable_neginf_to_str_{false}, 
  310|  6.98k|        enable_str_to_nan_{false},    
  311|  6.98k|        enable_str_to_inf_{false},    
  312|  6.98k|        enable_str_to_neginf_{false}
  313|  6.98k|    {
  314|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE4flatEv:
  324|  3.49k|    {
  325|  3.49k|        return flat_;
  326|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17max_nesting_depthEv:
  329|  3.49k|    {
  330|  3.49k|        return max_nesting_depth_;
  331|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE14column_mappingEv:
  359|  3.49k|    {
  360|  3.49k|        return column_mapping_;
  361|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE12column_namesEv:
  354|  10.4k|    {
  355|  10.4k|        return column_names_;
  356|  10.4k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE15field_delimiterEv:
  334|  6.98k|    {
  335|  6.98k|        return field_delimiter_;
  336|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE18subfield_delimiterEv:
  339|  6.98k|    {
  340|  6.98k|        return subfield_delimiter_;
  341|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_encode_optionsIcE14line_delimiterEv:
  676|  3.49k|    {
  677|  3.49k|        return line_delimiter_;
  678|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_encode_optionsIcE11quote_styleEv:
  661|  3.49k|    {
  662|  3.49k|        return quote_style_;
  663|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE10quote_charEv:
  344|  6.98k|    {
  345|  6.98k|        return quote_char_;
  346|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17quote_escape_charEv:
  349|  6.98k|    {
  350|  6.98k|        return quote_escape_char_;
  351|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_nan_to_numEv:
  364|  3.49k|    {
  365|  3.49k|        return enable_nan_to_num_;
  366|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE10nan_to_numEv:
  409|  3.49k|    {
  410|  3.49k|        return nan_to_num_; 
  411|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_nan_to_strEv:
  379|  3.49k|    {
  380|  3.49k|        return enable_nan_to_str_;
  381|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE10nan_to_strEv:
  438|  6.98k|    {
  439|  6.98k|        return nan_to_str_;
  440|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_inf_to_numEv:
  369|  3.49k|    {
  370|  3.49k|        return enable_inf_to_num_;
  371|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE10inf_to_numEv:
  414|  3.49k|    {
  415|  3.49k|        return inf_to_num_; 
  416|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_inf_to_strEv:
  389|  3.49k|    {
  390|  3.49k|        return enable_inf_to_str_;
  391|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE10inf_to_strEv:
  443|  6.98k|    {
  444|  6.98k|        return inf_to_str_; 
  445|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE20enable_neginf_to_numEv:
  374|  3.49k|    {
  375|  3.49k|        return enable_neginf_to_num_ || enable_inf_to_num_;
  ------------------
  |  Branch (375:16): [True: 0, False: 3.49k]
  |  Branch (375:41): [True: 0, False: 3.49k]
  ------------------
  376|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE13neginf_to_numEv:
  419|  3.49k|    {
  420|  3.49k|        if (enable_neginf_to_num_)
  ------------------
  |  Branch (420:13): [True: 0, False: 3.49k]
  ------------------
  421|      0|        {
  422|      0|            return neginf_to_num_;
  423|      0|        }
  424|  3.49k|        else if (enable_inf_to_num_)
  ------------------
  |  Branch (424:18): [True: 0, False: 3.49k]
  ------------------
  425|      0|        {
  426|      0|            string_type s;
  427|      0|            s.push_back('-');
  428|      0|            s.append(inf_to_num_);
  429|      0|            return s;
  430|      0|        }
  431|  3.49k|        else
  432|  3.49k|        {
  433|  3.49k|            return neginf_to_num_; 
  434|  3.49k|        }
  435|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE20enable_neginf_to_strEv:
  399|  3.49k|    {
  400|  3.49k|        return enable_neginf_to_str_ || enable_inf_to_str_;
  ------------------
  |  Branch (400:16): [True: 0, False: 3.49k]
  |  Branch (400:41): [True: 0, False: 3.49k]
  ------------------
  401|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE13neginf_to_strEv:
  448|  6.98k|    {
  449|  6.98k|        if (enable_neginf_to_str_)
  ------------------
  |  Branch (449:13): [True: 0, False: 6.98k]
  ------------------
  450|      0|        {
  451|      0|            return neginf_to_str_;
  452|      0|        }
  453|  6.98k|        else if (enable_inf_to_str_)
  ------------------
  |  Branch (453:18): [True: 0, False: 6.98k]
  ------------------
  454|      0|        {
  455|      0|            string_type s;
  456|      0|            s.push_back('-');
  457|      0|            s.append(inf_to_str_);
  458|      0|            return s;
  459|      0|        }
  460|  6.98k|        else
  461|  6.98k|        {
  462|  6.98k|            return neginf_to_str_; // empty string
  463|  6.98k|        }
  464|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_encode_optionsIcE12float_formatEv:
  666|  3.49k|    {
  667|  3.49k|        return float_format_;
  668|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_encode_optionsIcE9precisionEv:
  671|  3.49k|    {
  672|  3.49k|        return precision_;
  673|  3.49k|    }
_ZN8jsoncons3csv6detail18parse_column_namesIcNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEEEEvRKNS5_IT_NS6_ISD_EENS8_ISD_EEEERT0_:
   66|  6.98k|{
   67|  6.98k|    column_state state = column_state::sequence;
   68|  6.98k|    typename Container::value_type buffer(cont.get_allocator());
   69|       |
   70|  6.98k|    auto p = names.begin();
   71|  6.98k|    while (p != names.end())
  ------------------
  |  Branch (71:12): [True: 0, False: 6.98k]
  ------------------
   72|      0|    {
   73|      0|        switch (state)
  ------------------
  |  Branch (73:17): [True: 0, False: 0]
  ------------------
   74|      0|        {
   75|      0|            case column_state::sequence:
  ------------------
  |  Branch (75:13): [True: 0, False: 0]
  ------------------
   76|      0|            {
   77|      0|                switch (*p)
   78|      0|                {
   79|      0|                    case ' ': case '\t':case '\r': case '\n':
  ------------------
  |  Branch (79:21): [True: 0, False: 0]
  |  Branch (79:31): [True: 0, False: 0]
  |  Branch (79:41): [True: 0, False: 0]
  |  Branch (79:52): [True: 0, False: 0]
  ------------------
   80|      0|                        ++p;
   81|      0|                        break;
   82|      0|                    default:
  ------------------
  |  Branch (82:21): [True: 0, False: 0]
  ------------------
   83|      0|                        buffer.clear();
   84|      0|                        state = column_state::label;
   85|      0|                        break;
   86|      0|                }
   87|      0|                break;
   88|      0|            }
   89|      0|            case column_state::label:
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|            {
   91|      0|                switch (*p)
   92|      0|                {
   93|      0|                case ',':
  ------------------
  |  Branch (93:17): [True: 0, False: 0]
  ------------------
   94|      0|                    cont.push_back(buffer);
   95|      0|                    buffer.clear();
   96|      0|                    ++p;
   97|      0|                    state = column_state::sequence;
   98|      0|                    break;
   99|      0|                default:
  ------------------
  |  Branch (99:17): [True: 0, False: 0]
  ------------------
  100|      0|                    buffer.push_back(*p);
  101|      0|                    ++p;
  102|      0|                    break;
  103|      0|                }
  104|      0|                break;
  105|      0|            }
  106|      0|        }
  107|      0|    }
  108|  6.98k|    if (state == column_state::label)
  ------------------
  |  Branch (108:9): [True: 0, False: 6.98k]
  ------------------
  109|      0|    {
  110|      0|        cont.push_back(buffer);
  111|      0|        buffer.clear();
  112|      0|    }
  113|       |
  114|  6.98k|} // namespace detail
_ZN8jsoncons3csv24basic_csv_decode_optionsIcEC1Ev:
  495|  3.49k|        : assume_header_(false),
  496|  3.49k|          ignore_empty_values_(false),
  497|  3.49k|          ignore_empty_lines_(true),
  498|  3.49k|          trim_leading_(false),
  499|  3.49k|          trim_trailing_(false),
  500|  3.49k|          trim_leading_inside_quotes_(false),
  501|  3.49k|          trim_trailing_inside_quotes_(false),
  502|  3.49k|          unquoted_empty_value_is_null_(false),
  503|  3.49k|          infer_types_(true),
  504|  3.49k|          lossless_number_(false)
  505|  3.49k|    {}
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE13assume_headerEv:
  540|  6.98k|    {
  541|  6.98k|        return assume_header_;
  542|  6.98k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE15comment_starterEv:
  600|  3.49k|    {
  601|  3.49k|        return comment_starter_;
  602|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE12header_linesEv:
  535|  3.49k|    {
  536|  3.49k|        return (assume_header_ && header_lines_ <= 1) ? 1 : header_lines_;
  ------------------
  |  Branch (536:17): [True: 0, False: 3.49k]
  |  Branch (536:35): [True: 0, False: 0]
  ------------------
  537|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE19ignore_empty_valuesEv:
  545|  3.49k|    {
  546|  3.49k|        return ignore_empty_values_;
  547|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE18ignore_empty_linesEv:
  550|  3.49k|    {
  551|  3.49k|        return ignore_empty_lines_;
  552|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE11infer_typesEv:
  590|  3.49k|    {
  591|  3.49k|        return infer_types_;
  592|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE15lossless_numberEv:
  595|  3.49k|    {
  596|  3.49k|        return lossless_number_;
  597|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE12mapping_kindEv:
  605|  3.49k|    {
  606|  3.49k|        return mapping_kind_ != csv_mapping_kind() ? mapping_kind_ : (assume_header() || this->column_names().size() > 0 ? csv_mapping_kind::n_objects : csv_mapping_kind::n_rows);
  ------------------
  |  Branch (606:16): [True: 0, False: 3.49k]
  |  Branch (606:71): [True: 0, False: 3.49k]
  |  Branch (606:90): [True: 0, False: 3.49k]
  ------------------
  607|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE9max_linesEv:
  610|  3.49k|    {
  611|  3.49k|        return max_lines_;
  612|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE12trim_leadingEv:
  555|  3.49k|    {
  556|  3.49k|        return trim_leading_;
  557|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE26trim_leading_inside_quotesEv:
  565|  3.49k|    {
  566|  3.49k|        return trim_leading_inside_quotes_;
  567|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE13trim_trailingEv:
  560|  3.49k|    {
  561|  3.49k|        return trim_trailing_;
  562|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE27trim_trailing_inside_quotesEv:
  570|  3.49k|    {
  571|  3.49k|        return trim_trailing_inside_quotes_;
  572|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE28unquoted_empty_value_is_nullEv:
  585|  3.49k|    {
  586|  3.49k|        return unquoted_empty_value_is_null_;
  587|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_str_to_infEv:
  394|  3.49k|    {
  395|  3.49k|        return enable_str_to_inf_;
  396|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE20enable_str_to_neginfEv:
  404|  3.49k|    {
  405|  3.49k|        return enable_str_to_neginf_ || enable_str_to_inf_;
  ------------------
  |  Branch (405:16): [True: 0, False: 3.49k]
  |  Branch (405:41): [True: 0, False: 3.49k]
  ------------------
  406|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_options_commonIcE17enable_str_to_nanEv:
  384|  3.49k|    {
  385|  3.49k|        return enable_str_to_nan_;
  386|  3.49k|    }
_ZN8jsoncons3csv6detail18parse_column_typesIcNSt3__16vectorINS0_13csv_type_infoENS3_9allocatorIS5_EEEEEEvRKNS3_12basic_stringIT_NS3_11char_traitsISA_EENS6_ISA_EEEERT0_:
  119|  3.49k|{
  120|  3.49k|    const std::map<jsoncons::basic_string_view<CharT>,csv_column_type> type_dictionary =
  121|  3.49k|    {
  122|       |
  123|  3.49k|        {JSONCONS_STRING_VIEW_CONSTANT(CharT,"string"),csv_column_type::string_t},
  ------------------
  |  |  325|  3.49k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  3.49k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  3.49k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|  3.49k|        {JSONCONS_STRING_VIEW_CONSTANT(CharT,"integer"),csv_column_type::integer_t},
  ------------------
  |  |  325|  3.49k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  3.49k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  3.49k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|  3.49k|        {JSONCONS_STRING_VIEW_CONSTANT(CharT,"float"),csv_column_type::float_t},
  ------------------
  |  |  325|  3.49k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  3.49k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  3.49k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  3.49k|        {JSONCONS_STRING_VIEW_CONSTANT(CharT,"boolean"),csv_column_type::boolean_t}
  ------------------
  |  |  325|  3.49k|#define JSONCONS_STRING_VIEW_CONSTANT(CharT, Str) jsoncons::string_view_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  321|  3.49k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|  3.49k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  127|  3.49k|    };
  128|       |
  129|  3.49k|    column_state state = column_state::sequence;
  130|  3.49k|    int depth = 0;
  131|  3.49k|    std::basic_string<CharT> buffer;
  132|       |
  133|  3.49k|    auto p = types.begin();
  134|  3.49k|    while (p != types.end())
  ------------------
  |  Branch (134:12): [True: 0, False: 3.49k]
  ------------------
  135|      0|    {
  136|      0|        switch (state)
  ------------------
  |  Branch (136:17): [True: 0, False: 0]
  ------------------
  137|      0|        {
  138|      0|            case column_state::sequence:
  ------------------
  |  Branch (138:13): [True: 0, False: 0]
  ------------------
  139|      0|            {
  140|      0|                switch (*p)
  141|      0|                {
  142|      0|                case ' ': case '\t':case '\r': case '\n':
  ------------------
  |  Branch (142:17): [True: 0, False: 0]
  |  Branch (142:27): [True: 0, False: 0]
  |  Branch (142:37): [True: 0, False: 0]
  |  Branch (142:48): [True: 0, False: 0]
  ------------------
  143|      0|                    ++p;
  144|      0|                    break;
  145|      0|                case '[':
  ------------------
  |  Branch (145:17): [True: 0, False: 0]
  ------------------
  146|      0|                    ++depth;
  147|      0|                    ++p;
  148|      0|                    break;
  149|      0|                case ']':
  ------------------
  |  Branch (149:17): [True: 0, False: 0]
  ------------------
  150|      0|                    JSONCONS_ASSERT(depth > 0);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  151|      0|                    --depth;
  152|      0|                    ++p;
  153|      0|                    break;
  154|      0|                case '*':
  ------------------
  |  Branch (154:17): [True: 0, False: 0]
  ------------------
  155|      0|                    {
  156|      0|                        JSONCONS_ASSERT(column_types.size() != 0);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  157|      0|                        std::size_t offset = 0;
  158|      0|                        std::size_t level = column_types.size() > 0 ? column_types.back().level: 0;
  ------------------
  |  Branch (158:45): [True: 0, False: 0]
  ------------------
  159|      0|                        if (level > 0)
  ------------------
  |  Branch (159:29): [True: 0, False: 0]
  ------------------
  160|      0|                        {
  161|      0|                            for (auto it = column_types.rbegin();
  162|      0|                                 it != column_types.rend() && level == (*it).level;
  ------------------
  |  Branch (162:34): [True: 0, False: 0]
  |  Branch (162:34): [True: 0, False: 0]
  |  Branch (162:63): [True: 0, False: 0]
  ------------------
  163|      0|                                 ++it)
  164|      0|                            {
  165|      0|                                ++offset;
  166|      0|                            }
  167|      0|                        }
  168|      0|                        else
  169|      0|                        {
  170|      0|                            offset = 1;
  171|      0|                        }
  172|      0|                        column_types.emplace_back(csv_column_type::repeat_t,depth,offset);
  173|      0|                        ++p;
  174|      0|                        break;
  175|      0|                    }
  176|      0|                default:
  ------------------
  |  Branch (176:17): [True: 0, False: 0]
  ------------------
  177|      0|                    buffer.clear();
  178|      0|                    state = column_state::label;
  179|      0|                    break;
  180|      0|                }
  181|      0|                break;
  182|      0|            }
  183|      0|            case column_state::label:
  ------------------
  |  Branch (183:13): [True: 0, False: 0]
  ------------------
  184|      0|            {
  185|      0|                switch (*p)
  186|      0|                {
  187|      0|                    case '*':
  ------------------
  |  Branch (187:21): [True: 0, False: 0]
  ------------------
  188|      0|                    {
  189|      0|                        auto it = type_dictionary.find(buffer);
  190|      0|                        if (it != type_dictionary.end())
  ------------------
  |  Branch (190:29): [True: 0, False: 0]
  ------------------
  191|      0|                        {
  192|      0|                            column_types.emplace_back((*it).second,depth);
  193|      0|                            buffer.clear();
  194|      0|                        }
  195|      0|                        else
  196|      0|                        {
  197|      0|                            JSONCONS_ASSERT(false);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, Folded]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  198|      0|                        }
  199|      0|                        state = column_state::sequence;
  200|      0|                        break;
  201|      0|                    }
  202|      0|                    case ',':
  ------------------
  |  Branch (202:21): [True: 0, False: 0]
  ------------------
  203|      0|                    {
  204|      0|                        auto it = type_dictionary.find(buffer);
  205|      0|                        if (it != type_dictionary.end())
  ------------------
  |  Branch (205:29): [True: 0, False: 0]
  ------------------
  206|      0|                        {
  207|      0|                            column_types.emplace_back((*it).second,depth);
  208|      0|                            buffer.clear();
  209|      0|                        }
  210|      0|                        else
  211|      0|                        {
  212|      0|                            JSONCONS_ASSERT(false);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, Folded]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  213|      0|                        }
  214|      0|                        ++p;
  215|      0|                        state = column_state::sequence;
  216|      0|                        break;
  217|      0|                    }
  218|      0|                    case ']':
  ------------------
  |  Branch (218:21): [True: 0, False: 0]
  ------------------
  219|      0|                    {
  220|      0|                        JSONCONS_ASSERT(depth > 0);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  221|      0|                        auto it = type_dictionary.find(buffer);
  222|      0|                        if (it != type_dictionary.end())
  ------------------
  |  Branch (222:29): [True: 0, False: 0]
  ------------------
  223|      0|                        {
  224|      0|                            column_types.emplace_back((*it).second,depth);
  225|      0|                            buffer.clear();
  226|      0|                        }
  227|      0|                        else
  228|      0|                        {
  229|      0|                            JSONCONS_ASSERT(false);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, Folded]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  230|      0|                        }
  231|      0|                        --depth;
  232|      0|                        ++p;
  233|      0|                        state = column_state::sequence;
  234|      0|                        break;
  235|      0|                    }
  236|      0|                    default:
  ------------------
  |  Branch (236:21): [True: 0, False: 0]
  ------------------
  237|      0|                    {
  238|      0|                        buffer.push_back(*p);
  239|      0|                        ++p;
  240|      0|                        break;
  241|      0|                    }
  242|      0|                }
  243|      0|                break;
  244|      0|            }
  245|      0|        }
  246|      0|    }
  247|  3.49k|    if (state == column_state::label)
  ------------------
  |  Branch (247:9): [True: 0, False: 3.49k]
  ------------------
  248|      0|    {
  249|      0|        auto it = type_dictionary.find(buffer);
  250|      0|        if (it != type_dictionary.end())
  ------------------
  |  Branch (250:13): [True: 0, False: 0]
  ------------------
  251|      0|        {
  252|      0|            column_types.emplace_back((*it).second,depth);
  253|      0|            buffer.clear();
  254|      0|        }
  255|      0|        else
  256|      0|        {
  257|      0|            JSONCONS_ASSERT(false);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, Folded]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  258|      0|        }
  259|      0|    }
  260|  3.49k|}
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE12column_typesEv:
  615|  3.49k|    {
  616|  3.49k|        return column_types_;
  617|  3.49k|    }
_ZNK8jsoncons3csv24basic_csv_decode_optionsIcE15column_defaultsEv:
  620|  3.49k|    {
  621|  3.49k|        return column_defaults_;
  622|  3.49k|    }

_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEED2Ev:
  737|  3.49k|    {
  738|  3.49k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEEC2ERKNS0_24basic_csv_decode_optionsIcEERKS4_:
  639|  3.49k|       : alloc_(alloc),
  640|  3.49k|         state_(csv_parse_state::start),
  641|  3.49k|         err_handler_(default_csv_parsing()),
  642|  3.49k|         assume_header_(options.assume_header()),                  
  643|  3.49k|         comment_starter_(options.comment_starter()),
  644|  3.49k|         field_delimiter_(options.field_delimiter()),
  645|  3.49k|         header_lines_(options.header_lines()),
  646|  3.49k|         ignore_empty_values_(options.ignore_empty_values()),
  647|  3.49k|         ignore_empty_lines_(options.ignore_empty_lines()),
  648|  3.49k|         infer_types_(options.infer_types()),
  649|  3.49k|         lossless_number_(options.lossless_number()), 
  650|  3.49k|         mapping_kind_(options.mapping_kind()),
  651|  3.49k|         max_lines_(options.max_lines()),
  652|  3.49k|         quote_char_(options.quote_char()),
  653|  3.49k|         quote_escape_char_(options.quote_escape_char()),
  654|  3.49k|         subfield_delimiter_(options.subfield_delimiter()),
  655|  3.49k|         trim_leading_(options.trim_leading()),
  656|  3.49k|         trim_leading_inside_quotes_(options.trim_leading_inside_quotes()),
  657|  3.49k|         trim_trailing_(options.trim_trailing()),
  658|  3.49k|         trim_trailing_inside_quotes_(options.trim_trailing_inside_quotes()),
  659|  3.49k|         unquoted_empty_value_is_null_(options.unquoted_empty_value_is_null()),
  660|  3.49k|         enable_str_to_inf_(options.enable_str_to_inf()),
  661|  3.49k|         enable_str_to_neginf_(options.enable_str_to_neginf()),
  662|  3.49k|         enable_str_to_nan_(options.enable_str_to_nan()),
  663|  3.49k|         inf_to_str_(options.inf_to_str()),
  664|  3.49k|         neginf_to_str_(options.neginf_to_str()),
  665|  3.49k|         nan_to_str_(options.nan_to_str()),
  666|  3.49k|         m_columns_filter_(alloc),
  667|  3.49k|         stack_(alloc),
  668|  3.49k|         column_names_(alloc),
  669|  3.49k|         column_types_(alloc),
  670|  3.49k|         column_defaults_(alloc),
  671|  3.49k|         state_stack_(alloc),
  672|  3.49k|         buffer_(alloc)
  673|  3.49k|    {
  674|  3.49k|        jsoncons::csv::detail::parse_column_types(options.column_types(), column_types_);
  675|  3.49k|        jsoncons::csv::detail::parse_column_names(options.column_defaults(), column_defaults_);
  676|  3.49k|        jsoncons::csv::detail::parse_column_names(options.column_names(), column_names_);
  677|  3.49k|        min_column_names_ = column_names_.size();
  678|  3.49k|        initialize();
  679|  3.49k|    }
_ZN8jsoncons3csv6detail16m_columns_filterIcNSt3__19allocatorIcEEEC2ERKS5_:
  258|  3.49k|            : alloc_(alloc),
  259|  3.49k|              column_names_(alloc),
  260|  3.49k|              cached_events_(alloc)
  261|  3.49k|        {
  262|  3.49k|        }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE10initializeEv:
 1510|  3.49k|    {
 1511|  3.49k|        stack_.reserve(default_depth);
 1512|  3.49k|        stack_.push_back(csv_mode::initial);
 1513|  3.49k|        stack_.push_back((header_lines_ > 0) ? csv_mode::header : csv_mode::data);
  ------------------
  |  Branch (1513:26): [True: 0, False: 3.49k]
  ------------------
 1514|  3.49k|    }
_ZNK8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE7stoppedEv:
  772|  30.0k|    {
  773|  30.0k|        return !more_;
  774|  30.0k|    }
_ZNK8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE16source_exhaustedEv:
  777|  26.5k|    {
  778|  26.5k|        return input_ptr_ == input_end_;
  779|  26.5k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE6updateEPKcm:
 1492|  6.44k|    {
 1493|  6.44k|        begin_input_ = data;
 1494|  6.44k|        input_end_ = data + length;
 1495|  6.44k|        input_ptr_ = begin_input_;
 1496|  6.44k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE10parse_someERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  826|  26.5k|    {
  827|  26.5k|        basic_json_visitor<CharT>& local_visitor = (mapping_kind_ == csv_mapping_kind::m_columns) 
  ------------------
  |  Branch (827:52): [True: 0, False: 26.5k]
  ------------------
  828|  26.5k|            ? m_columns_filter_ : visitor;
  829|       |
  830|  26.5k|        switch (mapping_kind_)
  831|  26.5k|        {
  832|      0|            case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (832:13): [True: 0, False: 26.5k]
  ------------------
  833|      0|                cursor_mode_ = false;
  834|      0|                break;
  835|  26.5k|            default:
  ------------------
  |  Branch (835:13): [True: 26.5k, False: 0]
  ------------------
  836|  26.5k|                break;
  837|  26.5k|        } 
  838|       |
  839|  26.5k|        const CharT* local_input_end = input_end_;
  840|       |
  841|  26.5k|        if (input_ptr_ == local_input_end && more_)
  ------------------
  |  Branch (841:13): [True: 20.1k, False: 6.44k]
  |  Branch (841:46): [True: 20.1k, False: 0]
  ------------------
  842|  20.1k|        {
  843|  20.1k|            switch (state_)
  844|  20.1k|            {
  845|      1|                case csv_parse_state::start:
  ------------------
  |  Branch (845:17): [True: 1, False: 20.1k]
  ------------------
  846|      1|                    ec = csv_errc::source_error;
  847|      1|                    more_ = false;
  848|      1|                    return;
  849|  3.15k|                case csv_parse_state::before_unquoted_field:
  ------------------
  |  Branch (849:17): [True: 3.15k, False: 16.9k]
  ------------------
  850|  3.15k|                case csv_parse_state::before_last_unquoted_field:
  ------------------
  |  Branch (850:17): [True: 0, False: 20.1k]
  ------------------
  851|  3.15k|                    end_unquoted_string_value(local_visitor, ec);
  852|  3.15k|                    state_ = csv_parse_state::before_last_unquoted_field_tail;
  853|  3.15k|                    break;
  854|  3.14k|                case csv_parse_state::before_last_unquoted_field_tail:
  ------------------
  |  Branch (854:17): [True: 3.14k, False: 16.9k]
  ------------------
  855|  3.14k|                    if (stack_.back() == csv_mode::subfields)
  ------------------
  |  Branch (855:25): [True: 0, False: 3.14k]
  ------------------
  856|      0|                    {
  857|      0|                        stack_.pop_back();
  858|      0|                        local_visitor.end_array(*this, ec);
  859|      0|                        more_ = !cursor_mode_;
  860|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (860:29): [True: 0, False: 0]
  ------------------
  861|      0|                        {
  862|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (862:33): [True: 0, False: 0]
  ------------------
  863|      0|                            {
  864|      0|                                more_ = false;
  865|      0|                            }
  866|      0|                        }
  867|      0|                        --level_;
  868|      0|                    }
  869|  3.14k|                    ++column_index_;
  870|  3.14k|                    state_ = csv_parse_state::end_record;
  871|  3.14k|                    break;
  872|    122|                case csv_parse_state::before_unquoted_string: 
  ------------------
  |  Branch (872:17): [True: 122, False: 20.0k]
  ------------------
  873|    122|                    buffer_.clear();
  874|    122|                    JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|    122|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  875|  3.15k|                case csv_parse_state::unquoted_string: 
  ------------------
  |  Branch (875:17): [True: 3.02k, False: 17.0k]
  ------------------
  876|  3.15k|                    if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (876:25): [True: 0, False: 3.15k]
  |  Branch (876:42): [True: 0, False: 3.15k]
  ------------------
  877|      0|                    {
  878|      0|                        trim_string_buffer(trim_leading_,trim_trailing_);
  879|      0|                    }
  880|  3.15k|                    if (ignore_empty_values_ && buffer_.empty())
  ------------------
  |  Branch (880:25): [True: 0, False: 3.15k]
  |  Branch (880:49): [True: 0, False: 0]
  ------------------
  881|      0|                    {
  882|      0|                        state_ = csv_parse_state::end_record;
  883|      0|                    }
  884|  3.15k|                    else
  885|  3.15k|                    {
  886|  3.15k|                        before_value(local_visitor, ec);
  887|  3.15k|                        state_ = csv_parse_state::before_unquoted_field;
  888|  3.15k|                    }
  889|  3.15k|                    break;
  890|     53|                case csv_parse_state::before_last_quoted_field:
  ------------------
  |  Branch (890:17): [True: 53, False: 20.0k]
  ------------------
  891|     53|                    end_quoted_string_value(local_visitor, ec);
  892|     53|                    ++column_index_;
  893|     53|                    state_ = csv_parse_state::end_record;
  894|     53|                    break;
  895|     53|                case csv_parse_state::escaped_value:
  ------------------
  |  Branch (895:17): [True: 53, False: 20.0k]
  ------------------
  896|     53|                    if (quote_escape_char_ == quote_char_)
  ------------------
  |  Branch (896:25): [True: 53, False: 0]
  ------------------
  897|     53|                    {
  898|     53|                        if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (898:31): [True: 0, False: 53]
  |  Branch (898:55): [True: 0, False: 0]
  ------------------
  899|     53|                        {
  900|     53|                            before_value(local_visitor, ec);
  901|     53|                            ++column_;
  902|     53|                            state_ = csv_parse_state::before_last_quoted_field;
  903|     53|                        }
  904|      0|                        else
  905|      0|                        {
  906|      0|                            state_ = csv_parse_state::end_record;
  907|      0|                        }
  908|     53|                    }
  909|      0|                    else
  910|      0|                    {
  911|      0|                        ec = csv_errc::invalid_escaped_char;
  912|      0|                        more_ = false;
  913|      0|                        return;
  914|      0|                    }
  915|     53|                    break;
  916|  3.44k|                case csv_parse_state::end_record:
  ------------------
  |  Branch (916:17): [True: 3.44k, False: 16.6k]
  ------------------
  917|  3.44k|                    if (column_index_ > 0)
  ------------------
  |  Branch (917:25): [True: 3.21k, False: 223]
  ------------------
  918|  3.21k|                    {
  919|  3.21k|                        end_record(local_visitor, ec);
  920|  3.21k|                    }
  921|  3.44k|                    state_ = csv_parse_state::no_more_records;
  922|  3.44k|                    break;
  923|  3.44k|                case csv_parse_state::no_more_records: 
  ------------------
  |  Branch (923:17): [True: 3.44k, False: 16.6k]
  ------------------
  924|  3.44k|                    switch (stack_.back()) 
  925|  3.44k|                    {
  926|      0|                        case csv_mode::header:
  ------------------
  |  Branch (926:25): [True: 0, False: 3.44k]
  ------------------
  927|      0|                            stack_.pop_back();
  928|      0|                            break;
  929|  3.44k|                        case csv_mode::data:
  ------------------
  |  Branch (929:25): [True: 3.44k, False: 0]
  ------------------
  930|  3.44k|                            stack_.pop_back();
  931|  3.44k|                            break;
  932|      0|                        default:
  ------------------
  |  Branch (932:25): [True: 0, False: 3.44k]
  ------------------
  933|      0|                            break;
  934|  3.44k|                    }
  935|  3.44k|                    local_visitor.end_array(*this, ec);
  936|  3.44k|                    more_ = !cursor_mode_;
  937|  3.44k|                    if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (937:25): [True: 3.44k, False: 0]
  ------------------
  938|  3.44k|                    {
  939|  3.44k|                        if (level() == mark_level_)
  ------------------
  |  Branch (939:29): [True: 0, False: 3.44k]
  ------------------
  940|      0|                        {
  941|      0|                            more_ = false;
  942|      0|                        }
  943|  3.44k|                    }
  944|  3.44k|                    --level_;
  945|       |                    
  946|  3.44k|                    if (mapping_kind_ == csv_mapping_kind::m_columns)
  ------------------
  |  Branch (946:25): [True: 0, False: 3.44k]
  ------------------
  947|      0|                    {
  948|      0|                        if (!m_columns_filter_.done())
  ------------------
  |  Branch (948:29): [True: 0, False: 0]
  ------------------
  949|      0|                        {
  950|      0|                            more_ = m_columns_filter_.replay_parse_events(visitor, actual_cursor_mode_, mark_level_);
  951|      0|                        }
  952|      0|                        else
  953|      0|                        {
  954|      0|                            state_ = csv_parse_state::accept;
  955|      0|                        }
  956|      0|                    }
  957|  3.44k|                    else
  958|  3.44k|                    {
  959|  3.44k|                        state_ = csv_parse_state::accept;
  960|  3.44k|                    }
  961|  3.44k|                    break;
  962|  3.44k|                case csv_parse_state::accept:
  ------------------
  |  Branch (962:17): [True: 3.44k, False: 16.6k]
  ------------------
  963|  3.44k|                    if (!(stack_.size() == 1 && stack_.back() == csv_mode::initial))
  ------------------
  |  Branch (963:27): [True: 3.44k, False: 0]
  |  Branch (963:49): [True: 3.44k, False: 0]
  ------------------
  964|      0|                    {
  965|      0|                        err_handler_(csv_errc::unexpected_eof, *this);
  966|      0|                        ec = csv_errc::unexpected_eof;
  967|      0|                        more_ = false;
  968|      0|                        return;
  969|      0|                    }
  970|  3.44k|                    stack_.pop_back();
  971|  3.44k|                    local_visitor.flush();
  972|  3.44k|                    state_ = csv_parse_state::done;
  973|  3.44k|                    more_ = false;
  974|  3.44k|                    return;
  975|    243|                default:
  ------------------
  |  Branch (975:17): [True: 243, False: 19.8k]
  ------------------
  976|    243|                    state_ = csv_parse_state::end_record;
  977|    243|                    break;
  978|  20.1k|            }
  979|  20.1k|        }
  980|       |
  981|  96.7M|        for (; (input_ptr_ < local_input_end) && more_;)
  ------------------
  |  Branch (981:16): [True: 96.6M, False: 23.0k]
  |  Branch (981:50): [True: 96.6M, False: 2]
  ------------------
  982|  96.6M|        {
  983|  96.6M|            CharT curr_char = *input_ptr_;
  984|       |
  985|  96.6M|            switch (state_) 
  986|  96.6M|            {
  987|  6.04M|                case csv_parse_state::cr:
  ------------------
  |  Branch (987:17): [True: 6.04M, False: 90.6M]
  ------------------
  988|  6.04M|                    ++line_;
  989|  6.04M|                    column_ = 1;
  990|  6.04M|                    switch (*input_ptr_)
  991|  6.04M|                    {
  992|  9.93k|                        case '\n':
  ------------------
  |  Branch (992:25): [True: 9.93k, False: 6.03M]
  ------------------
  993|  9.93k|                            ++input_ptr_;
  994|  9.93k|                            state_ = pop_state();
  995|  9.93k|                            break;
  996|  6.03M|                        default:
  ------------------
  |  Branch (996:25): [True: 6.03M, False: 9.93k]
  ------------------
  997|  6.03M|                            state_ = pop_state();
  998|  6.03M|                            break;
  999|  6.04M|                    }
 1000|  6.04M|                    break;
 1001|  6.04M|                case csv_parse_state::start:
  ------------------
  |  Branch (1001:17): [True: 3.47k, False: 96.6M]
  ------------------
 1002|  3.47k|                    if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1002:25): [True: 3.47k, False: 0]
  ------------------
 1003|  3.47k|                    {
 1004|  3.47k|                        local_visitor.begin_array(semantic_tag::none, *this, ec);
 1005|  3.47k|                        more_ = !cursor_mode_;
 1006|  3.47k|                        ++level_;
 1007|  3.47k|                    }
 1008|  3.47k|                    if (assume_header_ && mapping_kind_ == csv_mapping_kind::n_rows && !column_names_.empty())
  ------------------
  |  Branch (1008:25): [True: 0, False: 3.47k]
  |  Branch (1008:43): [True: 0, False: 0]
  |  Branch (1008:88): [True: 0, False: 0]
  ------------------
 1009|      0|                    {
 1010|      0|                        column_index_ = 0; 
 1011|      0|                        local_visitor.begin_array(semantic_tag::none, *this, ec);
 1012|      0|                        ++level_;
 1013|      0|                        more_ = !cursor_mode_;
 1014|      0|                        state_ = csv_parse_state::expect_comment_or_record;
 1015|      0|                    }
 1016|  3.47k|                    else
 1017|  3.47k|                    {
 1018|  3.47k|                        state_ = csv_parse_state::expect_comment_or_record;
 1019|  3.47k|                    }
 1020|  3.47k|                    break;
 1021|  2.27M|                case csv_parse_state::comment: 
  ------------------
  |  Branch (1021:17): [True: 2.27M, False: 94.4M]
  ------------------
 1022|  2.27M|                    switch (curr_char)
 1023|  2.27M|                    {
 1024|  68.3k|                        case '\n':
  ------------------
  |  Branch (1024:25): [True: 68.3k, False: 2.20M]
  ------------------
 1025|  68.3k|                        {
 1026|  68.3k|                            ++line_;
 1027|  68.3k|                            if (stack_.back() == csv_mode::header)
  ------------------
  |  Branch (1027:33): [True: 0, False: 68.3k]
  ------------------
 1028|      0|                            {
 1029|      0|                                ++header_line_offset_;
 1030|      0|                            }
 1031|  68.3k|                            column_ = 1;
 1032|  68.3k|                            state_ = csv_parse_state::expect_comment_or_record;
 1033|  68.3k|                            break;
 1034|      0|                        }
 1035|  1.65k|                        case '\r':
  ------------------
  |  Branch (1035:25): [True: 1.65k, False: 2.27M]
  ------------------
 1036|  1.65k|                            ++line_;
 1037|  1.65k|                            if (stack_.back() == csv_mode::header)
  ------------------
  |  Branch (1037:33): [True: 0, False: 1.65k]
  ------------------
 1038|      0|                            {
 1039|      0|                                ++header_line_offset_;
 1040|      0|                            }
 1041|  1.65k|                            column_ = 1;
 1042|  1.65k|                            state_ = csv_parse_state::expect_comment_or_record;
 1043|  1.65k|                            push_state(state_);
 1044|  1.65k|                            state_ = csv_parse_state::cr;
 1045|  1.65k|                            break;
 1046|  2.20M|                        default:
  ------------------
  |  Branch (1046:25): [True: 2.20M, False: 70.0k]
  ------------------
 1047|  2.20M|                            ++column_;
 1048|  2.20M|                            break;
 1049|  2.27M|                    }
 1050|  2.27M|                    ++input_ptr_;
 1051|  2.27M|                    break;
 1052|       |                
 1053|  2.09M|                case csv_parse_state::expect_comment_or_record:
  ------------------
  |  Branch (1053:17): [True: 2.09M, False: 94.5M]
  ------------------
 1054|  2.09M|                    buffer_.clear();
 1055|  2.09M|                    if (curr_char == comment_starter_)
  ------------------
  |  Branch (1055:25): [True: 70.0k, False: 2.02M]
  ------------------
 1056|  70.0k|                    {
 1057|  70.0k|                        state_ = csv_parse_state::comment;
 1058|  70.0k|                        ++column_;
 1059|  70.0k|                        ++input_ptr_;
 1060|  70.0k|                    }
 1061|  2.02M|                    else
 1062|  2.02M|                    {
 1063|  2.02M|                        state_ = csv_parse_state::expect_record;
 1064|  2.02M|                    }
 1065|  2.09M|                    break;
 1066|  1.02M|                case csv_parse_state::quoted_string: 
  ------------------
  |  Branch (1066:17): [True: 1.02M, False: 95.6M]
  ------------------
 1067|  1.02M|                    {
 1068|  1.02M|                        if (curr_char == quote_escape_char_)
  ------------------
  |  Branch (1068:29): [True: 5.55k, False: 1.02M]
  ------------------
 1069|  5.55k|                        {
 1070|  5.55k|                            state_ = csv_parse_state::escaped_value;
 1071|  5.55k|                        }
 1072|  1.02M|                        else if (curr_char == quote_char_)
  ------------------
  |  Branch (1072:34): [True: 0, False: 1.02M]
  ------------------
 1073|      0|                        {
 1074|      0|                            state_ = csv_parse_state::between_values;
 1075|      0|                        }
 1076|  1.02M|                        else
 1077|  1.02M|                        {
 1078|  1.02M|                            buffer_.push_back(static_cast<CharT>(curr_char));
 1079|  1.02M|                        }
 1080|  1.02M|                    }
 1081|  1.02M|                    ++column_;
 1082|  1.02M|                    ++input_ptr_;
 1083|  1.02M|                    break;
 1084|  5.49k|                case csv_parse_state::escaped_value: 
  ------------------
  |  Branch (1084:17): [True: 5.49k, False: 96.6M]
  ------------------
 1085|  5.49k|                    {
 1086|  5.49k|                        if (curr_char == quote_char_)
  ------------------
  |  Branch (1086:29): [True: 1.42k, False: 4.07k]
  ------------------
 1087|  1.42k|                        {
 1088|  1.42k|                            buffer_.push_back(static_cast<CharT>(curr_char));
 1089|  1.42k|                            state_ = csv_parse_state::quoted_string;
 1090|  1.42k|                            ++column_;
 1091|  1.42k|                            ++input_ptr_;
 1092|  1.42k|                        }
 1093|  4.07k|                        else if (quote_escape_char_ == quote_char_)
  ------------------
  |  Branch (1093:34): [True: 4.07k, False: 0]
  ------------------
 1094|  4.07k|                        {
 1095|  4.07k|                            state_ = csv_parse_state::between_values;
 1096|  4.07k|                        }
 1097|      0|                        else
 1098|      0|                        {
 1099|      0|                            ec = csv_errc::invalid_escaped_char;
 1100|      0|                            more_ = false;
 1101|      0|                            return;
 1102|      0|                        }
 1103|  5.49k|                    }
 1104|  5.49k|                    break;
 1105|  5.49k|                case csv_parse_state::between_values:
  ------------------
  |  Branch (1105:17): [True: 4.44k, False: 96.6M]
  ------------------
 1106|  4.44k|                    switch (curr_char)
 1107|  4.44k|                    {
 1108|  1.51k|                        case '\r':
  ------------------
  |  Branch (1108:25): [True: 1.51k, False: 2.93k]
  ------------------
 1109|  2.93k|                        case '\n':
  ------------------
  |  Branch (1109:25): [True: 1.41k, False: 3.02k]
  ------------------
 1110|  2.93k|                        {
 1111|  2.93k|                            if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1111:33): [True: 0, False: 2.93k]
  |  Branch (1111:50): [True: 0, False: 2.93k]
  ------------------
 1112|      0|                            {
 1113|      0|                                trim_string_buffer(trim_leading_,trim_trailing_);
 1114|      0|                            }
 1115|  2.93k|                            if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1115:35): [True: 0, False: 2.93k]
  |  Branch (1115:59): [True: 0, False: 0]
  ------------------
 1116|  2.93k|                            {
 1117|  2.93k|                                before_value(local_visitor, ec);
 1118|  2.93k|                                state_ = csv_parse_state::before_last_quoted_field;
 1119|  2.93k|                            }
 1120|      0|                            else
 1121|      0|                            {
 1122|      0|                                state_ = csv_parse_state::end_record;
 1123|      0|                            }
 1124|  2.93k|                            break;
 1125|  1.51k|                        }
 1126|  1.51k|                        default:
  ------------------
  |  Branch (1126:25): [True: 1.51k, False: 2.93k]
  ------------------
 1127|  1.51k|                            if (curr_char == field_delimiter_)
  ------------------
  |  Branch (1127:33): [True: 1.09k, False: 418]
  ------------------
 1128|  1.09k|                            {
 1129|  1.09k|                                if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1129:37): [True: 0, False: 1.09k]
  |  Branch (1129:54): [True: 0, False: 1.09k]
  ------------------
 1130|      0|                                {
 1131|      0|                                    trim_string_buffer(trim_leading_,trim_trailing_);
 1132|      0|                                }
 1133|  1.09k|                                before_value(local_visitor, ec);
 1134|  1.09k|                                state_ = csv_parse_state::before_quoted_field;
 1135|  1.09k|                            }
 1136|    418|                            else if (subfield_delimiter_ != char_type() && curr_char == subfield_delimiter_)
  ------------------
  |  Branch (1136:38): [True: 0, False: 418]
  |  Branch (1136:76): [True: 0, False: 0]
  ------------------
 1137|      0|                            {
 1138|      0|                                if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1138:37): [True: 0, False: 0]
  |  Branch (1138:54): [True: 0, False: 0]
  ------------------
 1139|      0|                                {
 1140|      0|                                    trim_string_buffer(trim_leading_,trim_trailing_);
 1141|      0|                                }
 1142|      0|                                before_value(local_visitor, ec);
 1143|      0|                                state_ = csv_parse_state::before_quoted_subfield;
 1144|      0|                            }
 1145|    418|                            else if (curr_char == ' ' || curr_char == '\t')
  ------------------
  |  Branch (1145:38): [True: 194, False: 224]
  |  Branch (1145:58): [True: 194, False: 30]
  ------------------
 1146|    388|                            {
 1147|    388|                                ++column_;
 1148|    388|                                ++input_ptr_;
 1149|    388|                            }
 1150|     30|                            else
 1151|     30|                            {
 1152|     30|                                ec = csv_errc::unexpected_char_between_fields;
 1153|     30|                                more_ = false;
 1154|     30|                                return;
 1155|     30|                            }
 1156|  1.48k|                            break;
 1157|  4.44k|                    }
 1158|  4.41k|                    break;
 1159|  12.3M|                case csv_parse_state::before_unquoted_string: 
  ------------------
  |  Branch (1159:17): [True: 12.3M, False: 84.3M]
  ------------------
 1160|  12.3M|                {
 1161|  12.3M|                    buffer_.clear();
 1162|  12.3M|                    state_ = csv_parse_state::unquoted_string;
 1163|  12.3M|                    break;
 1164|  4.44k|                }
 1165|  12.3M|                case csv_parse_state::before_unquoted_field:
  ------------------
  |  Branch (1165:17): [True: 12.3M, False: 84.3M]
  ------------------
 1166|  12.3M|                    end_unquoted_string_value(local_visitor, ec);
 1167|  12.3M|                    state_ = csv_parse_state::before_unquoted_field_tail;
 1168|  12.3M|                    break;
 1169|  12.3M|                case csv_parse_state::before_unquoted_field_tail:
  ------------------
  |  Branch (1169:17): [True: 12.3M, False: 84.3M]
  ------------------
 1170|  12.3M|                {
 1171|  12.3M|                    if (stack_.back() == csv_mode::subfields)
  ------------------
  |  Branch (1171:25): [True: 0, False: 12.3M]
  ------------------
 1172|      0|                    {
 1173|      0|                        stack_.pop_back();
 1174|      0|                        local_visitor.end_array(*this, ec);
 1175|      0|                        more_ = !cursor_mode_;
 1176|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1176:29): [True: 0, False: 0]
  ------------------
 1177|      0|                        {
 1178|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1178:33): [True: 0, False: 0]
  ------------------
 1179|      0|                            {
 1180|      0|                                more_ = false;
 1181|      0|                            }
 1182|      0|                        }
 1183|      0|                        --level_;
 1184|      0|                    }
 1185|  12.3M|                    ++column_index_;
 1186|  12.3M|                    state_ = csv_parse_state::before_unquoted_string;
 1187|  12.3M|                    ++column_;
 1188|  12.3M|                    ++input_ptr_;
 1189|  12.3M|                    break;
 1190|  4.44k|                }
 1191|      0|                case csv_parse_state::before_unquoted_field_tail1:
  ------------------
  |  Branch (1191:17): [True: 0, False: 96.6M]
  ------------------
 1192|      0|                {
 1193|      0|                    if (stack_.back() == csv_mode::subfields)
  ------------------
  |  Branch (1193:25): [True: 0, False: 0]
  ------------------
 1194|      0|                    {
 1195|      0|                        stack_.pop_back();
 1196|      0|                        local_visitor.end_array(*this, ec);
 1197|      0|                        more_ = !cursor_mode_;
 1198|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1198:29): [True: 0, False: 0]
  ------------------
 1199|      0|                        {
 1200|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1200:33): [True: 0, False: 0]
  ------------------
 1201|      0|                            {
 1202|      0|                                more_ = false;
 1203|      0|                            }
 1204|      0|                        }
 1205|      0|                        --level_;
 1206|      0|                    }
 1207|      0|                    state_ = csv_parse_state::end_record;
 1208|      0|                    ++column_;
 1209|      0|                    ++input_ptr_;
 1210|      0|                    break;
 1211|  4.44k|                }
 1212|       |
 1213|   144k|                case csv_parse_state::before_last_unquoted_field:
  ------------------
  |  Branch (1213:17): [True: 144k, False: 96.5M]
  ------------------
 1214|   144k|                    end_unquoted_string_value(local_visitor, ec);
 1215|   144k|                    state_ = csv_parse_state::before_last_unquoted_field_tail;
 1216|   144k|                    break;
 1217|       |
 1218|   144k|                case csv_parse_state::before_last_unquoted_field_tail:
  ------------------
  |  Branch (1218:17): [True: 144k, False: 96.5M]
  ------------------
 1219|   144k|                    if (stack_.back() == csv_mode::subfields)
  ------------------
  |  Branch (1219:25): [True: 0, False: 144k]
  ------------------
 1220|      0|                    {
 1221|      0|                        stack_.pop_back();
 1222|      0|                        local_visitor.end_array(*this, ec);
 1223|      0|                        more_ = !cursor_mode_;
 1224|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1224:29): [True: 0, False: 0]
  ------------------
 1225|      0|                        {
 1226|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1226:33): [True: 0, False: 0]
  ------------------
 1227|      0|                            {
 1228|      0|                                more_ = false;
 1229|      0|                            }
 1230|      0|                        }
 1231|      0|                        --level_;
 1232|      0|                    }
 1233|   144k|                    ++column_index_;
 1234|   144k|                    state_ = csv_parse_state::end_record;
 1235|   144k|                    break;
 1236|       |
 1237|      0|                case csv_parse_state::before_unquoted_subfield:
  ------------------
  |  Branch (1237:17): [True: 0, False: 96.6M]
  ------------------
 1238|      0|                    if (stack_.back() == csv_mode::data)
  ------------------
  |  Branch (1238:25): [True: 0, False: 0]
  ------------------
 1239|      0|                    {
 1240|      0|                        stack_.push_back(csv_mode::subfields);
 1241|      0|                        local_visitor.begin_array(semantic_tag::none, *this, ec);
 1242|      0|                        more_ = !cursor_mode_;
 1243|      0|                        ++level_;
 1244|      0|                    }
 1245|      0|                    state_ = csv_parse_state::before_unquoted_subfield_tail;
 1246|      0|                    break; 
 1247|      0|                case csv_parse_state::before_unquoted_subfield_tail:
  ------------------
  |  Branch (1247:17): [True: 0, False: 96.6M]
  ------------------
 1248|      0|                    end_unquoted_string_value(local_visitor, ec);
 1249|      0|                    state_ = csv_parse_state::before_unquoted_string;
 1250|      0|                    ++column_;
 1251|      0|                    ++input_ptr_;
 1252|      0|                    break;
 1253|  1.09k|                case csv_parse_state::before_quoted_field:
  ------------------
  |  Branch (1253:17): [True: 1.09k, False: 96.6M]
  ------------------
 1254|  1.09k|                    end_quoted_string_value(local_visitor, ec);
 1255|  1.09k|                    state_ = csv_parse_state::before_unquoted_field_tail; // return to unquoted
 1256|  1.09k|                    break;
 1257|      0|                case csv_parse_state::before_quoted_subfield:
  ------------------
  |  Branch (1257:17): [True: 0, False: 96.6M]
  ------------------
 1258|      0|                    if (stack_.back() == csv_mode::data)
  ------------------
  |  Branch (1258:25): [True: 0, False: 0]
  ------------------
 1259|      0|                    {
 1260|      0|                        stack_.push_back(csv_mode::subfields);
 1261|      0|                        local_visitor.begin_array(semantic_tag::none, *this, ec);
 1262|      0|                        more_ = !cursor_mode_;
 1263|      0|                        ++level_;
 1264|      0|                    }
 1265|      0|                    state_ = csv_parse_state::before_quoted_subfield_tail;
 1266|      0|                    break; 
 1267|      0|                case csv_parse_state::before_quoted_subfield_tail:
  ------------------
  |  Branch (1267:17): [True: 0, False: 96.6M]
  ------------------
 1268|      0|                    end_quoted_string_value(local_visitor, ec);
 1269|      0|                    state_ = csv_parse_state::before_unquoted_string;
 1270|      0|                    ++column_;
 1271|      0|                    ++input_ptr_;
 1272|      0|                    break;
 1273|  2.93k|                case csv_parse_state::before_last_quoted_field:
  ------------------
  |  Branch (1273:17): [True: 2.93k, False: 96.6M]
  ------------------
 1274|  2.93k|                    end_quoted_string_value(local_visitor, ec);
 1275|  2.93k|                    state_ = csv_parse_state::before_last_quoted_field_tail;
 1276|  2.93k|                    break;
 1277|  2.93k|                case csv_parse_state::before_last_quoted_field_tail:
  ------------------
  |  Branch (1277:17): [True: 2.93k, False: 96.6M]
  ------------------
 1278|  2.93k|                    if (stack_.back() == csv_mode::subfields)
  ------------------
  |  Branch (1278:25): [True: 0, False: 2.93k]
  ------------------
 1279|      0|                    {
 1280|      0|                        stack_.pop_back();
 1281|      0|                        local_visitor.end_array(*this, ec);
 1282|      0|                        more_ = !cursor_mode_;
 1283|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1283:29): [True: 0, False: 0]
  ------------------
 1284|      0|                        {
 1285|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1285:33): [True: 0, False: 0]
  ------------------
 1286|      0|                            {
 1287|      0|                                more_ = false;
 1288|      0|                            }
 1289|      0|                        }
 1290|      0|                        --level_;
 1291|      0|                    }
 1292|  2.93k|                    ++column_index_;
 1293|  2.93k|                    state_ = csv_parse_state::end_record;
 1294|  2.93k|                    break;
 1295|  39.7M|                case csv_parse_state::unquoted_string: 
  ------------------
  |  Branch (1295:17): [True: 39.7M, False: 56.9M]
  ------------------
 1296|  39.7M|                {
 1297|  39.7M|                    switch (curr_char)
 1298|  39.7M|                    {
 1299|  86.8k|                        case '\n':
  ------------------
  |  Branch (1299:25): [True: 86.8k, False: 39.6M]
  ------------------
 1300|   144k|                        case '\r':
  ------------------
  |  Branch (1300:25): [True: 57.4k, False: 39.6M]
  ------------------
 1301|   144k|                        {
 1302|   144k|                            if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1302:33): [True: 0, False: 144k]
  |  Branch (1302:50): [True: 0, False: 144k]
  ------------------
 1303|      0|                            {
 1304|      0|                                trim_string_buffer(trim_leading_,trim_trailing_);
 1305|      0|                            }
 1306|   144k|                            if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1306:35): [True: 0, False: 144k]
  |  Branch (1306:59): [True: 0, False: 0]
  ------------------
 1307|   144k|                            {
 1308|   144k|                                before_value(local_visitor, ec);
 1309|   144k|                                state_ = csv_parse_state::before_last_unquoted_field;
 1310|   144k|                            }
 1311|      0|                            else
 1312|      0|                            {
 1313|      0|                                state_ = csv_parse_state::end_record;
 1314|      0|                            }
 1315|   144k|                            break;
 1316|  86.8k|                        }
 1317|  39.5M|                        default:
  ------------------
  |  Branch (1317:25): [True: 39.5M, False: 144k]
  ------------------
 1318|  39.5M|                            if (curr_char == field_delimiter_)
  ------------------
  |  Branch (1318:33): [True: 12.3M, False: 27.2M]
  ------------------
 1319|  12.3M|                            {
 1320|  12.3M|                                if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1320:37): [True: 0, False: 12.3M]
  |  Branch (1320:54): [True: 0, False: 12.3M]
  ------------------
 1321|      0|                                {
 1322|      0|                                    trim_string_buffer(trim_leading_,trim_trailing_);
 1323|      0|                                }
 1324|  12.3M|                                before_value(local_visitor, ec);
 1325|  12.3M|                                state_ = csv_parse_state::before_unquoted_field;
 1326|  12.3M|                            }
 1327|  27.2M|                            else if (subfield_delimiter_ != char_type() && curr_char == subfield_delimiter_)
  ------------------
  |  Branch (1327:38): [True: 0, False: 27.2M]
  |  Branch (1327:76): [True: 0, False: 0]
  ------------------
 1328|      0|                            {
 1329|      0|                                if (trim_leading_ || trim_trailing_)
  ------------------
  |  Branch (1329:37): [True: 0, False: 0]
  |  Branch (1329:54): [True: 0, False: 0]
  ------------------
 1330|      0|                                {
 1331|      0|                                    trim_string_buffer(trim_leading_,trim_trailing_);
 1332|      0|                                }
 1333|      0|                                before_value(local_visitor, ec);
 1334|      0|                                state_ = csv_parse_state::before_unquoted_subfield;
 1335|      0|                            }
 1336|  27.2M|                            else if (curr_char == quote_char_)
  ------------------
  |  Branch (1336:38): [True: 1.44k, False: 27.2M]
  ------------------
 1337|  1.44k|                            {
 1338|  1.44k|                                buffer_.clear();
 1339|  1.44k|                                state_ = csv_parse_state::quoted_string;
 1340|  1.44k|                                ++column_;
 1341|  1.44k|                                ++input_ptr_;
 1342|  1.44k|                            }
 1343|  27.2M|                            else
 1344|  27.2M|                            {
 1345|  27.2M|                                buffer_.push_back(static_cast<CharT>(curr_char));
 1346|  27.2M|                                ++column_;
 1347|  27.2M|                                ++input_ptr_;
 1348|  27.2M|                            }
 1349|  39.5M|                            break;
 1350|  39.7M|                    }
 1351|  39.7M|                    break;
 1352|  39.7M|                }
 1353|  39.7M|                case csv_parse_state::expect_record: 
  ------------------
  |  Branch (1353:17): [True: 8.00M, False: 88.6M]
  ------------------
 1354|  8.00M|                {
 1355|  8.00M|                    switch (curr_char)
 1356|  8.00M|                    {
 1357|  1.87M|                        case '\n':
  ------------------
  |  Branch (1357:25): [True: 1.87M, False: 6.13M]
  ------------------
 1358|  1.87M|                        {
 1359|  1.87M|                            if (!ignore_empty_lines_)
  ------------------
  |  Branch (1359:33): [True: 0, False: 1.87M]
  ------------------
 1360|      0|                            {
 1361|      0|                                begin_record(local_visitor, ec);
 1362|      0|                                state_ = csv_parse_state::end_record;
 1363|      0|                            }
 1364|  1.87M|                            else
 1365|  1.87M|                            {
 1366|  1.87M|                                ++line_;
 1367|  1.87M|                                column_ = 1;
 1368|  1.87M|                                state_ = csv_parse_state::expect_comment_or_record;
 1369|  1.87M|                                ++input_ptr_;
 1370|  1.87M|                            }
 1371|  1.87M|                            break;
 1372|      0|                        }
 1373|  5.98M|                        case '\r':
  ------------------
  |  Branch (1373:25): [True: 5.98M, False: 2.02M]
  ------------------
 1374|  5.98M|                            if (!ignore_empty_lines_)
  ------------------
  |  Branch (1374:33): [True: 0, False: 5.98M]
  ------------------
 1375|      0|                            {
 1376|      0|                                begin_record(local_visitor, ec);
 1377|      0|                                state_ = csv_parse_state::end_record;
 1378|      0|                            }
 1379|  5.98M|                            else
 1380|  5.98M|                            {
 1381|  5.98M|                                ++input_ptr_;
 1382|  5.98M|                                push_state(state_);
 1383|  5.98M|                                state_ = csv_parse_state::cr;
 1384|  5.98M|                            }
 1385|  5.98M|                            break;
 1386|  2.69k|                        case ' ':
  ------------------
  |  Branch (1386:25): [True: 2.69k, False: 8.00M]
  ------------------
 1387|  3.33k|                        case '\t':
  ------------------
  |  Branch (1387:25): [True: 649, False: 8.00M]
  ------------------
 1388|  3.33k|                            if (!trim_leading_)
  ------------------
  |  Branch (1388:33): [True: 3.33k, False: 0]
  ------------------
 1389|  3.33k|                            {
 1390|  3.33k|                                buffer_.push_back(static_cast<CharT>(curr_char));
 1391|  3.33k|                                begin_record(local_visitor, ec);
 1392|  3.33k|                                state_ = csv_parse_state::unquoted_string;
 1393|  3.33k|                            }
 1394|  3.33k|                            ++column_;
 1395|  3.33k|                            ++input_ptr_;
 1396|  3.33k|                            break;
 1397|   147k|                        default:
  ------------------
  |  Branch (1397:25): [True: 147k, False: 7.86M]
  ------------------
 1398|   147k|                            begin_record(local_visitor, ec);
 1399|   147k|                            if (curr_char == quote_char_)
  ------------------
  |  Branch (1399:33): [True: 2.74k, False: 144k]
  ------------------
 1400|  2.74k|                            {
 1401|  2.74k|                                buffer_.clear();
 1402|  2.74k|                                state_ = csv_parse_state::quoted_string;
 1403|  2.74k|                                ++column_;
 1404|  2.74k|                                ++input_ptr_;
 1405|  2.74k|                            }
 1406|   144k|                            else
 1407|   144k|                            {
 1408|   144k|                                state_ = csv_parse_state::unquoted_string;
 1409|   144k|                            }
 1410|   147k|                            break;
 1411|  8.00M|                        }
 1412|  8.00M|                    break;
 1413|  8.00M|                    }
 1414|  8.00M|                case csv_parse_state::end_record: 
  ------------------
  |  Branch (1414:17): [True: 147k, False: 96.5M]
  ------------------
 1415|   147k|                {
 1416|   147k|                    switch (curr_char)
 1417|   147k|                    {
 1418|  88.2k|                        case '\n':
  ------------------
  |  Branch (1418:25): [True: 88.2k, False: 58.9k]
  ------------------
 1419|  88.2k|                        {
 1420|  88.2k|                            ++line_;
 1421|  88.2k|                            column_ = 1;
 1422|  88.2k|                            state_ = csv_parse_state::expect_comment_or_record;
 1423|  88.2k|                            end_record(local_visitor, ec);
 1424|  88.2k|                            ++input_ptr_;
 1425|  88.2k|                            break;
 1426|      0|                        }
 1427|  58.9k|                        case '\r':
  ------------------
  |  Branch (1427:25): [True: 58.9k, False: 88.2k]
  ------------------
 1428|  58.9k|                            ++line_;
 1429|  58.9k|                            column_ = 1;
 1430|  58.9k|                            state_ = csv_parse_state::expect_comment_or_record;
 1431|  58.9k|                            end_record(local_visitor, ec);
 1432|  58.9k|                            push_state(state_);
 1433|  58.9k|                            state_ = csv_parse_state::cr;
 1434|  58.9k|                            ++input_ptr_;
 1435|  58.9k|                            break;
 1436|      0|                        case ' ':
  ------------------
  |  Branch (1436:25): [True: 0, False: 147k]
  ------------------
 1437|      0|                        case '\t':
  ------------------
  |  Branch (1437:25): [True: 0, False: 147k]
  ------------------
 1438|      0|                            ++column_;
 1439|      0|                            ++input_ptr_;
 1440|      0|                            break;
 1441|      0|                        default:
  ------------------
  |  Branch (1441:25): [True: 0, False: 147k]
  ------------------
 1442|      0|                            err_handler_(csv_errc::syntax_error, *this);
 1443|      0|                            ec = csv_errc::syntax_error;
 1444|      0|                            more_ = false;
 1445|      0|                            return;
 1446|   147k|                        }
 1447|   147k|                    break;
 1448|   147k|                }
 1449|   147k|                default:
  ------------------
  |  Branch (1449:17): [True: 0, False: 96.6M]
  ------------------
 1450|      0|                    err_handler_(csv_errc::invalid_parse_state, *this);
 1451|      0|                    ec = csv_errc::invalid_parse_state;
 1452|      0|                    more_ = false;
 1453|      0|                    return;
 1454|  96.6M|            }
 1455|  96.6M|            if (line_ > max_lines_)
  ------------------
  |  Branch (1455:17): [True: 0, False: 96.6M]
  ------------------
 1456|      0|            {
 1457|      0|                state_ = csv_parse_state::done;
 1458|      0|                more_ = false;
 1459|      0|            }
 1460|  96.6M|        }
 1461|  23.1k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE25end_unquoted_string_valueERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 1750|  12.4M|    {
 1751|  12.4M|        switch (stack_.back())
 1752|  12.4M|        {
 1753|  12.4M|            case csv_mode::data:
  ------------------
  |  Branch (1753:13): [True: 12.4M, False: 0]
  ------------------
 1754|  12.4M|            case csv_mode::subfields:
  ------------------
  |  Branch (1754:13): [True: 0, False: 12.4M]
  ------------------
 1755|  12.4M|                switch (mapping_kind_)
  ------------------
  |  Branch (1755:25): [True: 12.4M, False: 0]
  ------------------
 1756|  12.4M|                {
 1757|  12.4M|                case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1757:17): [True: 12.4M, False: 0]
  ------------------
 1758|  12.4M|                    if (unquoted_empty_value_is_null_ && buffer_.empty())
  ------------------
  |  Branch (1758:25): [True: 0, False: 12.4M]
  |  Branch (1758:58): [True: 0, False: 0]
  ------------------
 1759|      0|                    {
 1760|      0|                        visitor.null_value(semantic_tag::none, *this, ec);
 1761|      0|                        more_ = !cursor_mode_;
 1762|      0|                    }
 1763|  12.4M|                    else
 1764|  12.4M|                    {
 1765|  12.4M|                        end_value(visitor, infer_types_, ec);
 1766|  12.4M|                    }
 1767|  12.4M|                    break;
 1768|      0|                case csv_mapping_kind::n_objects:
  ------------------
  |  Branch (1768:17): [True: 0, False: 12.4M]
  ------------------
 1769|      0|                    if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1769:27): [True: 0, False: 0]
  |  Branch (1769:51): [True: 0, False: 0]
  ------------------
 1770|      0|                    {
 1771|      0|                        if (column_index_ < column_names_.size() + offset_)
  ------------------
  |  Branch (1771:29): [True: 0, False: 0]
  ------------------
 1772|      0|                        {
 1773|      0|                            if (unquoted_empty_value_is_null_ && buffer_.empty())
  ------------------
  |  Branch (1773:33): [True: 0, False: 0]
  |  Branch (1773:66): [True: 0, False: 0]
  ------------------
 1774|      0|                            {
 1775|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 1776|      0|                                more_ = !cursor_mode_;
 1777|      0|                            }
 1778|      0|                            else
 1779|      0|                            {
 1780|      0|                                end_value(visitor, infer_types_, ec);
 1781|      0|                            }
 1782|      0|                        }
 1783|      0|                        else if (depth_ > 0)
  ------------------
  |  Branch (1783:34): [True: 0, False: 0]
  ------------------
 1784|      0|                        {
 1785|      0|                            if (unquoted_empty_value_is_null_ && buffer_.empty())
  ------------------
  |  Branch (1785:33): [True: 0, False: 0]
  |  Branch (1785:66): [True: 0, False: 0]
  ------------------
 1786|      0|                            {
 1787|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 1788|      0|                                more_ = !cursor_mode_;
 1789|      0|                            }
 1790|      0|                            else
 1791|      0|                            {
 1792|      0|                                end_value(visitor, infer_types_, ec);
 1793|      0|                            }
 1794|      0|                        }
 1795|      0|                    }
 1796|      0|                    break;
 1797|      0|                case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1797:17): [True: 0, False: 12.4M]
  ------------------
 1798|      0|                    if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1798:27): [True: 0, False: 0]
  |  Branch (1798:51): [True: 0, False: 0]
  ------------------
 1799|      0|                    {
 1800|      0|                        end_value(visitor, infer_types_, ec);
 1801|      0|                    }
 1802|      0|                    else
 1803|      0|                    {
 1804|      0|                        m_columns_filter_.skip_column();
 1805|      0|                    }
 1806|      0|                    break;
 1807|  12.4M|                }
 1808|  12.4M|                break;
 1809|  12.4M|            default:
  ------------------
  |  Branch (1809:13): [True: 0, False: 12.4M]
  ------------------
 1810|      0|                break;
 1811|  12.4M|        }
 1812|  12.4M|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE9end_valueERNS_18basic_json_visitorIcEEbRNS2_10error_codeE:
 1878|  12.5M|    {
 1879|  12.5M|        if (enable_str_to_inf_ && buffer_ == inf_to_str_)
  ------------------
  |  Branch (1879:13): [True: 0, False: 12.5M]
  |  Branch (1879:35): [True: 0, False: 0]
  ------------------
 1880|      0|        {
 1881|      0|            visitor.double_value(std::numeric_limits<double>::infinity(), semantic_tag::none, *this, ec);
 1882|      0|            more_ = !cursor_mode_;
 1883|      0|        }
 1884|  12.5M|        else if (enable_str_to_neginf_ && buffer_ == neginf_to_str_)
  ------------------
  |  Branch (1884:18): [True: 0, False: 12.5M]
  |  Branch (1884:43): [True: 0, False: 0]
  ------------------
 1885|      0|        {
 1886|      0|            visitor.double_value(-std::numeric_limits<double>::infinity(), semantic_tag::none, *this, ec);
 1887|      0|            more_ = !cursor_mode_;
 1888|      0|        }
 1889|  12.5M|        else if (enable_str_to_nan_ && buffer_ == nan_to_str_)
  ------------------
  |  Branch (1889:18): [True: 0, False: 12.5M]
  |  Branch (1889:40): [True: 0, False: 0]
  ------------------
 1890|      0|        {
 1891|      0|            visitor.double_value(std::numeric_limits<double>::quiet_NaN(), semantic_tag::none, *this, ec);
 1892|      0|            more_ = !cursor_mode_;
 1893|      0|        }
 1894|  12.5M|        else if (column_index_ < column_types_.size() + offset_)
  ------------------
  |  Branch (1894:18): [True: 0, False: 12.5M]
  ------------------
 1895|      0|        {
 1896|      0|            if (column_types_[column_index_ - offset_].col_type == csv_column_type::repeat_t)
  ------------------
  |  Branch (1896:17): [True: 0, False: 0]
  ------------------
 1897|      0|            {
 1898|      0|                offset_ = offset_ + column_types_[column_index_ - offset_].rep_count;
 1899|      0|                if (column_index_ - offset_ + 1 < column_types_.size())
  ------------------
  |  Branch (1899:21): [True: 0, False: 0]
  ------------------
 1900|      0|                {
 1901|      0|                    if (column_index_ == offset_ || depth_ > column_types_[column_index_-offset_].level)
  ------------------
  |  Branch (1901:25): [True: 0, False: 0]
  |  Branch (1901:53): [True: 0, False: 0]
  ------------------
 1902|      0|                    {
 1903|      0|                        visitor.end_array(*this, ec);
 1904|      0|                        more_ = !cursor_mode_;
 1905|      0|                        if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1905:29): [True: 0, False: 0]
  ------------------
 1906|      0|                        {
 1907|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1907:33): [True: 0, False: 0]
  ------------------
 1908|      0|                            {
 1909|      0|                                more_ = false;
 1910|      0|                            }
 1911|      0|                        }
 1912|      0|                        --level_;
 1913|      0|                    }
 1914|      0|                    depth_ = column_index_ == offset_ ? 0 : column_types_[column_index_ - offset_].level;
  ------------------
  |  Branch (1914:30): [True: 0, False: 0]
  ------------------
 1915|      0|                }
 1916|      0|            }
 1917|      0|            if (depth_ < column_types_[column_index_ - offset_].level)
  ------------------
  |  Branch (1917:17): [True: 0, False: 0]
  ------------------
 1918|      0|            {
 1919|      0|                visitor.begin_array(semantic_tag::none, *this, ec);
 1920|      0|                more_ = !cursor_mode_;
 1921|      0|                depth_ = column_types_[column_index_ - offset_].level;
 1922|      0|                ++level_;
 1923|      0|            }
 1924|      0|            else if (depth_ > column_types_[column_index_ - offset_].level)
  ------------------
  |  Branch (1924:22): [True: 0, False: 0]
  ------------------
 1925|      0|            {
 1926|      0|                visitor.end_array(*this, ec);
 1927|      0|                more_ = !cursor_mode_;
 1928|      0|                if (mapping_kind_ != csv_mapping_kind::m_columns)
  ------------------
  |  Branch (1928:21): [True: 0, False: 0]
  ------------------
 1929|      0|                {
 1930|      0|                    if (level() == mark_level_)
  ------------------
  |  Branch (1930:25): [True: 0, False: 0]
  ------------------
 1931|      0|                    {
 1932|      0|                        more_ = false;
 1933|      0|                    }
 1934|      0|                }
 1935|      0|                --level_;
 1936|      0|                depth_ = column_types_[column_index_ - offset_].level;
 1937|      0|            }
 1938|      0|            switch (column_types_[column_index_ - offset_].col_type)
 1939|      0|            {
 1940|      0|                case csv_column_type::integer_t:
  ------------------
  |  Branch (1940:17): [True: 0, False: 0]
  ------------------
 1941|      0|                    {
 1942|      0|                        std::basic_istringstream<CharT,std::char_traits<CharT>,char_allocator_type> iss{buffer_};
 1943|      0|                        int64_t val;
 1944|      0|                        iss >> val;
 1945|      0|                        if (!iss.fail())
  ------------------
  |  Branch (1945:29): [True: 0, False: 0]
  ------------------
 1946|      0|                        {
 1947|      0|                            visitor.int64_value(val, semantic_tag::none, *this, ec);
 1948|      0|                            more_ = !cursor_mode_;
 1949|      0|                        }
 1950|      0|                        else
 1951|      0|                        {
 1952|      0|                            if (column_index_ - offset_ < column_defaults_.size() && column_defaults_[column_index_ - offset_].length() > 0)
  ------------------
  |  Branch (1952:33): [True: 0, False: 0]
  |  Branch (1952:86): [True: 0, False: 0]
  ------------------
 1953|      0|                            {
 1954|      0|                                basic_json_parser<CharT,temp_allocator_type> parser(alloc_);
 1955|      0|                                parser.update(column_defaults_[column_index_ - offset_].data(),column_defaults_[column_index_ - offset_].length());
 1956|      0|                                parser.parse_some(visitor);
 1957|      0|                                parser.finish_parse(visitor);
 1958|      0|                            }
 1959|      0|                            else
 1960|      0|                            {
 1961|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 1962|      0|                                more_ = !cursor_mode_;
 1963|      0|                            }
 1964|      0|                        }
 1965|      0|                    }
 1966|      0|                    break;
 1967|      0|                case csv_column_type::float_t:
  ------------------
  |  Branch (1967:17): [True: 0, False: 0]
  ------------------
 1968|      0|                    {
 1969|      0|                        if (lossless_number_)
  ------------------
  |  Branch (1969:29): [True: 0, False: 0]
  ------------------
 1970|      0|                        {
 1971|      0|                            visitor.string_value(buffer_,semantic_tag::bigdec, *this, ec);
 1972|      0|                            more_ = !cursor_mode_;
 1973|      0|                        }
 1974|      0|                        else
 1975|      0|                        {
 1976|      0|                            std::basic_istringstream<CharT, std::char_traits<CharT>, char_allocator_type> iss{ buffer_ };
 1977|      0|                            double val;
 1978|      0|                            iss >> val;
 1979|      0|                            if (!iss.fail())
  ------------------
  |  Branch (1979:33): [True: 0, False: 0]
  ------------------
 1980|      0|                            {
 1981|      0|                                visitor.double_value(val, semantic_tag::none, *this, ec);
 1982|      0|                                more_ = !cursor_mode_;
 1983|      0|                            }
 1984|      0|                            else
 1985|      0|                            {
 1986|      0|                                if (column_index_ - offset_ < column_defaults_.size() && column_defaults_[column_index_ - offset_].length() > 0)
  ------------------
  |  Branch (1986:37): [True: 0, False: 0]
  |  Branch (1986:90): [True: 0, False: 0]
  ------------------
 1987|      0|                                {
 1988|      0|                                    basic_json_parser<CharT,temp_allocator_type> parser(alloc_);
 1989|      0|                                    parser.update(column_defaults_[column_index_ - offset_].data(),column_defaults_[column_index_ - offset_].length());
 1990|      0|                                    parser.parse_some(visitor);
 1991|      0|                                    parser.finish_parse(visitor);
 1992|      0|                                }
 1993|      0|                                else
 1994|      0|                                {
 1995|      0|                                    visitor.null_value(semantic_tag::none, *this, ec);
 1996|      0|                                    more_ = !cursor_mode_;
 1997|      0|                                }
 1998|      0|                            }
 1999|      0|                        }
 2000|      0|                    }
 2001|      0|                    break;
 2002|      0|                case csv_column_type::boolean_t:
  ------------------
  |  Branch (2002:17): [True: 0, False: 0]
  ------------------
 2003|      0|                    {
 2004|      0|                        if (buffer_.length() == 1 && buffer_[0] == '0')
  ------------------
  |  Branch (2004:29): [True: 0, False: 0]
  |  Branch (2004:54): [True: 0, False: 0]
  ------------------
 2005|      0|                        {
 2006|      0|                            visitor.bool_value(false, semantic_tag::none, *this, ec);
 2007|      0|                            more_ = !cursor_mode_;
 2008|      0|                        }
 2009|      0|                        else if (buffer_.length() == 1 && buffer_[0] == '1')
  ------------------
  |  Branch (2009:34): [True: 0, False: 0]
  |  Branch (2009:59): [True: 0, False: 0]
  ------------------
 2010|      0|                        {
 2011|      0|                            visitor.bool_value(true, semantic_tag::none, *this, ec);
 2012|      0|                            more_ = !cursor_mode_;
 2013|      0|                        }
 2014|      0|                        else if (buffer_.length() == 5 && ((buffer_[0] == 'f' || buffer_[0] == 'F') && (buffer_[1] == 'a' || buffer_[1] == 'A') && (buffer_[2] == 'l' || buffer_[2] == 'L') && (buffer_[3] == 's' || buffer_[3] == 'S') && (buffer_[4] == 'e' || buffer_[4] == 'E')))
  ------------------
  |  Branch (2014:34): [True: 0, False: 0]
  |  Branch (2014:61): [True: 0, False: 0]
  |  Branch (2014:82): [True: 0, False: 0]
  |  Branch (2014:105): [True: 0, False: 0]
  |  Branch (2014:126): [True: 0, False: 0]
  |  Branch (2014:149): [True: 0, False: 0]
  |  Branch (2014:170): [True: 0, False: 0]
  |  Branch (2014:193): [True: 0, False: 0]
  |  Branch (2014:214): [True: 0, False: 0]
  |  Branch (2014:237): [True: 0, False: 0]
  |  Branch (2014:258): [True: 0, False: 0]
  ------------------
 2015|      0|                        {
 2016|      0|                            visitor.bool_value(false, semantic_tag::none, *this, ec);
 2017|      0|                            more_ = !cursor_mode_;
 2018|      0|                        }
 2019|      0|                        else if (buffer_.length() == 4 && ((buffer_[0] == 't' || buffer_[0] == 'T') && (buffer_[1] == 'r' || buffer_[1] == 'R') && (buffer_[2] == 'u' || buffer_[2] == 'U') && (buffer_[3] == 'e' || buffer_[3] == 'E')))
  ------------------
  |  Branch (2019:34): [True: 0, False: 0]
  |  Branch (2019:61): [True: 0, False: 0]
  |  Branch (2019:82): [True: 0, False: 0]
  |  Branch (2019:105): [True: 0, False: 0]
  |  Branch (2019:126): [True: 0, False: 0]
  |  Branch (2019:149): [True: 0, False: 0]
  |  Branch (2019:170): [True: 0, False: 0]
  |  Branch (2019:193): [True: 0, False: 0]
  |  Branch (2019:214): [True: 0, False: 0]
  ------------------
 2020|      0|                        {
 2021|      0|                            visitor.bool_value(true, semantic_tag::none, *this, ec);
 2022|      0|                            more_ = !cursor_mode_;
 2023|      0|                        }
 2024|      0|                        else
 2025|      0|                        {
 2026|      0|                            if (column_index_ - offset_ < column_defaults_.size() && column_defaults_[column_index_ - offset_].length() > 0)
  ------------------
  |  Branch (2026:33): [True: 0, False: 0]
  |  Branch (2026:86): [True: 0, False: 0]
  ------------------
 2027|      0|                            {
 2028|      0|                                basic_json_parser<CharT,temp_allocator_type> parser(alloc_);
 2029|      0|                                parser.update(column_defaults_[column_index_ - offset_].data(),column_defaults_[column_index_ - offset_].length());
 2030|      0|                                parser.parse_some(visitor);
 2031|      0|                                parser.finish_parse(visitor);
 2032|      0|                            }
 2033|      0|                            else
 2034|      0|                            {
 2035|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 2036|      0|                                more_ = !cursor_mode_;
 2037|      0|                            }
 2038|      0|                        }
 2039|      0|                    }
 2040|      0|                    break;
 2041|      0|                default:
  ------------------
  |  Branch (2041:17): [True: 0, False: 0]
  ------------------
 2042|      0|                    if (buffer_.length() > 0)
  ------------------
  |  Branch (2042:25): [True: 0, False: 0]
  ------------------
 2043|      0|                    {
 2044|      0|                        visitor.string_value(buffer_, semantic_tag::none, *this, ec);
 2045|      0|                        more_ = !cursor_mode_;
 2046|      0|                    }
 2047|      0|                    else
 2048|      0|                    {
 2049|      0|                        if (column_index_ < column_defaults_.size() + offset_ && column_defaults_[column_index_ - offset_].length() > 0)
  ------------------
  |  Branch (2049:29): [True: 0, False: 0]
  |  Branch (2049:82): [True: 0, False: 0]
  ------------------
 2050|      0|                        {
 2051|      0|                            basic_json_parser<CharT,temp_allocator_type> parser(alloc_);
 2052|      0|                            parser.update(column_defaults_[column_index_ - offset_].data(),column_defaults_[column_index_ - offset_].length());
 2053|      0|                            parser.parse_some(visitor);
 2054|      0|                            parser.finish_parse(visitor);
 2055|      0|                        }
 2056|      0|                        else
 2057|      0|                        {
 2058|      0|                            visitor.string_value(string_view_type(), semantic_tag::none, *this, ec);
 2059|      0|                            more_ = !cursor_mode_;
 2060|      0|                        }
 2061|      0|                    }
 2062|      0|                    break;  
 2063|      0|            }
 2064|      0|        }
 2065|  12.5M|        else
 2066|  12.5M|        {
 2067|  12.5M|            if (infer_types)
  ------------------
  |  Branch (2067:17): [True: 12.4M, False: 4.07k]
  ------------------
 2068|  12.4M|            {
 2069|  12.4M|                end_value_with_numeric_check(visitor, ec);
 2070|  12.4M|            }
 2071|  4.07k|            else
 2072|  4.07k|            {
 2073|  4.07k|                visitor.string_value(buffer_, semantic_tag::none, *this, ec);
 2074|  4.07k|                more_ = !cursor_mode_;
 2075|  4.07k|            }
 2076|  12.5M|        }
 2077|  12.5M|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE28end_value_with_numeric_checkERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 2100|  12.4M|    {
 2101|  12.4M|        numeric_check_state state = numeric_check_state::initial;
 2102|  12.4M|        bool is_negative = false;
 2103|       |        //int precision = 0;
 2104|       |        //uint8_t decimal_places = 0;
 2105|       |
 2106|  12.4M|        auto last = buffer_.end();
 2107|       |
 2108|  12.4M|        std::string buffer;
 2109|  28.0M|        for (auto p = buffer_.begin(); state != numeric_check_state::not_a_number && p != last; ++p)
  ------------------
  |  Branch (2109:40): [True: 27.9M, False: 98.0k]
  |  Branch (2109:86): [True: 15.5M, False: 12.4M]
  ------------------
 2110|  15.5M|        {
 2111|  15.5M|            switch (state)
 2112|  15.5M|            {
 2113|   256k|                case numeric_check_state::initial:
  ------------------
  |  Branch (2113:17): [True: 256k, False: 15.3M]
  ------------------
 2114|   256k|                {
 2115|   256k|                    switch (*p)
 2116|   256k|                    {
 2117|  9.54k|                    case 'n':case 'N':
  ------------------
  |  Branch (2117:21): [True: 4.08k, False: 252k]
  |  Branch (2117:30): [True: 5.45k, False: 251k]
  ------------------
 2118|  9.54k|                        if ((last-p) == 4 && (p[1] == 'u' || p[1] == 'U') && (p[2] == 'l' || p[2] == 'L') && (p[3] == 'l' || p[3] == 'L'))
  ------------------
  |  Branch (2118:29): [True: 7.83k, False: 1.71k]
  |  Branch (2118:47): [True: 5.03k, False: 2.79k]
  |  Branch (2118:62): [True: 1.80k, False: 995]
  |  Branch (2118:79): [True: 4.48k, False: 2.35k]
  |  Branch (2118:94): [True: 1.49k, False: 857]
  |  Branch (2118:111): [True: 1.14k, False: 4.84k]
  |  Branch (2118:126): [True: 1.32k, False: 3.51k]
  ------------------
 2119|  2.46k|                        {
 2120|  2.46k|                            state = numeric_check_state::null;
 2121|  2.46k|                        }
 2122|  7.07k|                        else
 2123|  7.07k|                        {
 2124|  7.07k|                            state = numeric_check_state::not_a_number;
 2125|  7.07k|                        }
 2126|  9.54k|                        break;
 2127|  7.84k|                    case 't':case 'T':
  ------------------
  |  Branch (2127:21): [True: 6.04k, False: 250k]
  |  Branch (2127:30): [True: 1.79k, False: 255k]
  ------------------
 2128|  7.84k|                        if ((last-p) == 4 && (p[1] == 'r' || p[1] == 'R') && (p[2] == 'u' || p[2] == 'U') && (p[3] == 'e' || p[3] == 'U'))
  ------------------
  |  Branch (2128:29): [True: 5.76k, False: 2.07k]
  |  Branch (2128:47): [True: 4.16k, False: 1.60k]
  |  Branch (2128:62): [True: 1.22k, False: 374]
  |  Branch (2128:79): [True: 946, False: 4.44k]
  |  Branch (2128:94): [True: 4.17k, False: 272]
  |  Branch (2128:111): [True: 421, False: 4.69k]
  |  Branch (2128:126): [True: 3.53k, False: 1.15k]
  ------------------
 2129|  3.96k|                        {
 2130|  3.96k|                            state = numeric_check_state::boolean_true;
 2131|  3.96k|                        }
 2132|  3.88k|                        else
 2133|  3.88k|                        {
 2134|  3.88k|                            state = numeric_check_state::not_a_number;
 2135|  3.88k|                        }
 2136|  7.84k|                        break;
 2137|  14.2k|                    case 'f':case 'F':
  ------------------
  |  Branch (2137:21): [True: 7.72k, False: 249k]
  |  Branch (2137:30): [True: 6.51k, False: 250k]
  ------------------
 2138|  14.2k|                        if ((last-p) == 5 && (p[1] == 'a' || p[1] == 'A') && (p[2] == 'l' || p[2] == 'L') && (p[3] == 's' || p[3] == 'S') && (p[4] == 'e' || p[4] == 'E'))
  ------------------
  |  Branch (2138:29): [True: 10.3k, False: 3.93k]
  |  Branch (2138:47): [True: 6.66k, False: 3.64k]
  |  Branch (2138:62): [True: 3.26k, False: 381]
  |  Branch (2138:79): [True: 5.82k, False: 4.10k]
  |  Branch (2138:94): [True: 3.82k, False: 274]
  |  Branch (2138:111): [True: 786, False: 8.86k]
  |  Branch (2138:126): [True: 5.26k, False: 3.60k]
  |  Branch (2138:143): [True: 699, False: 5.35k]
  |  Branch (2138:158): [True: 2.58k, False: 2.76k]
  ------------------
 2139|  3.28k|                        {
 2140|  3.28k|                            state = numeric_check_state::boolean_false;
 2141|  3.28k|                        }
 2142|  10.9k|                        else
 2143|  10.9k|                        {
 2144|  10.9k|                            state = numeric_check_state::not_a_number;
 2145|  10.9k|                        }
 2146|  14.2k|                        break;
 2147|  43.2k|                    case '-':
  ------------------
  |  Branch (2147:21): [True: 43.2k, False: 213k]
  ------------------
 2148|  43.2k|                        is_negative = true;
 2149|  43.2k|                        buffer.push_back(*p);
 2150|  43.2k|                        state = numeric_check_state::minus;
 2151|  43.2k|                        break;
 2152|  8.69k|                    case '0':
  ------------------
  |  Branch (2152:21): [True: 8.69k, False: 248k]
  ------------------
 2153|       |                        //++precision;
 2154|  8.69k|                        buffer.push_back(*p);
 2155|  8.69k|                        state = numeric_check_state::zero;
 2156|  8.69k|                        break;
 2157|   134k|                    case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2157:21): [True: 69.3k, False: 187k]
  |  Branch (2157:30): [True: 19.6k, False: 237k]
  |  Branch (2157:39): [True: 6.00k, False: 250k]
  |  Branch (2157:48): [True: 3.97k, False: 252k]
  |  Branch (2157:57): [True: 8.60k, False: 248k]
  |  Branch (2157:66): [True: 7.50k, False: 249k]
  |  Branch (2157:75): [True: 6.11k, False: 250k]
  |  Branch (2157:84): [True: 6.19k, False: 250k]
  |  Branch (2157:93): [True: 7.03k, False: 249k]
  ------------------
 2158|       |                        //++precision;
 2159|   134k|                        buffer.push_back(*p);
 2160|   134k|                        state = numeric_check_state::integer;
 2161|   134k|                        break;
 2162|  38.9k|                    default:
  ------------------
  |  Branch (2162:21): [True: 38.9k, False: 217k]
  ------------------
 2163|  38.9k|                        state = numeric_check_state::not_a_number;
 2164|  38.9k|                        break;
 2165|   256k|                    }
 2166|   256k|                    break;
 2167|   256k|                }
 2168|   256k|                case numeric_check_state::zero:
  ------------------
  |  Branch (2168:17): [True: 7.64k, False: 15.5M]
  ------------------
 2169|  7.64k|                {
 2170|  7.64k|                    switch (*p)
 2171|  7.64k|                    {
 2172|  2.90k|                        case '.':
  ------------------
  |  Branch (2172:25): [True: 2.90k, False: 4.73k]
  ------------------
 2173|  2.90k|                        {
 2174|  2.90k|                            buffer.push_back('.');
 2175|  2.90k|                            state = numeric_check_state::fraction1;
 2176|  2.90k|                        }
 2177|  2.90k|                        break;
 2178|  2.93k|                    case 'e':case 'E':
  ------------------
  |  Branch (2178:21): [True: 1.08k, False: 6.55k]
  |  Branch (2178:30): [True: 1.85k, False: 5.78k]
  ------------------
 2179|  2.93k|                        buffer.push_back(*p);
 2180|  2.93k|                        state = numeric_check_state::exp1;
 2181|  2.93k|                        break;
 2182|  1.79k|                    default:
  ------------------
  |  Branch (2182:21): [True: 1.79k, False: 5.84k]
  ------------------
 2183|  1.79k|                        state = numeric_check_state::not_a_number;
 2184|  1.79k|                        break;
 2185|  7.64k|                    }
 2186|  7.64k|                    break;
 2187|  7.64k|                }
 2188|  14.8M|                case numeric_check_state::integer:
  ------------------
  |  Branch (2188:17): [True: 14.8M, False: 727k]
  ------------------
 2189|  14.8M|                {
 2190|  14.8M|                    switch (*p)
 2191|  14.8M|                    {
 2192|  14.7M|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2192:21): [True: 13.6M, False: 1.21M]
  |  Branch (2192:30): [True: 333k, False: 14.5M]
  |  Branch (2192:39): [True: 46.1k, False: 14.8M]
  |  Branch (2192:48): [True: 55.7k, False: 14.8M]
  |  Branch (2192:57): [True: 95.6k, False: 14.7M]
  |  Branch (2192:66): [True: 50.5k, False: 14.8M]
  |  Branch (2192:75): [True: 84.3k, False: 14.7M]
  |  Branch (2192:84): [True: 299k, False: 14.5M]
  |  Branch (2192:93): [True: 74.8k, False: 14.7M]
  |  Branch (2192:102): [True: 55.1k, False: 14.8M]
  ------------------
 2193|       |                        //++precision;
 2194|  14.7M|                        buffer.push_back(*p);
 2195|  14.7M|                        break;
 2196|  19.0k|                    case '.':
  ------------------
  |  Branch (2196:21): [True: 19.0k, False: 14.8M]
  ------------------
 2197|  19.0k|                        buffer.push_back('.');
 2198|  19.0k|                        state = numeric_check_state::fraction1;
 2199|  19.0k|                        break;
 2200|  82.1k|                    case 'e':case 'E':
  ------------------
  |  Branch (2200:21): [True: 10.8k, False: 14.8M]
  |  Branch (2200:30): [True: 71.3k, False: 14.7M]
  ------------------
 2201|  82.1k|                        buffer.push_back(*p);
 2202|  82.1k|                        state = numeric_check_state::exp1;
 2203|  82.1k|                        break;
 2204|  17.3k|                    default:
  ------------------
  |  Branch (2204:21): [True: 17.3k, False: 14.8M]
  ------------------
 2205|  17.3k|                        state = numeric_check_state::not_a_number;
 2206|  17.3k|                        break;
 2207|  14.8M|                    }
 2208|  14.8M|                    break;
 2209|  14.8M|                }
 2210|  14.8M|                case numeric_check_state::minus:
  ------------------
  |  Branch (2210:17): [True: 42.4k, False: 15.5M]
  ------------------
 2211|  42.4k|                {
 2212|  42.4k|                    switch (*p)
 2213|  42.4k|                    {
 2214|  1.35k|                    case '0':
  ------------------
  |  Branch (2214:21): [True: 1.35k, False: 41.0k]
  ------------------
 2215|       |                        //++precision;
 2216|  1.35k|                        buffer.push_back(*p);
 2217|  1.35k|                        state = numeric_check_state::zero;
 2218|  1.35k|                        break;
 2219|  37.0k|                    case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2219:21): [True: 12.4k, False: 30.0k]
  |  Branch (2219:30): [True: 1.24k, False: 41.1k]
  |  Branch (2219:39): [True: 1.39k, False: 41.0k]
  |  Branch (2219:48): [True: 670, False: 41.7k]
  |  Branch (2219:57): [True: 10.1k, False: 32.2k]
  |  Branch (2219:66): [True: 855, False: 41.5k]
  |  Branch (2219:75): [True: 2.49k, False: 39.9k]
  |  Branch (2219:84): [True: 1.89k, False: 40.5k]
  |  Branch (2219:93): [True: 5.87k, False: 36.5k]
  ------------------
 2220|       |                        //++precision;
 2221|  37.0k|                        buffer.push_back(*p);
 2222|  37.0k|                        state = numeric_check_state::integer;
 2223|  37.0k|                        break;
 2224|  4.06k|                    default:
  ------------------
  |  Branch (2224:21): [True: 4.06k, False: 38.3k]
  ------------------
 2225|  4.06k|                        state = numeric_check_state::not_a_number;
 2226|  4.06k|                        break;
 2227|  42.4k|                    }
 2228|  42.4k|                    break;
 2229|  42.4k|                }
 2230|  42.4k|                case numeric_check_state::fraction1:
  ------------------
  |  Branch (2230:17): [True: 21.0k, False: 15.5M]
  ------------------
 2231|  21.0k|                {
 2232|  21.0k|                    switch (*p)
 2233|  21.0k|                    {
 2234|  18.7k|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2234:21): [True: 2.24k, False: 18.8k]
  |  Branch (2234:30): [True: 1.80k, False: 19.2k]
  |  Branch (2234:39): [True: 1.11k, False: 19.9k]
  |  Branch (2234:48): [True: 677, False: 20.3k]
  |  Branch (2234:57): [True: 4.59k, False: 16.4k]
  |  Branch (2234:66): [True: 522, False: 20.5k]
  |  Branch (2234:75): [True: 554, False: 20.4k]
  |  Branch (2234:84): [True: 5.60k, False: 15.4k]
  |  Branch (2234:93): [True: 985, False: 20.0k]
  |  Branch (2234:102): [True: 653, False: 20.3k]
  ------------------
 2235|       |                        //++precision;
 2236|       |                        //++decimal_places;
 2237|  18.7k|                        buffer.push_back(*p);
 2238|  18.7k|                        state = numeric_check_state::fraction;
 2239|  18.7k|                        break;
 2240|  2.29k|                    default:
  ------------------
  |  Branch (2240:21): [True: 2.29k, False: 18.7k]
  ------------------
 2241|  2.29k|                        state = numeric_check_state::not_a_number;
 2242|  2.29k|                        break;
 2243|  21.0k|                    }
 2244|  21.0k|                    break;
 2245|  21.0k|                }
 2246|   156k|                case numeric_check_state::fraction:
  ------------------
  |  Branch (2246:17): [True: 156k, False: 15.4M]
  ------------------
 2247|   156k|                {
 2248|   156k|                    switch (*p)
 2249|   156k|                    {
 2250|   151k|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2250:21): [True: 61.2k, False: 95.0k]
  |  Branch (2250:30): [True: 40.7k, False: 115k]
  |  Branch (2250:39): [True: 2.19k, False: 154k]
  |  Branch (2250:48): [True: 1.59k, False: 154k]
  |  Branch (2250:57): [True: 12.2k, False: 144k]
  |  Branch (2250:66): [True: 5.49k, False: 150k]
  |  Branch (2250:75): [True: 5.76k, False: 150k]
  |  Branch (2250:84): [True: 9.98k, False: 146k]
  |  Branch (2250:93): [True: 9.60k, False: 146k]
  |  Branch (2250:102): [True: 2.64k, False: 153k]
  ------------------
 2251|       |                        //++precision;
 2252|       |                        //++decimal_places;
 2253|   151k|                        buffer.push_back(*p);
 2254|   151k|                        break;
 2255|  2.25k|                    case 'e':case 'E':
  ------------------
  |  Branch (2255:21): [True: 1.55k, False: 154k]
  |  Branch (2255:30): [True: 697, False: 155k]
  ------------------
 2256|  2.25k|                        buffer.push_back(*p);
 2257|  2.25k|                        state = numeric_check_state::exp1;
 2258|  2.25k|                        break;
 2259|  2.52k|                    default:
  ------------------
  |  Branch (2259:21): [True: 2.52k, False: 153k]
  ------------------
 2260|  2.52k|                        state = numeric_check_state::not_a_number;
 2261|  2.52k|                        break;
 2262|   156k|                    }
 2263|   156k|                    break;
 2264|   156k|                }
 2265|   156k|                case numeric_check_state::exp1:
  ------------------
  |  Branch (2265:17): [True: 95.5k, False: 15.5M]
  ------------------
 2266|  95.5k|                {
 2267|  95.5k|                    switch (*p)
 2268|  95.5k|                    {
 2269|  10.8k|                    case '-':
  ------------------
  |  Branch (2269:21): [True: 10.8k, False: 84.7k]
  ------------------
 2270|  10.8k|                        buffer.push_back(*p);
 2271|  10.8k|                        break;
 2272|    523|                    case '+':
  ------------------
  |  Branch (2272:21): [True: 523, False: 95.0k]
  ------------------
 2273|    523|                        break;
 2274|  81.0k|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2274:21): [True: 4.80k, False: 90.7k]
  |  Branch (2274:30): [True: 38.3k, False: 57.2k]
  |  Branch (2274:39): [True: 9.79k, False: 85.7k]
  |  Branch (2274:48): [True: 7.38k, False: 88.1k]
  |  Branch (2274:57): [True: 5.97k, False: 89.6k]
  |  Branch (2274:66): [True: 1.42k, False: 94.1k]
  |  Branch (2274:75): [True: 4.20k, False: 91.3k]
  |  Branch (2274:84): [True: 3.49k, False: 92.0k]
  |  Branch (2274:93): [True: 4.62k, False: 90.9k]
  |  Branch (2274:102): [True: 1.06k, False: 94.5k]
  ------------------
 2275|  81.0k|                        state = numeric_check_state::exp;
 2276|  81.0k|                        buffer.push_back(*p);
 2277|  81.0k|                        break;
 2278|  3.13k|                    default:
  ------------------
  |  Branch (2278:21): [True: 3.13k, False: 92.4k]
  ------------------
 2279|  3.13k|                        state = numeric_check_state::not_a_number;
 2280|  3.13k|                        break;
 2281|  95.5k|                    }
 2282|  95.5k|                    break;
 2283|  95.5k|                }
 2284|   115k|                case numeric_check_state::exp:
  ------------------
  |  Branch (2284:17): [True: 115k, False: 15.4M]
  ------------------
 2285|   115k|                {
 2286|   115k|                    switch (*p)
 2287|   115k|                    {
 2288|   109k|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':
  ------------------
  |  Branch (2288:21): [True: 31.7k, False: 83.3k]
  |  Branch (2288:30): [True: 6.43k, False: 108k]
  |  Branch (2288:39): [True: 3.37k, False: 111k]
  |  Branch (2288:48): [True: 8.01k, False: 106k]
  |  Branch (2288:57): [True: 5.58k, False: 109k]
  |  Branch (2288:66): [True: 2.97k, False: 112k]
  |  Branch (2288:75): [True: 39.6k, False: 75.3k]
  |  Branch (2288:84): [True: 6.98k, False: 108k]
  |  Branch (2288:93): [True: 1.42k, False: 113k]
  |  Branch (2288:102): [True: 2.93k, False: 112k]
  ------------------
 2289|   109k|                        buffer.push_back(*p);
 2290|   109k|                        break;
 2291|  5.94k|                    default:
  ------------------
  |  Branch (2291:21): [True: 5.94k, False: 109k]
  ------------------
 2292|  5.94k|                        state = numeric_check_state::not_a_number;
 2293|  5.94k|                        break;
 2294|   115k|                    }
 2295|   115k|                    break;
 2296|   115k|                }
 2297|   115k|                default:
  ------------------
  |  Branch (2297:17): [True: 32.4k, False: 15.5M]
  ------------------
 2298|  32.4k|                    break;
 2299|  15.5M|            }
 2300|  15.5M|        }
 2301|       |
 2302|  12.4M|        switch (state)
 2303|  12.4M|        {
 2304|  2.46k|            case numeric_check_state::null:
  ------------------
  |  Branch (2304:13): [True: 2.46k, False: 12.4M]
  ------------------
 2305|  2.46k|                visitor.null_value(semantic_tag::none, *this, ec);
 2306|  2.46k|                more_ = !cursor_mode_;
 2307|  2.46k|                break;
 2308|  3.96k|            case numeric_check_state::boolean_true:
  ------------------
  |  Branch (2308:13): [True: 3.96k, False: 12.4M]
  ------------------
 2309|  3.96k|                visitor.bool_value(true, semantic_tag::none, *this, ec);
 2310|  3.96k|                more_ = !cursor_mode_;
 2311|  3.96k|                break;
 2312|  3.28k|            case numeric_check_state::boolean_false:
  ------------------
  |  Branch (2312:13): [True: 3.28k, False: 12.4M]
  ------------------
 2313|  3.28k|                visitor.bool_value(false, semantic_tag::none, *this, ec);
 2314|  3.28k|                more_ = !cursor_mode_;
 2315|  3.28k|                break;
 2316|  2.40k|            case numeric_check_state::zero:
  ------------------
  |  Branch (2316:13): [True: 2.40k, False: 12.4M]
  ------------------
 2317|  55.2k|            case numeric_check_state::integer:
  ------------------
  |  Branch (2317:13): [True: 52.8k, False: 12.4M]
  ------------------
 2318|  55.2k|            {
 2319|  55.2k|                if (is_negative)
  ------------------
  |  Branch (2319:21): [True: 20.2k, False: 34.9k]
  ------------------
 2320|  20.2k|                {
 2321|  20.2k|                    int64_t val{ 0 };
 2322|  20.2k|                    auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2323|  20.2k|                    if (result)
  ------------------
  |  Branch (2323:25): [True: 10.2k, False: 10.0k]
  ------------------
 2324|  10.2k|                    {
 2325|  10.2k|                        visitor.int64_value(val, semantic_tag::none, *this, ec);
 2326|  10.2k|                        more_ = !cursor_mode_;
 2327|  10.2k|                    }
 2328|  10.0k|                    else // Must be overflow
 2329|  10.0k|                    {
 2330|  10.0k|                        visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2331|  10.0k|                        more_ = !cursor_mode_;
 2332|  10.0k|                    }
 2333|  20.2k|                }
 2334|  34.9k|                else
 2335|  34.9k|                {
 2336|  34.9k|                    uint64_t val{ 0 };
 2337|  34.9k|                    auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2338|  34.9k|                    if (result)
  ------------------
  |  Branch (2338:25): [True: 30.6k, False: 4.28k]
  ------------------
 2339|  30.6k|                    {
 2340|  30.6k|                        visitor.uint64_value(val, semantic_tag::none, *this, ec);
 2341|  30.6k|                        more_ = !cursor_mode_;
 2342|  30.6k|                    }
 2343|  4.28k|                    else if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2343:30): [True: 4.28k, False: 0]
  ------------------
 2344|  4.28k|                    {
 2345|  4.28k|                        visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2346|  4.28k|                        more_ = !cursor_mode_;
 2347|  4.28k|                    }
 2348|      0|                    else
 2349|      0|                    {
 2350|      0|                        ec = csv_errc::invalid_number; 
 2351|      0|                        more_ = false;
 2352|      0|                        return;
 2353|      0|                    }
 2354|  34.9k|                }
 2355|  55.2k|                break;
 2356|  55.2k|            }
 2357|  55.2k|            case numeric_check_state::fraction:
  ------------------
  |  Branch (2357:13): [True: 13.9k, False: 12.4M]
  ------------------
 2358|  89.1k|            case numeric_check_state::exp:
  ------------------
  |  Branch (2358:13): [True: 75.1k, False: 12.4M]
  ------------------
 2359|  89.1k|            {
 2360|  89.1k|                if (lossless_number_)
  ------------------
  |  Branch (2360:21): [True: 0, False: 89.1k]
  ------------------
 2361|      0|                {
 2362|      0|                    visitor.string_value(buffer_,semantic_tag::bigdec, *this, ec);
 2363|      0|                    more_ = !cursor_mode_;
 2364|      0|                }
 2365|  89.1k|                else
 2366|  89.1k|                {
 2367|  89.1k|                    double d{0};
 2368|  89.1k|                    auto result = jsoncons::decstr_to_double(buffer.data(), buffer.length(), d);
 2369|  89.1k|                    if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2369:25): [True: 6.94k, False: 82.1k]
  ------------------
 2370|  6.94k|                    {
 2371|  6.94k|                        d = buffer.front() == '-' ? -HUGE_VAL : HUGE_VAL;
  ------------------
  |  Branch (2371:29): [True: 5.35k, False: 1.58k]
  ------------------
 2372|  6.94k|                    }
 2373|  82.1k|                    else if (result.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (2373:30): [True: 6, False: 82.1k]
  ------------------
 2374|      6|                    {
 2375|      6|                        ec = csv_errc::invalid_number; 
 2376|      6|                        more_ = false;
 2377|      6|                        return;
 2378|      6|                    }
 2379|  89.1k|                    visitor.double_value(d, semantic_tag::none, *this, ec);
 2380|  89.1k|                    more_ = !cursor_mode_;
 2381|  89.1k|                }
 2382|  89.1k|                break;
 2383|  89.1k|            }
 2384|  12.3M|            default:
  ------------------
  |  Branch (2384:13): [True: 12.3M, False: 154k]
  ------------------
 2385|  12.3M|            {
 2386|  12.3M|                visitor.string_value(buffer_, semantic_tag::none, *this, ec);
 2387|  12.3M|                more_ = !cursor_mode_;
 2388|  12.3M|                break;
 2389|  89.1k|            }
 2390|  12.4M|        }
 2391|  12.4M|    } 
_ZNK8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE5levelEv:
  747|  3.44k|    {
  748|  3.44k|        return level_;
  749|  3.44k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE12before_valueERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 1519|  12.5M|    {
 1520|  12.5M|        switch (stack_.back())
 1521|  12.5M|        {
 1522|      0|            case csv_mode::header:
  ------------------
  |  Branch (1522:13): [True: 0, False: 12.5M]
  ------------------
 1523|      0|                if (trim_leading_inside_quotes_ || trim_trailing_inside_quotes_)
  ------------------
  |  Branch (1523:21): [True: 0, False: 0]
  |  Branch (1523:52): [True: 0, False: 0]
  ------------------
 1524|      0|                {
 1525|      0|                    trim_string_buffer(trim_leading_inside_quotes_,trim_trailing_inside_quotes_);
 1526|      0|                }
 1527|      0|                if (line_ == (header_line_+header_line_offset_) && column_index_ >= min_column_names_)
  ------------------
  |  Branch (1527:21): [True: 0, False: 0]
  |  Branch (1527:68): [True: 0, False: 0]
  ------------------
 1528|      0|                {
 1529|      0|                    column_names_.push_back(buffer_);
 1530|      0|                    if (assume_header_ && mapping_kind_ == csv_mapping_kind::n_rows)
  ------------------
  |  Branch (1530:25): [True: 0, False: 0]
  |  Branch (1530:43): [True: 0, False: 0]
  ------------------
 1531|      0|                    {
 1532|      0|                        visitor.string_value(buffer_, semantic_tag::none, *this, ec);
 1533|      0|                        more_ = !cursor_mode_;
 1534|      0|                    }
 1535|      0|                }
 1536|      0|                break;
 1537|  12.5M|            case csv_mode::data:
  ------------------
  |  Branch (1537:13): [True: 12.5M, False: 0]
  ------------------
 1538|  12.5M|                if (mapping_kind_ == csv_mapping_kind::n_objects)
  ------------------
  |  Branch (1538:21): [True: 0, False: 12.5M]
  ------------------
 1539|      0|                {
 1540|      0|                    if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1540:27): [True: 0, False: 0]
  |  Branch (1540:51): [True: 0, False: 0]
  ------------------
 1541|      0|                    {
 1542|      0|                        if (column_index_ < column_names_.size() + offset_)
  ------------------
  |  Branch (1542:29): [True: 0, False: 0]
  ------------------
 1543|      0|                        {
 1544|      0|                            visitor.key(column_names_[column_index_ - offset_], *this, ec);
 1545|      0|                            more_ = !cursor_mode_;
 1546|      0|                        }
 1547|      0|                    }
 1548|      0|                }
 1549|  12.5M|                break;
 1550|      0|            default:
  ------------------
  |  Branch (1550:13): [True: 0, False: 12.5M]
  ------------------
 1551|      0|                break;
 1552|  12.5M|        }
 1553|  12.5M|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE23end_quoted_string_valueERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 1816|  4.07k|    {
 1817|  4.07k|        switch (stack_.back())
 1818|  4.07k|        {
 1819|  4.07k|            case csv_mode::data:
  ------------------
  |  Branch (1819:13): [True: 4.07k, False: 0]
  ------------------
 1820|  4.07k|            case csv_mode::subfields:
  ------------------
  |  Branch (1820:13): [True: 0, False: 4.07k]
  ------------------
 1821|  4.07k|                if (trim_leading_inside_quotes_ || trim_trailing_inside_quotes_)
  ------------------
  |  Branch (1821:21): [True: 0, False: 4.07k]
  |  Branch (1821:52): [True: 0, False: 4.07k]
  ------------------
 1822|      0|                {
 1823|      0|                    trim_string_buffer(trim_leading_inside_quotes_,trim_trailing_inside_quotes_);
 1824|      0|                }
 1825|  4.07k|                switch (mapping_kind_)
  ------------------
  |  Branch (1825:25): [True: 4.07k, False: 0]
  ------------------
 1826|  4.07k|                {
 1827|  4.07k|                case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1827:17): [True: 4.07k, False: 0]
  ------------------
 1828|  4.07k|                    end_value(visitor, false, ec);
 1829|  4.07k|                    break;
 1830|      0|                case csv_mapping_kind::n_objects:
  ------------------
  |  Branch (1830:17): [True: 0, False: 4.07k]
  ------------------
 1831|      0|                    if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1831:27): [True: 0, False: 0]
  |  Branch (1831:51): [True: 0, False: 0]
  ------------------
 1832|      0|                    {
 1833|      0|                        if (column_index_ < column_names_.size() + offset_)
  ------------------
  |  Branch (1833:29): [True: 0, False: 0]
  ------------------
 1834|      0|                        {
 1835|      0|                            if (unquoted_empty_value_is_null_ && buffer_.empty())
  ------------------
  |  Branch (1835:33): [True: 0, False: 0]
  |  Branch (1835:66): [True: 0, False: 0]
  ------------------
 1836|      0|                            {
 1837|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 1838|      0|                                more_ = !cursor_mode_;
 1839|      0|                            }
 1840|      0|                            else 
 1841|      0|                            {
 1842|      0|                                end_value(visitor, false, ec);
 1843|      0|                            }
 1844|      0|                        }
 1845|      0|                        else if (depth_ > 0)
  ------------------
  |  Branch (1845:34): [True: 0, False: 0]
  ------------------
 1846|      0|                        {
 1847|      0|                            if (unquoted_empty_value_is_null_ && buffer_.empty())
  ------------------
  |  Branch (1847:33): [True: 0, False: 0]
  |  Branch (1847:66): [True: 0, False: 0]
  ------------------
 1848|      0|                            {
 1849|      0|                                visitor.null_value(semantic_tag::none, *this, ec);
 1850|      0|                                more_ = !cursor_mode_;
 1851|      0|                            }
 1852|      0|                            else
 1853|      0|                            {
 1854|      0|                                end_value(visitor, false, ec);
 1855|      0|                            }
 1856|      0|                        }
 1857|      0|                    }
 1858|      0|                    break;
 1859|      0|                case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1859:17): [True: 0, False: 4.07k]
  ------------------
 1860|      0|                    if (!(ignore_empty_values_ && buffer_.empty()))
  ------------------
  |  Branch (1860:27): [True: 0, False: 0]
  |  Branch (1860:51): [True: 0, False: 0]
  ------------------
 1861|      0|                    {
 1862|      0|                        end_value(visitor, false, ec);
 1863|      0|                    }
 1864|      0|                    else
 1865|      0|                    {
 1866|      0|                        m_columns_filter_.skip_column();
 1867|      0|                    }
 1868|      0|                    break;
 1869|  4.07k|                }
 1870|  4.07k|                break;
 1871|  4.07k|            default:
  ------------------
  |  Branch (1871:13): [True: 0, False: 4.07k]
  ------------------
 1872|      0|                break;
 1873|  4.07k|        }
 1874|  4.07k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE10end_recordERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 1607|   150k|    {
 1608|   150k|        if (!column_types_.empty())
  ------------------
  |  Branch (1608:13): [True: 0, False: 150k]
  ------------------
 1609|      0|        {
 1610|      0|            switch (mapping_kind_)
 1611|      0|            {
 1612|      0|                case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1612:17): [True: 0, False: 0]
  ------------------
 1613|      0|                case csv_mapping_kind::n_objects:
  ------------------
  |  Branch (1613:17): [True: 0, False: 0]
  ------------------
 1614|      0|                    if (depth_ > 0)
  ------------------
  |  Branch (1614:25): [True: 0, False: 0]
  ------------------
 1615|      0|                    {
 1616|      0|                        visitor.end_array(*this, ec);
 1617|      0|                        more_ = !cursor_mode_;
 1618|      0|                        if (level_ == mark_level_)
  ------------------
  |  Branch (1618:29): [True: 0, False: 0]
  ------------------
 1619|      0|                        {
 1620|      0|                            more_ = false;
 1621|      0|                        }
 1622|      0|                        --level_;
 1623|      0|                        depth_ = 0;
 1624|      0|                    }
 1625|      0|                    break;
 1626|      0|                case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1626:17): [True: 0, False: 0]
  ------------------
 1627|      0|                    if (depth_ > 0)
  ------------------
  |  Branch (1627:25): [True: 0, False: 0]
  ------------------
 1628|      0|                    {
 1629|      0|                        visitor.end_array(*this, ec);
 1630|      0|                        more_ = !cursor_mode_;
 1631|      0|                        --level_;
 1632|      0|                        depth_ = 0;
 1633|      0|                    }
 1634|      0|                    break;
 1635|      0|                default:
  ------------------
  |  Branch (1635:17): [True: 0, False: 0]
  ------------------
 1636|      0|                    break;
 1637|      0|            }
 1638|      0|        }
 1639|   150k|        switch (stack_.back())
 1640|   150k|        {
 1641|      0|            case csv_mode::header:
  ------------------
  |  Branch (1641:13): [True: 0, False: 150k]
  ------------------
 1642|      0|                if (line_ >= header_lines_)
  ------------------
  |  Branch (1642:21): [True: 0, False: 0]
  ------------------
 1643|      0|                {
 1644|      0|                    stack_.back() = csv_mode::data;
 1645|      0|                }
 1646|      0|                switch (mapping_kind_)
 1647|      0|                {
 1648|      0|                    case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1648:21): [True: 0, False: 0]
  ------------------
 1649|      0|                        if (assume_header_)
  ------------------
  |  Branch (1649:29): [True: 0, False: 0]
  ------------------
 1650|      0|                        {
 1651|      0|                            visitor.end_array(*this, ec);
 1652|      0|                            more_ = !cursor_mode_;
 1653|      0|                            if (level() == mark_level_)
  ------------------
  |  Branch (1653:33): [True: 0, False: 0]
  ------------------
 1654|      0|                            {
 1655|      0|                                more_ = false;
 1656|      0|                            }
 1657|      0|                            --level_;
 1658|      0|                        }
 1659|      0|                        break;
 1660|      0|                    case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1660:21): [True: 0, False: 0]
  ------------------
 1661|      0|                        m_columns_filter_.initialize(column_names_);
 1662|      0|                        break;
 1663|      0|                    default:
  ------------------
  |  Branch (1663:21): [True: 0, False: 0]
  ------------------
 1664|      0|                        break;
 1665|      0|                }
 1666|      0|                break;
 1667|   150k|            case csv_mode::data:
  ------------------
  |  Branch (1667:13): [True: 150k, False: 0]
  ------------------
 1668|   150k|            case csv_mode::subfields:
  ------------------
  |  Branch (1668:13): [True: 0, False: 150k]
  ------------------
 1669|   150k|            {
 1670|   150k|                switch (mapping_kind_)
  ------------------
  |  Branch (1670:25): [True: 150k, False: 0]
  ------------------
 1671|   150k|                {
 1672|   150k|                    case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1672:21): [True: 150k, False: 0]
  ------------------
 1673|   150k|                        visitor.end_array(*this, ec);
 1674|   150k|                        more_ = !cursor_mode_;
 1675|   150k|                        if (level_ == mark_level_)
  ------------------
  |  Branch (1675:29): [True: 0, False: 150k]
  ------------------
 1676|      0|                        {
 1677|      0|                            more_ = false;
 1678|      0|                        }
 1679|   150k|                        --level_;
 1680|   150k|                        break;
 1681|      0|                    case csv_mapping_kind::n_objects:
  ------------------
  |  Branch (1681:21): [True: 0, False: 150k]
  ------------------
 1682|      0|                        visitor.end_object(*this, ec);
 1683|      0|                        more_ = !cursor_mode_;
 1684|      0|                        if (level_ == mark_level_)
  ------------------
  |  Branch (1684:29): [True: 0, False: 0]
  ------------------
 1685|      0|                        {
 1686|      0|                            more_ = false;
 1687|      0|                        }
 1688|      0|                        --level_;
 1689|      0|                        break;
 1690|      0|                    case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1690:21): [True: 0, False: 150k]
  ------------------
 1691|      0|                        visitor.end_array(*this, ec);
 1692|      0|                        more_ = !cursor_mode_;
 1693|      0|                        --level_;
 1694|      0|                        break;
 1695|   150k|                }
 1696|   150k|                break;
 1697|   150k|            }
 1698|   150k|            default:
  ------------------
  |  Branch (1698:13): [True: 0, False: 150k]
  ------------------
 1699|      0|                break;
 1700|   150k|        }
 1701|   150k|        column_index_ = 0;
 1702|   150k|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE9pop_stateEv:
 2399|  6.04M|    {
 2400|  6.04M|        JSONCONS_ASSERT(!state_stack_.empty())
  ------------------
  |  |   67|  6.04M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 6.04M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2401|  6.04M|        csv_parse_state state = state_stack_.back();
 2402|  6.04M|        state_stack_.pop_back();
 2403|  6.04M|        return state;
 2404|  6.04M|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE10push_stateENS0_15csv_parse_stateE:
 2394|  6.04M|    {
 2395|  6.04M|        state_stack_.push_back(state);
 2396|  6.04M|    }
_ZN8jsoncons3csv16basic_csv_parserIcNSt3__19allocatorIcEEE12begin_recordERNS_18basic_json_visitorIcEERNS2_10error_codeE:
 1557|   150k|    {
 1558|   150k|        offset_ = 0;
 1559|       |
 1560|   150k|        if (stack_.back() == csv_mode::header && line_ > (header_lines_+header_line_offset_))
  ------------------
  |  Branch (1560:13): [True: 0, False: 150k]
  |  Branch (1560:50): [True: 0, False: 0]
  ------------------
 1561|      0|        {
 1562|      0|            stack_.back() = csv_mode::data;
 1563|      0|        }
 1564|   150k|        switch (stack_.back())
 1565|   150k|        {
 1566|      0|            case csv_mode::header:
  ------------------
  |  Branch (1566:13): [True: 0, False: 150k]
  ------------------
 1567|      0|                switch (mapping_kind_)
 1568|      0|                {
 1569|      0|                    case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1569:21): [True: 0, False: 0]
  ------------------
 1570|      0|                        if (assume_header_ && line_ == (header_line_+header_line_offset_))
  ------------------
  |  Branch (1570:29): [True: 0, False: 0]
  |  Branch (1570:47): [True: 0, False: 0]
  ------------------
 1571|      0|                        {
 1572|      0|                            visitor.begin_array(semantic_tag::none, *this, ec);
 1573|      0|                            more_ = !cursor_mode_;
 1574|      0|                            ++level_;
 1575|      0|                        }
 1576|      0|                        break;
 1577|      0|                    default:
  ------------------
  |  Branch (1577:21): [True: 0, False: 0]
  ------------------
 1578|      0|                        break;
 1579|      0|                }
 1580|      0|                break;
 1581|   150k|            case csv_mode::data:
  ------------------
  |  Branch (1581:13): [True: 150k, False: 0]
  ------------------
 1582|   150k|                switch (mapping_kind_)
 1583|   150k|                {
 1584|   150k|                    case csv_mapping_kind::n_rows:
  ------------------
  |  Branch (1584:21): [True: 150k, False: 0]
  ------------------
 1585|   150k|                        visitor.begin_array(semantic_tag::none, *this, ec);
 1586|   150k|                        more_ = !cursor_mode_;
 1587|   150k|                        ++level_;
 1588|   150k|                        break;
 1589|      0|                    case csv_mapping_kind::n_objects:
  ------------------
  |  Branch (1589:21): [True: 0, False: 150k]
  ------------------
 1590|      0|                        visitor.begin_object(semantic_tag::none, *this, ec);
 1591|      0|                        more_ = !cursor_mode_;
 1592|      0|                        ++level_;
 1593|      0|                        break;
 1594|      0|                    case csv_mapping_kind::m_columns:
  ------------------
  |  Branch (1594:21): [True: 0, False: 150k]
  ------------------
 1595|      0|                        break;
 1596|      0|                    default:
  ------------------
  |  Branch (1596:21): [True: 0, False: 150k]
  ------------------
 1597|      0|                        break;
 1598|   150k|                }
 1599|   150k|                break;
 1600|   150k|            default:
  ------------------
  |  Branch (1600:13): [True: 0, False: 150k]
  ------------------
 1601|      0|                break;
 1602|   150k|        }
 1603|   150k|    }

_ZN8jsoncons3csv16basic_csv_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES5_ED2Ev:
  109|  3.49k|        ~basic_csv_reader() noexcept = default;
_ZN8jsoncons3csv16basic_csv_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES5_EC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES5_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_24basic_csv_decode_optionsIcEERKS5_:
   62|  3.49k|           : source_(std::forward<Sourceable>(source)),
   63|  3.49k|             visitor_(visitor),
   64|  3.49k|             parser_(options, alloc)
   65|       |
   66|  3.49k|        {
   67|  3.49k|        }
_ZN8jsoncons3csv16basic_csv_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES5_E4readERNS3_10error_codeE:
  122|  3.49k|        {
  123|  3.49k|            read_internal(ec);
  124|  3.49k|        }
_ZN8jsoncons3csv16basic_csv_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES5_E13read_internalERNS3_10error_codeE:
  144|  3.49k|        {
  145|  3.49k|            if (source_.is_error())
  ------------------
  |  Branch (145:17): [True: 0, False: 3.49k]
  ------------------
  146|      0|            {
  147|      0|                ec = csv_errc::source_error;
  148|      0|                return;
  149|      0|            }   
  150|  30.0k|            while (!parser_.stopped())
  ------------------
  |  Branch (150:20): [True: 26.5k, False: 3.44k]
  ------------------
  151|  26.5k|            {
  152|  26.5k|                if (parser_.source_exhausted())
  ------------------
  |  Branch (152:21): [True: 26.5k, False: 0]
  ------------------
  153|  26.5k|                {
  154|  26.5k|                    auto s = source_.read_chunk(ec);
  155|  26.5k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|  26.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13, False: 26.5k]
  |  |  ------------------
  ------------------
  156|  26.5k|                    if (s.size() > 0)
  ------------------
  |  Branch (156:25): [True: 6.44k, False: 20.1k]
  ------------------
  157|  6.44k|                    {
  158|  6.44k|                        parser_.update(s.data(),s.size());
  159|  6.44k|                    }
  160|  26.5k|                }
  161|  26.5k|                parser_.parse_some(visitor_, ec);
  162|  26.5k|                if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|  26.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 37, False: 26.5k]
  |  |  ------------------
  ------------------
  163|  26.5k|            }
  164|  3.49k|        }

