LLVMFuzzerTestOneInput:
   16|  12.0k|{
   17|       |   // use a vector with null termination instead of a std::string to avoid
   18|       |   // small string optimization to hide bounds problems
   19|  12.0k|   std::vector<char> buffer{Data, Data + Size};
   20|       |
   21|       |   // non-null terminated
   22|  12.0k|   {
   23|  12.0k|      const auto& input = buffer;
   24|  12.0k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   25|       |
   26|  12.0k|      std::string json_output{};
   27|  12.0k|      [[maybe_unused]] auto ec = glz::beve_to_json(input, json_output);
   28|  12.0k|   }
   29|       |
   30|       |   // null terminated
   31|  12.0k|   {
   32|  12.0k|      buffer.push_back('\0');
   33|  12.0k|      const auto& input = buffer;
   34|  12.0k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   35|  12.0k|   }
   36|       |
   37|  12.0k|   return 0;
   38|  12.0k|}

_ZN3glz12beve_to_jsonITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__16vectorIcNS2_9allocatorIcEEEENS2_12basic_stringIcNS2_11char_traitsIcEES5_EEEENS_9error_ctxERKT0_RT1_:
  789|  12.0k|   {
  790|  12.0k|      size_t ix{}; // write index
  791|       |
  792|  12.0k|      auto* it = beve.data();
  793|  12.0k|      auto* end = it + beve.size();
  794|       |
  795|  12.0k|      context ctx{};
  796|       |
  797|  12.0k|      if (it >= end) {
  ------------------
  |  Branch (797:11): [True: 0, False: 12.0k]
  ------------------
  798|      0|         return {0, error_code::unexpected_end};
  799|      0|      }
  800|       |
  801|  12.0k|      bool needs_separator = false;
  802|       |
  803|  6.95M|      while (it < end) {
  ------------------
  |  Branch (803:14): [True: 6.95M, False: 3.40k]
  ------------------
  804|  6.95M|         const bool is_delimiter = uint8_t(*it) == tag::delimiter;
  805|       |
  806|  6.95M|         if (needs_separator && !is_delimiter) {
  ------------------
  |  Branch (806:14): [True: 6.91M, False: 37.4k]
  |  Branch (806:33): [True: 6.91M, False: 1.02k]
  ------------------
  807|  6.91M|            if (!detail::emit_char(ctx, '\n', out, ix)) {
  ------------------
  |  Branch (807:17): [True: 0, False: 6.91M]
  ------------------
  808|      0|               return {ix, ctx.error};
  809|      0|            }
  810|  6.91M|         }
  811|  6.95M|         needs_separator = !is_delimiter;
  812|       |
  813|  6.95M|         detail::beve_to_json_value<Opts>(ctx, it, end, out, ix, 0);
  814|  6.95M|         if (bool(ctx.error)) {
  ------------------
  |  Branch (814:14): [True: 8.67k, False: 6.94M]
  ------------------
  815|  8.67k|            return {ix, ctx.error};
  816|  8.67k|         }
  817|  6.95M|      }
  818|       |
  819|  3.40k|      if constexpr (resizable<JSONBuffer>) {
  820|  3.40k|         out.resize(ix);
  821|  3.40k|      }
  822|       |
  823|       |      // count is the number of bytes written. A resizable buffer carries its own size, but a
  824|       |      // fixed-size one has no other way to learn how much of it now holds JSON.
  825|  3.40k|      return {ix};
  826|  12.0k|   }
_ZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_j:
  114|  21.4M|      {
  115|  21.4M|         if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (115:14): [True: 770, False: 21.4M]
  ------------------
  116|    770|            ctx.error = error_code::syntax_error;
  117|    770|            return;
  118|    770|         }
  119|  21.4M|         const auto tag = uint8_t(*it);
  120|  21.4M|         const auto type = tag & 0b00000'111;
  121|       |
  122|       |         // `recursive_depth` is the number of levels enclosing this value. Containers, and the
  123|       |         // extensions that wrap a value, open another; scalars do not, so as in the readers a scalar
  124|       |         // may sit inside the deepest container the limit allows.
  125|  21.4M|         const bool opens_level = type != tag::null && type != tag::number && type != tag::string;
  ------------------
  |  Branch (125:35): [True: 6.37M, False: 15.1M]
  |  Branch (125:56): [True: 6.27M, False: 100k]
  |  Branch (125:79): [True: 6.25M, False: 13.4k]
  ------------------
  126|  21.4M|         if (opens_level && recursive_depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (126:14): [True: 6.25M, False: 15.2M]
  |  Branch (126:29): [True: 10, False: 6.25M]
  ------------------
  127|     10|            ctx.error = error_code::exceeded_max_recursive_depth;
  128|     10|            return;
  129|     10|         }
  130|       |
  131|  21.4M|         switch (type) {
  132|  15.1M|         case tag::null: {
  ------------------
  |  Branch (132:10): [True: 15.1M, False: 6.37M]
  ------------------
  133|  15.1M|            if (tag & tag::boolean) {
  ------------------
  |  Branch (133:17): [True: 1.74M, False: 13.3M]
  ------------------
  134|  1.74M|               if (tag >> 4) {
  ------------------
  |  Branch (134:20): [True: 700k, False: 1.04M]
  ------------------
  135|   700k|                  if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (135:23): [True: 0, False: 700k]
  ------------------
  136|   700k|               }
  137|  1.04M|               else {
  138|  1.04M|                  if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (138:23): [True: 0, False: 1.04M]
  ------------------
  139|  1.04M|               }
  140|  1.74M|            }
  141|  13.3M|            else {
  142|  13.3M|               if (!emit_literal<"null">(ctx, out, ix)) return;
  ------------------
  |  Branch (142:20): [True: 0, False: 13.3M]
  ------------------
  143|  13.3M|            }
  144|  15.1M|            ++it;
  145|  15.1M|            break;
  146|  15.1M|         }
  147|   100k|         case tag::number: {
  ------------------
  |  Branch (147:10): [True: 100k, False: 21.3M]
  ------------------
  148|   100k|            ++it;
  149|   100k|            beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  150|   100k|            if (bool(ctx.error)) return;
  ------------------
  |  Branch (150:17): [True: 267, False: 100k]
  ------------------
  151|   100k|            break;
  152|   100k|         }
  153|   100k|         case tag::string: {
  ------------------
  |  Branch (153:10): [True: 13.4k, False: 21.4M]
  ------------------
  154|  13.4k|            ++it;
  155|  13.4k|            const auto n = int_from_compressed(ctx, it, end);
  156|  13.4k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (156:17): [True: 149, False: 13.2k]
  ------------------
  157|    149|               return;
  158|    149|            }
  159|  13.2k|            if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (159:17): [True: 186, False: 13.0k]
  ------------------
  160|    186|               ctx.error = error_code::unexpected_end;
  161|    186|               return;
  162|    186|            }
  163|  13.0k|            const sv value{reinterpret_cast<const char*>(it), n};
  164|  13.0k|            detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  165|  13.0k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (165:17): [True: 137, False: 12.9k]
  ------------------
  166|    137|               return;
  167|  12.9k|            it += n;
  168|  12.9k|            break;
  169|  13.0k|         }
  170|  12.1k|         case tag::object: {
  ------------------
  |  Branch (170:10): [True: 12.1k, False: 21.4M]
  ------------------
  171|  12.1k|            ++it;
  172|       |
  173|  12.1k|            if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (173:17): [True: 0, False: 12.1k]
  ------------------
  174|  12.1k|            {
  175|       |               // The indentation this object adds belongs to it, so every way out -- including an
  176|       |               // error return from a nested value -- puts the depth back.
  177|  12.1k|               const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (177:47): [Folded, False: 12.1k]
  ------------------
  178|       |
  179|       |               if constexpr (Opts.prettify) {
  180|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  181|       |               }
  182|       |
  183|  12.1k|               const auto key_type = (tag & 0b000'11'000) >> 3;
  184|  12.1k|               switch (key_type) {
  185|  7.38k|               case 0: {
  ------------------
  |  Branch (185:16): [True: 7.38k, False: 4.74k]
  ------------------
  186|       |                  // string key
  187|  7.38k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  188|  7.38k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (188:23): [True: 151, False: 7.23k]
  ------------------
  189|    151|                     return;
  190|    151|                  }
  191|  1.64M|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (191:38): [True: 1.63M, False: 4.44k]
  ------------------
  192|       |                     // convert the key
  193|  1.63M|                     const auto n = int_from_compressed(ctx, it, end);
  194|  1.63M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (194:26): [True: 656, False: 1.63M]
  ------------------
  195|    656|                        return;
  196|    656|                     }
  197|  1.63M|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (197:26): [True: 353, False: 1.63M]
  ------------------
  198|    353|                        ctx.error = error_code::unexpected_end;
  199|    353|                        return;
  200|    353|                     }
  201|  1.63M|                     const sv key{reinterpret_cast<const char*>(it), n};
  202|  1.63M|                     detail::emit_untrusted_string<Opts>(ctx, key, out, ix);
  203|  1.63M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (203:26): [True: 182, False: 1.63M]
  ------------------
  204|    182|                        return;
  205|       |                     if constexpr (Opts.prettify) {
  206|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  207|       |                     }
  208|  1.63M|                     else {
  209|  1.63M|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (209:29): [True: 0, False: 1.63M]
  ------------------
  210|  1.63M|                     }
  211|  1.63M|                     it += n;
  212|  1.63M|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  213|  1.63M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (213:26): [True: 1.60k, False: 1.63M]
  ------------------
  214|  1.60k|                        return;
  215|  1.60k|                     }
  216|  1.63M|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (216:26): [True: 1.63M, False: 518]
  ------------------
  217|  1.63M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (217:29): [True: 0, False: 1.63M]
  ------------------
  218|       |                        if constexpr (Opts.prettify) {
  219|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  220|       |                        }
  221|  1.63M|                     }
  222|  1.63M|                  }
  223|  4.44k|                  break;
  224|  7.23k|               }
  225|  4.44k|               case 1:
  ------------------
  |  Branch (225:16): [True: 3.14k, False: 8.97k]
  ------------------
  226|  3.14k|                  [[fallthrough]]; // signed integer key
  227|  4.69k|               case 2: {
  ------------------
  |  Branch (227:16): [True: 1.54k, False: 10.5k]
  ------------------
  228|       |                  // unsigned integer key
  229|  4.69k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  230|  4.69k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (230:23): [True: 64, False: 4.62k]
  ------------------
  231|     64|                     return;
  232|     64|                  }
  233|   614k|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (233:38): [True: 610k, False: 3.42k]
  ------------------
  234|       |                     // convert the key
  235|   610k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (235:26): [True: 0, False: 610k]
  ------------------
  236|   610k|                     beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  237|   610k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (237:26): [True: 229, False: 610k]
  ------------------
  238|    229|                        return;
  239|    229|                     }
  240|   610k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (240:26): [True: 0, False: 610k]
  ------------------
  241|       |                     if constexpr (Opts.prettify) {
  242|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  243|       |                     }
  244|   610k|                     else {
  245|   610k|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (245:29): [True: 0, False: 610k]
  ------------------
  246|   610k|                     }
  247|   610k|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  248|   610k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (248:26): [True: 978, False: 609k]
  ------------------
  249|    978|                        return;
  250|    978|                     }
  251|   609k|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (251:26): [True: 609k, False: 461]
  ------------------
  252|   609k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (252:29): [True: 0, False: 609k]
  ------------------
  253|       |                        if constexpr (Opts.prettify) {
  254|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  255|       |                        }
  256|   609k|                     }
  257|   609k|                  }
  258|  3.42k|                  break;
  259|  4.62k|               }
  260|  3.42k|               default: {
  ------------------
  |  Branch (260:16): [True: 49, False: 12.0k]
  ------------------
  261|     49|                  ctx.error = error_code::syntax_error;
  262|     49|                  return;
  263|  4.62k|               }
  264|  12.1k|               }
  265|  12.1k|            }
  266|       |
  267|       |            if constexpr (Opts.prettify) {
  268|       |               if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  269|       |            }
  270|  7.86k|            if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (270:17): [True: 0, False: 7.86k]
  ------------------
  271|  7.86k|            break;
  272|  7.86k|         }
  273|   419k|         case tag::typed_array: {
  ------------------
  |  Branch (273:10): [True: 419k, False: 21.0M]
  ------------------
  274|       |            // Check for aligned typed array (tag == 0x5C)
  275|   419k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (275:17): [True: 21.1k, False: 397k]
  ------------------
  276|  21.1k|               ++it; // skip aligned header
  277|  21.1k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (277:20): [True: 8, False: 21.1k]
  ------------------
  278|      8|                  ctx.error = error_code::syntax_error;
  279|      8|                  return;
  280|      8|               }
  281|       |               // Read the numeric header byte
  282|  21.1k|               const auto numeric_tag = uint8_t(*it);
  283|  21.1k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (283:20): [True: 14, False: 21.1k]
  ------------------
  284|     14|                  ctx.error = error_code::syntax_error;
  285|     14|                  return;
  286|     14|               }
  287|  21.1k|               ++it; // skip numeric header
  288|  21.1k|               const auto value_type_inner = (numeric_tag & 0b000'11'000) >> 3;
  289|  21.1k|               const uint8_t byte_count_inner = byte_count_lookup[numeric_tag >> 5];
  290|       |
  291|  21.1k|               const auto n = int_from_compressed(ctx, it, end);
  292|  21.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (292:20): [True: 158, False: 21.0k]
  ------------------
  293|    158|                  return;
  294|    158|               }
  295|       |
  296|       |               // Read padding length byte and skip padding
  297|  21.0k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (297:20): [True: 197, False: 20.8k]
  ------------------
  298|    197|                  ctx.error = error_code::unexpected_end;
  299|    197|                  return;
  300|    197|               }
  301|  20.8k|               const uint8_t padding = uint8_t(*it);
  302|  20.8k|               ++it;
  303|  20.8k|               if (padding >= byte_count_inner) [[unlikely]] {
  ------------------
  |  Branch (303:20): [True: 29, False: 20.7k]
  ------------------
  304|     29|                  ctx.error = error_code::syntax_error;
  305|     29|                  return;
  306|     29|               }
  307|  20.7k|               if (typed_array_out_of_bounds(ctx, it, end, n, byte_count_inner, padding)) return;
  ------------------
  |  Branch (307:20): [True: 131, False: 20.6k]
  ------------------
  308|  20.6k|               it += padding;
  309|       |
  310|       |               // Now decode as a normal numeric typed array
  311|  20.6k|               if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (311:20): [True: 0, False: 20.6k]
  ------------------
  312|       |
  313|  20.6k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  20.6k|                  for (size_t i = 0; i < n; ++i) {
  315|  20.6k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  316|  20.6k|                        ctx.error = error_code::unexpected_end;
  317|  20.6k|                        return;
  318|  20.6k|                     }
  319|  20.6k|                     using V = std::remove_cvref_t<T>;
  320|  20.6k|                     std::memcpy(&value, it, sizeof(V));
  321|  20.6k|                     if constexpr (std::endian::native == std::endian::big) {
  322|  20.6k|                        byteswap_le(value);
  323|  20.6k|                     }
  324|  20.6k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  20.6k|                     it += sizeof(T);
  326|  20.6k|                     if (i != n - 1) {
  327|  20.6k|                        if (!emit_char(ctx, ',', out, ix)) return;
  328|  20.6k|                     }
  329|  20.6k|                  }
  330|  20.6k|               };
  331|       |
  332|  20.6k|               switch (value_type_inner) {
  333|  2.08k|               case 0: {
  ------------------
  |  Branch (333:16): [True: 2.08k, False: 18.5k]
  ------------------
  334|  2.08k|                  switch (byte_count_inner) {
  335|    714|                  case 4:
  ------------------
  |  Branch (335:19): [True: 714, False: 1.37k]
  ------------------
  336|    714|                     write_aligned_array(float{});
  337|    714|                     break;
  338|  1.36k|                  case 8:
  ------------------
  |  Branch (338:19): [True: 1.36k, False: 720]
  ------------------
  339|  1.36k|                     write_aligned_array(double{});
  340|  1.36k|                     break;
  341|      6|                  default:
  ------------------
  |  Branch (341:19): [True: 6, False: 2.08k]
  ------------------
  342|      6|                     ctx.error = error_code::syntax_error;
  343|      6|                     return;
  344|  2.08k|                  }
  345|  2.08k|                  break;
  346|  2.08k|               }
  347|  5.96k|               case 1: {
  ------------------
  |  Branch (347:16): [True: 5.96k, False: 14.6k]
  ------------------
  348|  5.96k|                  switch (byte_count_inner) {
  349|  2.01k|                  case 1:
  ------------------
  |  Branch (349:19): [True: 2.01k, False: 3.95k]
  ------------------
  350|  2.01k|                     write_aligned_array(int8_t{});
  351|  2.01k|                     break;
  352|    919|                  case 2:
  ------------------
  |  Branch (352:19): [True: 919, False: 5.04k]
  ------------------
  353|    919|                     write_aligned_array(int16_t{});
  354|    919|                     break;
  355|  2.07k|                  case 4:
  ------------------
  |  Branch (355:19): [True: 2.07k, False: 3.89k]
  ------------------
  356|  2.07k|                     write_aligned_array(int32_t{});
  357|  2.07k|                     break;
  358|    957|                  case 8:
  ------------------
  |  Branch (358:19): [True: 957, False: 5.00k]
  ------------------
  359|    957|                     write_aligned_array(int64_t{});
  360|    957|                     break;
  361|      4|                  default:
  ------------------
  |  Branch (361:19): [True: 4, False: 5.96k]
  ------------------
  362|      4|                     ctx.error = error_code::syntax_error;
  363|      4|                     return;
  364|  5.96k|                  }
  365|  5.96k|                  break;
  366|  5.96k|               }
  367|  12.5k|               case 2: {
  ------------------
  |  Branch (367:16): [True: 12.5k, False: 8.05k]
  ------------------
  368|  12.5k|                  switch (byte_count_inner) {
  369|    671|                  case 1:
  ------------------
  |  Branch (369:19): [True: 671, False: 11.9k]
  ------------------
  370|    671|                     write_aligned_array(uint8_t{});
  371|    671|                     break;
  372|  3.57k|                  case 2:
  ------------------
  |  Branch (372:19): [True: 3.57k, False: 9.01k]
  ------------------
  373|  3.57k|                     write_aligned_array(uint16_t{});
  374|  3.57k|                     break;
  375|    564|                  case 4:
  ------------------
  |  Branch (375:19): [True: 564, False: 12.0k]
  ------------------
  376|    564|                     write_aligned_array(uint32_t{});
  377|    564|                     break;
  378|  7.77k|                  case 8:
  ------------------
  |  Branch (378:19): [True: 7.77k, False: 4.81k]
  ------------------
  379|  7.77k|                     write_aligned_array(uint64_t{});
  380|  7.77k|                     break;
  381|      6|                  default:
  ------------------
  |  Branch (381:19): [True: 6, False: 12.5k]
  ------------------
  382|      6|                     ctx.error = error_code::syntax_error;
  383|      6|                     return;
  384|  12.5k|                  }
  385|  12.5k|                  break;
  386|  12.5k|               }
  387|  12.5k|               default:
  ------------------
  |  Branch (387:16): [True: 2, False: 20.6k]
  ------------------
  388|      2|                  ctx.error = error_code::syntax_error;
  389|      2|                  return;
  390|  20.6k|               }
  391|       |
  392|  20.6k|               if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (392:20): [True: 0, False: 20.6k]
  ------------------
  393|  20.6k|               break;
  394|  20.6k|            }
  395|       |
  396|   397k|            ++it;
  397|   397k|            const auto value_type = (tag & 0b000'11'000) >> 3;
  398|   397k|            const uint8_t byte_count = byte_count_lookup[tag >> 5];
  399|       |
  400|   397k|            auto write_array = [&]<class T>(T&& value) {
  401|   397k|               const auto n = int_from_compressed(ctx, it, end);
  402|   397k|               if (bool(ctx.error)) [[unlikely]] {
  403|   397k|                  return;
  404|   397k|               }
  405|   397k|               for (size_t i = 0; i < n; ++i) {
  406|   397k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  407|   397k|                     ctx.error = error_code::unexpected_end;
  408|   397k|                     return;
  409|   397k|                  }
  410|   397k|                  using V = std::remove_cvref_t<T>;
  411|   397k|                  std::memcpy(&value, it, sizeof(V));
  412|   397k|                  if constexpr (std::endian::native == std::endian::big) {
  413|   397k|                     byteswap_le(value);
  414|   397k|                  }
  415|   397k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   397k|                  it += sizeof(T);
  417|   397k|                  if (i != n - 1) {
  418|   397k|                     if (!emit_char(ctx, ',', out, ix)) return;
  419|   397k|                  }
  420|   397k|               }
  421|   397k|            };
  422|       |
  423|   397k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (423:17): [True: 0, False: 397k]
  ------------------
  424|       |
  425|   397k|            switch (value_type) {
  426|  5.38k|            case 0: {
  ------------------
  |  Branch (426:13): [True: 5.38k, False: 392k]
  ------------------
  427|       |               // floating point
  428|  5.38k|               switch (byte_count) {
  429|  3.48k|               case 4: {
  ------------------
  |  Branch (429:16): [True: 3.48k, False: 1.90k]
  ------------------
  430|  3.48k|                  write_array(float{});
  431|  3.48k|                  break;
  432|      0|               }
  433|  1.83k|               case 8: {
  ------------------
  |  Branch (433:16): [True: 1.83k, False: 3.55k]
  ------------------
  434|  1.83k|                  write_array(double{});
  435|  1.83k|                  break;
  436|      0|               }
  437|     71|               default: {
  ------------------
  |  Branch (437:16): [True: 71, False: 5.31k]
  ------------------
  438|     71|                  ctx.error = error_code::syntax_error;
  439|     71|                  return;
  440|      0|               }
  441|  5.38k|               }
  442|  5.31k|               break;
  443|  5.38k|            }
  444|  21.8k|            case 1: {
  ------------------
  |  Branch (444:13): [True: 21.8k, False: 376k]
  ------------------
  445|       |               // signed integer
  446|  21.8k|               switch (byte_count) {
  447|  11.8k|               case 1: {
  ------------------
  |  Branch (447:16): [True: 11.8k, False: 10.0k]
  ------------------
  448|  11.8k|                  write_array(int8_t{});
  449|  11.8k|                  break;
  450|      0|               }
  451|  4.69k|               case 2: {
  ------------------
  |  Branch (451:16): [True: 4.69k, False: 17.1k]
  ------------------
  452|  4.69k|                  write_array(int16_t{});
  453|  4.69k|                  break;
  454|      0|               }
  455|  3.84k|               case 4: {
  ------------------
  |  Branch (455:16): [True: 3.84k, False: 18.0k]
  ------------------
  456|  3.84k|                  write_array(int32_t{});
  457|  3.84k|                  break;
  458|      0|               }
  459|  1.48k|               case 8: {
  ------------------
  |  Branch (459:16): [True: 1.48k, False: 20.4k]
  ------------------
  460|  1.48k|                  write_array(int64_t{});
  461|  1.48k|                  break;
  462|      0|               }
  463|     16|               default: {
  ------------------
  |  Branch (463:16): [True: 16, False: 21.8k]
  ------------------
  464|     16|                  ctx.error = error_code::syntax_error;
  465|     16|                  return;
  466|      0|               }
  467|  21.8k|               }
  468|  21.8k|               break;
  469|  21.8k|            }
  470|  60.4k|            case 2: {
  ------------------
  |  Branch (470:13): [True: 60.4k, False: 337k]
  ------------------
  471|       |               // unsigned integer
  472|  60.4k|               switch (byte_count) {
  473|  38.3k|               case 1: {
  ------------------
  |  Branch (473:16): [True: 38.3k, False: 22.1k]
  ------------------
  474|  38.3k|                  write_array(uint8_t{});
  475|  38.3k|                  break;
  476|      0|               }
  477|  2.08k|               case 2: {
  ------------------
  |  Branch (477:16): [True: 2.08k, False: 58.3k]
  ------------------
  478|  2.08k|                  write_array(uint16_t{});
  479|  2.08k|                  break;
  480|      0|               }
  481|  1.82k|               case 4: {
  ------------------
  |  Branch (481:16): [True: 1.82k, False: 58.6k]
  ------------------
  482|  1.82k|                  write_array(uint32_t{});
  483|  1.82k|                  break;
  484|      0|               }
  485|  18.1k|               case 8: {
  ------------------
  |  Branch (485:16): [True: 18.1k, False: 42.2k]
  ------------------
  486|  18.1k|                  write_array(uint64_t{});
  487|  18.1k|                  break;
  488|      0|               }
  489|     15|               default: {
  ------------------
  |  Branch (489:16): [True: 15, False: 60.4k]
  ------------------
  490|     15|                  ctx.error = error_code::syntax_error;
  491|     15|                  return;
  492|      0|               }
  493|  60.4k|               }
  494|  60.4k|               break;
  495|  60.4k|            }
  496|   310k|            case 3: {
  ------------------
  |  Branch (496:13): [True: 310k, False: 87.7k]
  ------------------
  497|       |               // string or boolean
  498|   310k|               const auto string_or_boolean = (tag & 0b001'00'000) >> 5;
  499|   310k|               switch (string_or_boolean) {
  500|   308k|               case 0: {
  ------------------
  |  Branch (500:16): [True: 308k, False: 1.75k]
  ------------------
  501|       |                  // boolean array (bit packed, LSB first)
  502|   308k|                  const auto n = int_from_compressed(ctx, it, end);
  503|   308k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (503:23): [True: 50, False: 308k]
  ------------------
  504|     50|                     return;
  505|     50|                  }
  506|   308k|                  const auto num_bytes = (n + 7) / 8;
  507|   308k|                  if (uint64_t(end - it) < num_bytes) [[unlikely]] {
  ------------------
  |  Branch (507:23): [True: 146, False: 308k]
  ------------------
  508|    146|                     ctx.error = error_code::unexpected_end;
  509|    146|                     return;
  510|    146|                  }
  511|   308k|                  if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
  ------------------
  |  Branch (511:23): [True: 287k, False: 20.3k]
  |  Branch (511:36): [True: 21, False: 287k]
  ------------------
  512|     21|                     ctx.error = error_code::syntax_error;
  513|     21|                     return;
  514|     21|                  }
  515|   472M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (515:38): [True: 471M, False: 308k]
  ------------------
  516|   471M|                     if (i != 0) {
  ------------------
  |  Branch (516:26): [True: 471M, False: 287k]
  ------------------
  517|   471M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (517:29): [True: 0, False: 471M]
  ------------------
  518|   471M|                     }
  519|   471M|                     const bool x = (uint8_t(it[i / 8]) >> (i % 8)) & uint8_t(1);
  520|   471M|                     if (x) {
  ------------------
  |  Branch (520:26): [True: 85.2M, False: 386M]
  ------------------
  521|  85.2M|                        if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (521:29): [True: 0, False: 85.2M]
  ------------------
  522|  85.2M|                     }
  523|   386M|                     else {
  524|   386M|                        if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (524:29): [True: 0, False: 386M]
  ------------------
  525|   386M|                     }
  526|   471M|                  }
  527|   308k|                  it += num_bytes;
  528|   308k|                  break;
  529|   308k|               }
  530|  1.75k|               case 1: {
  ------------------
  |  Branch (530:16): [True: 1.75k, False: 308k]
  ------------------
  531|       |                  // array of strings
  532|  1.75k|                  const auto n_strings = int_from_compressed(ctx, it, end);
  533|  1.75k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (533:23): [True: 58, False: 1.70k]
  ------------------
  534|     58|                     return;
  535|     58|                  }
  536|   180k|                  for (size_t i = 0; i < n_strings; ++i) {
  ------------------
  |  Branch (536:38): [True: 179k, False: 1.24k]
  ------------------
  537|   179k|                     const auto n = int_from_compressed(ctx, it, end);
  538|   179k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (538:26): [True: 273, False: 178k]
  ------------------
  539|    273|                        return;
  540|    273|                     }
  541|   178k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (541:26): [True: 119, False: 178k]
  ------------------
  542|    119|                        ctx.error = error_code::unexpected_end;
  543|    119|                        return;
  544|    119|                     }
  545|   178k|                     const sv value{reinterpret_cast<const char*>(it), n};
  546|   178k|                     detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  547|   178k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (547:26): [True: 59, False: 178k]
  ------------------
  548|     59|                        return;
  549|   178k|                     it += n;
  550|   178k|                     if (i != n_strings - 1) {
  ------------------
  |  Branch (550:26): [True: 178k, False: 237]
  ------------------
  551|   178k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (551:29): [True: 0, False: 178k]
  ------------------
  552|   178k|                     }
  553|   178k|                  }
  554|  1.24k|                  break;
  555|  1.70k|               }
  556|  1.24k|               default: {
  ------------------
  |  Branch (556:16): [True: 0, False: 310k]
  ------------------
  557|      0|                  ctx.error = error_code::syntax_error;
  558|      0|                  return;
  559|  1.70k|               }
  560|   310k|               }
  561|   309k|               break;
  562|   310k|            }
  563|   309k|            default: {
  ------------------
  |  Branch (563:13): [True: 0, False: 397k]
  ------------------
  564|      0|               ctx.error = error_code::syntax_error;
  565|      0|               return;
  566|   310k|            }
  567|   397k|            }
  568|       |
  569|   397k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (569:17): [True: 0, False: 397k]
  ------------------
  570|       |
  571|   397k|            break;
  572|   397k|         }
  573|   397k|         case tag::generic_array: {
  ------------------
  |  Branch (573:10): [True: 19.8k, False: 21.4M]
  ------------------
  574|  19.8k|            ++it;
  575|  19.8k|            const auto n = int_from_compressed(ctx, it, end);
  576|  19.8k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (576:17): [True: 46, False: 19.8k]
  ------------------
  577|     46|               return;
  578|     46|            }
  579|  19.8k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (579:17): [True: 0, False: 19.8k]
  ------------------
  580|   958k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (580:32): [True: 941k, False: 16.5k]
  ------------------
  581|   941k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  582|   941k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (582:20): [True: 3.27k, False: 938k]
  ------------------
  583|  3.27k|                  return;
  584|  3.27k|               }
  585|   938k|               if (i != n - 1) {
  ------------------
  |  Branch (585:20): [True: 937k, False: 911]
  ------------------
  586|   937k|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (586:23): [True: 0, False: 937k]
  ------------------
  587|   937k|               }
  588|   938k|            }
  589|  16.5k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (589:17): [True: 0, False: 16.5k]
  ------------------
  590|  16.5k|            break;
  591|  16.5k|         }
  592|  5.80M|         case tag::extensions: {
  ------------------
  |  Branch (592:10): [True: 5.80M, False: 15.6M]
  ------------------
  593|  5.80M|            const uint8_t extension = tag >> 3;
  594|  5.80M|            switch (extension) {
  595|   120k|            case 0: {
  ------------------
  |  Branch (595:13): [True: 120k, False: 5.68M]
  ------------------
  596|       |               // delimiter
  597|   120k|               ++it;
  598|   120k|               if (!emit_char(ctx, '\n', out, ix)) return;
  ------------------
  |  Branch (598:20): [True: 0, False: 120k]
  ------------------
  599|   120k|               break;
  600|   120k|            }
  601|   120k|            case 1: {
  ------------------
  |  Branch (601:13): [True: 1.96k, False: 5.80M]
  ------------------
  602|       |               // legacy (Version 1) type tag: transcode by dropping the positional index and
  603|       |               // emitting the value. Version 2 variants are ordinary objects/values transcoded by
  604|       |               // their normal cases and never reach here.
  605|  1.96k|               ++it;
  606|  1.96k|               skip_compressed_int(ctx, it, end);
  607|  1.96k|               if (bool(ctx.error)) return;
  ------------------
  |  Branch (607:20): [True: 3, False: 1.96k]
  ------------------
  608|       |
  609|  1.96k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  610|  1.96k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (610:20): [True: 1.34k, False: 618]
  ------------------
  611|  1.34k|                  return;
  612|  1.34k|               }
  613|    618|               break;
  614|  1.96k|            }
  615|  5.68M|            case 2: {
  ------------------
  |  Branch (615:13): [True: 5.68M, False: 125k]
  ------------------
  616|       |               // matrices
  617|  5.68M|               ++it;
  618|  5.68M|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (618:20): [True: 29, False: 5.68M]
  ------------------
  619|     29|                  ctx.error = error_code::syntax_error;
  620|     29|                  return;
  621|     29|               }
  622|  5.68M|               const auto matrix_header = uint8_t(*it);
  623|  5.68M|               ++it;
  624|       |
  625|  5.68M|               if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (625:20): [True: 0, False: 5.68M]
  ------------------
  626|  5.68M|               {
  627|       |                  // The indentation this matrix adds belongs to it, so every way out -- including an
  628|       |                  // error return from a nested value -- puts the depth back.
  629|  5.68M|                  const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (629:50): [Folded, False: 5.68M]
  ------------------
  630|       |
  631|       |                  if constexpr (Opts.prettify) {
  632|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  633|       |                  }
  634|       |
  635|       |                  if constexpr (Opts.prettify) {
  636|       |                     if (!emit_literal<R"("layout": )">(ctx, out, ix)) return;
  637|       |                  }
  638|  5.68M|                  else {
  639|  5.68M|                     if (!emit_literal<R"("layout":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (639:26): [True: 0, False: 5.68M]
  ------------------
  640|  5.68M|                  }
  641|       |
  642|  5.68M|                  const auto layout = matrix_header & 0b0000000'1;
  643|  5.68M|                  if (layout) {
  ------------------
  |  Branch (643:23): [True: 129k, False: 5.55M]
  ------------------
  644|   129k|                     if (!emit_literal<R"("layout_right")">(ctx, out, ix)) return;
  ------------------
  |  Branch (644:26): [True: 0, False: 129k]
  ------------------
  645|   129k|                  }
  646|  5.55M|                  else {
  647|  5.55M|                     if (!emit_literal<R"("layout_left")">(ctx, out, ix)) return;
  ------------------
  |  Branch (647:26): [True: 0, False: 5.55M]
  ------------------
  648|  5.55M|                  }
  649|       |
  650|  5.68M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (650:23): [True: 0, False: 5.68M]
  ------------------
  651|       |                  if constexpr (Opts.prettify) {
  652|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  653|       |                  }
  654|       |
  655|       |                  if constexpr (Opts.prettify) {
  656|       |                     if (!emit_literal<R"("extents": )">(ctx, out, ix)) return;
  657|       |                  }
  658|  5.68M|                  else {
  659|  5.68M|                     if (!emit_literal<R"("extents":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (659:26): [True: 0, False: 5.68M]
  ------------------
  660|  5.68M|                  }
  661|       |
  662|  5.68M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  663|  5.68M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (663:23): [True: 25.8k, False: 5.65M]
  ------------------
  664|  25.8k|                     return;
  665|  25.8k|                  }
  666|       |
  667|  5.65M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (667:23): [True: 0, False: 5.65M]
  ------------------
  668|       |                  if constexpr (Opts.prettify) {
  669|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  670|       |                  }
  671|       |
  672|       |                  if constexpr (Opts.prettify) {
  673|       |                     if (!emit_literal<R"("value": )">(ctx, out, ix)) return;
  674|       |                  }
  675|  5.65M|                  else {
  676|  5.65M|                     if (!emit_literal<R"("value":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (676:26): [True: 0, False: 5.65M]
  ------------------
  677|  5.65M|                  }
  678|       |
  679|  5.65M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  680|  5.65M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (680:23): [True: 1.89k, False: 5.65M]
  ------------------
  681|  1.89k|                     return;
  682|  1.89k|                  }
  683|  5.65M|               }
  684|       |
  685|       |               if constexpr (Opts.prettify) {
  686|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  687|       |               }
  688|  5.65M|               if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (688:20): [True: 0, False: 5.65M]
  ------------------
  689|  5.65M|               break;
  690|  5.65M|            }
  691|  5.65M|            case 3: {
  ------------------
  |  Branch (691:13): [True: 3.38k, False: 5.80M]
  ------------------
  692|       |               // complex numbers
  693|  3.38k|               ++it;
  694|  3.38k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (694:20): [True: 1, False: 3.38k]
  ------------------
  695|      1|                  ctx.error = error_code::syntax_error;
  696|      1|                  return;
  697|      1|               }
  698|  3.38k|               const auto complex_header = uint8_t(*it);
  699|  3.38k|               ++it;
  700|       |
  701|       |               // The COMPLEX HEADER carries the component's numerical type (bits 3-4) and BYTE COUNT
  702|       |               // (bits 5-7) in the same positions as a number tag.
  703|  3.38k|               const uint8_t number_tag = tag::number | (complex_header & 0b111'11'000);
  704|       |
  705|       |               // Writes one complex value as [re,im]
  706|  3.38k|               auto write_complex = [&]() -> bool {
  707|  3.38k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  708|  3.38k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|  3.38k|                  if (bool(ctx.error)) [[unlikely]] {
  710|  3.38k|                     return false;
  711|  3.38k|                  }
  712|  3.38k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  713|  3.38k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|  3.38k|                  if (bool(ctx.error)) [[unlikely]] {
  715|  3.38k|                     return false;
  716|  3.38k|                  }
  717|  3.38k|                  return emit_char(ctx, ']', out, ix);
  718|  3.38k|               };
  719|       |
  720|       |               // Writes n complex values as [[re,im],...]
  721|  3.38k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  3.38k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  723|  3.38k|                  for (size_t i = 0; i < n; ++i) {
  724|  3.38k|                     if (!write_complex()) return false;
  725|  3.38k|                     if (i != n - 1) {
  726|  3.38k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  727|  3.38k|                     }
  728|  3.38k|                  }
  729|  3.38k|                  return emit_char(ctx, ']', out, ix);
  730|  3.38k|               };
  731|       |
  732|  3.38k|               switch (complex_header & glz::extension::complex_subtype_mask) {
  733|    233|               case glz::extension::complex_number: {
  ------------------
  |  Branch (733:16): [True: 233, False: 3.15k]
  ------------------
  734|    233|                  if (!write_complex()) return;
  ------------------
  |  Branch (734:23): [True: 22, False: 211]
  ------------------
  735|    211|                  break;
  736|    233|               }
  737|  1.92k|               case glz::extension::complex_array: {
  ------------------
  |  Branch (737:16): [True: 1.92k, False: 1.45k]
  ------------------
  738|  1.92k|                  const auto n = int_from_compressed(ctx, it, end);
  739|  1.92k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (739:23): [True: 34, False: 1.89k]
  ------------------
  740|     34|                     return;
  741|     34|                  }
  742|  1.89k|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (742:23): [True: 435, False: 1.45k]
  ------------------
  743|  1.45k|                  break;
  744|  1.89k|               }
  745|  1.45k|               case glz::extension::complex_aligned_array: {
  ------------------
  |  Branch (745:16): [True: 1.20k, False: 2.17k]
  ------------------
  746|       |                  // Alignment is a storage property: the JSON matches an unaligned complex array
  747|  1.20k|                  const auto n = read_aligned_complex_header(ctx, it, end, complex_header);
  748|  1.20k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (748:23): [True: 196, False: 1.01k]
  ------------------
  749|    196|                     return;
  750|    196|                  }
  751|  1.01k|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (751:23): [True: 1, False: 1.01k]
  ------------------
  752|  1.01k|                  break;
  753|  1.01k|               }
  754|  1.01k|               default: {
  ------------------
  |  Branch (754:16): [True: 17, False: 3.36k]
  ------------------
  755|       |                  // Undefined complex sub-type
  756|     17|                  ctx.error = error_code::syntax_error;
  757|     17|                  return;
  758|  1.01k|               }
  759|  3.38k|               }
  760|       |
  761|  2.67k|               break;
  762|  3.38k|            }
  763|  2.67k|            default: {
  ------------------
  |  Branch (763:13): [True: 88, False: 5.80M]
  ------------------
  764|     88|               ctx.error = error_code::syntax_error;
  765|     88|               return;
  766|  3.38k|            }
  767|  5.80M|            }
  768|  5.77M|            break;
  769|  5.80M|         }
  770|  5.77M|         default: {
  ------------------
  |  Branch (770:10): [True: 202, False: 21.4M]
  ------------------
  771|    202|            ctx.error = error_code::syntax_error;
  772|    202|            return;
  773|  5.80M|         }
  774|  21.4M|         }
  775|  21.4M|      }
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|  2.31M|      {
   16|  2.31M|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|  2.31M|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|  2.31M|         auto write_number = [&]<class T>(T&& value) {
   20|  2.31M|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
   21|  2.31M|               ctx.error = error_code::syntax_error;
   22|  2.31M|               return;
   23|  2.31M|            }
   24|  2.31M|            using V = std::remove_cvref_t<T>;
   25|  2.31M|            std::memcpy(&value, it, sizeof(V));
   26|  2.31M|            if constexpr (std::endian::native == std::endian::big) {
   27|  2.31M|               byteswap_le(value);
   28|  2.31M|            }
   29|  2.31M|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  2.31M|            it += sizeof(T);
   31|  2.31M|         };
   32|       |
   33|  2.31M|         switch (number_type) {
   34|   636k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 636k, False: 1.68M]
  ------------------
   35|       |            // floating point
   36|   636k|            switch (byte_count) {
   37|   188k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 188k, False: 447k]
  ------------------
   38|   188k|               write_number(float{});
   39|   188k|               break;
   40|      0|            }
   41|   447k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 447k, False: 188k]
  ------------------
   42|   447k|               write_number(double{});
   43|   447k|               break;
   44|      0|            }
   45|     93|            default: {
  ------------------
  |  Branch (45:13): [True: 93, False: 635k]
  ------------------
   46|     93|               ctx.error = error_code::syntax_error;
   47|     93|               return;
   48|      0|            }
   49|   636k|            }
   50|   635k|            break;
   51|   636k|         }
   52|   947k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 947k, False: 1.37M]
  ------------------
   53|       |            // signed integer
   54|   947k|            switch (byte_count) {
   55|   163k|            case 1: {
  ------------------
  |  Branch (55:13): [True: 163k, False: 783k]
  ------------------
   56|   163k|               write_number(int8_t{});
   57|   163k|               break;
   58|      0|            }
   59|   576k|            case 2: {
  ------------------
  |  Branch (59:13): [True: 576k, False: 370k]
  ------------------
   60|   576k|               write_number(int16_t{});
   61|   576k|               break;
   62|      0|            }
   63|   109k|            case 4: {
  ------------------
  |  Branch (63:13): [True: 109k, False: 837k]
  ------------------
   64|   109k|               write_number(int32_t{});
   65|   109k|               break;
   66|      0|            }
   67|  97.3k|            case 8: {
  ------------------
  |  Branch (67:13): [True: 97.3k, False: 849k]
  ------------------
   68|  97.3k|               write_number(int64_t{});
   69|  97.3k|               break;
   70|      0|            }
   71|     49|            default: {
  ------------------
  |  Branch (71:13): [True: 49, False: 947k]
  ------------------
   72|     49|               ctx.error = error_code::syntax_error;
   73|     49|               return;
   74|      0|            }
   75|   947k|            }
   76|   947k|            break;
   77|   947k|         }
   78|   947k|         case 2: {
  ------------------
  |  Branch (78:10): [True: 736k, False: 1.58M]
  ------------------
   79|       |            // unsigned integer
   80|   736k|            switch (byte_count) {
   81|   106k|            case 1: {
  ------------------
  |  Branch (81:13): [True: 106k, False: 629k]
  ------------------
   82|   106k|               write_number(uint8_t{});
   83|   106k|               break;
   84|      0|            }
   85|   458k|            case 2: {
  ------------------
  |  Branch (85:13): [True: 458k, False: 277k]
  ------------------
   86|   458k|               write_number(uint16_t{});
   87|   458k|               break;
   88|      0|            }
   89|  84.5k|            case 4: {
  ------------------
  |  Branch (89:13): [True: 84.5k, False: 651k]
  ------------------
   90|  84.5k|               write_number(uint32_t{});
   91|  84.5k|               break;
   92|      0|            }
   93|  86.5k|            case 8: {
  ------------------
  |  Branch (93:13): [True: 86.5k, False: 649k]
  ------------------
   94|  86.5k|               write_number(uint64_t{});
   95|  86.5k|               break;
   96|      0|            }
   97|     44|            default: {
  ------------------
  |  Branch (97:13): [True: 44, False: 735k]
  ------------------
   98|     44|               ctx.error = error_code::syntax_error;
   99|     44|               return;
  100|      0|            }
  101|   736k|            }
  102|   735k|            break;
  103|   736k|         }
  104|   735k|         default: {
  ------------------
  |  Branch (104:10): [True: 27, False: 2.31M]
  ------------------
  105|     27|            ctx.error = error_code::syntax_error;
  106|     27|            return;
  107|   736k|         }
  108|  2.31M|         }
  109|  2.31M|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|   188k|         auto write_number = [&]<class T>(T&& value) {
   20|   188k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 75, False: 188k]
  ------------------
   21|     75|               ctx.error = error_code::syntax_error;
   22|     75|               return;
   23|     75|            }
   24|   188k|            using V = std::remove_cvref_t<T>;
   25|   188k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   188k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   188k|            it += sizeof(T);
   31|   188k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|   447k|         auto write_number = [&]<class T>(T&& value) {
   20|   447k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 46, False: 447k]
  ------------------
   21|     46|               ctx.error = error_code::syntax_error;
   22|     46|               return;
   23|     46|            }
   24|   447k|            using V = std::remove_cvref_t<T>;
   25|   447k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   447k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   447k|            it += sizeof(T);
   31|   447k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIaEEDaSU_:
   19|   163k|         auto write_number = [&]<class T>(T&& value) {
   20|   163k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 152, False: 163k]
  ------------------
   21|    152|               ctx.error = error_code::syntax_error;
   22|    152|               return;
   23|    152|            }
   24|   163k|            using V = std::remove_cvref_t<T>;
   25|   163k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   163k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   163k|            it += sizeof(T);
   31|   163k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIsEEDaSU_:
   19|   576k|         auto write_number = [&]<class T>(T&& value) {
   20|   576k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 69, False: 576k]
  ------------------
   21|     69|               ctx.error = error_code::syntax_error;
   22|     69|               return;
   23|     69|            }
   24|   576k|            using V = std::remove_cvref_t<T>;
   25|   576k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   576k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   576k|            it += sizeof(T);
   31|   576k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIiEEDaSU_:
   19|   109k|         auto write_number = [&]<class T>(T&& value) {
   20|   109k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 40, False: 109k]
  ------------------
   21|     40|               ctx.error = error_code::syntax_error;
   22|     40|               return;
   23|     40|            }
   24|   109k|            using V = std::remove_cvref_t<T>;
   25|   109k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   109k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   109k|            it += sizeof(T);
   31|   109k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIlEEDaSU_:
   19|  97.3k|         auto write_number = [&]<class T>(T&& value) {
   20|  97.3k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 51, False: 97.3k]
  ------------------
   21|     51|               ctx.error = error_code::syntax_error;
   22|     51|               return;
   23|     51|            }
   24|  97.3k|            using V = std::remove_cvref_t<T>;
   25|  97.3k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  97.3k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  97.3k|            it += sizeof(T);
   31|  97.3k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIhEEDaSU_:
   19|   106k|         auto write_number = [&]<class T>(T&& value) {
   20|   106k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 141, False: 106k]
  ------------------
   21|    141|               ctx.error = error_code::syntax_error;
   22|    141|               return;
   23|    141|            }
   24|   106k|            using V = std::remove_cvref_t<T>;
   25|   106k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   106k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   106k|            it += sizeof(T);
   31|   106k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clItEEDaSU_:
   19|   458k|         auto write_number = [&]<class T>(T&& value) {
   20|   458k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 87, False: 458k]
  ------------------
   21|     87|               ctx.error = error_code::syntax_error;
   22|     87|               return;
   23|     87|            }
   24|   458k|            using V = std::remove_cvref_t<T>;
   25|   458k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   458k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   458k|            it += sizeof(T);
   31|   458k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIjEEDaSU_:
   19|  84.5k|         auto write_number = [&]<class T>(T&& value) {
   20|  84.5k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 42, False: 84.5k]
  ------------------
   21|     42|               ctx.error = error_code::syntax_error;
   22|     42|               return;
   23|     42|            }
   24|  84.5k|            using V = std::remove_cvref_t<T>;
   25|  84.5k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  84.5k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  84.5k|            it += sizeof(T);
   31|  84.5k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clImEEDaSU_:
   19|  86.5k|         auto write_number = [&]<class T>(T&& value) {
   20|  86.5k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 38, False: 86.4k]
  ------------------
   21|     38|               ctx.error = error_code::syntax_error;
   22|     38|               return;
   23|     38|            }
   24|  86.4k|            using V = std::remove_cvref_t<T>;
   25|  86.4k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  86.4k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  86.4k|            it += sizeof(T);
   31|  86.4k|         };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIfEEDaSR_:
  313|    714|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   402k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 401k, False: 714]
  ------------------
  315|   401k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 401k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   401k|                     using V = std::remove_cvref_t<T>;
  320|   401k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   401k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   401k|                     it += sizeof(T);
  326|   401k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 401k, False: 279]
  ------------------
  327|   401k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 401k]
  ------------------
  328|   401k|                     }
  329|   401k|                  }
  330|    714|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIdEEDaSR_:
  313|  1.36k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  36.3k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 34.9k, False: 1.36k]
  ------------------
  315|  34.9k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 34.9k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  34.9k|                     using V = std::remove_cvref_t<T>;
  320|  34.9k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  34.9k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  34.9k|                     it += sizeof(T);
  326|  34.9k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 34.0k, False: 954]
  ------------------
  327|  34.0k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 34.0k]
  ------------------
  328|  34.0k|                     }
  329|  34.9k|                  }
  330|  1.36k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIaEEDaSR_:
  313|  2.01k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   301k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 299k, False: 2.01k]
  ------------------
  315|   299k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 299k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   299k|                     using V = std::remove_cvref_t<T>;
  320|   299k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   299k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   299k|                     it += sizeof(T);
  326|   299k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 298k, False: 1.64k]
  ------------------
  327|   298k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 298k]
  ------------------
  328|   298k|                     }
  329|   299k|                  }
  330|  2.01k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIsEEDaSR_:
  313|    919|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  1.00M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 1.00M, False: 919]
  ------------------
  315|  1.00M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 1.00M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  1.00M|                     using V = std::remove_cvref_t<T>;
  320|  1.00M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  1.00M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  1.00M|                     it += sizeof(T);
  326|  1.00M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 1.00M, False: 610]
  ------------------
  327|  1.00M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 1.00M]
  ------------------
  328|  1.00M|                     }
  329|  1.00M|                  }
  330|    919|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIiEEDaSR_:
  313|  2.07k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   191k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 189k, False: 2.07k]
  ------------------
  315|   189k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 189k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   189k|                     using V = std::remove_cvref_t<T>;
  320|   189k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   189k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   189k|                     it += sizeof(T);
  326|   189k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 187k, False: 1.68k]
  ------------------
  327|   187k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 187k]
  ------------------
  328|   187k|                     }
  329|   189k|                  }
  330|  2.07k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIlEEDaSR_:
  313|    957|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   196k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 195k, False: 957]
  ------------------
  315|   195k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 195k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   195k|                     using V = std::remove_cvref_t<T>;
  320|   195k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   195k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   195k|                     it += sizeof(T);
  326|   195k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 194k, False: 695]
  ------------------
  327|   194k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 194k]
  ------------------
  328|   194k|                     }
  329|   195k|                  }
  330|    957|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIhEEDaSR_:
  313|    671|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  1.85M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 1.84M, False: 671]
  ------------------
  315|  1.84M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 1.84M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  1.84M|                     using V = std::remove_cvref_t<T>;
  320|  1.84M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  1.84M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  1.84M|                     it += sizeof(T);
  326|  1.84M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 1.84M, False: 341]
  ------------------
  327|  1.84M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 1.84M]
  ------------------
  328|  1.84M|                     }
  329|  1.84M|                  }
  330|    671|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clItEEDaSR_:
  313|  3.57k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  1.06M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 1.05M, False: 3.57k]
  ------------------
  315|  1.05M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 1.05M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  1.05M|                     using V = std::remove_cvref_t<T>;
  320|  1.05M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  1.05M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  1.05M|                     it += sizeof(T);
  326|  1.05M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 1.05M, False: 3.08k]
  ------------------
  327|  1.05M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 1.05M]
  ------------------
  328|  1.05M|                     }
  329|  1.05M|                  }
  330|  3.57k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIjEEDaSR_:
  313|    564|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   154k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 154k, False: 564]
  ------------------
  315|   154k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 154k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   154k|                     using V = std::remove_cvref_t<T>;
  320|   154k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   154k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   154k|                     it += sizeof(T);
  326|   154k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 154k, False: 338]
  ------------------
  327|   154k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 154k]
  ------------------
  328|   154k|                     }
  329|   154k|                  }
  330|    564|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clImEEDaSR_:
  313|  7.77k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  87.5k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 79.7k, False: 7.77k]
  ------------------
  315|  79.7k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 79.7k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  79.7k|                     using V = std::remove_cvref_t<T>;
  320|  79.7k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  79.7k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  79.7k|                     it += sizeof(T);
  326|  79.7k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 78.5k, False: 1.14k]
  ------------------
  327|  78.5k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 78.5k]
  ------------------
  328|  78.5k|                     }
  329|  79.7k|                  }
  330|  7.77k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIfEEDaSR_:
  400|  3.48k|            auto write_array = [&]<class T>(T&& value) {
  401|  3.48k|               const auto n = int_from_compressed(ctx, it, end);
  402|  3.48k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 40, False: 3.44k]
  ------------------
  403|     40|                  return;
  404|     40|               }
  405|  1.44M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 1.43M, False: 3.14k]
  ------------------
  406|  1.43M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 297, False: 1.43M]
  ------------------
  407|    297|                     ctx.error = error_code::unexpected_end;
  408|    297|                     return;
  409|    297|                  }
  410|  1.43M|                  using V = std::remove_cvref_t<T>;
  411|  1.43M|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|  1.43M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|  1.43M|                  it += sizeof(T);
  417|  1.43M|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 1.43M, False: 1.32k]
  ------------------
  418|  1.43M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 1.43M]
  ------------------
  419|  1.43M|                  }
  420|  1.43M|               }
  421|  3.44k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIdEEDaSR_:
  400|  1.83k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.83k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.83k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 54, False: 1.77k]
  ------------------
  403|     54|                  return;
  404|     54|               }
  405|   781k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 780k, False: 1.44k]
  ------------------
  406|   780k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 328, False: 780k]
  ------------------
  407|    328|                     ctx.error = error_code::unexpected_end;
  408|    328|                     return;
  409|    328|                  }
  410|   780k|                  using V = std::remove_cvref_t<T>;
  411|   780k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   780k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   780k|                  it += sizeof(T);
  417|   780k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 779k, False: 391]
  ------------------
  418|   779k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 779k]
  ------------------
  419|   779k|                  }
  420|   780k|               }
  421|  1.77k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIaEEDaSR_:
  400|  11.8k|            auto write_array = [&]<class T>(T&& value) {
  401|  11.8k|               const auto n = int_from_compressed(ctx, it, end);
  402|  11.8k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 43, False: 11.8k]
  ------------------
  403|     43|                  return;
  404|     43|               }
  405|   366k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 354k, False: 11.5k]
  ------------------
  406|   354k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 207, False: 354k]
  ------------------
  407|    207|                     ctx.error = error_code::unexpected_end;
  408|    207|                     return;
  409|    207|                  }
  410|   354k|                  using V = std::remove_cvref_t<T>;
  411|   354k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   354k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   354k|                  it += sizeof(T);
  417|   354k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 347k, False: 6.66k]
  ------------------
  418|   347k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 347k]
  ------------------
  419|   347k|                  }
  420|   354k|               }
  421|  11.8k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIsEEDaSR_:
  400|  4.69k|            auto write_array = [&]<class T>(T&& value) {
  401|  4.69k|               const auto n = int_from_compressed(ctx, it, end);
  402|  4.69k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 50, False: 4.64k]
  ------------------
  403|     50|                  return;
  404|     50|               }
  405|   382k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 378k, False: 4.49k]
  ------------------
  406|   378k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 152, False: 378k]
  ------------------
  407|    152|                     ctx.error = error_code::unexpected_end;
  408|    152|                     return;
  409|    152|                  }
  410|   378k|                  using V = std::remove_cvref_t<T>;
  411|   378k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   378k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   378k|                  it += sizeof(T);
  417|   378k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 376k, False: 1.61k]
  ------------------
  418|   376k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 376k]
  ------------------
  419|   376k|                  }
  420|   378k|               }
  421|  4.64k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIiEEDaSR_:
  400|  3.84k|            auto write_array = [&]<class T>(T&& value) {
  401|  3.84k|               const auto n = int_from_compressed(ctx, it, end);
  402|  3.84k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 59, False: 3.78k]
  ------------------
  403|     59|                  return;
  404|     59|               }
  405|   779k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 775k, False: 3.55k]
  ------------------
  406|   775k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 227, False: 775k]
  ------------------
  407|    227|                     ctx.error = error_code::unexpected_end;
  408|    227|                     return;
  409|    227|                  }
  410|   775k|                  using V = std::remove_cvref_t<T>;
  411|   775k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   775k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   775k|                  it += sizeof(T);
  417|   775k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 773k, False: 2.08k]
  ------------------
  418|   773k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 773k]
  ------------------
  419|   773k|                  }
  420|   775k|               }
  421|  3.78k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIlEEDaSR_:
  400|  1.48k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.48k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.48k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 43, False: 1.43k]
  ------------------
  403|     43|                  return;
  404|     43|               }
  405|   578k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 577k, False: 1.14k]
  ------------------
  406|   577k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 290, False: 577k]
  ------------------
  407|    290|                     ctx.error = error_code::unexpected_end;
  408|    290|                     return;
  409|    290|                  }
  410|   577k|                  using V = std::remove_cvref_t<T>;
  411|   577k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   577k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   577k|                  it += sizeof(T);
  417|   577k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 576k, False: 311]
  ------------------
  418|   576k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 576k]
  ------------------
  419|   576k|                  }
  420|   577k|               }
  421|  1.43k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIhEEDaSR_:
  400|  38.3k|            auto write_array = [&]<class T>(T&& value) {
  401|  38.3k|               const auto n = int_from_compressed(ctx, it, end);
  402|  38.3k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 41, False: 38.3k]
  ------------------
  403|     41|                  return;
  404|     41|               }
  405|   276k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 238k, False: 38.1k]
  ------------------
  406|   238k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 209, False: 238k]
  ------------------
  407|    209|                     ctx.error = error_code::unexpected_end;
  408|    209|                     return;
  409|    209|                  }
  410|   238k|                  using V = std::remove_cvref_t<T>;
  411|   238k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   238k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   238k|                  it += sizeof(T);
  417|   238k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 220k, False: 18.0k]
  ------------------
  418|   220k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 220k]
  ------------------
  419|   220k|                  }
  420|   238k|               }
  421|  38.3k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clItEEDaSR_:
  400|  2.08k|            auto write_array = [&]<class T>(T&& value) {
  401|  2.08k|               const auto n = int_from_compressed(ctx, it, end);
  402|  2.08k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 57, False: 2.02k]
  ------------------
  403|     57|                  return;
  404|     57|               }
  405|   245k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 243k, False: 1.75k]
  ------------------
  406|   243k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 271, False: 243k]
  ------------------
  407|    271|                     ctx.error = error_code::unexpected_end;
  408|    271|                     return;
  409|    271|                  }
  410|   243k|                  using V = std::remove_cvref_t<T>;
  411|   243k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   243k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   243k|                  it += sizeof(T);
  417|   243k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 242k, False: 656]
  ------------------
  418|   242k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 242k]
  ------------------
  419|   242k|                  }
  420|   243k|               }
  421|  2.02k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIjEEDaSR_:
  400|  1.82k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.82k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.82k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 51, False: 1.77k]
  ------------------
  403|     51|                  return;
  404|     51|               }
  405|   713k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 712k, False: 1.56k]
  ------------------
  406|   712k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 210, False: 711k]
  ------------------
  407|    210|                     ctx.error = error_code::unexpected_end;
  408|    210|                     return;
  409|    210|                  }
  410|   711k|                  using V = std::remove_cvref_t<T>;
  411|   711k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   711k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   711k|                  it += sizeof(T);
  417|   711k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 711k, False: 461]
  ------------------
  418|   711k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 711k]
  ------------------
  419|   711k|                  }
  420|   711k|               }
  421|  1.77k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clImEEDaSR_:
  400|  18.1k|            auto write_array = [&]<class T>(T&& value) {
  401|  18.1k|               const auto n = int_from_compressed(ctx, it, end);
  402|  18.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 141, False: 18.0k]
  ------------------
  403|    141|                  return;
  404|    141|               }
  405|   309k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 291k, False: 17.8k]
  ------------------
  406|   291k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 240, False: 291k]
  ------------------
  407|    240|                     ctx.error = error_code::unexpected_end;
  408|    240|                     return;
  409|    240|                  }
  410|   291k|                  using V = std::remove_cvref_t<T>;
  411|   291k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   291k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   291k|                  it += sizeof(T);
  417|   291k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 290k, False: 366]
  ------------------
  418|   290k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 290k]
  ------------------
  419|   290k|                  }
  420|   291k|               }
  421|  18.0k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlvE_clEv:
  706|   803k|               auto write_complex = [&]() -> bool {
  707|   803k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (707:23): [True: 0, False: 803k]
  ------------------
  708|   803k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|   803k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (709:23): [True: 329, False: 803k]
  ------------------
  710|    329|                     return false;
  711|    329|                  }
  712|   803k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (712:23): [True: 0, False: 803k]
  ------------------
  713|   803k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|   803k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (714:23): [True: 129, False: 803k]
  ------------------
  715|    129|                     return false;
  716|    129|                  }
  717|   803k|                  return emit_char(ctx, ']', out, ix);
  718|   803k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlmE_clEm:
  721|  2.90k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  2.90k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (722:23): [True: 0, False: 2.90k]
  ------------------
  723|   806k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (723:38): [True: 803k, False: 2.46k]
  ------------------
  724|   803k|                     if (!write_complex()) return false;
  ------------------
  |  Branch (724:26): [True: 436, False: 803k]
  ------------------
  725|   803k|                     if (i != n - 1) {
  ------------------
  |  Branch (725:26): [True: 802k, False: 516]
  ------------------
  726|   802k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (726:29): [True: 0, False: 802k]
  ------------------
  727|   802k|                     }
  728|   803k|                  }
  729|  2.46k|                  return emit_char(ctx, ']', out, ix);
  730|  2.90k|               };

_ZN3glz11invalid_endITkNS_10is_contextENS_7contextERPKcS3_EEbRT_OT0_T1_:
   23|  59.5k|   {
   24|  59.5k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (24:11): [True: 321, False: 59.2k]
  ------------------
   25|    321|         ctx.error = error_code::unexpected_end;
   26|    321|         return true;
   27|    321|      }
   28|  59.2k|      else [[likely]] {
   29|  59.2k|         return false;
   30|  59.2k|      }
   31|  59.5k|   }
_ZN3glz19int_from_compressedIRNS_7contextERPKcS4_EEmOT_OT0_T1_:
  256|  2.31M|   {
  257|  2.31M|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (257:11): [True: 1.46k, False: 2.30M]
  ------------------
  258|  1.46k|         ctx.error = error_code::unexpected_end;
  259|  1.46k|         return 0;
  260|  1.46k|      }
  261|       |
  262|  2.30M|      uint8_t header;
  263|  2.30M|      std::memcpy(&header, it, 1);
  264|  2.30M|      const uint8_t config = header & 0b000000'11;
  265|       |
  266|  2.30M|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (266:11): [True: 1.13k, False: 2.30M]
  ------------------
  267|  1.13k|         ctx.error = error_code::unexpected_end;
  268|  1.13k|         return 0;
  269|  1.13k|      }
  270|       |
  271|  2.30M|      switch (config) {
  272|  2.22M|      case 0:
  ------------------
  |  Branch (272:7): [True: 2.22M, False: 79.5k]
  ------------------
  273|  2.22M|         ++it;
  274|  2.22M|         return header >> 2;
  275|  59.9k|      case 1: {
  ------------------
  |  Branch (275:7): [True: 59.9k, False: 2.24M]
  ------------------
  276|  59.9k|         uint16_t h;
  277|  59.9k|         std::memcpy(&h, it, 2);
  278|       |         if constexpr (std::endian::native == std::endian::big) {
  279|       |            h = std::byteswap(h);
  280|       |         }
  281|  59.9k|         it += 2;
  282|  59.9k|         return h >> 2;
  283|      0|      }
  284|  9.88k|      case 2: {
  ------------------
  |  Branch (284:7): [True: 9.88k, False: 2.29M]
  ------------------
  285|  9.88k|         uint32_t h;
  286|  9.88k|         std::memcpy(&h, it, 4);
  287|       |         if constexpr (std::endian::native == std::endian::big) {
  288|       |            h = std::byteswap(h);
  289|       |         }
  290|  9.88k|         it += 4;
  291|  9.88k|         return h >> 2;
  292|      0|      }
  293|  9.74k|      case 3: {
  ------------------
  |  Branch (293:7): [True: 9.74k, False: 2.29M]
  ------------------
  294|       |         // On 32-bit systems it's impossible to address more than 4 GBiB of memory, so we should verify first if we are
  295|       |         // running in 64-bit mode here
  296|  9.74k|         if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
  297|  9.74k|            uint64_t h;
  298|  9.74k|            std::memcpy(&h, it, 8);
  299|       |            if constexpr (std::endian::native == std::endian::big) {
  300|       |               h = std::byteswap(h);
  301|       |            }
  302|  9.74k|            it += 8;
  303|  9.74k|            h = h >> 2;
  304|  9.74k|            static constexpr uint64_t safety_limit = 1ull << 48; // 2^48
  305|  9.74k|            if (h > safety_limit) [[unlikely]] {
  ------------------
  |  Branch (305:17): [True: 1.23k, False: 8.51k]
  ------------------
  306|  1.23k|               ctx.error = error_code::unexpected_end;
  307|  1.23k|               return 0;
  308|  1.23k|            }
  309|  8.51k|            return h;
  310|       |         }
  311|       |         else {
  312|       |            // 8-byte length encoding not supported on 32-bit systems
  313|       |            ctx.error = error_code::invalid_length;
  314|       |            return 0;
  315|       |         }
  316|  9.74k|      }
  317|  9.74k|      default:
  ------------------
  |  Branch (317:7): [True: 0, False: 2.30M]
  ------------------
  318|  9.74k|         ctx.error = error_code::syntax_error;
  319|  9.74k|         return 0;
  320|  2.30M|      }
  321|  2.30M|   }
_ZN3glz25typed_array_out_of_boundsITkNS_10is_contextENS_7contextERPKcS4_EEbRT_OT0_OT1_mmm:
   48|  26.5k|   {
   49|  26.5k|      const uint64_t available = uint64_t(end - it);
   50|  26.5k|      if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
   51|  26.5k|         if (available < padding + count * element_size) [[unlikely]] {
  ------------------
  |  Branch (51:14): [True: 672, False: 25.9k]
  ------------------
   52|    672|            ctx.error = error_code::unexpected_end;
   53|    672|            return true;
   54|    672|         }
   55|       |      }
   56|       |      else {
   57|       |         if (available < padding || count > (available - padding) / element_size) [[unlikely]] {
   58|       |            ctx.error = error_code::unexpected_end;
   59|       |            return true;
   60|       |         }
   61|       |      }
   62|  25.9k|      return false;
   63|  26.5k|   }
_ZN3glz27packed_bool_padding_is_zeroEhm:
  363|   287k|   {
  364|   287k|      const size_t used_bits = count % 8;
  365|   287k|      return used_bits == 0 || (last_byte >> used_bits) == 0;
  ------------------
  |  Branch (365:14): [True: 19.8k, False: 267k]
  |  Branch (365:32): [True: 267k, False: 21]
  ------------------
  366|   287k|   }
_ZN3glz19skip_compressed_intITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  324|  1.96k|   {
  325|  1.96k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (325:11): [True: 2, False: 1.96k]
  ------------------
  326|      2|         return;
  327|      2|      }
  328|       |
  329|  1.96k|      uint8_t header;
  330|  1.96k|      std::memcpy(&header, it, 1);
  331|  1.96k|      const uint8_t config = header & 0b000000'11;
  332|       |
  333|  1.96k|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (333:11): [True: 1, False: 1.96k]
  ------------------
  334|      1|         ctx.error = error_code::unexpected_end;
  335|      1|         return;
  336|      1|      }
  337|       |
  338|  1.96k|      switch (config) {
  339|    788|      case 0:
  ------------------
  |  Branch (339:7): [True: 788, False: 1.17k]
  ------------------
  340|    788|         ++it;
  341|    788|         return;
  342|    413|      case 1: {
  ------------------
  |  Branch (342:7): [True: 413, False: 1.54k]
  ------------------
  343|    413|         it += 2;
  344|    413|         return;
  345|      0|      }
  346|    533|      case 2: {
  ------------------
  |  Branch (346:7): [True: 533, False: 1.42k]
  ------------------
  347|    533|         it += 4;
  348|    533|         return;
  349|      0|      }
  350|    226|      case 3: {
  ------------------
  |  Branch (350:7): [True: 226, False: 1.73k]
  ------------------
  351|    226|         it += 8;
  352|    226|         return;
  353|      0|      }
  354|      0|      default:
  ------------------
  |  Branch (354:7): [True: 0, False: 1.96k]
  ------------------
  355|      0|         return;
  356|  1.96k|      }
  357|  1.96k|   }
_ZN3glz27read_aligned_complex_headerITkNS_10is_contextERNS_7contextERPKcS4_EEmOT_OT0_T1_h:
  382|  1.20k|   {
  383|  1.20k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (383:11): [True: 2, False: 1.20k]
  ------------------
  384|      2|         return 0;
  385|      2|      }
  386|  1.20k|      if (uint8_t(*it) != tag::aligned_typed_array) [[unlikely]] {
  ------------------
  |  Branch (386:11): [True: 9, False: 1.19k]
  ------------------
  387|      9|         ctx.error = error_code::syntax_error;
  388|      9|         return 0;
  389|      9|      }
  390|  1.19k|      ++it;
  391|       |
  392|  1.19k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (392:11): [True: 2, False: 1.19k]
  ------------------
  393|      2|         return 0;
  394|      2|      }
  395|       |      // The COMPLEX HEADER holds the numerical type (bits 3-4) and BYTE COUNT (bits 5-7) where a numeric
  396|       |      // typed array header does, so the two agree exactly when those bits match. Category 3 is not numeric.
  397|  1.19k|      constexpr uint8_t numeric_bits = 0b111'11'000;
  398|  1.19k|      const uint8_t expected_numeric_header = tag::typed_array | (complex_header & numeric_bits);
  399|  1.19k|      if (uint8_t(*it) != expected_numeric_header || ((complex_header >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (399:11): [True: 14, False: 1.18k]
  |  Branch (399:54): [True: 1, False: 1.17k]
  ------------------
  400|     15|         ctx.error = error_code::syntax_error;
  401|     15|         return 0;
  402|     15|      }
  403|  1.17k|      ++it;
  404|       |
  405|  1.17k|      const size_t components = int_from_compressed(ctx, it, end);
  406|  1.17k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (406:11): [True: 28, False: 1.15k]
  ------------------
  407|     28|         return 0;
  408|     28|      }
  409|  1.15k|      if (components % 2 != 0) [[unlikely]] {
  ------------------
  |  Branch (409:11): [True: 25, False: 1.12k]
  ------------------
  410|     25|         ctx.error = error_code::syntax_error;
  411|     25|         return 0;
  412|     25|      }
  413|       |
  414|  1.12k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (414:11): [True: 39, False: 1.08k]
  ------------------
  415|     39|         return 0;
  416|     39|      }
  417|  1.08k|      const uint8_t padding = uint8_t(*it);
  418|  1.08k|      ++it;
  419|  1.08k|      const size_t component_size = byte_count_lookup[complex_header >> 5];
  420|  1.08k|      if (padding >= component_size) [[unlikely]] {
  ------------------
  |  Branch (420:11): [True: 18, False: 1.06k]
  ------------------
  421|     18|         ctx.error = error_code::syntax_error;
  422|     18|         return 0;
  423|     18|      }
  424|  1.06k|      if (typed_array_out_of_bounds(ctx, it, end, components, component_size, padding)) {
  ------------------
  |  Branch (424:11): [True: 58, False: 1.01k]
  ------------------
  425|     58|         return 0;
  426|     58|      }
  427|  1.01k|      it += padding;
  428|  1.01k|      return components / 2;
  429|  1.06k|   }

_ZN3glz9read_beveITkNS_14read_supportedIL_ZNS_4BEVEEEEE9my_structRKNSt3__16vectorIcNS3_9allocatorIcEEEEEENS3_8expectedIT_NS_9error_ctxEEEOT0_:
 3350|  24.1k|   {
 3351|  24.1k|      T value{};
 3352|  24.1k|      const auto pe = read<opts{.format = BEVE}>(value, std::forward<Buffer>(buffer));
 3353|  24.1k|      if (pe) [[unlikely]] {
  ------------------
  |  Branch (3353:11): [True: 24.0k, False: 70]
  ------------------
 3354|  24.0k|         return unexpected(pe);
 3355|  24.0k|      }
 3356|     70|      return value;
 3357|  24.1k|   }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEER9my_structTkNS_10is_contextERNS_7contextERPKcS9_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  24.1k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  24.1k|         else {
   68|  24.1k|            using V = std::remove_cvref_t<T>;
   69|  24.1k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  24.1k|                                             end);
   71|  24.1k|         }
   72|  24.1k|      }
_ZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_:
 3039|  24.1k|      {
 3040|  24.1k|         constexpr uint8_t type = 0; // string key
 3041|  24.1k|         constexpr uint8_t header = tag::object | type;
 3042|       |
 3043|  24.1k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (3043:14): [True: 0, False: 24.1k]
  ------------------
 3044|      0|            return;
 3045|      0|         }
 3046|  24.1k|         const auto tag = uint8_t(*it);
 3047|  24.1k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (3047:14): [True: 19.4k, False: 4.70k]
  ------------------
 3048|  19.4k|            ctx.error = error_code::syntax_error;
 3049|  19.4k|            return;
 3050|  19.4k|         }
 3051|       |
 3052|  4.70k|         depth_guard guard{ctx};
 3053|  4.70k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (3053:14): [True: 0, False: 4.70k]
  ------------------
 3054|      0|            return;
 3055|      0|         }
 3056|       |
 3057|  4.70k|         ++it;
 3058|       |
 3059|  4.70k|         static constexpr auto N = reflect<T>::size;
 3060|       |         if constexpr (N == 0) {
 3061|       |            (void)value;
 3062|       |         }
 3063|       |
 3064|  4.70k|         static constexpr bit_array<N> all_fields = [] {
 3065|  4.70k|            bit_array<N> arr{};
 3066|  4.70k|            for (size_t i = 0; i < N; ++i) {
 3067|  4.70k|               arr[i] = true;
 3068|  4.70k|            }
 3069|  4.70k|            return arr;
 3070|  4.70k|         }();
 3071|       |
 3072|  4.70k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3073|  4.70k|            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3074|  4.70k|               return bit_array<N>{};
 3075|  4.70k|            }
 3076|  4.70k|            else {
 3077|  4.70k|               return nullptr;
 3078|  4.70k|            }
 3079|  4.70k|         }();
 3080|       |
 3081|  4.70k|         const auto n_keys = int_from_compressed(ctx, it, end);
 3082|  4.70k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3082:14): [True: 169, False: 4.53k]
  ------------------
 3083|    169|            return;
 3084|    169|         }
 3085|       |
 3086|  20.2k|         for (size_t i = 0; i < n_keys; ++i) {
  ------------------
  |  Branch (3086:29): [True: 15.7k, False: 4.53k]
  ------------------
 3087|       |            if constexpr (Opts.partial_read) {
 3088|       |               if ((all_fields & fields) == all_fields) {
 3089|       |                  return;
 3090|       |               }
 3091|       |            }
 3092|       |
 3093|  15.7k|            if constexpr (N > 0) {
 3094|  15.7k|               static constexpr auto HashInfo = hash_info<T>;
 3095|       |
 3096|  15.7k|               const auto n = int_from_compressed(ctx, it, end);
 3097|  15.7k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3097:20): [True: 838, False: 14.8k]
  ------------------
 3098|    838|                  return;
 3099|    838|               }
 3100|  14.8k|               if (uint64_t(end - it) < n || it == end) [[unlikely]] {
  ------------------
  |  Branch (3100:20): [True: 489, False: 14.3k]
  |  Branch (3100:46): [True: 331, False: 14.0k]
  ------------------
 3101|    820|                  ctx.error = error_code::unexpected_end;
 3102|    820|                  return;
 3103|    820|               }
 3104|       |
 3105|       |               if constexpr (not Tag.sv().empty() && not has_member_with_name<T>(Tag.sv())) {
 3106|       |                  // Discriminator key injected by the variant reader: skip it (and its value) without
 3107|       |                  // consulting error_on_unknown_keys, while the alternative's real keys stay checked.
 3108|       |                  if (sv{it, n} == Tag.sv()) {
 3109|       |                     it += n;
 3110|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3111|       |                     if (bool(ctx.error)) [[unlikely]] {
 3112|       |                        return;
 3113|       |                     }
 3114|       |                     continue;
 3115|       |                  }
 3116|       |               }
 3117|       |
 3118|  14.0k|               const auto index = decode_hash_with_size<BEVE, T, HashInfo, HashInfo.type>::op(it, end, n);
 3119|       |
 3120|  14.0k|               if (index < N) [[likely]] {
  ------------------
  |  Branch (3120:20): [True: 13.2k, False: 787]
  ------------------
 3121|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3122|       |                     fields[index] = true;
 3123|       |                  }
 3124|       |
 3125|  13.2k|                  const sv key{it, n};
 3126|  13.2k|                  it += n;
 3127|       |
 3128|  13.2k|                  visit<N>(
 3129|  13.2k|                     [&]<size_t I>() {
 3130|  13.2k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3131|  13.2k|                        static constexpr auto Length = TargetKey.size();
 3132|  13.2k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
 3133|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3134|       |                           // never instantiated -- see `skipped_by_meta`.
 3135|  13.2k|                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3136|  13.2k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3137|  13.2k|                           }
 3138|  13.2k|                           else {
 3139|       |                              // Check for null value skipping on read
 3140|  13.2k|                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3141|  13.2k|                                 if (invalid_end(ctx, it, end)) {
 3142|  13.2k|                                    return;
 3143|  13.2k|                                 }
 3144|  13.2k|                                 if (uint8_t(*it) == tag::null) {
 3145|  13.2k|                                    ++it; // Skip the null tag
 3146|  13.2k|                                    return;
 3147|  13.2k|                                 }
 3148|  13.2k|                              }
 3149|       |
 3150|  13.2k|                              if constexpr (reflectable<T>) {
 3151|  13.2k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3152|  13.2k|                              }
 3153|  13.2k|                              else {
 3154|  13.2k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3155|  13.2k|                              }
 3156|  13.2k|                           }
 3157|  13.2k|                        }
 3158|  13.2k|                        else {
 3159|  13.2k|                           if constexpr (Opts.error_on_unknown_keys) {
 3160|  13.2k|                              ctx.error = error_code::unknown_key;
 3161|  13.2k|                              return;
 3162|  13.2k|                           }
 3163|  13.2k|                           else {
 3164|  13.2k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3165|  13.2k|                              if (bool(ctx.error)) [[unlikely]]
 3166|  13.2k|                                 return;
 3167|  13.2k|                           }
 3168|  13.2k|                        }
 3169|  13.2k|                     },
 3170|  13.2k|                     index);
 3171|       |
 3172|  13.2k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3172:23): [True: 2.01k, False: 11.2k]
  ------------------
 3173|  2.01k|                     return;
 3174|  2.01k|                  }
 3175|  13.2k|               }
 3176|    787|               else [[unlikely]] {
 3177|    787|                  if constexpr (Opts.error_on_unknown_keys) {
 3178|    787|                     ctx.error = error_code::unknown_key;
 3179|    787|                     return;
 3180|       |                  }
 3181|       |                  else {
 3182|       |                     it += n;
 3183|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3184|       |                     if (bool(ctx.error)) [[unlikely]]
 3185|       |                        return;
 3186|       |                  }
 3187|    787|               }
 3188|       |            }
 3189|       |            else if constexpr (Opts.error_on_unknown_keys) {
 3190|       |               ctx.error = error_code::unknown_key;
 3191|       |               return;
 3192|       |            }
 3193|       |            else {
 3194|       |               skip_value<BEVE>::op<Opts>(ctx, it, end);
 3195|       |               if (bool(ctx.error)) [[unlikely]]
 3196|       |                  return;
 3197|       |            }
 3198|  15.7k|         }
 3199|       |
 3200|       |         if constexpr (Opts.error_on_missing_keys) {
 3201|       |            constexpr auto req_fields = required_fields<T, Opts>();
 3202|       |            if ((req_fields & fields) != req_fields) {
 3203|       |               for (size_t i = 0; i < N; ++i) {
 3204|       |                  if (not fields[i] && req_fields[i]) {
 3205|       |                     ctx.custom_error_message = reflect<T>::keys[i];
 3206|       |                     break;
 3207|       |                  }
 3208|       |               }
 3209|       |               ctx.error = error_code::missing_key;
 3210|       |               return;
 3211|       |            }
 3212|       |         }
 3213|  4.53k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlvE0_clEv:
 3072|  4.70k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3073|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3074|       |               return bit_array<N>{};
 3075|       |            }
 3076|  4.70k|            else {
 3077|  4.70k|               return nullptr;
 3078|  4.70k|            }
 3079|  4.70k|         }();
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm0EEEDav:
 3129|  3.31k|                     [&]<size_t I>() {
 3130|  3.31k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3131|  3.31k|                        static constexpr auto Length = TargetKey.size();
 3132|  3.31k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3132:29): [True: 3.31k, False: 7]
  |  Branch (3132:46): [True: 3.31k, False: 0]
  ------------------
 3133|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3134|       |                           // never instantiated -- see `skipped_by_meta`.
 3135|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3136|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3137|       |                           }
 3138|  3.31k|                           else {
 3139|       |                              // Check for null value skipping on read
 3140|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3141|       |                                 if (invalid_end(ctx, it, end)) {
 3142|       |                                    return;
 3143|       |                                 }
 3144|       |                                 if (uint8_t(*it) == tag::null) {
 3145|       |                                    ++it; // Skip the null tag
 3146|       |                                    return;
 3147|       |                                 }
 3148|       |                              }
 3149|       |
 3150|  3.31k|                              if constexpr (reflectable<T>) {
 3151|  3.31k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3152|       |                              }
 3153|       |                              else {
 3154|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3155|       |                              }
 3156|  3.31k|                           }
 3157|  3.31k|                        }
 3158|      7|                        else {
 3159|      7|                           if constexpr (Opts.error_on_unknown_keys) {
 3160|      7|                              ctx.error = error_code::unknown_key;
 3161|      7|                              return;
 3162|       |                           }
 3163|       |                           else {
 3164|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3165|       |                              if (bool(ctx.error)) [[unlikely]]
 3166|       |                                 return;
 3167|       |                           }
 3168|      7|                        }
 3169|  3.31k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  3.31k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  3.31k|         else {
   68|  3.31k|            using V = std::remove_cvref_t<T>;
   69|  3.31k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  3.31k|                                             end);
   71|  3.31k|         }
   72|  3.31k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  347|  3.31k|      {
  348|  3.31k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (348:14): [True: 5, False: 3.30k]
  ------------------
  349|      5|            return;
  350|      5|         }
  351|  3.30k|         const auto tag = uint8_t(*it);
  352|  3.30k|         ++it;
  353|  3.30k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  354|  3.30k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  3.30k|      {
  222|  3.30k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 28, False: 3.27k]
  ------------------
  223|     28|            return;
  224|     28|         }
  225|       |
  226|  3.27k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  3.27k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  3.27k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 2.96k, False: 315]
  ------------------
  231|  2.96k|            if constexpr (check_allow_conversions(Opts)) {
  232|  2.96k|               if constexpr (num_t<T>) {
  233|  2.96k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 17, False: 2.94k]
  ------------------
  234|     17|                     ctx.error = error_code::syntax_error;
  235|     17|                     return;
  236|     17|                  }
  237|       |
  238|  2.94k|                  auto decode = [&](auto&& i) {
  239|  2.94k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  2.94k|                        ctx.error = error_code::unexpected_end;
  241|  2.94k|                        return;
  242|  2.94k|                     }
  243|  2.94k|                     using I = std::decay_t<decltype(i)>;
  244|  2.94k|                     std::memcpy(&i, it, sizeof(I));
  245|  2.94k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  2.94k|                        byteswap_le(i);
  247|  2.94k|                     }
  248|  2.94k|                     value = static_cast<V>(i);
  249|  2.94k|                     it += sizeof(i);
  250|  2.94k|                  };
  251|       |
  252|  2.94k|                  switch (tag) {
  253|      5|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 5, False: 2.94k]
  ------------------
  254|      5|                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|      5|                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|       |                     else {
  259|       |                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|       |                        decode(float{});
  262|       |                     }
  263|      5|                     return;
  264|      0|                  }
  265|      3|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 3, False: 2.94k]
  ------------------
  266|      3|                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|      3|                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|       |                     else {
  271|       |                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|       |                        decode(double{});
  274|       |                     }
  275|      3|                     return;
  276|      0|                  }
  277|    504|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 504, False: 2.44k]
  ------------------
  278|    504|                     decode(int8_t{});
  279|    504|                     return;
  280|      0|                  }
  281|    201|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 201, False: 2.74k]
  ------------------
  282|    201|                     decode(int16_t{});
  283|    201|                     return;
  284|      0|                  }
  285|      0|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 0, False: 2.94k]
  ------------------
  286|      0|                     decode(int32_t{});
  287|      0|                     return;
  288|      0|                  }
  289|    229|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 229, False: 2.71k]
  ------------------
  290|    229|                     decode(int64_t{});
  291|    229|                     return;
  292|      0|                  }
  293|    326|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 326, False: 2.61k]
  ------------------
  294|    326|                     decode(uint8_t{});
  295|    326|                     return;
  296|      0|                  }
  297|    211|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 211, False: 2.73k]
  ------------------
  298|    211|                     decode(uint16_t{});
  299|    211|                     return;
  300|      0|                  }
  301|    753|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 753, False: 2.19k]
  ------------------
  302|    753|                     decode(uint32_t{});
  303|    753|                     return;
  304|      0|                  }
  305|    709|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 709, False: 2.23k]
  ------------------
  306|    709|                     decode(uint64_t{});
  307|    709|                     return;
  308|      0|                  }
  309|      4|                  default: {
  ------------------
  |  Branch (309:19): [True: 4, False: 2.94k]
  ------------------
  310|      4|                     ctx.error = error_code::syntax_error;
  311|      4|                     return;
  312|      0|                  }
  313|  2.94k|                  }
  314|  2.94k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  2.96k|         }
  321|       |
  322|  3.27k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 5, False: 3.27k]
  ------------------
  323|      5|            ctx.error = error_code::unexpected_end;
  324|      5|            return;
  325|      5|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  3.27k|         else {
  336|  3.27k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  3.27k|         }
  341|  3.27k|         it += sizeof(V);
  342|  3.27k|      }
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|    504|                  auto decode = [&](auto&& i) {
  239|    504|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 504]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    504|                     using I = std::decay_t<decltype(i)>;
  244|    504|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    504|                     value = static_cast<V>(i);
  249|    504|                     it += sizeof(i);
  250|    504|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|    201|                  auto decode = [&](auto&& i) {
  239|    201|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 198]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    198|                     using I = std::decay_t<decltype(i)>;
  244|    198|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    198|                     value = static_cast<V>(i);
  249|    198|                     it += sizeof(i);
  250|    198|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    229|                  auto decode = [&](auto&& i) {
  239|    229|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 9, False: 220]
  ------------------
  240|      9|                        ctx.error = error_code::unexpected_end;
  241|      9|                        return;
  242|      9|                     }
  243|    220|                     using I = std::decay_t<decltype(i)>;
  244|    220|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    220|                     value = static_cast<V>(i);
  249|    220|                     it += sizeof(i);
  250|    220|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|    326|                  auto decode = [&](auto&& i) {
  239|    326|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 326]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    326|                     using I = std::decay_t<decltype(i)>;
  244|    326|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    326|                     value = static_cast<V>(i);
  249|    326|                     it += sizeof(i);
  250|    326|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    211|                  auto decode = [&](auto&& i) {
  239|    211|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 208]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    208|                     using I = std::decay_t<decltype(i)>;
  244|    208|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    208|                     value = static_cast<V>(i);
  249|    208|                     it += sizeof(i);
  250|    208|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    753|                  auto decode = [&](auto&& i) {
  239|    753|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 746]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    746|                     using I = std::decay_t<decltype(i)>;
  244|    746|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    746|                     value = static_cast<V>(i);
  249|    746|                     it += sizeof(i);
  250|    746|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  238|    709|                  auto decode = [&](auto&& i) {
  239|    709|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 11, False: 698]
  ------------------
  240|     11|                        ctx.error = error_code::unexpected_end;
  241|     11|                        return;
  242|     11|                     }
  243|    698|                     using I = std::decay_t<decltype(i)>;
  244|    698|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    698|                     value = static_cast<V>(i);
  249|    698|                     it += sizeof(i);
  250|    698|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm1EEEDav:
 3129|  3.11k|                     [&]<size_t I>() {
 3130|  3.11k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3131|  3.11k|                        static constexpr auto Length = TargetKey.size();
 3132|  3.11k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3132:29): [True: 3.11k, False: 7]
  |  Branch (3132:46): [True: 3.11k, False: 0]
  ------------------
 3133|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3134|       |                           // never instantiated -- see `skipped_by_meta`.
 3135|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3136|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3137|       |                           }
 3138|  3.11k|                           else {
 3139|       |                              // Check for null value skipping on read
 3140|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3141|       |                                 if (invalid_end(ctx, it, end)) {
 3142|       |                                    return;
 3143|       |                                 }
 3144|       |                                 if (uint8_t(*it) == tag::null) {
 3145|       |                                    ++it; // Skip the null tag
 3146|       |                                    return;
 3147|       |                                 }
 3148|       |                              }
 3149|       |
 3150|  3.11k|                              if constexpr (reflectable<T>) {
 3151|  3.11k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3152|       |                              }
 3153|       |                              else {
 3154|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3155|       |                              }
 3156|  3.11k|                           }
 3157|  3.11k|                        }
 3158|      7|                        else {
 3159|      7|                           if constexpr (Opts.error_on_unknown_keys) {
 3160|      7|                              ctx.error = error_code::unknown_key;
 3161|      7|                              return;
 3162|       |                           }
 3163|       |                           else {
 3164|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3165|       |                              if (bool(ctx.error)) [[unlikely]]
 3166|       |                                 return;
 3167|       |                           }
 3168|      7|                        }
 3169|  3.11k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  3.11k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  3.11k|         else {
   68|  3.11k|            using V = std::remove_cvref_t<T>;
   69|  3.11k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  3.11k|                                             end);
   71|  3.11k|         }
   72|  3.11k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  347|  3.11k|      {
  348|  3.11k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (348:14): [True: 6, False: 3.10k]
  ------------------
  349|      6|            return;
  350|      6|         }
  351|  3.10k|         const auto tag = uint8_t(*it);
  352|  3.10k|         ++it;
  353|  3.10k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  354|  3.10k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  3.10k|      {
  222|  3.10k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 31, False: 3.07k]
  ------------------
  223|     31|            return;
  224|     31|         }
  225|       |
  226|  3.07k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  3.07k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  3.07k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 2.87k, False: 199]
  ------------------
  231|  2.87k|            if constexpr (check_allow_conversions(Opts)) {
  232|  2.87k|               if constexpr (num_t<T>) {
  233|  2.87k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 41, False: 2.83k]
  ------------------
  234|     41|                     ctx.error = error_code::syntax_error;
  235|     41|                     return;
  236|     41|                  }
  237|       |
  238|  2.83k|                  auto decode = [&](auto&& i) {
  239|  2.83k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  2.83k|                        ctx.error = error_code::unexpected_end;
  241|  2.83k|                        return;
  242|  2.83k|                     }
  243|  2.83k|                     using I = std::decay_t<decltype(i)>;
  244|  2.83k|                     std::memcpy(&i, it, sizeof(I));
  245|  2.83k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  2.83k|                        byteswap_le(i);
  247|  2.83k|                     }
  248|  2.83k|                     value = static_cast<V>(i);
  249|  2.83k|                     it += sizeof(i);
  250|  2.83k|                  };
  251|       |
  252|  2.83k|                  switch (tag) {
  253|    299|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 299, False: 2.53k]
  ------------------
  254|       |                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|       |                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|    299|                     else {
  259|    299|                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|    299|                        decode(float{});
  262|    299|                     }
  263|    299|                     return;
  264|      0|                  }
  265|      0|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 0, False: 2.83k]
  ------------------
  266|       |                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|       |                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|      0|                     else {
  271|      0|                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|      0|                        decode(double{});
  274|      0|                     }
  275|      0|                     return;
  276|      0|                  }
  277|    440|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 440, False: 2.39k]
  ------------------
  278|    440|                     decode(int8_t{});
  279|    440|                     return;
  280|      0|                  }
  281|    237|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 237, False: 2.59k]
  ------------------
  282|    237|                     decode(int16_t{});
  283|    237|                     return;
  284|      0|                  }
  285|    207|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 207, False: 2.62k]
  ------------------
  286|    207|                     decode(int32_t{});
  287|    207|                     return;
  288|      0|                  }
  289|    265|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 265, False: 2.57k]
  ------------------
  290|    265|                     decode(int64_t{});
  291|    265|                     return;
  292|      0|                  }
  293|    356|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 356, False: 2.47k]
  ------------------
  294|    356|                     decode(uint8_t{});
  295|    356|                     return;
  296|      0|                  }
  297|    289|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 289, False: 2.54k]
  ------------------
  298|    289|                     decode(uint16_t{});
  299|    289|                     return;
  300|      0|                  }
  301|    295|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 295, False: 2.54k]
  ------------------
  302|    295|                     decode(uint32_t{});
  303|    295|                     return;
  304|      0|                  }
  305|    443|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 443, False: 2.39k]
  ------------------
  306|    443|                     decode(uint64_t{});
  307|    443|                     return;
  308|      0|                  }
  309|      4|                  default: {
  ------------------
  |  Branch (309:19): [True: 4, False: 2.83k]
  ------------------
  310|      4|                     ctx.error = error_code::syntax_error;
  311|      4|                     return;
  312|      0|                  }
  313|  2.83k|                  }
  314|  2.83k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  2.87k|         }
  321|       |
  322|  3.07k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 5, False: 3.07k]
  ------------------
  323|      5|            ctx.error = error_code::unexpected_end;
  324|      5|            return;
  325|      5|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  3.07k|         else {
  336|  3.07k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  3.07k|         }
  341|  3.07k|         it += sizeof(V);
  342|  3.07k|      }
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIfEEDaSI_:
  238|    299|                  auto decode = [&](auto&& i) {
  239|    299|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 292]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    292|                     using I = std::decay_t<decltype(i)>;
  244|    292|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    292|                     value = static_cast<V>(i);
  249|    292|                     it += sizeof(i);
  250|    292|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|    440|                  auto decode = [&](auto&& i) {
  239|    440|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 440]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    440|                     using I = std::decay_t<decltype(i)>;
  244|    440|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    440|                     value = static_cast<V>(i);
  249|    440|                     it += sizeof(i);
  250|    440|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|    237|                  auto decode = [&](auto&& i) {
  239|    237|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 234]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    234|                     using I = std::decay_t<decltype(i)>;
  244|    234|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    234|                     value = static_cast<V>(i);
  249|    234|                     it += sizeof(i);
  250|    234|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  238|    207|                  auto decode = [&](auto&& i) {
  239|    207|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 200]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    200|                     using I = std::decay_t<decltype(i)>;
  244|    200|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    200|                     value = static_cast<V>(i);
  249|    200|                     it += sizeof(i);
  250|    200|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    265|                  auto decode = [&](auto&& i) {
  239|    265|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 5, False: 260]
  ------------------
  240|      5|                        ctx.error = error_code::unexpected_end;
  241|      5|                        return;
  242|      5|                     }
  243|    260|                     using I = std::decay_t<decltype(i)>;
  244|    260|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    260|                     value = static_cast<V>(i);
  249|    260|                     it += sizeof(i);
  250|    260|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|    356|                  auto decode = [&](auto&& i) {
  239|    356|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 356]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    356|                     using I = std::decay_t<decltype(i)>;
  244|    356|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    356|                     value = static_cast<V>(i);
  249|    356|                     it += sizeof(i);
  250|    356|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    289|                  auto decode = [&](auto&& i) {
  239|    289|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 286]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    286|                     using I = std::decay_t<decltype(i)>;
  244|    286|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    286|                     value = static_cast<V>(i);
  249|    286|                     it += sizeof(i);
  250|    286|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    295|                  auto decode = [&](auto&& i) {
  239|    295|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 8, False: 287]
  ------------------
  240|      8|                        ctx.error = error_code::unexpected_end;
  241|      8|                        return;
  242|      8|                     }
  243|    287|                     using I = std::decay_t<decltype(i)>;
  244|    287|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    287|                     value = static_cast<V>(i);
  249|    287|                     it += sizeof(i);
  250|    287|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  238|    443|                  auto decode = [&](auto&& i) {
  239|    443|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 11, False: 432]
  ------------------
  240|     11|                        ctx.error = error_code::unexpected_end;
  241|     11|                        return;
  242|     11|                     }
  243|    432|                     using I = std::decay_t<decltype(i)>;
  244|    432|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    432|                     value = static_cast<V>(i);
  249|    432|                     it += sizeof(i);
  250|    432|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm2EEEDav:
 3129|  2.33k|                     [&]<size_t I>() {
 3130|  2.33k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3131|  2.33k|                        static constexpr auto Length = TargetKey.size();
 3132|  2.33k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3132:29): [True: 2.32k, False: 12]
  |  Branch (3132:46): [True: 2.26k, False: 61]
  ------------------
 3133|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3134|       |                           // never instantiated -- see `skipped_by_meta`.
 3135|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3136|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3137|       |                           }
 3138|  2.26k|                           else {
 3139|       |                              // Check for null value skipping on read
 3140|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3141|       |                                 if (invalid_end(ctx, it, end)) {
 3142|       |                                    return;
 3143|       |                                 }
 3144|       |                                 if (uint8_t(*it) == tag::null) {
 3145|       |                                    ++it; // Skip the null tag
 3146|       |                                    return;
 3147|       |                                 }
 3148|       |                              }
 3149|       |
 3150|  2.26k|                              if constexpr (reflectable<T>) {
 3151|  2.26k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3152|       |                              }
 3153|       |                              else {
 3154|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3155|       |                              }
 3156|  2.26k|                           }
 3157|  2.26k|                        }
 3158|     73|                        else {
 3159|     73|                           if constexpr (Opts.error_on_unknown_keys) {
 3160|     73|                              ctx.error = error_code::unknown_key;
 3161|     73|                              return;
 3162|       |                           }
 3163|       |                           else {
 3164|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3165|       |                              if (bool(ctx.error)) [[unlikely]]
 3166|       |                                 return;
 3167|       |                           }
 3168|     73|                        }
 3169|  2.33k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.26k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  2.26k|         else {
   68|  2.26k|            using V = std::remove_cvref_t<T>;
   69|  2.26k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.26k|                                             end);
   71|  2.26k|         }
   72|  2.26k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
 1518|  2.26k|      {
 1519|  2.26k|         constexpr uint8_t header = tag::string;
 1520|       |
 1521|  2.26k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1521:14): [True: 3, False: 2.26k]
  ------------------
 1522|      3|            return;
 1523|      3|         }
 1524|  2.26k|         const auto tag = uint8_t(*it);
 1525|  2.26k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (1525:14): [True: 15, False: 2.24k]
  ------------------
 1526|     15|            ctx.error = error_code::syntax_error;
 1527|     15|            return;
 1528|     15|         }
 1529|       |
 1530|  2.24k|         ++it;
 1531|  2.24k|         const auto n = int_from_compressed(ctx, it, end);
 1532|  2.24k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1532:14): [True: 138, False: 2.10k]
  ------------------
 1533|    138|            return;
 1534|    138|         }
 1535|  2.10k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1535:14): [True: 140, False: 1.96k]
  ------------------
 1536|    140|            ctx.error = error_code::unexpected_end;
 1537|    140|            return;
 1538|    140|         }
 1539|       |         if constexpr (check_max_string_length(Opts) > 0) {
 1540|       |            if (n > check_max_string_length(Opts)) [[unlikely]] {
 1541|       |               ctx.error = error_code::invalid_length;
 1542|       |               return;
 1543|       |            }
 1544|       |         }
 1545|       |         if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 1546|       |            if (ctx.max_string_length > 0 && n > ctx.max_string_length) [[unlikely]] {
 1547|       |               ctx.error = error_code::invalid_length;
 1548|       |               return;
 1549|       |            }
 1550|       |         }
 1551|       |
 1552|  1.96k|         store(value, ctx, it, n);
 1553|  1.96k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1553:14): [True: 0, False: 1.96k]
  ------------------
 1554|      0|            return;
 1555|      0|         }
 1556|  1.96k|         it += n;
 1557|  1.96k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5storeIRS7_TkNS_10is_contextERNS_7contextERPKcEEvOT_OT0_OT1_m:
 1458|  1.96k|      {
 1459|       |         if constexpr (string_view_t<T>) {
 1460|       |            value = {it, n};
 1461|       |         }
 1462|       |         else if constexpr (array_char_t<T>) {
 1463|       |            // Fixed-size std::array<char, N> cannot be resized, so the decoded payload must
 1464|       |            // fit within it. Any trailing bytes are zero-filled to keep the buffer
 1465|       |            // deterministic when a shorter payload is read into a larger array.
 1466|       |            if (n > value.size()) [[unlikely]] {
 1467|       |               ctx.error = error_code::syntax_error;
 1468|       |               return;
 1469|       |            }
 1470|       |            std::memcpy(value.data(), it, n);
 1471|       |            if (n < value.size()) {
 1472|       |               std::memset(value.data() + n, 0, value.size() - n);
 1473|       |            }
 1474|       |         }
 1475|  1.96k|         else {
 1476|  1.96k|            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
  ------------------
  |  Branch (1476:17): [True: 0, False: 1.96k]
  ------------------
 1477|      0|               return;
 1478|      0|            }
 1479|  1.96k|            value.resize(n);
 1480|  1.96k|            std::memcpy(value.data(), it, n);
 1481|  1.96k|         }
 1482|  1.96k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm3EEEDav:
 3129|  4.48k|                     [&]<size_t I>() {
 3130|  4.48k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3131|  4.48k|                        static constexpr auto Length = TargetKey.size();
 3132|  4.48k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3132:29): [True: 4.47k, False: 3]
  |  Branch (3132:46): [True: 4.41k, False: 61]
  ------------------
 3133|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3134|       |                           // never instantiated -- see `skipped_by_meta`.
 3135|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3136|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3137|       |                           }
 3138|  4.41k|                           else {
 3139|       |                              // Check for null value skipping on read
 3140|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3141|       |                                 if (invalid_end(ctx, it, end)) {
 3142|       |                                    return;
 3143|       |                                 }
 3144|       |                                 if (uint8_t(*it) == tag::null) {
 3145|       |                                    ++it; // Skip the null tag
 3146|       |                                    return;
 3147|       |                                 }
 3148|       |                              }
 3149|       |
 3150|  4.41k|                              if constexpr (reflectable<T>) {
 3151|  4.41k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3152|       |                              }
 3153|       |                              else {
 3154|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3155|       |                              }
 3156|  4.41k|                           }
 3157|  4.41k|                        }
 3158|     64|                        else {
 3159|     64|                           if constexpr (Opts.error_on_unknown_keys) {
 3160|     64|                              ctx.error = error_code::unknown_key;
 3161|     64|                              return;
 3162|       |                           }
 3163|       |                           else {
 3164|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3165|       |                              if (bool(ctx.error)) [[unlikely]]
 3166|       |                                 return;
 3167|       |                           }
 3168|     64|                        }
 3169|  4.48k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__15arrayImLm3EEETkNS_10is_contextERNS_7contextERPKcSB_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  4.41k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  4.41k|         else {
   68|  4.41k|            using V = std::remove_cvref_t<T>;
   69|  4.41k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  4.41k|                                             end);
   71|  4.41k|         }
   72|  4.41k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1906|  4.41k|      {
 1907|  4.41k|         using V = range_value_t<std::decay_t<T>>;
 1908|       |
 1909|  4.41k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1909:14): [True: 2, False: 4.41k]
  ------------------
 1910|      2|            return;
 1911|      2|         }
 1912|  4.41k|         const auto tag = uint8_t(*it);
 1913|       |
 1914|       |         if constexpr (boolean_like<V>) {
 1915|       |            constexpr uint8_t type = uint8_t(3) << 3;
 1916|       |            constexpr uint8_t header = tag::typed_array | type;
 1917|       |
 1918|       |            if (tag != header) [[unlikely]] {
 1919|       |               ctx.error = error_code::syntax_error;
 1920|       |               return;
 1921|       |            }
 1922|       |
 1923|       |            ++it;
 1924|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1925|       |            if (bool(ctx.error)) [[unlikely]] {
 1926|       |               return;
 1927|       |            }
 1928|       |
 1929|       |            if constexpr (Opts.partial_read) {
 1930|       |               n = value.size();
 1931|       |            }
 1932|       |
 1933|       |            const auto num_bytes = (n + 7) / 8;
 1934|       |            if (uint64_t(end - it) < num_bytes) [[unlikely]] {
 1935|       |               ctx.error = error_code::invalid_length;
 1936|       |               return;
 1937|       |            }
 1938|       |            // A partial read takes a prefix of the array, so the bits after it are data, not padding
 1939|       |            if constexpr (not Opts.partial_read) {
 1940|       |               if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
 1941|       |                  ctx.error = error_code::syntax_error;
 1942|       |                  return;
 1943|       |               }
 1944|       |            }
 1945|       |            if constexpr (check_max_array_size(Opts) > 0) {
 1946|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 1947|       |                  ctx.error = error_code::invalid_length;
 1948|       |                  return;
 1949|       |               }
 1950|       |            }
 1951|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1952|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1953|       |                  ctx.error = error_code::invalid_length;
 1954|       |                  return;
 1955|       |               }
 1956|       |            }
 1957|       |
 1958|       |            if constexpr (resizable<T>) {
 1959|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1960|       |                  return;
 1961|       |               }
 1962|       |               value.resize(n);
 1963|       |
 1964|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1965|       |                  value.shrink_to_fit();
 1966|       |               }
 1967|       |            }
 1968|       |            else {
 1969|       |               if (n > value.size()) {
 1970|       |                  ctx.error = error_code::syntax_error;
 1971|       |                  return;
 1972|       |               }
 1973|       |            }
 1974|       |
 1975|       |            for (size_t byte_i{}, i{}; byte_i < num_bytes; ++byte_i, ++it) {
 1976|       |               if (invalid_end(ctx, it, end)) {
 1977|       |                  return;
 1978|       |               }
 1979|       |               uint8_t byte;
 1980|       |               std::memcpy(&byte, it, 1);
 1981|       |               for (size_t bit_i = 0; bit_i < 8 && i < n; ++bit_i, ++i) {
 1982|       |                  value[i] = byte >> bit_i & uint8_t(1);
 1983|       |               }
 1984|       |            }
 1985|       |         }
 1986|  4.41k|         else if constexpr (beve_num_array_t<V>) {
 1987|       |            // NV is the arithmetic wire type: V for plain numbers, the rep for chrono
 1988|       |            // durations / count-based time points (which are bit-compatible with it).
 1989|  4.41k|            using NV = beve_num_array_value_t<V>;
 1990|  4.41k|            constexpr uint8_t type = std::floating_point<NV> ? 0 : (std::is_signed_v<NV> ? 0b000'01'000 : 0b000'10'000);
  ------------------
  |  Branch (1990:38): [Folded, False: 4.41k]
  |  Branch (1990:69): [Folded, False: 4.41k]
  ------------------
 1991|  4.41k|            constexpr uint8_t header = tag::typed_array | type | (byte_count<NV> << 5);
 1992|       |
 1993|  4.41k|            auto validate_and_resize = [&](size_t n) -> bool {
 1994|  4.41k|               if constexpr (check_max_array_size(Opts) > 0) {
 1995|  4.41k|                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1996|  4.41k|                     ctx.error = error_code::invalid_length;
 1997|  4.41k|                     return false;
 1998|  4.41k|                  }
 1999|  4.41k|               }
 2000|  4.41k|               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2001|  4.41k|                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2002|  4.41k|                     ctx.error = error_code::invalid_length;
 2003|  4.41k|                     return false;
 2004|  4.41k|                  }
 2005|  4.41k|               }
 2006|       |
 2007|  4.41k|               if constexpr (resizable<T>) {
 2008|  4.41k|                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2009|  4.41k|                     return false;
 2010|  4.41k|                  }
 2011|  4.41k|                  value.resize(n);
 2012|       |
 2013|  4.41k|                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2014|  4.41k|                     value.shrink_to_fit();
 2015|  4.41k|                  }
 2016|  4.41k|               }
 2017|  4.41k|               else {
 2018|  4.41k|                  if (n > value.size()) {
 2019|  4.41k|                     ctx.error = error_code::syntax_error;
 2020|  4.41k|                     return false;
 2021|  4.41k|                  }
 2022|  4.41k|               }
 2023|  4.41k|               return true;
 2024|  4.41k|            };
 2025|       |
 2026|  4.41k|            auto prepare = [&](const size_t element_size) -> size_t {
 2027|  4.41k|               ++it;
 2028|  4.41k|               if (invalid_end(ctx, it, end)) {
 2029|  4.41k|                  return 0;
 2030|  4.41k|               }
 2031|       |
 2032|  4.41k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2033|  4.41k|               if (bool(ctx.error)) [[unlikely]] {
 2034|  4.41k|                  return 0;
 2035|  4.41k|               }
 2036|       |
 2037|  4.41k|               if constexpr (Opts.partial_read) {
 2038|  4.41k|                  n = value.size();
 2039|  4.41k|               }
 2040|       |
 2041|  4.41k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
 2042|  4.41k|               if (!validate_and_resize(n)) {
 2043|  4.41k|                  return 0;
 2044|  4.41k|               }
 2045|       |
 2046|  4.41k|               return n;
 2047|  4.41k|            };
 2048|       |
 2049|  4.41k|            size_t n = 0;
 2050|       |
 2051|  4.41k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (2051:17): [True: 1.89k, False: 2.52k]
  ------------------
 2052|       |               // Aligned typed array: ALIGNED_HEADER | NUMERIC_HEADER | SIZE | PADDING_LENGTH | PADDING | DATA
 2053|  1.89k|               ++it; // skip aligned header byte
 2054|  1.89k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2054:20): [True: 3, False: 1.88k]
  ------------------
 2055|      3|                  return;
 2056|      3|               }
 2057|  1.88k|               const auto numeric_tag = uint8_t(*it);
 2058|       |               // Verify bits 0-2 are typed_array tag
 2059|  1.88k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (2059:20): [True: 7, False: 1.88k]
  ------------------
 2060|      7|                  ctx.error = error_code::syntax_error;
 2061|      7|                  return;
 2062|      7|               }
 2063|       |               // Verify it's a numeric type (category 0, 1, or 2, not 3)
 2064|  1.88k|               if (((numeric_tag >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (2064:20): [True: 2, False: 1.88k]
  ------------------
 2065|      2|                  ctx.error = error_code::syntax_error;
 2066|      2|                  return;
 2067|      2|               }
 2068|       |
 2069|  1.88k|               if (numeric_tag != header) {
  ------------------
  |  Branch (2069:20): [True: 1.13k, False: 746]
  ------------------
 2070|  1.13k|                  if constexpr (check_allow_conversions(Opts)) {
 2071|  1.13k|                     const uint8_t elem_byte_count = byte_count_lookup[numeric_tag >> 5];
 2072|  1.13k|                     ++it; // skip numeric header
 2073|  1.13k|                     std::conditional_t<Opts.partial_read, size_t, const size_t> count =
 2074|  1.13k|                        int_from_compressed(ctx, it, end);
 2075|  1.13k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2075:26): [True: 18, False: 1.11k]
  ------------------
 2076|     18|                        return;
 2077|     18|                     }
 2078|       |                     if constexpr (Opts.partial_read) {
 2079|       |                        count = value.size();
 2080|       |                     }
 2081|       |
 2082|       |                     // Read padding length byte and skip padding
 2083|  1.11k|                     if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2083:26): [True: 62, False: 1.05k]
  ------------------
 2084|     62|                        return;
 2085|     62|                     }
 2086|  1.05k|                     const uint8_t padding = uint8_t(*it);
 2087|  1.05k|                     ++it;
 2088|  1.05k|                     if (padding >= elem_byte_count) [[unlikely]] {
  ------------------
  |  Branch (2088:26): [True: 4, False: 1.05k]
  ------------------
 2089|      4|                        ctx.error = error_code::syntax_error;
 2090|      4|                        return;
 2091|      4|                     }
 2092|  1.05k|                     if (typed_array_out_of_bounds(ctx, it, end, count, elem_byte_count, padding)) return;
  ------------------
  |  Branch (2092:26): [True: 105, False: 945]
  ------------------
 2093|    945|                     it += padding;
 2094|       |
 2095|    945|                     if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2095:26): [True: 65, False: 880]
  ------------------
 2096|     65|                        return;
 2097|     65|                     }
 2098|       |
 2099|    880|                     auto x_it = value.begin();
 2100|  2.57k|                     for (size_t i = 0; i < count; ++i, ++x_it) {
  ------------------
  |  Branch (2100:41): [True: 1.69k, False: 880]
  ------------------
 2101|  1.69k|                        const uint8_t number_tag = tag::number | (numeric_tag & 0b11111000);
 2102|  1.69k|                        parse<BEVE>::op<no_header_on<Opts>()>(*x_it, number_tag, ctx, it, end);
 2103|  1.69k|                     }
 2104|    880|                     return;
 2105|       |                  }
 2106|       |                  else {
 2107|       |                     ctx.error = error_code::syntax_error;
 2108|       |                     return;
 2109|       |                  }
 2110|  1.13k|               }
 2111|       |
 2112|      0|               ++it; // skip numeric header
 2113|  1.88k|               std::conditional_t<Opts.partial_read, size_t, const size_t> count = int_from_compressed(ctx, it, end);
 2114|  1.88k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2114:20): [True: 151, False: 1.72k]
  ------------------
 2115|    151|                  return;
 2116|    151|               }
 2117|       |               if constexpr (Opts.partial_read) {
 2118|       |                  count = value.size();
 2119|       |               }
 2120|       |
 2121|       |               // Read padding length byte and skip padding
 2122|  1.72k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2122:20): [True: 129, False: 1.60k]
  ------------------
 2123|    129|                  return;
 2124|    129|               }
 2125|  1.60k|               const uint8_t padding = uint8_t(*it);
 2126|  1.60k|               ++it;
 2127|  1.60k|               if (padding >= sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (2127:20): [True: 14, False: 1.58k]
  ------------------
 2128|     14|                  ctx.error = error_code::syntax_error;
 2129|     14|                  return;
 2130|     14|               }
 2131|       |
 2132|  1.58k|               if (typed_array_out_of_bounds(ctx, it, end, count, sizeof(V), padding)) return;
  ------------------
  |  Branch (2132:20): [True: 84, False: 1.50k]
  ------------------
 2133|  1.50k|               it += padding;
 2134|       |
 2135|  1.50k|               if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2135:20): [True: 40, False: 1.46k]
  ------------------
 2136|     40|                  return;
 2137|     40|               }
 2138|  1.46k|               n = count;
 2139|  1.46k|            }
 2140|  2.52k|            else if (tag != header) {
  ------------------
  |  Branch (2140:22): [True: 1.58k, False: 940]
  ------------------
 2141|  1.58k|               if constexpr (check_allow_conversions(Opts)) {
 2142|  1.58k|                  if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2142:23): [True: 1.58k, False: 0]
  ------------------
 2143|  1.58k|                     if constexpr (check_allow_conversions(Opts)) {
 2144|  1.58k|                        if ((tag & 0b00000111) != tag::typed_array) {
  ------------------
  |  Branch (2144:29): [True: 18, False: 1.56k]
  ------------------
 2145|     18|                           ctx.error = error_code::syntax_error;
 2146|     18|                           return;
 2147|     18|                        }
 2148|       |
 2149|  1.56k|                        const uint8_t byte_count = byte_count_lookup[tag >> 5];
 2150|  1.56k|                        const size_t count = prepare(byte_count);
 2151|  1.56k|                        if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2151:29): [True: 342, False: 1.22k]
  ------------------
 2152|    342|                           return;
 2153|    342|                        }
 2154|       |
 2155|  1.22k|                        auto x_it = value.begin();
 2156|  3.79k|                        for (size_t i = 0; i < count; ++i, ++x_it) {
  ------------------
  |  Branch (2156:44): [True: 2.57k, False: 1.22k]
  ------------------
 2157|  2.57k|                           const uint8_t number_tag = tag::number | (tag & 0b11111000);
 2158|  2.57k|                           parse<BEVE>::op<no_header_on<Opts>()>(*x_it, number_tag, ctx, it, end);
 2159|  2.57k|                        }
 2160|  1.22k|                        return;
 2161|       |                     }
 2162|       |                     else {
 2163|       |                        ctx.error = error_code::syntax_error;
 2164|       |                        return;
 2165|       |                     }
 2166|  1.58k|                  }
 2167|       |               }
 2168|       |               else {
 2169|       |                  ctx.error = error_code::syntax_error;
 2170|       |                  return;
 2171|       |               }
 2172|  1.58k|            }
 2173|    940|            else {
 2174|    940|               n = prepare(sizeof(V));
 2175|    940|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2175:20): [True: 250, False: 690]
  ------------------
 2176|    250|                  return;
 2177|    250|               }
 2178|    940|            }
 2179|       |
 2180|  3.73k|            if constexpr (contiguous<T>) {
 2181|  3.73k|               constexpr auto is_volatile =
 2182|  3.73k|                  std::is_volatile_v<std::remove_reference_t<std::remove_pointer_t<decltype(value.data())>>>;
 2183|       |
 2184|       |               if constexpr (is_volatile) {
 2185|       |                  for (size_t i = 0; i < n; ++i) {
 2186|       |                     if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2187|       |                        ctx.error = error_code::unexpected_end;
 2188|       |                        return;
 2189|       |                     }
 2190|       |
 2191|       |                     NV temp;
 2192|       |                     std::memcpy(&temp, it, sizeof(NV));
 2193|       |                     if constexpr (std::endian::native == std::endian::big) {
 2194|       |                        byteswap_le(temp);
 2195|       |                     }
 2196|       |                     value[i] = beve_num_array_construct<V>(temp);
 2197|       |                     it += sizeof(NV);
 2198|       |                  }
 2199|       |               }
 2200|       |               else if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
 2201|       |                  // On big endian, read and swap each element (through the rep so a chrono
 2202|       |                  // element is byteswapped as its underlying number).
 2203|       |                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2204|       |                  for (size_t i = 0; i < n; ++i) {
 2205|       |                     NV temp;
 2206|       |                     std::memcpy(&temp, it, sizeof(NV));
 2207|       |                     byteswap_le(temp);
 2208|       |                     value[i] = beve_num_array_construct<V>(temp);
 2209|       |                     it += sizeof(NV);
 2210|       |                  }
 2211|       |               }
 2212|  3.73k|               else {
 2213|       |                  // Little endian or single-byte: bulk memcpy. A chrono element is
 2214|       |                  // bit-identical to its rep, so the raw wire bytes populate it directly.
 2215|  3.73k|                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
  ------------------
  |  Branch (2215:23): [True: 0, False: 3.73k]
  ------------------
 2216|  3.73k|                  if (n) {
  ------------------
  |  Branch (2216:23): [True: 106, False: 3.63k]
  ------------------
 2217|    106|                     std::memcpy(value.data(), it, n * sizeof(V));
 2218|    106|                     it += n * sizeof(V);
 2219|    106|                  }
 2220|  3.73k|               }
 2221|       |            }
 2222|       |            else {
 2223|       |               auto x_it = value.begin();
 2224|       |               for (size_t i = 0; i < n; ++i, ++x_it) {
 2225|       |                  auto&& x = *x_it;
 2226|       |                  if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2227|       |                     ctx.error = error_code::unexpected_end;
 2228|       |                     return;
 2229|       |                  }
 2230|       |
 2231|       |                  NV temp;
 2232|       |                  std::memcpy(&temp, it, sizeof(NV));
 2233|       |                  if constexpr (std::endian::native == std::endian::big) {
 2234|       |                     byteswap_le(temp);
 2235|       |                  }
 2236|       |                  x = beve_num_array_construct<V>(temp);
 2237|       |                  it += sizeof(NV);
 2238|       |               }
 2239|       |            }
 2240|       |         }
 2241|       |         else if constexpr (str_t<V>) {
 2242|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2243|       |            constexpr uint8_t string_indicator = uint8_t(1) << 5;
 2244|       |            constexpr uint8_t header = tag::typed_array | type | string_indicator;
 2245|       |
 2246|       |            if (tag != header) [[unlikely]] {
 2247|       |               ctx.error = error_code::syntax_error;
 2248|       |               return;
 2249|       |            }
 2250|       |
 2251|       |            ++it;
 2252|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2253|       |            if (bool(ctx.error)) [[unlikely]] {
 2254|       |               return;
 2255|       |            }
 2256|       |
 2257|       |            if constexpr (Opts.partial_read) {
 2258|       |               n = value.size();
 2259|       |            }
 2260|       |
 2261|       |            // Each string needs at least 1 byte for length header
 2262|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2263|       |               ctx.error = error_code::invalid_length;
 2264|       |               return;
 2265|       |            }
 2266|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2267|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2268|       |                  ctx.error = error_code::invalid_length;
 2269|       |                  return;
 2270|       |               }
 2271|       |            }
 2272|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2273|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2274|       |                  ctx.error = error_code::invalid_length;
 2275|       |                  return;
 2276|       |               }
 2277|       |            }
 2278|       |
 2279|       |            if constexpr (resizable<T>) {
 2280|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2281|       |                  return;
 2282|       |               }
 2283|       |               value.resize(n);
 2284|       |
 2285|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2286|       |                  value.shrink_to_fit();
 2287|       |               }
 2288|       |            }
 2289|       |            else {
 2290|       |               if (n > value.size()) {
 2291|       |                  ctx.error = error_code::syntax_error;
 2292|       |                  return;
 2293|       |               }
 2294|       |            }
 2295|       |
 2296|       |            auto x_it = value.begin();
 2297|       |            for (size_t i = 0; i < n; ++i, ++x_it) {
 2298|       |               auto&& x = *x_it;
 2299|       |               const auto length = int_from_compressed(ctx, it, end);
 2300|       |               if (bool(ctx.error)) [[unlikely]] {
 2301|       |                  return;
 2302|       |               }
 2303|       |               if (uint64_t(end - it) < length) [[unlikely]] {
 2304|       |                  ctx.error = error_code::unexpected_end;
 2305|       |                  return;
 2306|       |               }
 2307|       |               if constexpr (check_max_string_length(Opts) > 0) {
 2308|       |                  if (length > check_max_string_length(Opts)) [[unlikely]] {
 2309|       |                     ctx.error = error_code::invalid_length;
 2310|       |                     return;
 2311|       |                  }
 2312|       |               }
 2313|       |               if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 2314|       |                  if (ctx.max_string_length > 0 && length > ctx.max_string_length) [[unlikely]] {
 2315|       |                     ctx.error = error_code::invalid_length;
 2316|       |                     return;
 2317|       |                  }
 2318|       |               }
 2319|       |
 2320|       |               x.resize(length);
 2321|       |
 2322|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<decltype(x)>) {
 2323|       |                  x.shrink_to_fit();
 2324|       |               }
 2325|       |
 2326|       |               std::memcpy(x.data(), it, length);
 2327|       |               it += length;
 2328|       |            }
 2329|       |         }
 2330|       |         else if constexpr (complex_t<V>) {
 2331|       |            constexpr uint8_t header = tag::extensions | 0b00011'000;
 2332|       |            if (tag != header) [[unlikely]] {
 2333|       |               ctx.error = error_code::syntax_error;
 2334|       |               return;
 2335|       |            }
 2336|       |            ++it;
 2337|       |
 2338|       |            using X = typename V::value_type;
 2339|       |            // Accepts complex arrays (sub-type 1) and aligned complex arrays (sub-type 2), whose DATA is laid out
 2340|       |            // identically once the header has been read
 2341|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n =
 2342|       |               detail::read_beve_complex_array_header<X>(ctx, it, end);
 2343|       |            if (bool(ctx.error)) [[unlikely]] {
 2344|       |               return;
 2345|       |            }
 2346|       |
 2347|       |            if constexpr (Opts.partial_read) {
 2348|       |               n = value.size();
 2349|       |            }
 2350|       |
 2351|       |            if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2352|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2353|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2354|       |                  ctx.error = error_code::invalid_length;
 2355|       |                  return;
 2356|       |               }
 2357|       |            }
 2358|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2359|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2360|       |                  ctx.error = error_code::invalid_length;
 2361|       |                  return;
 2362|       |               }
 2363|       |            }
 2364|       |
 2365|       |            if constexpr (resizable<T>) {
 2366|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2367|       |                  return;
 2368|       |               }
 2369|       |               value.resize(n);
 2370|       |
 2371|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2372|       |                  value.shrink_to_fit();
 2373|       |               }
 2374|       |            }
 2375|       |            else {
 2376|       |               if (n > value.size()) {
 2377|       |                  ctx.error = error_code::syntax_error;
 2378|       |                  return;
 2379|       |               }
 2380|       |            }
 2381|       |
 2382|       |            if constexpr (contiguous<T>) {
 2383|       |               if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2384|       |                  // On big endian, read and swap each complex element's components
 2385|       |                  for (size_t i = 0; i < n; ++i) {
 2386|       |                     std::memcpy(&value[i], it, sizeof(V));
 2387|       |                     X real_part = value[i].real();
 2388|       |                     X imag_part = value[i].imag();
 2389|       |                     byteswap_le(real_part);
 2390|       |                     byteswap_le(imag_part);
 2391|       |                     value[i] = V(real_part, imag_part);
 2392|       |                     it += sizeof(V);
 2393|       |                  }
 2394|       |               }
 2395|       |               else {
 2396|       |                  // Little endian or single-byte: bulk memcpy
 2397|       |                  if (n) {
 2398|       |                     std::memcpy(value.data(), it, n * sizeof(V));
 2399|       |                     it += n * sizeof(V);
 2400|       |                  }
 2401|       |               }
 2402|       |            }
 2403|       |            else {
 2404|       |               auto x_it = value.begin();
 2405|       |               for (size_t i = 0; i < n; ++i, ++x_it) {
 2406|       |                  auto&& x = *x_it;
 2407|       |                  std::memcpy(&x, it, sizeof(V));
 2408|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2409|       |                     X real_part = x.real();
 2410|       |                     X imag_part = x.imag();
 2411|       |                     byteswap_le(real_part);
 2412|       |                     byteswap_le(imag_part);
 2413|       |                     x = V(real_part, imag_part);
 2414|       |                  }
 2415|       |                  it += sizeof(V);
 2416|       |               }
 2417|       |            }
 2418|       |         }
 2419|       |         else {
 2420|       |            if ((tag & 0b00000'111) != tag::generic_array) [[unlikely]] {
 2421|       |               ctx.error = error_code::syntax_error;
 2422|       |               return;
 2423|       |            }
 2424|       |
 2425|       |            depth_guard guard{ctx};
 2426|       |            if (!guard) [[unlikely]] {
 2427|       |               return;
 2428|       |            }
 2429|       |
 2430|       |            ++it;
 2431|       |            std::conditional_t<check_partial_read(Opts), size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2432|       |            if (bool(ctx.error)) [[unlikely]] {
 2433|       |               return;
 2434|       |            }
 2435|       |
 2436|       |            if constexpr (Opts.partial_read) {
 2437|       |               n = value.size();
 2438|       |            }
 2439|       |
 2440|       |            // Each element needs at least 1 byte for its tag
 2441|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2442|       |               ctx.error = error_code::invalid_length;
 2443|       |               return;
 2444|       |            }
 2445|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2446|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2447|       |                  ctx.error = error_code::invalid_length;
 2448|       |                  return;
 2449|       |               }
 2450|       |            }
 2451|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2452|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2453|       |                  ctx.error = error_code::invalid_length;
 2454|       |                  return;
 2455|       |               }
 2456|       |            }
 2457|       |
 2458|       |            if constexpr (resizable<T>) {
 2459|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2460|       |                  return;
 2461|       |               }
 2462|       |               value.resize(n);
 2463|       |
 2464|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2465|       |                  value.shrink_to_fit();
 2466|       |               }
 2467|       |            }
 2468|       |            else {
 2469|       |               if (n > value.size()) {
 2470|       |                  ctx.error = error_code::syntax_error;
 2471|       |                  return;
 2472|       |               }
 2473|       |            }
 2474|       |
 2475|       |            auto item_it = value.begin();
 2476|       |            for (size_t i = 0; i < n; ++i, ++item_it) {
 2477|       |               parse<BEVE>::op<Opts>(*item_it, ctx, it, end);
 2478|       |            }
 2479|       |         }
 2480|  4.41k|      }
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE_clEm:
 1993|  3.24k|            auto validate_and_resize = [&](size_t n) -> bool {
 1994|       |               if constexpr (check_max_array_size(Opts) > 0) {
 1995|       |                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1996|       |                     ctx.error = error_code::invalid_length;
 1997|       |                     return false;
 1998|       |                  }
 1999|       |               }
 2000|       |               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2001|       |                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2002|       |                     ctx.error = error_code::invalid_length;
 2003|       |                     return false;
 2004|       |                  }
 2005|       |               }
 2006|       |
 2007|       |               if constexpr (resizable<T>) {
 2008|       |                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2009|       |                     return false;
 2010|       |                  }
 2011|       |                  value.resize(n);
 2012|       |
 2013|       |                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2014|       |                     value.shrink_to_fit();
 2015|       |                  }
 2016|       |               }
 2017|  3.24k|               else {
 2018|  3.24k|                  if (n > value.size()) {
  ------------------
  |  Branch (2018:23): [True: 127, False: 3.12k]
  ------------------
 2019|    127|                     ctx.error = error_code::syntax_error;
 2020|    127|                     return false;
 2021|    127|                  }
 2022|  3.24k|               }
 2023|  3.12k|               return true;
 2024|  3.24k|            };
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmRKhTkNS_10is_contextERNS_7contextERPKcSA_Qcl15check_no_headerT_EEEvOT0_OT1_OT2_OT3_T4_:
   37|  4.26k|      {
   38|       |         if constexpr (const_value_v<T>) {
   39|       |            if constexpr (check_error_on_const_read(Opts)) {
   40|       |               ctx.error = error_code::attempt_const_read;
   41|       |            }
   42|       |            else {
   43|       |               // do not read anything into the const value
   44|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   45|       |            }
   46|       |         }
   47|  4.26k|         else {
   48|  4.26k|            using V = std::remove_cvref_t<T>;
   49|  4.26k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Tag>(tag), std::forward<Ctx>(ctx),
   50|  4.26k|                                             std::forward<It0>(it), end);
   51|  4.26k|         }
   52|  4.26k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  4.26k|      {
  222|  4.26k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 0, False: 4.26k]
  ------------------
  223|      0|            return;
  224|      0|         }
  225|       |
  226|  4.26k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  4.26k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  4.26k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 4.26k, False: 0]
  ------------------
  231|  4.26k|            if constexpr (check_allow_conversions(Opts)) {
  232|  4.26k|               if constexpr (num_t<T>) {
  233|  4.26k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 0, False: 4.26k]
  ------------------
  234|      0|                     ctx.error = error_code::syntax_error;
  235|      0|                     return;
  236|      0|                  }
  237|       |
  238|  4.26k|                  auto decode = [&](auto&& i) {
  239|  4.26k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  4.26k|                        ctx.error = error_code::unexpected_end;
  241|  4.26k|                        return;
  242|  4.26k|                     }
  243|  4.26k|                     using I = std::decay_t<decltype(i)>;
  244|  4.26k|                     std::memcpy(&i, it, sizeof(I));
  245|  4.26k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  4.26k|                        byteswap_le(i);
  247|  4.26k|                     }
  248|  4.26k|                     value = static_cast<V>(i);
  249|  4.26k|                     it += sizeof(i);
  250|  4.26k|                  };
  251|       |
  252|  4.26k|                  switch (tag) {
  253|     26|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 26, False: 4.24k]
  ------------------
  254|     26|                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|     26|                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|       |                     else {
  259|       |                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|       |                        decode(float{});
  262|       |                     }
  263|     26|                     return;
  264|      0|                  }
  265|     20|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 20, False: 4.24k]
  ------------------
  266|     20|                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|     20|                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|       |                     else {
  271|       |                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|       |                        decode(double{});
  274|       |                     }
  275|     20|                     return;
  276|      0|                  }
  277|  1.14k|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 1.14k, False: 3.12k]
  ------------------
  278|  1.14k|                     decode(int8_t{});
  279|  1.14k|                     return;
  280|      0|                  }
  281|    465|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 465, False: 3.80k]
  ------------------
  282|    465|                     decode(int16_t{});
  283|    465|                     return;
  284|      0|                  }
  285|    525|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 525, False: 3.74k]
  ------------------
  286|    525|                     decode(int32_t{});
  287|    525|                     return;
  288|      0|                  }
  289|    456|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 456, False: 3.81k]
  ------------------
  290|    456|                     decode(int64_t{});
  291|    456|                     return;
  292|      0|                  }
  293|    595|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 595, False: 3.67k]
  ------------------
  294|    595|                     decode(uint8_t{});
  295|    595|                     return;
  296|      0|                  }
  297|    800|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 800, False: 3.46k]
  ------------------
  298|    800|                     decode(uint16_t{});
  299|    800|                     return;
  300|      0|                  }
  301|    214|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 214, False: 4.05k]
  ------------------
  302|    214|                     decode(uint32_t{});
  303|    214|                     return;
  304|      0|                  }
  305|      0|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 0, False: 4.26k]
  ------------------
  306|      0|                     decode(uint64_t{});
  307|      0|                     return;
  308|      0|                  }
  309|     28|                  default: {
  ------------------
  |  Branch (309:19): [True: 28, False: 4.24k]
  ------------------
  310|     28|                     ctx.error = error_code::syntax_error;
  311|     28|                     return;
  312|      0|                  }
  313|  4.26k|                  }
  314|  4.26k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  4.26k|         }
  321|       |
  322|  4.26k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 0, False: 4.26k]
  ------------------
  323|      0|            ctx.error = error_code::unexpected_end;
  324|      0|            return;
  325|      0|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  4.26k|         else {
  336|  4.26k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  4.26k|         }
  341|  4.26k|         it += sizeof(V);
  342|  4.26k|      }
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|  1.14k|                  auto decode = [&](auto&& i) {
  239|  1.14k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 1.14k]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|  1.14k|                     using I = std::decay_t<decltype(i)>;
  244|  1.14k|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|  1.14k|                     value = static_cast<V>(i);
  249|  1.14k|                     it += sizeof(i);
  250|  1.14k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|    465|                  auto decode = [&](auto&& i) {
  239|    465|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 465]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    465|                     using I = std::decay_t<decltype(i)>;
  244|    465|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    465|                     value = static_cast<V>(i);
  249|    465|                     it += sizeof(i);
  250|    465|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  238|    525|                  auto decode = [&](auto&& i) {
  239|    525|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 525]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    525|                     using I = std::decay_t<decltype(i)>;
  244|    525|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    525|                     value = static_cast<V>(i);
  249|    525|                     it += sizeof(i);
  250|    525|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    456|                  auto decode = [&](auto&& i) {
  239|    456|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 456]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    456|                     using I = std::decay_t<decltype(i)>;
  244|    456|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    456|                     value = static_cast<V>(i);
  249|    456|                     it += sizeof(i);
  250|    456|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|    595|                  auto decode = [&](auto&& i) {
  239|    595|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 595]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    595|                     using I = std::decay_t<decltype(i)>;
  244|    595|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    595|                     value = static_cast<V>(i);
  249|    595|                     it += sizeof(i);
  250|    595|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    800|                  auto decode = [&](auto&& i) {
  239|    800|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 800]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    800|                     using I = std::decay_t<decltype(i)>;
  244|    800|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    800|                     value = static_cast<V>(i);
  249|    800|                     it += sizeof(i);
  250|    800|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    214|                  auto decode = [&](auto&& i) {
  239|    214|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 214]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    214|                     using I = std::decay_t<decltype(i)>;
  244|    214|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    214|                     value = static_cast<V>(i);
  249|    214|                     it += sizeof(i);
  250|    214|                  };
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE0_clEm:
 2026|  2.50k|            auto prepare = [&](const size_t element_size) -> size_t {
 2027|  2.50k|               ++it;
 2028|  2.50k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2028:20): [True: 7, False: 2.49k]
  ------------------
 2029|      7|                  return 0;
 2030|      7|               }
 2031|       |
 2032|  2.49k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2033|  2.49k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2033:20): [True: 269, False: 2.23k]
  ------------------
 2034|    269|                  return 0;
 2035|    269|               }
 2036|       |
 2037|       |               if constexpr (Opts.partial_read) {
 2038|       |                  n = value.size();
 2039|       |               }
 2040|       |
 2041|  2.23k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
  ------------------
  |  Branch (2041:20): [True: 294, False: 1.93k]
  ------------------
 2042|  1.93k|               if (!validate_and_resize(n)) {
  ------------------
  |  Branch (2042:20): [True: 22, False: 1.91k]
  ------------------
 2043|     22|                  return 0;
 2044|     22|               }
 2045|       |
 2046|  1.91k|               return n;
 2047|  1.93k|            };

_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  265|  1.04G|   {
  266|  1.04G|      using Buffer = std::remove_cvref_t<B>;
  267|       |
  268|  1.04G|      if constexpr (vector_like<Buffer>) {
  269|  1.04G|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (269:14): [True: 44.7k, False: 1.04G]
  ------------------
  270|  44.7k|            grow_buffer(b, required);
  271|  44.7k|         }
  272|  1.04G|         return true;
  273|       |      }
  274|       |      else if constexpr (has_bounded_capacity<Buffer>) {
  275|       |         if (required > buffer_traits<Buffer>::capacity(b)) [[unlikely]] {
  276|       |            ctx.error = error_code::buffer_overflow;
  277|       |            return false;
  278|       |         }
  279|       |         return true;
  280|       |      }
  281|       |      else {
  282|       |         return true; // Raw pointer or other - trust caller
  283|       |      }
  284|  1.04G|   }
_ZN3glz11grow_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
  143|  44.7k|   {
  144|  44.7k|      using traits = buffer_traits<std::remove_cvref_t<B>>;
  145|  44.7k|      if constexpr (requires { traits::grow(b, required); }) {
  146|  44.7k|         traits::grow(b, required);
  147|       |      }
  148|       |      else {
  149|       |         // A user specialization written before `grow` existed: keep the growth it used to get.
  150|       |         resize_unfilled(b, 2 * required);
  151|       |      }
  152|  44.7k|   }
_ZN3glz13buffer_traitsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4growERS7_mQL_ZNS_13buffer_traits12is_resizableEE:
  118|  44.7k|      {
  119|  44.7k|         resize_unfilled(b, 2 * required);
  120|  44.7k|      }
_ZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
   63|  44.7k|   {
   64|  44.7k|      if constexpr (requires { b.resize_and_overwrite(n, [](auto*, size_t written) { return written; }); }) {
   65|  44.7k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });
   66|       |      }
   67|       |      else {
   68|       |         b.resize(n);
   69|       |      }
   70|  44.7k|   }
_ZZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_mENKUlPS8_mE_clIcEEDaSA_m:
   65|  44.7k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });

_ZN3glz10get_memberIR9my_structRiEEDcOT_OT0_:
  677|  3.31k|   {
  678|  3.31k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  3.31k|      else {
  700|  3.31k|         return element;
  701|  3.31k|      }
  702|  3.31k|   }
_ZN3glz10get_memberIR9my_structRdEEDcOT_OT0_:
  677|  3.11k|   {
  678|  3.11k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  3.11k|      else {
  700|  3.11k|         return element;
  701|  3.11k|      }
  702|  3.11k|   }
_ZN3glz10get_memberIR9my_structRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEDcOT_OT0_:
  677|  2.26k|   {
  678|  2.26k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  2.26k|      else {
  700|  2.26k|         return element;
  701|  2.26k|      }
  702|  2.26k|   }
_ZN3glz10get_memberIR9my_structRNSt3__15arrayImLm3EEEEEDcOT_OT0_:
  677|  4.41k|   {
  678|  4.41k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  4.41k|      else {
  700|  4.41k|         return element;
  701|  4.41k|      }
  702|  4.41k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  341|  1.82M|   {
  342|  1.82M|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|  1.82M|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|       |      else if constexpr (has_data<T> && has_size<T>) {
  349|       |         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  1.82M|   }

_ZN3glz10call_scopeINS_7contextEEC2ERS1_:
  272|  24.1k|      explicit call_scope(Ctx& c) noexcept : ctx(c), depth(c.depth)
  273|  24.1k|      {
  274|  24.1k|         ctx.error = error_code::none;
  275|  24.1k|         ctx.custom_error_message = {};
  276|  24.1k|      }
_ZN3glz11depth_guardINS_7contextEEC2ERS1_m:
  215|  4.70k|      depth_guard(Ctx& c, const size_t limit = max_recursive_depth_limit) noexcept : ctx(c)
  216|  4.70k|      {
  217|  4.70k|         if (ctx.depth >= limit) [[unlikely]] {
  ------------------
  |  Branch (217:14): [True: 0, False: 4.70k]
  ------------------
  218|      0|            ctx.error = error_code::exceeded_max_recursive_depth;
  219|      0|            return;
  220|      0|         }
  221|  4.70k|         ++ctx.depth;
  222|  4.70k|         entered = true;
  223|  4.70k|      }
_ZNK3glz11depth_guardINS_7contextEEcvbEv:
  228|  4.70k|      explicit operator bool() const noexcept { return entered; }
_ZN3glz11depth_guardINS_7contextEED2Ev:
  225|  4.70k|      {
  226|  4.70k|         if (entered) --ctx.depth;
  ------------------
  |  Branch (226:14): [True: 4.70k, False: 0]
  ------------------
  227|  4.70k|      }
_ZN3glz10call_scopeINS_7contextEED2Ev:
  277|  24.1k|      ~call_scope() { ctx.depth = depth; }
_ZNK3glz9error_ctxcvbEv:
  148|  24.1k|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz12indent_guardINS_7contextEEC2ERS1_m:
  241|  5.69M|      indent_guard(Ctx& c, const size_t indentation_step) noexcept : ctx(c), step(indentation_step)
  242|  5.69M|      {
  243|  5.69M|         ctx.depth += step;
  244|  5.69M|      }
_ZN3glz12indent_guardINS_7contextEED2Ev:
  245|  5.69M|      ~indent_guard() { ctx.depth -= step; }

_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  24.1k|   {
  233|  24.1k|      format_context_t<Opts.format> ctx{};
  234|  24.1k|      return read<Opts>(value, buffer, ctx);
  235|  24.1k|   }
_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  24.1k|   {
  153|  24.1k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  24.1k|      call_scope scope{ctx};
  156|       |
  157|  24.1k|      if constexpr (Opts.format != NDJSON) {
  158|  24.1k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 24.1k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  24.1k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  24.1k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  24.1k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  24.1k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  24.1k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  24.1k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  24.1k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  24.1k|         ctx.speculation_budget =
  185|  24.1k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 978, False: 23.1k]
  ------------------
  186|  24.1k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  24.1k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  24.1k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 24.0k, False: 70]
  ------------------
  203|  24.0k|         goto finish;
  204|  24.0k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  24.1k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  24.1k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  24.1k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|     70|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETkNS_10contiguousERKNSt3__16vectorIcNS2_9allocatorIcEEEEEEDaOT0_:
   40|  24.1k|   {
   41|  24.1k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  24.1k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  24.1k|      auto end = it + buffer.size();
   45|       |
   46|  24.1k|      return std::pair{it, end};
   47|  24.1k|   }
_ZN3glz16exceeds_capacityINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT_mRT0_:
   28|  1.96k|   {
   29|       |      if constexpr (fixed_capacity_container<decltype(value)>) {
   30|       |         if (n > value.max_size()) [[unlikely]] {
   31|       |            ctx.error = error_code::exceeded_static_array_size;
   32|       |            return true;
   33|       |         }
   34|       |      }
   35|  1.96k|      return false;
   36|  1.96k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  131|  24.1k|   {
  132|       |      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  133|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  134|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  135|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  136|       |         // path; neither is an absent value.
  137|       |         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  138|       |            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|       |            const char* consumed = start;
  140|       |            skip_ws<Opts>(ws_ctx, consumed, it);
  141|       |            if (consumed == it) {
  142|       |               ctx.error = error_code::no_read_input;
  143|       |            }
  144|       |         }
  145|       |      }
  146|  24.1k|      finalize_read_context(ctx);
  147|  24.1k|   }
_ZN3glz21finalize_read_contextITkNS_10is_contextERNS_7contextEEEvOT_:
  109|  24.1k|   {
  110|  24.1k|      settle_partial_read_complete(ctx);
  111|  24.1k|      settle_end_reached(ctx);
  112|  24.1k|   }
_ZN3glz28settle_partial_read_completeITkNS_10is_contextERNS_7contextEEEvOT_:
  102|  24.1k|   {
  103|  24.1k|      if (ctx.error == error_code::partial_read_complete) {
  ------------------
  |  Branch (103:11): [True: 0, False: 24.1k]
  ------------------
  104|      0|         ctx.error = error_code::none;
  105|      0|      }
  106|  24.1k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   88|  24.1k|   {
   89|  24.1k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (89:11): [True: 0, False: 24.1k]
  ------------------
   90|      0|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (90:22): [True: 0, False: 0]
  ------------------
   91|      0|      }
   92|  24.1k|   }

_ZN3glz21decode_hash_with_sizeILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2805|  14.0k|      {
 2806|  14.0k|         if (n < HashInfo.min_length || n > HashInfo.max_length) [[unlikely]] {
  ------------------
  |  Branch (2806:14): [True: 521, False: 13.5k]
  |  Branch (2806:41): [True: 182, False: 13.3k]
  ------------------
 2807|    703|            return N;
 2808|    703|         }
 2809|  13.3k|         return decode_hash_with_size_impl<Format, T, HashInfo, Type>::op(it, end, n);
 2810|  14.0k|      }
_ZN3glz26decode_hash_with_size_implILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2858|  13.3k|      {
 2859|       |         // unique_index < min_length <= n, so it[unique_index] is within the key (the wrapper has
 2860|       |         // already rejected lengths outside [min_length, max_length]).
 2861|       |         if constexpr (HashInfo.sized_hash) {
 2862|       |            const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2863|       |            return HashInfo.table[h % bsize];
 2864|       |         }
 2865|  13.3k|         else {
 2866|       |            if constexpr (N == 2) {
 2867|       |               // Avoids using a hash table
 2868|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2869|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2870|       |            }
 2871|  13.3k|            else {
 2872|  13.3k|               return HashInfo.table[uint8_t(it[uindex])];
 2873|  13.3k|            }
 2874|  13.3k|         }
 2875|  13.3k|      }

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  3.31k|   {
  117|  3.31k|      using D = std::remove_cvref_t<Tup>;
  118|  3.31k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  3.31k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  3.31k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  3.31k|         else {
  128|  3.31k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  3.31k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  3.31k|   }
_ZN3glz3tieIJidNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_5arrayImLm3EEEEEENS_5tupleIJDpRT_EEESD_:
  325|  13.1k|   {
  326|  13.1k|      return {{{ts}...}};
  327|  13.1k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  3.11k|   {
  117|  3.11k|      using D = std::remove_cvref_t<Tup>;
  118|  3.11k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  3.11k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  3.11k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  3.11k|         else {
  128|  3.11k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  3.11k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  3.11k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.26k|   {
  117|  2.26k|      using D = std::remove_cvref_t<Tup>;
  118|  2.26k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.26k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.26k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  2.26k|         else {
  128|  2.26k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.26k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.26k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  4.41k|   {
  117|  4.41k|      using D = std::remove_cvref_t<Tup>;
  118|  4.41k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  4.41k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  4.41k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  4.41k|         else {
  128|  4.41k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  4.41k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  4.41k|   }

_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  2.02M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  2.02M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|  2.02M|         if constexpr (std::floating_point<V>) {
  223|  2.02M|            using opts_type = std::decay_t<decltype(Opts)>;
  224|  2.02M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|  2.02M|            else {
  292|  2.02M|               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|  2.02M|               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  ------------------
  |  Branch (293:41): [Folded, False: 2.02M]
  |  Branch (293:62): [True: 0, Folded]
  ------------------
  294|  2.02M|#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|  2.02M|               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  ------------------
  |  Branch (295:59): [True: 2.02M, Folded]
  |  Branch (295:90): [Folded, False: 0]
  ------------------
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|  2.02M|               else if constexpr (is_any_of<V, float, double>) {
  325|  2.02M|                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|  2.02M|                  const auto end = glz::to_chars(start, value);
  327|  2.02M|                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|  2.02M|            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  2.02M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  1.26M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  1.26M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|  1.26M|         if constexpr (std::floating_point<V>) {
  223|  1.26M|            using opts_type = std::decay_t<decltype(Opts)>;
  224|  1.26M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|  1.26M|            else {
  292|  1.26M|               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|  1.26M|               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  ------------------
  |  Branch (293:41): [Folded, False: 1.26M]
  |  Branch (293:62): [True: 0, Folded]
  ------------------
  294|  1.26M|#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|  1.26M|               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  ------------------
  |  Branch (295:59): [True: 1.26M, Folded]
  |  Branch (295:90): [Folded, False: 0]
  ------------------
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|  1.26M|               else if constexpr (is_any_of<V, float, double>) {
  325|  1.26M|                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|  1.26M|                  const auto end = glz::to_chars(start, value);
  327|  1.26M|                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|  1.26M|            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  1.26M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|   818k|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|   818k|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|   818k|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|   818k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|   818k|            const auto end = glz::to_chars(start, value);
  351|   818k|            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|   818k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  1.96M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  1.96M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|  1.96M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|  1.96M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|  1.96M|            const auto end = glz::to_chars(start, value);
  351|  1.96M|            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  1.96M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  1.07M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  1.07M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|  1.07M|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|  1.07M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|  1.07M|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|  1.07M|               const auto end = glz::to_chars_40kb(start, value);
  363|  1.07M|               ix += size_t(end - start);
  364|  1.07M|            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  1.07M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|   869k|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|   869k|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|   869k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|   869k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|   869k|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|   869k|               const auto end = glz::to_chars_40kb(start, value);
  363|   869k|               ix += size_t(end - start);
  364|   869k|            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|   869k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  2.19M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  2.19M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|  2.19M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|  2.19M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|  2.19M|            const auto end = glz::to_chars(start, value);
  351|  2.19M|            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  2.19M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  1.76M|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|  1.76M|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|  1.76M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|  1.76M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|  1.76M|            const auto end = glz::to_chars(start, value);
  351|  1.76M|            ix += size_t(end - start);
  352|       |         }
  353|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|       |            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|       |               const auto end = glz::to_chars_40kb(start, value);
  363|       |               ix += size_t(end - start);
  364|       |            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|  1.76M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|   950k|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|   950k|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|   950k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|   950k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|   950k|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|   950k|               const auto end = glz::to_chars_40kb(start, value);
  363|   950k|               ix += size_t(end - start);
  364|   950k|            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|   950k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|   457k|      {
  207|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  208|       |            // more efficient strings in C++23:
  209|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  210|       |          }*/
  211|       |
  212|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  213|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  214|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|       |            if (const auto k = ix + 64; k > b.size()) {
  216|       |               grow_buffer(b, k);
  217|       |            }
  218|       |         }
  219|       |
  220|   457k|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|       |         if constexpr (std::floating_point<V>) {
  223|       |            using opts_type = std::decay_t<decltype(Opts)>;
  224|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  225|       |
  226|       |            // User-specified float_format takes priority over all other options
  227|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  228|       |#if GLZ_USE_STD_FORMAT_FLOAT
  229|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  230|       |               // Format string is validated at compile-time via std::format_string
  231|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  232|       |
  233|       |               if constexpr (check_write_unchecked(Opts)) {
  234|       |                  // Caller guarantees buffer has enough space
  235|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  236|       |                  auto result = std::format_to(start, fmt, V(value));
  237|       |                  ix += size_t(result - start);
  238|       |               }
  239|       |               else {
  240|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  241|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  242|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  243|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  244|       |                  const auto available = b.size() - ix;
  245|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  246|       |
  247|       |                  if (static_cast<size_t>(size) > available) {
  248|       |                     // Output was truncated - size tells us exactly how much space we need
  249|       |                     if constexpr (resizable<B>) {
  250|       |                        grow_buffer(b, ix + size);
  251|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  252|       |                     }
  253|       |                     else {
  254|       |                        ctx.error = error_code::unexpected_end;
  255|       |                        return;
  256|       |                     }
  257|       |                  }
  258|       |                  ix += size;
  259|       |               }
  260|       |#else
  261|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  262|       |               // Convert std::format spec to printf format at compile time
  263|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  264|       |
  265|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  266|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  267|       |
  268|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  269|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  270|       |
  271|       |               if (len < 0) {
  272|       |                  ctx.error = error_code::unexpected_end;
  273|       |                  return;
  274|       |               }
  275|       |
  276|       |               if (static_cast<size_t>(len) >= available) {
  277|       |                  // Output was truncated, need to resize and retry
  278|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  279|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  280|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  281|       |                                   static_cast<double>(value));
  282|       |                  }
  283|       |                  else {
  284|       |                     ctx.error = error_code::unexpected_end;
  285|       |                     return;
  286|       |                  }
  287|       |               }
  288|       |               ix += static_cast<size_t>(len);
  289|       |#endif
  290|       |            }
  291|       |            else {
  292|       |               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|       |               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  294|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  296|       |#else
  297|       |               constexpr bool has_full_precision_writer = is_any_of<V, float, double>;
  298|       |#endif
  299|       |               if constexpr (narrows) {
  300|       |                  // we cast to a lower precision floating point value before writing out
  301|       |                  static_assert(max_precision == 4 || max_precision == 8, "invalid float_max_write_precision");
  302|       |                  using reduced_t = std::conditional_t<max_precision == 4, float, double>;
  303|       |                  const auto reduced = static_cast<reduced_t>(value);
  304|       |                  // A finite value beyond the reduced type's range rounds to infinity, which would be written as
  305|       |                  // null. Such a value is written at full precision below instead.
  306|       |                  const bool overflowed = std::isinf(reduced) && value != static_cast<V>(reduced);
  307|       |                  if (not has_full_precision_writer || not overflowed) {
  308|       |                     const auto start = reinterpret_cast<char*>(&b[ix]);
  309|       |                     const auto end = glz::to_chars(start, reduced);
  310|       |                     ix += size_t(end - start);
  311|       |                     return;
  312|       |                  }
  313|       |               }
  314|       |
  315|       |               // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  316|       |               // tables are dropped (recomputed on the fly). Much faster than the
  317|       |               // old simple_float::to_chars path at essentially the same footprint.
  318|       |               // See discussion #2519.
  319|       |               if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  320|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  321|       |                  const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  322|       |                  ix += size_t(end - start);
  323|       |               }
  324|       |               else if constexpr (is_any_of<V, float, double>) {
  325|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|       |                  const auto end = glz::to_chars(start, value);
  327|       |                  ix += size_t(end - start);
  328|       |               }
  329|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  330|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  331|       |               else if constexpr (is_float128<V>) {
  332|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  333|       |                  const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  334|       |                  if (ec != std::errc()) {
  335|       |                     ctx.error = error_code::unexpected_end;
  336|       |                     return;
  337|       |                  }
  338|       |                  ix += size_t(ptr - start);
  339|       |               }
  340|       |#endif
  341|       |               else if constexpr (not narrows) {
  342|       |                  static_assert(false_v<V>, "type is not supported");
  343|       |               }
  344|       |            }
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  347|       |            // Small integers: always use to_chars (400B tables)
  348|       |            // The 40KB digit_quads table doesn't help for these small ranges
  349|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  350|       |            const auto end = glz::to_chars(start, value);
  351|       |            ix += size_t(end - start);
  352|       |         }
  353|   457k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|   457k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|       |            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|       |               const auto end = glz::to_chars(start, value);
  358|       |               ix += size_t(end - start);
  359|       |            }
  360|   457k|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|   457k|               const auto end = glz::to_chars_40kb(start, value);
  363|   457k|               ix += size_t(end - start);
  364|   457k|            }
  365|       |         }
  366|       |         else if constexpr (std::integral<V>) {
  367|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  368|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  369|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  370|       |            if constexpr (is_size_optimized(Opts)) {
  371|       |               // Size mode: use glz::to_chars (400B lookup tables)
  372|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  373|       |               ix += size_t(end - start);
  374|       |            }
  375|       |            else {
  376|       |               // Normal mode: use to_chars_40kb
  377|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  378|       |               ix += size_t(end - start);
  379|       |            }
  380|       |         }
  381|       |         else {
  382|       |            static_assert(false_v<V>, "type is not supported");
  383|       |         }
  384|   457k|      }

_ZN3glz6detail9emit_charINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_cRT_Rm:
 1154|   523M|      {
 1155|   523M|         if (!ensure_space(ctx, out, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (1155:14): [True: 0, False: 523M]
  ------------------
 1156|      0|            return false;
 1157|      0|         }
 1158|   523M|         dump<false>(c, out, ix);
 1159|   523M|         return true;
 1160|   523M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc116ELc114ELc117ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  85.9M|      {
 1165|  85.9M|         static constexpr auto s = str.sv();
 1166|  85.9M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 85.9M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  85.9M|         dump<false>(s, out, ix);
 1170|  85.9M|         return true;
 1171|  85.9M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm6EEEtlA6_cLc102ELc97ELc108ELc115ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   387M|      {
 1165|   387M|         static constexpr auto s = str.sv();
 1166|   387M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 387M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   387M|         dump<false>(s, out, ix);
 1170|   387M|         return true;
 1171|   387M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  13.3M|      {
 1165|  13.3M|         static constexpr auto s = str.sv();
 1166|  13.3M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 13.3M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  13.3M|         dump<false>(s, out, ix);
 1170|  13.3M|         return true;
 1171|  13.3M|      }
_ZN3glz2toILj10EfE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.02M|      {
  815|  2.02M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.02M|            static_assert(required_padding<T>());
  817|  2.02M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.02M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.02M|         }
  821|       |
  822|  2.02M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.02M|         else {
  832|  2.02M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.02M|         }
  834|  2.02M|      }
_ZN3glz16required_paddingIfEEmv:
  538|  2.02M|   {
  539|  2.02M|      constexpr auto value = []() -> size_t {
  540|  2.02M|         if constexpr (boolean_like<T>) {
  541|  2.02M|            return 8;
  542|  2.02M|         }
  543|  2.02M|         else if constexpr (num_t<T>) {
  544|  2.02M|            if constexpr (std::floating_point<T>) {
  545|  2.02M|               if constexpr (sizeof(T) > 8) {
  546|  2.02M|                  return 64;
  547|  2.02M|               }
  548|  2.02M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.02M|                  return zmij::double_buffer_size + 4;
  551|  2.02M|               }
  552|  2.02M|               else {
  553|  2.02M|                  return zmij::float_buffer_size + 4;
  554|  2.02M|               }
  555|  2.02M|            }
  556|  2.02M|            else if constexpr (sizeof(T) > 4) {
  557|  2.02M|               return 24;
  558|  2.02M|            }
  559|  2.02M|            else if constexpr (sizeof(T) > 2) {
  560|  2.02M|               return 16;
  561|  2.02M|            }
  562|  2.02M|            else {
  563|  2.02M|               return 8;
  564|  2.02M|            }
  565|  2.02M|         }
  566|  2.02M|         else if constexpr (nullable_like<T>) {
  567|  2.02M|            if constexpr (has_value_type<T>) {
  568|  2.02M|               return required_padding<typename T::value_type>();
  569|  2.02M|            }
  570|  2.02M|            else if constexpr (has_element_type<T>) {
  571|  2.02M|               return required_padding<typename T::element_type>();
  572|  2.02M|            }
  573|  2.02M|            else {
  574|  2.02M|               return 0;
  575|  2.02M|            }
  576|  2.02M|         }
  577|  2.02M|         else if constexpr (always_null_t<T>) {
  578|  2.02M|            return 8;
  579|  2.02M|         }
  580|  2.02M|         else {
  581|  2.02M|            return 0;
  582|  2.02M|         }
  583|  2.02M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.02M|      return value;
  591|  2.02M|   }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.26M|      {
  815|  1.26M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.26M|            static_assert(required_padding<T>());
  817|  1.26M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.26M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.26M|         }
  821|       |
  822|  1.26M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.26M|         else {
  832|  1.26M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.26M|         }
  834|  1.26M|      }
_ZN3glz16required_paddingIdEEmv:
  538|  1.26M|   {
  539|  1.26M|      constexpr auto value = []() -> size_t {
  540|  1.26M|         if constexpr (boolean_like<T>) {
  541|  1.26M|            return 8;
  542|  1.26M|         }
  543|  1.26M|         else if constexpr (num_t<T>) {
  544|  1.26M|            if constexpr (std::floating_point<T>) {
  545|  1.26M|               if constexpr (sizeof(T) > 8) {
  546|  1.26M|                  return 64;
  547|  1.26M|               }
  548|  1.26M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.26M|                  return zmij::double_buffer_size + 4;
  551|  1.26M|               }
  552|  1.26M|               else {
  553|  1.26M|                  return zmij::float_buffer_size + 4;
  554|  1.26M|               }
  555|  1.26M|            }
  556|  1.26M|            else if constexpr (sizeof(T) > 4) {
  557|  1.26M|               return 24;
  558|  1.26M|            }
  559|  1.26M|            else if constexpr (sizeof(T) > 2) {
  560|  1.26M|               return 16;
  561|  1.26M|            }
  562|  1.26M|            else {
  563|  1.26M|               return 8;
  564|  1.26M|            }
  565|  1.26M|         }
  566|  1.26M|         else if constexpr (nullable_like<T>) {
  567|  1.26M|            if constexpr (has_value_type<T>) {
  568|  1.26M|               return required_padding<typename T::value_type>();
  569|  1.26M|            }
  570|  1.26M|            else if constexpr (has_element_type<T>) {
  571|  1.26M|               return required_padding<typename T::element_type>();
  572|  1.26M|            }
  573|  1.26M|            else {
  574|  1.26M|               return 0;
  575|  1.26M|            }
  576|  1.26M|         }
  577|  1.26M|         else if constexpr (always_null_t<T>) {
  578|  1.26M|            return 8;
  579|  1.26M|         }
  580|  1.26M|         else {
  581|  1.26M|            return 0;
  582|  1.26M|         }
  583|  1.26M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.26M|      return value;
  591|  1.26M|   }
_ZN3glz2toILj10EaE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   818k|      {
  815|   818k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   818k|            static_assert(required_padding<T>());
  817|   818k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 818k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   818k|         }
  821|       |
  822|   818k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   818k|         else {
  832|   818k|            write_chars::op<O>(value, ctx, b, ix);
  833|   818k|         }
  834|   818k|      }
_ZN3glz16required_paddingIaEEmv:
  538|   818k|   {
  539|   818k|      constexpr auto value = []() -> size_t {
  540|   818k|         if constexpr (boolean_like<T>) {
  541|   818k|            return 8;
  542|   818k|         }
  543|   818k|         else if constexpr (num_t<T>) {
  544|   818k|            if constexpr (std::floating_point<T>) {
  545|   818k|               if constexpr (sizeof(T) > 8) {
  546|   818k|                  return 64;
  547|   818k|               }
  548|   818k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   818k|                  return zmij::double_buffer_size + 4;
  551|   818k|               }
  552|   818k|               else {
  553|   818k|                  return zmij::float_buffer_size + 4;
  554|   818k|               }
  555|   818k|            }
  556|   818k|            else if constexpr (sizeof(T) > 4) {
  557|   818k|               return 24;
  558|   818k|            }
  559|   818k|            else if constexpr (sizeof(T) > 2) {
  560|   818k|               return 16;
  561|   818k|            }
  562|   818k|            else {
  563|   818k|               return 8;
  564|   818k|            }
  565|   818k|         }
  566|   818k|         else if constexpr (nullable_like<T>) {
  567|   818k|            if constexpr (has_value_type<T>) {
  568|   818k|               return required_padding<typename T::value_type>();
  569|   818k|            }
  570|   818k|            else if constexpr (has_element_type<T>) {
  571|   818k|               return required_padding<typename T::element_type>();
  572|   818k|            }
  573|   818k|            else {
  574|   818k|               return 0;
  575|   818k|            }
  576|   818k|         }
  577|   818k|         else if constexpr (always_null_t<T>) {
  578|   818k|            return 8;
  579|   818k|         }
  580|   818k|         else {
  581|   818k|            return 0;
  582|   818k|         }
  583|   818k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   818k|      return value;
  591|   818k|   }
_ZN3glz2toILj10EsE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.96M|      {
  815|  1.96M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.96M|            static_assert(required_padding<T>());
  817|  1.96M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.96M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.96M|         }
  821|       |
  822|  1.96M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.96M|         else {
  832|  1.96M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.96M|         }
  834|  1.96M|      }
_ZN3glz16required_paddingIsEEmv:
  538|  1.96M|   {
  539|  1.96M|      constexpr auto value = []() -> size_t {
  540|  1.96M|         if constexpr (boolean_like<T>) {
  541|  1.96M|            return 8;
  542|  1.96M|         }
  543|  1.96M|         else if constexpr (num_t<T>) {
  544|  1.96M|            if constexpr (std::floating_point<T>) {
  545|  1.96M|               if constexpr (sizeof(T) > 8) {
  546|  1.96M|                  return 64;
  547|  1.96M|               }
  548|  1.96M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.96M|                  return zmij::double_buffer_size + 4;
  551|  1.96M|               }
  552|  1.96M|               else {
  553|  1.96M|                  return zmij::float_buffer_size + 4;
  554|  1.96M|               }
  555|  1.96M|            }
  556|  1.96M|            else if constexpr (sizeof(T) > 4) {
  557|  1.96M|               return 24;
  558|  1.96M|            }
  559|  1.96M|            else if constexpr (sizeof(T) > 2) {
  560|  1.96M|               return 16;
  561|  1.96M|            }
  562|  1.96M|            else {
  563|  1.96M|               return 8;
  564|  1.96M|            }
  565|  1.96M|         }
  566|  1.96M|         else if constexpr (nullable_like<T>) {
  567|  1.96M|            if constexpr (has_value_type<T>) {
  568|  1.96M|               return required_padding<typename T::value_type>();
  569|  1.96M|            }
  570|  1.96M|            else if constexpr (has_element_type<T>) {
  571|  1.96M|               return required_padding<typename T::element_type>();
  572|  1.96M|            }
  573|  1.96M|            else {
  574|  1.96M|               return 0;
  575|  1.96M|            }
  576|  1.96M|         }
  577|  1.96M|         else if constexpr (always_null_t<T>) {
  578|  1.96M|            return 8;
  579|  1.96M|         }
  580|  1.96M|         else {
  581|  1.96M|            return 0;
  582|  1.96M|         }
  583|  1.96M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.96M|      return value;
  591|  1.96M|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.07M|      {
  815|  1.07M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.07M|            static_assert(required_padding<T>());
  817|  1.07M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.07M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.07M|         }
  821|       |
  822|  1.07M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.07M|         else {
  832|  1.07M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.07M|         }
  834|  1.07M|      }
_ZN3glz16required_paddingIiEEmv:
  538|  1.07M|   {
  539|  1.07M|      constexpr auto value = []() -> size_t {
  540|  1.07M|         if constexpr (boolean_like<T>) {
  541|  1.07M|            return 8;
  542|  1.07M|         }
  543|  1.07M|         else if constexpr (num_t<T>) {
  544|  1.07M|            if constexpr (std::floating_point<T>) {
  545|  1.07M|               if constexpr (sizeof(T) > 8) {
  546|  1.07M|                  return 64;
  547|  1.07M|               }
  548|  1.07M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.07M|                  return zmij::double_buffer_size + 4;
  551|  1.07M|               }
  552|  1.07M|               else {
  553|  1.07M|                  return zmij::float_buffer_size + 4;
  554|  1.07M|               }
  555|  1.07M|            }
  556|  1.07M|            else if constexpr (sizeof(T) > 4) {
  557|  1.07M|               return 24;
  558|  1.07M|            }
  559|  1.07M|            else if constexpr (sizeof(T) > 2) {
  560|  1.07M|               return 16;
  561|  1.07M|            }
  562|  1.07M|            else {
  563|  1.07M|               return 8;
  564|  1.07M|            }
  565|  1.07M|         }
  566|  1.07M|         else if constexpr (nullable_like<T>) {
  567|  1.07M|            if constexpr (has_value_type<T>) {
  568|  1.07M|               return required_padding<typename T::value_type>();
  569|  1.07M|            }
  570|  1.07M|            else if constexpr (has_element_type<T>) {
  571|  1.07M|               return required_padding<typename T::element_type>();
  572|  1.07M|            }
  573|  1.07M|            else {
  574|  1.07M|               return 0;
  575|  1.07M|            }
  576|  1.07M|         }
  577|  1.07M|         else if constexpr (always_null_t<T>) {
  578|  1.07M|            return 8;
  579|  1.07M|         }
  580|  1.07M|         else {
  581|  1.07M|            return 0;
  582|  1.07M|         }
  583|  1.07M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.07M|      return value;
  591|  1.07M|   }
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   869k|      {
  815|   869k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   869k|            static_assert(required_padding<T>());
  817|   869k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 869k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   869k|         }
  821|       |
  822|   869k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   869k|         else {
  832|   869k|            write_chars::op<O>(value, ctx, b, ix);
  833|   869k|         }
  834|   869k|      }
_ZN3glz16required_paddingIlEEmv:
  538|   869k|   {
  539|   869k|      constexpr auto value = []() -> size_t {
  540|   869k|         if constexpr (boolean_like<T>) {
  541|   869k|            return 8;
  542|   869k|         }
  543|   869k|         else if constexpr (num_t<T>) {
  544|   869k|            if constexpr (std::floating_point<T>) {
  545|   869k|               if constexpr (sizeof(T) > 8) {
  546|   869k|                  return 64;
  547|   869k|               }
  548|   869k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   869k|                  return zmij::double_buffer_size + 4;
  551|   869k|               }
  552|   869k|               else {
  553|   869k|                  return zmij::float_buffer_size + 4;
  554|   869k|               }
  555|   869k|            }
  556|   869k|            else if constexpr (sizeof(T) > 4) {
  557|   869k|               return 24;
  558|   869k|            }
  559|   869k|            else if constexpr (sizeof(T) > 2) {
  560|   869k|               return 16;
  561|   869k|            }
  562|   869k|            else {
  563|   869k|               return 8;
  564|   869k|            }
  565|   869k|         }
  566|   869k|         else if constexpr (nullable_like<T>) {
  567|   869k|            if constexpr (has_value_type<T>) {
  568|   869k|               return required_padding<typename T::value_type>();
  569|   869k|            }
  570|   869k|            else if constexpr (has_element_type<T>) {
  571|   869k|               return required_padding<typename T::element_type>();
  572|   869k|            }
  573|   869k|            else {
  574|   869k|               return 0;
  575|   869k|            }
  576|   869k|         }
  577|   869k|         else if constexpr (always_null_t<T>) {
  578|   869k|            return 8;
  579|   869k|         }
  580|   869k|         else {
  581|   869k|            return 0;
  582|   869k|         }
  583|   869k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   869k|      return value;
  591|   869k|   }
_ZN3glz2toILj10EhE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.19M|      {
  815|  2.19M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.19M|            static_assert(required_padding<T>());
  817|  2.19M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.19M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.19M|         }
  821|       |
  822|  2.19M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.19M|         else {
  832|  2.19M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.19M|         }
  834|  2.19M|      }
_ZN3glz16required_paddingIhEEmv:
  538|  2.19M|   {
  539|  2.19M|      constexpr auto value = []() -> size_t {
  540|  2.19M|         if constexpr (boolean_like<T>) {
  541|  2.19M|            return 8;
  542|  2.19M|         }
  543|  2.19M|         else if constexpr (num_t<T>) {
  544|  2.19M|            if constexpr (std::floating_point<T>) {
  545|  2.19M|               if constexpr (sizeof(T) > 8) {
  546|  2.19M|                  return 64;
  547|  2.19M|               }
  548|  2.19M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.19M|                  return zmij::double_buffer_size + 4;
  551|  2.19M|               }
  552|  2.19M|               else {
  553|  2.19M|                  return zmij::float_buffer_size + 4;
  554|  2.19M|               }
  555|  2.19M|            }
  556|  2.19M|            else if constexpr (sizeof(T) > 4) {
  557|  2.19M|               return 24;
  558|  2.19M|            }
  559|  2.19M|            else if constexpr (sizeof(T) > 2) {
  560|  2.19M|               return 16;
  561|  2.19M|            }
  562|  2.19M|            else {
  563|  2.19M|               return 8;
  564|  2.19M|            }
  565|  2.19M|         }
  566|  2.19M|         else if constexpr (nullable_like<T>) {
  567|  2.19M|            if constexpr (has_value_type<T>) {
  568|  2.19M|               return required_padding<typename T::value_type>();
  569|  2.19M|            }
  570|  2.19M|            else if constexpr (has_element_type<T>) {
  571|  2.19M|               return required_padding<typename T::element_type>();
  572|  2.19M|            }
  573|  2.19M|            else {
  574|  2.19M|               return 0;
  575|  2.19M|            }
  576|  2.19M|         }
  577|  2.19M|         else if constexpr (always_null_t<T>) {
  578|  2.19M|            return 8;
  579|  2.19M|         }
  580|  2.19M|         else {
  581|  2.19M|            return 0;
  582|  2.19M|         }
  583|  2.19M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.19M|      return value;
  591|  2.19M|   }
_ZN3glz2toILj10EtE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.76M|      {
  815|  1.76M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.76M|            static_assert(required_padding<T>());
  817|  1.76M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.76M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.76M|         }
  821|       |
  822|  1.76M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.76M|         else {
  832|  1.76M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.76M|         }
  834|  1.76M|      }
_ZN3glz16required_paddingItEEmv:
  538|  1.76M|   {
  539|  1.76M|      constexpr auto value = []() -> size_t {
  540|  1.76M|         if constexpr (boolean_like<T>) {
  541|  1.76M|            return 8;
  542|  1.76M|         }
  543|  1.76M|         else if constexpr (num_t<T>) {
  544|  1.76M|            if constexpr (std::floating_point<T>) {
  545|  1.76M|               if constexpr (sizeof(T) > 8) {
  546|  1.76M|                  return 64;
  547|  1.76M|               }
  548|  1.76M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.76M|                  return zmij::double_buffer_size + 4;
  551|  1.76M|               }
  552|  1.76M|               else {
  553|  1.76M|                  return zmij::float_buffer_size + 4;
  554|  1.76M|               }
  555|  1.76M|            }
  556|  1.76M|            else if constexpr (sizeof(T) > 4) {
  557|  1.76M|               return 24;
  558|  1.76M|            }
  559|  1.76M|            else if constexpr (sizeof(T) > 2) {
  560|  1.76M|               return 16;
  561|  1.76M|            }
  562|  1.76M|            else {
  563|  1.76M|               return 8;
  564|  1.76M|            }
  565|  1.76M|         }
  566|  1.76M|         else if constexpr (nullable_like<T>) {
  567|  1.76M|            if constexpr (has_value_type<T>) {
  568|  1.76M|               return required_padding<typename T::value_type>();
  569|  1.76M|            }
  570|  1.76M|            else if constexpr (has_element_type<T>) {
  571|  1.76M|               return required_padding<typename T::element_type>();
  572|  1.76M|            }
  573|  1.76M|            else {
  574|  1.76M|               return 0;
  575|  1.76M|            }
  576|  1.76M|         }
  577|  1.76M|         else if constexpr (always_null_t<T>) {
  578|  1.76M|            return 8;
  579|  1.76M|         }
  580|  1.76M|         else {
  581|  1.76M|            return 0;
  582|  1.76M|         }
  583|  1.76M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.76M|      return value;
  591|  1.76M|   }
_ZN3glz2toILj10EjE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   950k|      {
  815|   950k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   950k|            static_assert(required_padding<T>());
  817|   950k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 950k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   950k|         }
  821|       |
  822|   950k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   950k|         else {
  832|   950k|            write_chars::op<O>(value, ctx, b, ix);
  833|   950k|         }
  834|   950k|      }
_ZN3glz16required_paddingIjEEmv:
  538|   950k|   {
  539|   950k|      constexpr auto value = []() -> size_t {
  540|   950k|         if constexpr (boolean_like<T>) {
  541|   950k|            return 8;
  542|   950k|         }
  543|   950k|         else if constexpr (num_t<T>) {
  544|   950k|            if constexpr (std::floating_point<T>) {
  545|   950k|               if constexpr (sizeof(T) > 8) {
  546|   950k|                  return 64;
  547|   950k|               }
  548|   950k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   950k|                  return zmij::double_buffer_size + 4;
  551|   950k|               }
  552|   950k|               else {
  553|   950k|                  return zmij::float_buffer_size + 4;
  554|   950k|               }
  555|   950k|            }
  556|   950k|            else if constexpr (sizeof(T) > 4) {
  557|   950k|               return 24;
  558|   950k|            }
  559|   950k|            else if constexpr (sizeof(T) > 2) {
  560|   950k|               return 16;
  561|   950k|            }
  562|   950k|            else {
  563|   950k|               return 8;
  564|   950k|            }
  565|   950k|         }
  566|   950k|         else if constexpr (nullable_like<T>) {
  567|   950k|            if constexpr (has_value_type<T>) {
  568|   950k|               return required_padding<typename T::value_type>();
  569|   950k|            }
  570|   950k|            else if constexpr (has_element_type<T>) {
  571|   950k|               return required_padding<typename T::element_type>();
  572|   950k|            }
  573|   950k|            else {
  574|   950k|               return 0;
  575|   950k|            }
  576|   950k|         }
  577|   950k|         else if constexpr (always_null_t<T>) {
  578|   950k|            return 8;
  579|   950k|         }
  580|   950k|         else {
  581|   950k|            return 0;
  582|   950k|         }
  583|   950k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   950k|      return value;
  591|   950k|   }
_ZN3glz2toILj10EmE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   457k|      {
  815|   457k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   457k|            static_assert(required_padding<T>());
  817|   457k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 457k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   457k|         }
  821|       |
  822|   457k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   457k|         else {
  832|   457k|            write_chars::op<O>(value, ctx, b, ix);
  833|   457k|         }
  834|   457k|      }
_ZN3glz16required_paddingImEEmv:
  538|   457k|   {
  539|   457k|      constexpr auto value = []() -> size_t {
  540|   457k|         if constexpr (boolean_like<T>) {
  541|   457k|            return 8;
  542|   457k|         }
  543|   457k|         else if constexpr (num_t<T>) {
  544|   457k|            if constexpr (std::floating_point<T>) {
  545|   457k|               if constexpr (sizeof(T) > 8) {
  546|   457k|                  return 64;
  547|   457k|               }
  548|   457k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   457k|                  return zmij::double_buffer_size + 4;
  551|   457k|               }
  552|   457k|               else {
  553|   457k|                  return zmij::float_buffer_size + 4;
  554|   457k|               }
  555|   457k|            }
  556|   457k|            else if constexpr (sizeof(T) > 4) {
  557|   457k|               return 24;
  558|   457k|            }
  559|   457k|            else if constexpr (sizeof(T) > 2) {
  560|   457k|               return 16;
  561|   457k|            }
  562|   457k|            else {
  563|   457k|               return 8;
  564|   457k|            }
  565|   457k|         }
  566|   457k|         else if constexpr (nullable_like<T>) {
  567|   457k|            if constexpr (has_value_type<T>) {
  568|   457k|               return required_padding<typename T::value_type>();
  569|   457k|            }
  570|   457k|            else if constexpr (has_element_type<T>) {
  571|   457k|               return required_padding<typename T::element_type>();
  572|   457k|            }
  573|   457k|            else {
  574|   457k|               return 0;
  575|   457k|            }
  576|   457k|         }
  577|   457k|         else if constexpr (always_null_t<T>) {
  578|   457k|            return 8;
  579|   457k|         }
  580|   457k|         else {
  581|   457k|            return 0;
  582|   457k|         }
  583|   457k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   457k|      return value;
  591|   457k|   }
_ZN3glz6detail21emit_untrusted_stringITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEvRT1_NS3_17basic_string_viewIcS6_EERT0_Rm:
 1140|  1.82M|      {
 1141|  1.82M|         to<JSON, std::string_view>::template op<untrusted_string_emit_opts<Opts>>(s, ctx, out, ix);
 1142|  1.82M|      }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  1.82M|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  1.82M|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  1.82M|            else {
  945|  1.82M|               const sv str = [&]() -> const sv {
  946|  1.82M|                  if constexpr (array_char_t<T>) {
  947|  1.82M|                     return sv{value.data(), value.size()};
  948|  1.82M|                  }
  949|  1.82M|                  else if constexpr (u8str_t<T>) {
  950|  1.82M|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  1.82M|                  }
  952|  1.82M|                  else {
  953|  1.82M|                     return str_view<T>(value);
  954|  1.82M|                  }
  955|  1.82M|               }();
  956|  1.82M|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  1.82M|               else {
  988|       |                  // Using the original sizing
  989|  1.82M|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 1.82M]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  1.82M|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  1.82M|               else {
 1002|  1.82M|                  std::memcpy(&b[ix], "\"", 1);
 1003|  1.82M|                  ++ix;
 1004|       |
 1005|  1.82M|                  const auto* c = str.data();
 1006|  1.82M|                  const auto* const e = c + n;
 1007|  1.82M|                  const auto start = &b[ix];
 1008|  1.82M|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  1.82M|                  auto write_escape = [&]() {
 1017|  1.82M|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  1.82M|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  1.82M|                           std::memcpy(data, &escaped, 2);
 1020|  1.82M|                           data += 2;
 1021|  1.82M|                        }
 1022|  1.82M|                        else {
 1023|  1.82M|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  1.82M|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  1.82M|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  1.82M|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  1.82M|                           std::memcpy(data, unicode_escape, 6);
 1028|  1.82M|                           data += 6;
 1029|  1.82M|                        }
 1030|  1.82M|                     }
 1031|  1.82M|                     else {
 1032|  1.82M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  1.82M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  1.82M|                              ctx.error = error_code::invalid_control_character;
 1040|  1.82M|                           }
 1041|  1.82M|                        }
 1042|  1.82M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.82M|                        data += 2;
 1044|  1.82M|                     }
 1045|  1.82M|                     ++c;
 1046|  1.82M|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  1.82M|#if defined(GLZ_USE_SSE2)
 1055|  1.82M|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  1.82M|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 1.08k, False: 1.82M]
  ------------------
 1062|  3.34k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 2.26k, False: 1.08k]
  ------------------
 1063|  2.26k|                        std::memcpy(data, c, 8);
 1064|  2.26k|                        uint64_t swar;
 1065|  2.26k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  2.26k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  2.26k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  2.26k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  2.26k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  2.26k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  2.26k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  2.26k|                        next &= repeat_byte8(0b10000000);
 1078|  2.26k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 387, False: 1.87k]
  ------------------
 1079|    387|                           data += 8;
 1080|    387|                           c += 8;
 1081|    387|                           continue;
 1082|    387|                        }
 1083|       |
 1084|  1.87k|                        const auto length = (countr_zero(next) >> 3);
 1085|  1.87k|                        c += length;
 1086|  1.87k|                        data += length;
 1087|  1.87k|                        write_escape();
 1088|  1.87k|                     }
 1089|  1.08k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  1.84M|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 17.7k, False: 1.82M]
  ------------------
 1093|  17.7k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 1.31k, False: 16.4k]
  ------------------
 1094|  1.31k|                        std::memcpy(data, &escaped, 2);
 1095|  1.31k|                        data += 2;
 1096|  1.31k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  16.4k|                     else {
 1112|  16.4k|                        if constexpr (check_reject_control_characters(Opts)) {
 1113|  16.4k|                           if (uint8_t(*c) < 0x20) [[unlikely]] {
  ------------------
  |  Branch (1113:32): [True: 1.33k, False: 15.0k]
  ------------------
 1114|  1.33k|                              ctx.error = error_code::invalid_control_character;
 1115|  1.33k|                           }
 1116|  16.4k|                        }
 1117|  16.4k|                        std::memcpy(data, c, 1);
 1118|  16.4k|                        ++data;
 1119|  16.4k|                     }
 1120|  17.7k|                  }
 1121|       |
 1122|  1.82M|                  ix += size_t(data - start);
 1123|       |
 1124|  1.82M|                  std::memcpy(&b[ix], "\"", 1);
 1125|  1.82M|                  ++ix;
 1126|  1.82M|               }
 1127|  1.82M|            }
 1128|  1.82M|         }
 1129|  1.82M|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  1.82M|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  1.82M|                  else {
  953|  1.82M|                     return str_view<T>(value);
  954|  1.82M|                  }
  955|  1.82M|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  3.28M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  3.28M|                     else {
 1032|  3.28M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  3.28M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
  ------------------
  |  Branch (1038:32): [True: 3.17M, False: 104k]
  ------------------
 1039|  3.17M|                              ctx.error = error_code::invalid_control_character;
 1040|  3.17M|                           }
 1041|  3.28M|                        }
 1042|  3.28M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  3.28M|                        data += 2;
 1044|  3.28M|                     }
 1045|  3.28M|                     ++c;
 1046|  3.28M|                  };
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm10EEEtlA10_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  5.68M|      {
 1165|  5.68M|         static constexpr auto s = str.sv();
 1166|  5.68M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 5.68M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  5.68M|         dump<false>(s, out, ix);
 1170|  5.68M|         return true;
 1171|  5.68M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm15EEEtlA15_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc114ELc105ELc103ELc104ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   129k|      {
 1165|   129k|         static constexpr auto s = str.sv();
 1166|   129k|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 129k]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   129k|         dump<false>(s, out, ix);
 1170|   129k|         return true;
 1171|   129k|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm14EEEtlA14_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc108ELc101ELc102ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  5.55M|      {
 1165|  5.55M|         static constexpr auto s = str.sv();
 1166|  5.55M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 5.55M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  5.55M|         dump<false>(s, out, ix);
 1170|  5.55M|         return true;
 1171|  5.55M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm11EEEtlA11_cLc34ELc101ELc120ELc116ELc101ELc110ELc116ELc115ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  5.68M|      {
 1165|  5.68M|         static constexpr auto s = str.sv();
 1166|  5.68M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 5.68M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  5.68M|         dump<false>(s, out, ix);
 1170|  5.68M|         return true;
 1171|  5.68M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm9EEEtlA9_cLc34ELc118ELc97ELc108ELc117ELc101ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  5.65M|      {
 1165|  5.65M|         static constexpr auto s = str.sv();
 1166|  5.65M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 5.65M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  5.65M|         dump<false>(s, out, ix);
 1170|  5.65M|         return true;
 1171|  5.65M|      }

_ZN3glz6to_tieIR9my_structLm4EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  146|  13.1k|   {
  147|       |      if constexpr (N == 0) {
  148|       |         return tuple{};
  149|       |      }
  150|       |      else if constexpr (N == 1) {
  151|       |         auto& [p] = t;
  152|       |         return glz::tie(p);
  153|       |      }
  154|       |      else if constexpr (N == 2) {
  155|       |         auto& [p0, p1] = t;
  156|       |         return glz::tie(p0, p1);
  157|       |      }
  158|       |      else if constexpr (N == 3) {
  159|       |         auto& [p0, p1, p2] = t;
  160|       |         return glz::tie(p0, p1, p2);
  161|       |      }
  162|  13.1k|      else if constexpr (N == 4) {
  163|  13.1k|         auto& [p0, p1, p2, p3] = t;
  164|  13.1k|         return glz::tie(p0, p1, p2, p3);
  165|       |      }
  166|       |      else if constexpr (N == 5) {
  167|       |         auto& [p0, p1, p2, p3, p4] = t;
  168|       |         return glz::tie(p0, p1, p2, p3, p4);
  169|       |      }
  170|       |      else if constexpr (N == 6) {
  171|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  172|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  173|       |      }
  174|       |      else if constexpr (N == 7) {
  175|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  177|       |      }
  178|       |      else if constexpr (N == 8) {
  179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  180|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  181|       |      }
  182|       |      else if constexpr (N == 9) {
  183|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  184|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  185|       |      }
  186|       |      else if constexpr (N == 10) {
  187|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  188|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  189|       |      }
  190|       |      else if constexpr (N == 11) {
  191|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  192|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  193|       |      }
  194|       |      else if constexpr (N == 12) {
  195|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  196|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  197|       |      }
  198|       |      else if constexpr (N == 13) {
  199|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  201|       |      }
  202|       |      else if constexpr (N == 14) {
  203|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  204|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  205|       |      }
  206|       |      else if constexpr (N == 15) {
  207|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  208|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  209|       |      }
  210|       |      else if constexpr (N == 16) {
  211|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  212|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  213|       |      }
  214|       |      else if constexpr (N == 17) {
  215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  216|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  217|       |      }
  218|       |      else if constexpr (N == 18) {
  219|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  220|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  221|       |      }
  222|       |      else if constexpr (N == 19) {
  223|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  224|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  225|       |      }
  226|       |      else if constexpr (N == 20) {
  227|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  228|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  229|       |      }
  230|       |      else if constexpr (N == 21) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  232|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  233|       |      }
  234|       |      else if constexpr (N == 22) {
  235|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  236|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  237|       |                         p21);
  238|       |      }
  239|       |      else if constexpr (N == 23) {
  240|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  241|       |                p22] = t;
  242|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  243|       |                         p21, p22);
  244|       |      }
  245|       |      else if constexpr (N == 24) {
  246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  247|       |                p23] = t;
  248|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  249|       |                         p21, p22, p23);
  250|       |      }
  251|       |      else if constexpr (N == 25) {
  252|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  253|       |                p23, p24] = t;
  254|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  255|       |                         p21, p22, p23, p24);
  256|       |      }
  257|       |      else if constexpr (N == 26) {
  258|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  259|       |                p23, p24, p25] = t;
  260|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  261|       |                         p21, p22, p23, p24, p25);
  262|       |      }
  263|       |      else if constexpr (N == 27) {
  264|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  265|       |                p23, p24, p25, p26] = t;
  266|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  267|       |                         p21, p22, p23, p24, p25, p26);
  268|       |      }
  269|       |      else if constexpr (N == 28) {
  270|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  271|       |                p23, p24, p25, p26, p27] = t;
  272|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  273|       |                         p21, p22, p23, p24, p25, p26, p27);
  274|       |      }
  275|       |      else if constexpr (N == 29) {
  276|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  277|       |                p23, p24, p25, p26, p27, p28] = t;
  278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  279|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  280|       |      }
  281|       |      else if constexpr (N == 30) {
  282|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  283|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  284|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  285|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  286|       |      }
  287|       |      else if constexpr (N == 31) {
  288|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  289|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  290|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  291|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  292|       |      }
  293|       |      else if constexpr (N == 32) {
  294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  296|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  297|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  298|       |      }
  299|       |      else if constexpr (N == 33) {
  300|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  301|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  302|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  303|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  304|       |      }
  305|       |      else if constexpr (N == 34) {
  306|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  307|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  308|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  309|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  310|       |      }
  311|       |      else if constexpr (N == 35) {
  312|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  313|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  314|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  315|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  316|       |      }
  317|       |      else if constexpr (N == 36) {
  318|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  319|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  320|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  321|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  322|       |      }
  323|       |      else if constexpr (N == 37) {
  324|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  325|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  328|       |      }
  329|       |      else if constexpr (N == 38) {
  330|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  331|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  332|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  333|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  334|       |      }
  335|       |      else if constexpr (N == 39) {
  336|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  337|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  338|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  339|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  340|       |      }
  341|       |      else if constexpr (N == 40) {
  342|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  343|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  344|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  345|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  346|       |      }
  347|       |      else if constexpr (N == 41) {
  348|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  349|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  350|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  351|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  352|       |                         p40);
  353|       |      }
  354|       |      else if constexpr (N == 42) {
  355|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  356|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  357|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  358|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  359|       |                         p40, p41);
  360|       |      }
  361|       |      else if constexpr (N == 43) {
  362|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  363|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  364|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  365|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  366|       |                         p40, p41, p42);
  367|       |      }
  368|       |      else if constexpr (N == 44) {
  369|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  370|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  371|       |                p43] = t;
  372|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  373|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  374|       |                         p40, p41, p42, p43);
  375|       |      }
  376|       |      else if constexpr (N == 45) {
  377|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  378|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  379|       |                p44] = t;
  380|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  381|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  382|       |                         p40, p41, p42, p43, p44);
  383|       |      }
  384|       |      else if constexpr (N == 46) {
  385|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  386|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  387|       |                p44, p45] = t;
  388|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  389|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  390|       |                         p40, p41, p42, p43, p44, p45);
  391|       |      }
  392|       |      else if constexpr (N == 47) {
  393|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  394|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  395|       |                p44, p45, p46] = t;
  396|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  397|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  398|       |                         p40, p41, p42, p43, p44, p45, p46);
  399|       |      }
  400|       |      else if constexpr (N == 48) {
  401|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  402|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  403|       |                p44, p45, p46, p47] = t;
  404|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  405|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  406|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  407|       |      }
  408|       |      else if constexpr (N == 49) {
  409|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  410|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  411|       |                p44, p45, p46, p47, p48] = t;
  412|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  413|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  414|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  415|       |      }
  416|       |      else if constexpr (N == 50) {
  417|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  418|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  419|       |                p44, p45, p46, p47, p48, p49] = t;
  420|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  421|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  422|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  423|       |      }
  424|       |      else if constexpr (N == 51) {
  425|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  426|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  427|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  428|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  429|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  430|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  431|       |      }
  432|       |      else if constexpr (N == 52) {
  433|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  434|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  435|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  436|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  437|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  438|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  439|       |      }
  440|       |      else if constexpr (N == 53) {
  441|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  442|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  443|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  444|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  445|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  446|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  447|       |      }
  448|       |      else if constexpr (N == 54) {
  449|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  450|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  451|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  452|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  453|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  454|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  455|       |      }
  456|       |      else if constexpr (N == 55) {
  457|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  458|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  459|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  460|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  461|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  462|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  463|       |      }
  464|       |      else if constexpr (N == 56) {
  465|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  466|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  467|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  468|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  469|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  470|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  471|       |      }
  472|       |      else if constexpr (N == 57) {
  473|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  474|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  475|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  476|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  477|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  478|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  479|       |      }
  480|       |      else if constexpr (N == 58) {
  481|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  482|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  483|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  484|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  485|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  486|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  487|       |      }
  488|       |      else if constexpr (N == 59) {
  489|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  490|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  491|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  492|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  493|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  494|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  495|       |      }
  496|       |      else if constexpr (N == 60) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59);
  504|       |      }
  505|       |      else if constexpr (N == 61) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60);
  513|       |      }
  514|       |      else if constexpr (N == 62) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61);
  522|       |      }
  523|       |      else if constexpr (N == 63) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62);
  531|       |      }
  532|       |      else if constexpr (N == 64) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  536|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  537|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  538|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  539|       |                         p59, p60, p61, p62, p63);
  540|       |      }
  541|       |      else if constexpr (N == 65) {
  542|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  543|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  544|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  545|       |                p64] = t;
  546|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  547|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  548|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  549|       |                         p59, p60, p61, p62, p63, p64);
  550|       |      }
  551|       |      else if constexpr (N == 66) {
  552|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  553|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  554|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  555|       |                p65] = t;
  556|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  557|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  558|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  559|       |                         p59, p60, p61, p62, p63, p64, p65);
  560|       |      }
  561|       |      else if constexpr (N == 67) {
  562|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  563|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  564|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  565|       |                p65, p66] = t;
  566|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  567|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  568|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  569|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  570|       |      }
  571|       |      else if constexpr (N == 68) {
  572|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  573|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  574|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  575|       |                p65, p66, p67] = t;
  576|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  577|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  578|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  579|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  580|       |      }
  581|       |      else if constexpr (N == 69) {
  582|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  583|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  584|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  585|       |                p65, p66, p67, p68] = t;
  586|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  587|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  588|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  589|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  590|       |      }
  591|       |      else if constexpr (N == 70) {
  592|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  593|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  594|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  595|       |                p65, p66, p67, p68, p69] = t;
  596|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  597|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  598|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  599|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  600|       |      }
  601|       |      else if constexpr (N == 71) {
  602|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  603|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  604|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  605|       |                p65, p66, p67, p68, p69, p70] = t;
  606|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  607|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  608|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  609|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  610|       |      }
  611|       |      else if constexpr (N == 72) {
  612|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  613|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  614|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  615|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  616|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  617|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  618|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  619|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  620|       |      }
  621|       |      else if constexpr (N == 73) {
  622|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  623|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  624|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  625|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  626|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  627|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  628|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  629|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  630|       |      }
  631|       |      else if constexpr (N == 74) {
  632|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  633|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  634|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  635|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  636|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  637|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  638|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  639|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  640|       |      }
  641|       |      else if constexpr (N == 75) {
  642|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  643|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  644|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  645|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  646|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  647|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  648|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  649|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  650|       |      }
  651|       |      else if constexpr (N == 76) {
  652|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  653|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  654|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  655|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  656|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  657|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  658|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  659|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  660|       |      }
  661|       |      else if constexpr (N == 77) {
  662|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  663|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  664|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  665|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  666|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  667|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  668|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  669|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  670|       |      }
  671|       |      else if constexpr (N == 78) {
  672|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  673|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  674|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  675|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  676|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  677|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  678|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  679|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  680|       |      }
  681|       |      else if constexpr (N == 79) {
  682|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  683|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  684|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  685|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  686|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  687|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  688|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  689|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  690|       |                         p78);
  691|       |      }
  692|       |      else if constexpr (N == 80) {
  693|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  694|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  695|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  696|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  697|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  698|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  699|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  700|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  701|       |                         p78, p79);
  702|       |      }
  703|       |      else if constexpr (N == 81) {
  704|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  705|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  706|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  707|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  708|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  709|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  710|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  711|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  712|       |                         p78, p79, p80);
  713|       |      }
  714|       |      else if constexpr (N == 82) {
  715|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  716|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  717|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  718|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  719|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  720|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  721|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  722|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  723|       |                         p78, p79, p80, p81);
  724|       |      }
  725|       |      else if constexpr (N == 83) {
  726|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  727|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  728|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  729|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  730|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  731|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  732|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  733|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  734|       |                         p78, p79, p80, p81, p82);
  735|       |      }
  736|       |      else if constexpr (N == 84) {
  737|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  738|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  739|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  740|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  741|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  742|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  743|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  744|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  745|       |                         p78, p79, p80, p81, p82, p83);
  746|       |      }
  747|       |      else if constexpr (N == 85) {
  748|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  749|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  750|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  751|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  752|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  753|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  754|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  755|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  756|       |                         p78, p79, p80, p81, p82, p83, p84);
  757|       |      }
  758|       |      else if constexpr (N == 86) {
  759|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  760|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  761|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  762|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  763|       |                p85] = t;
  764|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  765|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  766|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  767|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  768|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  769|       |      }
  770|       |      else if constexpr (N == 87) {
  771|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  772|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  773|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  774|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  775|       |                p86] = t;
  776|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  777|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  778|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  779|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  780|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  781|       |      }
  782|       |      else if constexpr (N == 88) {
  783|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  784|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  785|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  786|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  787|       |                p86, p87] = t;
  788|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  789|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  790|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  791|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  792|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  793|       |      }
  794|       |      else if constexpr (N == 89) {
  795|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  796|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  797|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  798|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  799|       |                p86, p87, p88] = t;
  800|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  801|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  802|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  803|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  804|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  805|       |      }
  806|       |      else if constexpr (N == 90) {
  807|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  808|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  809|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  810|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  811|       |                p86, p87, p88, p89] = t;
  812|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  813|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  814|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  815|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  816|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  817|       |      }
  818|       |      else if constexpr (N == 91) {
  819|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  820|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  821|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  822|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  823|       |                p86, p87, p88, p89, p90] = t;
  824|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  825|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  826|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  827|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  828|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  829|       |      }
  830|       |      else if constexpr (N == 92) {
  831|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  832|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  833|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  834|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  835|       |                p86, p87, p88, p89, p90, p91] = t;
  836|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  837|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  838|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  839|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  840|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  841|       |      }
  842|       |      else if constexpr (N == 93) {
  843|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  844|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  845|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  846|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  847|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  848|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  849|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  850|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  851|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  852|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  853|       |      }
  854|       |      else if constexpr (N == 94) {
  855|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  856|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  857|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  858|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  859|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  860|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  861|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  862|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  863|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  864|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  865|       |      }
  866|       |      else if constexpr (N == 95) {
  867|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  868|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  869|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  870|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  871|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  872|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  873|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  874|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  875|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  876|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  877|       |      }
  878|       |      else if constexpr (N == 96) {
  879|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  880|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  881|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  882|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  883|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  884|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  885|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  886|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  887|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  888|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  889|       |      }
  890|       |      else if constexpr (N == 97) {
  891|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  892|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  893|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  894|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  895|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  896|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  897|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  898|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  899|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  900|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  901|       |      }
  902|       |      else if constexpr (N == 98) {
  903|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  904|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  905|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  906|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  907|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  908|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  909|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  910|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  911|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  912|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  913|       |                         p97);
  914|       |      }
  915|       |      else if constexpr (N == 99) {
  916|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  917|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  918|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  919|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  920|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  921|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  922|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  923|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  924|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  925|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  926|       |                         p97, p98);
  927|       |      }
  928|       |      else if constexpr (N == 100) {
  929|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  930|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  931|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  932|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  933|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  934|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  935|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  936|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  937|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  938|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  939|       |                         p97, p98, p99);
  940|       |      }
  941|       |      else if constexpr (N == 101) {
  942|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  943|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  944|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  945|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  946|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  947|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  948|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  949|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  950|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  951|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  952|       |                         p97, p98, p99, p100);
  953|       |      }
  954|       |      else if constexpr (N == 102) {
  955|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  956|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  957|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  958|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  959|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  960|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  961|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  962|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  963|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  964|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  965|       |                         p97, p98, p99, p100, p101);
  966|       |      }
  967|       |      else if constexpr (N == 103) {
  968|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  969|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  970|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  971|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  972|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  973|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  974|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  975|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  976|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  977|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  978|       |                         p97, p98, p99, p100, p101, p102);
  979|       |      }
  980|       |      else if constexpr (N == 104) {
  981|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  982|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  983|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  984|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  985|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  986|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  987|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  988|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  989|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  990|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  991|       |                         p97, p98, p99, p100, p101, p102, p103);
  992|       |      }
  993|       |      else if constexpr (N == 105) {
  994|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  995|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  996|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  997|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  998|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  999|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1000|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1001|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1002|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1003|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1004|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
 1005|       |      }
 1006|       |      else if constexpr (N == 106) {
 1007|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1008|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1009|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1010|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1011|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1012|       |                p105] = t;
 1013|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1014|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1015|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1016|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1017|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1018|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1019|       |      }
 1020|       |      else if constexpr (N == 107) {
 1021|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1022|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1023|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1024|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1025|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1026|       |                p105, p106] = t;
 1027|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1028|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1029|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1030|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1031|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1032|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1033|       |      }
 1034|       |      else if constexpr (N == 108) {
 1035|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1036|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1037|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1038|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1039|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1040|       |                p105, p106, p107] = t;
 1041|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1042|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1043|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1044|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1045|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1046|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1047|       |      }
 1048|       |      else if constexpr (N == 109) {
 1049|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1050|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1051|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1052|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1053|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1054|       |                p105, p106, p107, p108] = t;
 1055|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1056|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1057|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1058|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1059|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1060|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1061|       |      }
 1062|       |      else if constexpr (N == 110) {
 1063|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1064|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1065|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1066|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1067|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1068|       |                p105, p106, p107, p108, p109] = t;
 1069|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1070|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1071|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1072|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1073|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1074|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1075|       |      }
 1076|       |      else if constexpr (N == 111) {
 1077|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1078|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1079|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1080|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1081|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1082|       |                p105, p106, p107, p108, p109, p110] = t;
 1083|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1084|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1085|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1086|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1087|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1088|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1089|       |      }
 1090|       |      else if constexpr (N == 112) {
 1091|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1092|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1093|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1094|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1095|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1096|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1097|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1098|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1099|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1100|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1101|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1102|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1103|       |      }
 1104|       |      else if constexpr (N == 113) {
 1105|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1106|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1107|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1108|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1109|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1110|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1111|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1112|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1113|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1114|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1115|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1116|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1117|       |      }
 1118|       |      else if constexpr (N == 114) {
 1119|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1120|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1121|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1122|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1123|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1124|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1125|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1126|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1127|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1128|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1129|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1130|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1131|       |                         p113);
 1132|       |      }
 1133|       |      else if constexpr (N == 115) {
 1134|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1135|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1136|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1137|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1138|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1139|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1140|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1141|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1142|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1143|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1144|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1145|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1146|       |                         p113, p114);
 1147|       |      }
 1148|       |      else if constexpr (N == 116) {
 1149|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1150|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1151|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1152|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1153|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1154|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1155|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1156|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1157|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1158|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1159|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1160|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1161|       |                         p113, p114, p115);
 1162|       |      }
 1163|       |      else if constexpr (N == 117) {
 1164|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1165|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1166|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1167|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1168|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1169|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1170|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1171|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1172|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1173|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1174|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1175|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1176|       |                         p113, p114, p115, p116);
 1177|       |      }
 1178|       |      else if constexpr (N == 118) {
 1179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1180|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1181|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1182|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1183|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1184|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1185|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1186|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1187|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1188|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1189|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1190|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1191|       |                         p113, p114, p115, p116, p117);
 1192|       |      }
 1193|       |      else if constexpr (N == 119) {
 1194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1195|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1196|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1197|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1198|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1199|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1201|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1202|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1203|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1204|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1205|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1206|       |                         p113, p114, p115, p116, p117, p118);
 1207|       |      }
 1208|       |      else if constexpr (N == 120) {
 1209|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1210|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1211|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1212|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1213|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1214|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1216|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1217|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1218|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1219|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1220|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1221|       |                         p113, p114, p115, p116, p117, p118, p119);
 1222|       |      }
 1223|       |      else if constexpr (N == 121) {
 1224|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1225|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1226|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1227|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1228|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1229|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1230|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1231|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1232|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1233|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1234|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1235|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1236|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1237|       |      }
 1238|       |      else if constexpr (N == 122) {
 1239|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1240|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1241|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1242|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1243|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1244|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1245|       |            t;
 1246|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1247|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1248|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1249|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1250|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1251|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1252|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1253|       |      }
 1254|       |      else if constexpr (N == 123) {
 1255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1256|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1257|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1258|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1259|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1260|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1261|       |                p122] = t;
 1262|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1263|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1264|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1265|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1266|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1267|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1268|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1269|       |      }
 1270|       |      else if constexpr (N == 124) {
 1271|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1272|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1273|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1274|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1275|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1276|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1277|       |                p122, p123] = t;
 1278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1279|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1280|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1281|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1282|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1283|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1284|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1285|       |      }
 1286|       |      else if constexpr (N == 125) {
 1287|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1288|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1289|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1290|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1291|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1292|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1293|       |                p122, p123, p124] = t;
 1294|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1295|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1296|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1297|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1298|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1299|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1300|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1301|       |      }
 1302|       |      else if constexpr (N == 126) {
 1303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1305|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1306|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1307|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1308|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1309|       |                p122, p123, p124, p125] = t;
 1310|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1311|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1312|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1313|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1314|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1315|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1316|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1317|       |      }
 1318|       |      else if constexpr (N == 127) {
 1319|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1320|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1321|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1322|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1323|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1324|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1325|       |                p122, p123, p124, p125, p126] = t;
 1326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1328|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1329|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1330|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1331|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1332|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1333|       |      }
 1334|       |      else if constexpr (N == 128) {
 1335|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1336|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1337|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1338|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1339|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1340|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1341|       |                p122, p123, p124, p125, p126, p127] = t;
 1342|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1343|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1344|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1345|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1346|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1347|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1348|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1349|       |      }
 1350|  13.1k|   }

_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSV_RPT_mSP_:
   20|  1.82M|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  1.82M|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 794, False: 1.82M]
  ------------------
   23|    794|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|    794|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|    794|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|    794|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  3.34M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 3.34M, False: 794]
  ------------------
   29|  3.34M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  3.34M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  3.34M|            const uint32_t mask = static_cast<uint32_t>(
   33|  3.34M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  3.34M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  3.34M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 66.0k, False: 3.27M]
  ------------------
   37|  66.0k|               data += 16;
   38|  66.0k|               c += 16;
   39|  66.0k|               continue;
   40|  66.0k|            }
   41|       |
   42|  3.27M|            const uint32_t length = countr_zero(mask);
   43|  3.27M|            c += length;
   44|  3.27M|            data += length;
   45|  3.27M|            write_escape();
   46|  3.27M|         }
   47|    794|      }
   48|  1.82M|   }

_ZN3glz11countr_zeroEj:
   16|  3.27M|   {
   17|       |#ifdef _MSC_VER
   18|       |      return std::countr_zero(x);
   19|       |#else
   20|  3.27M|#if __has_builtin(__builtin_ctzl)
   21|  3.27M|      return __builtin_ctzl(x);
   22|       |#else
   23|       |      return std::countr_zero(x);
   24|       |#endif
   25|  3.27M|#endif
   26|  3.27M|   }
_ZN3glz11countr_zeroEm:
   29|  1.87k|   {
   30|       |#ifdef _MSC_VER
   31|       |      return std::countr_zero(x);
   32|       |#else
   33|  1.87k|#if __has_builtin(__builtin_ctzll)
   34|  1.87k|      return __builtin_ctzll(x);
   35|       |#else
   36|       |      return std::countr_zero(x);
   37|       |#endif
   38|  1.87k|#endif
   39|  1.87k|   }

_ZN3glz7compareILm1EcEEbPKT0_S3_:
  122|  6.42k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|  6.42k|      else if constexpr (Count == 1) {
  176|  6.42k|         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  6.42k|   }
_ZN3glz7compareILm5EcEEbPKT0_S3_:
  122|  2.32k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|  2.32k|      else if constexpr (Count == 5) {
  152|  2.32k|         uint32_t l, r;
  153|  2.32k|         std::memcpy(&l, lhs, 4);
  154|  2.32k|         std::memcpy(&r, rhs, 4);
  155|  2.32k|         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  2.32k|   }
_ZN3glz7compareILm3EcEEbPKT0_S3_:
  122|  4.47k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|  4.47k|      else if constexpr (Count == 3) {
  164|  4.47k|         uint16_t l, r;
  165|  4.47k|         std::memcpy(&l, lhs, 2);
  166|  4.47k|         std::memcpy(&r, rhs, 2);
  167|  4.47k|         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  4.47k|   }

_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|   523M|   {
  151|       |      if constexpr (Checked && vector_like<B>) {
  152|       |         if (ix == b.size()) [[unlikely]] {
  153|       |            grow_buffer(b, b.size() == 0 ? 64 : ix + 1);
  154|       |         }
  155|       |      }
  156|   523M|      assign_maybe_cast(c, b, ix);
  157|   523M|      ++ix;
  158|   523M|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   95|   523M|   {
   96|   523M|      using V = std::decay_t<decltype(b[0])>;
   97|   523M|      using C = std::decay_t<decltype(c)>;
   98|   523M|      if constexpr (std::same_as<V, C>) {
   99|   523M|         b[ix] = c;
  100|       |      }
  101|       |      else {
  102|       |         b[ix] = static_cast<V>(c);
  103|       |      }
  104|   523M|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  192|   509M|   {
  193|   509M|      const auto n = str.size();
  194|   509M|      if constexpr (vector_like<B>) {
  195|       |         if constexpr (Checked) {
  196|       |            const auto k = ix + n;
  197|       |            if (ix + n > b.size()) [[unlikely]] {
  198|       |               grow_buffer(b, k);
  199|       |            }
  200|       |         }
  201|   509M|      }
  202|   509M|      std::memcpy(&b[ix], str.data(), n);
  203|   509M|      ix += n;
  204|   509M|   }

_ZN3glz5visitILm4EZNS_4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_EUlTnmvE_EEvOT0_m:
   86|  13.2k|   {
   87|  13.2k|      if constexpr (N > 0) {
   88|  13.2k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 13.2k, False: 0]
  |  Branch (88:10): [True: 13.2k, Folded]
  |  Branch (88:10): [True: 13.2k, False: 0]
  ------------------
   89|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   90|       |         if constexpr (N == 1) {
   91|       |            (void)index;
   92|       |            (void)(lambda.template operator()<0>());
   93|       |         }
   94|       |         else if constexpr (N == 2) {
   95|       |            switch (index) {
   96|       |            case 0:
   97|       |               lambda.template operator()<0>();
   98|       |               break;
   99|       |            case 1:
  100|       |               lambda.template operator()<1>();
  101|       |               break;
  102|       |            default:
  103|       |               std::unreachable();
  104|       |            }
  105|       |         }
  106|       |         else if constexpr (N == 3) {
  107|       |            switch (index) {
  108|       |            case 0:
  109|       |               lambda.template operator()<0>();
  110|       |               break;
  111|       |            case 1:
  112|       |               lambda.template operator()<1>();
  113|       |               break;
  114|       |            case 2:
  115|       |               lambda.template operator()<2>();
  116|       |               break;
  117|       |            default:
  118|       |               std::unreachable();
  119|       |            }
  120|       |         }
  121|  13.2k|         else if constexpr (N == 4) {
  122|  13.2k|            switch (index) {
  123|  3.31k|            case 0:
  ------------------
  |  Branch (123:13): [True: 3.31k, False: 9.93k]
  ------------------
  124|  3.31k|               lambda.template operator()<0>();
  125|  3.31k|               break;
  126|  3.11k|            case 1:
  ------------------
  |  Branch (126:13): [True: 3.11k, False: 10.1k]
  ------------------
  127|  3.11k|               lambda.template operator()<1>();
  128|  3.11k|               break;
  129|  2.33k|            case 2:
  ------------------
  |  Branch (129:13): [True: 2.33k, False: 10.9k]
  ------------------
  130|  2.33k|               lambda.template operator()<2>();
  131|  2.33k|               break;
  132|  4.48k|            case 3:
  ------------------
  |  Branch (132:13): [True: 4.48k, False: 8.77k]
  ------------------
  133|  4.48k|               lambda.template operator()<3>();
  134|  4.48k|               break;
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 13.2k]
  ------------------
  136|      0|               std::unreachable();
  137|  13.2k|            }
  138|       |         }
  139|       |         else if constexpr (N == 5) {
  140|       |            switch (index) {
  141|       |            case 0:
  142|       |               lambda.template operator()<0>();
  143|       |               break;
  144|       |            case 1:
  145|       |               lambda.template operator()<1>();
  146|       |               break;
  147|       |            case 2:
  148|       |               lambda.template operator()<2>();
  149|       |               break;
  150|       |            case 3:
  151|       |               lambda.template operator()<3>();
  152|       |               break;
  153|       |            case 4:
  154|       |               lambda.template operator()<4>();
  155|       |               break;
  156|       |            default:
  157|       |               std::unreachable();
  158|       |            }
  159|       |         }
  160|       |         else if constexpr (N == 6) {
  161|       |            switch (index) {
  162|       |            case 0:
  163|       |               lambda.template operator()<0>();
  164|       |               break;
  165|       |            case 1:
  166|       |               lambda.template operator()<1>();
  167|       |               break;
  168|       |            case 2:
  169|       |               lambda.template operator()<2>();
  170|       |               break;
  171|       |            case 3:
  172|       |               lambda.template operator()<3>();
  173|       |               break;
  174|       |            case 4:
  175|       |               lambda.template operator()<4>();
  176|       |               break;
  177|       |            case 5:
  178|       |               lambda.template operator()<5>();
  179|       |               break;
  180|       |            default:
  181|       |               std::unreachable();
  182|       |            }
  183|       |         }
  184|       |         else if constexpr (N == 7) {
  185|       |            switch (index) {
  186|       |            case 0:
  187|       |               lambda.template operator()<0>();
  188|       |               break;
  189|       |            case 1:
  190|       |               lambda.template operator()<1>();
  191|       |               break;
  192|       |            case 2:
  193|       |               lambda.template operator()<2>();
  194|       |               break;
  195|       |            case 3:
  196|       |               lambda.template operator()<3>();
  197|       |               break;
  198|       |            case 4:
  199|       |               lambda.template operator()<4>();
  200|       |               break;
  201|       |            case 5:
  202|       |               lambda.template operator()<5>();
  203|       |               break;
  204|       |            case 6:
  205|       |               lambda.template operator()<6>();
  206|       |               break;
  207|       |            default:
  208|       |               std::unreachable();
  209|       |            }
  210|       |         }
  211|       |         else if constexpr (N == 8) {
  212|       |            switch (index) {
  213|       |            case 0:
  214|       |               lambda.template operator()<0>();
  215|       |               break;
  216|       |            case 1:
  217|       |               lambda.template operator()<1>();
  218|       |               break;
  219|       |            case 2:
  220|       |               lambda.template operator()<2>();
  221|       |               break;
  222|       |            case 3:
  223|       |               lambda.template operator()<3>();
  224|       |               break;
  225|       |            case 4:
  226|       |               lambda.template operator()<4>();
  227|       |               break;
  228|       |            case 5:
  229|       |               lambda.template operator()<5>();
  230|       |               break;
  231|       |            case 6:
  232|       |               lambda.template operator()<6>();
  233|       |               break;
  234|       |            case 7:
  235|       |               lambda.template operator()<7>();
  236|       |               break;
  237|       |            default:
  238|       |               std::unreachable();
  239|       |            }
  240|       |         }
  241|       |         else if constexpr (N == 9) {
  242|       |            switch (index) {
  243|       |            case 0:
  244|       |               lambda.template operator()<0>();
  245|       |               break;
  246|       |            case 1:
  247|       |               lambda.template operator()<1>();
  248|       |               break;
  249|       |            case 2:
  250|       |               lambda.template operator()<2>();
  251|       |               break;
  252|       |            case 3:
  253|       |               lambda.template operator()<3>();
  254|       |               break;
  255|       |            case 4:
  256|       |               lambda.template operator()<4>();
  257|       |               break;
  258|       |            case 5:
  259|       |               lambda.template operator()<5>();
  260|       |               break;
  261|       |            case 6:
  262|       |               lambda.template operator()<6>();
  263|       |               break;
  264|       |            case 7:
  265|       |               lambda.template operator()<7>();
  266|       |               break;
  267|       |            case 8:
  268|       |               lambda.template operator()<8>();
  269|       |               break;
  270|       |            default:
  271|       |               std::unreachable();
  272|       |            }
  273|       |         }
  274|       |         else if constexpr (N == 10) {
  275|       |            switch (index) {
  276|       |            case 0:
  277|       |               lambda.template operator()<0>();
  278|       |               break;
  279|       |            case 1:
  280|       |               lambda.template operator()<1>();
  281|       |               break;
  282|       |            case 2:
  283|       |               lambda.template operator()<2>();
  284|       |               break;
  285|       |            case 3:
  286|       |               lambda.template operator()<3>();
  287|       |               break;
  288|       |            case 4:
  289|       |               lambda.template operator()<4>();
  290|       |               break;
  291|       |            case 5:
  292|       |               lambda.template operator()<5>();
  293|       |               break;
  294|       |            case 6:
  295|       |               lambda.template operator()<6>();
  296|       |               break;
  297|       |            case 7:
  298|       |               lambda.template operator()<7>();
  299|       |               break;
  300|       |            case 8:
  301|       |               lambda.template operator()<8>();
  302|       |               break;
  303|       |            case 9:
  304|       |               lambda.template operator()<9>();
  305|       |               break;
  306|       |            default:
  307|       |               std::unreachable();
  308|       |            }
  309|       |         }
  310|       |         else {
  311|       |#ifdef _MSC_VER
  312|       |            using Lambda = std::decay_t<decltype(lambda)>;
  313|       |            static const auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  314|       |               return std::array{make_jump_function<I, Lambda>()...};
  315|       |            }(std::make_index_sequence<N>{});
  316|       |#else
  317|       |            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  318|       |               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  319|       |            }(std::make_index_sequence<N>{});
  320|       |#endif
  321|       |
  322|       |#if defined(__clang__)
  323|       |            [[assume(index < N)]];
  324|       |#endif
  325|       |            jump_table[index](lambda);
  326|       |
  327|       |            // This code runs significantly slower on Clang
  328|       |            // Simple tests with assembly show that this should be faster,
  329|       |            // but full Glaze assembly need to be looked into
  330|       |            /*[&, index]<size_t... I>(std::index_sequence<I...>) {
  331|       |               (void)((index == I ? lambda.template operator()<I>() : void()), ...);
  332|       |            }(std::make_index_sequence<N>{});*/
  333|       |         }
  334|  13.2k|      }
  335|  13.2k|   }

_ZN3glz8to_charsIaQsr3stdE7same_asIu14__remove_cvrefIT_EaEEEPcS3_S1_:
  277|   818k|   {
  278|   818k|      *buf = '-';
  279|   818k|      return to_chars(buf + (val < 0), uint8_t(val ^ (val >> 7)) - (val >> 7));
  280|   818k|   }
_ZN3glz8to_charsIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  213|  2.78M|   {
  214|  2.78M|      *buf = '-';
  215|  2.78M|      return to_chars(buf + (val < 0), uint32_t(val ^ (val >> 31)) - (val >> 31));
  216|  2.78M|   }
_ZN3glz8to_charsIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  191|  2.78M|   {
  192|  2.78M|      using namespace itoa_impl;
  193|  2.78M|      if (val < 100) {
  ------------------
  |  Branch (193:11): [True: 1.23M, False: 1.55M]
  ------------------
  194|  1.23M|         return u32_2(buf, val);
  195|  1.23M|      }
  196|  1.55M|      else if (val < 10000) {
  ------------------
  |  Branch (196:16): [True: 1.07M, False: 475k]
  ------------------
  197|  1.07M|         return u32_4(buf, val);
  198|  1.07M|      }
  199|   475k|      else if (val < 1000000) {
  ------------------
  |  Branch (199:16): [True: 475k, False: 0]
  ------------------
  200|   475k|         return u32_6(buf, val);
  201|   475k|      }
  202|      0|      else if (val < 100000000) {
  ------------------
  |  Branch (202:16): [True: 0, False: 0]
  ------------------
  203|      0|         return u32_8(buf, val);
  204|      0|      }
  205|      0|      else {
  206|      0|         return u32_10(buf, val);
  207|      0|      }
  208|  2.78M|   }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  4.03M|      {
   75|  4.03M|         const uint32_t lz = val < 10;
   76|  4.03M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  4.03M|         return buf + 2 - lz;
   78|  4.03M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  1.50M|      {
   82|  1.50M|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  1.50M|         const uint32_t lz = aa < 10;
   84|  1.50M|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  1.50M|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  1.50M|         return buf + 4 - lz;
   87|  1.50M|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|   475k|      {
   91|   475k|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|   475k|         const uint32_t bbcc = val - aa * 10000;
   93|   475k|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|   475k|         const uint32_t lz = aa < 10;
   95|   475k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|   475k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|   475k|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|   475k|         return buf + 6 - lz;
   99|   475k|      }
_ZN3glz8to_charsIsQsr3stdE7same_asIu14__remove_cvrefIT_EsEEEPcS3_S1_:
  306|  1.96M|   {
  307|  1.96M|      *buf = '-';
  308|  1.96M|      return to_chars(buf + (val < 0), uint16_t(val ^ (val >> 15)) - (val >> 15));
  309|  1.96M|   }
_ZN3glz8to_charsIhQsr3stdE7same_asIu14__remove_cvrefIT_EhEEEPcS3_S1_:
  259|  2.19M|   {
  260|  2.19M|      using namespace itoa_impl;
  261|  2.19M|      if (val < 100) {
  ------------------
  |  Branch (261:11): [True: 2.01M, False: 180k]
  ------------------
  262|  2.01M|         return u32_2(buf, val);
  263|  2.01M|      }
  264|   180k|      else {
  265|       |         // 100-255: 3 digits
  266|   180k|         const uint32_t q = val / 100;
  267|   180k|         *buf = char('0' + q);
  268|   180k|         std::memcpy(buf + 1, &digit_pairs[val - q * 100], 2);
  269|   180k|         return buf + 3;
  270|   180k|      }
  271|  2.19M|   }
_ZN3glz8to_charsItQsr3stdE7same_asIu14__remove_cvrefIT_EtEEEPcS3_S1_:
  286|  1.76M|   {
  287|  1.76M|      using namespace itoa_impl;
  288|  1.76M|      if (val < 100) {
  ------------------
  |  Branch (288:11): [True: 790k, False: 970k]
  ------------------
  289|   790k|         return u32_2(buf, val);
  290|   790k|      }
  291|   970k|      else if (val < 10000) {
  ------------------
  |  Branch (291:16): [True: 429k, False: 541k]
  ------------------
  292|   429k|         return u32_4(buf, val);
  293|   429k|      }
  294|   541k|      else {
  295|       |         // 10000-65535: 5 digits
  296|   541k|         const uint32_t q = val / 10000;
  297|   541k|         *buf = char('0' + q);
  298|   541k|         return u64_len_4(buf + 1, val - q * 10000);
  299|   541k|      }
  300|  1.76M|   }
_ZN3glz9itoa_impl9u64_len_4EPcj:
  148|   541k|      {
  149|   541k|         const uint32_t aa = (val * 5243) >> 19;
  150|   541k|         std::memcpy(buf, &digit_pairs[aa], 2);
  151|   541k|         std::memcpy(buf + 2, &digit_pairs[val - aa * 100], 2);
  152|   541k|         return buf + 4;
  153|   541k|      }

_ZN3glz13to_chars_40kbIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  282|  1.07M|   {
  283|  1.07M|      *buf = '-';
  284|  1.07M|      return to_chars_40kb(buf + (val < 0),
  285|  1.07M|                           static_cast<uint32_t>((static_cast<uint32_t>(val) ^ (val >> 31)) - (val >> 31)));
  286|  1.07M|   }
_ZN3glz13to_chars_40kbIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  260|  2.02M|   {
  261|  2.02M|      using namespace itoa_40kb_impl;
  262|  2.02M|      if (val < 10000) {
  ------------------
  |  Branch (262:11): [True: 695k, False: 1.32M]
  ------------------
  263|   695k|         if (val < 100)
  ------------------
  |  Branch (263:14): [True: 663k, False: 32.0k]
  ------------------
  264|   663k|            return u32_2(buf, val);
  265|  32.0k|         else
  266|  32.0k|            return u32_4(buf, val);
  267|   695k|      }
  268|  1.32M|      else if (val < 100000000) {
  ------------------
  |  Branch (268:16): [True: 268k, False: 1.06M]
  ------------------
  269|   268k|         if (val < 1000000)
  ------------------
  |  Branch (269:14): [True: 32.3k, False: 236k]
  ------------------
  270|  32.3k|            return u32_6(buf, val);
  271|   236k|         else
  272|   236k|            return u32_8(buf, val);
  273|   268k|      }
  274|  1.06M|      else {
  275|  1.06M|         return u32_10(buf, val);
  276|  1.06M|      }
  277|  2.02M|   }
_ZN3glz14itoa_40kb_impl5u32_2EPcj:
   62|   663k|      {
   63|   663k|         const uint64_t lz = val < 10;
   64|       |         // Use OR since val*2 is always even (bit 0 is 0)
   65|   663k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   66|   663k|         return buf + 2 - lz;
   67|   663k|      }
_ZN3glz14itoa_40kb_impl5u32_4EPcj:
   70|  32.0k|      {
   71|  32.0k|         const uint32_t aa = (val * 5243) >> 19;
   72|  32.0k|         const uint64_t lz = val < 1000;
   73|  32.0k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   74|  32.0k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   75|  32.0k|         return buf + 4 - lz;
   76|  32.0k|      }
_ZN3glz14itoa_40kb_impl5u32_6EPcj:
   79|  32.3k|      {
   80|  32.3k|         const uint32_t aa = static_cast<uint32_t>((static_cast<uint64_t>(val) * 429497ULL) >> 32);
   81|  32.3k|         const uint64_t lz = val < 100000;
   82|  32.3k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   83|  32.3k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
   84|  32.3k|         return buf + 6 - lz;
   85|  32.3k|      }
_ZN3glz14itoa_40kb_impl5u32_8EPcj:
   88|   236k|      {
   89|   236k|         const uint64_t aabb = (static_cast<uint64_t>(val) * 109951163ULL) >> 40;
   90|   236k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
   91|   236k|         const uint64_t lz = val < 10000000;
   92|   236k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   93|   236k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
   94|   236k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
   95|   236k|         return buf + 8 - lz;
   96|   236k|      }
_ZN3glz14itoa_40kb_impl6u32_10EPcj:
   99|  1.06M|      {
  100|  1.06M|         const uint64_t high = div_1e8(val);
  101|  1.06M|         const uint64_t low = val - high * 100000000;
  102|  1.06M|         const uint64_t lz = high < 10;
  103|  1.06M|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  104|  1.06M|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  105|  1.06M|         const uint64_t ccdd = low - aabb * 10000;
  106|  1.06M|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  107|  1.06M|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  108|  1.06M|         return buf + 10 - lz;
  109|  1.06M|      }
_ZN3glz14itoa_40kb_impl7div_1e8Em:
   50|  2.95M|      {
   51|  2.95M|         constexpr __uint128_t multiplier = 0xabcc77118461cefdULL;
   52|  2.95M|         constexpr uint64_t shift = 90;
   53|  2.95M|         return static_cast<uint64_t>((static_cast<__uint128_t>(value) * multiplier) >> shift);
   54|  2.95M|      }
_ZN3glz13to_chars_40kbIlQsr3stdE7same_asIu14__remove_cvrefIT_ElEEEPcS3_S1_:
  328|   869k|   {
  329|   869k|      *buf = '-';
  330|   869k|      return to_chars_40kb(buf + (val < 0),
  331|   869k|                           static_cast<uint64_t>((static_cast<uint64_t>(val) ^ (val >> 63)) - (val >> 63)));
  332|   869k|   }
_ZN3glz13to_chars_40kbImQsr3stdE7same_asIu14__remove_cvrefIT_EmEEEPcS3_S1_:
  291|  1.32M|   {
  292|  1.32M|      using namespace itoa_40kb_impl;
  293|  1.32M|      if (val < 10000) {
  ------------------
  |  Branch (293:11): [True: 320k, False: 1.00M]
  ------------------
  294|   320k|         if (val < 100)
  ------------------
  |  Branch (294:14): [True: 308k, False: 12.0k]
  ------------------
  295|   308k|            return u64_2(buf, val);
  296|  12.0k|         else
  297|  12.0k|            return u64_4(buf, val);
  298|   320k|      }
  299|  1.00M|      else if (val < 100000000) {
  ------------------
  |  Branch (299:16): [True: 18.5k, False: 987k]
  ------------------
  300|  18.5k|         if (val < 1000000)
  ------------------
  |  Branch (300:14): [True: 6.97k, False: 11.6k]
  ------------------
  301|  6.97k|            return u64_6(buf, val);
  302|  11.6k|         else
  303|  11.6k|            return u64_8(buf, val);
  304|  18.5k|      }
  305|   987k|      else if (val < 1000000000000ULL) {
  ------------------
  |  Branch (305:16): [True: 30.9k, False: 956k]
  ------------------
  306|  30.9k|         if (val < 10000000000ULL)
  ------------------
  |  Branch (306:14): [True: 13.8k, False: 17.1k]
  ------------------
  307|  13.8k|            return u64_10(buf, val);
  308|  17.1k|         else
  309|  17.1k|            return u64_12(buf, val);
  310|  30.9k|      }
  311|   956k|      else if (val < 10000000000000000ULL) {
  ------------------
  |  Branch (311:16): [True: 52.0k, False: 904k]
  ------------------
  312|  52.0k|         if (val < 100000000000000ULL)
  ------------------
  |  Branch (312:14): [True: 20.0k, False: 31.9k]
  ------------------
  313|  20.0k|            return u64_14(buf, val);
  314|  31.9k|         else
  315|  31.9k|            return u64_16(buf, val);
  316|  52.0k|      }
  317|   904k|      else if (val < 1000000000000000000ULL) {
  ------------------
  |  Branch (317:16): [True: 82.2k, False: 822k]
  ------------------
  318|  82.2k|         return u64_18(buf, val);
  319|  82.2k|      }
  320|   822k|      else {
  321|   822k|         return u64_20(buf, val);
  322|   822k|      }
  323|  1.32M|   }
_ZN3glz14itoa_40kb_impl5u64_2EPcm:
  114|   308k|      {
  115|   308k|         const uint64_t lz = val < 10;
  116|   308k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
  117|   308k|         return buf + 2 - lz;
  118|   308k|      }
_ZN3glz14itoa_40kb_impl5u64_4EPcm:
  121|  12.0k|      {
  122|  12.0k|         const uint64_t aa = (val * 5243ULL) >> 19;
  123|  12.0k|         const uint64_t lz = val < 1000;
  124|  12.0k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  125|  12.0k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
  126|  12.0k|         return buf + 4 - lz;
  127|  12.0k|      }
_ZN3glz14itoa_40kb_impl5u64_6EPcm:
  130|  6.97k|      {
  131|  6.97k|         const uint64_t aa = (val * 429497ULL) >> 32;
  132|  6.97k|         const uint64_t lz = val < 100000;
  133|  6.97k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  134|  6.97k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
  135|  6.97k|         return buf + 6 - lz;
  136|  6.97k|      }
_ZN3glz14itoa_40kb_impl5u64_8EPcm:
  139|  11.6k|      {
  140|  11.6k|         const uint64_t aabb = (val * 109951163ULL) >> 40;
  141|  11.6k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  142|  11.6k|         const uint64_t lz = val < 10000000;
  143|  11.6k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  144|  11.6k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
  145|  11.6k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
  146|  11.6k|         return buf + 8 - lz;
  147|  11.6k|      }
_ZN3glz14itoa_40kb_impl6u64_10EPcm:
  150|  13.8k|      {
  151|  13.8k|         const uint64_t high = div_1e8(val);
  152|  13.8k|         const uint64_t low = val - high * 100000000;
  153|  13.8k|         const uint64_t lz = high < 10;
  154|  13.8k|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  155|  13.8k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  156|  13.8k|         const uint64_t ccdd = low - aabb * 10000;
  157|  13.8k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  158|  13.8k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  159|  13.8k|         return buf + 10 - lz;
  160|  13.8k|      }
_ZN3glz14itoa_40kb_impl6u64_12EPcm:
  163|  17.1k|      {
  164|  17.1k|         const uint64_t high = div_1e8(val);
  165|  17.1k|         const uint64_t low = val - high * 100000000;
  166|  17.1k|         const uint64_t aa = (high * 5243ULL) >> 19;
  167|  17.1k|         const uint64_t lz = aa < 10;
  168|  17.1k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  169|  17.1k|         std::memcpy(buf + 2 - lz, &digit_pairs[high - aa * 100], 2);
  170|  17.1k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  171|  17.1k|         const uint64_t ccdd = low - aabb * 10000;
  172|  17.1k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  173|  17.1k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  174|  17.1k|         return buf + 12 - lz;
  175|  17.1k|      }
_ZN3glz14itoa_40kb_impl6u64_14EPcm:
  178|  20.0k|      {
  179|  20.0k|         const uint64_t high = div_1e8(val);
  180|  20.0k|         const uint64_t low = val - high * 100000000;
  181|  20.0k|         const uint64_t aa = (high * 429497ULL) >> 32;
  182|  20.0k|         const uint64_t lz = aa < 10;
  183|  20.0k|         const uint64_t bbcc = high - aa * 10000;
  184|  20.0k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  185|  20.0k|         std::memcpy(buf + 2 - lz, &digit_quads[bbcc], 4);
  186|  20.0k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  187|  20.0k|         const uint64_t ccdd = low - aabb * 10000;
  188|  20.0k|         std::memcpy(buf + 6 - lz, &digit_quads[aabb], 4);
  189|  20.0k|         std::memcpy(buf + 10 - lz, &digit_quads[ccdd], 4);
  190|  20.0k|         return buf + 14 - lz;
  191|  20.0k|      }
_ZN3glz14itoa_40kb_impl6u64_16EPcm:
  194|  31.9k|      {
  195|  31.9k|         const uint64_t high = div_1e8(val);
  196|  31.9k|         const uint64_t low = val - high * 100000000;
  197|  31.9k|         uint64_t aabb = (high * 109951163ULL) >> 40;
  198|  31.9k|         uint64_t ccdd = high - aabb * 10000;
  199|  31.9k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  200|  31.9k|         const uint64_t lz = aa < 10;
  201|  31.9k|         const uint64_t bb = aabb - aa * 100;
  202|  31.9k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  203|  31.9k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
  204|  31.9k|         std::memcpy(buf + 4 - lz, &digit_quads[ccdd], 4);
  205|  31.9k|         aabb = (low * 109951163ULL) >> 40;
  206|  31.9k|         ccdd = low - aabb * 10000;
  207|  31.9k|         std::memcpy(buf + 8 - lz, &digit_quads[aabb], 4);
  208|  31.9k|         std::memcpy(buf + 12 - lz, &digit_quads[ccdd], 4);
  209|  31.9k|         return buf + 16 - lz;
  210|  31.9k|      }
_ZN3glz14itoa_40kb_impl6u64_18EPcm:
  213|  82.2k|      {
  214|  82.2k|         const uint64_t high = div_1e8(val);
  215|  82.2k|         const uint64_t low = val - high * 100000000;
  216|  82.2k|         const uint64_t high10 = div_1e8(high);
  217|  82.2k|         const uint64_t low10 = high - high10 * 100000000;
  218|  82.2k|         const uint64_t lz = high10 < 10;
  219|  82.2k|         std::memcpy(buf, char_table + ((high10 * 2) | lz), 2);
  220|  82.2k|         uint64_t aabb = (low10 * 109951163ULL) >> 40;
  221|  82.2k|         uint64_t ccdd = low10 - aabb * 10000;
  222|  82.2k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  223|  82.2k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  224|  82.2k|         aabb = (low * 109951163ULL) >> 40;
  225|  82.2k|         ccdd = low - aabb * 10000;
  226|  82.2k|         std::memcpy(buf + 10 - lz, &digit_quads[aabb], 4);
  227|  82.2k|         std::memcpy(buf + 14 - lz, &digit_quads[ccdd], 4);
  228|  82.2k|         return buf + 18 - lz;
  229|  82.2k|      }
_ZN3glz14itoa_40kb_impl6u64_20EPcm:
  232|   822k|      {
  233|   822k|         const uint64_t high = div_1e8(val);
  234|   822k|         const uint64_t low = val - high * 100000000;
  235|   822k|         const uint64_t high12 = div_1e8(high);
  236|   822k|         const uint64_t low12 = high - high12 * 100000000;
  237|   822k|         const uint64_t aa = (high12 * 5243ULL) >> 19;
  238|   822k|         const uint64_t lz = aa < 10;
  239|   822k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  240|   822k|         std::memcpy(buf + 2 - lz, &digit_pairs[high12 - aa * 100], 2);
  241|   822k|         uint64_t aabb = (low12 * 109951163ULL) >> 40;
  242|   822k|         uint64_t ccdd = low12 - aabb * 10000;
  243|   822k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  244|   822k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  245|   822k|         aabb = (low * 109951163ULL) >> 40;
  246|   822k|         ccdd = low - aabb * 10000;
  247|   822k|         std::memcpy(buf + 12 - lz, &digit_quads[aabb], 4);
  248|   822k|         std::memcpy(buf + 16 - lz, &digit_quads[ccdd], 4);
  249|   822k|         return buf + 20 - lz;
  250|   822k|      }

_ZN3glz8to_charsITkNSt3__114floating_pointEfLb0EEEPcS2_T_:
 1118|  2.02M|   {
 1119|  2.02M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  2.02M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  2.02M|   }
_ZN3glz4zmij6detail5writeIfLb0EEEPcT_S3_:
  975|  2.02M|      {
  976|  2.02M|         using namespace detail_impl;
  977|  2.02M|         using traits = float_traits<Float>;
  978|  2.02M|         auto bits = traits::to_bits(value);
  979|  2.02M|         auto bin_exp = traits::get_exp(bits);
  980|  2.02M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  2.02M|         *buffer = '-';
  983|  2.02M|         buffer += traits::is_negative(bits);
  984|       |
  985|  2.02M|         const auto* c = &consts_v<OptSize>;
  986|  2.02M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  2.02M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  2.02M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [Folded, False: 2.02M]
  ------------------
  988|       |
  989|  2.02M|         to_decimal_result dec;
  990|  2.02M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  2.02M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 744k, False: 1.28M]
  ------------------
  992|   744k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 4.49k, False: 740k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  4.49k|               buffer -= traits::is_negative(bits);
 1000|  4.49k|               memcpy(buffer, "null", 4);
 1001|  4.49k|               return buffer + 4;
 1002|  4.49k|#endif
 1003|  4.49k|            }
 1004|   740k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 679k, False: 61.0k]
  ------------------
 1005|   679k|               memcpy(buffer, "0", 2);
 1006|   679k|               return buffer + 1;
 1007|   679k|            }
 1008|  61.0k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  61.0k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 55.4k, False: 5.56k]
  ------------------
 1010|  61.0k|            int32_t dec_exp = dec.exp;
 1011|   259k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 198k, False: 61.0k]
  ------------------
 1012|   198k|               dec_sig *= 10;
 1013|   198k|               --dec_exp;
 1014|   198k|            }
 1015|  61.0k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  61.0k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  61.0k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  61.0k|         }
 1019|  1.28M|         else {
 1020|  1.28M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.28M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.28M|         }
 1023|  1.34M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.34M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.34M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [True: 1.34M, Folded]
  |  Branch (1025:40): [True: 1.93k, False: 1.34M]
  ------------------
 1026|  1.93k|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 1.60k, False: 326]
  ------------------
 1027|  1.93k|            dec.has_last_digit = false;
 1028|  1.93k|            --dec_exp;
 1029|  1.93k|         }
 1030|       |
 1031|  1.34M|         char* start = buffer;
 1032|  1.34M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.34M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [Folded, False: 1.34M]
  ------------------
 1034|  1.34M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 247k, False: 1.09M]
  |  Branch (1034:54): [True: 33.7k, False: 213k]
  ------------------
 1035|  33.7k|            memcpy(start, &zeros_v, 8);
 1036|  33.7k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  33.7k|            buffer += fmt.start_pos;
 1038|  33.7k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  33.7k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  33.7k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 14.4k, False: 19.2k]
  ------------------
 1041|  33.7k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  33.7k|            start[fmt.point_pos] = '.';
 1043|  33.7k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 14.4k, False: 19.2k]
  ------------------
 1044|  33.7k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  33.7k|         }
 1046|  1.31M|         buffer += extra_digit;
 1047|  1.31M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.31M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.31M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 629k, False: 681k]
  ------------------
 1050|  1.31M|         start[0] = start[1];
 1051|  1.31M|         start[1] = '.';
 1052|  1.31M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.31M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.31M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.31M|            int len = int(exp_data >> 48);
 1057|  1.31M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.31M]
  ------------------
 1058|  1.31M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [Folded, False: 1.31M]
  ------------------
 1059|  1.31M|            return buffer + len;
 1060|  1.31M|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|  1.31M|         buffer[0] = 'E';
 1067|  1.31M|         buffer[1] = '-';
 1068|  1.31M|         buffer += 1 + unsigned(neg);
 1069|  1.31M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.31M]
  ------------------
 1070|  1.31M|         unsigned hundreds_written = 0;
 1071|       |         if constexpr (traits::max_exponent10 >= 100) {
 1072|       |            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|       |            else {
 1077|       |               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|       |            }
 1079|       |            *buffer = static_cast<char>('0' + digit);
 1080|       |            hundreds_written = unsigned(dec_exp >= 100);
 1081|       |            buffer += hundreds_written;
 1082|       |            dec_exp -= digit * 100;
 1083|       |         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|  1.31M|         const char* d2 = digits2(dec_exp);
 1087|  1.31M|         *buffer = d2[0];
 1088|  1.31M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.31M|         *buffer = d2[1];
 1090|  1.31M|         return buffer + 1;
 1091|  1.34M|      }
_ZN3glz4zmij11detail_impl12float_traitsIfE7to_bitsEf:
  358|  2.02M|         {
  359|  2.02M|            sig_type bits;
  360|  2.02M|            memcpy(&bits, &value, sizeof(value));
  361|  2.02M|            return bits;
  362|  2.02M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_expEj:
  367|  2.02M|         {
  368|  2.02M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  2.02M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_sigEj:
  365|  2.02M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIfE11is_negativeEj:
  364|  2.03M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIfjLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  1.34M|      {
  869|  1.34M|         using traits = float_traits<Float>;
  870|  1.34M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.34M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.34M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.34M|         constexpr int32_t log10_2_exp = 18;
  875|  1.34M|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|  1.34M|         else {
  881|  1.34M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.34M|         }
  883|  1.34M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.34M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.34M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 17.7k, False: 1.32M]
  ------------------
  887|  17.7k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  17.7k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  17.7k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  17.7k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  17.7k|            int64_t integral = p.hi >> extra_shift;
  893|  17.7k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  17.7k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  17.7k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  17.7k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  17.7k|            integral += round_up;
  899|       |
  900|  17.7k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  17.7k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  17.7k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 2.01k, False: 15.7k]
  ------------------
  903|  17.7k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  17.7k|         }
  905|       |
  906|  1.32M|         if constexpr (num_bits == 32) {
  907|  1.32M|            constexpr int32_t float_extra_shift = 34;
  908|  1.32M|            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|  1.32M|            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|  1.32M|            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|  1.32M|            int64_t integral = p >> float_extra_shift;
  913|  1.32M|            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|  1.32M|            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|  1.32M|            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|  1.32M|            bool round_down = half_ulp > fractional;
  918|  1.32M|            integral += round_up;
  919|       |
  920|  1.32M|            uint64_t prod = fractional * 10;
  921|  1.32M|            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|  1.32M|            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|  1.32M|            digit +=
  924|  1.32M|               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  ------------------
  |  Branch (924:16): [True: 630k, False: 696k]
  |  Branch (924:60): [True: 1.26k, False: 694k]
  |  Branch (924:104): [True: 636, False: 630]
  ------------------
  925|  1.32M|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|       |         else {
  928|       |            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  929|       |                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|       |            ZMIJ_ASM(("" : "+r"(dec_exp)));
  931|       |            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|       |            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|       |            int64_t integral = p.hi >> extra_shift;
  934|       |            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|       |            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|       |            bool round_up = fractional + half_ulp < fractional;
  937|       |            bool round_down = half_ulp > fractional;
  938|       |            integral += round_up;
  939|       |
  940|       |            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|       |            if (fractional == (1ull << 62)) [[unlikely]] {
  942|       |               digit = 2;
  943|       |            }
  944|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|       |         }
  946|  1.32M|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.10M|      {
  334|  2.10M|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.10M, False: 0]
  |  Branch (334:10): [True: 2.10M, False: 0]
  |  Branch (334:10): [True: 2.10M, False: 0]
  ------------------
  335|  2.10M|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.10M|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.10M|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.10M|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|  1.35M|      {
  458|  1.35M|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 1.35M, False: 0]
  |  Branch (458:10): [True: 1.35M, False: 0]
  |  Branch (458:10): [True: 1.35M, False: 0]
  ------------------
  459|  1.35M|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|  1.35M|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|  1.35M|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|  1.35M|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  2.08M|         {
  441|  2.08M|            constexpr int dec_exp_min = -293;
  442|  2.08M|            int i = dec_exp - dec_exp_min;
  443|  2.08M|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 2.08M]
  ------------------
  444|  2.08M|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 2.08M, Folded]
  ------------------
  445|       |
  446|      0|            const uint64_t* hi = data + num_pow10s + dec_exp_min - 1;
  447|      0|            const uint64_t* lo = hi + num_pow10s;
  448|       |
  449|      0|            if !consteval {
  450|      0|               ZMIJ_ASM(volatile("" : "+r"(hi), "+r"(lo)));
  ------------------
  |  |  126|      0|#define ZMIJ_ASM(x) asm x
  ------------------
  451|      0|            }
  452|      0|            return {hi[-dec_exp], lo[-dec_exp]};
  453|  2.08M|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|   758k|      {
  309|   758k|         uint128_t p = umul128(x_hi, y);
  310|   758k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|   758k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|   758k|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  2.98M|      {
  266|  2.98M|#if ZMIJ_USE_INT128
  267|  2.98M|         return uint128_t(x) * y;
  268|       |#else
  269|       |#if defined(_M_AMD64)
  270|       |         if !consteval {
  271|       |            uint64_t hi = 0;
  272|       |            uint64_t lo = _umul128(x, y, &hi);
  273|       |            return {hi, lo};
  274|       |         }
  275|       |#elif defined(_M_ARM64)
  276|       |         if !consteval {
  277|       |            return {__umulh(x, y), x * y};
  278|       |         }
  279|       |#endif
  280|       |         uint64_t a = x >> 32;
  281|       |         uint64_t b = uint32_t(x);
  282|       |         uint64_t c = y >> 32;
  283|       |         uint64_t d = uint32_t(y);
  284|       |
  285|       |         uint64_t ac = a * c;
  286|       |         uint64_t bc = b * c;
  287|       |         uint64_t ad = a * d;
  288|       |         uint64_t bd = b * d;
  289|       |
  290|       |         uint64_t cs = (bd >> 32) + uint32_t(ad) + uint32_t(bc);
  291|       |         return {ac + (ad >> 32) + (bc >> 32) + (cs >> 32), (cs << 32) + uint32_t(bd)};
  292|       |#endif
  293|  2.98M|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|   782k|      {
  299|   782k|#if ZMIJ_USE_INT128
  300|   782k|         return uint64_t((uint128_t(x) * y + c) >> 64);
  301|       |#else
  302|       |         auto p = umul128(x, y);
  303|       |         return p.hi + (p.lo + c < p.lo);
  304|       |#endif
  305|   782k|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|  1.46M|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl5div10Em:
  326|   138k|      {
  327|   138k|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 138k, False: 0]
  ------------------
  328|   138k|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|   138k|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|   138k|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 138k, Folded]
  |  |  ------------------
  ------------------
  330|   138k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi32ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.34M|      {
  810|  1.34M|         if constexpr (num_bits == 32) {
  811|  1.34M|            auto result = to_bcd8<OptSize>(value);
  812|  1.34M|            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|       |         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|       |            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|       |            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|       |            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|       |            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|       |#endif
  844|       |
  845|       |            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|       |            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|       |            int len = 63 - clz((mask << 1) | 1);
  851|       |#endif
  852|       |            return {_mm_or_si128(bcd, zeros), len};
  853|       |#endif
  854|       |         }
  855|  1.34M|      }
_ZN3glz4zmij11detail_impl7to_bcd8ILb0EEENS1_10bcd_resultEm:
  753|  1.34M|      {
  754|  1.34M|         if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   63|  1.34M|#define ZMIJ_USE_SSE ZMIJ_USE_SIMD
  |  |  ------------------
  |  |  |  |   41|  2.68M|#define ZMIJ_USE_SIMD 1
  |  |  ------------------
  ------------------
                       if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   55|      0|#define ZMIJ_USE_NEON 0
  ------------------
  |  Branch (754:14): [Folded, False: 1.34M]
  |  Branch (754:31): [True: 0, Folded]
  ------------------
  755|      0|            uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  756|      0|            uint64_t ab_cd_ef_gh = abcd_efgh + neg100_v * (((abcd_efgh * div100_sig) >> div100_exp) & 0x7f0000007f);
  757|      0|            uint64_t a_b_c_d_e_f_g_h =
  758|      0|               ab_cd_ef_gh + neg10_v * (((ab_cd_ef_gh * div10_sig) >> div10_exp) & 0xf000f000f000f);
  759|      0|            uint64_t bcd = is_big_endian ? a_b_c_d_e_f_g_h : bswap64(a_b_c_d_e_f_g_h);
  ------------------
  |  Branch (759:28): [Folded, False: 0]
  ------------------
  760|      0|            return {bcd, count_trailing_nonzeros(bcd)};
  761|      0|         }
  762|       |
  763|  1.34M|         const auto* c = &consts_v<OptSize>;
  764|  1.34M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.34M|#define ZMIJ_ASM(x) asm x
  ------------------
  765|       |
  766|       |#if ZMIJ_USE_NEON
  767|       |         uint64_t abcd_efgh_64 = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  768|       |         int32x4_t abcd_efgh = vcombine_s32(vreinterpret_s32_u64(vcreate_u64(abcd_efgh_64)), vdup_n_s32(0));
  769|       |         uint8x16_t digits_128 = to_bcd_4x4(abcd_efgh, *c);
  770|       |         uint8x8_t digits = vget_low_u8(digits_128);
  771|       |         uint64_t bcd = vget_lane_u64(vreinterpret_u64_u8(vrev64_u8(digits)), 0);
  772|       |         return {bcd, count_trailing_nonzeros(bcd)};
  773|       |#elif ZMIJ_USE_SSE4_1
  774|       |         uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  775|       |         uint64_t unshuffled_bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  776|       |         int len = unshuffled_bcd ? 8 - ctz(unshuffled_bcd) / 8 : 0;
  777|       |         return {bswap64(unshuffled_bcd), len};
  778|       |#elif ZMIJ_USE_SSE
  779|       |         uint64_t abcd_efgh =
  780|  1.34M|            (abcdefgh << 32) - uint64_t((10000ull << 32) - 1) * ((abcdefgh * div10k_sig) >> div10k_exp);
  781|  1.34M|         uint64_t bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  782|  1.34M|         return {bcd, count_trailing_nonzeros(bcd)};
  783|  1.34M|#endif
  784|  1.34M|      }
_ZN3glz4zmij11detail_impl6lo_u64EDv2_x:
  700|  1.34M|      {
  701|  1.34M|#if defined(__x86_64__) || defined(_M_X64)
  702|  1.34M|         return uint64_t(_mm_cvtsi128_si64(x));
  703|       |#else
  704|       |         uint64_t result;
  705|       |         _mm_storel_epi64(reinterpret_cast<__m128i*>(&result), x);
  706|       |         return result;
  707|       |#endif
  708|  1.34M|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  2.08M|      {
  713|  2.08M|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  2.08M|         const __m128i div10 = _mm_load_si128(m128ptr(&c.div10));
  715|       |#if ZMIJ_USE_SSE4_1
  716|       |         const __m128i neg100 = _mm_load_si128(m128ptr(&c.neg100));
  717|       |         const __m128i neg10 = _mm_load_si128(m128ptr(&c.neg10));
  718|       |
  719|       |         __m128i z = _mm_add_epi64(y, _mm_mullo_epi32(neg100, _mm_srli_epi32(_mm_mulhi_epu16(y, div100), 3)));
  720|       |         return _mm_add_epi16(z, _mm_mullo_epi16(neg10, _mm_mulhi_epu16(z, div10)));
  721|       |#else
  722|  2.08M|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  2.08M|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  2.08M|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  2.08M|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  2.08M|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  2.08M|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  2.08M|#endif
  730|  2.08M|      }
_ZN3glz4zmij11detail_impl23count_trailing_nonzerosEm:
  568|  1.34M|      {
  569|  1.34M|         if (is_big_endian) x = bswap64(x);
  ------------------
  |  Branch (569:14): [Folded, False: 1.34M]
  ------------------
  570|  1.34M|         return (size_t(70) - clz((x << 1) | 1)) / 8;
  571|  1.34M|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  2.08M|      {
  188|  2.08M|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 2.08M, False: 0]
  ------------------
  189|  2.08M|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  2.08M|         return __builtin_clzll(x);
  191|       |#elif defined(_M_AMD64) && defined(__AVX2__)
  192|       |         return __lzcnt64(x);
  193|       |#elif defined(_M_AMD64) || defined(_M_ARM64)
  194|       |         unsigned long idx;
  195|       |         _BitScanReverse64(&idx, x);
  196|       |         return 63 - idx;
  197|       |#elif ZMIJ_MSC_VER
  198|       |         unsigned long idx;
  199|       |         if (_BitScanReverse(&idx, uint32_t(x >> 32))) return 31 - idx;
  200|       |         _BitScanReverse(&idx, uint32_t(x));
  201|       |         return 63 - idx;
  202|       |#else
  203|       |         int n = 64;
  204|       |         for (; x > 0; x >>= 1) --n;
  205|       |         return n;
  206|       |#endif
  207|  2.08M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIfEEEERKNS2_5entryEi:
  559|  33.7k|         {
  560|  33.7k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  33.7k|            unsigned i = unsigned(dec_exp - min);
  562|  33.7k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 33.7k, False: 0]
  ------------------
  563|  33.7k|         }
_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|  1.26M|   {
 1119|  1.26M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  1.26M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  1.26M|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|  1.26M|      {
  976|  1.26M|         using namespace detail_impl;
  977|  1.26M|         using traits = float_traits<Float>;
  978|  1.26M|         auto bits = traits::to_bits(value);
  979|  1.26M|         auto bin_exp = traits::get_exp(bits);
  980|  1.26M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  1.26M|         *buffer = '-';
  983|  1.26M|         buffer += traits::is_negative(bits);
  984|       |
  985|  1.26M|         const auto* c = &consts_v<OptSize>;
  986|  1.26M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.26M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  1.26M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 1.26M, Folded]
  ------------------
  988|       |
  989|  1.26M|         to_decimal_result dec;
  990|  1.26M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  1.26M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 598k, False: 663k]
  ------------------
  992|   598k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 2.56k, False: 596k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  2.56k|               buffer -= traits::is_negative(bits);
 1000|  2.56k|               memcpy(buffer, "null", 4);
 1001|  2.56k|               return buffer + 4;
 1002|  2.56k|#endif
 1003|  2.56k|            }
 1004|   596k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 518k, False: 77.3k]
  ------------------
 1005|   518k|               memcpy(buffer, "0", 2);
 1006|   518k|               return buffer + 1;
 1007|   518k|            }
 1008|  77.3k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  77.3k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 43.9k, False: 33.3k]
  ------------------
 1010|  77.3k|            int32_t dec_exp = dec.exp;
 1011|   437k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 360k, False: 77.3k]
  ------------------
 1012|   360k|               dec_sig *= 10;
 1013|   360k|               --dec_exp;
 1014|   360k|            }
 1015|  77.3k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  77.3k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  77.3k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  77.3k|         }
 1019|   663k|         else {
 1020|   663k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|   663k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|   663k|         }
 1023|   740k|         bool extra_digit = dec.sig >= threshold;
 1024|   740k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|   740k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 740k]
  |  Branch (1025:40): [True: 0, False: 0]
  ------------------
 1026|      0|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 0, False: 0]
  ------------------
 1027|      0|            dec.has_last_digit = false;
 1028|      0|            --dec_exp;
 1029|      0|         }
 1030|       |
 1031|   740k|         char* start = buffer;
 1032|   740k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|   740k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|   740k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 311k, False: 428k]
  |  Branch (1034:54): [True: 5.88k, False: 305k]
  ------------------
 1035|  5.88k|            memcpy(start, &zeros_v, 8);
 1036|  5.88k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  5.88k|            buffer += fmt.start_pos;
 1038|  5.88k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  5.88k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  5.88k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 3.35k, False: 2.53k]
  ------------------
 1041|  5.88k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  5.88k|            start[fmt.point_pos] = '.';
 1043|  5.88k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 3.35k, False: 2.53k]
  ------------------
 1044|  5.88k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  5.88k|         }
 1046|   734k|         buffer += extra_digit;
 1047|   734k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|   734k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|   734k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 485k, False: 249k]
  ------------------
 1050|   734k|         start[0] = start[1];
 1051|   734k|         start[1] = '.';
 1052|   734k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|   734k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|   734k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|   734k|            int len = int(exp_data >> 48);
 1057|   734k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 734k]
  ------------------
 1058|   734k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 734k, Folded]
  ------------------
 1059|   734k|            return buffer + len;
 1060|   734k|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|   734k|         buffer[0] = 'E';
 1067|   734k|         buffer[1] = '-';
 1068|   734k|         buffer += 1 + unsigned(neg);
 1069|   734k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 734k]
  ------------------
 1070|   734k|         unsigned hundreds_written = 0;
 1071|   734k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|   734k|            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|   734k|            else {
 1077|   734k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|   734k|            }
 1079|   734k|            *buffer = static_cast<char>('0' + digit);
 1080|   734k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|   734k|            buffer += hundreds_written;
 1082|   734k|            dec_exp -= digit * 100;
 1083|   734k|         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|   734k|         const char* d2 = digits2(dec_exp);
 1087|   734k|         *buffer = d2[0];
 1088|   734k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|   734k|         *buffer = d2[1];
 1090|   734k|         return buffer + 1;
 1091|   740k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|  1.26M|         {
  359|  1.26M|            sig_type bits;
  360|  1.26M|            memcpy(&bits, &value, sizeof(value));
  361|  1.26M|            return bits;
  362|  1.26M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|  1.26M|         {
  368|  1.26M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  1.26M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|  1.26M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|  1.26M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|   740k|      {
  869|   740k|         using traits = float_traits<Float>;
  870|   740k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|   740k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|   740k|         constexpr uint64_t log10_2_sig = 78'913;
  874|   740k|         constexpr int32_t log10_2_exp = 18;
  875|   740k|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|   740k|         else {
  881|   740k|            dec_exp = compute_dec_exp(bin_exp);
  882|   740k|         }
  883|   740k|         uint64_t even = 1 - (bin_sig & 1);
  884|   740k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|   740k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 6.21k, False: 734k]
  ------------------
  887|  6.21k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  6.21k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  6.21k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  6.21k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  6.21k|            int64_t integral = p.hi >> extra_shift;
  893|  6.21k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  6.21k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  6.21k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  6.21k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  6.21k|            integral += round_up;
  899|       |
  900|  6.21k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  6.21k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  6.21k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 599, False: 5.61k]
  ------------------
  903|  6.21k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  6.21k|         }
  905|       |
  906|       |         if constexpr (num_bits == 32) {
  907|       |            constexpr int32_t float_extra_shift = 34;
  908|       |            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|       |            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|       |            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|       |            int64_t integral = p >> float_extra_shift;
  913|       |            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|       |            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|       |            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|       |            bool round_down = half_ulp > fractional;
  918|       |            integral += round_up;
  919|       |
  920|       |            uint64_t prod = fractional * 10;
  921|       |            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|       |            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|       |            digit +=
  924|       |               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  925|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|   734k|         else {
  928|   734k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 734k, Folded]
  ------------------
  929|   734k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|   734k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|   734k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|   734k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|   734k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|   734k|            int64_t integral = p.hi >> extra_shift;
  934|   734k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|   734k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|   734k|            bool round_up = fractional + half_ulp < fractional;
  937|   734k|            bool round_down = half_ulp > fractional;
  938|   734k|            integral += round_up;
  939|       |
  940|   734k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|   734k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 234, False: 734k]
  ------------------
  942|    234|               digit = 2;
  943|    234|            }
  944|   734k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|   734k|         }
  946|   734k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|   740k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|   740k|         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|   740k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|   740k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|   740k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|   740k|            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|   740k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|   740k|#endif
  844|       |
  845|   740k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|   740k|            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|   740k|            int len = 63 - clz((mask << 1) | 1);
  851|   740k|#endif
  852|   740k|            return {_mm_or_si128(bcd, zeros), len};
  853|   740k|#endif
  854|   740k|         }
  855|   740k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|   740k|      {
  736|   740k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|   740k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|   740k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|   740k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|   740k|         return to_bcd_4x4(y, c);
  741|   740k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|  5.88k|         {
  560|  5.88k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  5.88k|            unsigned i = unsigned(dec_exp - min);
  562|  5.88k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 5.88k, False: 0]
  ------------------
  563|  5.88k|         }

