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

_ZN3glz12beve_to_jsonITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__16vectorIcNS2_9allocatorIcEEEENS2_12basic_stringIcNS2_11char_traitsIcEES5_EEEENS_9error_ctxERKT0_RT1_:
  736|  10.0k|   {
  737|  10.0k|      size_t ix{}; // write index
  738|       |
  739|  10.0k|      auto* it = beve.data();
  740|  10.0k|      auto* end = it + beve.size();
  741|       |
  742|  10.0k|      context ctx{};
  743|       |
  744|  3.58M|      while (it < end) {
  ------------------
  |  Branch (744:14): [True: 3.58M, False: 2.62k]
  ------------------
  745|  3.58M|         detail::beve_to_json_value<Opts>(ctx, it, end, out, ix, 0);
  746|  3.58M|         if (bool(ctx.error)) {
  ------------------
  |  Branch (746:14): [True: 7.43k, False: 3.57M]
  ------------------
  747|  7.43k|            return {0, ctx.error};
  748|  7.43k|         }
  749|  3.58M|      }
  750|       |
  751|  2.62k|      if constexpr (resizable<JSONBuffer>) {
  752|  2.62k|         out.resize(ix);
  753|  2.62k|      }
  754|       |
  755|  2.62k|      return {};
  756|  10.0k|   }
_ZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_j:
  114|  63.2M|      {
  115|       |         // Check recursion depth limit
  116|  63.2M|         if (recursive_depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (116:14): [True: 17, False: 63.2M]
  ------------------
  117|     17|            ctx.error = error_code::exceeded_max_recursive_depth;
  118|     17|            return;
  119|     17|         }
  120|       |
  121|  63.2M|         if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (121:14): [True: 924, False: 63.2M]
  ------------------
  122|    924|            ctx.error = error_code::syntax_error;
  123|    924|            return;
  124|    924|         }
  125|  63.2M|         const auto tag = uint8_t(*it);
  126|  63.2M|         const auto type = tag & 0b00000'111;
  127|  63.2M|         switch (type) {
  128|  34.0M|         case tag::null: {
  ------------------
  |  Branch (128:10): [True: 34.0M, False: 29.1M]
  ------------------
  129|  34.0M|            if (tag & tag::boolean) {
  ------------------
  |  Branch (129:17): [True: 6.97M, False: 27.0M]
  ------------------
  130|  6.97M|               if (tag >> 4) {
  ------------------
  |  Branch (130:20): [True: 2.83M, False: 4.13M]
  ------------------
  131|  2.83M|                  dump("true", out, ix);
  132|  2.83M|               }
  133|  4.13M|               else {
  134|  4.13M|                  dump("false", out, ix);
  135|  4.13M|               }
  136|  6.97M|            }
  137|  27.0M|            else {
  138|  27.0M|               dump("null", out, ix);
  139|  27.0M|            }
  140|  34.0M|            ++it;
  141|  34.0M|            break;
  142|      0|         }
  143|   334k|         case tag::number: {
  ------------------
  |  Branch (143:10): [True: 334k, False: 62.9M]
  ------------------
  144|   334k|            ++it;
  145|   334k|            beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  146|   334k|            if (bool(ctx.error)) return;
  ------------------
  |  Branch (146:17): [True: 182, False: 334k]
  ------------------
  147|   334k|            break;
  148|   334k|         }
  149|   334k|         case tag::string: {
  ------------------
  |  Branch (149:10): [True: 93.5k, False: 63.1M]
  ------------------
  150|  93.5k|            ++it;
  151|  93.5k|            const auto n = int_from_compressed(ctx, it, end);
  152|  93.5k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (152:17): [True: 139, False: 93.4k]
  ------------------
  153|    139|               return;
  154|    139|            }
  155|  93.4k|            if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (155:17): [True: 168, False: 93.2k]
  ------------------
  156|    168|               ctx.error = error_code::unexpected_end;
  157|    168|               return;
  158|    168|            }
  159|  93.2k|            const sv value{reinterpret_cast<const char*>(it), n};
  160|  93.2k|            to<JSON, sv>::template op<Opts>(value, ctx, out, ix);
  161|  93.2k|            it += n;
  162|  93.2k|            break;
  163|  93.4k|         }
  164|  39.9k|         case tag::object: {
  ------------------
  |  Branch (164:10): [True: 39.9k, False: 63.2M]
  ------------------
  165|  39.9k|            ++it;
  166|       |
  167|  39.9k|            dump('{', out, ix);
  168|       |            if constexpr (Opts.prettify) {
  169|       |               ctx.depth += check_indentation_width(Opts);
  170|       |               dump('\n', out, ix);
  171|       |               dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  172|       |            }
  173|  39.9k|            else {
  174|  39.9k|               ++ctx.depth;
  175|  39.9k|            }
  176|       |
  177|  39.9k|            const auto key_type = (tag & 0b000'11'000) >> 3;
  178|  39.9k|            switch (key_type) {
  179|  31.9k|            case 0: {
  ------------------
  |  Branch (179:13): [True: 31.9k, False: 7.97k]
  ------------------
  180|       |               // string key
  181|  31.9k|               const auto n_fields = int_from_compressed(ctx, it, end);
  182|  31.9k|               if (bool(ctx.error)) {
  ------------------
  |  Branch (182:20): [True: 123, False: 31.8k]
  ------------------
  183|    123|                  return;
  184|    123|               }
  185|  59.1k|               for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (185:35): [True: 29.7k, False: 29.3k]
  ------------------
  186|       |                  // convert the key
  187|  29.7k|                  const auto n = int_from_compressed(ctx, it, end);
  188|  29.7k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (188:23): [True: 580, False: 29.1k]
  ------------------
  189|    580|                     return;
  190|    580|                  }
  191|  29.1k|                  if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (191:23): [True: 317, False: 28.8k]
  ------------------
  192|    317|                     ctx.error = error_code::unexpected_end;
  193|    317|                     return;
  194|    317|                  }
  195|  28.8k|                  const sv key{reinterpret_cast<const char*>(it), n};
  196|  28.8k|                  to<JSON, sv>::template op<Opts>(key, ctx, out, ix);
  197|       |                  if constexpr (Opts.prettify) {
  198|       |                     dump(": ", out, ix);
  199|       |                  }
  200|  28.8k|                  else {
  201|  28.8k|                     dump(':', out, ix);
  202|  28.8k|                  }
  203|  28.8k|                  it += n;
  204|  28.8k|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  205|  28.8k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (205:23): [True: 1.57k, False: 27.2k]
  ------------------
  206|  1.57k|                     return;
  207|  1.57k|                  }
  208|  27.2k|                  if (i != n_fields - 1) {
  ------------------
  |  Branch (208:23): [True: 26.5k, False: 724]
  ------------------
  209|  26.5k|                     dump(',', out, ix);
  210|       |                     if constexpr (Opts.prettify) {
  211|       |                        dump('\n', out, ix);
  212|       |                        dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  213|       |                     }
  214|  26.5k|                  }
  215|  27.2k|               }
  216|  29.3k|               break;
  217|  31.8k|            }
  218|  29.3k|            case 1:
  ------------------
  |  Branch (218:13): [True: 3.99k, False: 35.9k]
  ------------------
  219|  3.99k|               [[fallthrough]]; // signed integer key
  220|  7.95k|            case 2: {
  ------------------
  |  Branch (220:13): [True: 3.96k, False: 35.9k]
  ------------------
  221|       |               // unsigned integer key
  222|  7.95k|               const auto n_fields = int_from_compressed(ctx, it, end);
  223|  7.95k|               if (bool(ctx.error)) {
  ------------------
  |  Branch (223:20): [True: 79, False: 7.87k]
  ------------------
  224|     79|                  return;
  225|     79|               }
  226|   624k|               for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (226:35): [True: 617k, False: 6.70k]
  ------------------
  227|       |                  // convert the key
  228|   617k|                  dump('"', out, ix);
  229|   617k|                  beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  230|   617k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (230:23): [True: 266, False: 617k]
  ------------------
  231|    266|                     return;
  232|    266|                  }
  233|   617k|                  dump('"', out, ix);
  234|       |                  if constexpr (Opts.prettify) {
  235|       |                     dump(": ", out, ix);
  236|       |                  }
  237|   617k|                  else {
  238|   617k|                     dump(':', out, ix);
  239|   617k|                  }
  240|   617k|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  241|   617k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (241:23): [True: 906, False: 616k]
  ------------------
  242|    906|                     return;
  243|    906|                  }
  244|   616k|                  if (i != n_fields - 1) {
  ------------------
  |  Branch (244:23): [True: 614k, False: 1.95k]
  ------------------
  245|   614k|                     dump(',', out, ix);
  246|       |                     if constexpr (Opts.prettify) {
  247|       |                        dump('\n', out, ix);
  248|       |                        dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  249|       |                     }
  250|   614k|                  }
  251|   616k|               }
  252|  6.70k|               break;
  253|  7.87k|            }
  254|  6.70k|            default: {
  ------------------
  |  Branch (254:13): [True: 15, False: 39.9k]
  ------------------
  255|     15|               ctx.error = error_code::syntax_error;
  256|     15|               return;
  257|  7.87k|            }
  258|  39.9k|            }
  259|       |
  260|       |            if constexpr (Opts.prettify) {
  261|       |               ctx.depth -= check_indentation_width(Opts);
  262|       |               dump('\n', out, ix);
  263|       |               dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  264|       |            }
  265|  36.0k|            else {
  266|  36.0k|               --ctx.depth;
  267|  36.0k|            }
  268|  36.0k|            dump('}', out, ix);
  269|  36.0k|            break;
  270|  39.9k|         }
  271|   311k|         case tag::typed_array: {
  ------------------
  |  Branch (271:10): [True: 311k, False: 62.9M]
  ------------------
  272|       |            // Check for aligned typed array (tag == 0x5C)
  273|   311k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (273:17): [True: 16.7k, False: 294k]
  ------------------
  274|  16.7k|               ++it; // skip aligned header
  275|  16.7k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (275:20): [True: 8, False: 16.7k]
  ------------------
  276|      8|                  ctx.error = error_code::syntax_error;
  277|      8|                  return;
  278|      8|               }
  279|       |               // Read the numeric header byte
  280|  16.7k|               const auto numeric_tag = uint8_t(*it);
  281|  16.7k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (281:20): [True: 18, False: 16.6k]
  ------------------
  282|     18|                  ctx.error = error_code::syntax_error;
  283|     18|                  return;
  284|     18|               }
  285|  16.6k|               ++it; // skip numeric header
  286|  16.6k|               const auto value_type_inner = (numeric_tag & 0b000'11'000) >> 3;
  287|  16.6k|               const uint8_t byte_count_inner = byte_count_lookup[numeric_tag >> 5];
  288|       |
  289|  16.6k|               const auto n = int_from_compressed(ctx, it, end);
  290|  16.6k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (290:20): [True: 173, False: 16.5k]
  ------------------
  291|    173|                  return;
  292|    173|               }
  293|       |
  294|       |               // Read padding length byte and skip padding
  295|  16.5k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (295:20): [True: 93, False: 16.4k]
  ------------------
  296|     93|                  ctx.error = error_code::unexpected_end;
  297|     93|                  return;
  298|     93|               }
  299|  16.4k|               const uint8_t padding = uint8_t(*it);
  300|  16.4k|               ++it;
  301|  16.4k|               if (padding >= byte_count_inner) [[unlikely]] {
  ------------------
  |  Branch (301:20): [True: 42, False: 16.3k]
  ------------------
  302|     42|                  ctx.error = error_code::syntax_error;
  303|     42|                  return;
  304|     42|               }
  305|  16.3k|               if (typed_array_out_of_bounds(ctx, it, end, n, byte_count_inner, padding)) return;
  ------------------
  |  Branch (305:20): [True: 123, False: 16.2k]
  ------------------
  306|  16.2k|               it += padding;
  307|       |
  308|       |               // Now decode as a normal numeric typed array
  309|  16.2k|               dump('[', out, ix);
  310|       |
  311|  16.2k|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  16.2k|                  for (size_t i = 0; i < n; ++i) {
  313|  16.2k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  314|  16.2k|                        ctx.error = error_code::unexpected_end;
  315|  16.2k|                        return;
  316|  16.2k|                     }
  317|  16.2k|                     using V = std::remove_cvref_t<T>;
  318|  16.2k|                     std::memcpy(&value, it, sizeof(V));
  319|  16.2k|                     if constexpr (std::endian::native == std::endian::big) {
  320|  16.2k|                        byteswap_le(value);
  321|  16.2k|                     }
  322|  16.2k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  16.2k|                     it += sizeof(T);
  324|  16.2k|                     if (i != n - 1) {
  325|  16.2k|                        dump(',', out, ix);
  326|  16.2k|                     }
  327|  16.2k|                  }
  328|  16.2k|               };
  329|       |
  330|  16.2k|               switch (value_type_inner) {
  331|  1.32k|               case 0: {
  ------------------
  |  Branch (331:16): [True: 1.32k, False: 14.9k]
  ------------------
  332|  1.32k|                  switch (byte_count_inner) {
  333|    820|                  case 4:
  ------------------
  |  Branch (333:19): [True: 820, False: 508]
  ------------------
  334|    820|                     write_aligned_array(float{});
  335|    820|                     break;
  336|    504|                  case 8:
  ------------------
  |  Branch (336:19): [True: 504, False: 824]
  ------------------
  337|    504|                     write_aligned_array(double{});
  338|    504|                     break;
  339|      4|                  default:
  ------------------
  |  Branch (339:19): [True: 4, False: 1.32k]
  ------------------
  340|      4|                     ctx.error = error_code::syntax_error;
  341|      4|                     return;
  342|  1.32k|                  }
  343|  1.32k|                  break;
  344|  1.32k|               }
  345|  7.35k|               case 1: {
  ------------------
  |  Branch (345:16): [True: 7.35k, False: 8.89k]
  ------------------
  346|  7.35k|                  switch (byte_count_inner) {
  347|  4.88k|                  case 1:
  ------------------
  |  Branch (347:19): [True: 4.88k, False: 2.47k]
  ------------------
  348|  4.88k|                     write_aligned_array(int8_t{});
  349|  4.88k|                     break;
  350|    604|                  case 2:
  ------------------
  |  Branch (350:19): [True: 604, False: 6.75k]
  ------------------
  351|    604|                     write_aligned_array(int16_t{});
  352|    604|                     break;
  353|  1.29k|                  case 4:
  ------------------
  |  Branch (353:19): [True: 1.29k, False: 6.05k]
  ------------------
  354|  1.29k|                     write_aligned_array(int32_t{});
  355|  1.29k|                     break;
  356|    569|                  case 8:
  ------------------
  |  Branch (356:19): [True: 569, False: 6.78k]
  ------------------
  357|    569|                     write_aligned_array(int64_t{});
  358|    569|                     break;
  359|      2|                  default:
  ------------------
  |  Branch (359:19): [True: 2, False: 7.35k]
  ------------------
  360|      2|                     ctx.error = error_code::syntax_error;
  361|      2|                     return;
  362|  7.35k|                  }
  363|  7.35k|                  break;
  364|  7.35k|               }
  365|  7.56k|               case 2: {
  ------------------
  |  Branch (365:16): [True: 7.56k, False: 8.68k]
  ------------------
  366|  7.56k|                  switch (byte_count_inner) {
  367|    534|                  case 1:
  ------------------
  |  Branch (367:19): [True: 534, False: 7.02k]
  ------------------
  368|    534|                     write_aligned_array(uint8_t{});
  369|    534|                     break;
  370|    791|                  case 2:
  ------------------
  |  Branch (370:19): [True: 791, False: 6.77k]
  ------------------
  371|    791|                     write_aligned_array(uint16_t{});
  372|    791|                     break;
  373|  5.30k|                  case 4:
  ------------------
  |  Branch (373:19): [True: 5.30k, False: 2.25k]
  ------------------
  374|  5.30k|                     write_aligned_array(uint32_t{});
  375|  5.30k|                     break;
  376|    928|                  case 8:
  ------------------
  |  Branch (376:19): [True: 928, False: 6.63k]
  ------------------
  377|    928|                     write_aligned_array(uint64_t{});
  378|    928|                     break;
  379|      1|                  default:
  ------------------
  |  Branch (379:19): [True: 1, False: 7.56k]
  ------------------
  380|      1|                     ctx.error = error_code::syntax_error;
  381|      1|                     return;
  382|  7.56k|                  }
  383|  7.56k|                  break;
  384|  7.56k|               }
  385|  7.56k|               default:
  ------------------
  |  Branch (385:16): [True: 2, False: 16.2k]
  ------------------
  386|      2|                  ctx.error = error_code::syntax_error;
  387|      2|                  return;
  388|  16.2k|               }
  389|       |
  390|  16.2k|               dump(']', out, ix);
  391|  16.2k|               break;
  392|  16.2k|            }
  393|       |
  394|   294k|            ++it;
  395|   294k|            const auto value_type = (tag & 0b000'11'000) >> 3;
  396|   294k|            const uint8_t byte_count = byte_count_lookup[tag >> 5];
  397|       |
  398|   294k|            auto write_array = [&]<class T>(T&& value) {
  399|   294k|               const auto n = int_from_compressed(ctx, it, end);
  400|   294k|               if (bool(ctx.error)) [[unlikely]] {
  401|   294k|                  return;
  402|   294k|               }
  403|   294k|               for (size_t i = 0; i < n; ++i) {
  404|   294k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  405|   294k|                     ctx.error = error_code::unexpected_end;
  406|   294k|                     return;
  407|   294k|                  }
  408|   294k|                  using V = std::remove_cvref_t<T>;
  409|   294k|                  std::memcpy(&value, it, sizeof(V));
  410|   294k|                  if constexpr (std::endian::native == std::endian::big) {
  411|   294k|                     byteswap_le(value);
  412|   294k|                  }
  413|   294k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   294k|                  it += sizeof(T);
  415|   294k|                  if (i != n - 1) {
  416|   294k|                     dump(',', out, ix);
  417|   294k|                  }
  418|   294k|               }
  419|   294k|            };
  420|       |
  421|   294k|            dump('[', out, ix);
  422|       |
  423|   294k|            switch (value_type) {
  424|  4.65k|            case 0: {
  ------------------
  |  Branch (424:13): [True: 4.65k, False: 289k]
  ------------------
  425|       |               // floating point
  426|  4.65k|               switch (byte_count) {
  427|  2.01k|               case 4: {
  ------------------
  |  Branch (427:16): [True: 2.01k, False: 2.64k]
  ------------------
  428|  2.01k|                  write_array(float{});
  429|  2.01k|                  break;
  430|      0|               }
  431|  2.62k|               case 8: {
  ------------------
  |  Branch (431:16): [True: 2.62k, False: 2.03k]
  ------------------
  432|  2.62k|                  write_array(double{});
  433|  2.62k|                  break;
  434|      0|               }
  435|     24|               default: {
  ------------------
  |  Branch (435:16): [True: 24, False: 4.63k]
  ------------------
  436|     24|                  ctx.error = error_code::syntax_error;
  437|     24|                  return;
  438|      0|               }
  439|  4.65k|               }
  440|  4.63k|               break;
  441|  4.65k|            }
  442|  23.6k|            case 1: {
  ------------------
  |  Branch (442:13): [True: 23.6k, False: 270k]
  ------------------
  443|       |               // signed integer
  444|  23.6k|               switch (byte_count) {
  445|  3.98k|               case 1: {
  ------------------
  |  Branch (445:16): [True: 3.98k, False: 19.6k]
  ------------------
  446|  3.98k|                  write_array(int8_t{});
  447|  3.98k|                  break;
  448|      0|               }
  449|  15.6k|               case 2: {
  ------------------
  |  Branch (449:16): [True: 15.6k, False: 7.99k]
  ------------------
  450|  15.6k|                  write_array(int16_t{});
  451|  15.6k|                  break;
  452|      0|               }
  453|  2.56k|               case 4: {
  ------------------
  |  Branch (453:16): [True: 2.56k, False: 21.0k]
  ------------------
  454|  2.56k|                  write_array(int32_t{});
  455|  2.56k|                  break;
  456|      0|               }
  457|  1.42k|               case 8: {
  ------------------
  |  Branch (457:16): [True: 1.42k, False: 22.2k]
  ------------------
  458|  1.42k|                  write_array(int64_t{});
  459|  1.42k|                  break;
  460|      0|               }
  461|     13|               default: {
  ------------------
  |  Branch (461:16): [True: 13, False: 23.6k]
  ------------------
  462|     13|                  ctx.error = error_code::syntax_error;
  463|     13|                  return;
  464|      0|               }
  465|  23.6k|               }
  466|  23.6k|               break;
  467|  23.6k|            }
  468|   263k|            case 2: {
  ------------------
  |  Branch (468:13): [True: 263k, False: 30.7k]
  ------------------
  469|       |               // unsigned integer
  470|   263k|               switch (byte_count) {
  471|   147k|               case 1: {
  ------------------
  |  Branch (471:16): [True: 147k, False: 116k]
  ------------------
  472|   147k|                  write_array(uint8_t{});
  473|   147k|                  break;
  474|      0|               }
  475|  6.00k|               case 2: {
  ------------------
  |  Branch (475:16): [True: 6.00k, False: 257k]
  ------------------
  476|  6.00k|                  write_array(uint16_t{});
  477|  6.00k|                  break;
  478|      0|               }
  479|   106k|               case 4: {
  ------------------
  |  Branch (479:16): [True: 106k, False: 157k]
  ------------------
  480|   106k|                  write_array(uint32_t{});
  481|   106k|                  break;
  482|      0|               }
  483|  4.17k|               case 8: {
  ------------------
  |  Branch (483:16): [True: 4.17k, False: 259k]
  ------------------
  484|  4.17k|                  write_array(uint64_t{});
  485|  4.17k|                  break;
  486|      0|               }
  487|      9|               default: {
  ------------------
  |  Branch (487:16): [True: 9, False: 263k]
  ------------------
  488|      9|                  ctx.error = error_code::syntax_error;
  489|      9|                  return;
  490|      0|               }
  491|   263k|               }
  492|   263k|               break;
  493|   263k|            }
  494|   263k|            case 3: {
  ------------------
  |  Branch (494:13): [True: 2.43k, False: 292k]
  ------------------
  495|       |               // string or boolean
  496|  2.43k|               const auto string_or_boolean = (tag & 0b001'00'000) >> 5;
  497|  2.43k|               switch (string_or_boolean) {
  498|     22|               case 0: {
  ------------------
  |  Branch (498:16): [True: 22, False: 2.41k]
  ------------------
  499|       |                  // boolean array (bit packed)
  500|       |                  // TODO: implement
  501|     22|                  ctx.error = error_code::syntax_error;
  502|     22|                  break;
  503|      0|               }
  504|  2.41k|               case 1: {
  ------------------
  |  Branch (504:16): [True: 2.41k, False: 22]
  ------------------
  505|       |                  // array of strings
  506|  2.41k|                  const auto n_strings = int_from_compressed(ctx, it, end);
  507|  2.41k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (507:23): [True: 30, False: 2.38k]
  ------------------
  508|     30|                     return;
  509|     30|                  }
  510|  8.42k|                  for (size_t i = 0; i < n_strings; ++i) {
  ------------------
  |  Branch (510:38): [True: 6.37k, False: 2.04k]
  ------------------
  511|  6.37k|                     const auto n = int_from_compressed(ctx, it, end);
  512|  6.37k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (512:26): [True: 233, False: 6.14k]
  ------------------
  513|    233|                        return;
  514|    233|                     }
  515|  6.14k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (515:26): [True: 104, False: 6.03k]
  ------------------
  516|    104|                        ctx.error = error_code::unexpected_end;
  517|    104|                        return;
  518|    104|                     }
  519|  6.03k|                     const sv value{reinterpret_cast<const char*>(it), n};
  520|  6.03k|                     to<JSON, sv>::template op<Opts>(value, ctx, out, ix);
  521|  6.03k|                     it += n;
  522|  6.03k|                     if (i != n_strings - 1) {
  ------------------
  |  Branch (522:26): [True: 5.73k, False: 307]
  ------------------
  523|  5.73k|                        dump(',', out, ix);
  524|  5.73k|                     }
  525|  6.03k|                  }
  526|  2.04k|                  break;
  527|  2.38k|               }
  528|  2.04k|               default: {
  ------------------
  |  Branch (528:16): [True: 0, False: 2.43k]
  ------------------
  529|      0|                  ctx.error = error_code::syntax_error;
  530|      0|                  return;
  531|  2.38k|               }
  532|  2.43k|               }
  533|  2.06k|               break;
  534|  2.43k|            }
  535|  2.06k|            default: {
  ------------------
  |  Branch (535:13): [True: 0, False: 294k]
  ------------------
  536|      0|               ctx.error = error_code::syntax_error;
  537|      0|               return;
  538|  2.43k|            }
  539|   294k|            }
  540|       |
  541|   294k|            dump(']', out, ix);
  542|       |
  543|   294k|            break;
  544|   294k|         }
  545|  23.1k|         case tag::generic_array: {
  ------------------
  |  Branch (545:10): [True: 23.1k, False: 63.2M]
  ------------------
  546|  23.1k|            ++it;
  547|  23.1k|            const auto n = int_from_compressed(ctx, it, end);
  548|  23.1k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (548:17): [True: 47, False: 23.1k]
  ------------------
  549|     47|               return;
  550|     47|            }
  551|  23.1k|            dump('[', out, ix);
  552|  3.20M|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (552:32): [True: 3.19M, False: 18.6k]
  ------------------
  553|  3.19M|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  554|  3.19M|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (554:20): [True: 4.46k, False: 3.18M]
  ------------------
  555|  4.46k|                  return;
  556|  4.46k|               }
  557|  3.18M|               if (i != n - 1) {
  ------------------
  |  Branch (557:20): [True: 3.18M, False: 2.89k]
  ------------------
  558|  3.18M|                  dump(',', out, ix);
  559|  3.18M|               }
  560|  3.18M|            }
  561|  18.6k|            dump(']', out, ix);
  562|  18.6k|            break;
  563|  23.1k|         }
  564|  28.3M|         case tag::extensions: {
  ------------------
  |  Branch (564:10): [True: 28.3M, False: 34.8M]
  ------------------
  565|  28.3M|            const uint8_t extension = tag >> 3;
  566|  28.3M|            switch (extension) {
  567|   400k|            case 0: {
  ------------------
  |  Branch (567:13): [True: 400k, False: 27.9M]
  ------------------
  568|       |               // delimiter
  569|   400k|               ++it;
  570|   400k|               dump('\n', out, ix);
  571|   400k|               break;
  572|      0|            }
  573|  47.3k|            case 1: {
  ------------------
  |  Branch (573:13): [True: 47.3k, False: 28.3M]
  ------------------
  574|       |               // legacy (Version 1) type tag: transcode by dropping the positional index and
  575|       |               // emitting the value. Version 2 variants are ordinary objects/values transcoded by
  576|       |               // their normal cases and never reach here.
  577|  47.3k|               ++it;
  578|  47.3k|               skip_compressed_int(ctx, it, end);
  579|  47.3k|               if (bool(ctx.error)) return;
  ------------------
  |  Branch (579:20): [True: 2, False: 47.3k]
  ------------------
  580|       |
  581|  47.3k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  582|  47.3k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (582:20): [True: 1.04k, False: 46.3k]
  ------------------
  583|  1.04k|                  return;
  584|  1.04k|               }
  585|  46.3k|               break;
  586|  47.3k|            }
  587|  27.9M|            case 2: {
  ------------------
  |  Branch (587:13): [True: 27.9M, False: 453k]
  ------------------
  588|       |               // matrices
  589|  27.9M|               ++it;
  590|  27.9M|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (590:20): [True: 55, False: 27.9M]
  ------------------
  591|     55|                  ctx.error = error_code::syntax_error;
  592|     55|                  return;
  593|     55|               }
  594|  27.9M|               const auto matrix_header = uint8_t(*it);
  595|  27.9M|               ++it;
  596|       |
  597|  27.9M|               dump('{', out, ix);
  598|       |               if constexpr (Opts.prettify) {
  599|       |                  ctx.depth += check_indentation_width(Opts);
  600|       |                  dump('\n', out, ix);
  601|       |                  dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  602|       |               }
  603|  27.9M|               else {
  604|  27.9M|                  ++ctx.depth;
  605|  27.9M|               }
  606|       |
  607|       |               if constexpr (Opts.prettify) {
  608|       |                  dump<R"("layout": )">(out, ix);
  609|       |               }
  610|  27.9M|               else {
  611|  27.9M|                  dump<R"("layout":)">(out, ix);
  612|  27.9M|               }
  613|       |
  614|  27.9M|               const auto layout = matrix_header & 0b0000000'1;
  615|  27.9M|               layout ? dump<R"("layout_right")">(out, ix) : dump<R"("layout_left")">(out, ix);
  ------------------
  |  Branch (615:16): [True: 834k, False: 27.0M]
  ------------------
  616|       |
  617|  27.9M|               dump(',', out, ix);
  618|       |               if constexpr (Opts.prettify) {
  619|       |                  dump('\n', out, ix);
  620|       |                  dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  621|       |               }
  622|       |
  623|       |               if constexpr (Opts.prettify) {
  624|       |                  dump<R"("extents": )">(out, ix);
  625|       |               }
  626|  27.9M|               else {
  627|  27.9M|                  dump<R"("extents":)">(out, ix);
  628|  27.9M|               }
  629|       |
  630|  27.9M|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  631|  27.9M|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (631:20): [True: 78.9k, False: 27.8M]
  ------------------
  632|  78.9k|                  return;
  633|  78.9k|               }
  634|       |
  635|  27.8M|               dump(',', out, ix);
  636|       |               if constexpr (Opts.prettify) {
  637|       |                  dump('\n', out, ix);
  638|       |                  dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  639|       |               }
  640|       |
  641|       |               if constexpr (Opts.prettify) {
  642|       |                  dump<R"("value": )">(out, ix);
  643|       |               }
  644|  27.8M|               else {
  645|  27.8M|                  dump<R"("value":)">(out, ix);
  646|  27.8M|               }
  647|       |
  648|  27.8M|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  649|  27.8M|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (649:20): [True: 6.29k, False: 27.8M]
  ------------------
  650|  6.29k|                  return;
  651|  6.29k|               }
  652|       |
  653|       |               if constexpr (Opts.prettify) {
  654|       |                  ctx.depth -= check_indentation_width(Opts);
  655|       |                  dump('\n', out, ix);
  656|       |                  dumpn(check_indentation_char(Opts), ctx.depth, out, ix);
  657|       |               }
  658|  27.8M|               else {
  659|  27.8M|                  --ctx.depth;
  660|  27.8M|               }
  661|  27.8M|               dump('}', out, ix);
  662|  27.8M|               break;
  663|  27.8M|            }
  664|  6.05k|            case 3: {
  ------------------
  |  Branch (664:13): [True: 6.05k, False: 28.3M]
  ------------------
  665|       |               // complex numbers
  666|  6.05k|               ++it;
  667|  6.05k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (667:20): [True: 3, False: 6.04k]
  ------------------
  668|      3|                  ctx.error = error_code::syntax_error;
  669|      3|                  return;
  670|      3|               }
  671|  6.04k|               const auto complex_header = uint8_t(*it);
  672|  6.04k|               ++it;
  673|       |
  674|  6.04k|               const auto complex_type = complex_header & 0b0000000'1;
  675|  6.04k|               if (complex_type) {
  ------------------
  |  Branch (675:20): [True: 4.91k, False: 1.13k]
  ------------------
  676|       |                  // complex array
  677|  4.91k|                  const auto number_tag = complex_header & 0b111'00000;
  678|  4.91k|                  const auto n = int_from_compressed(ctx, it, end);
  679|  4.91k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (679:23): [True: 34, False: 4.88k]
  ------------------
  680|     34|                     return;
  681|     34|                  }
  682|  4.88k|                  dump('[', out, ix);
  683|   222k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (683:38): [True: 218k, False: 4.55k]
  ------------------
  684|   218k|                     dump('[', out, ix);
  685|   218k|                     beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  686|   218k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (686:26): [True: 213, False: 218k]
  ------------------
  687|    213|                        return;
  688|    213|                     }
  689|   218k|                     dump(',', out, ix);
  690|   218k|                     beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  691|   218k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (691:26): [True: 115, False: 218k]
  ------------------
  692|    115|                        return;
  693|    115|                     }
  694|   218k|                     dump(']', out, ix);
  695|   218k|                     if (i != n - 1) {
  ------------------
  |  Branch (695:26): [True: 217k, False: 502]
  ------------------
  696|   217k|                        dump(',', out, ix);
  697|   217k|                     }
  698|   218k|                  }
  699|  4.55k|                  dump(']', out, ix);
  700|  4.55k|               }
  701|  1.13k|               else {
  702|       |                  // complex number
  703|  1.13k|                  const auto number_tag = complex_header & 0b111'00000;
  704|  1.13k|                  dump('[', out, ix);
  705|  1.13k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  706|  1.13k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (706:23): [True: 45, False: 1.08k]
  ------------------
  707|     45|                     return;
  708|     45|                  }
  709|  1.08k|                  dump(',', out, ix);
  710|  1.08k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  711|  1.08k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (711:23): [True: 50, False: 1.03k]
  ------------------
  712|     50|                     return;
  713|     50|                  }
  714|  1.03k|                  dump(']', out, ix);
  715|  1.03k|               }
  716|       |
  717|  5.59k|               break;
  718|  6.04k|            }
  719|  5.59k|            default: {
  ------------------
  |  Branch (719:13): [True: 76, False: 28.3M]
  ------------------
  720|     76|               ctx.error = error_code::syntax_error;
  721|     76|               return;
  722|  6.04k|            }
  723|  28.3M|            }
  724|  28.3M|            break;
  725|  28.3M|         }
  726|  28.3M|         default: {
  ------------------
  |  Branch (726:10): [True: 100, False: 63.2M]
  ------------------
  727|    100|            ctx.error = error_code::syntax_error;
  728|    100|            return;
  729|  28.3M|         }
  730|  63.2M|         }
  731|  63.2M|      }
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|   952k|      {
   16|   952k|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|   952k|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|   952k|         auto write_number = [&]<class T>(T&& value) {
   20|   952k|            if ((it + sizeof(T)) > end) [[unlikely]] {
   21|   952k|               ctx.error = error_code::syntax_error;
   22|   952k|               return;
   23|   952k|            }
   24|   952k|            using V = std::remove_cvref_t<T>;
   25|   952k|            std::memcpy(&value, it, sizeof(V));
   26|   952k|            if constexpr (std::endian::native == std::endian::big) {
   27|   952k|               byteswap_le(value);
   28|   952k|            }
   29|   952k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   952k|            it += sizeof(T);
   31|   952k|         };
   32|       |
   33|   952k|         switch (number_type) {
   34|   109k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 109k, False: 843k]
  ------------------
   35|       |            // floating point
   36|   109k|            switch (byte_count) {
   37|   107k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 107k, False: 1.63k]
  ------------------
   38|   107k|               write_number(float{});
   39|   107k|               break;
   40|      0|            }
   41|  1.59k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 1.59k, False: 107k]
  ------------------
   42|  1.59k|               write_number(double{});
   43|  1.59k|               break;
   44|      0|            }
   45|     41|            default: {
  ------------------
  |  Branch (45:13): [True: 41, False: 109k]
  ------------------
   46|     41|               ctx.error = error_code::syntax_error;
   47|     41|               return;
   48|      0|            }
   49|   109k|            }
   50|   109k|            break;
   51|   109k|         }
   52|   420k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 420k, False: 531k]
  ------------------
   53|       |            // signed integer
   54|   420k|            switch (byte_count) {
   55|   219k|            case 1: {
  ------------------
  |  Branch (55:13): [True: 219k, False: 200k]
  ------------------
   56|   219k|               write_number(int8_t{});
   57|   219k|               break;
   58|      0|            }
   59|  47.2k|            case 2: {
  ------------------
  |  Branch (59:13): [True: 47.2k, False: 373k]
  ------------------
   60|  47.2k|               write_number(int16_t{});
   61|  47.2k|               break;
   62|      0|            }
   63|   135k|            case 4: {
  ------------------
  |  Branch (63:13): [True: 135k, False: 285k]
  ------------------
   64|   135k|               write_number(int32_t{});
   65|   135k|               break;
   66|      0|            }
   67|  17.9k|            case 8: {
  ------------------
  |  Branch (67:13): [True: 17.9k, False: 402k]
  ------------------
   68|  17.9k|               write_number(int64_t{});
   69|  17.9k|               break;
   70|      0|            }
   71|     30|            default: {
  ------------------
  |  Branch (71:13): [True: 30, False: 420k]
  ------------------
   72|     30|               ctx.error = error_code::syntax_error;
   73|     30|               return;
   74|      0|            }
   75|   420k|            }
   76|   420k|            break;
   77|   420k|         }
   78|   422k|         case 2: {
  ------------------
  |  Branch (78:10): [True: 422k, False: 529k]
  ------------------
   79|       |            // unsigned integer
   80|   422k|            switch (byte_count) {
   81|   263k|            case 1: {
  ------------------
  |  Branch (81:13): [True: 263k, False: 158k]
  ------------------
   82|   263k|               write_number(uint8_t{});
   83|   263k|               break;
   84|      0|            }
   85|  25.4k|            case 2: {
  ------------------
  |  Branch (85:13): [True: 25.4k, False: 397k]
  ------------------
   86|  25.4k|               write_number(uint16_t{});
   87|  25.4k|               break;
   88|      0|            }
   89|  12.9k|            case 4: {
  ------------------
  |  Branch (89:13): [True: 12.9k, False: 409k]
  ------------------
   90|  12.9k|               write_number(uint32_t{});
   91|  12.9k|               break;
   92|      0|            }
   93|   120k|            case 8: {
  ------------------
  |  Branch (93:13): [True: 120k, False: 302k]
  ------------------
   94|   120k|               write_number(uint64_t{});
   95|   120k|               break;
   96|      0|            }
   97|     36|            default: {
  ------------------
  |  Branch (97:13): [True: 36, False: 422k]
  ------------------
   98|     36|               ctx.error = error_code::syntax_error;
   99|     36|               return;
  100|      0|            }
  101|   422k|            }
  102|   422k|            break;
  103|   422k|         }
  104|   422k|         default: {
  ------------------
  |  Branch (104:10): [True: 27, False: 952k]
  ------------------
  105|     27|            ctx.error = error_code::syntax_error;
  106|     27|            return;
  107|   422k|         }
  108|   952k|         }
  109|   952k|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|   107k|         auto write_number = [&]<class T>(T&& value) {
   20|   107k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 11, False: 107k]
  ------------------
   21|     11|               ctx.error = error_code::syntax_error;
   22|     11|               return;
   23|     11|            }
   24|   107k|            using V = std::remove_cvref_t<T>;
   25|   107k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   107k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   107k|            it += sizeof(T);
   31|   107k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|  1.59k|         auto write_number = [&]<class T>(T&& value) {
   20|  1.59k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 10, False: 1.58k]
  ------------------
   21|     10|               ctx.error = error_code::syntax_error;
   22|     10|               return;
   23|     10|            }
   24|  1.58k|            using V = std::remove_cvref_t<T>;
   25|  1.58k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  1.58k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  1.58k|            it += sizeof(T);
   31|  1.58k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIaEEDaSU_:
   19|   219k|         auto write_number = [&]<class T>(T&& value) {
   20|   219k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 83, False: 219k]
  ------------------
   21|     83|               ctx.error = error_code::syntax_error;
   22|     83|               return;
   23|     83|            }
   24|   219k|            using V = std::remove_cvref_t<T>;
   25|   219k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   219k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   219k|            it += sizeof(T);
   31|   219k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIsEEDaSU_:
   19|  47.2k|         auto write_number = [&]<class T>(T&& value) {
   20|  47.2k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 26, False: 47.2k]
  ------------------
   21|     26|               ctx.error = error_code::syntax_error;
   22|     26|               return;
   23|     26|            }
   24|  47.2k|            using V = std::remove_cvref_t<T>;
   25|  47.2k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  47.2k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  47.2k|            it += sizeof(T);
   31|  47.2k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIiEEDaSU_:
   19|   135k|         auto write_number = [&]<class T>(T&& value) {
   20|   135k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 19, False: 135k]
  ------------------
   21|     19|               ctx.error = error_code::syntax_error;
   22|     19|               return;
   23|     19|            }
   24|   135k|            using V = std::remove_cvref_t<T>;
   25|   135k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   135k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   135k|            it += sizeof(T);
   31|   135k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIlEEDaSU_:
   19|  17.9k|         auto write_number = [&]<class T>(T&& value) {
   20|  17.9k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 18, False: 17.8k]
  ------------------
   21|     18|               ctx.error = error_code::syntax_error;
   22|     18|               return;
   23|     18|            }
   24|  17.8k|            using V = std::remove_cvref_t<T>;
   25|  17.8k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  17.8k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  17.8k|            it += sizeof(T);
   31|  17.8k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIhEEDaSU_:
   19|   263k|         auto write_number = [&]<class T>(T&& value) {
   20|   263k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 72, False: 263k]
  ------------------
   21|     72|               ctx.error = error_code::syntax_error;
   22|     72|               return;
   23|     72|            }
   24|   263k|            using V = std::remove_cvref_t<T>;
   25|   263k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   263k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   263k|            it += sizeof(T);
   31|   263k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clItEEDaSU_:
   19|  25.4k|         auto write_number = [&]<class T>(T&& value) {
   20|  25.4k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 38, False: 25.4k]
  ------------------
   21|     38|               ctx.error = error_code::syntax_error;
   22|     38|               return;
   23|     38|            }
   24|  25.4k|            using V = std::remove_cvref_t<T>;
   25|  25.4k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  25.4k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  25.4k|            it += sizeof(T);
   31|  25.4k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIjEEDaSU_:
   19|  12.9k|         auto write_number = [&]<class T>(T&& value) {
   20|  12.9k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 19, False: 12.8k]
  ------------------
   21|     19|               ctx.error = error_code::syntax_error;
   22|     19|               return;
   23|     19|            }
   24|  12.8k|            using V = std::remove_cvref_t<T>;
   25|  12.8k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  12.8k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  12.8k|            it += sizeof(T);
   31|  12.8k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clImEEDaSU_:
   19|   120k|         auto write_number = [&]<class T>(T&& value) {
   20|   120k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 18, False: 120k]
  ------------------
   21|     18|               ctx.error = error_code::syntax_error;
   22|     18|               return;
   23|     18|            }
   24|   120k|            using V = std::remove_cvref_t<T>;
   25|   120k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   120k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   120k|            it += sizeof(T);
   31|   120k|         };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIfEEDaSR_:
  311|    820|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  18.0k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 17.2k, False: 820]
  ------------------
  313|  17.2k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 17.2k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  17.2k|                     using V = std::remove_cvref_t<T>;
  318|  17.2k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  17.2k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  17.2k|                     it += sizeof(T);
  324|  17.2k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 16.8k, False: 409]
  ------------------
  325|  16.8k|                        dump(',', out, ix);
  326|  16.8k|                     }
  327|  17.2k|                  }
  328|    820|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIdEEDaSR_:
  311|    504|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  36.3k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 35.8k, False: 504]
  ------------------
  313|  35.8k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 35.8k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  35.8k|                     using V = std::remove_cvref_t<T>;
  318|  35.8k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  35.8k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  35.8k|                     it += sizeof(T);
  324|  35.8k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 35.6k, False: 249]
  ------------------
  325|  35.6k|                        dump(',', out, ix);
  326|  35.6k|                     }
  327|  35.8k|                  }
  328|    504|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIaEEDaSR_:
  311|  4.88k|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  67.6k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 62.7k, False: 4.88k]
  ------------------
  313|  62.7k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 62.7k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  62.7k|                     using V = std::remove_cvref_t<T>;
  318|  62.7k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  62.7k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  62.7k|                     it += sizeof(T);
  324|  62.7k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 58.2k, False: 4.46k]
  ------------------
  325|  58.2k|                        dump(',', out, ix);
  326|  58.2k|                     }
  327|  62.7k|                  }
  328|  4.88k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIsEEDaSR_:
  311|    604|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|   748k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 748k, False: 604]
  ------------------
  313|   748k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 748k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|   748k|                     using V = std::remove_cvref_t<T>;
  318|   748k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|   748k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|   748k|                     it += sizeof(T);
  324|   748k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 747k, False: 328]
  ------------------
  325|   747k|                        dump(',', out, ix);
  326|   747k|                     }
  327|   748k|                  }
  328|    604|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIiEEDaSR_:
  311|  1.29k|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|   174k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 173k, False: 1.29k]
  ------------------
  313|   173k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 173k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|   173k|                     using V = std::remove_cvref_t<T>;
  318|   173k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|   173k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|   173k|                     it += sizeof(T);
  324|   173k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 172k, False: 635]
  ------------------
  325|   172k|                        dump(',', out, ix);
  326|   172k|                     }
  327|   173k|                  }
  328|  1.29k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIlEEDaSR_:
  311|    569|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  18.3k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 17.7k, False: 569]
  ------------------
  313|  17.7k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 17.7k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  17.7k|                     using V = std::remove_cvref_t<T>;
  318|  17.7k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  17.7k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  17.7k|                     it += sizeof(T);
  324|  17.7k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 17.4k, False: 298]
  ------------------
  325|  17.4k|                        dump(',', out, ix);
  326|  17.4k|                     }
  327|  17.7k|                  }
  328|    569|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIhEEDaSR_:
  311|    534|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  23.2k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 22.7k, False: 534]
  ------------------
  313|  22.7k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 22.7k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  22.7k|                     using V = std::remove_cvref_t<T>;
  318|  22.7k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  22.7k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  22.7k|                     it += sizeof(T);
  324|  22.7k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 22.4k, False: 294]
  ------------------
  325|  22.4k|                        dump(',', out, ix);
  326|  22.4k|                     }
  327|  22.7k|                  }
  328|    534|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clItEEDaSR_:
  311|    791|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|  1.25M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 1.25M, False: 791]
  ------------------
  313|  1.25M|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 1.25M]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|  1.25M|                     using V = std::remove_cvref_t<T>;
  318|  1.25M|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|  1.25M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|  1.25M|                     it += sizeof(T);
  324|  1.25M|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 1.25M, False: 487]
  ------------------
  325|  1.25M|                        dump(',', out, ix);
  326|  1.25M|                     }
  327|  1.25M|                  }
  328|    791|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIjEEDaSR_:
  311|  5.30k|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|   123k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 118k, False: 5.30k]
  ------------------
  313|   118k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 118k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|   118k|                     using V = std::remove_cvref_t<T>;
  318|   118k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|   118k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|   118k|                     it += sizeof(T);
  324|   118k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 113k, False: 4.76k]
  ------------------
  325|   113k|                        dump(',', out, ix);
  326|   113k|                     }
  327|   118k|                  }
  328|  5.30k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clImEEDaSR_:
  311|    928|               auto write_aligned_array = [&]<class T>(T&& value) {
  312|   202k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (312:38): [True: 202k, False: 928]
  ------------------
  313|   202k|                     if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (313:26): [True: 0, False: 202k]
  ------------------
  314|      0|                        ctx.error = error_code::unexpected_end;
  315|      0|                        return;
  316|      0|                     }
  317|   202k|                     using V = std::remove_cvref_t<T>;
  318|   202k|                     std::memcpy(&value, it, sizeof(V));
  319|       |                     if constexpr (std::endian::native == std::endian::big) {
  320|       |                        byteswap_le(value);
  321|       |                     }
  322|   202k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  323|   202k|                     it += sizeof(T);
  324|   202k|                     if (i != n - 1) {
  ------------------
  |  Branch (324:26): [True: 201k, False: 363]
  ------------------
  325|   201k|                        dump(',', out, ix);
  326|   201k|                     }
  327|   202k|                  }
  328|    928|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIfEEDaSR_:
  398|  2.01k|            auto write_array = [&]<class T>(T&& value) {
  399|  2.01k|               const auto n = int_from_compressed(ctx, it, end);
  400|  2.01k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 38, False: 1.97k]
  ------------------
  401|     38|                  return;
  402|     38|               }
  403|  1.00M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 1.00M, False: 1.67k]
  ------------------
  404|  1.00M|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 300, False: 1.00M]
  ------------------
  405|    300|                     ctx.error = error_code::unexpected_end;
  406|    300|                     return;
  407|    300|                  }
  408|  1.00M|                  using V = std::remove_cvref_t<T>;
  409|  1.00M|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|  1.00M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|  1.00M|                  it += sizeof(T);
  415|  1.00M|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 1.00M, False: 570]
  ------------------
  416|  1.00M|                     dump(',', out, ix);
  417|  1.00M|                  }
  418|  1.00M|               }
  419|  1.97k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIdEEDaSR_:
  398|  2.62k|            auto write_array = [&]<class T>(T&& value) {
  399|  2.62k|               const auto n = int_from_compressed(ctx, it, end);
  400|  2.62k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 46, False: 2.57k]
  ------------------
  401|     46|                  return;
  402|     46|               }
  403|   659k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 657k, False: 2.15k]
  ------------------
  404|   657k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 424, False: 657k]
  ------------------
  405|    424|                     ctx.error = error_code::unexpected_end;
  406|    424|                     return;
  407|    424|                  }
  408|   657k|                  using V = std::remove_cvref_t<T>;
  409|   657k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   657k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   657k|                  it += sizeof(T);
  415|   657k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 656k, False: 573]
  ------------------
  416|   656k|                     dump(',', out, ix);
  417|   656k|                  }
  418|   657k|               }
  419|  2.57k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIaEEDaSR_:
  398|  3.98k|            auto write_array = [&]<class T>(T&& value) {
  399|  3.98k|               const auto n = int_from_compressed(ctx, it, end);
  400|  3.98k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 39, False: 3.94k]
  ------------------
  401|     39|                  return;
  402|     39|               }
  403|   347k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 343k, False: 3.78k]
  ------------------
  404|   343k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 167, False: 343k]
  ------------------
  405|    167|                     ctx.error = error_code::unexpected_end;
  406|    167|                     return;
  407|    167|                  }
  408|   343k|                  using V = std::remove_cvref_t<T>;
  409|   343k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   343k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   343k|                  it += sizeof(T);
  415|   343k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 340k, False: 2.49k]
  ------------------
  416|   340k|                     dump(',', out, ix);
  417|   340k|                  }
  418|   343k|               }
  419|  3.94k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIsEEDaSR_:
  398|  15.6k|            auto write_array = [&]<class T>(T&& value) {
  399|  15.6k|               const auto n = int_from_compressed(ctx, it, end);
  400|  15.6k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 52, False: 15.5k]
  ------------------
  401|     52|                  return;
  402|     52|               }
  403|   364k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 349k, False: 15.3k]
  ------------------
  404|   349k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 199, False: 349k]
  ------------------
  405|    199|                     ctx.error = error_code::unexpected_end;
  406|    199|                     return;
  407|    199|                  }
  408|   349k|                  using V = std::remove_cvref_t<T>;
  409|   349k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   349k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   349k|                  it += sizeof(T);
  415|   349k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 341k, False: 8.30k]
  ------------------
  416|   341k|                     dump(',', out, ix);
  417|   341k|                  }
  418|   349k|               }
  419|  15.5k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIiEEDaSR_:
  398|  2.56k|            auto write_array = [&]<class T>(T&& value) {
  399|  2.56k|               const auto n = int_from_compressed(ctx, it, end);
  400|  2.56k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 36, False: 2.53k]
  ------------------
  401|     36|                  return;
  402|     36|               }
  403|   163k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 160k, False: 2.32k]
  ------------------
  404|   160k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 208, False: 160k]
  ------------------
  405|    208|                     ctx.error = error_code::unexpected_end;
  406|    208|                     return;
  407|    208|                  }
  408|   160k|                  using V = std::remove_cvref_t<T>;
  409|   160k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   160k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   160k|                  it += sizeof(T);
  415|   160k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 159k, False: 1.20k]
  ------------------
  416|   159k|                     dump(',', out, ix);
  417|   159k|                  }
  418|   160k|               }
  419|  2.53k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIlEEDaSR_:
  398|  1.42k|            auto write_array = [&]<class T>(T&& value) {
  399|  1.42k|               const auto n = int_from_compressed(ctx, it, end);
  400|  1.42k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 34, False: 1.38k]
  ------------------
  401|     34|                  return;
  402|     34|               }
  403|  95.2k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 94.0k, False: 1.14k]
  ------------------
  404|  94.0k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 248, False: 93.8k]
  ------------------
  405|    248|                     ctx.error = error_code::unexpected_end;
  406|    248|                     return;
  407|    248|                  }
  408|  93.8k|                  using V = std::remove_cvref_t<T>;
  409|  93.8k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|  93.8k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|  93.8k|                  it += sizeof(T);
  415|  93.8k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 93.5k, False: 262]
  ------------------
  416|  93.5k|                     dump(',', out, ix);
  417|  93.5k|                  }
  418|  93.8k|               }
  419|  1.38k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIhEEDaSR_:
  398|   147k|            auto write_array = [&]<class T>(T&& value) {
  399|   147k|               const auto n = int_from_compressed(ctx, it, end);
  400|   147k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 54, False: 147k]
  ------------------
  401|     54|                  return;
  402|     54|               }
  403|  1.06M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 915k, False: 147k]
  ------------------
  404|   915k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 205, False: 915k]
  ------------------
  405|    205|                     ctx.error = error_code::unexpected_end;
  406|    205|                     return;
  407|    205|                  }
  408|   915k|                  using V = std::remove_cvref_t<T>;
  409|   915k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   915k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   915k|                  it += sizeof(T);
  415|   915k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 853k, False: 61.6k]
  ------------------
  416|   853k|                     dump(',', out, ix);
  417|   853k|                  }
  418|   915k|               }
  419|   147k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clItEEDaSR_:
  398|  6.00k|            auto write_array = [&]<class T>(T&& value) {
  399|  6.00k|               const auto n = int_from_compressed(ctx, it, end);
  400|  6.00k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 51, False: 5.95k]
  ------------------
  401|     51|                  return;
  402|     51|               }
  403|   340k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 335k, False: 5.68k]
  ------------------
  404|   335k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 267, False: 335k]
  ------------------
  405|    267|                     ctx.error = error_code::unexpected_end;
  406|    267|                     return;
  407|    267|                  }
  408|   335k|                  using V = std::remove_cvref_t<T>;
  409|   335k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   335k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   335k|                  it += sizeof(T);
  415|   335k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 331k, False: 3.39k]
  ------------------
  416|   331k|                     dump(',', out, ix);
  417|   331k|                  }
  418|   335k|               }
  419|  5.95k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIjEEDaSR_:
  398|   106k|            auto write_array = [&]<class T>(T&& value) {
  399|   106k|               const auto n = int_from_compressed(ctx, it, end);
  400|   106k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 23, False: 106k]
  ------------------
  401|     23|                  return;
  402|     23|               }
  403|   244k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 138k, False: 105k]
  ------------------
  404|   138k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 161, False: 138k]
  ------------------
  405|    161|                     ctx.error = error_code::unexpected_end;
  406|    161|                     return;
  407|    161|                  }
  408|   138k|                  using V = std::remove_cvref_t<T>;
  409|   138k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   138k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   138k|                  it += sizeof(T);
  415|   138k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 135k, False: 2.06k]
  ------------------
  416|   135k|                     dump(',', out, ix);
  417|   135k|                  }
  418|   138k|               }
  419|   106k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clImEEDaSR_:
  398|  4.17k|            auto write_array = [&]<class T>(T&& value) {
  399|  4.17k|               const auto n = int_from_compressed(ctx, it, end);
  400|  4.17k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (400:20): [True: 114, False: 4.06k]
  ------------------
  401|    114|                  return;
  402|    114|               }
  403|   173k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (403:35): [True: 169k, False: 3.75k]
  ------------------
  404|   169k|                  if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (404:23): [True: 315, False: 169k]
  ------------------
  405|    315|                     ctx.error = error_code::unexpected_end;
  406|    315|                     return;
  407|    315|                  }
  408|   169k|                  using V = std::remove_cvref_t<T>;
  409|   169k|                  std::memcpy(&value, it, sizeof(V));
  410|       |                  if constexpr (std::endian::native == std::endian::big) {
  411|       |                     byteswap_le(value);
  412|       |                  }
  413|   169k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  414|   169k|                  it += sizeof(T);
  415|   169k|                  if (i != n - 1) {
  ------------------
  |  Branch (415:23): [True: 168k, False: 999]
  ------------------
  416|   168k|                     dump(',', out, ix);
  417|   168k|                  }
  418|   169k|               }
  419|  4.06k|            };
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|   438k|      {
   16|   438k|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|   438k|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|   438k|         auto write_number = [&]<class T>(T&& value) {
   20|   438k|            if ((it + sizeof(T)) > end) [[unlikely]] {
   21|   438k|               ctx.error = error_code::syntax_error;
   22|   438k|               return;
   23|   438k|            }
   24|   438k|            using V = std::remove_cvref_t<T>;
   25|   438k|            std::memcpy(&value, it, sizeof(V));
   26|   438k|            if constexpr (std::endian::native == std::endian::big) {
   27|   438k|               byteswap_le(value);
   28|   438k|            }
   29|   438k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   438k|            it += sizeof(T);
   31|   438k|         };
   32|       |
   33|   438k|         switch (number_type) {
   34|   438k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 438k, False: 0]
  ------------------
   35|       |            // floating point
   36|   438k|            switch (byte_count) {
   37|   340k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 340k, False: 98.4k]
  ------------------
   38|   340k|               write_number(float{});
   39|   340k|               break;
   40|      0|            }
   41|  98.3k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 98.3k, False: 340k]
  ------------------
   42|  98.3k|               write_number(double{});
   43|  98.3k|               break;
   44|      0|            }
   45|    108|            default: {
  ------------------
  |  Branch (45:13): [True: 108, False: 438k]
  ------------------
   46|    108|               ctx.error = error_code::syntax_error;
   47|    108|               return;
   48|      0|            }
   49|   438k|            }
   50|   438k|            break;
   51|   438k|         }
   52|   438k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 0, False: 438k]
  ------------------
   53|       |            // signed integer
   54|      0|            switch (byte_count) {
   55|      0|            case 1: {
  ------------------
  |  Branch (55:13): [True: 0, False: 0]
  ------------------
   56|      0|               write_number(int8_t{});
   57|      0|               break;
   58|      0|            }
   59|      0|            case 2: {
  ------------------
  |  Branch (59:13): [True: 0, False: 0]
  ------------------
   60|      0|               write_number(int16_t{});
   61|      0|               break;
   62|      0|            }
   63|      0|            case 4: {
  ------------------
  |  Branch (63:13): [True: 0, False: 0]
  ------------------
   64|      0|               write_number(int32_t{});
   65|      0|               break;
   66|      0|            }
   67|      0|            case 8: {
  ------------------
  |  Branch (67:13): [True: 0, False: 0]
  ------------------
   68|      0|               write_number(int64_t{});
   69|      0|               break;
   70|      0|            }
   71|      0|            default: {
  ------------------
  |  Branch (71:13): [True: 0, False: 0]
  ------------------
   72|      0|               ctx.error = error_code::syntax_error;
   73|      0|               return;
   74|      0|            }
   75|      0|            }
   76|      0|            break;
   77|      0|         }
   78|      0|         case 2: {
  ------------------
  |  Branch (78:10): [True: 0, False: 438k]
  ------------------
   79|       |            // unsigned integer
   80|      0|            switch (byte_count) {
   81|      0|            case 1: {
  ------------------
  |  Branch (81:13): [True: 0, False: 0]
  ------------------
   82|      0|               write_number(uint8_t{});
   83|      0|               break;
   84|      0|            }
   85|      0|            case 2: {
  ------------------
  |  Branch (85:13): [True: 0, False: 0]
  ------------------
   86|      0|               write_number(uint16_t{});
   87|      0|               break;
   88|      0|            }
   89|      0|            case 4: {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|               write_number(uint32_t{});
   91|      0|               break;
   92|      0|            }
   93|      0|            case 8: {
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|               write_number(uint64_t{});
   95|      0|               break;
   96|      0|            }
   97|      0|            default: {
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|               ctx.error = error_code::syntax_error;
   99|      0|               return;
  100|      0|            }
  101|      0|            }
  102|      0|            break;
  103|      0|         }
  104|      0|         default: {
  ------------------
  |  Branch (104:10): [True: 0, False: 438k]
  ------------------
  105|      0|            ctx.error = error_code::syntax_error;
  106|      0|            return;
  107|      0|         }
  108|   438k|         }
  109|   438k|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|   340k|         auto write_number = [&]<class T>(T&& value) {
   20|   340k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 217, False: 340k]
  ------------------
   21|    217|               ctx.error = error_code::syntax_error;
   22|    217|               return;
   23|    217|            }
   24|   340k|            using V = std::remove_cvref_t<T>;
   25|   340k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   340k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   340k|            it += sizeof(T);
   31|   340k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|  98.3k|         auto write_number = [&]<class T>(T&& value) {
   20|  98.3k|            if ((it + sizeof(T)) > end) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 98, False: 98.2k]
  ------------------
   21|     98|               ctx.error = error_code::syntax_error;
   22|     98|               return;
   23|     98|            }
   24|  98.2k|            using V = std::remove_cvref_t<T>;
   25|  98.2k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  98.2k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  98.2k|            it += sizeof(T);
   31|  98.2k|         };

_ZN3glz11invalid_endITkNS_10is_contextENS_7contextERPKcS3_EEbRT_OT0_T1_:
   23|  95.9k|   {
   24|  95.9k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (24:11): [True: 633, False: 95.3k]
  ------------------
   25|    633|         ctx.error = error_code::unexpected_end;
   26|    633|         return true;
   27|    633|      }
   28|  95.3k|      else [[likely]] {
   29|  95.3k|         return false;
   30|  95.3k|      }
   31|  95.9k|   }
_ZN3glz19int_from_compressedIRNS_7contextERPKcS4_EEmOT_OT0_T1_:
  233|   531k|   {
  234|   531k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (234:11): [True: 1.28k, False: 530k]
  ------------------
  235|  1.28k|         ctx.error = error_code::unexpected_end;
  236|  1.28k|         return 0;
  237|  1.28k|      }
  238|       |
  239|   530k|      uint8_t header;
  240|   530k|      std::memcpy(&header, it, 1);
  241|   530k|      const uint8_t config = header & 0b000000'11;
  242|       |
  243|   530k|      if ((it + byte_count_lookup[config]) > end) [[unlikely]] {
  ------------------
  |  Branch (243:11): [True: 978, False: 529k]
  ------------------
  244|    978|         ctx.error = error_code::unexpected_end;
  245|    978|         return 0;
  246|    978|      }
  247|       |
  248|   529k|      switch (config) {
  249|   413k|      case 0:
  ------------------
  |  Branch (249:7): [True: 413k, False: 115k]
  ------------------
  250|   413k|         ++it;
  251|   413k|         return header >> 2;
  252|  27.4k|      case 1: {
  ------------------
  |  Branch (252:7): [True: 27.4k, False: 501k]
  ------------------
  253|  27.4k|         uint16_t h;
  254|  27.4k|         std::memcpy(&h, it, 2);
  255|       |         if constexpr (std::endian::native == std::endian::big) {
  256|       |            h = std::byteswap(h);
  257|       |         }
  258|  27.4k|         it += 2;
  259|  27.4k|         return h >> 2;
  260|      0|      }
  261|  77.9k|      case 2: {
  ------------------
  |  Branch (261:7): [True: 77.9k, False: 451k]
  ------------------
  262|  77.9k|         uint32_t h;
  263|  77.9k|         std::memcpy(&h, it, 4);
  264|       |         if constexpr (std::endian::native == std::endian::big) {
  265|       |            h = std::byteswap(h);
  266|       |         }
  267|  77.9k|         it += 4;
  268|  77.9k|         return h >> 2;
  269|      0|      }
  270|  9.95k|      case 3: {
  ------------------
  |  Branch (270:7): [True: 9.95k, False: 519k]
  ------------------
  271|       |         // On 32-bit systems it's impossible to address more than 4 GBiB of memory, so we should verify first if we are
  272|       |         // running in 64-bit mode here
  273|  9.95k|         if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
  274|  9.95k|            uint64_t h;
  275|  9.95k|            std::memcpy(&h, it, 8);
  276|       |            if constexpr (std::endian::native == std::endian::big) {
  277|       |               h = std::byteswap(h);
  278|       |            }
  279|  9.95k|            it += 8;
  280|  9.95k|            h = h >> 2;
  281|  9.95k|            static constexpr uint64_t safety_limit = 1ull << 48; // 2^48
  282|  9.95k|            if (h > safety_limit) [[unlikely]] {
  ------------------
  |  Branch (282:17): [True: 909, False: 9.04k]
  ------------------
  283|    909|               ctx.error = error_code::unexpected_end;
  284|    909|               return 0;
  285|    909|            }
  286|  9.04k|            return h;
  287|       |         }
  288|       |         else {
  289|       |            // 8-byte length encoding not supported on 32-bit systems
  290|       |            ctx.error = error_code::invalid_length;
  291|       |            return 0;
  292|       |         }
  293|  9.95k|      }
  294|  9.95k|      default:
  ------------------
  |  Branch (294:7): [True: 0, False: 529k]
  ------------------
  295|  9.95k|         ctx.error = error_code::syntax_error;
  296|  9.95k|         return 0;
  297|   529k|      }
  298|   529k|   }
_ZN3glz25typed_array_out_of_boundsITkNS_10is_contextENS_7contextERPKcS4_EEbRT_OT0_OT1_mmm:
   48|  20.6k|   {
   49|  20.6k|      const uint64_t available = uint64_t(end - it);
   50|  20.6k|      if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
   51|  20.6k|         if (available < padding + count * element_size) [[unlikely]] {
  ------------------
  |  Branch (51:14): [True: 599, False: 20.0k]
  ------------------
   52|    599|            ctx.error = error_code::unexpected_end;
   53|    599|            return true;
   54|    599|         }
   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|  20.0k|      return false;
   63|  20.6k|   }
_ZN3glz19skip_compressed_intITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  301|  47.3k|   {
  302|  47.3k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (302:11): [True: 1, False: 47.3k]
  ------------------
  303|      1|         return;
  304|      1|      }
  305|       |
  306|  47.3k|      uint8_t header;
  307|  47.3k|      std::memcpy(&header, it, 1);
  308|  47.3k|      const uint8_t config = header & 0b000000'11;
  309|       |
  310|  47.3k|      if ((it + byte_count_lookup[config]) > end) [[unlikely]] {
  ------------------
  |  Branch (310:11): [True: 1, False: 47.3k]
  ------------------
  311|      1|         ctx.error = error_code::unexpected_end;
  312|      1|         return;
  313|      1|      }
  314|       |
  315|  47.3k|      switch (config) {
  316|  5.14k|      case 0:
  ------------------
  |  Branch (316:7): [True: 5.14k, False: 42.2k]
  ------------------
  317|  5.14k|         ++it;
  318|  5.14k|         return;
  319|  1.13k|      case 1: {
  ------------------
  |  Branch (319:7): [True: 1.13k, False: 46.2k]
  ------------------
  320|  1.13k|         it += 2;
  321|  1.13k|         return;
  322|      0|      }
  323|  40.8k|      case 2: {
  ------------------
  |  Branch (323:7): [True: 40.8k, False: 6.50k]
  ------------------
  324|  40.8k|         it += 4;
  325|  40.8k|         return;
  326|      0|      }
  327|    225|      case 3: {
  ------------------
  |  Branch (327:7): [True: 225, False: 47.1k]
  ------------------
  328|    225|         it += 8;
  329|    225|         return;
  330|      0|      }
  331|      0|      default:
  ------------------
  |  Branch (331:7): [True: 0, False: 47.3k]
  ------------------
  332|      0|         return;
  333|  47.3k|      }
  334|  47.3k|   }

_ZN3glz9read_beveITkNS_14read_supportedIL_ZNS_4BEVEEEEE9my_structRKNSt3__16vectorIcNS3_9allocatorIcEEEEEENS3_8expectedIT_NS_9error_ctxEEEOT0_:
 3198|  20.1k|   {
 3199|  20.1k|      T value{};
 3200|  20.1k|      const auto pe = read<opts{.format = BEVE}>(value, std::forward<Buffer>(buffer));
 3201|  20.1k|      if (pe) [[unlikely]] {
  ------------------
  |  Branch (3201:11): [True: 20.0k, False: 82]
  ------------------
 3202|  20.0k|         return unexpected(pe);
 3203|  20.0k|      }
 3204|     82|      return value;
 3205|  20.1k|   }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEER9my_structTkNS_10is_contextERNS_7contextERPKcS9_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  20.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|  20.1k|         else {
   68|  20.1k|            using V = std::remove_cvref_t<T>;
   69|  20.1k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  20.1k|                                             end);
   71|  20.1k|         }
   72|  20.1k|      }
_ZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_:
 2894|  20.1k|      {
 2895|  20.1k|         constexpr uint8_t type = 0; // string key
 2896|  20.1k|         constexpr uint8_t header = tag::object | type;
 2897|       |
 2898|  20.1k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2898:14): [True: 0, False: 20.1k]
  ------------------
 2899|      0|            return;
 2900|      0|         }
 2901|  20.1k|         const auto tag = uint8_t(*it);
 2902|  20.1k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2902:14): [True: 16.1k, False: 3.96k]
  ------------------
 2903|  16.1k|            ctx.error = error_code::syntax_error;
 2904|  16.1k|            return;
 2905|  16.1k|         }
 2906|       |
 2907|  3.96k|         depth_guard guard{ctx};
 2908|  3.96k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (2908:14): [True: 0, False: 3.96k]
  ------------------
 2909|      0|            return;
 2910|      0|         }
 2911|       |
 2912|  3.96k|         ++it;
 2913|       |
 2914|  3.96k|         static constexpr auto N = reflect<T>::size;
 2915|       |         if constexpr (N == 0) {
 2916|       |            (void)value;
 2917|       |         }
 2918|       |
 2919|  3.96k|         static constexpr bit_array<N> all_fields = [] {
 2920|  3.96k|            bit_array<N> arr{};
 2921|  3.96k|            for (size_t i = 0; i < N; ++i) {
 2922|  3.96k|               arr[i] = true;
 2923|  3.96k|            }
 2924|  3.96k|            return arr;
 2925|  3.96k|         }();
 2926|       |
 2927|  3.96k|         decltype(auto) fields = [&]() -> decltype(auto) {
 2928|  3.96k|            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2929|  3.96k|               return bit_array<N>{};
 2930|  3.96k|            }
 2931|  3.96k|            else {
 2932|  3.96k|               return nullptr;
 2933|  3.96k|            }
 2934|  3.96k|         }();
 2935|       |
 2936|  3.96k|         const auto n_keys = int_from_compressed(ctx, it, end);
 2937|  3.96k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2937:14): [True: 128, False: 3.83k]
  ------------------
 2938|    128|            return;
 2939|    128|         }
 2940|       |
 2941|  16.3k|         for (size_t i = 0; i < n_keys; ++i) {
  ------------------
  |  Branch (2941:29): [True: 12.5k, False: 3.83k]
  ------------------
 2942|       |            if constexpr (Opts.partial_read) {
 2943|       |               if ((all_fields & fields) == all_fields) {
 2944|       |                  return;
 2945|       |               }
 2946|       |            }
 2947|       |
 2948|  12.5k|            if constexpr (N > 0) {
 2949|  12.5k|               static constexpr auto HashInfo = hash_info<T>;
 2950|       |
 2951|  12.5k|               const auto n = int_from_compressed(ctx, it, end);
 2952|  12.5k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2952:20): [True: 550, False: 11.9k]
  ------------------
 2953|    550|                  return;
 2954|    550|               }
 2955|  11.9k|               if (uint64_t(end - it) < n || it == end) [[unlikely]] {
  ------------------
  |  Branch (2955:20): [True: 363, False: 11.5k]
  |  Branch (2955:46): [True: 231, False: 11.3k]
  ------------------
 2956|    594|                  ctx.error = error_code::unexpected_end;
 2957|    594|                  return;
 2958|    594|               }
 2959|       |
 2960|       |               if constexpr (not Tag.sv().empty() && not has_member_with_name<T>(Tag.sv())) {
 2961|       |                  // Discriminator key injected by the variant reader: skip it (and its value) without
 2962|       |                  // consulting error_on_unknown_keys, while the alternative's real keys stay checked.
 2963|       |                  if (sv{it, n} == Tag.sv()) {
 2964|       |                     it += n;
 2965|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 2966|       |                     if (bool(ctx.error)) [[unlikely]] {
 2967|       |                        return;
 2968|       |                     }
 2969|       |                     continue;
 2970|       |                  }
 2971|       |               }
 2972|       |
 2973|  11.3k|               const auto index = decode_hash_with_size<BEVE, T, HashInfo, HashInfo.type>::op(it, end, n);
 2974|       |
 2975|  11.3k|               if (index < N) [[likely]] {
  ------------------
  |  Branch (2975:20): [True: 10.9k, False: 374]
  ------------------
 2976|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2977|       |                     fields[index] = true;
 2978|       |                  }
 2979|       |
 2980|  10.9k|                  const sv key{it, n};
 2981|  10.9k|                  it += n;
 2982|       |
 2983|  10.9k|                  visit<N>(
 2984|  10.9k|                     [&]<size_t I>() {
 2985|  10.9k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  10.9k|                        static constexpr auto Length = TargetKey.size();
 2987|  10.9k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
 2988|       |                           // Check for null value skipping on read
 2989|  10.9k|                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|  10.9k|                              if (invalid_end(ctx, it, end)) {
 2991|  10.9k|                                 return;
 2992|  10.9k|                              }
 2993|  10.9k|                              if (uint8_t(*it) == tag::null) {
 2994|  10.9k|                                 ++it; // Skip the null tag
 2995|  10.9k|                                 return;
 2996|  10.9k|                              }
 2997|  10.9k|                           }
 2998|       |
 2999|  10.9k|                           if constexpr (reflectable<T>) {
 3000|  10.9k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|  10.9k|                           }
 3002|  10.9k|                           else {
 3003|  10.9k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|  10.9k|                           }
 3005|  10.9k|                        }
 3006|  10.9k|                        else {
 3007|  10.9k|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|  10.9k|                              ctx.error = error_code::unknown_key;
 3009|  10.9k|                              return;
 3010|  10.9k|                           }
 3011|  10.9k|                           else {
 3012|  10.9k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|  10.9k|                              if (bool(ctx.error)) [[unlikely]]
 3014|  10.9k|                                 return;
 3015|  10.9k|                           }
 3016|  10.9k|                        }
 3017|  10.9k|                     },
 3018|  10.9k|                     index);
 3019|       |
 3020|  10.9k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3020:23): [True: 2.23k, False: 8.75k]
  ------------------
 3021|  2.23k|                     return;
 3022|  2.23k|                  }
 3023|  10.9k|               }
 3024|    374|               else [[unlikely]] {
 3025|    374|                  if constexpr (Opts.error_on_unknown_keys) {
 3026|    374|                     ctx.error = error_code::unknown_key;
 3027|    374|                     return;
 3028|       |                  }
 3029|       |                  else {
 3030|       |                     it += n;
 3031|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3032|       |                     if (bool(ctx.error)) [[unlikely]]
 3033|       |                        return;
 3034|       |                  }
 3035|    374|               }
 3036|       |            }
 3037|       |            else if constexpr (Opts.error_on_unknown_keys) {
 3038|       |               ctx.error = error_code::unknown_key;
 3039|       |               return;
 3040|       |            }
 3041|       |            else {
 3042|       |               skip_value<BEVE>::op<Opts>(ctx, it, end);
 3043|       |               if (bool(ctx.error)) [[unlikely]]
 3044|       |                  return;
 3045|       |            }
 3046|  12.5k|         }
 3047|       |
 3048|       |         if constexpr (Opts.error_on_missing_keys) {
 3049|       |            constexpr auto req_fields = required_fields<T, Opts>();
 3050|       |            if ((req_fields & fields) != req_fields) {
 3051|       |               for (size_t i = 0; i < N; ++i) {
 3052|       |                  if (not fields[i] && req_fields[i]) {
 3053|       |                     ctx.custom_error_message = reflect<T>::keys[i];
 3054|       |                     break;
 3055|       |                  }
 3056|       |               }
 3057|       |               ctx.error = error_code::missing_key;
 3058|       |               return;
 3059|       |            }
 3060|       |         }
 3061|  3.83k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlvE0_clEv:
 2927|  3.96k|         decltype(auto) fields = [&]() -> decltype(auto) {
 2928|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2929|       |               return bit_array<N>{};
 2930|       |            }
 2931|  3.96k|            else {
 2932|  3.96k|               return nullptr;
 2933|  3.96k|            }
 2934|  3.96k|         }();
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm0EEEDav:
 2984|  2.28k|                     [&]<size_t I>() {
 2985|  2.28k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  2.28k|                        static constexpr auto Length = TargetKey.size();
 2987|  2.28k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 2.27k, False: 5]
  |  Branch (2987:46): [True: 2.27k, False: 0]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  2.27k|                           if constexpr (reflectable<T>) {
 3000|  2.27k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  2.27k|                        }
 3006|      5|                        else {
 3007|      5|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|      5|                              ctx.error = error_code::unknown_key;
 3009|      5|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|      5|                        }
 3017|  2.28k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.27k|      {
   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.27k|         else {
   68|  2.27k|            using V = std::remove_cvref_t<T>;
   69|  2.27k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.27k|                                             end);
   71|  2.27k|         }
   72|  2.27k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  334|  2.27k|      {
  335|  2.27k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (335:14): [True: 5, False: 2.27k]
  ------------------
  336|      5|            return;
  337|      5|         }
  338|  2.27k|         const auto tag = uint8_t(*it);
  339|  2.27k|         ++it;
  340|  2.27k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  341|  2.27k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  2.27k|      {
  209|  2.27k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 30, False: 2.24k]
  ------------------
  210|     30|            return;
  211|     30|         }
  212|       |
  213|  2.24k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  2.24k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  2.24k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 2.04k, False: 199]
  ------------------
  218|  2.04k|            if constexpr (check_allow_conversions(Opts)) {
  219|  2.04k|               if constexpr (num_t<T>) {
  220|  2.04k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 15, False: 2.02k]
  ------------------
  221|     15|                     ctx.error = error_code::syntax_error;
  222|     15|                     return;
  223|     15|                  }
  224|       |
  225|  2.02k|                  auto decode = [&](auto&& i) {
  226|  2.02k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  227|  2.02k|                        ctx.error = error_code::unexpected_end;
  228|  2.02k|                        return;
  229|  2.02k|                     }
  230|  2.02k|                     using I = std::decay_t<decltype(i)>;
  231|  2.02k|                     std::memcpy(&i, it, sizeof(I));
  232|  2.02k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  2.02k|                        byteswap_le(i);
  234|  2.02k|                     }
  235|  2.02k|                     value = static_cast<V>(i);
  236|  2.02k|                     it += sizeof(i);
  237|  2.02k|                  };
  238|       |
  239|  2.02k|                  switch (tag) {
  240|      3|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 3, False: 2.02k]
  ------------------
  241|      3|                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|      3|                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|       |                     else {
  246|       |                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|       |                        decode(float{});
  249|       |                     }
  250|      3|                     return;
  251|      0|                  }
  252|      3|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 3, False: 2.02k]
  ------------------
  253|      3|                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|      3|                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|       |                     else {
  258|       |                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|       |                        decode(double{});
  261|       |                     }
  262|      3|                     return;
  263|      0|                  }
  264|    506|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 506, False: 1.52k]
  ------------------
  265|    506|                     decode(int8_t{});
  266|    506|                     return;
  267|      0|                  }
  268|    197|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 197, False: 1.83k]
  ------------------
  269|    197|                     decode(int16_t{});
  270|    197|                     return;
  271|      0|                  }
  272|      0|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 0, False: 2.02k]
  ------------------
  273|      0|                     decode(int32_t{});
  274|      0|                     return;
  275|      0|                  }
  276|    205|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 205, False: 1.82k]
  ------------------
  277|    205|                     decode(int64_t{});
  278|    205|                     return;
  279|      0|                  }
  280|    365|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 365, False: 1.66k]
  ------------------
  281|    365|                     decode(uint8_t{});
  282|    365|                     return;
  283|      0|                  }
  284|    199|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 199, False: 1.83k]
  ------------------
  285|    199|                     decode(uint16_t{});
  286|    199|                     return;
  287|      0|                  }
  288|    347|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 347, False: 1.68k]
  ------------------
  289|    347|                     decode(uint32_t{});
  290|    347|                     return;
  291|      0|                  }
  292|    199|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 199, False: 1.83k]
  ------------------
  293|    199|                     decode(uint64_t{});
  294|    199|                     return;
  295|      0|                  }
  296|      5|                  default: {
  ------------------
  |  Branch (296:19): [True: 5, False: 2.02k]
  ------------------
  297|      5|                     ctx.error = error_code::syntax_error;
  298|      5|                     return;
  299|      0|                  }
  300|  2.02k|                  }
  301|  2.02k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  2.04k|         }
  308|       |
  309|  2.24k|         if ((it + sizeof(V)) > end) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 5, False: 2.23k]
  ------------------
  310|      5|            ctx.error = error_code::unexpected_end;
  311|      5|            return;
  312|      5|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  2.23k|         else {
  323|  2.23k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  2.23k|         }
  328|  2.23k|         it += sizeof(V);
  329|  2.23k|      }
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|    506|                  auto decode = [&](auto&& i) {
  226|    506|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 506]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    506|                     using I = std::decay_t<decltype(i)>;
  231|    506|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    506|                     value = static_cast<V>(i);
  236|    506|                     it += sizeof(i);
  237|    506|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|    197|                  auto decode = [&](auto&& i) {
  226|    197|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 194]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    205|                  auto decode = [&](auto&& i) {
  226|    205|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 200]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    200|                     using I = std::decay_t<decltype(i)>;
  231|    200|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    200|                     value = static_cast<V>(i);
  236|    200|                     it += sizeof(i);
  237|    200|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|    365|                  auto decode = [&](auto&& i) {
  226|    365|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 365]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    365|                     using I = std::decay_t<decltype(i)>;
  231|    365|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    365|                     value = static_cast<V>(i);
  236|    365|                     it += sizeof(i);
  237|    365|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    199|                  auto decode = [&](auto&& i) {
  226|    199|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 196]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    196|                     using I = std::decay_t<decltype(i)>;
  231|    196|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    196|                     value = static_cast<V>(i);
  236|    196|                     it += sizeof(i);
  237|    196|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    347|                  auto decode = [&](auto&& i) {
  226|    347|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 342]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    342|                     using I = std::decay_t<decltype(i)>;
  231|    342|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    342|                     value = static_cast<V>(i);
  236|    342|                     it += sizeof(i);
  237|    342|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  225|    199|                  auto decode = [&](auto&& i) {
  226|    199|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 194]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm1EEEDav:
 2984|  2.37k|                     [&]<size_t I>() {
 2985|  2.37k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  2.37k|                        static constexpr auto Length = TargetKey.size();
 2987|  2.37k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 2.37k, False: 4]
  |  Branch (2987:46): [True: 2.37k, False: 0]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  2.37k|                           if constexpr (reflectable<T>) {
 3000|  2.37k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  2.37k|                        }
 3006|      4|                        else {
 3007|      4|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|      4|                              ctx.error = error_code::unknown_key;
 3009|      4|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|      4|                        }
 3017|  2.37k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.37k|      {
   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.37k|         else {
   68|  2.37k|            using V = std::remove_cvref_t<T>;
   69|  2.37k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.37k|                                             end);
   71|  2.37k|         }
   72|  2.37k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  334|  2.37k|      {
  335|  2.37k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (335:14): [True: 4, False: 2.37k]
  ------------------
  336|      4|            return;
  337|      4|         }
  338|  2.37k|         const auto tag = uint8_t(*it);
  339|  2.37k|         ++it;
  340|  2.37k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  341|  2.37k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  2.37k|      {
  209|  2.37k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 27, False: 2.34k]
  ------------------
  210|     27|            return;
  211|     27|         }
  212|       |
  213|  2.34k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  2.34k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  2.34k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 2.14k, False: 199]
  ------------------
  218|  2.14k|            if constexpr (check_allow_conversions(Opts)) {
  219|  2.14k|               if constexpr (num_t<T>) {
  220|  2.14k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 12, False: 2.13k]
  ------------------
  221|     12|                     ctx.error = error_code::syntax_error;
  222|     12|                     return;
  223|     12|                  }
  224|       |
  225|  2.13k|                  auto decode = [&](auto&& i) {
  226|  2.13k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  227|  2.13k|                        ctx.error = error_code::unexpected_end;
  228|  2.13k|                        return;
  229|  2.13k|                     }
  230|  2.13k|                     using I = std::decay_t<decltype(i)>;
  231|  2.13k|                     std::memcpy(&i, it, sizeof(I));
  232|  2.13k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  2.13k|                        byteswap_le(i);
  234|  2.13k|                     }
  235|  2.13k|                     value = static_cast<V>(i);
  236|  2.13k|                     it += sizeof(i);
  237|  2.13k|                  };
  238|       |
  239|  2.13k|                  switch (tag) {
  240|    199|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 199, False: 1.93k]
  ------------------
  241|       |                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|       |                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|    199|                     else {
  246|    199|                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|    199|                        decode(float{});
  249|    199|                     }
  250|    199|                     return;
  251|      0|                  }
  252|      0|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 0, False: 2.13k]
  ------------------
  253|       |                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|       |                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|      0|                     else {
  258|      0|                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|      0|                        decode(double{});
  261|      0|                     }
  262|      0|                     return;
  263|      0|                  }
  264|    413|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 413, False: 1.71k]
  ------------------
  265|    413|                     decode(int8_t{});
  266|    413|                     return;
  267|      0|                  }
  268|    197|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 197, False: 1.93k]
  ------------------
  269|    197|                     decode(int16_t{});
  270|    197|                     return;
  271|      0|                  }
  272|    199|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 199, False: 1.93k]
  ------------------
  273|    199|                     decode(int32_t{});
  274|    199|                     return;
  275|      0|                  }
  276|    202|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 202, False: 1.93k]
  ------------------
  277|    202|                     decode(int64_t{});
  278|    202|                     return;
  279|      0|                  }
  280|    286|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 286, False: 1.84k]
  ------------------
  281|    286|                     decode(uint8_t{});
  282|    286|                     return;
  283|      0|                  }
  284|    231|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 231, False: 1.90k]
  ------------------
  285|    231|                     decode(uint16_t{});
  286|    231|                     return;
  287|      0|                  }
  288|    199|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 199, False: 1.93k]
  ------------------
  289|    199|                     decode(uint32_t{});
  290|    199|                     return;
  291|      0|                  }
  292|    203|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 203, False: 1.92k]
  ------------------
  293|    203|                     decode(uint64_t{});
  294|    203|                     return;
  295|      0|                  }
  296|      3|                  default: {
  ------------------
  |  Branch (296:19): [True: 3, False: 2.12k]
  ------------------
  297|      3|                     ctx.error = error_code::syntax_error;
  298|      3|                     return;
  299|      0|                  }
  300|  2.13k|                  }
  301|  2.13k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  2.14k|         }
  308|       |
  309|  2.34k|         if ((it + sizeof(V)) > end) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 5, False: 2.33k]
  ------------------
  310|      5|            ctx.error = error_code::unexpected_end;
  311|      5|            return;
  312|      5|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  2.33k|         else {
  323|  2.33k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  2.33k|         }
  328|  2.33k|         it += sizeof(V);
  329|  2.33k|      }
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIfEEDaSI_:
  225|    199|                  auto decode = [&](auto&& i) {
  226|    199|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 194]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|    413|                  auto decode = [&](auto&& i) {
  226|    413|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 413]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    413|                     using I = std::decay_t<decltype(i)>;
  231|    413|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    413|                     value = static_cast<V>(i);
  236|    413|                     it += sizeof(i);
  237|    413|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|    197|                  auto decode = [&](auto&& i) {
  226|    197|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 194]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  225|    199|                  auto decode = [&](auto&& i) {
  226|    199|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 194]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    202|                  auto decode = [&](auto&& i) {
  226|    202|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 6, False: 196]
  ------------------
  227|      6|                        ctx.error = error_code::unexpected_end;
  228|      6|                        return;
  229|      6|                     }
  230|    196|                     using I = std::decay_t<decltype(i)>;
  231|    196|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    196|                     value = static_cast<V>(i);
  236|    196|                     it += sizeof(i);
  237|    196|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|    286|                  auto decode = [&](auto&& i) {
  226|    286|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 286]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    286|                     using I = std::decay_t<decltype(i)>;
  231|    286|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    286|                     value = static_cast<V>(i);
  236|    286|                     it += sizeof(i);
  237|    286|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    231|                  auto decode = [&](auto&& i) {
  226|    231|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 228]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    228|                     using I = std::decay_t<decltype(i)>;
  231|    228|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    228|                     value = static_cast<V>(i);
  236|    228|                     it += sizeof(i);
  237|    228|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    199|                  auto decode = [&](auto&& i) {
  226|    199|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 194]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  225|    203|                  auto decode = [&](auto&& i) {
  226|    203|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 198]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    198|                     using I = std::decay_t<decltype(i)>;
  231|    198|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    198|                     value = static_cast<V>(i);
  236|    198|                     it += sizeof(i);
  237|    198|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm2EEEDav:
 2984|  1.96k|                     [&]<size_t I>() {
 2985|  1.96k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  1.96k|                        static constexpr auto Length = TargetKey.size();
 2987|  1.96k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 1.96k, False: 7]
  |  Branch (2987:46): [True: 1.90k, False: 62]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  1.90k|                           if constexpr (reflectable<T>) {
 3000|  1.90k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  1.90k|                        }
 3006|     69|                        else {
 3007|     69|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|     69|                              ctx.error = error_code::unknown_key;
 3009|     69|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|     69|                        }
 3017|  1.96k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  1.90k|      {
   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|  1.90k|         else {
   68|  1.90k|            using V = std::remove_cvref_t<T>;
   69|  1.90k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  1.90k|                                             end);
   71|  1.90k|         }
   72|  1.90k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
 1459|  1.90k|      {
 1460|  1.90k|         constexpr uint8_t header = tag::string;
 1461|       |
 1462|  1.90k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1462:14): [True: 4, False: 1.89k]
  ------------------
 1463|      4|            return;
 1464|      4|         }
 1465|  1.89k|         const auto tag = uint8_t(*it);
 1466|  1.89k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (1466:14): [True: 16, False: 1.88k]
  ------------------
 1467|     16|            ctx.error = error_code::syntax_error;
 1468|     16|            return;
 1469|     16|         }
 1470|       |
 1471|  1.88k|         ++it;
 1472|  1.88k|         const auto n = int_from_compressed(ctx, it, end);
 1473|  1.88k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1473:14): [True: 133, False: 1.74k]
  ------------------
 1474|    133|            return;
 1475|    133|         }
 1476|  1.74k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1476:14): [True: 135, False: 1.61k]
  ------------------
 1477|    135|            ctx.error = error_code::unexpected_end;
 1478|    135|            return;
 1479|    135|         }
 1480|       |         if constexpr (check_max_string_length(Opts) > 0) {
 1481|       |            if (n > check_max_string_length(Opts)) [[unlikely]] {
 1482|       |               ctx.error = error_code::invalid_length;
 1483|       |               return;
 1484|       |            }
 1485|       |         }
 1486|       |         if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 1487|       |            if (ctx.max_string_length > 0 && n > ctx.max_string_length) [[unlikely]] {
 1488|       |               ctx.error = error_code::invalid_length;
 1489|       |               return;
 1490|       |            }
 1491|       |         }
 1492|       |
 1493|  1.61k|         store(value, ctx, it, n);
 1494|  1.61k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1494:14): [True: 0, False: 1.61k]
  ------------------
 1495|      0|            return;
 1496|      0|         }
 1497|  1.61k|         it += n;
 1498|  1.61k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5storeIRS7_TkNS_10is_contextERNS_7contextERPKcEEvOT_OT0_OT1_m:
 1399|  1.61k|      {
 1400|       |         if constexpr (string_view_t<T>) {
 1401|       |            value = {it, n};
 1402|       |         }
 1403|       |         else if constexpr (array_char_t<T>) {
 1404|       |            // Fixed-size std::array<char, N> cannot be resized, so the decoded payload must
 1405|       |            // fit within it. Any trailing bytes are zero-filled to keep the buffer
 1406|       |            // deterministic when a shorter payload is read into a larger array.
 1407|       |            if (n > value.size()) [[unlikely]] {
 1408|       |               ctx.error = error_code::syntax_error;
 1409|       |               return;
 1410|       |            }
 1411|       |            std::memcpy(value.data(), it, n);
 1412|       |            if (n < value.size()) {
 1413|       |               std::memset(value.data() + n, 0, value.size() - n);
 1414|       |            }
 1415|       |         }
 1416|  1.61k|         else {
 1417|  1.61k|            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
  ------------------
  |  Branch (1417:17): [True: 0, False: 1.61k]
  ------------------
 1418|      0|               return;
 1419|      0|            }
 1420|  1.61k|            value.resize(n);
 1421|  1.61k|            std::memcpy(value.data(), it, n);
 1422|  1.61k|         }
 1423|  1.61k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm3EEEDav:
 2984|  4.36k|                     [&]<size_t I>() {
 2985|  4.36k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  4.36k|                        static constexpr auto Length = TargetKey.size();
 2987|  4.36k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 4.35k, False: 7]
  |  Branch (2987:46): [True: 4.29k, False: 63]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  4.29k|                           if constexpr (reflectable<T>) {
 3000|  4.29k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  4.29k|                        }
 3006|     70|                        else {
 3007|     70|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|     70|                              ctx.error = error_code::unknown_key;
 3009|     70|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|     70|                        }
 3017|  4.36k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERNSt3__15arrayImLm3EEETkNS_10is_contextERNS_7contextERPKcSB_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  4.29k|      {
   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.29k|         else {
   68|  4.29k|            using V = std::remove_cvref_t<T>;
   69|  4.29k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  4.29k|                                             end);
   71|  4.29k|         }
   72|  4.29k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1780|  4.29k|      {
 1781|  4.29k|         using V = range_value_t<std::decay_t<T>>;
 1782|       |
 1783|  4.29k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1783:14): [True: 2, False: 4.28k]
  ------------------
 1784|      2|            return;
 1785|      2|         }
 1786|  4.28k|         const auto tag = uint8_t(*it);
 1787|       |
 1788|       |         if constexpr (boolean_like<V>) {
 1789|       |            constexpr uint8_t type = uint8_t(3) << 3;
 1790|       |            constexpr uint8_t header = tag::typed_array | type;
 1791|       |
 1792|       |            if (tag != header) [[unlikely]] {
 1793|       |               ctx.error = error_code::syntax_error;
 1794|       |               return;
 1795|       |            }
 1796|       |
 1797|       |            ++it;
 1798|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1799|       |            if (bool(ctx.error)) [[unlikely]] {
 1800|       |               return;
 1801|       |            }
 1802|       |
 1803|       |            if constexpr (Opts.partial_read) {
 1804|       |               n = value.size();
 1805|       |            }
 1806|       |
 1807|       |            const auto num_bytes = (n + 7) / 8;
 1808|       |            if (uint64_t(end - it) < num_bytes) [[unlikely]] {
 1809|       |               ctx.error = error_code::invalid_length;
 1810|       |               return;
 1811|       |            }
 1812|       |            if constexpr (check_max_array_size(Opts) > 0) {
 1813|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 1814|       |                  ctx.error = error_code::invalid_length;
 1815|       |                  return;
 1816|       |               }
 1817|       |            }
 1818|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1819|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1820|       |                  ctx.error = error_code::invalid_length;
 1821|       |                  return;
 1822|       |               }
 1823|       |            }
 1824|       |
 1825|       |            if constexpr (resizable<T>) {
 1826|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1827|       |                  return;
 1828|       |               }
 1829|       |               value.resize(n);
 1830|       |
 1831|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1832|       |                  value.shrink_to_fit();
 1833|       |               }
 1834|       |            }
 1835|       |            else {
 1836|       |               if (n > value.size()) {
 1837|       |                  ctx.error = error_code::syntax_error;
 1838|       |                  return;
 1839|       |               }
 1840|       |            }
 1841|       |
 1842|       |            for (size_t byte_i{}, i{}; byte_i < num_bytes; ++byte_i, ++it) {
 1843|       |               if (invalid_end(ctx, it, end)) {
 1844|       |                  return;
 1845|       |               }
 1846|       |               uint8_t byte;
 1847|       |               std::memcpy(&byte, it, 1);
 1848|       |               for (size_t bit_i = 0; bit_i < 8 && i < n; ++bit_i, ++i) {
 1849|       |                  value[i] = byte >> bit_i & uint8_t(1);
 1850|       |               }
 1851|       |            }
 1852|       |         }
 1853|  4.28k|         else if constexpr (beve_num_array_t<V>) {
 1854|       |            // NV is the arithmetic wire type: V for plain numbers, the rep for chrono
 1855|       |            // durations / count-based time points (which are bit-compatible with it).
 1856|  4.28k|            using NV = beve_num_array_value_t<V>;
 1857|  4.28k|            constexpr uint8_t type = std::floating_point<NV> ? 0 : (std::is_signed_v<NV> ? 0b000'01'000 : 0b000'10'000);
  ------------------
  |  Branch (1857:38): [Folded, False: 4.28k]
  |  Branch (1857:69): [Folded, False: 4.28k]
  ------------------
 1858|  4.28k|            constexpr uint8_t header = tag::typed_array | type | (byte_count<NV> << 5);
 1859|       |
 1860|  4.28k|            auto validate_and_resize = [&](size_t n) -> bool {
 1861|  4.28k|               if constexpr (check_max_array_size(Opts) > 0) {
 1862|  4.28k|                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1863|  4.28k|                     ctx.error = error_code::invalid_length;
 1864|  4.28k|                     return false;
 1865|  4.28k|                  }
 1866|  4.28k|               }
 1867|  4.28k|               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1868|  4.28k|                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1869|  4.28k|                     ctx.error = error_code::invalid_length;
 1870|  4.28k|                     return false;
 1871|  4.28k|                  }
 1872|  4.28k|               }
 1873|       |
 1874|  4.28k|               if constexpr (resizable<T>) {
 1875|  4.28k|                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1876|  4.28k|                     return false;
 1877|  4.28k|                  }
 1878|  4.28k|                  value.resize(n);
 1879|       |
 1880|  4.28k|                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1881|  4.28k|                     value.shrink_to_fit();
 1882|  4.28k|                  }
 1883|  4.28k|               }
 1884|  4.28k|               else {
 1885|  4.28k|                  if (n > value.size()) {
 1886|  4.28k|                     ctx.error = error_code::syntax_error;
 1887|  4.28k|                     return false;
 1888|  4.28k|                  }
 1889|  4.28k|               }
 1890|  4.28k|               return true;
 1891|  4.28k|            };
 1892|       |
 1893|  4.28k|            auto prepare = [&](const size_t element_size) -> size_t {
 1894|  4.28k|               ++it;
 1895|  4.28k|               if (invalid_end(ctx, it, end)) {
 1896|  4.28k|                  return 0;
 1897|  4.28k|               }
 1898|       |
 1899|  4.28k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1900|  4.28k|               if (bool(ctx.error)) [[unlikely]] {
 1901|  4.28k|                  return 0;
 1902|  4.28k|               }
 1903|       |
 1904|  4.28k|               if constexpr (Opts.partial_read) {
 1905|  4.28k|                  n = value.size();
 1906|  4.28k|               }
 1907|       |
 1908|  4.28k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
 1909|  4.28k|               if (!validate_and_resize(n)) {
 1910|  4.28k|                  return 0;
 1911|  4.28k|               }
 1912|       |
 1913|  4.28k|               return n;
 1914|  4.28k|            };
 1915|       |
 1916|  4.28k|            size_t n = 0;
 1917|       |
 1918|  4.28k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (1918:17): [True: 1.87k, False: 2.41k]
  ------------------
 1919|       |               // Aligned typed array: ALIGNED_HEADER | NUMERIC_HEADER | SIZE | PADDING_LENGTH | PADDING | DATA
 1920|  1.87k|               ++it; // skip aligned header byte
 1921|  1.87k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1921:20): [True: 3, False: 1.87k]
  ------------------
 1922|      3|                  return;
 1923|      3|               }
 1924|  1.87k|               const auto numeric_tag = uint8_t(*it);
 1925|       |               // Verify bits 0-2 are typed_array tag
 1926|  1.87k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (1926:20): [True: 13, False: 1.86k]
  ------------------
 1927|     13|                  ctx.error = error_code::syntax_error;
 1928|     13|                  return;
 1929|     13|               }
 1930|       |               // Verify it's a numeric type (category 0, 1, or 2, not 3)
 1931|  1.86k|               if (((numeric_tag >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (1931:20): [True: 2, False: 1.86k]
  ------------------
 1932|      2|                  ctx.error = error_code::syntax_error;
 1933|      2|                  return;
 1934|      2|               }
 1935|       |
 1936|  1.86k|               if (numeric_tag != header) {
  ------------------
  |  Branch (1936:20): [True: 1.29k, False: 564]
  ------------------
 1937|  1.29k|                  if constexpr (check_allow_conversions(Opts)) {
 1938|  1.29k|                     const uint8_t elem_byte_count = byte_count_lookup[numeric_tag >> 5];
 1939|  1.29k|                     ++it; // skip numeric header
 1940|  1.29k|                     std::conditional_t<Opts.partial_read, size_t, const size_t> count =
 1941|  1.29k|                        int_from_compressed(ctx, it, end);
 1942|  1.29k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1942:26): [True: 118, False: 1.17k]
  ------------------
 1943|    118|                        return;
 1944|    118|                     }
 1945|       |                     if constexpr (Opts.partial_read) {
 1946|       |                        count = value.size();
 1947|       |                     }
 1948|       |
 1949|       |                     // Read padding length byte and skip padding
 1950|  1.17k|                     if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1950:26): [True: 87, False: 1.09k]
  ------------------
 1951|     87|                        return;
 1952|     87|                     }
 1953|  1.09k|                     const uint8_t padding = uint8_t(*it);
 1954|  1.09k|                     ++it;
 1955|  1.09k|                     if (padding >= elem_byte_count) [[unlikely]] {
  ------------------
  |  Branch (1955:26): [True: 14, False: 1.07k]
  ------------------
 1956|     14|                        ctx.error = error_code::syntax_error;
 1957|     14|                        return;
 1958|     14|                     }
 1959|  1.07k|                     if (typed_array_out_of_bounds(ctx, it, end, count, elem_byte_count, padding)) return;
  ------------------
  |  Branch (1959:26): [True: 110, False: 967]
  ------------------
 1960|    967|                     it += padding;
 1961|       |
 1962|    967|                     if (!validate_and_resize(count)) {
  ------------------
  |  Branch (1962:26): [True: 52, False: 915]
  ------------------
 1963|     52|                        return;
 1964|     52|                     }
 1965|       |
 1966|  2.74k|                     for (auto&& x : value) {
  ------------------
  |  Branch (1966:36): [True: 2.74k, False: 915]
  ------------------
 1967|  2.74k|                        const uint8_t number_tag = tag::number | (numeric_tag & 0b11111000);
 1968|  2.74k|                        parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 1969|  2.74k|                     }
 1970|    915|                     return;
 1971|       |                  }
 1972|       |                  else {
 1973|       |                     ctx.error = error_code::syntax_error;
 1974|       |                     return;
 1975|       |                  }
 1976|  1.29k|               }
 1977|       |
 1978|      0|               ++it; // skip numeric header
 1979|  1.86k|               std::conditional_t<Opts.partial_read, size_t, const size_t> count = int_from_compressed(ctx, it, end);
 1980|  1.86k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1980:20): [True: 124, False: 1.73k]
  ------------------
 1981|    124|                  return;
 1982|    124|               }
 1983|       |               if constexpr (Opts.partial_read) {
 1984|       |                  count = value.size();
 1985|       |               }
 1986|       |
 1987|       |               // Read padding length byte and skip padding
 1988|  1.73k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1988:20): [True: 76, False: 1.66k]
  ------------------
 1989|     76|                  return;
 1990|     76|               }
 1991|  1.66k|               const uint8_t padding = uint8_t(*it);
 1992|  1.66k|               ++it;
 1993|  1.66k|               if (padding >= sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (1993:20): [True: 28, False: 1.63k]
  ------------------
 1994|     28|                  ctx.error = error_code::syntax_error;
 1995|     28|                  return;
 1996|     28|               }
 1997|       |
 1998|  1.63k|               if (typed_array_out_of_bounds(ctx, it, end, count, sizeof(V), padding)) return;
  ------------------
  |  Branch (1998:20): [True: 102, False: 1.53k]
  ------------------
 1999|  1.53k|               it += padding;
 2000|       |
 2001|  1.53k|               if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2001:20): [True: 41, False: 1.48k]
  ------------------
 2002|     41|                  return;
 2003|     41|               }
 2004|  1.48k|               n = count;
 2005|  1.48k|            }
 2006|  2.41k|            else if (tag != header) {
  ------------------
  |  Branch (2006:22): [True: 1.66k, False: 748]
  ------------------
 2007|  1.66k|               if constexpr (check_allow_conversions(Opts)) {
 2008|  1.66k|                  if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2008:23): [True: 1.66k, False: 0]
  ------------------
 2009|  1.66k|                     if constexpr (check_allow_conversions(Opts)) {
 2010|  1.66k|                        if ((tag & 0b00000111) != tag::typed_array) {
  ------------------
  |  Branch (2010:29): [True: 28, False: 1.63k]
  ------------------
 2011|     28|                           ctx.error = error_code::syntax_error;
 2012|     28|                           return;
 2013|     28|                        }
 2014|       |
 2015|  1.63k|                        const uint8_t byte_count = byte_count_lookup[tag >> 5];
 2016|  1.63k|                        prepare(byte_count);
 2017|  1.63k|                        if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2017:29): [True: 193, False: 1.44k]
  ------------------
 2018|    193|                           return;
 2019|    193|                        }
 2020|       |
 2021|  4.32k|                        for (auto&& x : value) {
  ------------------
  |  Branch (2021:39): [True: 4.32k, False: 1.44k]
  ------------------
 2022|  4.32k|                           const uint8_t number_tag = tag::number | (tag & 0b11111000);
 2023|  4.32k|                           parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 2024|  4.32k|                        }
 2025|  1.44k|                        return;
 2026|       |                     }
 2027|       |                     else {
 2028|       |                        ctx.error = error_code::syntax_error;
 2029|       |                        return;
 2030|       |                     }
 2031|  1.66k|                  }
 2032|       |               }
 2033|       |               else {
 2034|       |                  ctx.error = error_code::syntax_error;
 2035|       |                  return;
 2036|       |               }
 2037|  1.66k|            }
 2038|    748|            else {
 2039|    748|               n = prepare(sizeof(V));
 2040|    748|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2040:20): [True: 308, False: 440]
  ------------------
 2041|    308|                  return;
 2042|    308|               }
 2043|    748|            }
 2044|       |
 2045|  3.59k|            if constexpr (contiguous<T>) {
 2046|  3.59k|               constexpr auto is_volatile =
 2047|  3.59k|                  std::is_volatile_v<std::remove_reference_t<std::remove_pointer_t<decltype(value.data())>>>;
 2048|       |
 2049|       |               if constexpr (is_volatile) {
 2050|       |                  for (size_t i = 0; i < n; ++i) {
 2051|       |                     if ((it + sizeof(V)) > end) [[unlikely]] {
 2052|       |                        ctx.error = error_code::unexpected_end;
 2053|       |                        return;
 2054|       |                     }
 2055|       |
 2056|       |                     NV temp;
 2057|       |                     std::memcpy(&temp, it, sizeof(NV));
 2058|       |                     if constexpr (std::endian::native == std::endian::big) {
 2059|       |                        byteswap_le(temp);
 2060|       |                     }
 2061|       |                     value[i] = beve_num_array_construct<V>(temp);
 2062|       |                     it += sizeof(NV);
 2063|       |                  }
 2064|       |               }
 2065|       |               else if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
 2066|       |                  // On big endian, read and swap each element (through the rep so a chrono
 2067|       |                  // element is byteswapped as its underlying number).
 2068|       |                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2069|       |                  for (size_t i = 0; i < n; ++i) {
 2070|       |                     NV temp;
 2071|       |                     std::memcpy(&temp, it, sizeof(NV));
 2072|       |                     byteswap_le(temp);
 2073|       |                     value[i] = beve_num_array_construct<V>(temp);
 2074|       |                     it += sizeof(NV);
 2075|       |                  }
 2076|       |               }
 2077|  3.59k|               else {
 2078|       |                  // Little endian or single-byte: bulk memcpy. A chrono element is
 2079|       |                  // bit-identical to its rep, so the raw wire bytes populate it directly.
 2080|  3.59k|                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
  ------------------
  |  Branch (2080:23): [True: 0, False: 3.59k]
  ------------------
 2081|  3.59k|                  if (n) {
  ------------------
  |  Branch (2081:23): [True: 136, False: 3.45k]
  ------------------
 2082|    136|                     std::memcpy(value.data(), it, n * sizeof(V));
 2083|    136|                     it += n * sizeof(V);
 2084|    136|                  }
 2085|  3.59k|               }
 2086|       |            }
 2087|       |            else {
 2088|       |               for (auto&& x : value) {
 2089|       |                  if ((it + sizeof(V)) > end) [[unlikely]] {
 2090|       |                     ctx.error = error_code::unexpected_end;
 2091|       |                     return;
 2092|       |                  }
 2093|       |
 2094|       |                  NV temp;
 2095|       |                  std::memcpy(&temp, it, sizeof(NV));
 2096|       |                  if constexpr (std::endian::native == std::endian::big) {
 2097|       |                     byteswap_le(temp);
 2098|       |                  }
 2099|       |                  x = beve_num_array_construct<V>(temp);
 2100|       |                  it += sizeof(NV);
 2101|       |               }
 2102|       |            }
 2103|       |         }
 2104|       |         else if constexpr (str_t<V>) {
 2105|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2106|       |            constexpr uint8_t string_indicator = uint8_t(1) << 5;
 2107|       |            constexpr uint8_t header = tag::typed_array | type | string_indicator;
 2108|       |
 2109|       |            if (tag != header) [[unlikely]] {
 2110|       |               ctx.error = error_code::syntax_error;
 2111|       |               return;
 2112|       |            }
 2113|       |
 2114|       |            ++it;
 2115|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2116|       |            if (bool(ctx.error)) [[unlikely]] {
 2117|       |               return;
 2118|       |            }
 2119|       |
 2120|       |            if constexpr (Opts.partial_read) {
 2121|       |               n = value.size();
 2122|       |            }
 2123|       |
 2124|       |            // Each string needs at least 1 byte for length header
 2125|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2126|       |               ctx.error = error_code::invalid_length;
 2127|       |               return;
 2128|       |            }
 2129|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2130|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2131|       |                  ctx.error = error_code::invalid_length;
 2132|       |                  return;
 2133|       |               }
 2134|       |            }
 2135|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2136|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2137|       |                  ctx.error = error_code::invalid_length;
 2138|       |                  return;
 2139|       |               }
 2140|       |            }
 2141|       |
 2142|       |            if constexpr (resizable<T>) {
 2143|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2144|       |                  return;
 2145|       |               }
 2146|       |               value.resize(n);
 2147|       |
 2148|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2149|       |                  value.shrink_to_fit();
 2150|       |               }
 2151|       |            }
 2152|       |
 2153|       |            for (auto&& x : value) {
 2154|       |               const auto length = int_from_compressed(ctx, it, end);
 2155|       |               if (bool(ctx.error)) [[unlikely]] {
 2156|       |                  return;
 2157|       |               }
 2158|       |               if (uint64_t(end - it) < length) [[unlikely]] {
 2159|       |                  ctx.error = error_code::unexpected_end;
 2160|       |                  return;
 2161|       |               }
 2162|       |               if constexpr (check_max_string_length(Opts) > 0) {
 2163|       |                  if (length > check_max_string_length(Opts)) [[unlikely]] {
 2164|       |                     ctx.error = error_code::invalid_length;
 2165|       |                     return;
 2166|       |                  }
 2167|       |               }
 2168|       |               if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 2169|       |                  if (ctx.max_string_length > 0 && length > ctx.max_string_length) [[unlikely]] {
 2170|       |                     ctx.error = error_code::invalid_length;
 2171|       |                     return;
 2172|       |                  }
 2173|       |               }
 2174|       |
 2175|       |               x.resize(length);
 2176|       |
 2177|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<decltype(x)>) {
 2178|       |                  x.shrink_to_fit();
 2179|       |               }
 2180|       |
 2181|       |               std::memcpy(x.data(), it, length);
 2182|       |               it += length;
 2183|       |            }
 2184|       |         }
 2185|       |         else if constexpr (complex_t<V>) {
 2186|       |            constexpr uint8_t header = tag::extensions | 0b00011'000;
 2187|       |            if (tag != header) [[unlikely]] {
 2188|       |               ctx.error = error_code::syntax_error;
 2189|       |               return;
 2190|       |            }
 2191|       |            ++it;
 2192|       |            if (invalid_end(ctx, it, end)) {
 2193|       |               return;
 2194|       |            }
 2195|       |
 2196|       |            using X = typename V::value_type;
 2197|       |            constexpr uint8_t complex_array = 1;
 2198|       |            constexpr uint8_t type = std::floating_point<X> ? 0 : (std::is_signed_v<X> ? 0b000'01'000 : 0b000'10'000);
 2199|       |            constexpr uint8_t complex_header = complex_array | type | (byte_count<X> << 5);
 2200|       |            const auto complex_tag = uint8_t(*it);
 2201|       |            if (complex_tag != complex_header) [[unlikely]] {
 2202|       |               ctx.error = error_code::syntax_error;
 2203|       |               return;
 2204|       |            }
 2205|       |            ++it;
 2206|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2207|       |            if (bool(ctx.error)) [[unlikely]] {
 2208|       |               return;
 2209|       |            }
 2210|       |
 2211|       |            if constexpr (Opts.partial_read) {
 2212|       |               n = value.size();
 2213|       |            }
 2214|       |
 2215|       |            if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2216|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2217|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2218|       |                  ctx.error = error_code::invalid_length;
 2219|       |                  return;
 2220|       |               }
 2221|       |            }
 2222|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2223|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2224|       |                  ctx.error = error_code::invalid_length;
 2225|       |                  return;
 2226|       |               }
 2227|       |            }
 2228|       |
 2229|       |            if constexpr (resizable<T>) {
 2230|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2231|       |                  return;
 2232|       |               }
 2233|       |               value.resize(n);
 2234|       |
 2235|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2236|       |                  value.shrink_to_fit();
 2237|       |               }
 2238|       |            }
 2239|       |            else {
 2240|       |               if (n > value.size()) {
 2241|       |                  ctx.error = error_code::syntax_error;
 2242|       |                  return;
 2243|       |               }
 2244|       |            }
 2245|       |
 2246|       |            if constexpr (contiguous<T>) {
 2247|       |               if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2248|       |                  // On big endian, read and swap each complex element's components
 2249|       |                  for (size_t i = 0; i < n; ++i) {
 2250|       |                     std::memcpy(&value[i], it, sizeof(V));
 2251|       |                     X real_part = value[i].real();
 2252|       |                     X imag_part = value[i].imag();
 2253|       |                     byteswap_le(real_part);
 2254|       |                     byteswap_le(imag_part);
 2255|       |                     value[i] = V(real_part, imag_part);
 2256|       |                     it += sizeof(V);
 2257|       |                  }
 2258|       |               }
 2259|       |               else {
 2260|       |                  // Little endian or single-byte: bulk memcpy
 2261|       |                  if (n) {
 2262|       |                     std::memcpy(value.data(), it, n * sizeof(V));
 2263|       |                     it += n * sizeof(V);
 2264|       |                  }
 2265|       |               }
 2266|       |            }
 2267|       |            else {
 2268|       |               for (auto&& x : value) {
 2269|       |                  std::memcpy(&x, it, sizeof(V));
 2270|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2271|       |                     X real_part = x.real();
 2272|       |                     X imag_part = x.imag();
 2273|       |                     byteswap_le(real_part);
 2274|       |                     byteswap_le(imag_part);
 2275|       |                     x = V(real_part, imag_part);
 2276|       |                  }
 2277|       |                  it += sizeof(V);
 2278|       |               }
 2279|       |            }
 2280|       |         }
 2281|       |         else {
 2282|       |            if ((tag & 0b00000'111) != tag::generic_array) [[unlikely]] {
 2283|       |               ctx.error = error_code::syntax_error;
 2284|       |               return;
 2285|       |            }
 2286|       |
 2287|       |            depth_guard guard{ctx};
 2288|       |            if (!guard) [[unlikely]] {
 2289|       |               return;
 2290|       |            }
 2291|       |
 2292|       |            ++it;
 2293|       |            std::conditional_t<check_partial_read(Opts), size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2294|       |            if (bool(ctx.error)) [[unlikely]] {
 2295|       |               return;
 2296|       |            }
 2297|       |
 2298|       |            if constexpr (Opts.partial_read) {
 2299|       |               n = value.size();
 2300|       |            }
 2301|       |
 2302|       |            // Each element needs at least 1 byte for its tag
 2303|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2304|       |               ctx.error = error_code::invalid_length;
 2305|       |               return;
 2306|       |            }
 2307|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2308|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2309|       |                  ctx.error = error_code::invalid_length;
 2310|       |                  return;
 2311|       |               }
 2312|       |            }
 2313|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2314|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2315|       |                  ctx.error = error_code::invalid_length;
 2316|       |                  return;
 2317|       |               }
 2318|       |            }
 2319|       |
 2320|       |            if constexpr (resizable<T>) {
 2321|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2322|       |                  return;
 2323|       |               }
 2324|       |               value.resize(n);
 2325|       |
 2326|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2327|       |                  value.shrink_to_fit();
 2328|       |               }
 2329|       |            }
 2330|       |
 2331|       |            for (auto&& item : value) {
 2332|       |               parse<BEVE>::op<Opts>(item, ctx, it, end);
 2333|       |            }
 2334|       |         }
 2335|  4.28k|      }
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE_clEm:
 1860|  3.11k|            auto validate_and_resize = [&](size_t n) -> bool {
 1861|       |               if constexpr (check_max_array_size(Opts) > 0) {
 1862|       |                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1863|       |                     ctx.error = error_code::invalid_length;
 1864|       |                     return false;
 1865|       |                  }
 1866|       |               }
 1867|       |               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1868|       |                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1869|       |                     ctx.error = error_code::invalid_length;
 1870|       |                     return false;
 1871|       |                  }
 1872|       |               }
 1873|       |
 1874|       |               if constexpr (resizable<T>) {
 1875|       |                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1876|       |                     return false;
 1877|       |                  }
 1878|       |                  value.resize(n);
 1879|       |
 1880|       |                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1881|       |                     value.shrink_to_fit();
 1882|       |                  }
 1883|       |               }
 1884|  3.11k|               else {
 1885|  3.11k|                  if (n > value.size()) {
  ------------------
  |  Branch (1885:23): [True: 129, False: 2.98k]
  ------------------
 1886|    129|                     ctx.error = error_code::syntax_error;
 1887|    129|                     return false;
 1888|    129|                  }
 1889|  3.11k|               }
 1890|  2.98k|               return true;
 1891|  3.11k|            };
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmRKhTkNS_10is_contextERNS_7contextERPKcSA_Qcl15check_no_headerT_EEEvOT0_OT1_OT2_OT3_T4_:
   37|  7.06k|      {
   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|  7.06k|         else {
   48|  7.06k|            using V = std::remove_cvref_t<T>;
   49|  7.06k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Tag>(tag), std::forward<Ctx>(ctx),
   50|  7.06k|                                             std::forward<It0>(it), end);
   51|  7.06k|         }
   52|  7.06k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  7.06k|      {
  209|  7.06k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 383, False: 6.68k]
  ------------------
  210|    383|            return;
  211|    383|         }
  212|       |
  213|  6.68k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  6.68k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  6.68k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 6.68k, False: 0]
  ------------------
  218|  6.68k|            if constexpr (check_allow_conversions(Opts)) {
  219|  6.68k|               if constexpr (num_t<T>) {
  220|  6.68k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 0, False: 6.68k]
  ------------------
  221|      0|                     ctx.error = error_code::syntax_error;
  222|      0|                     return;
  223|      0|                  }
  224|       |
  225|  6.68k|                  auto decode = [&](auto&& i) {
  226|  6.68k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  227|  6.68k|                        ctx.error = error_code::unexpected_end;
  228|  6.68k|                        return;
  229|  6.68k|                     }
  230|  6.68k|                     using I = std::decay_t<decltype(i)>;
  231|  6.68k|                     std::memcpy(&i, it, sizeof(I));
  232|  6.68k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  6.68k|                        byteswap_le(i);
  234|  6.68k|                     }
  235|  6.68k|                     value = static_cast<V>(i);
  236|  6.68k|                     it += sizeof(i);
  237|  6.68k|                  };
  238|       |
  239|  6.68k|                  switch (tag) {
  240|     18|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 18, False: 6.66k]
  ------------------
  241|     18|                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|     18|                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|       |                     else {
  246|       |                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|       |                        decode(float{});
  249|       |                     }
  250|     18|                     return;
  251|      0|                  }
  252|     30|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 30, False: 6.65k]
  ------------------
  253|     30|                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|     30|                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|       |                     else {
  258|       |                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|       |                        decode(double{});
  261|       |                     }
  262|     30|                     return;
  263|      0|                  }
  264|  2.51k|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 2.51k, False: 4.16k]
  ------------------
  265|  2.51k|                     decode(int8_t{});
  266|  2.51k|                     return;
  267|      0|                  }
  268|  1.03k|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 1.03k, False: 5.65k]
  ------------------
  269|  1.03k|                     decode(int16_t{});
  270|  1.03k|                     return;
  271|      0|                  }
  272|    491|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 491, False: 6.19k]
  ------------------
  273|    491|                     decode(int32_t{});
  274|    491|                     return;
  275|      0|                  }
  276|    504|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 504, False: 6.18k]
  ------------------
  277|    504|                     decode(int64_t{});
  278|    504|                     return;
  279|      0|                  }
  280|  1.24k|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 1.24k, False: 5.44k]
  ------------------
  281|  1.24k|                     decode(uint8_t{});
  282|  1.24k|                     return;
  283|      0|                  }
  284|    351|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 351, False: 6.33k]
  ------------------
  285|    351|                     decode(uint16_t{});
  286|    351|                     return;
  287|      0|                  }
  288|    465|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 465, False: 6.22k]
  ------------------
  289|    465|                     decode(uint32_t{});
  290|    465|                     return;
  291|      0|                  }
  292|      0|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 0, False: 6.68k]
  ------------------
  293|      0|                     decode(uint64_t{});
  294|      0|                     return;
  295|      0|                  }
  296|     30|                  default: {
  ------------------
  |  Branch (296:19): [True: 30, False: 6.65k]
  ------------------
  297|     30|                     ctx.error = error_code::syntax_error;
  298|     30|                     return;
  299|      0|                  }
  300|  6.68k|                  }
  301|  6.68k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  6.68k|         }
  308|       |
  309|  6.68k|         if ((it + sizeof(V)) > end) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 0, False: 6.68k]
  ------------------
  310|      0|            ctx.error = error_code::unexpected_end;
  311|      0|            return;
  312|      0|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  6.68k|         else {
  323|  6.68k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  6.68k|         }
  328|  6.68k|         it += sizeof(V);
  329|  6.68k|      }
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|  2.51k|                  auto decode = [&](auto&& i) {
  226|  2.51k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 2.51k]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|  2.51k|                     using I = std::decay_t<decltype(i)>;
  231|  2.51k|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|  2.51k|                     value = static_cast<V>(i);
  236|  2.51k|                     it += sizeof(i);
  237|  2.51k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|  1.03k|                  auto decode = [&](auto&& i) {
  226|  1.03k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 40, False: 995]
  ------------------
  227|     40|                        ctx.error = error_code::unexpected_end;
  228|     40|                        return;
  229|     40|                     }
  230|    995|                     using I = std::decay_t<decltype(i)>;
  231|    995|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    995|                     value = static_cast<V>(i);
  236|    995|                     it += sizeof(i);
  237|    995|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  225|    491|                  auto decode = [&](auto&& i) {
  226|    491|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 58, False: 433]
  ------------------
  227|     58|                        ctx.error = error_code::unexpected_end;
  228|     58|                        return;
  229|     58|                     }
  230|    433|                     using I = std::decay_t<decltype(i)>;
  231|    433|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    433|                     value = static_cast<V>(i);
  236|    433|                     it += sizeof(i);
  237|    433|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    504|                  auto decode = [&](auto&& i) {
  226|    504|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 50, False: 454]
  ------------------
  227|     50|                        ctx.error = error_code::unexpected_end;
  228|     50|                        return;
  229|     50|                     }
  230|    454|                     using I = std::decay_t<decltype(i)>;
  231|    454|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    454|                     value = static_cast<V>(i);
  236|    454|                     it += sizeof(i);
  237|    454|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|  1.24k|                  auto decode = [&](auto&& i) {
  226|  1.24k|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 1.24k]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|  1.24k|                     using I = std::decay_t<decltype(i)>;
  231|  1.24k|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|  1.24k|                     value = static_cast<V>(i);
  236|  1.24k|                     it += sizeof(i);
  237|  1.24k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    351|                  auto decode = [&](auto&& i) {
  226|    351|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 37, False: 314]
  ------------------
  227|     37|                        ctx.error = error_code::unexpected_end;
  228|     37|                        return;
  229|     37|                     }
  230|    314|                     using I = std::decay_t<decltype(i)>;
  231|    314|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    314|                     value = static_cast<V>(i);
  236|    314|                     it += sizeof(i);
  237|    314|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    465|                  auto decode = [&](auto&& i) {
  226|    465|                     if ((it + sizeof(i)) > end) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 47, False: 418]
  ------------------
  227|     47|                        ctx.error = error_code::unexpected_end;
  228|     47|                        return;
  229|     47|                     }
  230|    418|                     using I = std::decay_t<decltype(i)>;
  231|    418|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    418|                     value = static_cast<V>(i);
  236|    418|                     it += sizeof(i);
  237|    418|                  };
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE0_clEm:
 1893|  2.38k|            auto prepare = [&](const size_t element_size) -> size_t {
 1894|  2.38k|               ++it;
 1895|  2.38k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1895:20): [True: 11, False: 2.37k]
  ------------------
 1896|     11|                  return 0;
 1897|     11|               }
 1898|       |
 1899|  2.37k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1900|  2.37k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1900:20): [True: 190, False: 2.18k]
  ------------------
 1901|    190|                  return 0;
 1902|    190|               }
 1903|       |
 1904|       |               if constexpr (Opts.partial_read) {
 1905|       |                  n = value.size();
 1906|       |               }
 1907|       |
 1908|  2.18k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
  ------------------
  |  Branch (1908:20): [True: 264, False: 1.91k]
  ------------------
 1909|  1.91k|               if (!validate_and_resize(n)) {
  ------------------
  |  Branch (1909:20): [True: 36, False: 1.88k]
  ------------------
 1910|     36|                  return 0;
 1911|     36|               }
 1912|       |
 1913|  1.88k|               return n;
 1914|  1.91k|            };

_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  181|  8.33M|   {
  182|  8.33M|      using Buffer = std::remove_cvref_t<B>;
  183|       |
  184|  8.33M|      if constexpr (vector_like<Buffer>) {
  185|  8.33M|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (185:14): [True: 8.07k, False: 8.33M]
  ------------------
  186|       |            // 2× growth amortizes repeated reallocations to O(n) total cost.
  187|  8.07k|            b.resize(2 * required);
  188|  8.07k|         }
  189|  8.33M|         return true;
  190|       |      }
  191|       |      else if constexpr (has_bounded_capacity<Buffer>) {
  192|       |         if (required > buffer_traits<Buffer>::capacity(b)) [[unlikely]] {
  193|       |            ctx.error = error_code::buffer_overflow;
  194|       |            return false;
  195|       |         }
  196|       |         return true;
  197|       |      }
  198|       |      else {
  199|       |         return true; // Raw pointer or other - trust caller
  200|       |      }
  201|  8.33M|   }

_ZN3glz10get_memberIR9my_structRiEEDcOT_OT0_:
  616|  2.27k|   {
  617|  2.27k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  2.27k|      else {
  639|  2.27k|         return element;
  640|  2.27k|      }
  641|  2.27k|   }
_ZN3glz10get_memberIR9my_structRdEEDcOT_OT0_:
  616|  2.37k|   {
  617|  2.37k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  2.37k|      else {
  639|  2.37k|         return element;
  640|  2.37k|      }
  641|  2.37k|   }
_ZN3glz10get_memberIR9my_structRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEDcOT_OT0_:
  616|  1.90k|   {
  617|  1.90k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  1.90k|      else {
  639|  1.90k|         return element;
  640|  1.90k|      }
  641|  1.90k|   }
_ZN3glz10get_memberIR9my_structRNSt3__15arrayImLm3EEEEEDcOT_OT0_:
  616|  4.29k|   {
  617|  4.29k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  4.29k|      else {
  639|  4.29k|         return element;
  640|  4.29k|      }
  641|  4.29k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  288|   128k|   {
  289|   128k|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  290|   128k|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  291|       |      }
  292|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  293|       |         return value ? std::string_view{value} : std::string_view{};
  294|       |      }
  295|       |      else if constexpr (has_data<T> && has_size<T>) {
  296|       |         return std::string_view{value.data(), value.size()};
  297|       |      }
  298|       |      else {
  299|       |         return std::string_view{value};
  300|       |      }
  301|   128k|   }

_ZN3glz11depth_guardINS_7contextEEC2ERS1_:
  174|  3.96k|      depth_guard(Ctx& c) noexcept : ctx(c)
  175|  3.96k|      {
  176|  3.96k|         if (ctx.depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (176:14): [True: 0, False: 3.96k]
  ------------------
  177|      0|            ctx.error = error_code::exceeded_max_recursive_depth;
  178|      0|            return;
  179|      0|         }
  180|  3.96k|         ++ctx.depth;
  181|  3.96k|         entered = true;
  182|  3.96k|      }
_ZNK3glz11depth_guardINS_7contextEEcvbEv:
  187|  3.96k|      explicit operator bool() const noexcept { return entered; }
_ZN3glz11depth_guardINS_7contextEED2Ev:
  184|  3.96k|      {
  185|  3.96k|         if (entered) --ctx.depth;
  ------------------
  |  Branch (185:14): [True: 3.96k, False: 0]
  ------------------
  186|  3.96k|      }
_ZNK3glz9error_ctxcvbEv:
  129|  20.1k|      operator bool() const noexcept { return ec != error_code::none; }

_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  219|  20.1k|   {
  220|  20.1k|      format_context_t<Opts.format> ctx{};
  221|  20.1k|      return read<Opts>(value, buffer, ctx);
  222|  20.1k|   }
_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  136|  20.1k|   {
  137|  20.1k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  138|  20.1k|      using Buffer = std::remove_reference_t<decltype(buffer)>;
  139|       |
  140|  20.1k|      if constexpr (Opts.format != NDJSON) {
  141|  20.1k|         if (buffer.empty()) [[unlikely]] {
  ------------------
  |  Branch (141:14): [True: 0, False: 20.1k]
  ------------------
  142|      0|            ctx.error = error_code::no_read_input;
  143|      0|            return {0, ctx.error, ctx.custom_error_message};
  144|      0|         }
  145|  20.1k|      }
  146|       |
  147|  20.1k|      constexpr bool use_padded = resizable<Buffer> && non_const_buffer<Buffer> && !check_disable_padding(Opts);
  ------------------
  |  Branch (147:35): [Folded, False: 20.1k]
  |  Branch (147:56): [Folded, False: 0]
  |  Branch (147:84): [True: 0, Folded]
  ------------------
  148|       |
  149|  20.1k|      [[maybe_unused]] size_t original_size{};
  150|       |      if constexpr (use_padded) {
  151|       |         // Pad the buffer for SWAR
  152|       |         original_size = buffer.size();
  153|       |         buffer.resize(original_size + padding_bytes);
  154|       |      }
  155|       |
  156|  20.1k|      auto [it, end] = read_iterators<Opts, use_padded>(buffer);
  157|  20.1k|      auto start = it;
  158|  20.1k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (158:11): [True: 0, False: 20.1k]
  ------------------
  159|      0|         goto finish;
  160|      0|      }
  161|       |
  162|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  163|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  164|  20.1k|      if constexpr (requires { ctx.speculation_budget; }) {
  165|  20.1k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  166|  20.1k|         ctx.speculation_budget =
  167|  20.1k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (167:14): [True: 548, False: 19.5k]
  ------------------
  168|  20.1k|      }
  169|       |
  170|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  171|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  172|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  173|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  174|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  175|       |      if constexpr (requires { ctx.stream_begin; }) {
  176|       |         ctx.stream_begin = nullptr;
  177|       |      }
  178|       |
  179|       |      if constexpr (use_padded) {
  180|       |         parse<Opts.format>::template op<is_padded_on<Opts>()>(value, ctx, it, end);
  181|       |      }
  182|  20.1k|      else {
  183|  20.1k|         parse<Opts.format>::template op<is_padded_off<Opts>()>(value, ctx, it, end);
  184|  20.1k|      }
  185|       |
  186|  20.1k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (186:11): [True: 20.0k, False: 82]
  ------------------
  187|  20.0k|         goto finish;
  188|  20.0k|      }
  189|       |
  190|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  191|       |      // So, trailing whitespace is permitted and sometimes we want to
  192|       |      // validate this, even though this memory will not affect Glaze.
  193|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  194|       |         if (it < end) {
  195|       |            skip_ws<Opts>(ctx, it, end);
  196|       |            if (bool(ctx.error)) [[unlikely]] {
  197|       |               goto finish;
  198|       |            }
  199|       |            if (it != end) [[unlikely]] {
  200|       |               ctx.error = error_code::syntax_error;
  201|       |            }
  202|       |         }
  203|       |      }
  204|       |
  205|  20.1k|   finish:
  206|  20.1k|      finalize_top_level_read<Opts>(ctx, start, it, end);
  207|       |
  208|       |      if constexpr (use_padded) {
  209|       |         // Restore the original buffer state
  210|       |         buffer.resize(original_size);
  211|       |      }
  212|       |
  213|  20.1k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  214|     82|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEELb0ETkNS_10contiguousERKNSt3__16vectorIcNS2_9allocatorIcEEEEEEDaOT1_:
   40|  20.1k|   {
   41|  20.1k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  20.1k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  20.1k|      auto end = reinterpret_cast<const char*>(buffer.data()); // to be incremented
   45|       |
   46|       |      if constexpr (Padded) {
   47|       |         end += buffer.size() - padding_bytes;
   48|       |      }
   49|  20.1k|      else {
   50|  20.1k|         end += buffer.size();
   51|  20.1k|      }
   52|       |
   53|  20.1k|      return std::pair{it, end};
   54|  20.1k|   }
_ZN3glz16exceeds_capacityINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT_mRT0_:
   28|  1.61k|   {
   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.61k|      return false;
   36|  1.61k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  115|  20.1k|   {
  116|       |      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  117|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  118|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  119|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  120|       |         // path; neither is an absent value.
  121|       |         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  122|       |            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  123|       |            const char* consumed = start;
  124|       |            skip_ws<Opts>(ws_ctx, consumed, it);
  125|       |            if (consumed == it) {
  126|       |               ctx.error = error_code::no_read_input;
  127|       |            }
  128|       |         }
  129|       |      }
  130|  20.1k|      finalize_read_context<Opts>(ctx);
  131|  20.1k|   }
_ZN3glz21finalize_read_contextITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_:
   76|  20.1k|   {
   77|       |      // A partial read stops as soon as it has the fields it was asked for, so it unwinds through
   78|       |      // its enclosing containers on an error code rather than through their closing braces, and
   79|       |      // none of them decrement depth on the way out. Depth is left standing at whatever nesting the
   80|       |      // last field sat at.
   81|       |      //
   82|       |      // That has to be cleared here rather than left for the next read to trip over. This is the
   83|       |      // one path that reports success with depth still raised, and depth is what settle_end_reached
   84|       |      // reads to tell a completed parse from a truncated one -- so a context reused after a partial
   85|       |      // read would see a later well-formed buffer settle to unexpected_end. Reads that end any
   86|       |      // other way either return depth to zero themselves or carry an error, and a context holding
   87|       |      // an error short-circuits the next read before it parses anything.
   88|       |      if constexpr (check_partial_read(Opts)) {
   89|       |         if (ctx.error == error_code::partial_read_complete) [[likely]] {
   90|       |            ctx.error = error_code::none;
   91|       |            ctx.depth = 0;
   92|       |            return;
   93|       |         }
   94|       |      }
   95|  20.1k|      settle_end_reached(ctx);
   96|  20.1k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   68|  20.1k|   {
   69|  20.1k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (69:11): [True: 0, False: 20.1k]
  ------------------
   70|      0|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (70:22): [True: 0, False: 0]
  ------------------
   71|      0|      }
   72|  20.1k|   }

_ZN3glz21decode_hash_with_sizeILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2685|  11.3k|      {
 2686|  11.3k|         if (n < HashInfo.min_length || n > HashInfo.max_length) [[unlikely]] {
  ------------------
  |  Branch (2686:14): [True: 289, False: 11.0k]
  |  Branch (2686:41): [True: 42, False: 11.0k]
  ------------------
 2687|    331|            return N;
 2688|    331|         }
 2689|  11.0k|         return decode_hash_with_size_impl<Format, T, HashInfo, Type>::op(it, end, n);
 2690|  11.3k|      }
_ZN3glz26decode_hash_with_size_implILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2738|  11.0k|      {
 2739|       |         // unique_index < min_length <= n, so it[unique_index] is within the key (the wrapper has
 2740|       |         // already rejected lengths outside [min_length, max_length]).
 2741|       |         if constexpr (HashInfo.sized_hash) {
 2742|       |            const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2743|       |            return HashInfo.table[h % bsize];
 2744|       |         }
 2745|  11.0k|         else {
 2746|       |            if constexpr (N == 2) {
 2747|       |               // Avoids using a hash table
 2748|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2749|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2750|       |            }
 2751|  11.0k|            else {
 2752|  11.0k|               return HashInfo.table[uint8_t(it[uindex])];
 2753|  11.0k|            }
 2754|  11.0k|         }
 2755|  11.0k|      }

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

_ZN3glz2toILj10EfE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|  1.47M|      {
  738|  1.47M|         if constexpr (not check_write_unchecked(Opts)) {
  739|  1.47M|            static_assert(required_padding<T>());
  740|  1.47M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 1.47M]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|  1.47M|         }
  744|       |
  745|  1.47M|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|  1.47M|         else {
  755|  1.47M|            write_chars::op<O>(value, ctx, b, ix);
  756|  1.47M|         }
  757|  1.47M|      }
_ZN3glz16required_paddingIfEEmv:
  461|  1.47M|   {
  462|  1.47M|      constexpr auto value = []() -> size_t {
  463|  1.47M|         if constexpr (boolean_like<T>) {
  464|  1.47M|            return 8;
  465|  1.47M|         }
  466|  1.47M|         else if constexpr (num_t<T>) {
  467|  1.47M|            if constexpr (std::floating_point<T>) {
  468|  1.47M|               if constexpr (sizeof(T) > 8) {
  469|  1.47M|                  return 64;
  470|  1.47M|               }
  471|  1.47M|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|  1.47M|                  return zmij::double_buffer_size + 4;
  474|  1.47M|               }
  475|  1.47M|               else {
  476|  1.47M|                  return zmij::float_buffer_size + 4;
  477|  1.47M|               }
  478|  1.47M|            }
  479|  1.47M|            else if constexpr (sizeof(T) > 4) {
  480|  1.47M|               return 24;
  481|  1.47M|            }
  482|  1.47M|            else if constexpr (sizeof(T) > 2) {
  483|  1.47M|               return 16;
  484|  1.47M|            }
  485|  1.47M|            else {
  486|  1.47M|               return 8;
  487|  1.47M|            }
  488|  1.47M|         }
  489|  1.47M|         else if constexpr (nullable_like<T>) {
  490|  1.47M|            if constexpr (has_value_type<T>) {
  491|  1.47M|               return required_padding<typename T::value_type>();
  492|  1.47M|            }
  493|  1.47M|            else if constexpr (has_element_type<T>) {
  494|  1.47M|               return required_padding<typename T::element_type>();
  495|  1.47M|            }
  496|  1.47M|            else {
  497|  1.47M|               return 0;
  498|  1.47M|            }
  499|  1.47M|         }
  500|  1.47M|         else if constexpr (always_null_t<T>) {
  501|  1.47M|            return 8;
  502|  1.47M|         }
  503|  1.47M|         else {
  504|  1.47M|            return 0;
  505|  1.47M|         }
  506|  1.47M|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|  1.47M|      return value;
  514|  1.47M|   }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   792k|      {
  738|   792k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   792k|            static_assert(required_padding<T>());
  740|   792k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 792k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   792k|         }
  744|       |
  745|   792k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   792k|         else {
  755|   792k|            write_chars::op<O>(value, ctx, b, ix);
  756|   792k|         }
  757|   792k|      }
_ZN3glz16required_paddingIdEEmv:
  461|   792k|   {
  462|   792k|      constexpr auto value = []() -> size_t {
  463|   792k|         if constexpr (boolean_like<T>) {
  464|   792k|            return 8;
  465|   792k|         }
  466|   792k|         else if constexpr (num_t<T>) {
  467|   792k|            if constexpr (std::floating_point<T>) {
  468|   792k|               if constexpr (sizeof(T) > 8) {
  469|   792k|                  return 64;
  470|   792k|               }
  471|   792k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   792k|                  return zmij::double_buffer_size + 4;
  474|   792k|               }
  475|   792k|               else {
  476|   792k|                  return zmij::float_buffer_size + 4;
  477|   792k|               }
  478|   792k|            }
  479|   792k|            else if constexpr (sizeof(T) > 4) {
  480|   792k|               return 24;
  481|   792k|            }
  482|   792k|            else if constexpr (sizeof(T) > 2) {
  483|   792k|               return 16;
  484|   792k|            }
  485|   792k|            else {
  486|   792k|               return 8;
  487|   792k|            }
  488|   792k|         }
  489|   792k|         else if constexpr (nullable_like<T>) {
  490|   792k|            if constexpr (has_value_type<T>) {
  491|   792k|               return required_padding<typename T::value_type>();
  492|   792k|            }
  493|   792k|            else if constexpr (has_element_type<T>) {
  494|   792k|               return required_padding<typename T::element_type>();
  495|   792k|            }
  496|   792k|            else {
  497|   792k|               return 0;
  498|   792k|            }
  499|   792k|         }
  500|   792k|         else if constexpr (always_null_t<T>) {
  501|   792k|            return 8;
  502|   792k|         }
  503|   792k|         else {
  504|   792k|            return 0;
  505|   792k|         }
  506|   792k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   792k|      return value;
  514|   792k|   }
_ZN3glz2toILj10EaE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   626k|      {
  738|   626k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   626k|            static_assert(required_padding<T>());
  740|   626k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 626k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   626k|         }
  744|       |
  745|   626k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   626k|         else {
  755|   626k|            write_chars::op<O>(value, ctx, b, ix);
  756|   626k|         }
  757|   626k|      }
_ZN3glz16required_paddingIaEEmv:
  461|   626k|   {
  462|   626k|      constexpr auto value = []() -> size_t {
  463|   626k|         if constexpr (boolean_like<T>) {
  464|   626k|            return 8;
  465|   626k|         }
  466|   626k|         else if constexpr (num_t<T>) {
  467|   626k|            if constexpr (std::floating_point<T>) {
  468|   626k|               if constexpr (sizeof(T) > 8) {
  469|   626k|                  return 64;
  470|   626k|               }
  471|   626k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   626k|                  return zmij::double_buffer_size + 4;
  474|   626k|               }
  475|   626k|               else {
  476|   626k|                  return zmij::float_buffer_size + 4;
  477|   626k|               }
  478|   626k|            }
  479|   626k|            else if constexpr (sizeof(T) > 4) {
  480|   626k|               return 24;
  481|   626k|            }
  482|   626k|            else if constexpr (sizeof(T) > 2) {
  483|   626k|               return 16;
  484|   626k|            }
  485|   626k|            else {
  486|   626k|               return 8;
  487|   626k|            }
  488|   626k|         }
  489|   626k|         else if constexpr (nullable_like<T>) {
  490|   626k|            if constexpr (has_value_type<T>) {
  491|   626k|               return required_padding<typename T::value_type>();
  492|   626k|            }
  493|   626k|            else if constexpr (has_element_type<T>) {
  494|   626k|               return required_padding<typename T::element_type>();
  495|   626k|            }
  496|   626k|            else {
  497|   626k|               return 0;
  498|   626k|            }
  499|   626k|         }
  500|   626k|         else if constexpr (always_null_t<T>) {
  501|   626k|            return 8;
  502|   626k|         }
  503|   626k|         else {
  504|   626k|            return 0;
  505|   626k|         }
  506|   626k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   626k|      return value;
  514|   626k|   }
_ZN3glz2toILj10EsE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|  1.14M|      {
  738|  1.14M|         if constexpr (not check_write_unchecked(Opts)) {
  739|  1.14M|            static_assert(required_padding<T>());
  740|  1.14M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 1.14M]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|  1.14M|         }
  744|       |
  745|  1.14M|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|  1.14M|         else {
  755|  1.14M|            write_chars::op<O>(value, ctx, b, ix);
  756|  1.14M|         }
  757|  1.14M|      }
_ZN3glz16required_paddingIsEEmv:
  461|  1.14M|   {
  462|  1.14M|      constexpr auto value = []() -> size_t {
  463|  1.14M|         if constexpr (boolean_like<T>) {
  464|  1.14M|            return 8;
  465|  1.14M|         }
  466|  1.14M|         else if constexpr (num_t<T>) {
  467|  1.14M|            if constexpr (std::floating_point<T>) {
  468|  1.14M|               if constexpr (sizeof(T) > 8) {
  469|  1.14M|                  return 64;
  470|  1.14M|               }
  471|  1.14M|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|  1.14M|                  return zmij::double_buffer_size + 4;
  474|  1.14M|               }
  475|  1.14M|               else {
  476|  1.14M|                  return zmij::float_buffer_size + 4;
  477|  1.14M|               }
  478|  1.14M|            }
  479|  1.14M|            else if constexpr (sizeof(T) > 4) {
  480|  1.14M|               return 24;
  481|  1.14M|            }
  482|  1.14M|            else if constexpr (sizeof(T) > 2) {
  483|  1.14M|               return 16;
  484|  1.14M|            }
  485|  1.14M|            else {
  486|  1.14M|               return 8;
  487|  1.14M|            }
  488|  1.14M|         }
  489|  1.14M|         else if constexpr (nullable_like<T>) {
  490|  1.14M|            if constexpr (has_value_type<T>) {
  491|  1.14M|               return required_padding<typename T::value_type>();
  492|  1.14M|            }
  493|  1.14M|            else if constexpr (has_element_type<T>) {
  494|  1.14M|               return required_padding<typename T::element_type>();
  495|  1.14M|            }
  496|  1.14M|            else {
  497|  1.14M|               return 0;
  498|  1.14M|            }
  499|  1.14M|         }
  500|  1.14M|         else if constexpr (always_null_t<T>) {
  501|  1.14M|            return 8;
  502|  1.14M|         }
  503|  1.14M|         else {
  504|  1.14M|            return 0;
  505|  1.14M|         }
  506|  1.14M|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|  1.14M|      return value;
  514|  1.14M|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   469k|      {
  738|   469k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   469k|            static_assert(required_padding<T>());
  740|   469k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 469k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   469k|         }
  744|       |
  745|   469k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   469k|         else {
  755|   469k|            write_chars::op<O>(value, ctx, b, ix);
  756|   469k|         }
  757|   469k|      }
_ZN3glz16required_paddingIiEEmv:
  461|   469k|   {
  462|   469k|      constexpr auto value = []() -> size_t {
  463|   469k|         if constexpr (boolean_like<T>) {
  464|   469k|            return 8;
  465|   469k|         }
  466|   469k|         else if constexpr (num_t<T>) {
  467|   469k|            if constexpr (std::floating_point<T>) {
  468|   469k|               if constexpr (sizeof(T) > 8) {
  469|   469k|                  return 64;
  470|   469k|               }
  471|   469k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   469k|                  return zmij::double_buffer_size + 4;
  474|   469k|               }
  475|   469k|               else {
  476|   469k|                  return zmij::float_buffer_size + 4;
  477|   469k|               }
  478|   469k|            }
  479|   469k|            else if constexpr (sizeof(T) > 4) {
  480|   469k|               return 24;
  481|   469k|            }
  482|   469k|            else if constexpr (sizeof(T) > 2) {
  483|   469k|               return 16;
  484|   469k|            }
  485|   469k|            else {
  486|   469k|               return 8;
  487|   469k|            }
  488|   469k|         }
  489|   469k|         else if constexpr (nullable_like<T>) {
  490|   469k|            if constexpr (has_value_type<T>) {
  491|   469k|               return required_padding<typename T::value_type>();
  492|   469k|            }
  493|   469k|            else if constexpr (has_element_type<T>) {
  494|   469k|               return required_padding<typename T::element_type>();
  495|   469k|            }
  496|   469k|            else {
  497|   469k|               return 0;
  498|   469k|            }
  499|   469k|         }
  500|   469k|         else if constexpr (always_null_t<T>) {
  501|   469k|            return 8;
  502|   469k|         }
  503|   469k|         else {
  504|   469k|            return 0;
  505|   469k|         }
  506|   469k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   469k|      return value;
  514|   469k|   }
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   129k|      {
  738|   129k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   129k|            static_assert(required_padding<T>());
  740|   129k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 129k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   129k|         }
  744|       |
  745|   129k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   129k|         else {
  755|   129k|            write_chars::op<O>(value, ctx, b, ix);
  756|   129k|         }
  757|   129k|      }
_ZN3glz16required_paddingIlEEmv:
  461|   129k|   {
  462|   129k|      constexpr auto value = []() -> size_t {
  463|   129k|         if constexpr (boolean_like<T>) {
  464|   129k|            return 8;
  465|   129k|         }
  466|   129k|         else if constexpr (num_t<T>) {
  467|   129k|            if constexpr (std::floating_point<T>) {
  468|   129k|               if constexpr (sizeof(T) > 8) {
  469|   129k|                  return 64;
  470|   129k|               }
  471|   129k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   129k|                  return zmij::double_buffer_size + 4;
  474|   129k|               }
  475|   129k|               else {
  476|   129k|                  return zmij::float_buffer_size + 4;
  477|   129k|               }
  478|   129k|            }
  479|   129k|            else if constexpr (sizeof(T) > 4) {
  480|   129k|               return 24;
  481|   129k|            }
  482|   129k|            else if constexpr (sizeof(T) > 2) {
  483|   129k|               return 16;
  484|   129k|            }
  485|   129k|            else {
  486|   129k|               return 8;
  487|   129k|            }
  488|   129k|         }
  489|   129k|         else if constexpr (nullable_like<T>) {
  490|   129k|            if constexpr (has_value_type<T>) {
  491|   129k|               return required_padding<typename T::value_type>();
  492|   129k|            }
  493|   129k|            else if constexpr (has_element_type<T>) {
  494|   129k|               return required_padding<typename T::element_type>();
  495|   129k|            }
  496|   129k|            else {
  497|   129k|               return 0;
  498|   129k|            }
  499|   129k|         }
  500|   129k|         else if constexpr (always_null_t<T>) {
  501|   129k|            return 8;
  502|   129k|         }
  503|   129k|         else {
  504|   129k|            return 0;
  505|   129k|         }
  506|   129k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   129k|      return value;
  514|   129k|   }
_ZN3glz2toILj10EhE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|  1.20M|      {
  738|  1.20M|         if constexpr (not check_write_unchecked(Opts)) {
  739|  1.20M|            static_assert(required_padding<T>());
  740|  1.20M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 1.20M]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|  1.20M|         }
  744|       |
  745|  1.20M|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|  1.20M|         else {
  755|  1.20M|            write_chars::op<O>(value, ctx, b, ix);
  756|  1.20M|         }
  757|  1.20M|      }
_ZN3glz16required_paddingIhEEmv:
  461|  1.20M|   {
  462|  1.20M|      constexpr auto value = []() -> size_t {
  463|  1.20M|         if constexpr (boolean_like<T>) {
  464|  1.20M|            return 8;
  465|  1.20M|         }
  466|  1.20M|         else if constexpr (num_t<T>) {
  467|  1.20M|            if constexpr (std::floating_point<T>) {
  468|  1.20M|               if constexpr (sizeof(T) > 8) {
  469|  1.20M|                  return 64;
  470|  1.20M|               }
  471|  1.20M|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|  1.20M|                  return zmij::double_buffer_size + 4;
  474|  1.20M|               }
  475|  1.20M|               else {
  476|  1.20M|                  return zmij::float_buffer_size + 4;
  477|  1.20M|               }
  478|  1.20M|            }
  479|  1.20M|            else if constexpr (sizeof(T) > 4) {
  480|  1.20M|               return 24;
  481|  1.20M|            }
  482|  1.20M|            else if constexpr (sizeof(T) > 2) {
  483|  1.20M|               return 16;
  484|  1.20M|            }
  485|  1.20M|            else {
  486|  1.20M|               return 8;
  487|  1.20M|            }
  488|  1.20M|         }
  489|  1.20M|         else if constexpr (nullable_like<T>) {
  490|  1.20M|            if constexpr (has_value_type<T>) {
  491|  1.20M|               return required_padding<typename T::value_type>();
  492|  1.20M|            }
  493|  1.20M|            else if constexpr (has_element_type<T>) {
  494|  1.20M|               return required_padding<typename T::element_type>();
  495|  1.20M|            }
  496|  1.20M|            else {
  497|  1.20M|               return 0;
  498|  1.20M|            }
  499|  1.20M|         }
  500|  1.20M|         else if constexpr (always_null_t<T>) {
  501|  1.20M|            return 8;
  502|  1.20M|         }
  503|  1.20M|         else {
  504|  1.20M|            return 0;
  505|  1.20M|         }
  506|  1.20M|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|  1.20M|      return value;
  514|  1.20M|   }
_ZN3glz2toILj10EtE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|  1.61M|      {
  738|  1.61M|         if constexpr (not check_write_unchecked(Opts)) {
  739|  1.61M|            static_assert(required_padding<T>());
  740|  1.61M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 1.61M]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|  1.61M|         }
  744|       |
  745|  1.61M|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|  1.61M|         else {
  755|  1.61M|            write_chars::op<O>(value, ctx, b, ix);
  756|  1.61M|         }
  757|  1.61M|      }
_ZN3glz16required_paddingItEEmv:
  461|  1.61M|   {
  462|  1.61M|      constexpr auto value = []() -> size_t {
  463|  1.61M|         if constexpr (boolean_like<T>) {
  464|  1.61M|            return 8;
  465|  1.61M|         }
  466|  1.61M|         else if constexpr (num_t<T>) {
  467|  1.61M|            if constexpr (std::floating_point<T>) {
  468|  1.61M|               if constexpr (sizeof(T) > 8) {
  469|  1.61M|                  return 64;
  470|  1.61M|               }
  471|  1.61M|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|  1.61M|                  return zmij::double_buffer_size + 4;
  474|  1.61M|               }
  475|  1.61M|               else {
  476|  1.61M|                  return zmij::float_buffer_size + 4;
  477|  1.61M|               }
  478|  1.61M|            }
  479|  1.61M|            else if constexpr (sizeof(T) > 4) {
  480|  1.61M|               return 24;
  481|  1.61M|            }
  482|  1.61M|            else if constexpr (sizeof(T) > 2) {
  483|  1.61M|               return 16;
  484|  1.61M|            }
  485|  1.61M|            else {
  486|  1.61M|               return 8;
  487|  1.61M|            }
  488|  1.61M|         }
  489|  1.61M|         else if constexpr (nullable_like<T>) {
  490|  1.61M|            if constexpr (has_value_type<T>) {
  491|  1.61M|               return required_padding<typename T::value_type>();
  492|  1.61M|            }
  493|  1.61M|            else if constexpr (has_element_type<T>) {
  494|  1.61M|               return required_padding<typename T::element_type>();
  495|  1.61M|            }
  496|  1.61M|            else {
  497|  1.61M|               return 0;
  498|  1.61M|            }
  499|  1.61M|         }
  500|  1.61M|         else if constexpr (always_null_t<T>) {
  501|  1.61M|            return 8;
  502|  1.61M|         }
  503|  1.61M|         else {
  504|  1.61M|            return 0;
  505|  1.61M|         }
  506|  1.61M|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|  1.61M|      return value;
  514|  1.61M|   }
_ZN3glz2toILj10EjE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   269k|      {
  738|   269k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   269k|            static_assert(required_padding<T>());
  740|   269k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 269k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   269k|         }
  744|       |
  745|   269k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   269k|         else {
  755|   269k|            write_chars::op<O>(value, ctx, b, ix);
  756|   269k|         }
  757|   269k|      }
_ZN3glz16required_paddingIjEEmv:
  461|   269k|   {
  462|   269k|      constexpr auto value = []() -> size_t {
  463|   269k|         if constexpr (boolean_like<T>) {
  464|   269k|            return 8;
  465|   269k|         }
  466|   269k|         else if constexpr (num_t<T>) {
  467|   269k|            if constexpr (std::floating_point<T>) {
  468|   269k|               if constexpr (sizeof(T) > 8) {
  469|   269k|                  return 64;
  470|   269k|               }
  471|   269k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   269k|                  return zmij::double_buffer_size + 4;
  474|   269k|               }
  475|   269k|               else {
  476|   269k|                  return zmij::float_buffer_size + 4;
  477|   269k|               }
  478|   269k|            }
  479|   269k|            else if constexpr (sizeof(T) > 4) {
  480|   269k|               return 24;
  481|   269k|            }
  482|   269k|            else if constexpr (sizeof(T) > 2) {
  483|   269k|               return 16;
  484|   269k|            }
  485|   269k|            else {
  486|   269k|               return 8;
  487|   269k|            }
  488|   269k|         }
  489|   269k|         else if constexpr (nullable_like<T>) {
  490|   269k|            if constexpr (has_value_type<T>) {
  491|   269k|               return required_padding<typename T::value_type>();
  492|   269k|            }
  493|   269k|            else if constexpr (has_element_type<T>) {
  494|   269k|               return required_padding<typename T::element_type>();
  495|   269k|            }
  496|   269k|            else {
  497|   269k|               return 0;
  498|   269k|            }
  499|   269k|         }
  500|   269k|         else if constexpr (always_null_t<T>) {
  501|   269k|            return 8;
  502|   269k|         }
  503|   269k|         else {
  504|   269k|            return 0;
  505|   269k|         }
  506|   269k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   269k|      return value;
  514|   269k|   }
_ZN3glz2toILj10EmE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  737|   491k|      {
  738|   491k|         if constexpr (not check_write_unchecked(Opts)) {
  739|   491k|            static_assert(required_padding<T>());
  740|   491k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (740:17): [True: 0, False: 491k]
  ------------------
  741|      0|               return;
  742|      0|            }
  743|   491k|         }
  744|       |
  745|   491k|         static constexpr auto O = write_unchecked_on<Opts>();
  746|       |
  747|       |         if constexpr (check_quoted_num(Opts)) {
  748|       |            std::memcpy(&b[ix], "\"", 1);
  749|       |            ++ix;
  750|       |            write_chars::op<O>(value, ctx, b, ix);
  751|       |            std::memcpy(&b[ix], "\"", 1);
  752|       |            ++ix;
  753|       |         }
  754|   491k|         else {
  755|   491k|            write_chars::op<O>(value, ctx, b, ix);
  756|   491k|         }
  757|   491k|      }
_ZN3glz16required_paddingImEEmv:
  461|   491k|   {
  462|   491k|      constexpr auto value = []() -> size_t {
  463|   491k|         if constexpr (boolean_like<T>) {
  464|   491k|            return 8;
  465|   491k|         }
  466|   491k|         else if constexpr (num_t<T>) {
  467|   491k|            if constexpr (std::floating_point<T>) {
  468|   491k|               if constexpr (sizeof(T) > 8) {
  469|   491k|                  return 64;
  470|   491k|               }
  471|   491k|               else if constexpr (sizeof(T) > 4) {
  472|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  473|   491k|                  return zmij::double_buffer_size + 4;
  474|   491k|               }
  475|   491k|               else {
  476|   491k|                  return zmij::float_buffer_size + 4;
  477|   491k|               }
  478|   491k|            }
  479|   491k|            else if constexpr (sizeof(T) > 4) {
  480|   491k|               return 24;
  481|   491k|            }
  482|   491k|            else if constexpr (sizeof(T) > 2) {
  483|   491k|               return 16;
  484|   491k|            }
  485|   491k|            else {
  486|   491k|               return 8;
  487|   491k|            }
  488|   491k|         }
  489|   491k|         else if constexpr (nullable_like<T>) {
  490|   491k|            if constexpr (has_value_type<T>) {
  491|   491k|               return required_padding<typename T::value_type>();
  492|   491k|            }
  493|   491k|            else if constexpr (has_element_type<T>) {
  494|   491k|               return required_padding<typename T::element_type>();
  495|   491k|            }
  496|   491k|            else {
  497|   491k|               return 0;
  498|   491k|            }
  499|   491k|         }
  500|   491k|         else if constexpr (always_null_t<T>) {
  501|   491k|            return 8;
  502|   491k|         }
  503|   491k|         else {
  504|   491k|            return 0;
  505|   491k|         }
  506|   491k|      }();
  507|       |
  508|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  509|       |         // we always require 16 bytes available from write_padding_bytes
  510|       |         // for opening and closing characters
  511|       |         return 0;
  512|       |      }
  513|   491k|      return value;
  514|   491k|   }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  768|   128k|      {
  769|       |         if constexpr (check_string_as_number(Opts)) {
  770|       |            const sv str = [&]() -> const sv {
  771|       |               if constexpr (array_char_t<T>) {
  772|       |                  const auto* start = value.data();
  773|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  774|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  775|       |               }
  776|       |               else if constexpr (u8str_t<T>) {
  777|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  778|       |               }
  779|       |               else {
  780|       |                  return str_view<T>(value);
  781|       |               }
  782|       |            }();
  783|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  784|       |               return;
  785|       |            }
  786|       |            dump_maybe_empty<false>(str, b, ix);
  787|       |         }
  788|       |         else if constexpr (char_t<T>) {
  789|       |            if constexpr (check_unquoted(Opts)) {
  790|       |               dump(value, b, ix);
  791|       |            }
  792|       |            else {
  793|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  794|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  795|       |                  return;
  796|       |               }
  797|       |
  798|       |               std::memcpy(&b[ix], "\"", 1);
  799|       |               ++ix;
  800|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  801|       |                  std::memcpy(&b[ix], &escaped, 2);
  802|       |                  ix += 2;
  803|       |               }
  804|       |               else if (value == '\0') {
  805|       |                  // null character treated as empty string
  806|       |               }
  807|       |               else if constexpr (check_escape_control_characters(Opts)) {
  808|       |                  if (uint8_t(value) < 0x20) {
  809|       |                     // Write as \uXXXX format
  810|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  811|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  812|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  813|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  814|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  815|       |                     ix += 6;
  816|       |                  }
  817|       |                  else {
  818|       |                     std::memcpy(&b[ix], &value, 1);
  819|       |                     ++ix;
  820|       |                  }
  821|       |               }
  822|       |               else {
  823|       |                  std::memcpy(&b[ix], &value, 1);
  824|       |                  ++ix;
  825|       |               }
  826|       |               std::memcpy(&b[ix], "\"", 1);
  827|       |               ++ix;
  828|       |            }
  829|       |         }
  830|   128k|         else {
  831|       |            if constexpr (check_raw_string(Opts)) {
  832|       |               const sv str = [&]() -> const sv {
  833|       |                  if constexpr (u8str_t<T>) {
  834|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  835|       |                  }
  836|       |                  else {
  837|       |                     return str_view<T>(value);
  838|       |                  }
  839|       |               }();
  840|       |
  841|       |               // We need space for quotes and the string length: 2 + n.
  842|       |               // Use +8 for extra buffer
  843|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  844|       |                  return;
  845|       |               }
  846|       |               // now we don't have to check writing
  847|       |
  848|       |               if constexpr (not check_unquoted(Opts)) {
  849|       |                  std::memcpy(&b[ix], "\"", 1);
  850|       |                  ++ix;
  851|       |               }
  852|       |               if (str.size()) [[likely]] {
  853|       |                  const auto n = str.size();
  854|       |                  std::memcpy(&b[ix], str.data(), n);
  855|       |                  ix += n;
  856|       |               }
  857|       |               if constexpr (not check_unquoted(Opts)) {
  858|       |                  std::memcpy(&b[ix], "\"", 1);
  859|       |                  ++ix;
  860|       |               }
  861|       |            }
  862|   128k|            else {
  863|   128k|               const sv str = [&]() -> const sv {
  864|   128k|                  if constexpr (array_char_t<T>) {
  865|   128k|                     return sv{value.data(), value.size()};
  866|   128k|                  }
  867|   128k|                  else if constexpr (u8str_t<T>) {
  868|   128k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  869|   128k|                  }
  870|   128k|                  else {
  871|   128k|                     return str_view<T>(value);
  872|   128k|                  }
  873|   128k|               }();
  874|   128k|               const auto n = str.size();
  875|       |
  876|       |               // In the case n == 0 we need two characters for quotes.
  877|       |               // For each individual character we need room for two characters to handle escapes.
  878|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  879|       |               if constexpr (check_escape_control_characters(Opts)) {
  880|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  881|       |                  if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  882|       |                     return;
  883|       |                  }
  884|       |               }
  885|   128k|               else {
  886|       |                  // Using the original sizing
  887|   128k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (887:23): [True: 0, False: 128k]
  ------------------
  888|      0|                     return;
  889|      0|                  }
  890|   128k|               }
  891|       |               // now we don't have to check writing
  892|       |
  893|       |               if constexpr (check_unquoted(Opts)) {
  894|       |                  if (n) {
  895|       |                     std::memcpy(&b[ix], str.data(), n);
  896|       |                     ix += n;
  897|       |                  }
  898|       |               }
  899|   128k|               else {
  900|   128k|                  std::memcpy(&b[ix], "\"", 1);
  901|   128k|                  ++ix;
  902|       |
  903|   128k|                  const auto* c = str.data();
  904|   128k|                  const auto* const e = c + n;
  905|   128k|                  const auto start = &b[ix];
  906|   128k|                  auto data = start;
  907|       |
  908|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
  909|       |                  // result in null characters in the output, making the JSON invalid — these would then be
  910|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
  911|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
  912|       |
  913|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
  914|   128k|                  auto write_escape = [&]() {
  915|   128k|                     if constexpr (check_escape_control_characters(Opts)) {
  916|   128k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  917|   128k|                           std::memcpy(data, &escaped, 2);
  918|   128k|                           data += 2;
  919|   128k|                        }
  920|   128k|                        else {
  921|   128k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  922|   128k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
  923|   128k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
  924|   128k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
  925|   128k|                           std::memcpy(data, unicode_escape, 6);
  926|   128k|                           data += 6;
  927|   128k|                        }
  928|   128k|                     }
  929|   128k|                     else {
  930|   128k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
  931|   128k|                        data += 2;
  932|   128k|                     }
  933|   128k|                     ++c;
  934|   128k|                  };
  935|       |
  936|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
  937|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
  938|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
  939|       |#if defined(GLZ_USE_AVX2)
  940|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
  941|       |#endif
  942|   128k|#if defined(GLZ_USE_SSE2)
  943|   128k|                  detail::sse2_string_escape(c, e, data, n, write_escape);
  944|       |#elif defined(GLZ_USE_NEON)
  945|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
  946|       |#endif
  947|       |
  948|       |                  // SWAR: 8 bytes at a time
  949|   128k|                  if (n > 7) {
  ------------------
  |  Branch (949:23): [True: 6.13k, False: 122k]
  ------------------
  950|  46.4k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (950:54): [True: 40.2k, False: 6.13k]
  ------------------
  951|  40.2k|                        std::memcpy(data, c, 8);
  952|  40.2k|                        uint64_t swar;
  953|  40.2k|                        std::memcpy(&swar, c, 8);
  954|       |                        if constexpr (std::endian::native == std::endian::big) {
  955|       |                           swar = std::byteswap(swar);
  956|       |                        }
  957|       |
  958|  40.2k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
  959|  40.2k|                        const uint64_t lo7 = swar & lo7_mask;
  960|  40.2k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
  961|  40.2k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
  962|  40.2k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
  963|  40.2k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
  964|       |
  965|  40.2k|                        next &= repeat_byte8(0b10000000);
  966|  40.2k|                        if (next == 0) {
  ------------------
  |  Branch (966:29): [True: 404, False: 39.8k]
  ------------------
  967|    404|                           data += 8;
  968|    404|                           c += 8;
  969|    404|                           continue;
  970|    404|                        }
  971|       |
  972|  39.8k|                        const auto length = (countr_zero(next) >> 3);
  973|  39.8k|                        c += length;
  974|  39.8k|                        data += length;
  975|  39.8k|                        write_escape();
  976|  39.8k|                     }
  977|  6.13k|                  }
  978|       |
  979|       |                  // Scalar tail
  980|   361k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (980:26): [True: 233k, False: 128k]
  ------------------
  981|   233k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (981:79): [True: 1.49k, False: 231k]
  ------------------
  982|  1.49k|                        std::memcpy(data, &escaped, 2);
  983|  1.49k|                        data += 2;
  984|  1.49k|                     }
  985|       |                     else if constexpr (check_escape_control_characters(Opts)) {
  986|       |                        if (uint8_t(*c) < 0x20) {
  987|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  988|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
  989|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
  990|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
  991|       |                           std::memcpy(data, unicode_escape, 6);
  992|       |                           data += 6;
  993|       |                        }
  994|       |                        else {
  995|       |                           std::memcpy(data, c, 1);
  996|       |                           ++data;
  997|       |                        }
  998|       |                     }
  999|   231k|                     else {
 1000|   231k|                        std::memcpy(data, c, 1);
 1001|   231k|                        ++data;
 1002|   231k|                     }
 1003|   233k|                  }
 1004|       |
 1005|   128k|                  ix += size_t(data - start);
 1006|       |
 1007|   128k|                  std::memcpy(&b[ix], "\"", 1);
 1008|   128k|                  ++ix;
 1009|   128k|               }
 1010|   128k|            }
 1011|   128k|         }
 1012|   128k|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  863|   128k|               const sv str = [&]() -> const sv {
  864|       |                  if constexpr (array_char_t<T>) {
  865|       |                     return sv{value.data(), value.size()};
  866|       |                  }
  867|       |                  else if constexpr (u8str_t<T>) {
  868|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  869|       |                  }
  870|   128k|                  else {
  871|   128k|                     return str_view<T>(value);
  872|   128k|                  }
  873|   128k|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
  914|  2.26M|                  auto write_escape = [&]() {
  915|       |                     if constexpr (check_escape_control_characters(Opts)) {
  916|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  917|       |                           std::memcpy(data, &escaped, 2);
  918|       |                           data += 2;
  919|       |                        }
  920|       |                        else {
  921|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  922|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
  923|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
  924|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
  925|       |                           std::memcpy(data, unicode_escape, 6);
  926|       |                           data += 6;
  927|       |                        }
  928|       |                     }
  929|  2.26M|                     else {
  930|  2.26M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
  931|  2.26M|                        data += 2;
  932|  2.26M|                     }
  933|  2.26M|                     ++c;
  934|  2.26M|                  };

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

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

_ZN3glz3getILm0ETkNS_6tuplet9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  432|  2.27k|   {
  433|  2.27k|      return static_cast<Tup&&>(tup)[tuplet::tag<I>()];
  434|  2.27k|   }
_ZNO3glz6tuplet10tuple_elemILm0ERiEixENSt3__117integral_constantImLm0EEE:
  113|  2.27k|         constexpr decltype(auto) operator[](tag<I>) && { return (std::move(*this).value); }
_ZN3glz3tieIJidNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_5arrayImLm3EEEEEENS_5tupleIJDpRT_EEESD_:
  442|  10.8k|   {
  443|  10.8k|      return {t...};
  444|  10.8k|   }
_ZN3glz3getILm1ETkNS_6tuplet9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  432|  2.37k|   {
  433|  2.37k|      return static_cast<Tup&&>(tup)[tuplet::tag<I>()];
  434|  2.37k|   }
_ZNO3glz6tuplet10tuple_elemILm1ERdEixENSt3__117integral_constantImLm1EEE:
  113|  2.37k|         constexpr decltype(auto) operator[](tag<I>) && { return (std::move(*this).value); }
_ZN3glz3getILm2ETkNS_6tuplet9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  432|  1.90k|   {
  433|  1.90k|      return static_cast<Tup&&>(tup)[tuplet::tag<I>()];
  434|  1.90k|   }
_ZNO3glz6tuplet10tuple_elemILm2ERNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEixENS2_17integral_constantImLm2EEE:
  113|  1.90k|         constexpr decltype(auto) operator[](tag<I>) && { return (std::move(*this).value); }
_ZN3glz3getILm3ETkNS_6tuplet9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  432|  4.29k|   {
  433|  4.29k|      return static_cast<Tup&&>(tup)[tuplet::tag<I>()];
  434|  4.29k|   }
_ZNO3glz6tuplet10tuple_elemILm3ERNSt3__15arrayImLm3EEEEixENS2_17integral_constantImLm3EEE:
  113|  4.29k|         constexpr decltype(auto) operator[](tag<I>) && { return (std::move(*this).value); }

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

_ZN3glz7compareILm1EcEEbPKT0_S3_:
  122|  4.65k|   {
  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|  4.65k|      else if constexpr (Count == 1) {
  176|  4.65k|         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  4.65k|   }
_ZN3glz7compareILm5EcEEbPKT0_S3_:
  122|  1.96k|   {
  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|  1.96k|      else if constexpr (Count == 5) {
  152|  1.96k|         uint32_t l, r;
  153|  1.96k|         std::memcpy(&l, lhs, 4);
  154|  1.96k|         std::memcpy(&r, rhs, 4);
  155|  1.96k|         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|  1.96k|   }
_ZN3glz7compareILm3EcEEbPKT0_S3_:
  122|  4.35k|   {
  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.35k|      else if constexpr (Count == 3) {
  164|  4.35k|         uint16_t l, r;
  165|  4.35k|         std::memcpy(&l, lhs, 2);
  166|  4.35k|         std::memcpy(&r, rhs, 2);
  167|  4.35k|         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.35k|   }

_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  124|  34.0M|   {
  125|  34.0M|      const auto n = str.size();
  126|  34.0M|      if constexpr (vector_like<B>) {
  127|  34.0M|         if constexpr (Checked) {
  128|  34.0M|            const auto k = ix + n;
  129|  34.0M|            if (ix + n > b.size()) [[unlikely]] {
  ------------------
  |  Branch (129:17): [True: 2.93k, False: 34.0M]
  ------------------
  130|  2.93k|               b.resize(2 * k);
  131|  2.93k|            }
  132|  34.0M|         }
  133|  34.0M|      }
  134|  34.0M|      std::memcpy(&b[ix], str.data(), n);
  135|  34.0M|      ix += n;
  136|  34.0M|   }
_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
   82|   126M|   {
   83|   126M|      if constexpr (Checked && vector_like<B>) {
   84|   126M|         if (ix == b.size()) [[unlikely]] {
  ------------------
  |  Branch (84:14): [True: 8.17k, False: 126M]
  ------------------
   85|  8.17k|            b.resize(b.size() == 0 ? 128 : b.size() * 2);
  ------------------
  |  Branch (85:22): [True: 6.29k, False: 1.87k]
  ------------------
   86|  8.17k|         }
   87|   126M|      }
   88|   126M|      assign_maybe_cast(c, b, ix);
   89|   126M|      ++ix;
   90|   126M|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   55|   126M|   {
   56|   126M|      using V = std::decay_t<decltype(b[0])>;
   57|   126M|      using C = std::decay_t<decltype(c)>;
   58|   126M|      if constexpr (std::same_as<V, C>) {
   59|   126M|         b[ix] = c;
   60|       |      }
   61|       |      else {
   62|       |         b[ix] = static_cast<V>(c);
   63|       |      }
   64|   126M|   }
_ZN3glz4dumpITnNS_14string_literalEXtlNS1_ILm10EEEtlA10_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc34ELc58EEEELb1ENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEvRT1_Rm:
  106|  27.9M|   {
  107|  27.9M|      static constexpr auto s = str.sv();
  108|  27.9M|      static constexpr auto n = s.size();
  109|       |
  110|  27.9M|      if constexpr (vector_like<B>) {
  111|  27.9M|         if constexpr (Checked) {
  112|  27.9M|            const auto k = ix + n;
  113|  27.9M|            if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (113:17): [True: 1.93k, False: 27.9M]
  ------------------
  114|  1.93k|               b.resize(2 * k);
  115|  1.93k|            }
  116|  27.9M|         }
  117|  27.9M|      }
  118|  27.9M|      std::memcpy(&b[ix], s.data(), n);
  119|  27.9M|      ix += n;
  120|  27.9M|   }
_ZN3glz4dumpITnNS_14string_literalEXtlNS1_ILm15EEEtlA15_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc114ELc105ELc103ELc104ELc116ELc34EEEELb1ENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEvRT1_Rm:
  106|   834k|   {
  107|   834k|      static constexpr auto s = str.sv();
  108|   834k|      static constexpr auto n = s.size();
  109|       |
  110|   834k|      if constexpr (vector_like<B>) {
  111|   834k|         if constexpr (Checked) {
  112|   834k|            const auto k = ix + n;
  113|   834k|            if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (113:17): [True: 189, False: 833k]
  ------------------
  114|    189|               b.resize(2 * k);
  115|    189|            }
  116|   834k|         }
  117|   834k|      }
  118|   834k|      std::memcpy(&b[ix], s.data(), n);
  119|   834k|      ix += n;
  120|   834k|   }
_ZN3glz4dumpITnNS_14string_literalEXtlNS1_ILm14EEEtlA14_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc108ELc101ELc102ELc116ELc34EEEELb1ENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEvRT1_Rm:
  106|  27.0M|   {
  107|  27.0M|      static constexpr auto s = str.sv();
  108|  27.0M|      static constexpr auto n = s.size();
  109|       |
  110|  27.0M|      if constexpr (vector_like<B>) {
  111|  27.0M|         if constexpr (Checked) {
  112|  27.0M|            const auto k = ix + n;
  113|  27.0M|            if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (113:17): [True: 3.89k, False: 27.0M]
  ------------------
  114|  3.89k|               b.resize(2 * k);
  115|  3.89k|            }
  116|  27.0M|         }
  117|  27.0M|      }
  118|  27.0M|      std::memcpy(&b[ix], s.data(), n);
  119|  27.0M|      ix += n;
  120|  27.0M|   }
_ZN3glz4dumpITnNS_14string_literalEXtlNS1_ILm11EEEtlA11_cLc34ELc101ELc120ELc116ELc101ELc110ELc116ELc115ELc34ELc58EEEELb1ENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEvRT1_Rm:
  106|  27.9M|   {
  107|  27.9M|      static constexpr auto s = str.sv();
  108|  27.9M|      static constexpr auto n = s.size();
  109|       |
  110|  27.9M|      if constexpr (vector_like<B>) {
  111|  27.9M|         if constexpr (Checked) {
  112|  27.9M|            const auto k = ix + n;
  113|  27.9M|            if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (113:17): [True: 2.07k, False: 27.9M]
  ------------------
  114|  2.07k|               b.resize(2 * k);
  115|  2.07k|            }
  116|  27.9M|         }
  117|  27.9M|      }
  118|  27.9M|      std::memcpy(&b[ix], s.data(), n);
  119|  27.9M|      ix += n;
  120|  27.9M|   }
_ZN3glz4dumpITnNS_14string_literalEXtlNS1_ILm9EEEtlA9_cLc34ELc118ELc97ELc108ELc117ELc101ELc34ELc58EEEELb1ENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEvRT1_Rm:
  106|  27.8M|   {
  107|  27.8M|      static constexpr auto s = str.sv();
  108|  27.8M|      static constexpr auto n = s.size();
  109|       |
  110|  27.8M|      if constexpr (vector_like<B>) {
  111|  27.8M|         if constexpr (Checked) {
  112|  27.8M|            const auto k = ix + n;
  113|  27.8M|            if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (113:17): [True: 824, False: 27.8M]
  ------------------
  114|    824|               b.resize(2 * k);
  115|    824|            }
  116|  27.8M|         }
  117|  27.8M|      }
  118|  27.8M|      std::memcpy(&b[ix], s.data(), n);
  119|  27.8M|      ix += n;
  120|  27.8M|   }

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

_ZN3glz8to_charsIaQsr3stdE7same_asIu14__remove_cvrefIT_EaEEEPcS3_S1_:
  277|   626k|   {
  278|   626k|      *buf = '-';
  279|   626k|      return to_chars(buf + (val < 0), uint8_t(val ^ (val >> 7)) - (val >> 7));
  280|   626k|   }
_ZN3glz8to_charsIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  213|  1.77M|   {
  214|  1.77M|      *buf = '-';
  215|  1.77M|      return to_chars(buf + (val < 0), uint32_t(val ^ (val >> 31)) - (val >> 31));
  216|  1.77M|   }
_ZN3glz8to_charsIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  191|  1.77M|   {
  192|  1.77M|      using namespace itoa_impl;
  193|  1.77M|      if (val < 100) {
  ------------------
  |  Branch (193:11): [True: 851k, False: 919k]
  ------------------
  194|   851k|         return u32_2(buf, val);
  195|   851k|      }
  196|   919k|      else if (val < 10000) {
  ------------------
  |  Branch (196:16): [True: 742k, False: 176k]
  ------------------
  197|   742k|         return u32_4(buf, val);
  198|   742k|      }
  199|   176k|      else if (val < 1000000) {
  ------------------
  |  Branch (199:16): [True: 176k, False: 0]
  ------------------
  200|   176k|         return u32_6(buf, val);
  201|   176k|      }
  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|  1.77M|   }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  2.14M|      {
   75|  2.14M|         const uint32_t lz = val < 10;
   76|  2.14M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  2.14M|         return buf + 2 - lz;
   78|  2.14M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  1.16M|      {
   82|  1.16M|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  1.16M|         const uint32_t lz = aa < 10;
   84|  1.16M|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  1.16M|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  1.16M|         return buf + 4 - lz;
   87|  1.16M|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|   176k|      {
   91|   176k|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|   176k|         const uint32_t bbcc = val - aa * 10000;
   93|   176k|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|   176k|         const uint32_t lz = aa < 10;
   95|   176k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|   176k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|   176k|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|   176k|         return buf + 6 - lz;
   99|   176k|      }
_ZN3glz8to_charsIsQsr3stdE7same_asIu14__remove_cvrefIT_EsEEEPcS3_S1_:
  306|  1.14M|   {
  307|  1.14M|      *buf = '-';
  308|  1.14M|      return to_chars(buf + (val < 0), uint16_t(val ^ (val >> 15)) - (val >> 15));
  309|  1.14M|   }
_ZN3glz8to_charsIhQsr3stdE7same_asIu14__remove_cvrefIT_EhEEEPcS3_S1_:
  259|  1.20M|   {
  260|  1.20M|      using namespace itoa_impl;
  261|  1.20M|      if (val < 100) {
  ------------------
  |  Branch (261:11): [True: 952k, False: 249k]
  ------------------
  262|   952k|         return u32_2(buf, val);
  263|   952k|      }
  264|   249k|      else {
  265|       |         // 100-255: 3 digits
  266|   249k|         const uint32_t q = val / 100;
  267|   249k|         *buf = char('0' + q);
  268|   249k|         std::memcpy(buf + 1, &digit_pairs[val - q * 100], 2);
  269|   249k|         return buf + 3;
  270|   249k|      }
  271|  1.20M|   }
_ZN3glz8to_charsItQsr3stdE7same_asIu14__remove_cvrefIT_EtEEEPcS3_S1_:
  286|  1.61M|   {
  287|  1.61M|      using namespace itoa_impl;
  288|  1.61M|      if (val < 100) {
  ------------------
  |  Branch (288:11): [True: 339k, False: 1.27M]
  ------------------
  289|   339k|         return u32_2(buf, val);
  290|   339k|      }
  291|  1.27M|      else if (val < 10000) {
  ------------------
  |  Branch (291:16): [True: 427k, False: 845k]
  ------------------
  292|   427k|         return u32_4(buf, val);
  293|   427k|      }
  294|   845k|      else {
  295|       |         // 10000-65535: 5 digits
  296|   845k|         const uint32_t q = val / 10000;
  297|   845k|         *buf = char('0' + q);
  298|   845k|         return u64_len_4(buf + 1, val - q * 10000);
  299|   845k|      }
  300|  1.61M|   }
_ZN3glz9itoa_impl9u64_len_4EPcj:
  148|   845k|      {
  149|   845k|         const uint32_t aa = (val * 5243) >> 19;
  150|   845k|         std::memcpy(buf, &digit_pairs[aa], 2);
  151|   845k|         std::memcpy(buf + 2, &digit_pairs[val - aa * 100], 2);
  152|   845k|         return buf + 4;
  153|   845k|      }

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

_ZN3glz8to_charsITkNSt3__114floating_pointEfLb0EEEPcS2_T_:
 1118|  1.47M|   {
 1119|  1.47M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  1.47M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  1.47M|   }
_ZN3glz4zmij6detail5writeIfLb0EEEPcT_S3_:
  975|  1.47M|      {
  976|  1.47M|         using namespace detail_impl;
  977|  1.47M|         using traits = float_traits<Float>;
  978|  1.47M|         auto bits = traits::to_bits(value);
  979|  1.47M|         auto bin_exp = traits::get_exp(bits);
  980|  1.47M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  1.47M|         *buffer = '-';
  983|  1.47M|         buffer += traits::is_negative(bits);
  984|       |
  985|  1.47M|         const auto* c = &consts_v<OptSize>;
  986|  1.47M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.47M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  1.47M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [Folded, False: 1.47M]
  ------------------
  988|       |
  989|  1.47M|         to_decimal_result dec;
  990|  1.47M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  1.47M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 151k, False: 1.32M]
  ------------------
  992|   151k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 7.59k, False: 143k]
  ------------------
  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|  7.59k|               buffer -= traits::is_negative(bits);
 1000|  7.59k|               memcpy(buffer, "null", 4);
 1001|  7.59k|               return buffer + 4;
 1002|  7.59k|#endif
 1003|  7.59k|            }
 1004|   143k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 111k, False: 32.3k]
  ------------------
 1005|   111k|               memcpy(buffer, "0", 2);
 1006|   111k|               return buffer + 1;
 1007|   111k|            }
 1008|  32.3k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  32.3k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 28.9k, False: 3.37k]
  ------------------
 1010|  32.3k|            int32_t dec_exp = dec.exp;
 1011|   119k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 87.2k, False: 32.3k]
  ------------------
 1012|  87.2k|               dec_sig *= 10;
 1013|  87.2k|               --dec_exp;
 1014|  87.2k|            }
 1015|  32.3k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  32.3k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  32.3k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  32.3k|         }
 1019|  1.32M|         else {
 1020|  1.32M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.32M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.32M|         }
 1023|  1.35M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.35M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.35M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [True: 1.35M, Folded]
  |  Branch (1025:40): [True: 6.13k, False: 1.34M]
  ------------------
 1026|  6.13k|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 5.27k, False: 854]
  ------------------
 1027|  6.13k|            dec.has_last_digit = false;
 1028|  6.13k|            --dec_exp;
 1029|  6.13k|         }
 1030|       |
 1031|  1.35M|         char* start = buffer;
 1032|  1.35M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.35M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [Folded, False: 1.35M]
  ------------------
 1034|  1.35M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 575k, False: 777k]
  |  Branch (1034:54): [True: 256k, False: 319k]
  ------------------
 1035|   256k|            memcpy(start, &zeros_v, 8);
 1036|   256k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|   256k|            buffer += fmt.start_pos;
 1038|   256k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|   256k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|   256k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 88.2k, False: 167k]
  ------------------
 1041|   256k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|   256k|            start[fmt.point_pos] = '.';
 1043|   256k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 88.2k, False: 167k]
  ------------------
 1044|   256k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|   256k|         }
 1046|  1.09M|         buffer += extra_digit;
 1047|  1.09M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.09M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.09M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 734k, False: 362k]
  ------------------
 1050|  1.09M|         start[0] = start[1];
 1051|  1.09M|         start[1] = '.';
 1052|  1.09M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.09M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.09M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.09M|            int len = int(exp_data >> 48);
 1057|  1.09M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.09M]
  ------------------
 1058|  1.09M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [Folded, False: 1.09M]
  ------------------
 1059|  1.09M|            return buffer + len;
 1060|  1.09M|         }
 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.09M|         buffer[0] = 'E';
 1067|  1.09M|         buffer[1] = '-';
 1068|  1.09M|         buffer += 1 + unsigned(neg);
 1069|  1.09M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.09M]
  ------------------
 1070|  1.09M|         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.09M|         const char* d2 = digits2(dec_exp);
 1087|  1.09M|         *buffer = d2[0];
 1088|  1.09M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.09M|         *buffer = d2[1];
 1090|  1.09M|         return buffer + 1;
 1091|  1.35M|      }
_ZN3glz4zmij11detail_impl12float_traitsIfE7to_bitsEf:
  358|  1.47M|         {
  359|  1.47M|            sig_type bits;
  360|  1.47M|            memcpy(&bits, &value, sizeof(value));
  361|  1.47M|            return bits;
  362|  1.47M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_expEj:
  367|  1.47M|         {
  368|  1.47M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  1.47M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_sigEj:
  365|  1.47M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIfE11is_negativeEj:
  364|  1.47M|         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.35M|      {
  869|  1.35M|         using traits = float_traits<Float>;
  870|  1.35M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.35M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.35M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.35M|         constexpr int32_t log10_2_exp = 18;
  875|  1.35M|         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.35M|         else {
  881|  1.35M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.35M|         }
  883|  1.35M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.35M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.35M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 15.9k, False: 1.33M]
  ------------------
  887|  15.9k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  15.9k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  15.9k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  15.9k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  15.9k|            int64_t integral = p.hi >> extra_shift;
  893|  15.9k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  15.9k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  15.9k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  15.9k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  15.9k|            integral += round_up;
  899|       |
  900|  15.9k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  15.9k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  15.9k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 3.19k, False: 12.7k]
  ------------------
  903|  15.9k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  15.9k|         }
  905|       |
  906|  1.33M|         if constexpr (num_bits == 32) {
  907|  1.33M|            constexpr int32_t float_extra_shift = 34;
  908|  1.33M|            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|  1.33M|            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|  1.33M|            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|  1.33M|            int64_t integral = p >> float_extra_shift;
  913|  1.33M|            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|  1.33M|            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|  1.33M|            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|  1.33M|            bool round_down = half_ulp > fractional;
  918|  1.33M|            integral += round_up;
  919|       |
  920|  1.33M|            uint64_t prod = fractional * 10;
  921|  1.33M|            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|  1.33M|            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|  1.33M|            digit +=
  924|  1.33M|               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  ------------------
  |  Branch (924:16): [True: 644k, False: 692k]
  |  Branch (924:60): [True: 4.42k, False: 688k]
  |  Branch (924:104): [True: 1.88k, False: 2.54k]
  ------------------
  925|  1.33M|            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.33M|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.11M|      {
  334|  2.11M|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.11M, False: 0]
  |  Branch (334:10): [True: 2.11M, False: 0]
  |  Branch (334:10): [True: 2.11M, False: 0]
  ------------------
  335|  2.11M|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.11M|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.11M|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.11M|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|  1.36M|      {
  458|  1.36M|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 1.36M, False: 0]
  |  Branch (458:10): [True: 1.36M, False: 0]
  |  Branch (458:10): [True: 1.36M, False: 0]
  ------------------
  459|  1.36M|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|  1.36M|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|  1.36M|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|  1.36M|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  2.09M|         {
  441|  2.09M|            constexpr int dec_exp_min = -293;
  442|  2.09M|            int i = dec_exp - dec_exp_min;
  443|  2.09M|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 2.09M]
  ------------------
  444|  2.09M|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 2.09M, 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.09M|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|   757k|      {
  309|   757k|         uint128_t p = umul128(x_hi, y);
  310|   757k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|   757k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|   757k|      }
_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|   781k|      {
  299|   781k|#if ZMIJ_USE_INT128
  300|   781k|         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|   781k|      }
_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|   131k|      {
  327|   131k|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 131k, False: 0]
  ------------------
  328|   131k|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|   131k|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|   131k|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 131k, Folded]
  |  |  ------------------
  ------------------
  330|   131k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi32ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.35M|      {
  810|  1.35M|         if constexpr (num_bits == 32) {
  811|  1.35M|            auto result = to_bcd8<OptSize>(value);
  812|  1.35M|            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.35M|      }
_ZN3glz4zmij11detail_impl7to_bcd8ILb0EEENS1_10bcd_resultEm:
  753|  1.35M|      {
  754|  1.35M|         if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   63|  1.35M|#define ZMIJ_USE_SSE ZMIJ_USE_SIMD
  |  |  ------------------
  |  |  |  |   41|  2.70M|#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.35M]
  |  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.35M|         const auto* c = &consts_v<OptSize>;
  764|  1.35M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.35M|#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.35M|            (abcdefgh << 32) - uint64_t((10000ull << 32) - 1) * ((abcdefgh * div10k_sig) >> div10k_exp);
  781|  1.35M|         uint64_t bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  782|  1.35M|         return {bcd, count_trailing_nonzeros(bcd)};
  783|  1.35M|#endif
  784|  1.35M|      }
_ZN3glz4zmij11detail_impl6lo_u64EDv2_x:
  700|  1.35M|      {
  701|  1.35M|#if defined(__x86_64__) || defined(_M_X64)
  702|  1.35M|         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.35M|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  2.09M|      {
  713|  2.09M|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  2.09M|         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.09M|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  2.09M|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  2.09M|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  2.09M|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  2.09M|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  2.09M|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  2.09M|#endif
  730|  2.09M|      }
_ZN3glz4zmij11detail_impl23count_trailing_nonzerosEm:
  568|  1.35M|      {
  569|  1.35M|         if (is_big_endian) x = bswap64(x);
  ------------------
  |  Branch (569:14): [Folded, False: 1.35M]
  ------------------
  570|  1.35M|         return (size_t(70) - clz((x << 1) | 1)) / 8;
  571|  1.35M|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  2.09M|      {
  188|  2.09M|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 2.09M, False: 0]
  ------------------
  189|  2.09M|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  2.09M|         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.09M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIfEEEERKNS2_5entryEi:
  559|   256k|         {
  560|   256k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|   256k|            unsigned i = unsigned(dec_exp - min);
  562|   256k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 256k, False: 0]
  ------------------
  563|   256k|         }
_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|   792k|   {
 1119|   792k|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|   792k|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|   792k|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|   792k|      {
  976|   792k|         using namespace detail_impl;
  977|   792k|         using traits = float_traits<Float>;
  978|   792k|         auto bits = traits::to_bits(value);
  979|   792k|         auto bin_exp = traits::get_exp(bits);
  980|   792k|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|   792k|         *buffer = '-';
  983|   792k|         buffer += traits::is_negative(bits);
  984|       |
  985|   792k|         const auto* c = &consts_v<OptSize>;
  986|   792k|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|   792k|#define ZMIJ_ASM(x) asm x
  ------------------
  987|   792k|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 792k, Folded]
  ------------------
  988|       |
  989|   792k|         to_decimal_result dec;
  990|   792k|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|   792k|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 150k, False: 642k]
  ------------------
  992|   150k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 13.6k, False: 136k]
  ------------------
  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|  13.6k|               buffer -= traits::is_negative(bits);
 1000|  13.6k|               memcpy(buffer, "null", 4);
 1001|  13.6k|               return buffer + 4;
 1002|  13.6k|#endif
 1003|  13.6k|            }
 1004|   136k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 38.0k, False: 98.8k]
  ------------------
 1005|  38.0k|               memcpy(buffer, "0", 2);
 1006|  38.0k|               return buffer + 1;
 1007|  38.0k|            }
 1008|  98.8k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  98.8k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 52.8k, False: 46.0k]
  ------------------
 1010|  98.8k|            int32_t dec_exp = dec.exp;
 1011|   479k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 380k, False: 98.8k]
  ------------------
 1012|   380k|               dec_sig *= 10;
 1013|   380k|               --dec_exp;
 1014|   380k|            }
 1015|  98.8k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  98.8k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  98.8k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  98.8k|         }
 1019|   642k|         else {
 1020|   642k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|   642k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|   642k|         }
 1023|   741k|         bool extra_digit = dec.sig >= threshold;
 1024|   741k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|   741k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 741k]
  |  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|   741k|         char* start = buffer;
 1032|   741k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|   741k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|   741k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 224k, False: 516k]
  |  Branch (1034:54): [True: 29.6k, False: 195k]
  ------------------
 1035|  29.6k|            memcpy(start, &zeros_v, 8);
 1036|  29.6k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  29.6k|            buffer += fmt.start_pos;
 1038|  29.6k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  29.6k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  29.6k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 21.0k, False: 8.60k]
  ------------------
 1041|  29.6k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  29.6k|            start[fmt.point_pos] = '.';
 1043|  29.6k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 21.0k, False: 8.60k]
  ------------------
 1044|  29.6k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  29.6k|         }
 1046|   711k|         buffer += extra_digit;
 1047|   711k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|   711k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|   711k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 376k, False: 334k]
  ------------------
 1050|   711k|         start[0] = start[1];
 1051|   711k|         start[1] = '.';
 1052|   711k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|   711k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|   711k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|   711k|            int len = int(exp_data >> 48);
 1057|   711k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 711k]
  ------------------
 1058|   711k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 711k, Folded]
  ------------------
 1059|   711k|            return buffer + len;
 1060|   711k|         }
 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|   711k|         buffer[0] = 'E';
 1067|   711k|         buffer[1] = '-';
 1068|   711k|         buffer += 1 + unsigned(neg);
 1069|   711k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 711k]
  ------------------
 1070|   711k|         unsigned hundreds_written = 0;
 1071|   711k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|   711k|            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|   711k|            else {
 1077|   711k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|   711k|            }
 1079|   711k|            *buffer = static_cast<char>('0' + digit);
 1080|   711k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|   711k|            buffer += hundreds_written;
 1082|   711k|            dec_exp -= digit * 100;
 1083|   711k|         }
 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|   711k|         const char* d2 = digits2(dec_exp);
 1087|   711k|         *buffer = d2[0];
 1088|   711k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|   711k|         *buffer = d2[1];
 1090|   711k|         return buffer + 1;
 1091|   741k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|   792k|         {
  359|   792k|            sig_type bits;
  360|   792k|            memcpy(&bits, &value, sizeof(value));
  361|   792k|            return bits;
  362|   792k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|   792k|         {
  368|   792k|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|   792k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|   792k|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|   806k|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|   741k|      {
  869|   741k|         using traits = float_traits<Float>;
  870|   741k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|   741k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|   741k|         constexpr uint64_t log10_2_sig = 78'913;
  874|   741k|         constexpr int32_t log10_2_exp = 18;
  875|   741k|         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|   741k|         else {
  881|   741k|            dec_exp = compute_dec_exp(bin_exp);
  882|   741k|         }
  883|   741k|         uint64_t even = 1 - (bin_sig & 1);
  884|   741k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|   741k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 8.61k, False: 732k]
  ------------------
  887|  8.61k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  8.61k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  8.61k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  8.61k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  8.61k|            int64_t integral = p.hi >> extra_shift;
  893|  8.61k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  8.61k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  8.61k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  8.61k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  8.61k|            integral += round_up;
  899|       |
  900|  8.61k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  8.61k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  8.61k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 1.14k, False: 7.47k]
  ------------------
  903|  8.61k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  8.61k|         }
  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|   732k|         else {
  928|   732k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 732k, Folded]
  ------------------
  929|   732k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|   732k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|   732k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|   732k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|   732k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|   732k|            int64_t integral = p.hi >> extra_shift;
  934|   732k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|   732k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|   732k|            bool round_up = fractional + half_ulp < fractional;
  937|   732k|            bool round_down = half_ulp > fractional;
  938|   732k|            integral += round_up;
  939|       |
  940|   732k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|   732k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 224, False: 732k]
  ------------------
  942|    224|               digit = 2;
  943|    224|            }
  944|   732k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|   732k|         }
  946|   732k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|   741k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|   741k|         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|   741k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|   741k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|   741k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|   741k|            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|   741k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|   741k|#endif
  844|       |
  845|   741k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|   741k|            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|   741k|            int len = 63 - clz((mask << 1) | 1);
  851|   741k|#endif
  852|   741k|            return {_mm_or_si128(bcd, zeros), len};
  853|   741k|#endif
  854|   741k|         }
  855|   741k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|   741k|      {
  736|   741k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|   741k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|   741k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|   741k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|   741k|         return to_bcd_4x4(y, c);
  741|   741k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|  29.6k|         {
  560|  29.6k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  29.6k|            unsigned i = unsigned(dec_exp - min);
  562|  29.6k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 29.6k, False: 0]
  ------------------
  563|  29.6k|         }

